mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Use the PseudoElement
from ServoThreadSafeLayoutNode
in NodeAndStyleInfo
(#38630)
Instead of storing the non-pseudo version of the node in `NodeAndStyleInfo`, store the pseudo version and use that to query the `PseudoElement` that a `NodeAndStyleInfo` refers to. This is a step on the way toward fixing nested pseudo-elements in Servo. Testing: This should not change behavior and is thus covered by existing WPT tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
ee7c1d9109
commit
5ff084a688
6 changed files with 34 additions and 38 deletions
|
@ -15,7 +15,8 @@ pub(crate) fn make_marker<'dom>(
|
|||
context: &LayoutContext,
|
||||
info: &NodeAndStyleInfo<'dom>,
|
||||
) -> Option<(NodeAndStyleInfo<'dom>, Vec<PseudoElementContentItem>)> {
|
||||
let marker_info = info.pseudo(context, style::selector_parser::PseudoElement::Marker)?;
|
||||
let marker_info =
|
||||
info.with_pseudo_element(context, style::selector_parser::PseudoElement::Marker)?;
|
||||
let style = &marker_info.style;
|
||||
let list_style = style.get_list();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue