Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1556)

Unified Diff: Source/core/svg/SVGDocument.cpp

Issue 146193003: Remove SVGDocument binding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/svg/SVGDocument.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/svg/SVGDocument.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698