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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
Index: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
index 309b51310cdc3d36f5cd90c13d7ddcf626597f7e..6b5356491d7ccd92813542b58f4bd0bf30b0f96d 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
@@ -146,7 +146,7 @@ static inline AtomicString targetReferenceFromResource(SVGElement& element)
else
ASSERT_NOT_REACHED();
- return SVGURIReference::fragmentIdentifierFromIRIString(target, element.treeScope());
+ return SVGURIReference::fragmentIdentifierFromIRIString(target, element.treeScopeOrDocument());
}
static inline bool svgPaintTypeHasURL(SVGPaintType paintType)
@@ -217,7 +217,7 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object
const AtomicString& tagName = element->localName();
ASSERT(!tagName.isNull());
- TreeScope& treeScope = element->treeScope();
+ TreeScope& treeScope = element->treeScopeOrDocument();
SVGDocumentExtensions& extensions = element->document().accessSVGExtensions();
OwnPtr<SVGResources> resources;

Powered by Google App Engine
This is Rietveld 408576698