|
Lines 38-43
a/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp_sec1
|
| 38 |
#include "MainFrame.h" |
38 |
#include "MainFrame.h" |
| 39 |
#include "Page.h" |
39 |
#include "Page.h" |
| 40 |
#include "PerformanceLoggingClient.h" |
40 |
#include "PerformanceLoggingClient.h" |
|
|
41 |
#include "RenderLayerCompositor.h" |
| 41 |
#include "ScrollAnimator.h" |
42 |
#include "ScrollAnimator.h" |
| 42 |
#include "ScrollingConstraints.h" |
43 |
#include "ScrollingConstraints.h" |
| 43 |
#include "ScrollingStateFixedNode.h" |
44 |
#include "ScrollingStateFixedNode.h" |
|
Lines 220-226
void AsyncScrollingCoordinator::frameViewRootLayerDidChange(FrameView& frameView
a/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp_sec2
|
| 220 |
|
221 |
|
| 221 |
// If the root layer does not have a ScrollingStateNode, then we should create one. |
222 |
// If the root layer does not have a ScrollingStateNode, then we should create one. |
| 222 |
ensureRootStateNodeForFrameView(frameView); |
223 |
ensureRootStateNodeForFrameView(frameView); |
| 223 |
ASSERT(m_scrollingStateTree->rootStateNode()); |
224 |
ASSERT(m_scrollingStateTree->stateNodeForID(frameView.scrollLayerID())); |
| 224 |
|
225 |
|
| 225 |
ScrollingCoordinator::frameViewRootLayerDidChange(frameView); |
226 |
ScrollingCoordinator::frameViewRootLayerDidChange(frameView); |
| 226 |
|
227 |
|
|
Lines 512-518
void AsyncScrollingCoordinator::reconcileViewportConstrainedLayerPositions(const
a/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp_sec3
|
| 512 |
void AsyncScrollingCoordinator::ensureRootStateNodeForFrameView(FrameView& frameView) |
513 |
void AsyncScrollingCoordinator::ensureRootStateNodeForFrameView(FrameView& frameView) |
| 513 |
{ |
514 |
{ |
| 514 |
ASSERT(frameView.scrollLayerID()); |
515 |
ASSERT(frameView.scrollLayerID()); |
| 515 |
attachToStateTree(FrameScrollingNode, frameView.scrollLayerID(), 0); |
516 |
ScrollingNodeID parentNodeID = 0; |
|
|
517 |
auto& frame = frameView.frame(); |
| 518 |
if (!frame.isMainFrame()) { |
| 519 |
parentNodeID = RenderLayerCompositor::scrollCoordinatedAncestorInParentOfFrame(frame); |
| 520 |
ASSERT(parentNodeID); |
| 521 |
} |
| 522 |
attachToStateTree(FrameScrollingNode, frameView.scrollLayerID(), parentNodeID); |
| 516 |
} |
523 |
} |
| 517 |
|
524 |
|
| 518 |
void AsyncScrollingCoordinator::updateFrameScrollingNode(ScrollingNodeID nodeID, GraphicsLayer* layer, GraphicsLayer* scrolledContentsLayer, GraphicsLayer* counterScrollingLayer, GraphicsLayer* insetClipLayer, const ScrollingGeometry* scrollingGeometry) |
525 |
void AsyncScrollingCoordinator::updateFrameScrollingNode(ScrollingNodeID nodeID, GraphicsLayer* layer, GraphicsLayer* scrolledContentsLayer, GraphicsLayer* counterScrollingLayer, GraphicsLayer* insetClipLayer, const ScrollingGeometry* scrollingGeometry) |