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

@ -42,6 +42,8 @@ pub enum PseudoElement {
Selection,
// If/when :first-letter is added, update is_first_letter accordingly.
// If/when :first-line is added, update is_first_line accordingly.
// If/when ::first-letter, ::first-line, or ::placeholder are added, adjust
// our property_restriction implementation to do property filtering for
// them. Also, make sure the UA sheet has the !important rules some of the
@ -125,6 +127,12 @@ impl PseudoElement {
false
}
/// Whether the current pseudo element is :first-line
#[inline]
pub fn is_first_line(&self) -> bool {
false
}
/// Whether this pseudo-element is eagerly-cascaded.
#[inline]
pub fn is_eager(&self) -> bool {