aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2017-07-10 10:45:26 -0600
committerConnor Brewster <connor.brewster@eagles.oc.edu>2017-07-18 08:18:22 -0600
commit438191e0b207fd6294a465149a37c63f32ce9161 (patch)
tree6db37917af8762bedd8d974b92994c49817950cb /components/script/script_thread.rs
parente57ed3d42f818630157102e824867a763964291e (diff)
downloadservo-438191e0b207fd6294a465149a37c63f32ce9161.tar.gz
servo-438191e0b207fd6294a465149a37c63f32ce9161.zip
Implement CEReactions codegen
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index cb4603f805e..5ed642f11c7 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -746,6 +746,24 @@ impl ScriptThread {
let _ = window.layout_chan().send(msg);
}
+ pub fn push_new_element_queue() {
+ SCRIPT_THREAD_ROOT.with(|root| {
+ if let Some(script_thread) = root.get() {
+ let script_thread = unsafe { &*script_thread };
+ script_thread.custom_element_reaction_stack.push_new_element_queue();
+ }
+ })
+ }
+
+ pub fn pop_current_element_queue() {
+ SCRIPT_THREAD_ROOT.with(|root| {
+ if let Some(script_thread) = root.get() {
+ let script_thread = unsafe { &*script_thread };
+ script_thread.custom_element_reaction_stack.pop_current_element_queue();
+ }
+ })
+ }
+
pub fn enqueue_callback_reaction(element:&Element, reaction: CallbackReaction) {
SCRIPT_THREAD_ROOT.with(|root| {
if let Some(script_thread) = root.get() {