Closed Bug 1146112 Opened 9 years ago Closed 9 years ago

Several assertions with ruby in grid

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: jruderman, Assigned: xidorn)

References

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: Something went awry in our block parent calculations: '!aFrame->IsBoxFrame() || itemsToConstruct.AnyItemsNeedBlockParent() == (AnyKidsNeedBlockParent(aFrameItems.FirstChild()) != nullptr)', file src/layout/base/nsCSSFrameConstructor.cpp, line 10457

###!!! ASSERTION: No line layout provided to RubyFrame reflow method.: 'aReflowState.mLineLayout', file src/layout/generic/nsRubyFrame.cpp, line 140

###!!! ASSERTION: huh?: 'pfd->mFrame == aFrame', file src/layout/generic/nsLineLayout.cpp, line 445
Attached file stack
I guess this probably could also happen with flexbox...
Attached patch patchSplinter Review
Assignee: nobody → quanxunzhen
Attachment #8585285 - Flags: review?(roc)
OS: Mac OS X → All
Hardware: x86_64 → All
Comment on attachment 8585285 [details] [diff] [review]
patch

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

::: layout/base/nsCSSFrameConstructor.cpp
@@ +10166,5 @@
> +  // All types of ruby frames need a block frame to provide line layout,
> +  // hence they are always line participant.
> +  newItem->mIsLineParticipant = disp->IsRubyDisplayType();
> +
> +  if (!disp->IsRubyDisplayType()) {

bool isRuby = disp->IsRubyDisplayType();
newItem->mIsLineParticipant = isRuby;
if (!isRuby) {
Attachment #8585285 - Flags: review?(roc) → review+
https://hg.mozilla.org/mozilla-central/rev/969baf537e95
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: