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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp

Issue 2705163008: Cleanup the SVGTreeScopeResources interface (Closed)
Patch Set: Rebase Created 3 years, 10 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 8d8ba5783d7a77f276227ea00b22858a02c7f404..b7f10aac622757aedc738a1d2b7be8b5fc591a38 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
@@ -209,10 +209,10 @@ void SVGSMILElement::buildPendingResource() {
if (!svgTarget) {
// Do not register as pending if we are already pending this resource.
if (treeScope().ensureSVGTreeScopedResources().isElementPendingResource(
- this, id))
+ *this, id))
return;
if (!id.isEmpty()) {
- treeScope().ensureSVGTreeScopedResources().addPendingResource(id, this);
+ treeScope().ensureSVGTreeScopedResources().addPendingResource(id, *this);
DCHECK(hasPendingResources());
}
} else {
@@ -572,10 +572,11 @@ void SVGSMILElement::connectEventBaseConditions() {
if (!condition->baseID().isEmpty() &&
!treeScope()
.ensureSVGTreeScopedResources()
- .isElementPendingResource(this,
- AtomicString(condition->baseID())))
+ .isElementPendingResource(*this,
+ AtomicString(condition->baseID()))) {
treeScope().ensureSVGTreeScopedResources().addPendingResource(
- AtomicString(condition->baseID()), this);
+ 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