mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
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:
parent
9b41572407
commit
587a8d7b4b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user