mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_r
Clarify special case for containing_shadow_root and add it to layout accessor
This commit is contained in:
parent
9b2eb77530
commit
68bee1c771
6 changed files with 95 additions and 89 deletions
|
@ -64,7 +64,7 @@ impl HTMLBaseElement {
|
|||
/// Update the cached base element in response to binding or unbinding from
|
||||
/// a tree.
|
||||
pub fn bind_unbind(&self, tree_in_doc: bool) {
|
||||
if !tree_in_doc || self.upcast::<Node>().owner_shadow_root().is_some() {
|
||||
if !tree_in_doc || self.upcast::<Node>().containing_shadow_root().is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue