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

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

Issue 2633143002: SVG objects with same idrefs conflict when under different shadow root (Closed)
Patch Set: ensureSVGTreeScopedResources(); add comment Created 3 years, 11 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/svg/SVGElement.h
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.h b/third_party/WebKit/Source/core/svg/SVGElement.h
index e274cefbdea02031c1e1b336df937c7c34016552..bf453f915606f77abf257048f8afce72ac48a439 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGElement.h
@@ -58,6 +58,10 @@ class CORE_EXPORT SVGElement : public Element {
int tabIndex() const override;
bool supportsFocus() const override { return false; }
+ // The TreeScope this element should resolve id's against. This differs from
+ // the regular Node::treeScope() by taking <use> into account.
+ TreeScope& treeScopeForIdResolution() const;
+
bool isOutermostSVGSVGElement() const;
bool hasTagName(const SVGQualifiedName& name) const {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698