mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +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
|
@ -24,8 +24,9 @@ pub const EAGER_PSEUDOS: [PseudoElement; EAGER_PSEUDO_COUNT] = [
|
|||
];
|
||||
|
||||
impl PseudoElement {
|
||||
/// Executes a closure with each pseudo-element as an argument.
|
||||
pub fn each<F>(mut fun: F)
|
||||
/// Executes a closure with each simple (not functional)
|
||||
/// pseudo-element as an argument.
|
||||
pub fn each_simple<F>(mut fun: F)
|
||||
where F: FnMut(Self),
|
||||
{
|
||||
% for pseudo in PSEUDOS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue