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

Unified Diff: Source/core/dom/Document.cpp

Issue 333413006: Prepare SVGElement references in Document for oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add missing > Created 6 years, 6 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
« Source/core/dom/Document.h ('K') | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 80be86e37fca224957d886d9981a6887b1408db4..0743a3226f13560ebe1c8f9573a9368730416560 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -2099,8 +2099,8 @@ bool Document::dirtyElementsForLayerUpdate()
{
if (m_layerUpdateSVGFilterElements.isEmpty())
return false;
- HashSet<Element*>::iterator end = m_layerUpdateSVGFilterElements.end();
- for (HashSet<Element*>::iterator it = m_layerUpdateSVGFilterElements.begin(); it != end; ++it)
+
+ for (WillBeHeapHashSet<RawPtrWillBeMember<Element> >::iterator it = m_layerUpdateSVGFilterElements.begin(), end = m_layerUpdateSVGFilterElements.end(); it != end; ++it)
(*it)->setNeedsStyleRecalc(LocalStyleChange);
m_layerUpdateSVGFilterElements.clear();
return true;
@@ -2139,12 +2139,11 @@ void Document::updateUseShadowTreesIfNeeded()
if (m_useElementsNeedingUpdate.isEmpty())
return;
- Vector<SVGUseElement*> elements;
+ WillBeHeapVector<RawPtrWillBeMember<SVGUseElement> > elements;
copyToVector(m_useElementsNeedingUpdate, elements);
m_useElementsNeedingUpdate.clear();
- Vector<SVGUseElement*>::iterator end = elements.end();
- for (Vector<SVGUseElement*>::iterator it = elements.begin(); it != end; ++it)
+ for (WillBeHeapVector<RawPtrWillBeMember<SVGUseElement> >::iterator it = elements.begin(), end = elements.end(); it != end; ++it)
(*it)->buildPendingResource();
}
@@ -5839,6 +5838,8 @@ void Document::trace(Visitor* visitor)
visitor->trace(m_mediaQueryMatcher);
visitor->trace(m_registrationContext);
visitor->trace(m_associatedFormControls);
+ visitor->trace(m_useElementsNeedingUpdate);
+ visitor->trace(m_layerUpdateSVGFilterElements);
visitor->trace(m_templateDocument);
visitor->trace(m_templateDocumentHost);
visitor->trace(m_visibilityObservers);
« Source/core/dom/Document.h ('K') | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698