Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
| index c5abafeced962ebdf8f4da75784b1ecd0c03ce32..6913f3cf5bcff793406222be09a71fb6fd696b78 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
| @@ -683,6 +683,14 @@ void LayoutTreeAsText::writeLayers(TextStream& ts, |
| toLayoutPart(layer->layoutObject())->isThrottledFrameView()) |
| shouldPaint = false; |
| + if (RuntimeEnabledFeatures::rootLayerScrollingEnabled() && |
| + !layer->isRootLayer()) { |
| + ScrollableArea* scrollableArea = rootLayer->getScrollableArea(); |
| + FloatPoint adjustedScrollOffset = |
| + scrollableArea->scrollPosition() + scrollableArea->scrollOrigin(); |
|
skobes
2016/10/13 18:06:27
Adding the scroll origin doesn't make sense, the s
|
| + layerBounds.moveBy(roundedIntPoint(adjustedScrollOffset)); |
| + } |
| + |
| Vector<PaintLayerStackingNode*>* negList = |
| layer->stackingNode()->negZOrderList(); |
| bool paintsBackgroundSeparately = negList && negList->size() > 0; |