mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 628917 - avoid rebuilding the font list repeatedly, by only handling WM_FONTCHANGE for the hidden window. r=jdaggett
This commit is contained in:
parent
346a06ac29
commit
cf2a314d3d
@ -4578,6 +4578,13 @@ bool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
|
||||
case WM_FONTCHANGE:
|
||||
{
|
||||
// We only handle this message for the hidden window,
|
||||
// as we only need to update the (global) font list once
|
||||
// for any given change, not once per window!
|
||||
if (mWindowType != eWindowType_invisible) {
|
||||
break;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
bool didChange = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user