diff options
Diffstat (limited to 'Source/WebCore/svg/SVGDocument.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGDocument.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/WebCore/svg/SVGDocument.cpp b/Source/WebCore/svg/SVGDocument.cpp index f5439489a..c29ede369 100644 --- a/Source/WebCore/svg/SVGDocument.cpp +++ b/Source/WebCore/svg/SVGDocument.cpp @@ -25,6 +25,7 @@ #include "EventNames.h" #include "ExceptionCode.h" #include "FrameView.h" +#include "NodeRenderingContext.h" #include "RenderView.h" #include "SVGElement.h" #include "SVGNames.h" @@ -95,10 +96,10 @@ void SVGDocument::updatePan(const FloatPoint& pos) const } } -bool SVGDocument::childShouldCreateRenderer(Node* node) const +bool SVGDocument::childShouldCreateRenderer(const NodeRenderingContext& childContext) const { - if (node->hasTagName(SVGNames::svgTag)) - return static_cast<SVGSVGElement*>(node)->isValid(); + if (childContext.node()->hasTagName(SVGNames::svgTag)) + return static_cast<SVGSVGElement*>(childContext.node())->isValid(); return true; } |