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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 2877973002: Use CorrespondingUseElement() in SVGElement::TreeScopeForIdResolution (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/LayoutTests/svg/custom/use-external-local-fill-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index b8cd48041a4b84638eb0383a5957905201b5c8bb..452f24e069c1ef0422edca218d0dc3559ba10685 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -88,7 +88,7 @@ void SVGElement::AttachLayoutTree(const AttachContext& context) {
TreeScope& SVGElement::TreeScopeForIdResolution() const {
const SVGElement* tree_scope_element = this;
- if (const SVGElement* element = CorrespondingElement())
+ if (const SVGElement* element = CorrespondingUseElement())
tree_scope_element = element;
return tree_scope_element->GetTreeScope();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/custom/use-external-local-fill-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698