style: Get restyle hints right in presence of XBL.

Bug: 1371130
Reviewed-By: heycam
MozReview-Commit-ID: 56lMyXEYT1I
This commit is contained in:
Emilio Cobos Álvarez 2017-06-20 10:08:10 +02:00
parent 459b22a985
commit ae5a6c9c69
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 158 additions and 113 deletions

View file

@ -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>,