Bug 1164625 - Don't redraw the titlebar for unified toolbar height changes when the titlebar is under Gecko's control. r=smichaud

This commit is contained in:
Markus Stange 2015-05-21 17:49:56 -04:00
parent 9b41572407
commit 587a8d7b4b

View File

@ -3279,10 +3279,12 @@ static const NSString* kStateShowsToolbarButton = @"showsToolbarButton";
mUnifiedToolbarHeight = aHeight;
// Redraw the title bar. If we're inside painting, we'll do it right now,
// otherwise we'll just invalidate it.
BOOL needSyncRedraw = ([NSView focusView] != nil);
[self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:needSyncRedraw];
if (![self drawsContentsIntoWindowFrame]) {
// Redraw the title bar. If we're inside painting, we'll do it right now,
// otherwise we'll just invalidate it.
BOOL needSyncRedraw = ([NSView focusView] != nil);
[self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:needSyncRedraw];
}
}
// Extending the content area into the title bar works by resizing the