mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
style: Remove conditional imports in traversal.rs
This commit is contained in:
parent
a2403c5cd6
commit
5954e0a4ba
1 changed files with 4 additions and 3 deletions
|
@ -13,11 +13,8 @@ use selector_parser::PseudoElement;
|
||||||
use sharing::StyleSharingTarget;
|
use sharing::StyleSharingTarget;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use style_resolver::{PseudoElementResolution, StyleResolverForElement};
|
use style_resolver::{PseudoElementResolution, StyleResolverForElement};
|
||||||
#[cfg(feature = "servo")] use style_traits::ToCss;
|
|
||||||
use stylist::RuleInclusion;
|
use stylist::RuleInclusion;
|
||||||
use traversal_flags::{TraversalFlags, self};
|
use traversal_flags::{TraversalFlags, self};
|
||||||
#[cfg(feature = "servo")] use values::Either;
|
|
||||||
#[cfg(feature = "servo")] use values::generics::image::Image;
|
|
||||||
|
|
||||||
/// A per-traversal-level chunk of data. This is sent down by the traversal, and
|
/// A per-traversal-level chunk of data. This is sent down by the traversal, and
|
||||||
/// currently only holds the dom depth for the bloom filter.
|
/// currently only holds the dom depth for the bloom filter.
|
||||||
|
@ -783,6 +780,10 @@ fn notify_paint_worklet<E>(context: &StyleContext<E>, data: &ElementData)
|
||||||
where
|
where
|
||||||
E: TElement,
|
E: TElement,
|
||||||
{
|
{
|
||||||
|
use style_traits::ToCss;
|
||||||
|
use values::Either;
|
||||||
|
use values::generics::image::Image;
|
||||||
|
|
||||||
// We speculatively evaluate any paint worklets during styling.
|
// We speculatively evaluate any paint worklets during styling.
|
||||||
// This allows us to run paint worklets in parallel with style and layout.
|
// This allows us to run paint worklets in parallel with style and layout.
|
||||||
// Note that this is wasted effort if the size of the node has
|
// Note that this is wasted effort if the size of the node has
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue