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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp

Issue 1553473002: Fix SVG {text, foreignObject} transform for css animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
index cc7ad13610ec10a955b4fe2a5674a63bbfdba025..1ce2c481cc894834f3134f66cd13c87b57c14acb 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -467,6 +467,17 @@ void LayoutSVGText::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) cons
quads.append(localToAbsoluteQuad(strokeBoundingBox(), 0 /* mode */, wasFixed));
}
+void LayoutSVGText::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
+{
+ if (diff.needsFullLayout()) {
+ setNeedsBoundariesUpdate();
+ if (style()->hasTransform())
fs 2016/01/02 16:41:13 Since LayoutSVGBlock doesn't do this, then presuma
+ setNeedsTransformUpdate();
+ }
+ LayoutSVGBlock::styleDidChange(diff, oldStyle);
+ SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
fs 2016/01/02 16:41:13 The call to the super-class (just above) would've
+}
+
void LayoutSVGText::paint(const PaintInfo& paintInfo, const LayoutPoint&) const
{
SVGTextPainter(*this).paint(paintInfo);

Powered by Google App Engine
This is Rietveld 408576698