| 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 fe8395d9c685a788366f03faa7439430b2ec6fff..c8a31ffc6b6fb0985d4c0af31856dc2716b35632 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
| @@ -442,10 +442,8 @@ void SVGUseElement::buildShadowAndInstanceTree(SVGElement& target)
|
|
|
| addReferencesToFirstDegreeNestedUseElements(target);
|
|
|
| - if (instanceTreeIsLoading()) {
|
| - cloneNonMarkupEventListeners();
|
| + if (instanceTreeIsLoading())
|
| return;
|
| - }
|
|
|
| // Assure shadow tree building was successful.
|
| ASSERT(m_targetElementInstance);
|
| @@ -464,8 +462,6 @@ void SVGUseElement::buildShadowAndInstanceTree(SVGElement& target)
|
| m_targetElementInstance = toSVGElement(shadowTreeRootElement->firstChild());
|
| ASSERT(m_targetElementInstance->parentNode() == shadowTreeRootElement);
|
|
|
| - cloneNonMarkupEventListeners();
|
| -
|
| // Update relative length information.
|
| updateRelativeLengthsInformation();
|
| }
|
| @@ -548,14 +544,6 @@ void SVGUseElement::addReferencesToFirstDegreeNestedUseElements(SVGElement& targ
|
| addReferenceTo(useElement);
|
| }
|
|
|
| -void SVGUseElement::cloneNonMarkupEventListeners()
|
| -{
|
| - for (SVGElement& element : Traversal<SVGElement>::descendantsOf(*userAgentShadowRoot())) {
|
| - if (EventTargetData* data = element.correspondingElement()->eventTargetData())
|
| - data->eventListenerMap.copyEventListenersNotCreatedFromMarkupToTarget(&element);
|
| - }
|
| -}
|
| -
|
| bool SVGUseElement::hasCycleUseReferencing(const SVGUseElement& use, const ContainerNode& targetInstance, SVGElement*& newTarget) const
|
| {
|
| Element* targetElement = targetElementFromIRIString(use.hrefString(), use.treeScope());
|
|
|