Changeset 258827 in webkit
- Timestamp:
- Mar 23, 2020 2:05:26 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r258826 r258827 1 2020-03-23 Antoine Quint <graouts@apple.com> 2 3 [Web Animations] Fix the typo for ElementAnimationRareData::completedTransitionByProperty() 4 https://bugs.webkit.org/show_bug.cgi?id=209413 5 6 Reviewed by Antti Koivisto. 7 8 There can be several completed transitions by property, so renaming this property to completedTransitionsByProperty. 9 10 * animation/AnimationTimeline.cpp: 11 (WebCore::AnimationTimeline::removeDeclarativeAnimationFromListsForOwningElement): 12 (WebCore::AnimationTimeline::updateCSSTransitionsForElement): 13 * animation/DocumentTimeline.cpp: 14 (WebCore::DocumentTimeline::transitionDidComplete): 15 * animation/ElementAnimationRareData.h: 16 (WebCore::ElementAnimationRareData::completedTransitionsByProperty): 17 (WebCore::ElementAnimationRareData::completedTransitionByProperty): Deleted. 18 * dom/Element.cpp: 19 (WebCore::Element::completedTransitionsByProperty): 20 (WebCore::Element::completedTransitionByProperty): Deleted. 21 * dom/Element.h: 22 1 23 2020-03-22 Antoine Quint <graouts@apple.com> 2 24 -
trunk/Source/WebCore/animation/AnimationTimeline.cpp
r258316 r258827 141 141 auto& transition = downcast<CSSTransition>(animation); 142 142 if (!removeCSSTransitionFromMap(transition, element.runningTransitionsByProperty())) 143 removeCSSTransitionFromMap(transition, element.completedTransition ByProperty());143 removeCSSTransitionFromMap(transition, element.completedTransitionsByProperty()); 144 144 } 145 145 } … … 551 551 552 552 auto& runningTransitionsByProperty = element.runningTransitionsByProperty(); 553 auto& completedTransitionsByProperty = element.completedTransition ByProperty();553 auto& completedTransitionsByProperty = element.completedTransitionsByProperty(); 554 554 555 555 auto generationTime = MonotonicTime::now(); -
trunk/Source/WebCore/animation/DocumentTimeline.cpp
r258316 r258827 548 548 if (is<KeyframeEffect>(transition->effect())) { 549 549 if (auto* target = downcast<KeyframeEffect>(transition->effect())->target()) 550 target->completedTransition ByProperty().set(transition->property(), transition);550 target->completedTransitionsByProperty().set(transition->property(), transition); 551 551 } 552 552 } -
trunk/Source/WebCore/animation/ElementAnimationRareData.h
r258826 r258827 50 50 CSSAnimationCollection& animationsCreatedByMarkup() { return m_animationsCreatedByMarkup; } 51 51 void setAnimationsCreatedByMarkup(CSSAnimationCollection&&); 52 PropertyToTransitionMap& completedTransition ByProperty() { return m_completedTransitionByProperty; }52 PropertyToTransitionMap& completedTransitionsByProperty() { return m_completedTransitionsByProperty; } 53 53 PropertyToTransitionMap& runningTransitionsByProperty() { return m_runningTransitionsByProperty; } 54 54 … … 60 60 AnimationCollection m_transitions; 61 61 CSSAnimationCollection m_animationsCreatedByMarkup; 62 PropertyToTransitionMap m_completedTransition ByProperty;62 PropertyToTransitionMap m_completedTransitionsByProperty; 63 63 PropertyToTransitionMap m_runningTransitionsByProperty; 64 64 }; -
trunk/Source/WebCore/dom/Element.cpp
r258416 r258827 3823 3823 } 3824 3824 3825 PropertyToTransitionMap& Element::completedTransition ByProperty()3826 { 3827 return ensureAnimationRareData().completedTransition ByProperty();3825 PropertyToTransitionMap& Element::completedTransitionsByProperty() 3826 { 3827 return ensureAnimationRareData().completedTransitionsByProperty(); 3828 3828 } 3829 3829 -
trunk/Source/WebCore/dom/Element.h
r258416 r258827 493 493 CSSAnimationCollection& animationsCreatedByMarkup(); 494 494 void setAnimationsCreatedByMarkup(CSSAnimationCollection&&); 495 PropertyToTransitionMap& completedTransition ByProperty();495 PropertyToTransitionMap& completedTransitionsByProperty(); 496 496 PropertyToTransitionMap& runningTransitionsByProperty(); 497 497
Note: See TracChangeset
for help on using the changeset viewer.