Skip to content

Commit

Permalink
servo: Merge #17761 - Add [CEReactions] to webidls (from cbrewster:ce…
Browse files Browse the repository at this point in the history
…_reactions); r=jdm

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: a6739cb17f381b88531eb6173d048868aec8e082

UltraBlame original commit: 7ba9ea0c8870fe344339d2b820a58a8f5b40f763
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 814c3e4 commit fb3b9dd
Show file tree
Hide file tree
Showing 82 changed files with 2,206 additions and 68 deletions.
89 changes: 89 additions & 0 deletions servo/components/script/dom/bindings/codegen/CodegenRust.py
Original file line number Diff line number Diff line change
Expand Up @@ -23627,6 +23627,9 @@
"
this
"
hasCEReactions
=
False
)
:

Expand Down Expand Up @@ -23883,6 +23886,29 @@
]
)

if
hasCEReactions
:

self
.
cgRoot
.
append
(
CGGeneric
(
"
push_new_element_queue
(
)
;
\
n
"
)
)

self
.
cgRoot
Expand Down Expand Up @@ -23924,6 +23950,29 @@
)
)

if
hasCEReactions
:

self
.
cgRoot
.
append
(
CGGeneric
(
"
pop_current_element_queue
(
)
;
\
n
"
)
)

if
isFallible
:
Expand Down Expand Up @@ -24476,6 +24525,17 @@
else
:

hasCEReactions
=
idlNode
.
getExtendedAttribute
(
"
CEReactions
"
)

cgThings
.
append
Expand All @@ -24502,6 +24562,9 @@
nativeMethodName

static
hasCEReactions
=
hasCEReactions
)
)

Expand Down Expand Up @@ -43295,6 +43358,32 @@
is_exposed_in
'

'
dom
:
:
bindings
:
:
interface
:
:
pop_current_element_queue
'

'
dom
:
:
bindings
:
:
interface
:
:
push_new_element_queue
'

'
dom
:
Expand Down
34 changes: 34 additions & 0 deletions servo/components/script/dom/bindings/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,12 @@ use
libc
;
use
script_thread
:
:
ScriptThread
;
use
std
:
:
Expand Down Expand Up @@ -2560,6 +2566,34 @@ are
unnecessary
.
}
pub
fn
push_new_element_queue
(
)
{
ScriptThread
:
:
push_new_element_queue
(
)
;
}
pub
fn
pop_current_element_queue
(
)
{
ScriptThread
:
:
pop_current_element_queue
(
)
;
}
/
/
/
Expand Down
Loading

0 comments on commit fb3b9dd

Please sign in to comment.