style: Record on a computed::Context whether we are computing a SMIL animated value.

This commit is contained in:
Cameron McCormack 2017-07-24 19:22:07 +08:00
parent 30d6d6024b
commit c81d62d36f
7 changed files with 37 additions and 3 deletions

View file

@ -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> {