Commit 3b02e463 authored by cblu's avatar cblu
Browse files

Fixed: 3050665 - REGRESSION: mp3 audio loads and plays, but no progress or play control is visible

        * Plugins.subproj/WebPluginView.h:
        * Plugins.subproj/WebPluginView.m:
        (-[WebNetscapePluginView setNeedsLayout:]):
        (-[WebNetscapePluginView layout]):
        (-[WebNetscapePluginView drawRect:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 87ca6397
2002-09-25 Chris Blumenberg <cblu@apple.com>
Fixed: 3050665 - REGRESSION: mp3 audio loads and plays, but no progress or play control is visible
* Plugins.subproj/WebPluginView.h:
* Plugins.subproj/WebPluginView.m:
(-[WebNetscapePluginView setNeedsLayout:]):
(-[WebNetscapePluginView layout]):
(-[WebNetscapePluginView drawRect:]):
2002-09-25 Darin Adler <darin@apple.com>
 
Make the "set aside subviews" logic stronger so it can handle a display
......
2002-09-25 Chris Blumenberg <cblu@apple.com>
Fixed: 3050665 - REGRESSION: mp3 audio loads and plays, but no progress or play control is visible
* Plugins.subproj/WebPluginView.h:
* Plugins.subproj/WebPluginView.m:
(-[WebNetscapePluginView setNeedsLayout:]):
(-[WebNetscapePluginView layout]):
(-[WebNetscapePluginView drawRect:]):
2002-09-25 Darin Adler <darin@apple.com>
 
Make the "set aside subviews" logic stronger so it can handle a display
......
......@@ -30,7 +30,7 @@
NP_Port nPort;
NPP_t instanceStruct;
BOOL canRestart, isHidden, isStarted, fullMode;
BOOL canRestart, isHidden, isStarted, fullMode, needsLayout;
NSString *mime;
NSURL *srcURL, *baseURL;
......
......@@ -691,6 +691,7 @@ - (void)dataSourceUpdated:(WebDataSource *)dataSource
- (void)setNeedsLayout:(BOOL)flag
{
needsLayout = flag;
}
- (void)layout
......@@ -700,16 +701,25 @@ - (void)layout
[self setFrame:NSMakeRect(0, 0, superFrame.size.width, superFrame.size.height)];
[self setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[self setUpWindowAndPort];
needsLayout = NO;
}
#pragma mark NSVIEW
- (void)drawRect:(NSRect)rect
{
if(!isStarted)
if(needsLayout){
[self layout];
}
if(!isStarted){
[self start];
if(isStarted)
}
if(isStarted){
[self sendUpdateEvent];
}
}
- (BOOL)isFlipped
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment