style: Don't share style with an element that has a different proto binding than us.

See the lengthy comment about why... XBL sucks.

MozReview-Commit-ID: 8UgeJAVkj6a
This commit is contained in:
Emilio Cobos Álvarez 2018-03-07 15:01:03 +01:00
parent c338745b17
commit 9364cd21b8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 31 additions and 6 deletions

View file

@ -739,6 +739,9 @@ pub trait TElement
/// The shadow root which roots the subtree this element is contained in.
fn containing_shadow(&self) -> Option<<Self::ConcreteNode as TNode>::ConcreteShadowRoot>;
/// XBL hack for style sharing. :(
fn has_same_xbl_proto_binding_as(&self, _other: Self) -> bool { true }
/// Return the element which we can use to look up rules in the selector
/// maps.
///