Closed Bug 220741 Opened 21 years ago Closed 21 years ago

[FIX]nsBlockFrame::CombineRects seems redundant

Categories

(Core :: Layout, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.6alpha

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(2 files)

This function can be replaced by UnionRect, unless we expect to be combining
rects with negative widths and depend on them being combined "sanely"...
Attached patch Like thisSplinter Review
Comment on attachment 132388 [details] [diff] [review]
Like this

I did some browsing, and didn't hit any pages where the width is negative for
those rects.... could that ever happen?
Attachment #132388 - Flags: superreview?(dbaron)
Attachment #132388 - Flags: review?(dbaron)
Priority: -- → P2
Summary: nsBlockFrame::CombineRects seems redundant → [FIX]nsBlockFrame::CombineRects seems redundant
Target Milestone: --- → mozilla1.6alpha
Comment on attachment 132388 [details] [diff] [review]
Like this

I think the only possible issue here is the case of blocks with a width or
height of zero not affecting combined area (i.e., overflow area) anymore.  I
wish nsRect didn't have the whole IsEmpty hack...
Attachment #132388 - Flags: superreview?(dbaron)
Attachment #132388 - Flags: superreview+
Attachment #132388 - Flags: review?(dbaron)
Attachment #132388 - Flags: review+
Attached file testcase
Testcase is not regressed by this patch (I tested standards mode too)
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: