RESOLVED WONTFIX 77667
[chromium] NOT FOR REVIEW Mark scrollbars as opaque.
https://bugs.webkit.org/show_bug.cgi?id=77667
Summary [chromium] NOT FOR REVIEW Mark scrollbars as opaque.
Jonathan Backer
Reported 2012-02-02 12:18:07 PST
[chromium] NOT FOR REVIEW Mark scrollbars as opaque.
Attachments
Patch (1.89 KB, patch)
2012-02-02 12:19 PST, Jonathan Backer
no flags
Jonathan Backer
Comment 1 2012-02-02 12:19:27 PST
Jonathan Backer
Comment 2 2012-02-02 12:23:42 PST
When working on https://bugs.webkit.org/show_bug.cgi?id=77478 , I discovered that we're blending our scroll bars with the debug blue that we're clearing to in LayerRendererChromium.cpp I think that this is clearly an error. The attached patch fixes this. We should also fix it so that Skia gives us an opaque layer (alpha = 1.0). @danakj: How do we fix Skia? Is this a Skia error that I'm seeing? @enne: Is there a better way to mark scrollbars opaque?
Dana Jansens
Comment 3 2012-02-02 12:55:22 PST
Yes. If the background is painted then the scrollbar is painted with alpha over top (those AA corner pixels) skia loses 1 on the alpha channel. Then when its drawn with blending you get the compositor blue coming through. Theres a CL in the works but requires rebaselining the world and I havent worked on it since December. I'll post the bug url later.
Dana Jansens
Comment 4 2012-02-02 12:57:02 PST
Secondly I would like to make chromium paint the scrollbars thru the webkit GraphicsContext instead of directly to canvas. Then opaque paint tracking will know they are opaque automatically.
Dana Jansens
Comment 5 2012-02-02 13:10:06 PST
James Robinson
Comment 6 2012-02-02 16:14:41 PST
To state the blindingly obvious, scrollbars are often not opaque so this won't work generally.
Jonathan Backer
Comment 7 2012-02-10 11:09:22 PST
Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha.
James Robinson
Comment 8 2012-02-10 11:20:45 PST
(In reply to comment #7) > Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha. I switched us over to mock scrollbars - were you still seeing issues?
Jonathan Backer
Comment 9 2012-02-10 11:38:48 PST
(In reply to comment #8) > (In reply to comment #7) > > Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha. > > I switched us over to mock scrollbars - were you still seeing issues? The baselines that I uploaded for the root clear patch were for the Release build (not root clear). I just ran DRT with a Debug build (still root clears to blue) and there is no error. So you must have fixed it.
Note You need to log in before you can comment on or make changes to this bug.