mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 17:43:44 +00:00
Bug 589529: Change window class names to trick scroll drivers into working again. r=roc a=blocking-2.0:beta5
This commit is contained in:
parent
5e35786794
commit
f7db6afc90
@ -746,12 +746,6 @@ LPCWSTR nsWindow::WindowClass()
|
||||
nsWindow::sIsRegistered = FALSE;
|
||||
}
|
||||
|
||||
wc.lpszClassName = kClassNameUI;
|
||||
if (!::RegisterClassW(&wc) &&
|
||||
ERROR_CLASS_ALREADY_EXISTS != GetLastError()) {
|
||||
nsWindow::sIsRegistered = FALSE;
|
||||
}
|
||||
|
||||
wc.lpszClassName = kClassNameGeneral;
|
||||
ATOM generalClassAtom = ::RegisterClassW(&wc);
|
||||
if (!generalClassAtom &&
|
||||
@ -779,9 +773,6 @@ LPCWSTR nsWindow::WindowClass()
|
||||
if (mContentType == eContentTypeContentFrame) {
|
||||
return kClassNameContentFrame;
|
||||
}
|
||||
if (mContentType == eContentTypeUI) {
|
||||
return kClassNameUI;
|
||||
}
|
||||
return kClassNameGeneral;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user