зеркало из https://github.com/mozilla/pjs.git
Bug 503879, followup to move NS_SYSCOLORCHANGED code into a separate method
This commit is contained in:
Родитель
8eac68a624
Коммит
550f6c574c
|
@ -4668,17 +4668,7 @@ bool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
|||
break;
|
||||
|
||||
case WM_SYSCOLORCHANGE:
|
||||
if (mWindowType == eWindowType_invisible) {
|
||||
::EnumThreadWindows(GetCurrentThreadId(), nsWindow::BroadcastMsg, msg);
|
||||
}
|
||||
else {
|
||||
// Note: This is sent for child windows as well as top-level windows.
|
||||
// The Win32 toolkit normally only sends these events to top-level windows.
|
||||
// But we cycle through all of the childwindows and send it to them as well
|
||||
// so all presentations get notified properly.
|
||||
// See nsWindow::GlobalMsgWindowProc.
|
||||
DispatchStandardEvent(NS_SYSCOLORCHANGED);
|
||||
}
|
||||
OnSysColorChanged();
|
||||
break;
|
||||
|
||||
case WM_NOTIFY:
|
||||
|
@ -8001,6 +7991,22 @@ nsWindow::HasBogusPopupsDropShadowOnMultiMonitor() {
|
|||
return !!sHasBogusPopupsDropShadowOnMultiMonitor;
|
||||
}
|
||||
|
||||
void
|
||||
nsWindow::OnSysColorChanged()
|
||||
{
|
||||
if (mWindowType == eWindowType_invisible) {
|
||||
::EnumThreadWindows(GetCurrentThreadId(), nsWindow::BroadcastMsg, WM_SYSCOLORCHANGE);
|
||||
}
|
||||
else {
|
||||
// Note: This is sent for child windows as well as top-level windows.
|
||||
// The Win32 toolkit normally only sends these events to top-level windows.
|
||||
// But we cycle through all of the childwindows and send it to them as well
|
||||
// so all presentations get notified properly.
|
||||
// See nsWindow::GlobalMsgWindowProc.
|
||||
DispatchStandardEvent(NS_SYSCOLORCHANGED);
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************
|
||||
**************************************************************
|
||||
**
|
||||
|
|
|
@ -443,6 +443,7 @@ protected:
|
|||
LPARAM aLParam,
|
||||
LRESULT *aRetValue);
|
||||
void OnWindowPosChanging(LPWINDOWPOS& info);
|
||||
void OnSysColorChanged();
|
||||
|
||||
/**
|
||||
* Function that registers when the user has been active (used for detecting
|
||||
|
|
Загрузка…
Ссылка в новой задаче