mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 678039 - Limit the top titlebar line overdrawing workaround to Lion. It's not needed on Leopard / Snow Leopard. r=josh
This commit is contained in:
parent
f14955fe44
commit
92a037b32c
@ -2417,11 +2417,14 @@ DrawNativeTitlebar(CGContextRef aContext, CGRect aTitlebarRect,
|
||||
nil],
|
||||
nil);
|
||||
|
||||
// At some window widths the call to CUIDraw doesn't draw the top pixel strip.
|
||||
// We don't want to have a flickering transparent line, so we overdraw it.
|
||||
CGContextSetRGBFillColor(aContext, 0.95, 0.95, 0.95, 1);
|
||||
CGContextFillRect(aContext, CGRectMake(0, CGRectGetMaxY(aTitlebarRect) - 1,
|
||||
aTitlebarRect.size.width, 1));
|
||||
if (nsToolkit::OnLionOrLater()) {
|
||||
// On Lion the call to CUIDraw doesn't draw the top pixel strip at some
|
||||
// window widths. We don't want to have a flickering transparent line, so
|
||||
// we overdraw it.
|
||||
CGContextSetRGBFillColor(aContext, 0.95, 0.95, 0.95, 1);
|
||||
CGContextFillRect(aContext, CGRectMake(0, CGRectGetMaxY(aTitlebarRect) - 1,
|
||||
aTitlebarRect.size.width, 1));
|
||||
}
|
||||
}
|
||||
|
||||
// Pattern draw callback for standard titlebar gradients and solid titlebar colors
|
||||
|
Loading…
Reference in New Issue
Block a user