Closed Bug 196919 Opened 22 years ago Closed 22 years ago

mLastFloaterY doesn't enforce that float can't be above earlier float

Categories

(Core :: Layout: Floats, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.4alpha

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Whiteboard: [patch])

Attachments

(2 files, 1 obsolete file)

nsBlockReflowState::mLastFloaterY isn't sufficient to enforce that a float can't be above an earlier float. I'll attach a testcase to show this. It needs to be on the space manager.
Attached file testcase (deleted) —
Attached patch patch (obsolete) (deleted) — Splinter Review
This fixes this bug and bug 177331.
Blocks: 177331
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.4alpha
Whiteboard: [patch]
Attachment #116876 - Flags: superreview?(roc+moz)
Attachment #116876 - Flags: review?(roc+moz)
Note that this patch also includes the patch for bug 115153, simply because I haven't checked it in yet.
Comment on attachment 116876 [details] [diff] [review] patch I dislike #if 0. Is there a good reason to leave this in?
Attachment #116876 - Flags: superreview?(roc+moz)
Attachment #116876 - Flags: superreview+
Attachment #116876 - Flags: review?(roc+moz)
Attachment #116876 - Flags: review+
I'm not really sure. nsSpaceManager was originally written to be rather general, and I've already polluted it with a good bit of block-specific/float-specific stuff, but I think it really needs to go more in that direction (see bug 191448) and, furthermore, that we're unlikely to need the code for anything other than floats. So I guess I'm inclined to just remove it if you like that idea as well. (cc:ing kin if he wants to chime in as well.)
I can't think of anything that we're going to need "space management" for beyond floats, at least for the forseeable future. (I can imagine at some point we might want support for positioned elements that siblings flow around, but you can't even do that in CSS3 ... right?) Even if we could forsee a potential broader use, it's probably better to get floats working well and then figure out how to extend the code later.
Attachment #116876 - Attachment is obsolete: true
Ran the regression tests. Saw only noise. Will add attachment 116872 [details] to the block/bugs regression tests.
Fix checked in to trunk, 2003-03-11 15:56 PST.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: