зеркало из https://github.com/mozilla/gecko-dev.git
Bug 403174 - Attach sheets under the toolbar, not directly under the titlebar. r=josh
--HG-- extra : rebase_source : a4bdfa97c723fa2e6191719842a85f64db9a81cc
This commit is contained in:
Родитель
d595d628cc
Коммит
f6a620926b
|
@ -1865,6 +1865,11 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor"
|
|||
// we respond to it just in case.
|
||||
if ([self respondsToSelector:@selector(setBottomCornerRounded:)])
|
||||
[self setBottomCornerRounded:NO];
|
||||
|
||||
#ifdef NS_LEOPARD_AND_LATER
|
||||
[self setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
||||
[self setContentBorderThickness:0.0f forEdge:NSMaxYEdge];
|
||||
#endif
|
||||
}
|
||||
return self;
|
||||
|
||||
|
@ -1909,6 +1914,10 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor"
|
|||
return;
|
||||
mUnifiedToolbarHeight = aToolbarHeight;
|
||||
|
||||
#ifdef NS_LEOPARD_AND_LATER
|
||||
[self setContentBorderThickness:aToolbarHeight forEdge:NSMaxYEdge];
|
||||
#endif
|
||||
|
||||
// Since this function is only called inside painting, the repaint needs to
|
||||
// be synchronous.
|
||||
[self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:YES];
|
||||
|
|
Загрузка…
Ссылка в новой задаче