summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGTextPathElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGTextPathElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGTextPathElement.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/WebCore/svg/SVGTextPathElement.cpp b/Source/WebCore/svg/SVGTextPathElement.cpp
index 84c9a724a..c8cfdd294 100644
--- a/Source/WebCore/svg/SVGTextPathElement.cpp
+++ b/Source/WebCore/svg/SVGTextPathElement.cpp
@@ -24,6 +24,7 @@
#include "SVGTextPathElement.h"
#include "Attribute.h"
+#include "NodeRenderingContext.h"
#include "RenderSVGResource.h"
#include "RenderSVGTextPath.h"
#include "SVGElementInstance.h"
@@ -117,12 +118,12 @@ RenderObject* SVGTextPathElement::createRenderer(RenderArena* arena, RenderStyle
return new (arena) RenderSVGTextPath(this);
}
-bool SVGTextPathElement::childShouldCreateRenderer(Node* child) const
+bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const
{
- if (child->isTextNode()
- || child->hasTagName(SVGNames::aTag)
- || child->hasTagName(SVGNames::trefTag)
- || child->hasTagName(SVGNames::tspanTag))
+ if (childContext.node()->isTextNode()
+ || childContext.node()->hasTagName(SVGNames::aTag)
+ || childContext.node()->hasTagName(SVGNames::trefTag)
+ || childContext.node()->hasTagName(SVGNames::tspanTag))
return true;
return false;