Bug 186517 - [Web Animations] Implement "Starting of transitions" section from CSS Transitions
Summary: [Web Animations] Implement "Starting of transitions" section from CSS Transit...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-11 05:11 PDT by Antoine Quint
Modified: 2018-06-18 14:20 PDT (History)
5 users (show)

See Also:


Attachments
Patch (82.95 KB, patch)
2018-06-18 08:50 PDT, Antoine Quint
dino: review+
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews200 for win-future (12.85 MB, application/zip)
2018-06-18 10:30 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2018-06-11 05:11:48 PDT
Implement https://drafts.csswg.org/css-transitions-1/#starting from CSS Transitions.
Comment 1 Radar WebKit Bug Importer 2018-06-11 05:12:01 PDT
<rdar://problem/41000798>
Comment 2 Antoine Quint 2018-06-18 08:50:21 PDT
Created attachment 342939 [details]
Patch
Comment 3 EWS Watchlist 2018-06-18 10:30:30 PDT
Comment on attachment 342939 [details]
Patch

Attachment 342939 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/8232952

New failing tests:
transitions/transition-to-from-auto.html
animations/transition-and-animation-3.html
imported/mozilla/css-transitions/test_animation-ready.html
Comment 4 EWS Watchlist 2018-06-18 10:30:41 PDT
Created attachment 342949 [details]
Archive of layout-test-results from ews200 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews200  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 5 Dean Jackson 2018-06-18 11:41:15 PDT
Comment on attachment 342939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=342939&action=review

> Source/WebCore/animation/AnimationTimeline.cpp:171
> +void AnimationTimeline::updateCSSAnimationsForElement(Element& element, const RenderStyle* currentStyle, const RenderStyle& afterChangeStyle)

Can you keep the currentStyle as a &, since you check for null when you call the method? I guess you still have the case where afterStyleChange has a value but currentStyle doesn't?
Comment 6 Antoine Quint 2018-06-18 14:19:42 PDT
(In reply to Dean Jackson from comment #5)
> Comment on attachment 342939 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=342939&action=review
> 
> > Source/WebCore/animation/AnimationTimeline.cpp:171
> > +void AnimationTimeline::updateCSSAnimationsForElement(Element& element, const RenderStyle* currentStyle, const RenderStyle& afterChangeStyle)
> 
> Can you keep the currentStyle as a &, since you check for null when you call
> the method? I guess you still have the case where afterStyleChange has a
> value but currentStyle doesn't?

Yes, see the call site in TreeResolver::createAnimatedElementUpdate(). CSS Transitions are guaranteed to have before and after styles, but CSS Animations aren't.
Comment 7 Antoine Quint 2018-06-18 14:20:55 PDT
Committed r232946: <https://trac.webkit.org/changeset/232946>