mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Get the fundamentals of the HTMLDetailsElement rendering stuff working.
Still need to implement the style invalidation. Part of #9395
This commit is contained in:
parent
e551ea7322
commit
9d9c5398a8
13 changed files with 294 additions and 27 deletions
|
@ -2445,7 +2445,9 @@ impl Fragment {
|
|||
match self.pseudo {
|
||||
PseudoElementType::Normal => FragmentType::FragmentBody,
|
||||
PseudoElementType::Before(_) => FragmentType::BeforePseudoContent,
|
||||
PseudoElementType::After(_) => FragmentType::AfterPseudoContent
|
||||
PseudoElementType::After(_) => FragmentType::AfterPseudoContent,
|
||||
PseudoElementType::DetailsSummary(_) => FragmentType::FragmentBody,
|
||||
PseudoElementType::DetailsContent(_) => FragmentType::FragmentBody,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2453,7 +2455,9 @@ impl Fragment {
|
|||
let layer_type = match self.pseudo {
|
||||
PseudoElementType::Normal => LayerType::FragmentBody,
|
||||
PseudoElementType::Before(_) => LayerType::BeforePseudoContent,
|
||||
PseudoElementType::After(_) => LayerType::AfterPseudoContent
|
||||
PseudoElementType::After(_) => LayerType::AfterPseudoContent,
|
||||
PseudoElementType::DetailsSummary(_) => LayerType::FragmentBody,
|
||||
PseudoElementType::DetailsContent(_) => LayerType::FragmentBody,
|
||||
};
|
||||
LayerId::new_of_type(layer_type, self.node.id() as usize)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue