diff options
Diffstat (limited to 'components/script/dom/activation.rs')
-rw-r--r-- | components/script/dom/activation.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index 796bb5b0381..8f325fb4e89 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -37,13 +37,21 @@ pub trait Activatable { self.as_element().set_active_state(true); let win = window_from_node(self.as_element()); - win.reflow(ReflowGoal::Full, ReflowReason::ElementStateChanged); + win.reflow( + ReflowGoal::Full, + ReflowReason::ElementStateChanged, + CanGc::note(), + ); } fn exit_formal_activation_state(&self) { self.as_element().set_active_state(false); let win = window_from_node(self.as_element()); - win.reflow(ReflowGoal::Full, ReflowReason::ElementStateChanged); + win.reflow( + ReflowGoal::Full, + ReflowReason::ElementStateChanged, + CanGc::note(), + ); } } |