Optimization to make resizing with many tabs open fast.

This commit is contained in:
hyatt%netscape.com 2002-04-23 22:23:57 +00:00
Родитель 0d077a3f1e
Коммит 9154da9c12
4 изменённых файлов: 32 добавлений и 8 удалений

Просмотреть файл

@ -185,8 +185,14 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
- (void)setFrame:(NSRect)frameRect
{
[super setFrame:frameRect];
// 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];
// 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];
// 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];
// 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