mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
style: Fix parsing and add generated keyframes
This commit is contained in:
parent
46eec45886
commit
2d566ef0ef
10 changed files with 189 additions and 94 deletions
|
@ -9,6 +9,7 @@ use properties::{self, ServoComputedValues};
|
|||
use selector_matching::{USER_OR_USER_AGENT_STYLESHEETS, QUIRKS_MODE_STYLESHEET};
|
||||
use selectors::Element;
|
||||
use selectors::parser::{ParserContext, SelectorImpl};
|
||||
use std::fmt::Debug;
|
||||
use stylesheets::Stylesheet;
|
||||
|
||||
/// This function determines if a pseudo-element is eagerly cascaded or not.
|
||||
|
@ -62,7 +63,9 @@ pub trait ElementExt: Element {
|
|||
fn is_link(&self) -> bool;
|
||||
}
|
||||
|
||||
pub trait SelectorImplExt : SelectorImpl + Sized {
|
||||
// NB: The `Clone` trait is here for convenience due to:
|
||||
// https://github.com/rust-lang/rust/issues/26925
|
||||
pub trait SelectorImplExt : SelectorImpl + Clone + Debug + Sized {
|
||||
type ComputedValues: properties::ComputedValues;
|
||||
|
||||
fn pseudo_element_cascade_type(pseudo: &Self::PseudoElement) -> PseudoElementCascadeType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue