aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/scoped_tls.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-75/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove packages that were moved to external repo * Add workspace dependencies pointing to 2023-06-14 branch * Fix servo-tidy.toml errors * Update commit to include #31346 * Update commit to include servo/stylo#2 * Move css-properties.json lookup to target/doc/stylo * Remove dependency on vendored mako in favour of pypi dependency This also removes etc/ci/generate_workflow.py, which has been unused since at least 9e71bd6a7010d6e5723831696ae0ebe26b47682f. * Add temporary code to debug Windows test failures * Fix failures on Windows due to custom target dir * Update commit to include servo/stylo#3 * Fix license in tests/unit/style/build.rs * Document how to build with local Stylo in Cargo.toml
* style: Unify parallel and sequential traversal schedulingEmilio Cobos Álvarez2023-11-241-13/+10
| | | | | | | Use in_place_scope_fifo to spawn work into the thread pool while doing work in the main thread. Differential Revision: https://phabricator.services.mozilla.com/D179492
* Replace ScopedTLS::unsafe_get by ScopedTLS::into_slotsAnthony Ramine2020-04-051-4/+3
| | | | | We only ever look at the slots after we are done with the thread pool, so we don't need to expose any unsafety to inspect the slots.
* style: Add a comment about a Send bound that may look confusing.Emilio Cobos Álvarez2019-09-121-0/+3
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reduce the size of top_down_dom stackframes.Boris Zbarsky2017-06-081-3/+9
| | | | The idea is to put the memmoving of the ThreadLocalContext out of line from the point of view of top_down_dom so we don't need to allocate a large chunk of stack space for it.
* bump required rayon version to 0.7Nathan Froyd2017-05-051-1/+1
| | | | | ...and bring jpeg-decoder along for the ride. Minor tweaks were necessary because of rayon API changes.
* Bug 1331856 - Add style performance statistics to Servo. r=emilioBobby Holley2017-01-191-0/+6
| | | | MozReview-Commit-ID: ECHZgYNA8nb
* style: Document the scoped_tls module.Emilio Cobos Álvarez2017-01-021-7/+20
|
* Introduce and use Scoped TLS.Bobby Holley2016-12-211-0/+51
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.