aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/interface.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/dom/bindings/interface.rs
parente57ed3d42f818630157102e824867a763964291e (diff)
downloadservo-438191e0b207fd6294a465149a37c63f32ce9161.tar.gz
servo-438191e0b207fd6294a465149a37c63f32ce9161.zip
Implement CEReactions codegen
Diffstat (limited to 'components/script/dom/bindings/interface.rs')
-rw-r--r--components/script/dom/bindings/interface.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs
index 9900bf00e9a..887a62f11eb 100644
--- a/components/script/dom/bindings/interface.rs
+++ b/components/script/dom/bindings/interface.rs
@@ -103,6 +103,7 @@ use js::jsapi::{TrueHandleValue, Value};
use js::jsval::{JSVal, PrivateValue};
use js::rust::{define_methods, define_properties, get_object_class};
use libc;
+use script_thread::ScriptThread;
use std::ptr;
/// The class of a non-callback interface object.
@@ -300,6 +301,14 @@ pub unsafe fn html_constructor<T>(window: &Window, call_args: &CallArgs) -> Fall
// Custom element upgrades are not implemented yet, so these steps are unnecessary.
}
+pub fn push_new_element_queue() {
+ ScriptThread::push_new_element_queue();
+}
+
+pub fn pop_current_element_queue() {
+ ScriptThread::pop_current_element_queue();
+}
+
/// Create and define the interface object of a callback interface.
pub unsafe fn create_callback_interface_object(
cx: *mut JSContext,