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

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

Issue 1127773003: This CL clean up patch in SVGElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/SVGTextPositioningElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGURIReference.cpp
diff --git a/Source/core/svg/SVGURIReference.cpp b/Source/core/svg/SVGURIReference.cpp
index dec5ed14655838c1aeb4504e8b509560533ee97a..382bb24f100171d44e23a4e70604741e69170e10 100644
--- a/Source/core/svg/SVGURIReference.cpp
+++ b/Source/core/svg/SVGURIReference.cpp
@@ -84,13 +84,13 @@ Element* SVGURIReference::targetElementFromIRIString(const String& iri, const Tr
AtomicString id;
KURL url = urlFromIRIStringWithFragmentIdentifier(iri, document, id);
if (url == KURL())
- return 0;
+ return nullptr;
if (fragmentIdentifier)
*fragmentIdentifier = id;
if (id.isEmpty())
- return 0;
+ return nullptr;
if (externalDocument) {
// Enforce that the referenced url matches the url of the document that we've loaded for it!
@@ -100,7 +100,7 @@ Element* SVGURIReference::targetElementFromIRIString(const String& iri, const Tr
// Exit early if the referenced url is external, and we have no externalDocument given.
if (isExternalURIReference(iri, document))
- return 0;
+ return nullptr;
return treeScope.getElementById(id);
}
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698