RESOLVED FIXED 134950
Subpixel rendering: Adjust cliprect with devicePixelFractionFromRenderer() before painting.
https://bugs.webkit.org/show_bug.cgi?id=134950
Summary Subpixel rendering: Adjust cliprect with devicePixelFractionFromRenderer() be...
zalan
Reported 2014-07-15 16:12:52 PDT
It breaks painting when the compositing layer has tiled layering. This is a workaround until bug 134947 gets fixed.
Attachments
Patch (6.37 KB, patch)
2014-07-15 16:40 PDT, zalan
no flags
Patch (6.44 KB, patch)
2014-07-15 16:42 PDT, zalan
no flags
Patch (5.12 KB, patch)
2014-07-16 15:46 PDT, zalan
no flags
zalan
Comment 1 2014-07-15 16:17:03 PDT
zalan
Comment 2 2014-07-15 16:40:52 PDT
zalan
Comment 3 2014-07-15 16:42:01 PDT
Simon Fraser (smfr)
Comment 4 2014-07-15 16:54:05 PDT
Comment on attachment 234964 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=234964&action=review > Source/WebCore/ChangeLog:9 > + When the compositing layer has tiled layering, offsetting the cliprect with the subpixel accumulation "has tiled layering" -> "is tiled". > Source/WebCore/ChangeLog:10 > + leaves a line of one device pixel gap on the non-leftmost tiles. It's because leftmost tiles get leaves single device-pixel gap > Source/WebCore/rendering/RenderLayer.cpp:1697 > + // FIXME: Moving the cliprect by subPixelAccumulation requires to get IntRect enclosing removed from clipping/dirtyPaintRect. "requires removal of the enclosingIntRect code from..." > Source/WebCore/rendering/RenderLayer.cpp:3596 > + if (!paintingInfo.subPixelAccumulation.isEmpty()) > + adjustedClipRect.expand(paintingInfo.subPixelAccumulation); I'm not sure I agree with this expanding here. You're fixing a bug specific to tiled layers with a change that affects clipping in all composited layers, and may actually result in incorrect clipping.
zalan
Comment 5 2014-07-16 15:46:52 PDT
WebKit Commit Bot
Comment 6 2014-07-16 18:47:33 PDT
Comment on attachment 235030 [details] Patch Clearing flags on attachment: 235030 Committed r171165: <http://trac.webkit.org/changeset/171165>
WebKit Commit Bot
Comment 7 2014-07-16 18:47:36 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.