| Index: Source/core/rendering/svg/RenderSVGTextPath.cpp
|
| diff --git a/Source/core/rendering/svg/RenderSVGTextPath.cpp b/Source/core/rendering/svg/RenderSVGTextPath.cpp
|
| index a1fbae363e60aca6baba3e7c777f0912069371f5..f2068b80ac5453eaf11eac0a92338069850a7c1d 100644
|
| --- a/Source/core/rendering/svg/RenderSVGTextPath.cpp
|
| +++ b/Source/core/rendering/svg/RenderSVGTextPath.cpp
|
| @@ -35,7 +35,7 @@ RenderSVGTextPath::RenderSVGTextPath(Element* element)
|
|
|
| Path RenderSVGTextPath::layoutPath() const
|
| {
|
| - SVGTextPathElement* textPathElement = static_cast<SVGTextPathElement*>(node());
|
| + SVGTextPathElement* textPathElement = toSVGTextPathElement(node());
|
| Element* targetElement = SVGURIReference::targetElementFromIRIString(textPathElement->hrefCurrentValue(), textPathElement->document());
|
| if (!targetElement || !targetElement->hasTagName(SVGNames::pathTag))
|
| return Path();
|
| @@ -56,17 +56,17 @@ Path RenderSVGTextPath::layoutPath() const
|
|
|
| float RenderSVGTextPath::startOffset() const
|
| {
|
| - return static_cast<SVGTextPathElement*>(node())->startOffsetCurrentValue().valueAsPercentage();
|
| + return toSVGTextPathElement(node())->startOffsetCurrentValue().valueAsPercentage();
|
| }
|
|
|
| bool RenderSVGTextPath::exactAlignment() const
|
| {
|
| - return static_cast<SVGTextPathElement*>(node())->spacingCurrentValue() == SVGTextPathSpacingExact;
|
| + return toSVGTextPathElement(node())->spacingCurrentValue() == SVGTextPathSpacingExact;
|
| }
|
|
|
| bool RenderSVGTextPath::stretchMethod() const
|
| {
|
| - return static_cast<SVGTextPathElement*>(node())->methodCurrentValue() == SVGTextPathMethodStretch;
|
| + return toSVGTextPathElement(node())->methodCurrentValue() == SVGTextPathMethodStretch;
|
| }
|
|
|
| }
|
|
|