mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Moved pop_current_element_queue() and push_new_element_queue() to htmlconstructor.rs
This commit is contained in:
parent
d71ff786c6
commit
83adc7b769
3 changed files with 11 additions and 11 deletions
|
@ -80,6 +80,7 @@ use js::jsapi::HandleObject;
|
|||
use js::jsapi::{CallArgs, CurrentGlobalOrNull};
|
||||
use js::jsapi::{JSAutoCompartment, JSContext};
|
||||
use js::jsapi::MutableHandleObject;
|
||||
use script_thread::ScriptThread;
|
||||
use std::ptr;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#htmlconstructor
|
||||
|
@ -311,3 +312,11 @@ pub fn get_constructor_object_from_local_name(name: LocalName,
|
|||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pop_current_element_queue() {
|
||||
ScriptThread::pop_current_element_queue();
|
||||
}
|
||||
|
||||
pub fn push_new_element_queue() {
|
||||
ScriptThread::push_new_element_queue();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue