Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1205)

Unified Diff: Source/core/svg/SVGElementInstance.cpp

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform the renames Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGElementInstance.h ('k') | Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
-
}
« no previous file with comments | « Source/core/svg/SVGElementInstance.h ('k') | Source/core/svg/SVGEllipseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698