mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: Move TraversalFlags into SharedStyleContext.
This commit is contained in:
parent
5fa9a56247
commit
2bbeb21551
5 changed files with 19 additions and 19 deletions
|
@ -29,7 +29,7 @@ use stylist::Stylist;
|
|||
use thread_state;
|
||||
use time;
|
||||
use timer::Timer;
|
||||
use traversal::DomTraversal;
|
||||
use traversal::{DomTraversal, TraversalFlags};
|
||||
|
||||
/// This structure is used to create a local style context from a shared one.
|
||||
pub struct ThreadLocalStyleContextCreationInfo {
|
||||
|
@ -89,8 +89,8 @@ pub struct SharedStyleContext<'a> {
|
|||
/// The QuirksMode state which the document needs to be rendered with
|
||||
pub quirks_mode: QuirksMode,
|
||||
|
||||
/// True if the traversal is processing only animation restyles.
|
||||
pub animation_only_restyle: bool,
|
||||
/// Flags controlling how we traverse the tree.
|
||||
pub traversal_flags: TraversalFlags,
|
||||
}
|
||||
|
||||
impl<'a> SharedStyleContext<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue