mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Fix various issues with XBL rule matching.
We were using the wrong MatchingMode and flags setter just because we didn't bother threading them down. This patch fixes the issue seen with the video controls. MozReview-Commit-ID: Il1WOzRDxI1 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
d82e6926fc
commit
19d34b96e5
2 changed files with 21 additions and 61 deletions
|
@ -26,7 +26,6 @@ use selectors::matching::{ElementSelectorFlags, VisitedHandlingMode};
|
|||
use selectors::sink::Push;
|
||||
use servo_arc::{Arc, ArcBorrow};
|
||||
use shared_lock::Locked;
|
||||
use smallvec::VecLike;
|
||||
use std::fmt;
|
||||
#[cfg(feature = "gecko")] use hash::HashMap;
|
||||
use std::fmt::Debug;
|
||||
|
@ -648,24 +647,6 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
false
|
||||
}
|
||||
|
||||
/// Gets declarations from XBL bindings from the element.
|
||||
fn get_declarations_from_xbl_bindings<V>(
|
||||
&self,
|
||||
pseudo_element: Option<&PseudoElement>,
|
||||
applicable_declarations: &mut V
|
||||
) -> bool
|
||||
where
|
||||
V: Push<ApplicableDeclarationBlock> + VecLike<ApplicableDeclarationBlock>
|
||||
{
|
||||
self.each_xbl_stylist(|stylist| {
|
||||
stylist.push_applicable_declarations_as_xbl_only_stylist(
|
||||
self,
|
||||
pseudo_element,
|
||||
applicable_declarations
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
/// Gets the current existing CSS transitions, by |property, end value| pairs in a HashMap.
|
||||
#[cfg(feature = "gecko")]
|
||||
fn get_css_transitions_info(&self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue