mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Auto merge of #17761 - cbrewster:ce_reactions, r=jdm
Add [CEReactions] to webidls <!-- Please describe your changes on the following line: --> Relies on #17614 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17761) <!-- Reviewable:end -->
This commit is contained in:
commit
a6739cb17f
112 changed files with 1119 additions and 1282 deletions
|
@ -753,6 +753,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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue