mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
It turns out that it's problematic to embed ThreadLocalStyleContext within LayoutContext, because parameterizing the former on TElement (which we do in the next patch) infects all the traversal stuff with the trait parameters, which we don't really want. In general, it probably makes sense to use separate scoped TLS types for the separate DOM and Flow tree passes, so we can add a different ScopedTLS type for the Flow pass if we ever need it. We also reorder the |scope| and |shared| parameters in parallel.rs, because it aligns more with the order in style/parallel.rs. I did this when I was adding a TLS parameter to all these functions, which I realized we don't need for now.
15 lines
388 B
Rust
15 lines
388 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/. */
|
|
|
|
|
|
pub mod data;
|
|
pub mod restyle_damage;
|
|
pub mod snapshot;
|
|
pub mod snapshot_helpers;
|
|
pub mod traversal;
|
|
pub mod wrapper;
|
|
|
|
pub mod conversions;
|
|
pub mod selector_parser;
|
|
pub mod values;
|