Closed Bug 994418 Opened 10 years ago Closed 9 years ago

width of inside bullet is incorrect when parent is inline-block

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: xidorn, Assigned: xidorn)

Details

Attachments

(2 files)

Attached file test case
When a list has 'list-style-position: inside' with 'display: inline-block', the width of bullet is incorrect. To be more exact, the desired width of bullet is always computed as if the ordinal is zero.
Attached patch patchSplinter Review
Assignee: nobody → quanxunzhen
Attachment #8595727 - Flags: review?(roc)
Comment on attachment 8595727 [details] [diff] [review]
patch

Review of attachment 8595727 [details] [diff] [review]:
-----------------------------------------------------------------

::: layout/generic/nsBlockFrame.cpp
@@ +693,5 @@
>      curFrame->LazyMarkLinesDirty();
>    }
>  
> +  if (RenumberLists(PresContext())) {
> +    AddStateBits(NS_FRAME_HAS_DIRTY_CHILDREN);

Don't you need to use FrameNeedsReflow here?
Attachment #8595727 - Flags: review?(roc) → review-
No, and we can't do that, because Get{Min,Pref}ISize are usually called during reflow, but FrameNeedsReflow cannot be called that time.
Comment on attachment 8595727 [details] [diff] [review]
patch

See explanation in comment 3.
Attachment #8595727 - Flags: review- → review?(roc)
https://hg.mozilla.org/mozilla-central/rev/5a632c89fb1c
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: