[Webkit-unassigned] [Bug 27841] Fix box shadow painting: should pass shadow's color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 30 12:06:38 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27841





--- Comment #5 from mitz at webkit.org  2009-07-30 12:06:37 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > (From update of attachment 33791 [details] [details])
> > I think this is wrong. What is the issue this is supposed to address?
> 
> It always uses Color::black to paint box shadow regardless shadow style, which
> is wrong.

The code uses a black fill for the shape casting the shadow. The shadow
properties, including its color, are based on the ShadowData structure from the
style:

    for (ShadowData* shadow = s->boxShadow(); shadow; shadow = shadow->next) {
[…]
        Color& shadowColor = shadow->color;
[…]
            context->setShadow(shadowOffset, shadowBlur, shadowColor);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list