mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 926471 - Replace className comparisons with classList.contains in videocontrols.xml. r=jaws
This commit is contained in:
parent
c1f1f7905a
commit
00a4c3c62d
@ -956,7 +956,7 @@
|
||||
},
|
||||
|
||||
startFade : function (element, fadeIn, immediate) {
|
||||
if (element.className == "controlBar" && fadeIn) {
|
||||
if (element.classList.contains("controlBar") && fadeIn) {
|
||||
// Bug 493523, the scrubber doesn't call valueChanged while hidden,
|
||||
// so our dependent state (eg, timestamp in the thumb) will be stale.
|
||||
// As a workaround, update it manually when it first becomes unhidden.
|
||||
@ -975,11 +975,11 @@
|
||||
// when we remove the attribute.
|
||||
element.clientTop;
|
||||
element.removeAttribute("fadeout");
|
||||
if (element.className == "controlBar")
|
||||
if (element.classList.contains("controlBar"))
|
||||
this.controlsSpacer.removeAttribute("hideCursor");
|
||||
} else {
|
||||
element.setAttribute("fadeout", true);
|
||||
if (element.className == "controlBar" && !this.hasError() &&
|
||||
if (element.classList.contains("controlBar") && !this.hasError() &&
|
||||
document.mozFullScreenElement == this.video)
|
||||
this.controlsSpacer.setAttribute("hideCursor", true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user