mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
7161fff1b8
commit
c531af96ae
3 changed files with 15 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue