mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make Element::attach_shadow() and ShadowRoot closer to spec (#36024)
Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
parent
11d47558b3
commit
db74179dc8
18 changed files with 117 additions and 158 deletions
|
@ -1423,8 +1423,8 @@ impl TreeSink for Sink {
|
|||
// has a shadowrootserializable attribute; otherwise false.
|
||||
let mut shadow_root_mode = ShadowRootMode::Open;
|
||||
let mut clonable = false;
|
||||
let mut _delegatesfocus = false;
|
||||
let mut _serializable = false;
|
||||
let mut delegatesfocus = false;
|
||||
let mut serializable = false;
|
||||
|
||||
let attrs: Vec<ElementAttribute> = attrs
|
||||
.clone()
|
||||
|
@ -1448,10 +1448,10 @@ impl TreeSink for Sink {
|
|||
clonable = true;
|
||||
},
|
||||
local_name!("shadowrootdelegatesfocus") => {
|
||||
_delegatesfocus = true;
|
||||
delegatesfocus = true;
|
||||
},
|
||||
local_name!("shadowrootserializable") => {
|
||||
_serializable = true;
|
||||
serializable = true;
|
||||
},
|
||||
_ => {},
|
||||
});
|
||||
|
@ -1462,6 +1462,8 @@ impl TreeSink for Sink {
|
|||
IsUserAgentWidget::No,
|
||||
shadow_root_mode,
|
||||
clonable,
|
||||
serializable,
|
||||
delegatesfocus,
|
||||
SlotAssignmentMode::Manual,
|
||||
CanGc::note(),
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue