mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Get restyle hints right in presence of XBL.
Bug: 1371130 Reviewed-By: heycam MozReview-Commit-ID: 56lMyXEYT1I
This commit is contained in:
parent
459b22a985
commit
ae5a6c9c69
3 changed files with 158 additions and 113 deletions
|
@ -587,6 +587,14 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
return data.restyle.hint.has_animation_hint()
|
||||
}
|
||||
|
||||
/// Returns the anonymous content for the current element's XBL binding,
|
||||
/// given if any.
|
||||
///
|
||||
/// This is used in Gecko for XBL and shadow DOM.
|
||||
fn xbl_binding_anonymous_content(&self) -> Option<Self::ConcreteNode> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Gets declarations from XBL bindings from the element. Only gecko element could have this.
|
||||
fn get_declarations_from_xbl_bindings<V>(&self,
|
||||
_pseudo_element: Option<&PseudoElement>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue