diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-10-30 12:02:42 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-10-30 12:02:42 +0100 |
commit | 35508c152a1e5556b87ec6392d77d5217a3f627b (patch) | |
tree | bc2ef75f7fe69234bc113cf13c6fa495684f8ae5 /components/script/dom/htmlvideoelement.rs | |
parent | b5b8550fb206cf7159feed3ea14418b5c0358ee2 (diff) | |
download | servo-35508c152a1e5556b87ec6392d77d5217a3f627b.tar.gz servo-35508c152a1e5556b87ec6392d77d5217a3f627b.zip |
HTMLMediaElement - fire durationchange and resize iff something changes
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | components/script/dom/htmlvideoelement.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index 59c93bfea6e..25fe6c2d8ed 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -49,10 +49,18 @@ impl HTMLVideoElement { ) } + pub fn get_video_width(&self) -> u32 { + self.video_width.get() + } + pub fn set_video_width(&self, width: u32) { self.video_width.set(width); } + pub fn get_video_height(&self) -> u32 { + self.video_height.get() + } + pub fn set_video_height(&self, height: u32) { self.video_height.set(height); } |