Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2412013003: Adding rootlayerscrolls-specific test expectations. (Closed)
Patch Set: rebased to latest code Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698