mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
HTMLMediaElement - fire durationchange and resize iff something changes
This commit is contained in:
parent
b5b8550fb2
commit
35508c152a
2 changed files with 22 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue