Index: Source/core/svg/SVGSVGElement.h |
diff --git a/Source/core/svg/SVGSVGElement.h b/Source/core/svg/SVGSVGElement.h |
index 969aac5e240f04cbd965817045d73dd67e6f8aa9..54b39de7eade5e7411cb16f91af6362188bad14b 100644 |
--- a/Source/core/svg/SVGSVGElement.h |
+++ b/Source/core/svg/SVGSVGElement.h |
@@ -140,7 +140,7 @@ private: |
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; |
- virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; |
+ virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
virtual RenderObject* createRenderer(RenderStyle*); |
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
@@ -180,11 +180,16 @@ private: |
inline SVGSVGElement* toSVGSVGElement(Node* node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElement()); |
return static_cast<SVGSVGElement*>(node); |
} |
+inline const SVGSVGElement* toSVGSVGElement(const Node* node) |
+{ |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElement()); |
+ return static_cast<const SVGSVGElement*>(node); |
+} |
+ |
} // namespace WebCore |
#endif |