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

Unified Diff: Source/core/svg/SVGGraphicsElement.cpp

Issue 22900008: Make vw/vh units to work in css transforms. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
Index: Source/core/svg/SVGGraphicsElement.cpp
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp
index 42180a9505734cb3d254bf92cc84a1c6313e2782..58655c7bc57051674217b6d35316c26382e50256 100644
--- a/Source/core/svg/SVGGraphicsElement.cpp
+++ b/Source/core/svg/SVGGraphicsElement.cpp
@@ -70,7 +70,7 @@ AffineTransform SVGGraphicsElement::animatedLocalTransform() const
// Note: objectBoundingBox is an emptyRect for elements like pattern or clipPath.
// See the "Object bounding box units" section of http://dev.w3.org/csswg/css3-transforms/
TransformationMatrix transform;
- style->applyTransform(transform, renderer()->objectBoundingBox());
+ style->applyTransform(transform, renderer()->objectBoundingBox(), RenderStyle::IncludeTransformOrigin, renderer()->view());
// Flatten any 3D transform.
matrix = transform.toAffineTransform();

Powered by Google App Engine
This is Rietveld 408576698