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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/SVGSVGElement.cpp ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGScriptElement.cpp
diff --git a/Source/core/svg/SVGScriptElement.cpp b/Source/core/svg/SVGScriptElement.cpp
index 244122877006d074af7dc683d4baea4ab80e35c7..ade3e0edea9b1b59cc5f370d9e2d35a3c2d0ea14 100644
--- a/Source/core/svg/SVGScriptElement.cpp
+++ b/Source/core/svg/SVGScriptElement.cpp
@@ -158,7 +158,7 @@ void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons
{
SVGElement::addSubresourceAttributeURLs(urls);
- addSubresourceURL(urls, document()->completeURL(hrefCurrentValue()));
+ addSubresourceURL(urls, document().completeURL(hrefCurrentValue()));
}
String SVGScriptElement::sourceAttributeValue() const
@@ -208,7 +208,7 @@ bool SVGScriptElement::hasSourceAttribute() const
PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren()
{
- return adoptRef(new SVGScriptElement(tagQName(), document(), false, m_loader->alreadyStarted()));
+ return adoptRef(new SVGScriptElement(tagQName(), &document(), false, m_loader->alreadyStarted()));
}
void SVGScriptElement::setHaveFiredLoadEvent(bool haveFiredLoadEvent)
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698