Bug 110347 - [GTK][AC] Opacity animation doesn't work with clutter backend
Summary: [GTK][AC] Opacity animation doesn't work with clutter backend
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 105699 110607
  Show dependency treegraph
 
Reported: 2013-02-20 07:20 PST by ChangSeok Oh
Modified: 2013-03-22 07:44 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.44 KB, patch)
2013-02-22 11:52 PST, ChangSeok Oh
no flags Details | Formatted Diff | Diff
Simple test case (444 bytes, text/html)
2013-03-11 09:56 PDT, Gustavo Noronha (kov)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ChangSeok Oh 2013-02-20 07:20:53 PST
After animation features enhancing, opacity animation doesn't work now.
Comment 1 ChangSeok Oh 2013-02-22 11:52:55 PST
Created attachment 189803 [details]
Patch
Comment 3 Gustavo Noronha (kov) 2013-03-11 09:56:33 PDT
Created attachment 192489 [details]
Simple test case

I've tested this patch on WebKit Clutter with the attached page, and it looks like the transition is happening twice - once because of the CSS transition that is defined, and one because when WebCore sets the final result in the layer, the clutter transition is still set on the actor, so it happens again. I'm getting this warning, as well:

(MxLauncher:24704): Clutter-CRITICAL **: clutter_timeline_set_progress_mode: assertion `mode < CLUTTER_ANIMATION_LAST' failed
Comment 4 Gustavo Noronha (kov) 2013-03-11 09:56:53 PDT
Comment on attachment 189803 [details]
Patch

r- for the above
Comment 5 ChangSeok Oh 2013-03-12 00:45:17 PDT
(In reply to comment #3)
Thanks for the review!

> Created an attachment (id=192489) [details]
> Simple test case
> 
> I've tested this patch on WebKit Clutter with the attached page, and it looks like the transition is happening twice - once because of the CSS transition that is defined, and one because when WebCore sets the final result in the layer, the clutter transition is still set on the actor, so it happens again.
Yeah, it's a known issue and dealt in bug110607. Please see bug110607, I applied it to webkit-clutter as well.

I'm getting this warning, as well:
> 
> (MxLauncher:24704): Clutter-CRITICAL **: clutter_timeline_set_progress_mode: assertion `mode < CLUTTER_ANIMATION_LAST' failed
This is because webkit-clutter is using different toClutterAnimationMode in PlatformClutterAnimation.cpp. webkit-clutter's one is a little old so I think we need to replace it with the one of WebKitGTK+.
You may want to refer https://developer.gnome.org/clutter/stable/ClutterAlpha.html#clutter-alpha-register-func

And actually I think we don't need to care about timing functions anymore because clutter starts to supports them for css3 transitions since its version 1.12.
https://developer.gnome.org/clutter/stable/ClutterTimeline.html#ClutterAnimationMode
Comment 7 Gustavo Noronha (kov) 2013-03-22 07:37:59 PDT
Comment on attachment 189803 [details]
Patch

OK, this makes sense with bug 110607
Comment 8 WebKit Review Bot 2013-03-22 07:44:42 PDT
Comment on attachment 189803 [details]
Patch

Clearing flags on attachment: 189803

Committed r146609: <http://trac.webkit.org/changeset/146609>
Comment 9 WebKit Review Bot 2013-03-22 07:44:45 PDT
All reviewed patches have been landed.  Closing bug.