Changeset 202332 in webkit


Ignore:
Timestamp:
Jun 22, 2016 10:14:02 AM (8 years ago)
Author:
jer.noble@apple.com
Message:

Update document's isPlayingMedia() state whenever media element's media state changes
https://bugs.webkit.org/show_bug.cgi?id=159018
<rdar://problem/26586630>

Reviewed by Beth Dakin.

The Document can end up with a stale m_mediaState if its own value isn't updated when
its constituent HTMLMediaElement's m_mediaStates change.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::updateMediaState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202330 r202332  
     12016-06-22  Jer Noble  <jer.noble@apple.com>
     2
     3        Update document's isPlayingMedia() state whenever media element's media state changes
     4        https://bugs.webkit.org/show_bug.cgi?id=159018
     5        <rdar://problem/26586630>
     6
     7        Reviewed by Beth Dakin.
     8
     9        The Document can end up with a stale m_mediaState if its own value isn't updated when
     10        its constituent HTMLMediaElement's m_mediaStates change.
     11
     12        * html/HTMLMediaElement.cpp:
     13        (WebCore::HTMLMediaElement::updateMediaState):
     14
    1152016-06-22  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r202274 r202332  
    68626862    m_mediaState = state;
    68636863    m_mediaSession->mediaStateDidChange(*this, m_mediaState);
     6864#if ENABLE(MEDIA_SESSION)
     6865    document().updateIsPlayingMedia(m_elementID);
     6866#else
     6867    document().updateIsPlayingMedia();
     6868#endif
    68646869}
    68656870#endif
Note: See TracChangeset for help on using the changeset viewer.