|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2018-02-06 Frederic Wang <fwang@igalia.com> |
| 2 |
|
| 3 |
Add scrolling node types to distinguish main frames and subframes. |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=182533 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
This patch splits FrameScrollingNode type into two types: MainFrameScrollingNode and |
| 9 |
SubframeScrollingNode. This is needed because new places in the code are likely to |
| 10 |
distinguish them e.g. in ScrollingTreeScrollingNodeDelegateIOS::updateChildNodesAfterScroll |
| 11 |
or when iOS frame scrolling is introduced (see bug 173833). |
| 12 |
|
| 13 |
No new tests, behavior unchanged. |
| 14 |
|
| 15 |
* page/scrolling/AsyncScrollingCoordinator.cpp: |
| 16 |
(WebCore::AsyncScrollingCoordinator::ensureRootStateNodeForFrameView): This is only called |
| 17 |
for main frames, so pass MainFrameScrollingNode. |
| 18 |
* page/scrolling/ScrollingCoordinator.cpp: |
| 19 |
(WebCore::operator<<): Distinguish subframe and main frame when dumping. |
| 20 |
* page/scrolling/ScrollingCoordinator.h: Split FrameScrollingNode into two cases. |
| 21 |
* page/scrolling/ScrollingStateFrameScrollingNode.cpp: Add node type to constructor and |
| 22 |
ASSERT it remains of type FrameScrollingNode. |
| 23 |
(WebCore::ScrollingStateFrameScrollingNode::create): |
| 24 |
(WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode): |
| 25 |
* page/scrolling/ScrollingStateFrameScrollingNode.h: Add node type to constructor. |
| 26 |
* page/scrolling/ScrollingStateNode.h: |
| 27 |
(WebCore::ScrollingStateNode::isFrameScrollingNode const): Includes the two cases. |
| 28 |
* page/scrolling/ScrollingStateTree.cpp: |
| 29 |
(WebCore::ScrollingStateTree::createNode): Split FrameScrollingNode into two cases and pass |
| 30 |
the node type. |
| 31 |
(WebCore::ScrollingStateTree::attachNode): The first case only happens for main frames while |
| 32 |
the second case only happens with subframes. Use the appriate node type. |
| 33 |
* page/scrolling/ScrollingTreeFrameScrollingNode.cpp: Add node type to constructor and |
| 34 |
ASSERT it remains of type FrameScrollingNode. |
| 35 |
(WebCore::ScrollingTreeFrameScrollingNode::ScrollingTreeFrameScrollingNode): |
| 36 |
* page/scrolling/ScrollingTreeFrameScrollingNode.h: Add node type to constructor. |
| 37 |
* page/scrolling/ScrollingTreeNode.h: Includes the two cases. |
| 38 |
(WebCore::ScrollingTreeNode::isFrameScrollingNode const): |
| 39 |
* page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.h: Add node type to constructor. |
| 40 |
* page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm: Ditto. |
| 41 |
(WebCore::ScrollingTreeFrameScrollingNodeIOS::create): |
| 42 |
(WebCore::ScrollingTreeFrameScrollingNodeIOS::ScrollingTreeFrameScrollingNodeIOS): |
| 43 |
* page/scrolling/ios/ScrollingTreeIOS.cpp: Split FrameScrollingNode into two cases. |
| 44 |
(WebCore::ScrollingTreeIOS::createScrollingTreeNode): |
| 45 |
* page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h: Add node type to constructor. |
| 46 |
* page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm: Ditto. |
| 47 |
(WebCore::ScrollingTreeFrameScrollingNodeMac::create): |
| 48 |
(WebCore::ScrollingTreeFrameScrollingNodeMac::ScrollingTreeFrameScrollingNodeMac): |
| 49 |
* page/scrolling/mac/ScrollingTreeMac.cpp: Split FrameScrollingNode into two cases. |
| 50 |
(ScrollingTreeMac::createScrollingTreeNode): |
| 51 |
* rendering/RenderLayerCompositor.cpp: |
| 52 |
(WebCore::RenderLayerCompositor::reattachSubframeScrollLayers): Distinguish the cases of |
| 53 |
main frames and subframes. |
| 54 |
(WebCore::scrollCoordinationRoleForNodeType): Split FrameScrollingNode into two cases. |
| 55 |
(WebCore::RenderLayerCompositor::updateScrollCoordinationForThisFrame): Distinguish the cases |
| 56 |
of main frames and subframes. |
| 57 |
(WebCore::RenderLayerCompositor::updateScrollCoordinatedLayer): Split FrameScrollingNode into |
| 58 |
two cases. |
| 59 |
|
| 1 |
2018-02-06 Ms2ger <Ms2ger@igalia.com> |
60 |
2018-02-06 Ms2ger <Ms2ger@igalia.com> |
| 2 |
|
61 |
|
| 3 |
Initialize ImageBitmap::m_bitmapData in the constructor. |
62 |
Initialize ImageBitmap::m_bitmapData in the constructor. |