Changeset 208464 in webkit
- Timestamp:
- Nov 9, 2016 12:18:46 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r208462 r208464 1 2016-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 1 16 2016-11-09 Wenson Hsieh <wenson_hsieh@apple.com> 2 17 -
trunk/Source/WebCore/html/MediaElementSession.h
r208179 r208464 128 128 bool allowsNowPlayingControlsVisibility() const override; 129 129 130 static bool isMediaElementSessionMediaType(MediaType type) 131 { 132 return type == Video 133 || type == Audio 134 || type == VideoAudio; 135 } 136 130 137 private: 131 138 … … 166 173 167 174 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::MediaElementSession) 168 static bool isType(const WebCore::PlatformMediaSession& session) { return session.mediaType() == WebCore::PlatformMediaSession::Video || session.mediaType() == WebCore::PlatformMediaSession::Audio; }175 static bool isType(const WebCore::PlatformMediaSession& session) { return WebCore::MediaElementSession::isMediaElementSessionMediaType(session.mediaType()); } 169 176 SPECIALIZE_TYPE_TRAITS_END() 170 177
Note: See TracChangeset
for help on using the changeset viewer.