Optimization to make resizing with many tabs open fast.
git-svn-id: svn://10.0.0.236/trunk@119635 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fabccc7d40
commit
733e1ffb6f
@ -185,8 +185,14 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
|
||||
- (void)setFrame:(NSRect)frameRect
|
||||
{
|
||||
[super setFrame:frameRect];
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
|
||||
// Only resize our browser view if we are visible. If we're hidden, the frame
|
||||
// will get reset when we get placed back into the view hierarchy anyway. This
|
||||
// enhancement keeps resizing in a window with many tabs from being slow.
|
||||
if ([self window]) {
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
}
|
||||
}
|
||||
|
||||
-(BOOL)isBusy
|
||||
|
||||
@ -185,8 +185,14 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
|
||||
- (void)setFrame:(NSRect)frameRect
|
||||
{
|
||||
[super setFrame:frameRect];
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
|
||||
// Only resize our browser view if we are visible. If we're hidden, the frame
|
||||
// will get reset when we get placed back into the view hierarchy anyway. This
|
||||
// enhancement keeps resizing in a window with many tabs from being slow.
|
||||
if ([self window]) {
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
}
|
||||
}
|
||||
|
||||
-(BOOL)isBusy
|
||||
|
||||
@ -185,8 +185,14 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
|
||||
- (void)setFrame:(NSRect)frameRect
|
||||
{
|
||||
[super setFrame:frameRect];
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
|
||||
// Only resize our browser view if we are visible. If we're hidden, the frame
|
||||
// will get reset when we get placed back into the view hierarchy anyway. This
|
||||
// enhancement keeps resizing in a window with many tabs from being slow.
|
||||
if ([self window]) {
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
}
|
||||
}
|
||||
|
||||
-(BOOL)isBusy
|
||||
|
||||
@ -185,8 +185,14 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
|
||||
- (void)setFrame:(NSRect)frameRect
|
||||
{
|
||||
[super setFrame:frameRect];
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
|
||||
// Only resize our browser view if we are visible. If we're hidden, the frame
|
||||
// will get reset when we get placed back into the view hierarchy anyway. This
|
||||
// enhancement keeps resizing in a window with many tabs from being slow.
|
||||
if ([self window]) {
|
||||
NSRect bounds = [self bounds];
|
||||
[mBrowserView setFrame:bounds];
|
||||
}
|
||||
}
|
||||
|
||||
-(BOOL)isBusy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user