RESOLVED FIXED Bug 163238
[Modern Media Controls] Buttons container
https://bugs.webkit.org/show_bug.cgi?id=163238
Summary [Modern Media Controls] Buttons container
Antoine Quint
Reported 2016-10-10 14:02:46 PDT
Media controls need a way to lay a group of buttons out together.
Attachments
Patch (22.62 KB, patch)
2016-10-10 14:11 PDT, Antoine Quint
no flags
Patch for landing (22.01 KB, patch)
2016-10-11 05:21 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2016-10-10 14:11:58 PDT
Radar WebKit Bug Importer
Comment 2 2016-10-10 14:30:02 PDT
Dean Jackson
Comment 3 2016-10-11 04:31:07 PDT
Comment on attachment 291160 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=291160&action=review > Source/WebCore/ChangeLog:30 > + * Modules/modern-media-controls/controls/buttons-container.css: Copied from Source/WebCore/Modules/modern-media-controls/controls/airplay-button.js. > + (.buttons-container): > + * Modules/modern-media-controls/controls/buttons-container.js: Copied from Source/WebCore/Modules/modern-media-controls/controls/airplay-button.js. Remove this Copied from junk. > Source/WebCore/Modules/modern-media-controls/controls/buttons-container.js:64 > + button.x = x; > + x += button.width + this.margin; I don't think you should do work like this inside a call to filter, even though it is possible. I think you should treat the parameter as read only. A better way would be to call this.children.forEach after the filter.
Antoine Quint
Comment 4 2016-10-11 05:18:06 PDT
(In reply to comment #3) > Comment on attachment 291160 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=291160&action=review > > > Source/WebCore/Modules/modern-media-controls/controls/buttons-container.js:64 > > + button.x = x; > > + x += button.width + this.margin; > > I don't think you should do work like this inside a call to filter, even > though it is possible. I think you should treat the parameter as read only. > A better way would be to call this.children.forEach after the filter. Cool, I'll have a children array that I'll populate during a forEach and then assign to the node's children property, so there's a single iteration.
Antoine Quint
Comment 5 2016-10-11 05:21:40 PDT
Created attachment 291248 [details] Patch for landing
WebKit Commit Bot
Comment 6 2016-10-11 05:55:04 PDT
Comment on attachment 291248 [details] Patch for landing Clearing flags on attachment: 291248 Committed r207111: <http://trac.webkit.org/changeset/207111>
WebKit Commit Bot
Comment 7 2016-10-11 05:55:07 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.