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

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

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/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index ce93141fc31647282b789d818d956be814bd24a1..df2b4d7e0ac00a3c7d447a407858ac1bb07dc555 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -38,11 +38,11 @@
#include "core/fetch/FetchRequest.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/layout/svg/LayoutSVGTransformableContainer.h"
-#include "core/svg/SVGDocumentExtensions.h"
#include "core/svg/SVGGElement.h"
#include "core/svg/SVGLengthContext.h"
#include "core/svg/SVGSVGElement.h"
#include "core/svg/SVGSymbolElement.h"
+#include "core/svg/SVGTreeScopeResources.h"
#include "core/xml/parser/XMLDocumentParser.h"
#include "wtf/Vector.h"
@@ -316,8 +316,8 @@ Element* SVGUseElement::resolveTargetElement() {
return target;
// Don't record any pending references for external resources.
if (!m_resource) {
- document().accessSVGExtensions().addPendingResource(m_elementIdentifier,
- this);
+ treeScope().ensureSVGTreeScopedResources().addPendingResource(
+ m_elementIdentifier, this);
DCHECK(hasPendingResources());
}
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698