Closed Bug 383551 Opened 17 years ago Closed 17 years ago

Clean up IsInlineFrame(2), nsStyleDisplay::IsBlockLevel, and friends

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(2 files)

Attached patch fixSplinter Review
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+
checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attached file testcase
Here's that testcase I promised. I'll check this in as a reftest.
This check-in caused the Linux qm-rhel02 tinderbox red.
Fixed the bustage, and checked in a reftest.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: