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

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

Issue 693423002: Devirtualize animatedLocalTransform() and rename it for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some codes that snuck in 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
« no previous file with comments | « Source/core/svg/SVGTextElement.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextElement.cpp
diff --git a/Source/core/svg/SVGTextElement.cpp b/Source/core/svg/SVGTextElement.cpp
index 2ad49dfd9a1fcbd2867df64ea13c2ad8cadfe239..00e5d0b6204320742fc48ec175757e835c701182 100644
--- a/Source/core/svg/SVGTextElement.cpp
+++ b/Source/core/svg/SVGTextElement.cpp
@@ -32,31 +32,6 @@ inline SVGTextElement::SVGTextElement(Document& doc)
DEFINE_NODE_FACTORY(SVGTextElement)
-// We override SVGGraphics::animatedLocalTransform() so that the transform-origin
-// is not taken into account.
-AffineTransform SVGTextElement::animatedLocalTransform() const
-{
- AffineTransform matrix;
- RenderStyle* style = renderer() ? renderer()->style() : 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);
- // Flatten any 3D transform
- matrix = t.toAffineTransform();
- } else {
- transform()->currentValue()->concatenate(matrix);
- }
-
- const AffineTransform* transform = const_cast<SVGTextElement*>(this)->animateMotionTransform();
- if (transform)
- return *transform * matrix;
- return matrix;
-}
-
RenderObject* SVGTextElement::createRenderer(RenderStyle*)
{
return new RenderSVGText(this);
« no previous file with comments | « Source/core/svg/SVGTextElement.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698