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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
index 932e938c00b5740d9a0ab948c03843e6116b8d2b..3b9fd25a82dd9b5722e5b6007774c9c48397ff82 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
@@ -164,9 +164,9 @@ bool LayoutSVGShape::strokeContains(const FloatPoint& point,
void LayoutSVGShape::updateLocalTransform() {
SVGGraphicsElement* graphicsElement = toSVGGraphicsElement(element());
- if (graphicsElement->hasAnimatedLocalTransform()) {
- m_localTransform.setTransform(
- graphicsElement->calculateAnimatedLocalTransform());
+ if (graphicsElement->hasTransform(SVGElement::IncludeMotionTransform)) {
+ m_localTransform.setTransform(graphicsElement->calculateTransform(
+ SVGElement::IncludeMotionTransform));
} else {
m_localTransform = AffineTransform();
}

Powered by Google App Engine
This is Rietveld 408576698