[Modern Media Controls] Promote the "on" property from AirPlayButton to IconButton
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2016 18:41:08 +0000 (18:41 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2016 18:41:08 +0000 (18:41 +0000)
commit1f691adcd6e015af8add58bb593d86bdbb5252c6
treedba56a52a93317be2e987f3c4ea47a358b8e1534
parentc86ef47d0cae8643bb0c0ded695d740abf29c4d5
[Modern Media Controls] Promote the "on" property from AirPlayButton to IconButton
https://bugs.webkit.org/show_bug.cgi?id=165260

Reviewed by NOBODY (OOPS!).

With the fix for https://bugs.webkit.org/show_bug.cgi?id=165239 we now set the "on"
property for the TracksButton as well, so it makes sense to provide that property
for all IconButton subclasses, not just AirplayButton.

Test: media/modern-media-controls/icon-button/icon-button-on.html

* Modules/modern-media-controls/controls/airplay-button.css:
(button.airplay.on):
* Modules/modern-media-controls/controls/airplay-button.js:
(AirplayButton):
(AirplayButton.prototype.get on): Deleted.
(AirplayButton.prototype.set on): Deleted.
* Modules/modern-media-controls/controls/icon-button.css:
(button.icon:active,):
(button.icon:active): Deleted.
* Modules/modern-media-controls/controls/icon-button.js:
(IconButton.prototype.get on):
(IconButton.prototype.set on):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/modern-media-controls/airplay-button/airplay-button-on.html
LayoutTests/media/modern-media-controls/icon-button/icon-button-on-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/icon-button/icon-button-on.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/modern-media-controls/controls/airplay-button.css
Source/WebCore/Modules/modern-media-controls/controls/airplay-button.js
Source/WebCore/Modules/modern-media-controls/controls/icon-button.css
Source/WebCore/Modules/modern-media-controls/controls/icon-button.js