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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.cpp

Issue 2107153002: SVG object with same idrefs get conflicted even they are under different shadow root Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename the method in TreeScope class Created 4 years, 5 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/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index fdea83b380fc9ff57a3dc8783132d9474952136d..213c69aacfb3d1c44685bcbe150f952aaf73c3a6 100644
--- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
@@ -493,6 +493,18 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits()
element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::ViewportUnits));
}
}
+const SVGTreeScopeResources* TreeScope::svgExtensions()
+{
+ return m_svgTreeScopedResources.get();
+}
+
+SVGTreeScopeResources& TreeScope::accessSVGTreeScopedResources()
+{
+ if (!m_svgTreeScopedResources)
+ m_svgTreeScopedResources = new SVGTreeScopeResources(this);
+ return *m_svgTreeScopedResources;
+}
+
DEFINE_TRACE(TreeScope)
{
@@ -505,6 +517,7 @@ DEFINE_TRACE(TreeScope)
visitor->trace(m_imageMapsByName);
visitor->trace(m_scopedStyleResolver);
visitor->trace(m_radioButtonGroupScope);
+ visitor->trace(m_svgTreeScopedResources);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScope.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698