Reframe less on restyles that involve nonexistent first-letter frames in Gecko.

Gecko bug 1324618 part 9 servo bits: https://bugzilla.mozilla.org/show_bug.cgi?id=1324618
This commit is contained in:
Boris Zbarsky 2017-06-26 23:27:39 -07:00
parent 40dd807df3
commit d40e27d6e5
3 changed files with 29 additions and 0 deletions

View file

@ -77,6 +77,12 @@ impl PseudoElement {
matches!(*self, PseudoElement::Before | PseudoElement::After)
}
/// Whether this pseudo-element is ::first-letter.
#[inline]
pub fn is_first_letter(&self) -> bool {
*self == PseudoElement::FirstLetter
}
/// Whether this pseudo-element is lazily-cascaded.
#[inline]
pub fn is_lazy(&self) -> bool {