mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
script: Dirty video element when clearing video frame data. (#34435)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
82bbff45b3
commit
3b5ffabbca
1 changed files with 2 additions and 1 deletions
|
@ -1985,7 +1985,8 @@ impl HTMLMediaElement {
|
|||
|
||||
pub fn clear_current_frame_data(&self) {
|
||||
self.handle_resize(None, None);
|
||||
self.video_renderer.lock().unwrap().current_frame = None
|
||||
self.video_renderer.lock().unwrap().current_frame = None;
|
||||
self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
||||
}
|
||||
|
||||
fn handle_resize(&self, width: Option<u32>, height: Option<u32>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue