Call non-functional pseudo-elements simple pseudo-element.

This commit is contained in:
Xidorn Quan 2017-07-12 15:07:29 +10:00
parent 01ea3cc3e3
commit 2649d0332a
4 changed files with 9 additions and 8 deletions

View file

@ -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);