mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
As a follow-up, we could move all the data living under a mutex in the SharedLayoutContext only in order to create the local context to the same place. This should increase animation performance when there are multiple animations in one page that happen to be on different threads.
19 lines
874 B
Rust
19 lines
874 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
//! Concrete types for servo Style implementation
|
|
|
|
use animation;
|
|
use context;
|
|
use data;
|
|
use properties::ServoComputedValues;
|
|
use selector_impl::ServoSelectorImpl;
|
|
use selector_matching;
|
|
use stylesheets;
|
|
|
|
pub type Stylesheet = stylesheets::Stylesheet<ServoSelectorImpl>;
|
|
pub type PrivateStyleData = data::PrivateStyleData<ServoSelectorImpl, ServoComputedValues>;
|
|
pub type Stylist = selector_matching::Stylist<ServoSelectorImpl>;
|
|
pub type SharedStyleContext = context::SharedStyleContext<ServoSelectorImpl>;
|
|
pub type LocalStyleContextCreationInfo = context::LocalStyleContextCreationInfo<ServoSelectorImpl>;
|
|
pub type Animation = animation::Animation<ServoSelectorImpl>;
|