mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Support :hover and :active quirk
This commit is contained in:
parent
ff17af064b
commit
15fe48f3f6
15 changed files with 229 additions and 73 deletions
|
@ -33,6 +33,8 @@ use time;
|
|||
use timer::Timer;
|
||||
use traversal::{DomTraversal, TraversalFlags};
|
||||
|
||||
pub use selectors::matching::QuirksMode;
|
||||
|
||||
/// This structure is used to create a local style context from a shared one.
|
||||
#[cfg(feature = "servo")]
|
||||
pub struct ThreadLocalStyleContextCreationInfo {
|
||||
|
@ -49,20 +51,6 @@ impl ThreadLocalStyleContextCreationInfo {
|
|||
}
|
||||
}
|
||||
|
||||
/// Which quirks mode is this document in.
|
||||
///
|
||||
/// See: https://quirks.spec.whatwg.org/
|
||||
#[derive(PartialEq, Eq, Copy, Clone, Hash, Debug)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub enum QuirksMode {
|
||||
/// Quirks mode.
|
||||
Quirks,
|
||||
/// Limited quirks mode.
|
||||
LimitedQuirks,
|
||||
/// No quirks mode.
|
||||
NoQuirks,
|
||||
}
|
||||
|
||||
/// A global options structure for the style system. We use this instead of
|
||||
/// opts to abstract across Gecko and Servo.
|
||||
#[derive(Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue