Fix incorrect checks for HTMLMediaElement
authorKent Tamura <tkent@chromium.org>
Thu, 4 Aug 2011 04:38:01 +0000 (04:38 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 5 Aug 2011 20:41:23 +0000 (17:41 -0300)
commit6c2f6bbcd6f5d9c63b936851c2b58f06f477f99a
tree16f2b2f7096bf46b3cab36f893f456d8da531a72
parent244cf0d8aa7f831c0774c491f2c40fc6172426da
Fix incorrect checks for HTMLMediaElement
https://bugs.webkit.org/show_bug.cgi?id=65590

Reviewed by Dimitri Glazkov.

<video> and <audio> can be an HTMLElement instance instead of
HTMLMediaElement if MediaPlayer::isAvailable() returns false or
the media feature is disabled at runtime.

Source/WebCore:

* html/HTMLSourceElement.cpp:
(WebCore::HTMLSourceElement::insertedIntoTree):
(WebCore::HTMLSourceElement::willRemove):
* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::insertedIntoTree):
(WebCore::HTMLTrackElement::willRemove):
* html/shadow/MediaControlElements.cpp:
(WebCore::toParentMediaElement):
* page/FrameView.cpp:
(WebCore::FrameView::updateWidget):
* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::paintMediaMuteButton):
* platform/gtk/RenderThemeGtk.cpp:
(WebCore::getMediaElementFromRenderObject):
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintMediaSliderTrack):
* rendering/RenderThemeWinCE.cpp:
(WebCore::mediaElementParent):

Source/WebKit/mac:

* WebView/WebFullScreenController.mm:
(-[WebFullScreenController _isAnyMoviePlaying]):

Source/WebKit/win:

* WebView.cpp:
(WebView::enterFullscreenForNode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLSourceElement.cpp
Source/WebCore/html/HTMLTrackElement.cpp
Source/WebCore/html/shadow/MediaControlElements.cpp
Source/WebCore/page/FrameView.cpp
Source/WebCore/platform/efl/RenderThemeEfl.cpp
Source/WebCore/platform/gtk/RenderThemeGtk.cpp
Source/WebCore/rendering/RenderThemeMac.mm
Source/WebCore/rendering/RenderThemeWinCE.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebFullScreenController.mm
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebView.cpp