Changeset 287761 in webkit
- Timestamp:
- Jan 7, 2022, 10:46:00 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dom/Document.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r287760 r287761 1 2022-01-07 Antoine Quint <graouts@webkit.org> 2 3 Values in WebAnimation::instances should not be null-checked 4 https://bugs.webkit.org/show_bug.cgi?id=234948 5 6 Reviewed by Darin Adler. 7 8 The HashSet<WebAnimation*> returned by WebAnimation::instances() cannnot hold nullptr 9 values so we should not have any check for a null value when iterating over its values. 10 11 * dom/Document.cpp: 12 (WebCore::Document::matchingAnimations): 13 (WebCore::Document::keyframesRuleDidChange): 14 1 15 2022-01-07 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebCore/dom/Document.cpp
r287731 r287761 8556 8556 Vector<RefPtr<WebAnimation>> animations; 8557 8557 for (auto* animation : WebAnimation::instances()) { 8558 if (!animation || !animation->isRelevant() || !is<KeyframeEffect>(animation->effect()))8558 if (!animation->isRelevant() || !is<KeyframeEffect>(animation->effect())) 8559 8559 continue; 8560 8560 … … 8574 8574 { 8575 8575 for (auto* animation : WebAnimation::instances()) { 8576 if (!is<CSSAnimation>( animation) || !animation->isRelevant())8576 if (!is<CSSAnimation>(*animation) || !animation->isRelevant()) 8577 8577 continue; 8578 8578
Note:
See TracChangeset
for help on using the changeset viewer.