aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/shared_lock.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-374/+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: Run rustfmt on servo/components/style and servo/ports/geckolibTing-Yu Lin2023-06-091-2/+8
| | | | | | | | | | | | This patch is generated by running `cargo +nightly fmt` under `servo/components/style/` and `servo/ports/geckolib` against mozilla-central https://hg.mozilla.org/mozilla-central/rev/b193f2e7a6a5d1f042c957ea4acd5c89bf210512 My nightly version is: 1.58.0-nightly (c9c4b5d72 2021-11-17) Manually remove the redundant braces in author_styles.rs to fix a warning. Differential Revision: https://phabricator.services.mozilla.com/D131556
* style: Print lock address on assertEmilio Cobos Álvarez2023-05-301-14/+21
| | | | | | | | | | | | | | | Note that the crash reason is sanitized so we're not exposing anything sensitive. I think my patch just changed the signature of the stack, as it didn't change anything related to guards or what not. But without knowing why is failing or a repro it's hard to know what's going on. Printing the address at list would give us some indication of what might be going wrong (perhaps we're using a static lock when we don't expect one or such?). Differential Revision: https://phabricator.services.mozilla.com/D125948
* style: build / rebase fixes.Emilio Cobos Álvarez2020-06-181-0/+2
|
* style: Miscellaneous servo build fixes.Emilio Cobos Álvarez2020-06-041-1/+0
|
* style: Gracefully handle errors creating shared memory UA style sheets.Cameron McCormack2020-06-041-5/+5
| | | | | | | | | | | | We still panic in a debug build, so that developers can notice when they need to add a new static atom after modifying UA sheets. We also add telemetry to note when this happens, add an app note to a crash report, in case any crash later on occurs, and re-up the existing, expired shared memory sheet telemetry probes so we can look at them again. Differential Revision: https://phabricator.services.mozilla.com/D73188
* style: Fix Servo build.Emilio Cobos Álvarez2019-06-041-0/+8
|
* style: Rustfmt recent changes.Emilio Cobos Álvarez2019-06-041-1/+3
|
* style: Add refcount logging to servo_arc.Emilio Cobos Álvarez2019-06-041-0/+8
| | | | Differential Revision: https://phabricator.services.mozilla.com/D32173
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-121-12/+9
|
* style: Add ToShmem impl for shared_lock::Locked.Cameron McCormack2019-04-121-0/+23
| | | | | | Depends on D17192 Differential Revision: https://phabricator.services.mozilla.com/D17193
* style: Add support for read only SharedRwLocks, which don't need any locking.Cameron McCormack2019-04-121-12/+47
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17185
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-2/+2
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition --features gecko`Simon Sapin2018-11-101-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-101-2/+2
|
* Update parking_lot to 0.6Bastien Orivel2018-07-201-6/+8
|
* style: Remove ServoStyleSheet usage.Emilio Cobos Álvarez2018-05-051-1/+1
| | | | | | Bug: 1457920 Reviewed-by: xidorn MozReview-Commit-ID: LIBkovuQ6MB
* Run rustfmt on selectors, servo_arc, and style.Bobby Holley2018-04-101-25/+20
| | | | | | | | | | This was generated with: ./mach cargo fmt --package selectors && ./mach cargo fmt --package servo_arc && ./mach cargo fmt --package style Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
* Avoid the generic writer parameter for PropertyDeclaration serialization.Bobby Holley2018-01-221-5/+6
| | | | MozReview-Commit-ID: JR3IcL1NRHO
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* style: Unify how servo and Gecko handle UA sheets.Emilio Cobos Álvarez2017-09-141-1/+10
|
* Bypass the lock in get_property_value.Bobby Holley2017-09-051-0/+7
| | | | MozReview-Commit-ID: ECkLn5TPBDO
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-1/+1
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).
* stylo: Fix StyleSheetInner/Stylesheet mappingEmilio Cobos Álvarez2017-07-021-1/+14
| | | | | | The key of this patch is the split between Stylesheet and StylesheetContents. Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
* remove various things now that Rust 1.17 is requiredNathan Froyd2017-06-231-1/+3
| | | | | std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
* style: Split stylesheets.rsEmilio Cobos Álvarez2017-06-041-0/+11
| | | | | | | | | | | | | This file has become quite bloated lately. This commit deletes that file in favor of a set of submodules. The only noticeable change apart from code move, is converting deep_clone_foo methods into a trait. It also unifies logic related to different style rules in the same place. There's some missing work, specially related to font-face and counter-style, but I think this is worth landing in the meantime.
* Use StyleArc in the style system.Bobby Holley2017-05-021-2/+2
| | | | MozReview-Commit-ID: flF0fv9E9M
* Use AtomicRefCell instead of RwLock inside SharedRwLock for stylo.Simon Sapin2017-03-201-40/+88
| | | | MozReview-Commit-ID: 8M6BUqe4pil
* Rename ReadGuards to StylesheetGuardsSimon Sapin2017-03-191-3/+3
|
* Replace RwLock<StyleRule> with Locked<StyleRule>Simon Sapin2017-03-191-0/+20
|
* Introduce a ToCssWithGuard traitSimon Sapin2017-03-191-0/+17
|
* Add SharedRwLock<T> and Locked<T>Simon Sapin2017-03-191-0/+162