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

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

Issue 701433002: Lazily allocate svg shape transforms, shrink RenderSVGShape by 44B (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 61075da967ce57a3aa76961c4b597e8d09c15498..69b1ab3d43db17259e347ebe4e49ffd5ddf161d7 100644
--- a/Source/core/svg/SVGGraphicsElement.cpp
+++ b/Source/core/svg/SVGGraphicsElement.cpp
@@ -122,6 +122,12 @@ PassRefPtr<SVGMatrixTearOff> SVGGraphicsElement::getScreenCTMFromJavascript()
return SVGMatrixTearOff::create(getScreenCTM());
}
+bool SVGGraphicsElement::hasAnimatedLocalTransform() const
+{
+ RenderStyle* style = renderer() ? renderer()->style() : 0;
+ return (style && style->hasTransform()) || !m_transform->currentValue()->isEmpty() || hasSVGRareData();
fs 2014/11/05 13:46:47 Maybe there ought to be a comment here pointing to
pdr. 2014/11/07 04:20:27 Excellent point. Done
+}
+
AffineTransform SVGGraphicsElement::calculateAnimatedLocalTransform() const
{
AffineTransform matrix;
« Source/core/rendering/svg/RenderSVGShape.cpp ('K') | « Source/core/svg/SVGGraphicsElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698