diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-21 17:58:56 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-21 12:28:56 +0000 |
commit | 9acb25521e433bdea49866e4ecb6a9f4e90b0663 (patch) | |
tree | 96c99cdf3e5f4c157dbfb08eff8240d9dff55bfc /components/script/dom/activation.rs | |
parent | 66695d2f7ee25782d3edfca32b74ff14bc9faa84 (diff) | |
download | servo-9acb25521e433bdea49866e4ecb6a9f4e90b0663.tar.gz servo-9acb25521e433bdea49866e4ecb6a9f4e90b0663.zip |
CanGc changes from fontfaceset.rs (#33920)
* CanGc changes from fontfaceset.rs
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* Update components/script/dom/bindings/codegen/Bindings.conf
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: chickenleaf <lashwinib@gmail.com>
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Signed-off-by: chickenleaf <lashwinib@gmail.com>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
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(), + ); } } |