Changeset 260217 in webkit


Ignore:
Timestamp:
Apr 16, 2020, 1:27:12 PM (5 years ago)
Author:
jer.noble@apple.com
Message:

Unreviewed build-fix after r260182; guard call to fullscreenManager() for ports which do not
ENABLE(FULLSCREEN_API).

  • html/MediaElementSession.cpp:

(WebCore::MediaElementSession::updateMediaUsageIfChanged):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r260209 r260217  
     12020-04-16  Jer Noble  <jer.noble@apple.com>
     2
     3        Unreviewed build-fix after r260182; guard call to fullscreenManager() for ports which do not
     4        ENABLE(FULLSCREEN_API).
     5
     6        * html/MediaElementSession.cpp:
     7        (WebCore::MediaElementSession::updateMediaUsageIfChanged):
     8
    192020-04-16  Claudio Saavedra  <csaavedra@igalia.com>
    210
  • trunk/Source/WebCore/html/MediaElementSession.cpp

    r260182 r260217  
    10191019        return;
    10201020
    1021     auto* fullscreenElement = document.fullscreenManager().currentFullscreenElement();
     1021    bool isOutsideOfFullscreen = false;
     1022#if ENABLE(FULLSCREEN_API)
     1023    if (auto* fullscreenElement = document.fullscreenManager().currentFullscreenElement())
     1024        isOutsideOfFullscreen = !m_element.isDescendantOf(*fullscreenElement);
     1025#endif
    10221026    bool isAudio = client().presentationType() == MediaType::Audio;
    10231027    bool isVideo = client().presentationType() == MediaType::Video;
     
    10551059        hasBehaviorRestriction(RequirePlaybackToControlControlsManager) && !isPlaying,
    10561060        m_element.hasEverNotifiedAboutPlaying(),
    1057         fullscreenElement && !m_element.isDescendantOf(*fullscreenElement),
     1061        isOutsideOfFullscreen,
    10581062        isLargeEnoughForMainContent(MediaSessionMainContentPurpose::MediaControls),
    10591063    };
Note: See TracChangeset for help on using the changeset viewer.