Fix argument type for undocumented API "_setWindowNumber:". b=518546 r=smichaud

This commit is contained in:
wagerlabs 2009-09-25 00:00:28 -04:00
Родитель cedaa84f7d
Коммит 30523453e6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -66,7 +66,7 @@ typedef struct _nsCocoaWindowList {
// (and put it back in the "window cache"). One way to do this, which Apple
// often uses, is to set the "window number" to '-1' and then back to its
// original value.
- (void)_setWindowNumber:(int)aNumber;
- (void)_setWindowNumber:(NSInteger)aNumber;
// If we set the window's stylemask to be textured, the corners on the bottom of
// the window are rounded by default. We use this private method to make

Просмотреть файл

@ -629,7 +629,7 @@ NS_IMETHODIMP nsCocoaWindow::Show(PRBool bState)
// -- see below). Setting the window number to -1 and then back to its
// original value seems to accomplish this. The idea was "borrowed"
// from the Java Embedding Plugin.
int windowNumber = [mWindow windowNumber];
NSInteger windowNumber = [mWindow windowNumber];
[mWindow _setWindowNumber:-1];
[mWindow _setWindowNumber:windowNumber];
[mWindow setAcceptsMouseMovedEvents:YES];