[webkit-dev] Support for CSS3 gradients landed; ports will need minor changes

Mihai Parparita mihaip at chromium.org
Mon Jan 3 12:03:56 PST 2011


I've filed https://bugs.webkit.org/show_bug.cgi?id=51841 about making
the change for Chromium/Skia.

Mihai

On Mon, Jan 3, 2011 at 11:45 AM, Simon Fraser <simon.fraser at apple.com> wrote:
> 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
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>


More information about the webkit-dev mailing list