mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
Bug 45631: text-indent: n% doesn't incrementally reflow correctly. r+sr=roc.
This commit is contained in:
parent
6c7820f159
commit
3fb1602073
@ -3204,6 +3204,11 @@ nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState& aState,
|
||||
/* XXX get the height right! */
|
||||
availHeight = aState.mAvailSpaceRect.height;
|
||||
}
|
||||
|
||||
// Make sure to enable resize optimization before we call BeginLineReflow
|
||||
// because it might get disabled there
|
||||
aLine->EnableResizeReflowOptimization();
|
||||
|
||||
aLineLayout.BeginLineReflow(x, aState.mY,
|
||||
availWidth, availHeight,
|
||||
impactedByFloats,
|
||||
@ -3224,7 +3229,6 @@ nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState& aState,
|
||||
LineReflowStatus lineReflowStatus = LINE_REFLOW_OK;
|
||||
PRInt32 i;
|
||||
nsIFrame* frame = aLine->mFirstChild;
|
||||
aLine->EnableResizeReflowOptimization();
|
||||
|
||||
// Determine whether this is a line of placeholders for out-of-flow
|
||||
// continuations
|
||||
|
@ -249,6 +249,7 @@ nsLineLayout::BeginLineReflow(nscoord aX, nscoord aY,
|
||||
if ((0 != width) && (NS_UNCONSTRAINEDSIZE != width)) {
|
||||
indent = nscoord(mStyleText->mTextIndent.GetPercentValue() * width);
|
||||
}
|
||||
mLineBox->DisableResizeReflowOptimization();
|
||||
}
|
||||
|
||||
mTextIndent = indent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user