Changeset 290133 in webkit
- Timestamp:
- Feb 18, 2022, 9:32:52 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 4 edited
-
ChangeLog (modified) (1 diff)
-
Modules/modern-media-controls/controls/icon-service.js (modified) (1 diff)
-
Modules/modern-media-controls/controls/layout-traits.js (modified) (1 diff)
-
Modules/modern-media-controls/controls/overflow-button.js (modified) (1 diff)
-
Modules/modern-media-controls/images/iOS/OverflowCircle.svg (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r290132 r290133 1 2022-02-18 Peng Liu <peng.liu6@apple.com> 2 3 [iOS][Modern Media Controls] Add an alternative overflow icon 4 https://bugs.webkit.org/show_bug.cgi?id=236729 5 6 Reviewed by Devin Rousso. 7 8 Add a new overflow icon. By default, the media controls will use the 9 original overflow icon. So this patch does not change the appearance of 10 the media controls. 11 12 * Modules/modern-media-controls/controls/icon-service.js: 13 * Modules/modern-media-controls/controls/layout-traits.js: 14 (LayoutTraits.prototype.overflowButtonHasCircle): 15 * Modules/modern-media-controls/controls/overflow-button.js: 16 (OverflowButton): 17 * Modules/modern-media-controls/images/iOS/OverflowCircle.svg: Added. 18 1 19 2022-02-18 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 20 -
trunk/Source/WebCore/Modules/modern-media-controls/controls/icon-service.js
r283064 r290133 36 36 InvalidPlacard : { name: "invalid-placard", type: "png", label: UIString("Invalid") }, 37 37 Overflow : { name: "Overflow", type: "svg", label: UIString("More\u2026") }, 38 OverflowCircle : { name: "OverflowCircle", type: "svg", label: UIString("More\u2026") }, 38 39 Pause : { name: "Pause", type: "svg", label: UIString("Pause") }, 39 40 PiPPlacard : { name: "pip-placard", type: "png", label: UIString("Picture in Picture") }, -
trunk/Source/WebCore/Modules/modern-media-controls/controls/layout-traits.js
r280534 r290133 92 92 } 93 93 94 overflowButtonHasCircle() 95 { 96 return false; 97 } 98 94 99 additionalControlScaleFactor() 95 100 { -
trunk/Source/WebCore/Modules/modern-media-controls/controls/overflow-button.js
r273004 r290133 31 31 super({ 32 32 cssClassName: "overflow", 33 iconName: Icons.Overflow,33 iconName: layoutDelegate?.layoutTraits?.overflowButtonHasCircle() ? Icons.OverflowCircle : Icons.Overflow, 34 34 layoutDelegate, 35 35 });
Note:
See TracChangeset
for help on using the changeset viewer.