| Index: Source/core/layout/LayoutMediaControls.cpp
|
| diff --git a/Source/core/layout/LayoutMediaControls.cpp b/Source/core/layout/LayoutMediaControls.cpp
|
| index ba3f84072b174f37b4cba226d87874ddfd5f5b23..42484d243686d9babd6958509e7df9ec64e7146e 100644
|
| --- a/Source/core/layout/LayoutMediaControls.cpp
|
| +++ b/Source/core/layout/LayoutMediaControls.cpp
|
| @@ -375,6 +375,16 @@ static bool paintMediaCastButton(LayoutObject* object, const PaintInfo& paintInf
|
| }
|
| }
|
|
|
| +static bool paintMediaTrackSelectionCheckmark(LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +{
|
| + HTMLMediaElement* mediaElement = toParentMediaElement(object);
|
| + if (!mediaElement)
|
| + return false;
|
| +
|
| + static Image* mediaTrackSelectionCheckmark = platformResource("mediaplayerTrackSelectionCheckmark");
|
| + return paintMediaButton(paintInfo.context, rect, mediaTrackSelectionCheckmark);
|
| +}
|
| +
|
| bool LayoutMediaControls::paintMediaControlsPart(MediaControlElementType part, LayoutObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| switch (part) {
|
| @@ -404,12 +414,16 @@ bool LayoutMediaControls::paintMediaControlsPart(MediaControlElementType part, L
|
| case MediaOverlayCastOffButton:
|
| case MediaOverlayCastOnButton:
|
| return paintMediaCastButton(object, paintInfo, rect);
|
| + case MediaTrackSelectionCheckmark:
|
| + return paintMediaTrackSelectionCheckmark(object, paintInfo, rect);
|
| case MediaVolumeSliderContainer:
|
| case MediaTimelineContainer:
|
| case MediaCurrentTimeDisplay:
|
| case MediaTimeRemainingDisplay:
|
| case MediaControlsPanel:
|
| case MediaHideClosedCaptionsButton:
|
| + case MediaClosedCaptionsTrackListContainer:
|
| + case MediaClosedCaptionsTrackList:
|
| case MediaFullScreenVolumeSlider:
|
| case MediaFullScreenVolumeSliderThumb:
|
| ASSERT_NOT_REACHED();
|
|
|