Text Zoom leaves misaligned overlapping text, b=128405, r=roc, sr=bz
git-svn-id: svn://10.0.0.236/trunk@163573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -858,7 +858,16 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||
nsReflowReason reason = eReflowReason_Resize;
|
||||
if (NS_FRAME_FIRST_REFLOW & aFrame->GetStateBits()) {
|
||||
reason = eReflowReason_Initial;
|
||||
}
|
||||
}
|
||||
else if (rs->reason == eReflowReason_Initial &&
|
||||
mBlockReflowState->reason == eReflowReason_StyleChange) {
|
||||
// The frame we're about to reflow is an _old_ frame that was
|
||||
// pushed inside a _new_ parent (overflow).
|
||||
|
||||
// So we propagate the same 'style change' that led to creating
|
||||
// the new overflow parent to which this frame is now the child
|
||||
reason = eReflowReason_StyleChange;
|
||||
}
|
||||
else if (rs->reason == eReflowReason_Incremental) { // XXX
|
||||
// XXXwaterson (above) previously used mBlockReflowState rather
|
||||
// than psd->mReflowState.
|
||||
|
||||
@@ -858,7 +858,16 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||
nsReflowReason reason = eReflowReason_Resize;
|
||||
if (NS_FRAME_FIRST_REFLOW & aFrame->GetStateBits()) {
|
||||
reason = eReflowReason_Initial;
|
||||
}
|
||||
}
|
||||
else if (rs->reason == eReflowReason_Initial &&
|
||||
mBlockReflowState->reason == eReflowReason_StyleChange) {
|
||||
// The frame we're about to reflow is an _old_ frame that was
|
||||
// pushed inside a _new_ parent (overflow).
|
||||
|
||||
// So we propagate the same 'style change' that led to creating
|
||||
// the new overflow parent to which this frame is now the child
|
||||
reason = eReflowReason_StyleChange;
|
||||
}
|
||||
else if (rs->reason == eReflowReason_Incremental) { // XXX
|
||||
// XXXwaterson (above) previously used mBlockReflowState rather
|
||||
// than psd->mReflowState.
|
||||
|
||||
Reference in New Issue
Block a user