diff options
Diffstat (limited to 'components/script/dom/activation.rs')
-rw-r--r-- | components/script/dom/activation.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index 8f325fb4e89..2d78f505214 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -2,14 +2,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use script_layout_interface::ReflowGoal; - use crate::dom::element::Element; use crate::dom::event::Event; use crate::dom::eventtarget::EventTarget; use crate::dom::htmlinputelement::InputActivationState; -use crate::dom::node::window_from_node; -use crate::dom::window::ReflowReason; use crate::script_runtime::CanGc; /// Trait for elements with defined activation behavior @@ -35,23 +31,9 @@ pub trait Activatable { // https://html.spec.whatwg.org/multipage/#concept-selector-active fn enter_formal_activation_state(&self) { self.as_element().set_active_state(true); - - let win = window_from_node(self.as_element()); - 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, - CanGc::note(), - ); } } |