Index: Source/core/svg/SVGDocument.cpp |
diff --git a/Source/core/svg/SVGDocument.cpp b/Source/core/svg/SVGDocument.cpp |
index 94f3293d7ad4d7bf0cf27e4dd3f2cb9dc14616ea..5e3a9bb7818fdd8e9c0a5b694df4b6b960488497 100644 |
--- a/Source/core/svg/SVGDocument.cpp |
+++ b/Source/core/svg/SVGDocument.cpp |
@@ -37,18 +37,22 @@ namespace WebCore { |
SVGDocument::SVGDocument(const DocumentInit& initializer) |
: XMLDocument(initializer, XMLDocumentClass | SVGDocumentClass) |
{ |
- ScriptWrappable::init(this); |
} |
-SVGSVGElement* SVGDocument::rootElement() const |
+SVGSVGElement* SVGDocument::rootElement(const Document* document) |
{ |
- Element* elem = documentElement(); |
+ Element* elem = document->documentElement(); |
if (elem && elem->hasTagName(SVGNames::svgTag)) |
return toSVGSVGElement(elem); |
return 0; |
} |
+SVGSVGElement* SVGDocument::rootElement() const |
+{ |
+ return rootElement(this); |
+} |
+ |
void SVGDocument::dispatchZoomEvent(float prevScale, float newScale) |
{ |
RefPtr<SVGZoomEvent> event = SVGZoomEvent::create(); |