mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
layout: Always build Tag
and BaseFragmentInfo
with ServoThreadSafeLayoutNode
(#38680)
This cleanup makes the interface a bit simpler and prevents problems where the pseudo-element information is not passed by accident. Testing: This should not change behavior, so is covered by existing tests. --------- Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
8743a11ba4
commit
6fdf40dce7
7 changed files with 117 additions and 116 deletions
|
@ -969,10 +969,10 @@ impl<'dom> ::selectors::Element for ServoLayoutElement<'dom> {
|
|||
/// ever access safe properties and cannot race on elements.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct ServoThreadSafeLayoutElement<'dom> {
|
||||
/// The wrapped [`ServoLayoutNode`].
|
||||
/// The wrapped [`ServoLayoutElement`].
|
||||
pub(super) element: ServoLayoutElement<'dom>,
|
||||
|
||||
/// The possibly nested [`PseudoElementChain`] for this node.
|
||||
/// The possibly nested [`PseudoElementChain`] for this element.
|
||||
pub(super) pseudo_element_chain: PseudoElementChain,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue