mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Import SelectorMap back from the selectors crate.
Nobody else uses it, and I want to make breaking changes to it.
This commit is contained in:
parent
bc71e8b65b
commit
4062899fd8
13 changed files with 332 additions and 24 deletions
|
@ -9,11 +9,11 @@
|
|||
use context::SharedStyleContext;
|
||||
use data::PrivateStyleData;
|
||||
use element_state::ElementState;
|
||||
use properties::{ComputedValues, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use properties::{ComputedValues, PropertyDeclarationBlock};
|
||||
use refcell::{Ref, RefMut};
|
||||
use restyle_hints::{RESTYLE_DESCENDANTS, RESTYLE_LATER_SIBLINGS, RESTYLE_SELF, RestyleHint};
|
||||
use selector_impl::{ElementExt, PseudoElement};
|
||||
use selectors::matching::DeclarationBlock;
|
||||
use selector_matching::DeclarationBlock;
|
||||
use sink::Push;
|
||||
use std::fmt::Debug;
|
||||
use std::ops::BitOr;
|
||||
|
@ -198,7 +198,7 @@ pub trait TDocument : Sized + Copy + Clone {
|
|||
|
||||
pub trait PresentationalHintsSynthetizer {
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V)
|
||||
where V: Push<DeclarationBlock<Vec<PropertyDeclaration>>>;
|
||||
where V: Push<DeclarationBlock>;
|
||||
}
|
||||
|
||||
pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + PresentationalHintsSynthetizer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue