| 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 ee7b856efd13430449f7dc570d41cffd756395df..ae7e95e59fdaf301584b9c3320bd31ebba8c8664 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| @@ -327,7 +327,7 @@ void SVGUseElement::buildPendingResource()
|
| return;
|
|
|
| AtomicString id;
|
| - Element* target = targetElementFromIRIString(hrefString(), treeScope(), &id, externalDocument);
|
| + Element* target = targetElementFromIRIString(hrefString(), treeScopeOrDocument(), &id, externalDocument);
|
| if (!target || !target->inShadowIncludingDocument()) {
|
| // If we can't find the target of an external element, just give up.
|
| // We can't observe if the target somewhen enters the external document, nor should we do it.
|
| @@ -553,7 +553,7 @@ void SVGUseElement::cloneNonMarkupEventListeners()
|
|
|
| bool SVGUseElement::hasCycleUseReferencing(const SVGUseElement& use, const ContainerNode& targetInstance, SVGElement*& newTarget) const
|
| {
|
| - Element* targetElement = targetElementFromIRIString(use.hrefString(), use.treeScope());
|
| + Element* targetElement = targetElementFromIRIString(use.hrefString(), use.treeScopeOrDocument());
|
| newTarget = 0;
|
| if (targetElement && targetElement->isSVGElement())
|
| newTarget = toSVGElement(targetElement);
|
|
|