[webkit-dev] Support for CSS3 gradients landed; ports will need minor changes
Simon Fraser
simon.fraser at apple.com
Mon Jan 3 11:45:52 PST 2011
I just landed support for CSS3 gradients (see <http://dev.w3.org/csswg/css3-images/#gradients>), via <https://bugs.webkit.org/show_bug.cgi?id=28152>.
The spec now allows elliptical gradients. Since some platforms may be able to render elliptical gradients natively, the code relies on the platform to render such gradients. In CG, this is done via a scale transform on the graphics context.
Non-CG platforms will need to make changes to do something similar so what I do for CG:
CGContextTranslateCTM(ctx, m_p0.x(), m_p0.y());
CGContextScaleCTM(ctx, 1, 1 / aspectRatio());
CGContextTranslateCTM(ctx, -m_p0.x(), -m_p0.y());
Please file a bug and fix your port accordingly.
Thanks
Simon
More information about the webkit-dev
mailing list