| Summary: | [GTK][WPE] Stop using mediaControlsBase.js | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||||
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | annulen, bugs-noreply, calvaris, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, joepeck, kondapallykalyan, pdr, philipj, ryuan.choi, sergio | ||||||
| Priority: | P2 | Keywords: | Gtk | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Carlos Garcia Campos
2020-02-28 07:16:04 PST
Created attachment 391976 [details]
Patch
Created attachment 391977 [details]
Patch
Comment on attachment 391976 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391976&action=review Nit: things are ok as they are now but if you feel like giving it another shot, I would try to use let and const instead of var. Obviously let for things that are going to change and const for those that are not. Your call. > Source/WebCore/Modules/mediacontrols/mediaControlsAdwaita.js:336 > + this.controls.panel.classList.add(this.ClassNames.show); > + this.controls.panel.classList.remove(this.ClassNames.hidden); Nit: I think it makes more sense to switch these lines to remove the hidden first and then add the show. (In reply to Xabier RodrÃguez Calvar from comment #3) > Comment on attachment 391976 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=391976&action=review > > Nit: things are ok as they are now but if you feel like giving it another > shot, I would try to use let and const instead of var. Obviously let for > things that are going to change and const for those that are not. Your call. I don't know JavaScript, but if it's a mechanical change I can give it a try in a follow up patch if you think it's an important change. > > Source/WebCore/Modules/mediacontrols/mediaControlsAdwaita.js:336 > > + this.controls.panel.classList.add(this.ClassNames.show); > > + this.controls.panel.classList.remove(this.ClassNames.hidden); > > Nit: I think it makes more sense to switch these lines to remove the hidden > first and then add the show. Ok. Committed r257705: <https://trac.webkit.org/changeset/257705> |