mirror of
https://github.com/servo/servo.git
synced 2025-09-02 11:08:22 +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
|
@ -3358,7 +3358,7 @@ impl<'a> StyleBuilder<'a> {
|
|||
debug_assert!(parent_style.is_none() ||
|
||||
std::ptr::eq(parent_style.unwrap(),
|
||||
parent_style_ignoring_first_line.unwrap()) ||
|
||||
parent_style.unwrap().pseudo() == Some(PseudoElement::FirstLine));
|
||||
parent_style.unwrap().is_first_line_style());
|
||||
let reset_style = device.default_computed_values();
|
||||
let inherited_style = parent_style.unwrap_or(reset_style);
|
||||
let inherited_style_ignoring_first_line = parent_style_ignoring_first_line.unwrap_or(reset_style);
|
||||
|
@ -3402,7 +3402,7 @@ impl<'a> StyleBuilder<'a> {
|
|||
let inherited_style = parent_style.unwrap_or(reset_style);
|
||||
#[cfg(feature = "gecko")]
|
||||
debug_assert!(parent_style.is_none() ||
|
||||
parent_style.unwrap().pseudo() != Some(PseudoElement::FirstLine));
|
||||
!parent_style.unwrap().is_first_line_style());
|
||||
StyleBuilder {
|
||||
device,
|
||||
inherited_style,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue