Tidy fixes.

This commit is contained in:
Josh Matthews 2016-01-04 16:08:37 -05:00
parent f78d88acbe
commit 99f6fb34fc
3 changed files with 6 additions and 3 deletions

View file

@ -7,8 +7,8 @@ use dom::attr::Attr;
use dom::bindings::cell::DOMRefCell; use dom::bindings::cell::DOMRefCell;
use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods; use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::CanPlayTypeResult; use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::CanPlayTypeResult;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementMethods;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementConstants::*; use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementConstants::*;
use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementMethods;
use dom::bindings::codegen::Bindings::MediaErrorBinding::MediaErrorConstants::*; use dom::bindings::codegen::Bindings::MediaErrorBinding::MediaErrorConstants::*;
use dom::bindings::global::GlobalRef; use dom::bindings::global::GlobalRef;
use dom::bindings::inheritance::Castable; use dom::bindings::inheritance::Castable;
@ -503,10 +503,12 @@ impl HTMLMediaElement {
} }
impl HTMLMediaElementMethods for HTMLMediaElement { impl HTMLMediaElementMethods for HTMLMediaElement {
// https://html.spec.whatwg.org/multipage/#dom-media-networkstate
fn NetworkState(&self) -> u16 { fn NetworkState(&self) -> u16 {
self.network_state.get() self.network_state.get()
} }
// https://html.spec.whatwg.org/multipage/#dom-media-readystate
fn ReadyState(&self) -> u16 { fn ReadyState(&self) -> u16 {
self.ready_state.get() self.ready_state.get()
} }

View file

@ -30,6 +30,7 @@ impl MediaError {
} }
impl MediaErrorMethods for MediaError { impl MediaErrorMethods for MediaError {
// https://html.spec.whatwg.org/multipage/#dom-mediaerror-code
fn Code(&self) -> u16 { fn Code(&self) -> u16 {
self.code self.code
} }

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/embedded-content.html#mediaerror // https://html.spec.whatwg.org/multipage/#mediaerror
interface MediaError { interface MediaError {
const unsigned short MEDIA_ERR_ABORTED = 1; const unsigned short MEDIA_ERR_ABORTED = 1;