Bug 34383

Summary: Do color animations on premultiplied colors
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, krit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Patch adele: review+

Simon Fraser (smfr)
Reported 2010-01-30 18:37:39 PST
Per <http://lists.w3.org/Archives/Public/www-style/2009Jul/0048.html>, we should interpolate colors by first converting them to premultiplied alpha. This avoids the 'fade through gray' when animating from 'transparent' to an opaque color.
Attachments
Patch (5.05 KB, patch)
2010-01-30 18:39 PST, Simon Fraser (smfr)
adele: review+
Simon Fraser (smfr)
Comment 1 2010-01-30 18:39:32 PST
mitz
Comment 2 2010-01-30 18:45:41 PST
Comment on attachment 47779 [details] Patch It’s scary that Color can be either premultiplied or non-premultiplied.
Simon Fraser (smfr)
Comment 3 2010-01-30 19:22:05 PST
Simon Fraser (smfr)
Comment 4 2010-03-23 17:09:20 PDT
*** Bug 34334 has been marked as a duplicate of this bug. ***
Dirk Schulze
Comment 5 2010-03-23 23:58:30 PDT
Why not fixing premultipliedARGBFromColor directly? It affects other parts (mainly Cairo for what it was introduced) too.
Dirk Schulze
Comment 6 2010-03-24 00:00:29 PDT
premultipliedARGBFromColor is related to bug 30333
Note You need to log in before you can comment on or make changes to this bug.