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:
hyatt%netscape.com 2002-04-23 22:23:57 +00:00
parent fabccc7d40
commit 733e1ffb6f
4 changed files with 32 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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