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

Unified Diff: Source/core/rendering/svg/RenderSVGText.cpp

Issue 23532011: Introduce toSVGTextElement(), and use it (Closed) 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
« no previous file with comments | « no previous file | Source/core/svg/SVGTextElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGText.cpp
diff --git a/Source/core/rendering/svg/RenderSVGText.cpp b/Source/core/rendering/svg/RenderSVGText.cpp
index 14bc52fa03e5da085b6acbd3ca4dd0a7ea16757f..6552c0bc917c795adbdac0aa8c33bd6cd5baf1b1 100644
--- a/Source/core/rendering/svg/RenderSVGText.cpp
+++ b/Source/core/rendering/svg/RenderSVGText.cpp
@@ -350,8 +350,7 @@ void RenderSVGText::layout()
bool updateCachedBoundariesInParents = false;
if (m_needsTransformUpdate) {
- SVGTextElement* text = static_cast<SVGTextElement*>(node());
- m_localTransform = text->animatedLocalTransform();
+ m_localTransform = toSVGTextElement(node())->animatedLocalTransform();
m_needsTransformUpdate = false;
updateCachedBoundariesInParents = true;
}
« no previous file with comments | « no previous file | Source/core/svg/SVGTextElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698