Lines Matching refs:targetElement

58     SVGElement* targetElement = this->targetElement();
59 if (!targetElement)
68 SVGElement* targetElement = this->targetElement();
69 if (!targetElement || !isSVGAnimateElement(*resultElement))
91 m_animator->setContextElement(targetElement);
108 SVGElement* targetElement = this->targetElement();
109 if (!targetElement)
119 SVGElement* targetElement = this->targetElement();
120 if (!targetElement)
139 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > findElementInstances(SVGElement* targetElement)
141 ASSERT(targetElement);
144 animatedElements.append(targetElement);
146 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = targetElement->instancesForElement();
162 SVGElement* targetElement = this->targetElement();
164 ShouldApplyAnimation shouldApply = shouldApplyAnimation(targetElement, attributeName);
171 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = findElementInstances(targetElement);
190 ASSERT(SVGAnimationElement::isTargetAttributeCSSProperty(targetElement, attributeName));
191 computeCSSPropertyValue(targetElement, cssPropertyID(attributeName.localName()), baseValue);
197 static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSPropertyID id, const String& value)
200 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun);
203 MutableStylePropertySet* propertySet = targetElement->ensureAnimatedSMILStyleProperties();
207 targetElement->setNeedsStyleRecalc(LocalStyleChange);
210 static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPropertyID id)
213 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun);
215 targetElement->ensureAnimatedSMILStyleProperties()->removeProperty(id);
216 targetElement->setNeedsStyleRecalc(LocalStyleChange);
219 static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName, const String& valueAsString)
221 ASSERT(targetElement);
222 if (attributeName == anyQName() || !targetElement->inDocument() || !targetElement->parentNode())
227 SVGElement::InstanceUpdateBlocker blocker(targetElement);
228 applyCSSPropertyToTarget(targetElement, id, valueAsString);
231 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = targetElement->instancesForElement();
239 static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName)
241 ASSERT(targetElement);
242 if (attributeName == anyQName() || !targetElement->inDocument() || !targetElement->parentNode())
247 SVGElement::InstanceUpdateBlocker blocker(targetElement);
248 removeCSSPropertyFromTarget(targetElement, id);
251 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = targetElement->instancesForElement();
259 static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName)
262 ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun);
264 targetElement->invalidateSVGAttributes();
265 targetElement->svgAttributeChanged(attributeName);
268 static inline void notifyTargetAndInstancesAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName)
270 ASSERT(targetElement);
271 if (attributeName == anyQName() || !targetElement->inDocument() || !targetElement->parentNode())
274 SVGElement::InstanceUpdateBlocker blocker(targetElement);
275 notifyTargetAboutAnimValChange(targetElement, attributeName);
278 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = targetElement->instancesForElement();
285 void SVGAnimateElement::clearAnimatedType(SVGElement* targetElement)
290 if (!targetElement) {
297 removeCSSPropertyFromTargetAndInstances(targetElement, attributeName());
304 WillBeHeapVector<RawPtrWillBeMember<SVGElement> > animatedElements = findElementInstances(targetElement);
306 notifyTargetAndInstancesAboutAnimValChange(targetElement, attributeName());
325 applyCSSPropertyToTargetAndInstances(targetElement(), attributeName(), m_animatedProperty->valueAsString());
332 notifyTargetAndInstancesAboutAnimValChange(targetElement(), attributeName());
362 SVGElement* targetElement = this->targetElement();
363 if (!targetElement)
393 m_animator = SVGAnimatedTypeAnimator::create(this, targetElement());