mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Remove a lot of the restyle damage related complexity.
The only reason why we had the `existing_style_for_style_damage` bit is to apply some optimizations that we don't have anymore. I still want to reintroduce a few of them, at least for the non-eager pseudo-element case... But I think I won't need this at all. This allows us to remove a fair amount of Gecko code too.
This commit is contained in:
parent
c1b196b7cb
commit
0f37b209cb
10 changed files with 76 additions and 199 deletions
|
@ -35,16 +35,6 @@ pub use servo::restyle_damage::ServoRestyleDamage as RestyleDamage;
|
|||
#[cfg(feature = "gecko")]
|
||||
pub use gecko::restyle_damage::GeckoRestyleDamage as RestyleDamage;
|
||||
|
||||
/// A type that represents the previous computed values needed for restyle
|
||||
/// damage calculation.
|
||||
#[cfg(feature = "servo")]
|
||||
pub type PreExistingComputedValues = ::properties::ComputedValues;
|
||||
|
||||
/// A type that represents the previous computed values needed for restyle
|
||||
/// damage calculation.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub type PreExistingComputedValues = ::gecko_bindings::structs::nsStyleContext;
|
||||
|
||||
/// Servo's selector parser.
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub struct SelectorParser<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue