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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp

Issue 2549353002: Implement PaintLayer::scrollsWithViewport for SPv2. (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
index f216b15f52e9c2e2b0470649535aae4fbd1cf4f6..5638c0fdcbcfb524362da36077cde7c16614e784 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
@@ -20,6 +20,9 @@ ObjectPaintProperties::contentsProperties() const {
propertiesWithOffset.propertyTreeState.setTransform(scrollTranslation());
}
+ if (scroll())
+ propertiesWithOffset.propertyTreeState.setScroll(scroll());
+
if (overflowClip())
propertiesWithOffset.propertyTreeState.setClip(overflowClip());
else if (cssClip())

Powered by Google App Engine
This is Rietveld 408576698