Changeset 246170 in webkit
- Timestamp:
- Jun 6, 2019, 2:56:55 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/svg/animations/animate-externalResourcesRequired-no-load-event-expected.txt (added)
-
LayoutTests/svg/animations/animate-externalResourcesRequired-no-load-event.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/svg/SVGExternalResourcesRequired.cpp (modified) (1 diff)
-
Source/WebCore/svg/properties/SVGAnimatedPropertyAnimator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246165 r246170 1 2019-06-05 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 REGRESSION (r243121): Load event should not be fired while animating the 'externalResourcesRequired' attribute 4 https://bugs.webkit.org/show_bug.cgi?id=198576 5 6 Reviewed by Simon Fraser. 7 8 * svg/animations/animate-externalResourcesRequired-no-load-event-expected.txt: Added. 9 * svg/animations/animate-externalResourcesRequired-no-load-event.html: Added. 10 11 2019-06-04 Takashi Komori <Takashi.Komori@sony.com> 1 12 2019-06-06 Antoine Quint <graouts@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r246158 r246170 1 2019-06-05 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 REGRESSION (r243121): Load event should not be fired while animating the 'externalResourcesRequired' attribute 4 https://bugs.webkit.org/show_bug.cgi?id=198576 5 6 Reviewed by Simon Fraser. 7 8 Firing the load event should only happen when dynamic update changes the 9 attribute 'externalResourcesRequired'. Animating this attribute should 10 not fire the load event. 11 12 When stopping the animations, applyAnimatedPropertyChange() should be 13 called first then stopAnimation() is called second. The target element 14 should know that its svgAttributeChanged() is called because of animating 15 the attribute. So it can differentiate this case from the dynamic update. 16 17 Test: svg/animations/animate-externalResourcesRequired-no-load-event.html 18 19 * svg/SVGExternalResourcesRequired.cpp: 20 (WebCore::SVGExternalResourcesRequired::svgAttributeChanged): 21 * svg/properties/SVGAnimatedPropertyAnimator.h: 22 23 2019-06-05 Saam Barati <sbarati@apple.com> 1 24 2019-06-06 Zalan Bujtas <zalan@apple.com> 2 25 -
trunk/Source/WebCore/svg/SVGExternalResourcesRequired.cpp
r243333 r246170 56 56 // causes an immediate dispatch of the SVGLoad event. If the attribute value was 'false' before inserting the script element 57 57 // in the document, the SVGLoad event has already been dispatched. 58 if (!externalResourcesRequired () && !haveFiredLoadEvent() && !isParserInserted()) {58 if (!externalResourcesRequiredAnimated().isAnimating() && !externalResourcesRequired() && !haveFiredLoadEvent() && !isParserInserted()) { 59 59 setHaveFiredLoadEvent(true); 60 60 -
trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyAnimator.h
r243830 r246170 86 86 return; 87 87 88 applyAnimatedPropertyChange(targetElement); 89 if (isAnimatedStylePropertyAniamtor(targetElement)) 90 removeAnimatedStyleProperty(targetElement); 91 88 92 m_animated->stopAnimation(); 89 93 for (auto& instance : m_animatedInstances) 90 94 instance->instanceStopAnimation(); 91 92 applyAnimatedPropertyChange(targetElement);93 if (isAnimatedStylePropertyAniamtor(targetElement))94 removeAnimatedStyleProperty(targetElement);95 95 } 96 96
Note:
See TracChangeset
for help on using the changeset viewer.