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

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

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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/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 34ebfa02ff086decd5eb31f2e106473bd8d4c85d..6aef4e53a4aec95869251d539d634f518b41017d 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
@@ -234,7 +234,7 @@ void SVGSMILElement::buildPendingResource()
if (href.isEmpty())
target = parentNode() && parentNode()->isElementNode() ? toElement(parentNode()) : nullptr;
else
- target = SVGURIReference::targetElementFromIRIString(href, treeScope(), &id);
+ target = SVGURIReference::targetElementFromIRIString(href, treeScopeOrDocument(), &id);
SVGElement* svgTarget = target && target->isSVGElement() ? toSVGElement(target) : nullptr;
if (svgTarget && !svgTarget->inShadowIncludingDocument())
@@ -576,7 +576,7 @@ void SVGSMILElement::svgAttributeChanged(const QualifiedName& attrName)
inline SVGElement* SVGSMILElement::eventBaseFor(const Condition& condition)
{
- Element* eventBase = condition.baseID().isEmpty() ? targetElement() : treeScope().getElementById(AtomicString(condition.baseID()));
+ Element* eventBase = condition.baseID().isEmpty() ? targetElement() : treeScopeOrDocument().getElementById(AtomicString(condition.baseID()));
if (eventBase && eventBase->isSVGElement())
return toSVGElement(eventBase);
return nullptr;
@@ -591,7 +591,7 @@ void SVGSMILElement::connectSyncBaseConditions()
Condition* condition = m_conditions[n].get();
if (condition->getType() == Condition::Syncbase) {
ASSERT(!condition->baseID().isEmpty());
- Element* element = treeScope().getElementById(AtomicString(condition->baseID()));
+ Element* element = treeScopeOrDocument().getElementById(AtomicString(condition->baseID()));
if (!element || !isSVGSMILElement(*element)) {
condition->setSyncBase(0);
continue;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGViewSpec.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698