Backout 38b25d5e6cf9 because assertions
This commit is contained in:
@@ -6835,19 +6835,18 @@ nsBlockFrame::ReflowBullet(nsIFrame* aBulletFrame,
|
|||||||
WritingMode bulletWM = reflowState.GetWritingMode();
|
WritingMode bulletWM = reflowState.GetWritingMode();
|
||||||
LogicalMargin bulletMargin =
|
LogicalMargin bulletMargin =
|
||||||
reflowState.ComputedLogicalMargin().ConvertTo(wm, bulletWM);
|
reflowState.ComputedLogicalMargin().ConvertTo(wm, bulletWM);
|
||||||
LogicalSize bulletSize = aMetrics.Size(bulletWM).ConvertTo(wm, bulletWM);
|
|
||||||
nscoord iStart = logicalFAS.IStart(wm) -
|
nscoord iStart = logicalFAS.IStart(wm) -
|
||||||
rs.ComputedLogicalBorderPadding().IStart(wm) -
|
rs.ComputedLogicalBorderPadding().IStart(wm) -
|
||||||
bulletMargin.IEnd(wm) -
|
bulletMargin.IEnd(wm) -
|
||||||
bulletSize.ISize(wm);
|
aMetrics.ISize();
|
||||||
|
|
||||||
// Approximate the bullets position; vertical alignment will provide
|
// Approximate the bullets position; vertical alignment will provide
|
||||||
// the final vertical location. We pass our writing-mode here, because
|
// the final vertical location. We pass our writing-mode here, because
|
||||||
// it may be different from the bullet frame's mode.
|
// it may be different from the bullet frame's mode.
|
||||||
nscoord bStart = logicalFAS.BStart(wm);
|
nscoord bStart = logicalFAS.BStart(wm);
|
||||||
aBulletFrame->SetRect(wm, LogicalRect(wm, LogicalPoint(wm, iStart, bStart),
|
aBulletFrame->SetRect(wm, LogicalRect(wm, LogicalPoint(wm, iStart, bStart),
|
||||||
LogicalSize(wm, bulletSize.ISize(wm),
|
LogicalSize(wm, aMetrics.ISize(),
|
||||||
bulletSize.BSize(wm))),
|
aMetrics.BSize())),
|
||||||
containerWidth);
|
containerWidth);
|
||||||
aBulletFrame->DidReflow(aState.mPresContext, &aState.mReflowState,
|
aBulletFrame->DidReflow(aState.mPresContext, &aState.mReflowState,
|
||||||
nsDidReflowStatus::FINISHED);
|
nsDidReflowStatus::FINISHED);
|
||||||
|
|||||||
@@ -218,27 +218,11 @@ public:
|
|||||||
// ISize is the size in the writing mode's inline direction (which equates to
|
// ISize is the size in the writing mode's inline direction (which equates to
|
||||||
// width in horizontal writing modes, height in vertical ones), and BSize is
|
// width in horizontal writing modes, height in vertical ones), and BSize is
|
||||||
// the size in the block-progression direction.
|
// the size in the block-progression direction.
|
||||||
nscoord ISize(mozilla::WritingMode aWritingMode) const {
|
nscoord ISize() const { return mISize; }
|
||||||
CHECK_WRITING_MODE(aWritingMode);
|
nscoord BSize() const { return mBSize; }
|
||||||
return mISize;
|
|
||||||
}
|
|
||||||
nscoord BSize(mozilla::WritingMode aWritingMode) const {
|
|
||||||
CHECK_WRITING_MODE(aWritingMode);
|
|
||||||
return mBSize;
|
|
||||||
}
|
|
||||||
mozilla::LogicalSize Size(mozilla::WritingMode aWritingMode) const {
|
|
||||||
CHECK_WRITING_MODE(aWritingMode);
|
|
||||||
return mozilla::LogicalSize(aWritingMode, mISize, mBSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
nscoord& ISize(mozilla::WritingMode aWritingMode) {
|
nscoord& ISize() { return mISize; }
|
||||||
CHECK_WRITING_MODE(aWritingMode);
|
nscoord& BSize() { return mBSize; }
|
||||||
return mISize;
|
|
||||||
}
|
|
||||||
nscoord& BSize(mozilla::WritingMode aWritingMode) {
|
|
||||||
CHECK_WRITING_MODE(aWritingMode);
|
|
||||||
return mBSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Width and Height are physical dimensions, independent of writing mode.
|
// Width and Height are physical dimensions, independent of writing mode.
|
||||||
// Accessing these is slightly more expensive than accessing the logical
|
// Accessing these is slightly more expensive than accessing the logical
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ nsInlineFrame::ReflowFrames(nsPresContext* aPresContext,
|
|||||||
// line-height calculations. However, continuations of an inline
|
// line-height calculations. However, continuations of an inline
|
||||||
// that are empty we force to empty so that things like collapsed
|
// that are empty we force to empty so that things like collapsed
|
||||||
// whitespace in an inline element don't affect the line-height.
|
// whitespace in an inline element don't affect the line-height.
|
||||||
aMetrics.ISize(wm) = lineLayout->EndSpan(this);
|
aMetrics.ISize() = lineLayout->EndSpan(this);
|
||||||
|
|
||||||
// Compute final width.
|
// Compute final width.
|
||||||
|
|
||||||
@@ -664,7 +664,7 @@ nsInlineFrame::ReflowFrames(nsPresContext* aPresContext,
|
|||||||
// and padding since all continuations have them.
|
// and padding since all continuations have them.
|
||||||
if ((!GetPrevContinuation() && !FrameIsNonFirstInIBSplit()) ||
|
if ((!GetPrevContinuation() && !FrameIsNonFirstInIBSplit()) ||
|
||||||
boxDecorationBreakClone) {
|
boxDecorationBreakClone) {
|
||||||
aMetrics.ISize(wm) += aReflowState.ComputedLogicalBorderPadding().IStart(wm);
|
aMetrics.ISize() += aReflowState.ComputedLogicalBorderPadding().IStart(wm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -950,8 +950,8 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
|||||||
// added in later by nsLineLayout::ReflowInlineFrames.
|
// added in later by nsLineLayout::ReflowInlineFrames.
|
||||||
pfd->mOverflowAreas = metrics.mOverflowAreas;
|
pfd->mOverflowAreas = metrics.mOverflowAreas;
|
||||||
|
|
||||||
pfd->mBounds.ISize(lineWM) = metrics.ISize(lineWM);
|
pfd->mBounds.ISize(lineWM) = metrics.ISize();
|
||||||
pfd->mBounds.BSize(lineWM) = metrics.BSize(lineWM);
|
pfd->mBounds.BSize(lineWM) = metrics.BSize();
|
||||||
|
|
||||||
// Size the frame, but |RelativePositionFrames| will size the view.
|
// Size the frame, but |RelativePositionFrames| will size the view.
|
||||||
aFrame->SetSize(nsSize(metrics.Width(), metrics.Height()));
|
aFrame->SetSize(nsSize(metrics.Width(), metrics.Height()));
|
||||||
|
|||||||
Reference in New Issue
Block a user