mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
style: Fix cascade order of shadow parts.
This moves the shadow cascade order into the cascade level, and refactors the code a bit for that. Differential Revision: https://phabricator.services.mozilla.com/D49988
This commit is contained in:
parent
28110c060f
commit
349492b5e2
9 changed files with 237 additions and 282 deletions
|
@ -140,6 +140,12 @@ impl PseudoElement {
|
|||
*self == PseudoElement::FieldsetContent
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element is the ::-moz-color-swatch pseudo.
|
||||
#[inline]
|
||||
pub fn is_color_swatch(&self) -> bool {
|
||||
*self == PseudoElement::MozColorSwatch
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element is lazily-cascaded.
|
||||
#[inline]
|
||||
pub fn is_lazy(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue