Changeset 208464 in webkit


Ignore:
Timestamp:
Nov 9, 2016 12:18:46 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

REGRESSION (r208149): Media scrubber is not displayed in media controls
https://bugs.webkit.org/show_bug.cgi?id=164514

Reviewed by Darin Adler.

Fixes broken Media Controls API tests.

Added a new PlatformMediaSessionType; need to add that same type to the TYPE_TRAITS section of
MediaElementSession.h so that is<> and downcast<> work correctly.

  • html/MediaElementSession.h:

(isType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208462 r208464  
     12016-11-09  Jer Noble  <jer.noble@apple.com>
     2
     3        REGRESSION (r208149): Media scrubber is not displayed in media controls
     4        https://bugs.webkit.org/show_bug.cgi?id=164514
     5
     6        Reviewed by Darin Adler.
     7
     8        Fixes broken Media Controls API tests.
     9
     10        Added a new PlatformMediaSessionType; need to add that same type to the TYPE_TRAITS section of
     11        MediaElementSession.h so that is<> and downcast<> work correctly.
     12
     13        * html/MediaElementSession.h:
     14        (isType):
     15
    1162016-11-09  Wenson Hsieh  <wenson_hsieh@apple.com>
    217
  • trunk/Source/WebCore/html/MediaElementSession.h

    r208179 r208464  
    128128    bool allowsNowPlayingControlsVisibility() const override;
    129129
     130    static bool isMediaElementSessionMediaType(MediaType type)
     131    {
     132        return type == Video
     133            || type == Audio
     134            || type == VideoAudio;
     135    }
     136
    130137private:
    131138
     
    166173
    167174SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::MediaElementSession)
    168 static bool isType(const WebCore::PlatformMediaSession& session) { return session.mediaType() == WebCore::PlatformMediaSession::Video || session.mediaType() == WebCore::PlatformMediaSession::Audio; }
     175static bool isType(const WebCore::PlatformMediaSession& session) { return WebCore::MediaElementSession::isMediaElementSessionMediaType(session.mediaType()); }
    169176SPECIALIZE_TYPE_TRAITS_END()
    170177
Note: See TracChangeset for help on using the changeset viewer.