зеркало из https://github.com/mozilla/gecko-dev.git
At kipp's suggestion I added a EnterReflowLock before and a ExitReflowLock
after my AppendReflowCommand. The reflow command gets "kicked off" and it is now fixed. r=kipp, b=14771
This commit is contained in:
Родитель
6844e8ec38
Коммит
7670a72df2
|
@ -1045,7 +1045,10 @@ nsComboboxControlFrame::SelectionChanged()
|
|||
nsCOMPtr<nsIPresShell> shell;
|
||||
rv = mPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (NS_SUCCEEDED(rv) && shell) {
|
||||
shell->AppendReflowCommand(cmd);
|
||||
if (NS_SUCCEEDED(shell->EnterReflowLock())) {
|
||||
shell->AppendReflowCommand(cmd);
|
||||
shell->ExitReflowLock();
|
||||
}
|
||||
}
|
||||
NS_RELEASE(cmd);
|
||||
}
|
||||
|
|
|
@ -1045,7 +1045,10 @@ nsComboboxControlFrame::SelectionChanged()
|
|||
nsCOMPtr<nsIPresShell> shell;
|
||||
rv = mPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (NS_SUCCEEDED(rv) && shell) {
|
||||
shell->AppendReflowCommand(cmd);
|
||||
if (NS_SUCCEEDED(shell->EnterReflowLock())) {
|
||||
shell->AppendReflowCommand(cmd);
|
||||
shell->ExitReflowLock();
|
||||
}
|
||||
}
|
||||
NS_RELEASE(cmd);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче