Chromium Code Reviews| 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..11fa7c4b2787447d659454717675a4390157aa07 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
| @@ -79,10 +79,10 @@ void LayoutSVGShape::createPath() { |
| } |
| float LayoutSVGShape::dashScaleFactor() const { |
| - if (!isSVGPathElement(element()) || |
| + if (!element()->isSVGGeometryElement() || |
|
fs
2016/11/28 10:29:42
This is expected to be false always (see construct
Shanmuga Pandi
2016/11/28 12:24:14
Done.
|
| !styleRef().svgStyle().strokeDashArray()->size()) |
| return 1; |
| - return toSVGPathElement(*element()).pathLengthScaleFactor(); |
| + return toSVGGeometryElement(*element()).pathLengthScaleFactor(); |
| } |
| void LayoutSVGShape::updateShapeFromElement() { |