RESOLVED FIXED 163500
[Modern Media Controls] Use modern-media-controls module sources for media controls stylesheet and script injection
https://bugs.webkit.org/show_bug.cgi?id=163500
Summary [Modern Media Controls] Use modern-media-controls module sources for media co...
Antoine Quint
Reported 2016-10-16 06:39:42 PDT
We need to update RenderTheme to use the modern-media-controls module when the runtime flag is on.
Attachments
Patch (37.86 KB, patch)
2016-10-16 06:51 PDT, Antoine Quint
no flags
Patch for landing (35.12 KB, patch)
2016-10-17 10:58 PDT, Antoine Quint
no flags
Radar WebKit Bug Importer
Comment 1 2016-10-16 06:40:04 PDT
Antoine Quint
Comment 2 2016-10-16 06:51:30 PDT
Antoine Quint
Comment 3 2016-10-17 10:58:48 PDT
Created attachment 291834 [details] Patch for landing
Dean Jackson
Comment 4 2016-10-17 11:28:28 PDT
Comment on attachment 291834 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=291834&action=review > Source/WebCore/rendering/RenderThemeMac.mm:241 > + NSArray* paths = @[@"airplay-button", @"button", @"buttons-container", @"icon-button", @"macos-inline-media-controls", @"media-controls", @"placard", @"scrubber", @"slider", @"start-button", @"time-label", @"volume-slider"]; > + for (NSString* path in paths) These should be NSArray *paths and NSString *path. See https://webkit.org/code-style-guidelines/#pointers-and-references (although there is little consistency throughout WebKit here) > Source/WebCore/rendering/RenderThemeMac.mm:261 > + NSArray* controlsPaths = @[@"scheduler", @"layout-node", @"layout-item", @"icon-service", @"time-control", @"time-label", @"slider", @"volume-slider", @"scrubber", @"button", @"start-button", @"icon-button", @"play-pause-button", @"skip-back-button", @"mute-button", @"airplay-button", @"pip-button", @"tracks-button", @"fullscreen-button", @"aspect-ratio-button", @"rewind-button", @"forward-button", @"media-controls", @"macos-media-controls", @"macos-inline-media-controls", @"buttons-container", @"placard", @"airplay-placard", @"pip-placard"]; > + for (NSString* path in controlsPaths) Same here.
WebKit Commit Bot
Comment 5 2016-10-17 11:29:31 PDT
Comment on attachment 291834 [details] Patch for landing Clearing flags on attachment: 291834 Committed r207418: <http://trac.webkit.org/changeset/207418>
WebKit Commit Bot
Comment 6 2016-10-17 11:29:36 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.