mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Have a concrete SelectorImpl type everywhere in the style crate.
It is conditionally compiled to one implementation or the other (Gecko or Servo) with `#[cfg(…)]`.
This commit is contained in:
parent
4b7060554b
commit
5c70dfab01
16 changed files with 236 additions and 232 deletions
|
@ -7,13 +7,13 @@ use selector_impl::{PseudoElementCascadeType, SelectorImplExt};
|
|||
use selectors::parser::{ParserContext, SelectorImpl};
|
||||
use string_cache::Atom;
|
||||
|
||||
pub type Stylist = ::selector_matching::Stylist<GeckoSelectorImpl>;
|
||||
pub type Stylesheet = ::stylesheets::Stylesheet<GeckoSelectorImpl>;
|
||||
pub type SharedStyleContext = ::context::SharedStyleContext<GeckoSelectorImpl>;
|
||||
pub type PrivateStyleData = ::data::PrivateStyleData<GeckoSelectorImpl>;
|
||||
pub type Stylist = ::selector_matching::Stylist;
|
||||
pub type Stylesheet = ::stylesheets::Stylesheet;
|
||||
pub type SharedStyleContext = ::context::SharedStyleContext;
|
||||
pub type PrivateStyleData = ::data::PrivateStyleData;
|
||||
pub type Animation = ::animation::Animation;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct GeckoSelectorImpl;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue