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

Unified Diff: Source/core/svg/SVGTRefElement.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/SVGStyleElement.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTRefElement.cpp
diff --git a/Source/core/svg/SVGTRefElement.cpp b/Source/core/svg/SVGTRefElement.cpp
index a5fffcee7ce5b91affcbd726c8adc67e7128d2c8..1244e9ecb4178c2e9489e4a5d05106558986d914 100644
--- a/Source/core/svg/SVGTRefElement.cpp
+++ b/Source/core/svg/SVGTRefElement.cpp
@@ -167,9 +167,9 @@ void SVGTRefElement::detachTarget()
// Mark the referenced ID as pending.
String id;
- SVGURIReference::targetElementFromIRIString(hrefCurrentValue(), document(), &id);
+ SVGURIReference::targetElementFromIRIString(hrefCurrentValue(), &document(), &id);
if (!id.isEmpty())
- document()->accessSVGExtensions()->addPendingResource(id, this);
+ document().accessSVGExtensions()->addPendingResource(id, this);
}
bool SVGTRefElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -247,12 +247,12 @@ void SVGTRefElement::buildPendingResource()
return;
String id;
- RefPtr<Element> target = SVGURIReference::targetElementFromIRIString(hrefCurrentValue(), document(), &id);
+ RefPtr<Element> target = SVGURIReference::targetElementFromIRIString(hrefCurrentValue(), &document(), &id);
if (!target.get()) {
if (id.isEmpty())
return;
- document()->accessSVGExtensions()->addPendingResource(id, this);
+ document().accessSVGExtensions()->addPendingResource(id, this);
ASSERT(hasPendingResources());
return;
}
« no previous file with comments | « Source/core/svg/SVGStyleElement.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698