| Index: Source/core/svg/SVGUseElement.cpp
|
| diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
|
| index 5f5da38c454b276677a232b8b6e195221b2a9120..e2bee4cb6647b1a18122ccfd4e208efd0895877f 100644
|
| --- a/Source/core/svg/SVGUseElement.cpp
|
| +++ b/Source/core/svg/SVGUseElement.cpp
|
| @@ -774,37 +774,6 @@ void SVGUseElement::associateInstancesWithShadowTreeElements(Node* target, SVGEl
|
| }
|
| }
|
|
|
| -SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element) const
|
| -{
|
| - if (!m_targetElementInstance) {
|
| - ASSERT(!inDocument());
|
| - return 0;
|
| - }
|
| -
|
| - return instanceForShadowTreeElement(element, m_targetElementInstance.get());
|
| -}
|
| -
|
| -SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element, SVGElementInstance* instance) const
|
| -{
|
| - ASSERT(element);
|
| - ASSERT(instance);
|
| -
|
| - // We're dispatching a mutation event during shadow tree construction
|
| - // this instance hasn't yet been associated to a shadowTree element.
|
| - if (!instance->shadowTreeElement())
|
| - return 0;
|
| -
|
| - if (element == instance->shadowTreeElement())
|
| - return instance;
|
| -
|
| - for (SVGElementInstance* current = instance->firstChild(); current; current = current->nextSibling()) {
|
| - if (SVGElementInstance* search = instanceForShadowTreeElement(element, current))
|
| - return search;
|
| - }
|
| -
|
| - return 0;
|
| -}
|
| -
|
| void SVGUseElement::invalidateShadowTree()
|
| {
|
| if (!inActiveDocument() || m_needsShadowTreeRecreation)
|
|
|