Closed
Bug 383551
Opened 17 years ago
Closed 17 years ago
Clean up IsInlineFrame(2), nsStyleDisplay::IsBlockLevel, and friends
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(2 files)
35.69 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
147 bytes,
text/html
|
Details |
Followup to bug 356325.
-- Remove nsStyleDisplay::IsBlockLevel, make callers call IsBlockOutside instead.
-- Fix nsStyleDisplay::IsBlockOutside as per bug 356325
-- Rename IsInlineFrame() helper in nsCSSFrameConstructor to IsInlineOutside() helper
-- Replace IsInlineFrame2() helper in nsCSSFrameConstructor with IsBlockOutside() helper and fix callers (reversed sense)
-- Remove IsBlockFrame() in nsCSSFrameConstructor and have callers use !IsInlineOutside instead. This is the only change that could change behaviour. The code that's calling FindFirstBlock/FindLastBlock is associated with !allKidsInline, the computation of which uses IsInlineOutside, so I think this is right. We don't want to be treating stuff like inline-block as a block when determining where to put an IB split. I'll attach a testcase that this fixes.
-- Remove nsLineLayout::TreatFrameAsBlock, make nsBlockFrame just use !IsInlineOutside instead.
Attachment #267533 -
Flags: superreview?(dbaron)
Attachment #267533 -
Flags: review?(dbaron)
Comment on attachment 267533 [details] [diff] [review]
fix
r+sr=dbaron
Attachment #267533 -
Flags: superreview?(dbaron)
Attachment #267533 -
Flags: superreview+
Attachment #267533 -
Flags: review?(dbaron)
Attachment #267533 -
Flags: review+
Assignee | ||
Comment 2•17 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•17 years ago
|
||
Here's that testcase I promised. I'll check this in as a reftest.
Comment 4•17 years ago
|
||
This check-in caused the Linux qm-rhel02 tinderbox red.
Assignee | ||
Comment 5•17 years ago
|
||
Fixed the bustage, and checked in a reftest.
Comment 6•17 years ago
|
||
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•