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

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

Issue 2552093002: SVG root's contentsProperties should for contents in HTML space (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..9f8f334c8eb89cae5de877c4269d1259391af09d 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
@@ -10,15 +10,9 @@ ObjectPaintProperties::PropertyTreeStateWithOffset
ObjectPaintProperties::contentsProperties() const {
ObjectPaintProperties::PropertyTreeStateWithOffset propertiesWithOffset =
*localBorderBoxProperties();
- if (svgLocalToBorderBoxTransform()) {
- propertiesWithOffset.propertyTreeState.setTransform(
- svgLocalToBorderBoxTransform());
- // There's no paint offset for the contents because
- // svgLocalToBorderBoxTransform bakes in the paint offset.
- propertiesWithOffset.paintOffset = LayoutPoint();
- } else if (scrollTranslation()) {
+
+ if (scrollTranslation())
propertiesWithOffset.propertyTreeState.setTransform(scrollTranslation());
- }
if (overflowClip())
propertiesWithOffset.propertyTreeState.setClip(overflowClip());
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698