aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlvideoelement.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-30 12:02:42 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-30 12:02:42 +0100
commit35508c152a1e5556b87ec6392d77d5217a3f627b (patch)
treebc2ef75f7fe69234bc113cf13c6fa495684f8ae5 /components/script/dom/htmlvideoelement.rs
parentb5b8550fb206cf7159feed3ea14418b5c0358ee2 (diff)
downloadservo-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.rs8
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);
}