WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
70751
[chromium] Use the full set of rects when determining if union covers another rect.
https://bugs.webkit.org/show_bug.cgi?id=70751
Summary
[chromium] Use the full set of rects when determining if union covers another...
Dana Jansens
Reported
2011-10-24 12:47:06 PDT
There are places where we want to know if a union of rects together cover a (rectangular) space. Currently we just look for a single child that fills the space. This gives no false-positives, but potentially many false negatives. Add logic to determine if the union of rects fill a rect, and use it in these cases.
Attachments
Patch
(22.84 KB, patch)
2011-10-28 08:43 PDT
,
W. James MacLean
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dana Jansens
Comment 1
2011-10-24 12:47:44 PDT
Bugs this depend on represent places where the improved logic should be used.
W. James MacLean
Comment 2
2011-10-28 08:43:58 PDT
Created
attachment 112868
[details]
Patch
Dana Jansens
Comment 3
2011-11-24 11:15:58 PST
Can make use of platform/graphics/Region class to do all of this. It is what I am using it in the webkit side. If you need Region::contains() you can replace "A.contains(B)" with A.intersect(B); if (!A.isEmpty()) B.subtract(A); return B.isEmpty(); and use .contains() when
bug #72298
lands. Removing dep on #70634 since this is useful for UI layers already regardless of opaque flag being set in WebCore land.
W. James MacLean
Comment 4
2012-01-09 11:39:59 PST
I think this is covered in 70533. Marking resolved.
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