WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(6.05 KB, patch)
2011-08-31 10:59 PDT
,
Adrienne Walker
jamesr
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adrienne Walker
Comment 1
2011-08-30 12:33:22 PDT
Created
attachment 105669
[details]
Patch
Adrienne Walker
Comment 2
2011-08-30 12:42:42 PDT
See:
http://code.google.com/p/chromium-os/issues/detail?id=19635
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
Created
attachment 105794
[details]
Patch
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
Committed
r94315
: <
http://trac.webkit.org/changeset/94315
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug