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:
Kyle Huey 2010-08-28 14:31:53 -04:00
parent 5e35786794
commit f7db6afc90

View File

@ -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;
}