mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Fix pseudo-element restyling.
This commit is contained in:
parent
1c322f35a6
commit
a36762a9a2
5 changed files with 85 additions and 44 deletions
|
@ -12,7 +12,7 @@ use element_state::ElementState;
|
|||
use properties::{ComputedValues, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use refcell::{Ref, RefMut};
|
||||
use restyle_hints::{RESTYLE_DESCENDANTS, RESTYLE_LATER_SIBLINGS, RESTYLE_SELF, RestyleHint};
|
||||
use selector_impl::ElementExt;
|
||||
use selector_impl::{ElementExt, PseudoElement};
|
||||
use selectors::matching::DeclarationBlock;
|
||||
use sink::Push;
|
||||
use std::fmt::Debug;
|
||||
|
@ -177,7 +177,8 @@ pub trait TNode : Sized + Copy + Clone {
|
|||
/// as an argument here, but otherwise Servo would crash due to double
|
||||
/// borrows to return it.
|
||||
fn existing_style_for_restyle_damage<'a>(&'a self,
|
||||
current_computed_values: Option<&'a Arc<ComputedValues>>)
|
||||
current_computed_values: Option<&'a Arc<ComputedValues>>,
|
||||
pseudo: Option<&PseudoElement>)
|
||||
-> Option<&'a <Self::ConcreteRestyleDamage as TRestyleDamage>::PreExistingComputedValues>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue