Closed
Bug 920158
Opened 11 years ago
Closed 11 years ago
Make nsCSSFrameConstructor::ConstructFrameFromItemInternal handle frames that should suppress floating of descendants.
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(1 file, 3 obsolete files)
2.58 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #809329 -
Flags: review?(dholbert)
Assignee | ||
Comment 2•11 years ago
|
||
FWIW this assert was added due to a request from bz here: https://bugzilla.mozilla.org/show_bug.cgi?id=666041#c45
Comment 3•11 years ago
|
||
Maybe we should really move this assert *inside* of PushFloatContainingBlock()? That would be extending its effect, but in a useful way.
Comment 4•11 years ago
|
||
Ah. Now I recall what the point of this assert is. Thank you for the link in comment 2. If ShouldSuppressFloatingOfDescendants() then pushing nothing or pushing the frame is wrong. The right thing to do is to push null. So if we can have such frames coming through here now we should remove the assert and do something more like what nsCSSFrameConstructor::ProcessChildren does.
Assignee | ||
Comment 5•11 years ago
|
||
That seems better.
Attachment #809329 -
Attachment is obsolete: true
Attachment #809329 -
Flags: review?(dholbert)
Attachment #809346 -
Flags: review?(dholbert)
Comment 6•11 years ago
|
||
Comment on attachment 809346 [details] [diff] [review] patch [I'm assuming you hadn't seen comment 4 yet when you posted this.] Looks like we need to call PushFloatContainingBlock(nullptr, ...) , basically matching the code here: http://mxr.mozilla.org/mozilla-central/source/layout/base/nsCSSFrameConstructor.cpp#9061
Attachment #809346 -
Flags: review?(dholbert)
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #6) > [I'm assuming you hadn't seen comment 4 yet when you posted this.] Indeed. This could probably do with a code comment if the reason for this code is easily forgotten, but I will need some help on the wording if I'm to add one.
Attachment #809346 -
Attachment is obsolete: true
Attachment #809352 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 8•11 years ago
|
||
bz: does it also make sense to add an assertion to PushFloatContainingBlock as dholbert suggested?
Comment 9•11 years ago
|
||
Comment on attachment 809352 [details] [diff] [review] patch r=me
Attachment #809352 -
Flags: review?(bzbarsky) → review+
Comment 10•11 years ago
|
||
Re comment 8: Probably a good idea, yes.
Updated•11 years ago
|
Summary: Move an assertion in nsCSSFrameConstructor::ConstructFrameFromItemInternal into the block to which it applies to avoid bogus failures → Make nsCSSFrameConstructor::ConstructFrameFromItemInternal handle frames that should suppress floating of descendants.
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #809352 -
Attachment is obsolete: true
Assignee | ||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8533f319940f
https://hg.mozilla.org/mozilla-central/rev/8533f319940f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•