mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Push visited style computation a bit further down.
Bug: 1474959 Reviewed-by: xidorn MozReview-Commit-ID: 1DILenWIw4D
This commit is contained in:
parent
45435a57e9
commit
4e1606bfaf
6 changed files with 155 additions and 140 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
use cssparser::ToCss;
|
||||
use gecko_bindings::structs::{self, CSSPseudoElementType};
|
||||
use properties::{CascadeFlags, ComputedValues, PropertyFlags};
|
||||
use properties::{ComputedValues, PropertyFlags};
|
||||
use properties::longhands::display::computed_value::T as Display;
|
||||
use selector_parser::{NonTSPseudoClass, PseudoElementCascadeType, SelectorImpl};
|
||||
use std::fmt;
|
||||
|
@ -55,14 +55,12 @@ impl PseudoElement {
|
|||
PseudoElementCascadeType::Lazy
|
||||
}
|
||||
|
||||
/// The CascadeFlags needed to cascade this pseudo-element.
|
||||
/// Whether cascading this pseudo-element makes it inherit all properties,
|
||||
/// even reset ones.
|
||||
///
|
||||
/// This is only needed to support the broken INHERIT_ALL pseudo mode for
|
||||
/// Servo.
|
||||
/// This is used in Servo for anonymous boxes, though it's likely broken.
|
||||
#[inline]
|
||||
pub fn cascade_flags(&self) -> CascadeFlags {
|
||||
CascadeFlags::empty()
|
||||
}
|
||||
pub fn inherits_all(&self) -> bool { false }
|
||||
|
||||
/// Whether the pseudo-element should inherit from the default computed
|
||||
/// values instead of from the parent element.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue