Closed Bug 1230408 Opened 10 years ago Closed 10 years ago

Assertion failure: "Any line break inside ruby box should have been suppressed" with :first-letter

Categories

(Core :: Layout, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox42 --- affected
firefox43 --- affected
firefox44 --- affected
firefox45 --- affected
firefox46 --- fixed
firefox-esr38 --- affected
firefox-esr45 --- affected

People

(Reporter: jruderman, Assigned: xidorn)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
Assertion failure: false (MOZ_ASSERT_UNREACHABLE: Any line break inside ruby box should have been suppressed), at layout/generic/nsRubyBaseContainerFrame.cpp:663
Attached file stack
Flags: needinfo?(quanxunzhen)
Flags: needinfo?(quanxunzhen)
Assignee: nobody → quanxunzhen
Comment on attachment 8698731 [details] MozReview Request: Bug 1230408 - Move suppress line break check out from control of SkipParentDisplayBasedStyleFixup. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28101/diff/1-2/
Comment on attachment 8698731 [details] MozReview Request: Bug 1230408 - Move suppress line break check out from control of SkipParentDisplayBasedStyleFixup. https://reviewboard.mozilla.org/r/28101/#review26477 ::: layout/style/nsStyleContext.cpp:525 (Diff revision 2) > - if (aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_INLINE || > - aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY || > - aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER) { > + if (aParentDisplay->mDisplay == NS_STYLE_DISPLAY_INLINE || > + aParentDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY || > + aParentDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER) { Should this test also consider display:contents now?
Attachment #8698731 - Flags: review?(dbaron) → review+
(In reply to David Baron [:dbaron] ⌚️UTC-8 from comment #4) > Comment on attachment 8698731 [details] > MozReview Request: Bug 1230408 - Move suppress line break check out from > control of SkipParentDisplayBasedStyleFixup. > > https://reviewboard.mozilla.org/r/28101/#review26477 > > ::: layout/style/nsStyleContext.cpp:525 > (Diff revision 2) > > - if (aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_INLINE || > > - aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY || > > - aContainerDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER) { > > + if (aParentDisplay->mDisplay == NS_STYLE_DISPLAY_INLINE || > > + aParentDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY || > > + aParentDisplay->mDisplay == NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER) { > > Should this test also consider display:contents now? Yeah, you're right. Thanks.
https://hg.mozilla.org/integration/mozilla-inbound/rev/75a467904c9e86b2add855fa16dafbfcb2b70c4a Bug 1230408 - Move suppress line break check out from control of SkipParentDisplayBasedStyleFixup. r=dbaron
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: