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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.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/layout/svg/LayoutSVGResourceContainer.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
index 7dbedb1510eff2c7f6a7b63323f613e61350b091..0461b7cf2b909a9e96beaabc1f42b96e88740faa 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
@@ -21,7 +21,7 @@
#define LayoutSVGResourceContainer_h
#include "core/layout/svg/LayoutSVGHiddenContainer.h"
-#include "core/svg/SVGDocumentExtensions.h"
+#include "core/svg/SVGTreeScopeResources.h"
namespace blink {
@@ -120,7 +120,7 @@ inline LayoutSVGResourceContainer* getLayoutSVGResourceContainerById(
return nullptr;
if (LayoutSVGResourceContainer* layoutResource =
- treeScope.document().accessSVGExtensions().resourceById(id))
+ treeScope.ensureSVGTreeScopedResources().resourceById(id))
return layoutResource;
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698