mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add Precustomized state to CustomElementState (#35392)
* add Precustomized state to CustomElementState Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * Update test expectation Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
82df628a11
commit
695e5fe5f1
3 changed files with 13 additions and 6 deletions
|
@ -58,6 +58,7 @@ pub(crate) enum CustomElementState {
|
|||
Failed,
|
||||
#[default]
|
||||
Uncustomized,
|
||||
Precustomized,
|
||||
Custom,
|
||||
}
|
||||
|
||||
|
@ -924,6 +925,8 @@ fn run_upgrade_constructor(
|
|||
let _ac = JSAutoRealm::new(*cx, constructor.callback());
|
||||
let args = HandleValueArray::empty();
|
||||
// Step 8.2. Set element's custom element state to "precustomized".
|
||||
element.set_custom_element_state(CustomElementState::Precustomized);
|
||||
|
||||
if unsafe {
|
||||
!Construct1(
|
||||
*cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue