diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-06-18 12:36:25 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-07-22 17:40:17 +0200 |
commit | ef02196dd8015d38fa5d30f0947be6d8e990b528 (patch) | |
tree | ddff34dd0c35ebdb15c2e6c96a590be536ea2033 /components/script/dom/htmlmediaelement.rs | |
parent | d4be72d3867122b2d5b0ca6330772a97f4f479fa (diff) | |
download | servo-ef02196dd8015d38fa5d30f0947be6d8e990b528.tar.gz servo-ef02196dd8015d38fa5d30f0947be6d8e990b528.zip |
More detach shadow changes
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 007e1c8d954..1b6f8ab1e3c 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -1787,8 +1787,8 @@ impl HTMLMediaElement { } fn remove_controls(&self) { - if let Some(ref id) = *self.media_controls_id.borrow() { - document_from_node(self).unregister_media_controls(id); + if let Some(id) = self.media_controls_id.borrow_mut().take() { + document_from_node(self).unregister_media_controls(&id); } } } |