mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Account for fallback content in GetFlattenedTreeParent.
Otherwise we may inappropriately style it or what not. This asserts with the patches of bug 1414999 plus the cleanup of bug 1418456, since we no longer do StyleNewChildren (which walks over the flattened tree children). Too bad that GetXBLBinding is a virtual call in Gecko, probably can do just MAY_BE_IN_BINDING_MGR... Bug: 1418560 Reviewed-by: heycam MozReview-Commit-ID: CNU0YdKeaR0
This commit is contained in:
parent
e4cfff8364
commit
6a6b5a53ee
1 changed files with 4 additions and 2 deletions
|
@ -227,8 +227,10 @@ impl<'ln> GeckoNode<'ln> {
|
|||
return false;
|
||||
}
|
||||
|
||||
if parent_el.map_or(false, |el| el.has_shadow_root()) {
|
||||
return false;
|
||||
if let Some(parent) = parent_el {
|
||||
if parent.has_shadow_root() || parent.get_xbl_binding().is_some() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue