Make sure we don't recreate boxes just because we have a ::first-line.

Servo part of part 5 of the fix for Gecko bug 1324619.  r=emilio
This commit is contained in:
Boris Zbarsky 2017-07-28 21:18:02 -04:00
parent 7161fff1b8
commit c531af96ae
3 changed files with 15 additions and 1 deletions

View file

@ -87,6 +87,12 @@ impl PseudoElement {
*self == PseudoElement::FirstLetter
}
/// Whether this pseudo-element is ::first-line.
#[inline]
pub fn is_first_line(&self) -> bool {
*self == PseudoElement::FirstLine
}
/// Whether this pseudo-element is ::-moz-fieldset-content.
#[inline]
pub fn is_fieldset_content(&self) -> bool {