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

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

Issue 267303004: Oilpan: cleanup based on review comments after removal of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index cdb277c033d1fc467a8d29f2b34f37f3188f3baa..68144d69ce59ebc20a1c5b44d31d9864041351a4 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -822,9 +822,9 @@ void SVGUseElement::invalidateShadowTree()
void SVGUseElement::invalidateDependentShadowTrees()
{
// Recursively invalidate dependent <use> shadow trees
- const HashSet<SVGElement*>& instances = instancesForElement();
- const HashSet<SVGElement*>::const_iterator end = instances.end();
- for (HashSet<SVGElement*>::const_iterator it = instances.begin(); it != end; ++it) {
+ const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = instancesForElement();
+ const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator end = instances.end();
+ for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
if (SVGUseElement* element = (*it)->correspondingUseElement()) {
ASSERT(element->inDocument());
element->invalidateShadowTree();
@@ -926,4 +926,10 @@ void SVGUseElement::setDocumentResource(ResourcePtr<DocumentResource> resource)
m_resource->addClient(this);
}
+void SVGUseElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_targetElementInstance);
+ SVGGraphicsElement::trace(visitor);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698