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

Unified Diff: Source/core/svg/SVGTextElement.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/SVGTextElement.cpp
diff --git a/Source/core/svg/SVGTextElement.cpp b/Source/core/svg/SVGTextElement.cpp
index fef8f161338988a871fa7578d7bd164aac5ea166..40d4c55da99b82788f6aa2263d82973c18f0ccd6 100644
--- a/Source/core/svg/SVGTextElement.cpp
+++ b/Source/core/svg/SVGTextElement.cpp
@@ -48,13 +48,14 @@ AffineTransform SVGTextElement::animatedLocalTransform() const
{
AffineTransform matrix;
RenderStyle* style = renderer() ? renderer()->style() : 0;
+ RenderView* renderView = renderer() ? renderer()->view() : 0;
// if CSS property was set, use that, otherwise fallback to attribute (if set)
if (style && style->hasTransform()) {
TransformationMatrix t;
// For now, the transform-origin is not taken into account
// Also, any percentage values will not be taken into account
- style->applyTransform(t, IntSize(0, 0), RenderStyle::ExcludeTransformOrigin);
+ style->applyTransform(t, IntSize(0, 0), RenderStyle::ExcludeTransformOrigin, renderView);
// Flatten any 3D transform
matrix = t.toAffineTransform();
} else {
« Source/core/platform/graphics/GraphicsLayer.h ('K') | « Source/core/svg/SVGGraphicsElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698