Camino only - Bug 399731 - Fix tab background drawing under UI scaling. Patch by Ben Willmore <bdeb@willmore.eu>. r=smorgan sr=pink
git-svn-id: svn://10.0.0.236/trunk@238210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -265,7 +265,7 @@ static const float kScrollButtonInterval = 0.15; // time (in seconds) between f
|
||||
{
|
||||
// draw tab bar background, omitting the selected Tab
|
||||
NSRect barFrame = [self bounds];
|
||||
NSPoint patternOrigin = [self convertPoint:NSMakePoint(0.0f, 0.0f) toView:nil];
|
||||
NSPoint patternOrigin = [self convertPoint:NSMakePoint(0.0f, 0.0f) toView:[[self window] contentView]];
|
||||
NSRect fillRect;
|
||||
|
||||
// first, fill to the left of the active tab
|
||||
|
||||
@@ -138,7 +138,7 @@ static NSImage* gTabButtonDividerImage = nil;
|
||||
[gTabButtonDividerImage compositeToPoint:NSMakePoint(NSMaxX(rect), rect.origin.y) operation:NSCompositeSourceOver];
|
||||
}
|
||||
|
||||
NSPoint patternOrigin = [controlView convertPoint:NSMakePoint(0.0f, 0.0f) toView:nil];
|
||||
NSPoint patternOrigin = [controlView convertPoint:NSMakePoint(0.0f, 0.0f) toView:[[controlView window] contentView]];
|
||||
NSWindow *window = [[mTabViewItem tabView] window];
|
||||
if ([mTabViewItem tabState] == NSSelectedTab) {
|
||||
// move things down a little, to give the impression of being pulled forward
|
||||
|
||||
Reference in New Issue
Block a user