| Index: Source/core/svg/SVGElementInstance.cpp
|
| diff --git a/Source/core/svg/SVGElementInstance.cpp b/Source/core/svg/SVGElementInstance.cpp
|
| index c9e7259c7954ae5daacbabe3e9ea45c74a039cb7..a25bf7f489e49cd6fa142a30b5d6e664d9562c3a 100644
|
| --- a/Source/core/svg/SVGElementInstance.cpp
|
| +++ b/Source/core/svg/SVGElementInstance.cpp
|
| @@ -172,7 +172,7 @@ void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element)
|
| if (!element || !element->inDocument())
|
| return;
|
|
|
| - if (element->isSVGStyledElement() && toSVGStyledElement(element)->instanceUpdatesBlocked())
|
| + if (element->instanceUpdatesBlocked())
|
| return;
|
|
|
| const HashSet<SVGElementInstance*>& set = element->instancesForElement();
|
| @@ -256,7 +256,7 @@ EventTargetData* SVGElementInstance::ensureEventTargetData()
|
| }
|
|
|
| SVGElementInstance::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetElement)
|
| - : m_targetElement(targetElement->isSVGStyledElement() ? toSVGStyledElement(targetElement) : 0)
|
| + : m_targetElement(targetElement)
|
| {
|
| if (m_targetElement)
|
| m_targetElement->setInstanceUpdatesBlocked(true);
|
|
|