зеркало из https://github.com/mozilla/pjs.git
Update the caret's position and size after reflows. bug 334609, r+sr=roc
This commit is contained in:
Родитель
2087699f5c
Коммит
170cf18a50
|
@ -6516,8 +6516,8 @@ PresShell::WillDoReflow()
|
|||
{
|
||||
// We just reflowed, tell the caret that its frame might have moved.
|
||||
if (mCaret) {
|
||||
mCaret->UpdateCaretPosition();
|
||||
mCaret->InvalidateOutsideCaret();
|
||||
mCaret->UpdateCaretPosition();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6531,8 +6531,12 @@ PresShell::DidDoReflow()
|
|||
// bugs 244435 and 238546.
|
||||
if (!mPaintingSuppressed && mViewManager)
|
||||
mViewManager->SynthesizeMouseMove(PR_FALSE);
|
||||
if (mCaret)
|
||||
if (mCaret) {
|
||||
// Update the caret's position now to account for any changes created by
|
||||
// the reflow.
|
||||
mCaret->InvalidateOutsideCaret();
|
||||
mCaret->UpdateCaretPosition();
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче