source: webkit/trunk/Source/WebCore/css/mediaControls.css

Last change on this file was 295215, checked in by commit-queue@webkit.org, 11 months ago

Remove last remnants of old Media Controls related sliders
https://bugs.webkit.org/show_bug.cgi?id=241226

Patch by Philippe Normand <philn@igalia.com> on 2022-06-03
Reviewed by Tim Nguyen.

The media-*-slider-*part theme parts are no longer used, so should be removed.

  • Source/WebCore/WebCore.order:
  • Source/WebCore/accessibility/AccessibilitySlider.cpp:

(WebCore::AccessibilitySlider::orientation const):

  • Source/WebCore/css/CSSPrimitiveValueMappings.h:

(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):

  • Source/WebCore/css/CSSValueKeywords.in:
  • Source/WebCore/css/mediaControls.css:

(:is(audio, video)::-webkit-media-controls-timeline):

  • Source/WebCore/css/parser/CSSParserFastPaths.cpp:

(WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):

  • Source/WebCore/html/RangeInputType.cpp:

(WebCore::RangeInputType::handleKeydownEvent):

  • Source/WebCore/html/shadow/ShadowPseudoIds.cpp:

(WebCore::ShadowPseudoIds::webkitMediaSliderThumb): Deleted.
(WebCore::ShadowPseudoIds::webkitMediaSliderContainer): Deleted.

  • Source/WebCore/html/shadow/ShadowPseudoIds.h:
  • Source/WebCore/html/shadow/SliderThumbElement.cpp:

(WebCore::hasVerticalAppearance):
(WebCore::SliderThumbElement::create):
(WebCore::SliderThumbElement::resolveCustomStyle):
(WebCore::SliderContainerElement::create):
(WebCore::SliderThumbElement::shadowPseudoId const): Deleted.
(WebCore::SliderContainerElement::resolveCustomStyle): Deleted.
(WebCore::SliderContainerElement::shadowPseudoId const): Deleted.

  • Source/WebCore/html/shadow/SliderThumbElement.h:

(WebCore::SliderThumbElement::create): Deleted.

  • Source/WebCore/platform/ThemeTypes.cpp:

(WebCore::operator<<):

  • Source/WebCore/platform/ThemeTypes.h:
  • Source/WebCore/rendering/RenderTheme.cpp:

(WebCore::RenderTheme::adjustStyle):
(WebCore::RenderTheme::autoAppearanceForElement const):
(WebCore::RenderTheme::paint):

  • Source/WebCore/rendering/RenderTheme.h:

(WebCore::RenderTheme::paintMediaSliderTrack): Deleted.
(WebCore::RenderTheme::paintMediaSliderThumb): Deleted.
(WebCore::RenderTheme::paintMediaVolumeSliderTrack): Deleted.
(WebCore::RenderTheme::paintMediaVolumeSliderThumb): Deleted.
(WebCore::RenderTheme::paintMediaFullScreenVolumeSliderTrack): Deleted.
(WebCore::RenderTheme::paintMediaFullScreenVolumeSliderThumb): Deleted.

  • Source/WebCore/rendering/RenderThemeAdwaita.cpp:

(WebCore::parentMediaElement): Deleted.
(WebCore::RenderThemeAdwaita::paintMediaSliderTrack): Deleted.
(WebCore::RenderThemeAdwaita::paintMediaVolumeSliderTrack): Deleted.

  • Source/WebCore/rendering/RenderThemeAdwaita.h:
  • Source/WebCore/rendering/RenderThemeMac.mm:

(WebCore::RenderThemeMac::paintSliderTrack):

Canonical link: https://commits.webkit.org/251272@main

File size: 5.9 KB
Line 
1/*
2 * Copyright (C) 2009, 2010, 2011, 2013, 2014 Apple Inc.  All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#if defined(ENABLE_VIDEO) && ENABLE_VIDEO && !(defined(ENABLE_MODERN_MEDIA_CONTROLS) && ENABLE_MODERN_MEDIA_CONTROLS)
26
27/* media controls */
28
29audio {
30    width: 200px;
31    height: 16px;
32}
33
34::-webkit-media-controls {
35    width: inherit;
36    height: inherit;
37    position: relative;
38    display: flex !important;
39    align-items: flex-start;
40    justify-content: flex-end;
41    flex-direction: column;
42}
43
44:is(audio, video)::-webkit-media-controls-panel {
45    display: flex;
46    direction: ltr;
47    flex-direction: row;
48    align-items: center;
49    user-select: none;
50    position: relative;
51    bottom: 0;
52    width: 100%;
53    z-index: 0;
54    overflow: hidden;
55    height: 16px;
56    text-align: right;
57}
58
59video:-webkit-full-page-media {
60    margin: auto;
61    position: absolute;
62    inset: 0;
63}
64
65video:-webkit-full-page-media::-webkit-media-controls-panel {
66    bottom: 0px;
67}
68
69:is(audio, video)::-webkit-media-controls-mute-button,
70:is(audio, video)::-webkit-media-controls-play-button {
71    display: flex;
72    width: 16px;
73    height: 16px;
74    background-color: initial;
75    border: initial;
76    color: inherit;
77}
78
79:is(audio, video)::-webkit-media-controls-overlay-play-button {
80    display: none;
81}
82
83:is(audio, video)::-webkit-media-controls-timeline-container {
84    display: flex;
85    flex-direction: row;
86    align-items: center;
87    justify-content: flex-end;
88    flex: 1 1;
89    user-select: none;
90    height: 16px;
91    min-width: 0;
92}
93
94:is(audio, video)::-webkit-media-controls-current-time-display,
95:is(audio, video)::-webkit-media-controls-time-remaining-display {
96    display: none;
97}
98
99:is(audio, video)::-webkit-media-controls-timeline {
100    display: flex;
101    flex: 1 1;
102    height: 16px;
103    padding: 0px 2px;
104    background-color: initial;
105    border: initial;
106    color: inherit;
107    margin: initial;
108    min-width: 0;
109}
110
111:is(audio, video)::-webkit-media-controls-volume-slider {
112    background-color: initial !important;
113    border: initial !important;
114    color: inherit !important;
115    margin: initial !important;
116}
117
118:is(audio, video)::-webkit-media-controls-seek-back-button,
119:is(audio, video)::-webkit-media-controls-seek-forward-button,
120:is(audio, video)::-webkit-media-controls-fullscreen-button,
121:is(audio, video)::-webkit-media-controls-toggle-closed-captions-button {
122    display: flex;
123    width: 16px;
124    height: 16px;
125    background-color: initial;
126    border: initial;
127    color: inherit;
128}
129
130:is(audio, video)::-webkit-media-controls-rewind-button,
131:is(audio, video)::-webkit-media-controls-return-to-realtime-button {
132    display: none;
133    background-color: initial;
134    border: initial;
135    color: inherit;
136}
137
138:is(audio, video)::-webkit-media-controls-closed-captions-container,
139:is(audio, video)::-webkit-media-controls-closed-captions-track-list,
140:is(audio, video)::-webkit-media-controls-fullscreen-volume-slider,
141:is(audio, video)::-webkit-media-controls-fullscreen-volume-min-button,
142:is(audio, video)::-webkit-media-controls-fullscreen-volume-max-button {
143    display: none;
144}
145
146:is(audio, video)::-webkit-media-controls-volume-slider-mute-button {
147    display: none !important;
148    background-color: initial !important;
149    border: initial !important;
150    color: inherit !important;
151}
152
153video::-webkit-media-text-track-container {
154    position: relative;
155    width: 100%;
156    overflow: hidden;
157    padding-bottom: 5px;
158
159    text-align: center;
160    color: rgba(255, 255, 255, 1);
161
162    letter-spacing: normal;
163    word-spacing: normal;
164    text-transform: none;
165    text-indent: 0;
166    text-decoration: none;
167    pointer-events: none;
168    user-select: none;
169    word-break: break-word;
170
171    flex: 1 1;
172
173    -webkit-line-box-contain: block inline-box replaced;
174}
175
176video::cue {
177    background-color: rgba(0, 0, 0, 0.8);
178}
179
180video::-webkit-media-text-track-region {
181    position: absolute;
182    line-height: 5.33vh;
183    writing-mode: horizontal-tb;
184    background: rgba(0, 0, 0, 0.8);
185    color: rgba(255, 255, 255, 1);
186    word-wrap: break-word;
187    overflow-wrap: break-word;
188    overflow: hidden;
189}
190
191video::-webkit-media-text-track-region-container {
192    position: relative;
193
194    display: flex;
195    flex-flow: column;
196    flex-direction: column;
197}
198
199video::-webkit-media-text-track-region-container.scrolling {
200    transition: top 433ms linear;
201}
202
203video::-webkit-media-text-track-display {
204    position: absolute;
205    overflow: hidden;
206    white-space: pre-wrap;
207    box-sizing: border-box;
208    font: 22px sans-serif;
209    flex: 0 0 auto;
210}
211
212video::cue(:future) {
213    color: gray;
214}
215
216video::-webkit-media-text-track-container b {
217    font-weight: bold;
218}
219
220video::-webkit-media-text-track-container u {
221    text-decoration: underline;
222}
223
224video::-webkit-media-text-track-container i {
225    font-style: italic;
226}
227
228#endif
Note: See TracBrowser for help on using the repository browser.