| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 92f5c6dd47b0fc04183972ac590261bdfc925442..d3f369c7623b89ffdd4aa5a5186db3a6b1d0e975 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -622,7 +622,7 @@ void Document::dispose()
|
| m_scriptedAnimationController.clear();
|
|
|
| if (svgExtensions())
|
| - accessSVGExtensions()->pauseAnimations();
|
| + accessSVGExtensions().pauseAnimations();
|
|
|
| m_lifecycle.advanceTo(DocumentLifecycle::Disposed);
|
| lifecycleNotifier().notifyDocumentWasDisposed();
|
| @@ -2103,7 +2103,7 @@ void Document::detach(const AttachContext& context)
|
| m_scriptedAnimationController.clear();
|
|
|
| if (svgExtensions())
|
| - accessSVGExtensions()->pauseAnimations();
|
| + accessSVGExtensions().pauseAnimations();
|
|
|
| // FIXME: This shouldn't be needed once DOMWindow becomes ExecutionContext.
|
| if (m_domWindow)
|
| @@ -2460,7 +2460,7 @@ void Document::implicitClose()
|
| // To align the HTML load event and the SVGLoad event for the outermost <svg> element, fire it from
|
| // here, instead of doing it from SVGElement::finishedParsingChildren.
|
| if (svgExtensions())
|
| - accessSVGExtensions()->dispatchSVGLoadEventToOutermostSVGElements();
|
| + accessSVGExtensions().dispatchSVGLoadEventToOutermostSVGElements();
|
|
|
| if (protectedWindow)
|
| protectedWindow->documentWasClosed();
|
| @@ -2517,7 +2517,7 @@ void Document::implicitClose()
|
| }
|
|
|
| if (svgExtensions())
|
| - accessSVGExtensions()->startAnimations();
|
| + accessSVGExtensions().startAnimations();
|
| }
|
|
|
| bool Document::dispatchBeforeUnloadEvent(Chrome& chrome, bool& didAllowNavigation)
|
| @@ -4345,11 +4345,11 @@ const SVGDocumentExtensions* Document::svgExtensions()
|
| return m_svgExtensions.get();
|
| }
|
|
|
| -SVGDocumentExtensions* Document::accessSVGExtensions()
|
| +SVGDocumentExtensions& Document::accessSVGExtensions()
|
| {
|
| if (!m_svgExtensions)
|
| m_svgExtensions = adoptPtr(new SVGDocumentExtensions(this));
|
| - return m_svgExtensions.get();
|
| + return *m_svgExtensions;
|
| }
|
|
|
| bool Document::hasSVGRootNode() const
|
|
|