| Index: Source/core/svg/SVGUseElement.cpp
|
| diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
|
| index cdb277c033d1fc467a8d29f2b34f37f3188f3baa..6f1810fc5577b20348396ba8b71d26a62a1ec722 100644
|
| --- a/Source/core/svg/SVGUseElement.cpp
|
| +++ b/Source/core/svg/SVGUseElement.cpp
|
| @@ -324,15 +324,15 @@ void SVGUseElement::scheduleShadowTreeRecreation()
|
|
|
| void SVGUseElement::clearResourceReferences()
|
| {
|
| - // FIXME: We should try to optimize this, to at least allow partial reclones.
|
| - if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot())
|
| - shadowTreeRootElement->removeChildren();
|
| -
|
| if (m_targetElementInstance) {
|
| m_targetElementInstance->detach();
|
| m_targetElementInstance = nullptr;
|
| }
|
|
|
| + // FIXME: We should try to optimize this, to at least allow partial reclones.
|
| + if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot())
|
| + shadowTreeRootElement->removeChildren();
|
| +
|
| m_needsShadowTreeRecreation = false;
|
| document().unscheduleUseShadowTreeUpdate(*this);
|
|
|
|
|