| Index: Source/core/svg/SVGAnimateElement.cpp
|
| diff --git a/Source/core/svg/SVGAnimateElement.cpp b/Source/core/svg/SVGAnimateElement.cpp
|
| index 4cfd3ea0599c768d46a4d406a2e089ad5fbb6e92..3bbdbcb793630c9d55bc5403b78f3609eb23ed75 100644
|
| --- a/Source/core/svg/SVGAnimateElement.cpp
|
| +++ b/Source/core/svg/SVGAnimateElement.cpp
|
| @@ -150,9 +150,9 @@ Vector<SVGElement*> findElementInstances(SVGElement* targetElement)
|
|
|
| animatedElements.append(targetElement);
|
|
|
| - const HashSet<SVGElement*>& instances = targetElement->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 = targetElement->instancesForElement();
|
| + const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator end = instances.end();
|
| + for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
|
| if (SVGElement* shadowTreeElement = *it)
|
| animatedElements.append(shadowTreeElement);
|
| }
|
| @@ -237,9 +237,9 @@ static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
|
| applyCSSPropertyToTarget(targetElement, id, valueAsString);
|
|
|
| // If the target element has instances, update them as well, w/o requiring the <use> tree to be rebuilt.
|
| - const HashSet<SVGElement*>& instances = targetElement->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 = targetElement->instancesForElement();
|
| + const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator end = instances.end();
|
| + for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
|
| if (SVGElement* shadowTreeElement = *it)
|
| applyCSSPropertyToTarget(shadowTreeElement, id, valueAsString);
|
| }
|
| @@ -257,9 +257,9 @@ static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetEle
|
| removeCSSPropertyFromTarget(targetElement, id);
|
|
|
| // If the target element has instances, update them as well, w/o requiring the <use> tree to be rebuilt.
|
| - const HashSet<SVGElement*>& instances = targetElement->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 = targetElement->instancesForElement();
|
| + const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator end = instances.end();
|
| + for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
|
| if (SVGElement* shadowTreeElement = *it)
|
| removeCSSPropertyFromTarget(shadowTreeElement, id);
|
| }
|
| @@ -284,9 +284,9 @@ static inline void notifyTargetAndInstancesAboutAnimValChange(SVGElement* target
|
| notifyTargetAboutAnimValChange(targetElement, attributeName);
|
|
|
| // If the target element has instances, update them as well, w/o requiring the <use> tree to be rebuilt.
|
| - const HashSet<SVGElement*>& instances = targetElement->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 = targetElement->instancesForElement();
|
| + const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator end = instances.end();
|
| + for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
|
| if (SVGElement* shadowTreeElement = *it)
|
| notifyTargetAboutAnimValChange(shadowTreeElement, attributeName);
|
| }
|
|
|