Closed Bug 296083 Opened 19 years ago Closed 19 years ago

[FIXr]{ib} Counter weirdness in block-in-inline situations

Categories

(Core :: Layout, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

(Keywords: testcase)

Attachments

(2 files)

See bug 3247 comment 116 -- we seem to mess up when a counter is incremented on
a split inline.
Attached file testcase
So I'm betting the problem here is that we add both of the inlines in the split
to the counter list and they both have a style context that has the
counter-increment on it.
Keywords: testcase
Attached patch Proposed fixSplinter Review
This is a bit of a hack, but I don't see a safe better way -- we need to init
the frames before we start setting them special, so InitAndRestoreFrame has no
obvious way to know that this frame shouldn't be getting counter stuff.
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #188233 - Flags: superreview?(dbaron)
Attachment #188233 - Flags: review?(dbaron)
Priority: -- → P1
Summary: {ib} Counter weirdness in block-in-inline situations → [FIX]{ib} Counter weirdness in block-in-inline situations
Target Milestone: --- → mozilla1.8beta3
Comment on attachment 188233 [details] [diff] [review]
Proposed fix

r+sr=dbaron, but in the long run I'd like to actually make this use
next/prev-in-flow linkage, and have a bit that indicates that the flow is
fixed.	This could solve a bunch of problems related to block-within-inline,
bidi continuations (nextBidi property), and :first-letter.
Attachment #188233 - Flags: superreview?(dbaron)
Attachment #188233 - Flags: superreview+
Attachment #188233 - Flags: review?(dbaron)
Attachment #188233 - Flags: review+
Comment on attachment 188233 [details] [diff] [review]
Proposed fix

Requesting 1.8b3 approval.  This is also a very safe fix for a counter problem
that arises when a block is a child of an inline.
Attachment #188233 - Flags: approval1.8b3?
Agreed that using in-flow linkage for {ib} would simplify a bunch of stuff...
Summary: [FIX]{ib} Counter weirdness in block-in-inline situations → [FIXr]{ib} Counter weirdness in block-in-inline situations
Attachment #188233 - Flags: approval1.8b3? → approval1.8b3+
Fixed
Status: ASSIGNED → RESOLVED
Closed: 19 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: