Bug 506151 - MozillaDropShadowWindowClass constant isn't in the defs file. r=vlad.

This commit is contained in:
Jim Mathies 2009-07-27 12:29:04 -05:00
parent dab5d81879
commit 63310514c6
2 changed files with 2 additions and 3 deletions

View File

@ -770,8 +770,6 @@ LPCWSTR nsWindow::WindowClass()
// Return the proper popup window class
LPCWSTR nsWindow::WindowPopupClass()
{
const LPCWSTR className = L"MozillaDropShadowWindowClass";
if (!nsWindow::sIsPopupClassRegistered) {
WNDCLASSW wc;
@ -784,7 +782,7 @@ LPCWSTR nsWindow::WindowPopupClass()
wc.hCursor = NULL;
wc.hbrBackground = mBrush;
wc.lpszMenuName = NULL;
wc.lpszClassName = className;
wc.lpszClassName = kClassNameDropShadow;
nsWindow::sIsPopupClassRegistered = ::RegisterClassW(&wc);
if (!nsWindow::sIsPopupClassRegistered) {

View File

@ -190,6 +190,7 @@ const LPCWSTR kClassNameContent = L"MozillaContentWindowClass";
const LPCWSTR kClassNameContentFrame = L"MozillaContentFrameWindowClass";
const LPCWSTR kClassNameGeneral = L"MozillaWindowClass";
const LPCWSTR kClassNameDialog = L"MozillaDialogClass";
const LPCWSTR kClassNameDropShadow = L"MozillaDropShadowWindowClass";
static const PRUint32 sModifierKeyMap[][3] = {
{ nsIWidget::CAPS_LOCK, VK_CAPITAL, 0 },