зеркало из https://github.com/mozilla/gecko-dev.git
Bug 337871 r+sr=roc Screen jumps around with multiple textboxes and spellchecking
This commit is contained in:
Родитель
2b332abdc1
Коммит
8a33f7a7c3
|
@ -5160,8 +5160,13 @@ nsTypedSelection::RemoveRange(nsIDOMRange* aRange)
|
|||
|
||||
nsCOMPtr<nsPresContext> presContext;
|
||||
GetPresContext(getter_AddRefs(presContext));
|
||||
selectFrames(presContext, aRange, PR_FALSE);
|
||||
if (aRange == mAnchorFocusRange.get())
|
||||
selectFrames(presContext, aRange, PR_FALSE);
|
||||
// When the selection is user-created it makes sense to scroll the range
|
||||
// into view. The spell-check selection, however, is created and destroyed
|
||||
// in the background. We don't want to scroll in this case or the view
|
||||
// might appear to be moving randomly (bug 337871).
|
||||
if (mType != nsISelectionController::SELECTION_SPELLCHECK &&
|
||||
aRange == mAnchorFocusRange.get())
|
||||
{
|
||||
PRInt32 cnt = mRangeArray.Count();
|
||||
if (cnt > 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче