diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-10-30 12:45:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 12:45:45 -0400 |
commit | 7a715519a010e7539f3408896663750c0982a0ff (patch) | |
tree | 890c30db9bf664187fb62418aa03de924edb5683 /components/script/dom/htmlvideoelement.rs | |
parent | ac41b813a0cb0d7e14cb5415f8916d63b44936c5 (diff) | |
parent | 35508c152a1e5556b87ec6392d77d5217a3f627b (diff) | |
download | servo-7a715519a010e7539f3408896663750c0982a0ff.tar.gz servo-7a715519a010e7539f3408896663750c0982a0ff.zip |
Auto merge of #22052 - ferjm:durationchange.resize.event.once, r=ceyusa
HTMLMediaElement - fire durationchange and resize iff something changes
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22052)
<!-- Reviewable:end -->
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); } |