Index: Source/core/svg/SVGElementInstance.cpp |
diff --git a/Source/core/svg/SVGElementInstance.cpp b/Source/core/svg/SVGElementInstance.cpp |
index 9a14b1a4f8206a20c5f571d2c2f80fa909ca2c51..b30d43aeb9e83067ff67cfe2bed8e3d3054df482 100644 |
--- a/Source/core/svg/SVGElementInstance.cpp |
+++ b/Source/core/svg/SVGElementInstance.cpp |
@@ -163,32 +163,6 @@ void SVGElementInstance::appendChild(PassRefPtr<SVGElementInstance> child) |
appendChildToContainer<SVGElementInstance, SVGElementInstance>(*child, *this); |
} |
-void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element) |
-{ |
- if (!element || !element->inDocument()) |
- return; |
- |
- if (element->instanceUpdatesBlocked()) |
- return; |
- |
- const HashSet<SVGElement*>& set = element->instancesForElement(); |
- if (set.isEmpty()) |
- return; |
- |
- // Mark all use elements referencing 'element' for rebuilding |
- const HashSet<SVGElement*>::const_iterator end = set.end(); |
- for (HashSet<SVGElement*>::const_iterator it = set.begin(); it != end; ++it) { |
- (*it)->setCorrespondingElement(0); |
- |
- if (SVGUseElement* element = (*it)->correspondingUseElement()) { |
- ASSERT(element->inDocument()); |
- element->invalidateShadowTree(); |
- } |
- } |
- |
- element->document().updateRenderTreeIfNeeded(); |
-} |
- |
const AtomicString& SVGElementInstance::interfaceName() const |
{ |
return EventTargetNames::SVGElementInstance; |
@@ -247,17 +221,4 @@ EventTargetData& SVGElementInstance::ensureEventTargetData() |
return *eventTargetData(); |
} |
-SVGElementInstance::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetElement) |
- : m_targetElement(targetElement) |
-{ |
- if (m_targetElement) |
- m_targetElement->setInstanceUpdatesBlocked(true); |
-} |
- |
-SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
-{ |
- if (m_targetElement) |
- m_targetElement->setInstanceUpdatesBlocked(false); |
-} |
- |
} |