mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Call non-functional pseudo-elements simple pseudo-element.
This commit is contained in:
parent
01ea3cc3e3
commit
2649d0332a
4 changed files with 9 additions and 8 deletions
|
@ -28,7 +28,7 @@ use style_traits::{ParseError, StyleParseError};
|
|||
|
||||
/// A pseudo-element, both public and private.
|
||||
///
|
||||
/// NB: If you add to this list, be sure to update `each_pseudo_element` too.
|
||||
/// NB: If you add to this list, be sure to update `each_simple_pseudo_element` too.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
#[allow(missing_docs)]
|
||||
|
@ -485,7 +485,7 @@ impl SelectorImpl {
|
|||
|
||||
/// Executes `fun` for each pseudo-element.
|
||||
#[inline]
|
||||
pub fn each_pseudo_element<F>(mut fun: F)
|
||||
pub fn each_simple_pseudo_element<F>(mut fun: F)
|
||||
where F: FnMut(PseudoElement),
|
||||
{
|
||||
fun(PseudoElement::Before);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue