diff options
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | components/script/dom/htmlvideoelement.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index 142887a855e..59c93bfea6e 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -15,9 +15,9 @@ use std::cell::Cell; #[dom_struct] pub struct HTMLVideoElement { htmlmediaelement: HTMLMediaElement, - /// https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth + /// https://html.spec.whatwg.org/multipage/#dom-video-videowidth video_width: Cell<u32>, - /// https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight + /// https://html.spec.whatwg.org/multipage/#dom-video-videoheight video_height: Cell<u32>, } @@ -59,6 +59,7 @@ impl HTMLVideoElement { } impl HTMLVideoElementMethods for HTMLVideoElement { + // https://html.spec.whatwg.org/multipage/#dom-video-videowidth fn VideoWidth(&self) -> u32 { if self.htmlmediaelement.get_ready_state() == ReadyState::HaveNothing { return 0; @@ -66,6 +67,7 @@ impl HTMLVideoElementMethods for HTMLVideoElement { self.video_width.get() } + // https://html.spec.whatwg.org/multipage/#dom-video-videoheight fn VideoHeight(&self) -> u32 { if self.htmlmediaelement.get_ready_state() == ReadyState::HaveNothing { return 0; |