Changeset 83208 in webkit


Ignore:
Timestamp:
Apr 7, 2011 2:11:42 PM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-04-07 Jer Noble <jer.noble@apple.com>

Reviewed by Eric Carlson.

HTMLVideoElement::webkitEnterFullscreen does not use new Full Screen API when available.
https://bugs.webkit.org/show_bug.cgi?id=58070

Make the HTMLMediaElement full screen functions call into the new Full Screen API when
FULLSCREEN_API is enabled.

  • html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::enterFullscreen): (WebCore::HTMLMediaElement::exitFullscreen):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83205 r83208  
     12011-04-07  Jer Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Eric Carlson.
     4
     5        HTMLVideoElement::webkitEnterFullscreen does not use new Full Screen API when available.
     6        https://bugs.webkit.org/show_bug.cgi?id=58070
     7
     8        Make the HTMLMediaElement full screen functions call into the new Full Screen API when
     9        FULLSCREEN_API is enabled.
     10
     11        * html/HTMLMediaElement.cpp:
     12        (WebCore::HTMLMediaElement::enterFullscreen):
     13        (WebCore::HTMLMediaElement::exitFullscreen):
     14
    1152011-04-07  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r82272 r83208  
    24492449{
    24502450    LOG(Media, "HTMLMediaElement::enterFullscreen");
    2451 
     2451#if ENABLE(FULLSCREEN_API)
     2452    if (document()->settings() && document()->settings()->fullScreenEnabled()) {
     2453        webkitRequestFullScreen(0);
     2454        return;
     2455    }
     2456#endif
    24522457    ASSERT(!m_isFullscreen);
    24532458    m_isFullscreen = true;
     
    24612466{
    24622467    LOG(Media, "HTMLMediaElement::exitFullscreen");
    2463 
     2468#if ENABLE(FULLSCREEN_API)
     2469    if (document()->settings() && document()->settings()->fullScreenEnabled()
     2470        && document()->webkitIsFullScreen() && document()->webkitCurrentFullScreenElement() == this) {
     2471        document()->webkitCancelFullScreen();
     2472        return;
     2473    }
     2474#endif
    24642475    ASSERT(m_isFullscreen);
    24652476    m_isFullscreen = false;
Note: See TracChangeset for help on using the changeset viewer.