mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Add support for disabled document colors.
This commit is contained in:
parent
9e89b0a229
commit
c768169149
15 changed files with 103 additions and 13 deletions
|
@ -19,6 +19,7 @@ use properties::longhands::animation_iteration_count::single_value::computed_val
|
|||
use properties::longhands::animation_play_state::computed_value::single_value::T as AnimationPlayState;
|
||||
use properties::longhands::transition_timing_function::single_value::computed_value::StartEnd;
|
||||
use properties::longhands::transition_timing_function::single_value::computed_value::T as TransitionTimingFunction;
|
||||
use rule_tree::CascadeLevel;
|
||||
use std::sync::mpsc::Sender;
|
||||
use stylearc::Arc;
|
||||
use timer::Timer;
|
||||
|
@ -472,7 +473,8 @@ fn compute_style_for_animation_step(context: &SharedStyleContext,
|
|||
.all(|&(_, importance)| importance == Importance::Normal));
|
||||
|
||||
let iter = || {
|
||||
guard.declarations().iter().rev().map(|&(ref decl, _importance)| decl)
|
||||
guard.declarations().iter().rev()
|
||||
.map(|&(ref decl, _importance)| (decl, CascadeLevel::Animations))
|
||||
};
|
||||
|
||||
// This currently ignores visited styles, which seems acceptable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue