mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Record on a computed::Context whether we are computing a SMIL animated value.
This commit is contained in:
parent
30d6d6024b
commit
c81d62d36f
7 changed files with 37 additions and 3 deletions
|
@ -95,6 +95,12 @@ pub struct Context<'a> {
|
|||
|
||||
/// The quirks mode of this context.
|
||||
pub quirks_mode: QuirksMode,
|
||||
|
||||
/// Whether this computation is being done for a SMIL animation.
|
||||
///
|
||||
/// This is used to allow certain properties to generate out-of-range
|
||||
/// values, which SMIL allows.
|
||||
pub for_smil_animation: bool,
|
||||
}
|
||||
|
||||
impl<'a> Context<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue