зеркало из https://github.com/mozilla/gecko-dev.git
Backout f89ae3c450ce (bug 1324892) for busting Thunderbird. r=me
This commit is contained in:
Родитель
eea2736c27
Коммит
7081d0c7e8
|
@ -472,9 +472,6 @@ nsresult nsCocoaWindow::CreateNativeWindow(const NSRect &aRect,
|
|||
mWindow = [[windowClass alloc] initWithContentRect:contentRect styleMask:features
|
||||
backing:NSBackingStoreBuffered defer:YES];
|
||||
|
||||
// By default, hide window titles.
|
||||
[mWindow setTitleVisibility:NSWindowTitleHidden];
|
||||
|
||||
// setup our notification delegate. Note that setDelegate: does NOT retain.
|
||||
mDelegate = [[WindowDelegate alloc] initWithGeckoWindow:this];
|
||||
[mWindow setDelegate:mDelegate];
|
||||
|
@ -1843,11 +1840,9 @@ nsCocoaWindow::SetTitle(const nsAString& aTitle)
|
|||
if ([mWindow drawsContentsIntoWindowFrame] && ![mWindow wantsTitleDrawn]) {
|
||||
// Don't cause invalidations.
|
||||
[mWindow disableSetNeedsDisplay];
|
||||
[mWindow setTitleVisibility:NSWindowTitleHidden];
|
||||
[mWindow setTitle:title];
|
||||
[mWindow enableSetNeedsDisplay];
|
||||
} else {
|
||||
[mWindow setTitleVisibility:NSWindowTitleVisible];
|
||||
[mWindow setTitle:title];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче