Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index b5f9b83def8e2387194a7088dbf59f9dcc93af81..36ad5e5939bd3ff8ffaf03d91db6fb0aaa498ce4 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -501,11 +501,6 @@ void HTMLMediaElement::scheduleDelayedAction(DelayedActionType actionType) |
if (RuntimeEnabledFeatures::videoTrackEnabled() && (actionType & LoadTextTrackResource)) |
m_pendingActionFlags |= LoadTextTrackResource; |
-#if USE(PLATFORM_TEXT_TRACK_MENU) |
- if (actionType & TextTrackChangesNotification) |
- m_pendingActionFlags |= TextTrackChangesNotification; |
-#endif |
- |
if (!m_loadTimer.isActive()) |
m_loadTimer.startOneShot(0); |
} |
@@ -542,11 +537,6 @@ void HTMLMediaElement::loadTimerFired(Timer<HTMLMediaElement>*) |
loadInternal(); |
} |
-#if USE(PLATFORM_TEXT_TRACK_MENU) |
- if (RuntimeEnabledFeatures::videoTrackEnabled() && (m_pendingActionFlags & TextTrackChangesNotification)) |
- notifyMediaPlayerOfTextTrackChanges(); |
-#endif |
- |
m_pendingActionFlags = 0; |
} |
@@ -1189,11 +1179,6 @@ void HTMLMediaElement::textTrackModeChanged(TextTrack* track) |
} else if (track->trackType() == TextTrack::AddTrack && track->mode() != TextTrack::disabledKeyword()) |
textTrackAddCues(track, track->cues()); |
-#if USE(PLATFORM_TEXT_TRACK_MENU) |
- if (platformTextTrackMenu()) |
- platformTextTrackMenu()->trackWasSelected(track->platformTextTrack()); |
-#endif |
- |
configureTextTrackDisplay(); |
updateActiveTextTrackCues(currentTime()); |
} |
@@ -3463,13 +3448,6 @@ void HTMLMediaElement::userCancelledLoad() |
void HTMLMediaElement::clearMediaPlayer(int flags) |
{ |
-#if USE(PLATFORM_TEXT_TRACK_MENU) |
- if (platformTextTrackMenu()) { |
- m_platformMenu->setClient(0); |
- m_platformMenu = 0; |
- } |
-#endif |
- |
removeAllInbandTracks(); |
closeMediaSource(); |