Implement CEReactions codegen

This commit is contained in:
Connor Brewster 2017-07-10 10:45:26 -06:00
parent e57ed3d42f
commit 438191e0b2
4 changed files with 73 additions and 15 deletions

View file

@ -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,