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

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: Fix some of the comments 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
Index: Source/core/svg/SVGDocument.cpp
diff --git a/Source/core/svg/SVGDocument.cpp b/Source/core/svg/SVGDocument.cpp
index 6f3d4ec17c35b08861e8a7d0ff1897c4689be110..2e52834f17c50c655f6470f63480448e924e7078 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();
Inactive 2014/01/24 00:23:47 do we need an isSVGDocument() check or will this d
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();

Powered by Google App Engine
This is Rietveld 408576698