Bug 226313

Summary: Sampled Page Top Color: allow snapshotting of elements with CSS animations/transitions if they're paused
Product: WebKit Reporter: Devin Rousso <hi>
Component: New BugsAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, darin, hi, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225338
Attachments:
Description Flags
Patch
none
Patch none

Devin Rousso
Reported 2021-05-26 20:23:47 PDT
.
Attachments
Patch (11.37 KB, patch)
2021-05-26 20:30 PDT, Devin Rousso
no flags
Patch (12.27 KB, patch)
2021-05-27 17:48 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2021-05-26 20:24:01 PDT
Devin Rousso
Comment 2 2021-05-26 20:30:38 PDT
Tim Horton
Comment 3 2021-05-27 11:58:21 PDT
Comment on attachment 429836 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429836&action=review > Source/WebCore/ChangeLog:12 > + animation/transition is. This is only really an issue for CSS animations/transitions that > + are actively running, not ones that have yet to run or have finished. Kinda weird logic? It's a race; if the animation wins the race all the way, you're treating it like the race never happened? (if you snapshot the same page twice, and catch it in the animation the first time, and after the animation is done the second time, you'll get two different colors after your patch where you would have gotten the same color before it?) (I also don't know that any of this is at all important)
Devin Rousso
Comment 4 2021-05-27 17:48:17 PDT
EWS
Comment 5 2021-05-27 22:02:57 PDT
Committed r278189 (238232@main): <https://commits.webkit.org/238232@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429967 [details].
Darin Adler
Comment 6 2021-06-01 14:47:15 PDT
Comment on attachment 429967 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429967&action=review > Source/WebCore/page/PageColorSampler.cpp:31 > +#include "Element.h" This should not be needed. HTMLCanvasElement and HTMLIFrameElement are both derived from Element, so there would be no need to include the "grand-base" class too.
Note You need to log in before you can comment on or make changes to this bug.