зеркало из https://github.com/mozilla/gecko-dev.git
Fix argument type for undocumented API "_setWindowNumber:". b=518546 r=smichaud
This commit is contained in:
Родитель
cedaa84f7d
Коммит
30523453e6
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче