зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1140625 - Part 5: Move Flush_Layout to the right place in SelectionCarets::UpdateSelectionCarets. r=roc
This commit is contained in:
Родитель
dc78f0b03f
Коммит
0d9dd77e66
|
@ -462,6 +462,8 @@ SelectionCarets::UpdateSelectionCarets()
|
|||
nsRefPtr<nsRange> firstRange = selection->GetRangeAt(0);
|
||||
nsRefPtr<nsRange> lastRange = selection->GetRangeAt(rangeCount - 1);
|
||||
|
||||
mPresShell->FlushPendingNotifications(Flush_Layout);
|
||||
|
||||
nsIFrame* rootFrame = mPresShell->GetRootFrame();
|
||||
|
||||
if (!rootFrame) {
|
||||
|
@ -495,8 +497,6 @@ SelectionCarets::UpdateSelectionCarets()
|
|||
return;
|
||||
}
|
||||
|
||||
mPresShell->FlushPendingNotifications(Flush_Layout);
|
||||
|
||||
// If the selection is not visible, we should dispatch a event.
|
||||
nsIFrame* commonAncestorFrame =
|
||||
nsLayoutUtils::FindNearestCommonAncestorFrame(startFrame, endFrame);
|
||||
|
|
Загрузка…
Ссылка в новой задаче