Bug 35876

Summary: HTMLMediaElement style improvements
Product: WebKit Reporter: Darin Adler <darin>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch jhoneycutt: review+

Darin Adler
Reported 2010-03-08 13:24:35 PST
HTMLMediaElement style improvements
Attachments
Patch (12.62 KB, patch)
2010-03-08 13:31 PST, Darin Adler
jhoneycutt: review+
Darin Adler
Comment 1 2010-03-08 13:31:57 PST
WebKit Review Bot
Comment 2 2010-03-08 13:38:40 PST
Jon Honeycutt
Comment 3 2010-03-08 13:42:10 PST
Comment on attachment 50243 [details] Patch r=me
Darin Adler
Comment 4 2010-03-08 13:45:32 PST
src/WebMediaPlayerClientImpl.cpp:141: error: ‘WebCore::MediaPlayerClient’ is an inaccessible base of ‘WebCore::HTMLMediaElement’ Frame* frame = static_cast<HTMLMediaElement*>( m_mediaPlayer->mediaPlayerClient())->document()->frame(); m_webMediaPlayer.set(createWebMediaPlayer(this, frame)); If the MediaPlayer is in fact always an HTMLMediaElement, then the class should hold an HTMLMediaElement*, not a MediaPlayer*. It's not safe to downcast.
Darin Adler
Comment 5 2010-03-08 13:53:29 PST
My mistake, it’s MediaPlayerClient* that is being downcast. If we really need to find out the Frame* then I think we should add a function to MediaPlayerClient* that returns it rather than doing this cast.
Darin Adler
Comment 6 2010-03-08 14:16:16 PST
Note You need to log in before you can comment on or make changes to this bug.