| 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);
|
| +}
|
| +
|
| }
|
|
|