[webkit-dev] Box shadow
mikerreed at gmail.com
Tue Jan 9 07:04:03 PST 2007
Do we need to use clips for round-rects? In my implementation these
are always hard-edged (no antialiasing). Is that true for Qt as well?
CG? I would prefer being asked to draw round-rects (filled or stroked)
directly with no clipping...
On 1/8/07, David Hyatt <hyatt at apple.com> wrote:
> I just landed support for the CSS3 box-shadow property. This
> entailed adding a few new methods to GraphicsContext. I stubbed
> these methods out on Qt but did not implement them.
> They are:
> void clipOut(const IntRect&);
> Excludes the specified rect from the clipping region.
> void clipOutEllipseInRect(const IntRect&);
> Same, but for an ellipse drawn inside the specified rect.
> void fillRoundedRect(const IntRect&, const IntSize& topLeft, const
> IntSize& topRight, const IntSize& bottomLeft, const IntSize&
> bottomRight, const Color&);
> Fills a rounded rect (with elliptical curvature in the four
> corners) with the specified color.
> Note that the fillRoundedRect method arguably should be cross-
> platform, relying on primitives instead. This is an area for
> improvement, if someone wants to rework it to use the cross-platform
> Path class etc.
> (hyatt at apple.com)
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev