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

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

Issue 2549353002: Implement PaintLayer::scrollsWithViewport for SPv2. (Closed)
Patch Set: none 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 9f8f334c8eb89cae5de877c4269d1259391af09d..54740da2ce7fe2f14f99027821f6c05bbf3980de 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
@@ -14,6 +14,9 @@ ObjectPaintProperties::contentsProperties() const {
if (scrollTranslation())
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