Backout f89ae3c450ce (bug 1324892) for busting Thunderbird. r=me

This commit is contained in:
Stephen A Pohl 2017-09-16 00:09:31 -04:00
Родитель eea2736c27
Коммит 7081d0c7e8
1 изменённых файлов: 0 добавлений и 5 удалений

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

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