RESOLVED FIXED 67221
[chromium] Fix scissor rects on clipped nested iframes
https://bugs.webkit.org/show_bug.cgi?id=67221
Summary [chromium] Fix scissor rects on clipped nested iframes
Adrienne Walker
Reported 2011-08-30 12:29:39 PDT
[chromium] Fix scissor rects on clipped nested iframes
Attachments
Patch (6.08 KB, patch)
2011-08-30 12:33 PDT, Adrienne Walker
no flags
Patch (6.05 KB, patch)
2011-08-31 10:59 PDT, Adrienne Walker
jamesr: review+
Adrienne Walker
Comment 1 2011-08-30 12:33:22 PDT
Adrienne Walker
Comment 2 2011-08-30 12:42:42 PDT
Kenneth Russell
Comment 3 2011-08-30 14:55:57 PDT
Comment on attachment 105669 [details] Patch Vangelis, could you unofficially review this?
Vangelis Kokkevis
Comment 4 2011-08-30 22:03:45 PDT
Comment on attachment 105669 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=105669&action=review Good catch! > Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:264 > scissor.intersect(layer->scissorRect()); Or you could simply remove the if() and if layer->scissorRect().isEmpty() then the intersection will be empty too.
Vangelis Kokkevis
Comment 5 2011-08-30 22:05:38 PDT
(In reply to comment #4) > (From update of attachment 105669 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=105669&action=review > > Good catch! > > > Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:264 > > scissor.intersect(layer->scissorRect()); > > Or you could simply remove the if() and if layer->scissorRect().isEmpty() then the intersection will be empty too. Hmm, unless of course we're worried about scissor rects that due to the transform applied to them end up with negative sizes. Maybe the code you have is safer.
Adrienne Walker
Comment 6 2011-08-31 09:26:18 PDT
> (In reply to comment #4) > > (From update of attachment 105669 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=105669&action=review > > > > Good catch! > > > > > Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:264 > > > scissor.intersect(layer->scissorRect()); > > > > Or you could simply remove the if() and if layer->scissorRect().isEmpty() then the intersection will be empty too. > > Hmm, unless of course we're worried about scissor rects that due to the transform applied to them end up with negative sizes. Maybe the code you have is safer. If we have IntRects with negative sizes, I think we'll be in more trouble than just here. I agree with your original comment and will simplify this. :)
Adrienne Walker
Comment 7 2011-08-31 10:59:18 PDT
Adrienne Walker
Comment 8 2011-09-01 10:06:25 PDT
(In reply to comment #7) > Created an attachment (id=105794) [details] > Patch Can I get an unofficial (or official) review whenever one of y'all has time? I would love to land this before the m15 branch. :)
Vangelis Kokkevis
Comment 9 2011-09-01 10:14:40 PDT
Comment on attachment 105794 [details] Patch unofficial r+ from me!
Adrienne Walker
Comment 10 2011-09-01 10:57:50 PDT
Note You need to log in before you can comment on or make changes to this bug.