From 4b755f0562eab0a1bbf5ea42d8d952131037a52c Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 17 Dec 2013 17:18:05 +0100 Subject: [PATCH] Bug 888615 - Back out changeset 2250a49996a2 because of an incomplete commit message. --- widget/cocoa/nsChildView.mm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index 53df1672d52c..76a7df3dd207 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -2266,7 +2266,7 @@ nsChildView::UpdateTitlebarCGContext() [NSGraphicsContext setCurrentContext:context]; // Draw the title string. - if ([window wantsTitleDrawn] && [frameView respondsToSelector:@selector(_drawTitleBar:)]) { + if ([frameView respondsToSelector:@selector(_drawTitleBar:)]) { [frameView _drawTitleBar:[frameView bounds]]; } @@ -3710,12 +3710,7 @@ NSEvent* gLastDragMouseDownEvent = nil; - (void)drawTitleString { - BaseWindow* window = (BaseWindow*)[self window]; - if (![window wantsTitleDrawn]) { - return; - } - - NSView* frameView = [[window contentView] superview]; + NSView* frameView = [[[self window] contentView] superview]; if (![frameView respondsToSelector:@selector(_drawTitleBar:)]) { return; }