зеркало из https://github.com/mozilla/pjs.git
Optimization to make resizing with many tabs open fast.
This commit is contained in:
Родитель
0d077a3f1e
Коммит
9154da9c12
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче