| 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;
|
|
|