[webkit-changes] [WebKit/WebKit] 6d828c: [media-controls] add an alternate style for the ti...
Antoine Quint
noreply at github.com
Fri Apr 14 14:36:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6d828c3c18641673ee727c3672b8c80110902135
https://github.com/WebKit/WebKit/commit/6d828c3c18641673ee727c3672b8c80110902135
Author: Antoine Quint <graouts at webkit.org>
Date: 2023-04-14 (Fri, 14 Apr 2023)
Changed paths:
M Source/WebCore/Modules/modern-media-controls/controls/time-control.js
Log Message:
-----------
[media-controls] add an alternate style for the time control to show labels above the scrubber
https://bugs.webkit.org/show_bug.cgi?id=255470
rdar://108064187
Reviewed by Dean Jackson.
Add a new TimeControl.timeLabelsAttachment property which can be set to either
TimeControl.TimeLabelsAttachment.Side (the default) or TimeControl.TimeLabelsAttachment.Above.
* Source/WebCore/Modules/modern-media-controls/controls/time-control.js:
(TimeControl.prototype.get minimumWidth):
(TimeControl.prototype.get idealMinimumWidth):
(TimeControl.prototype.get timeLabelsAttachment):
(TimeControl.prototype.set timeLabelsAttachment):
(TimeControl.prototype.layout):
(TimeControl.prototype.get _timeLabelsDisplayOnScrubberSide):
(TimeControl.prototype._performLayoutWithRightTimeLabel):
Canonical link: https://commits.webkit.org/262990@main
More information about the webkit-changes
mailing list