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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGUseElement.cpp ('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/animation/SVGSMILElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
index 4a0b73756cebe5719c9df47e1d3f24ff49437a5e..82abb0dd8674183b2333f2538e4dc0c9eba97bb0 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
@@ -245,11 +245,11 @@ void SVGSMILElement::buildPendingResource()
if (!svgTarget) {
// Do not register as pending if we are already pending this resource.
- if (document().accessSVGExtensions().isElementPendingResource(this, id))
+ if (treeScope().accessSVGTreeScopedResources().isElementPendingResource(this, id))
return;
if (!id.isEmpty()) {
- document().accessSVGExtensions().addPendingResource(id, this);
+ treeScope().accessSVGTreeScopedResources().addPendingResource(id, this);
ASSERT(hasPendingResources());
}
} else {
@@ -627,8 +627,8 @@ void SVGSMILElement::connectEventBaseConditions()
ASSERT(!condition->syncBase());
SVGElement* eventBase = eventBaseFor(*condition);
if (!eventBase) {
- if (!condition->baseID().isEmpty() && !document().accessSVGExtensions().isElementPendingResource(this, AtomicString(condition->baseID())))
- document().accessSVGExtensions().addPendingResource(AtomicString(condition->baseID()), this);
+ if (!condition->baseID().isEmpty() && !treeScope().accessSVGTreeScopedResources().isElementPendingResource(this, AtomicString(condition->baseID())))
+ treeScope().accessSVGTreeScopedResources().addPendingResource(AtomicString(condition->baseID()), this);
continue;
}
ASSERT(!condition->eventListener());
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGUseElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698