Chromium Code Reviews| Index: Source/core/svg/SVGDocument.cpp |
| diff --git a/Source/core/svg/SVGDocument.cpp b/Source/core/svg/SVGDocument.cpp |
| index 6f3d4ec17c35b08861e8a7d0ff1897c4689be110..0bcdffa1a48d4fda9da8763843e94e1d2af1761d 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 XMLDocument* doc) |
|
Inactive
2014/01/24 00:00:38
We don't like abbreviations: doc -> document
|
| { |
| - Element* elem = documentElement(); |
| + Element* elem = doc->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(); |