mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
c338745b17
commit
9364cd21b8
3 changed files with 31 additions and 6 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue