mirror of
https://github.com/servo/servo.git
synced 2025-08-31 10:08:21 +01:00
style: Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag.
This is more consistent with what the Rust bits of the style system do, and removes a pointer from ComputedStyle which is always nice. This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those. Can't wait for XUL trees to die. Differential Revision: https://phabricator.services.mozilla.com/D19002
This commit is contained in:
parent
22e12a0f52
commit
3231714758
6 changed files with 41 additions and 94 deletions
|
@ -236,7 +236,7 @@ where
|
|||
parent_style.unwrap(),
|
||||
parent_style_ignoring_first_line.unwrap()
|
||||
) ||
|
||||
parent_style.unwrap().pseudo() == Some(PseudoElement::FirstLine)
|
||||
parent_style.unwrap().is_first_line_style()
|
||||
);
|
||||
|
||||
let inherited_style = parent_style.unwrap_or(device.default_computed_values());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue