| Index: Source/core/svg/SVGDocument.cpp
|
| diff --git a/Source/core/svg/SVGDocument.cpp b/Source/core/svg/SVGDocument.cpp
|
| index 5e3a9bb7818fdd8e9c0a5b694df4b6b960488497..1106167617364a47479c36c7147836ce0abc2fb2 100644
|
| --- a/Source/core/svg/SVGDocument.cpp
|
| +++ b/Source/core/svg/SVGDocument.cpp
|
| @@ -39,9 +39,9 @@ SVGDocument::SVGDocument(const DocumentInit& initializer)
|
| {
|
| }
|
|
|
| -SVGSVGElement* SVGDocument::rootElement(const Document* document)
|
| +SVGSVGElement* SVGDocument::rootElement(const Document& document)
|
| {
|
| - Element* elem = document->documentElement();
|
| + Element* elem = document.documentElement();
|
| if (elem && elem->hasTagName(SVGNames::svgTag))
|
| return toSVGSVGElement(elem);
|
|
|
| @@ -50,7 +50,7 @@ SVGSVGElement* SVGDocument::rootElement(const Document* document)
|
|
|
| SVGSVGElement* SVGDocument::rootElement() const
|
| {
|
| - return rootElement(this);
|
| + return rootElement(*this);
|
| }
|
|
|
| void SVGDocument::dispatchZoomEvent(float prevScale, float newScale)
|
|
|