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..0c253d7315b336381d32759e2b740a6dfc8a95d1 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
@@ -79,10 +79,9 @@ void LayoutSVGShape::createPath() { |
} |
float LayoutSVGShape::dashScaleFactor() const { |
- if (!isSVGPathElement(element()) || |
- !styleRef().svgStyle().strokeDashArray()->size()) |
+ if (!styleRef().svgStyle().strokeDashArray()->size()) |
return 1; |
- return toSVGPathElement(*element()).pathLengthScaleFactor(); |
+ return toSVGGeometryElement(*element()).pathLengthScaleFactor(); |
} |
void LayoutSVGShape::updateShapeFromElement() { |