mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
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:
parent
40dd807df3
commit
d40e27d6e5
3 changed files with 29 additions and 0 deletions
|
@ -38,6 +38,7 @@ pub enum PseudoElement {
|
|||
After = 0,
|
||||
Before,
|
||||
Selection,
|
||||
// If/when :first-letter is added, update is_first_letter accordingly.
|
||||
// Non-eager pseudos.
|
||||
DetailsSummary,
|
||||
DetailsContent,
|
||||
|
@ -110,6 +111,12 @@ impl PseudoElement {
|
|||
matches!(*self, PseudoElement::After | PseudoElement::Before)
|
||||
}
|
||||
|
||||
/// Whether the current pseudo element is :first-letter
|
||||
#[inline]
|
||||
pub fn is_first_letter(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Whether this pseudo-element is eagerly-cascaded.
|
||||
#[inline]
|
||||
pub fn is_eager(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue