aboutsummaryrefslogtreecommitdiffstats
path: root/components/to_shmem
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-273-619/+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: Reduce Servo's diff with upstream `to_shmem` (#31349)Martin Robinson2024-02-142-38/+21
| | | | | This is part of getting Servo using an version of style closer to upstream. This change reverts some changes we made to `to_shmem` and `to_shmem_derive` in order to reduce our diff with upstream stylo.
* style: Rustfmt servo/. r=zrhoffmanEmilio Cobos Álvarez2023-11-241-3/+7
| | | | | | | | $ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
* Disable formatting for malloc_size_of, servo_arc, to_shmemOriol Brufau2023-11-211-0/+1
|
* style: Avoid linear search to check for custom property presenceEmilio Cobos Álvarez2023-11-211-1/+15
| | | | | | | The test-case in the next patch from 10s to a couple hundred milliseconds on my machine. No behavior change other than that. Differential Revision: https://phabricator.services.mozilla.com/D175612
* Further changes required by ServoOriol Brufau2023-11-211-1/+1
|
* style: Allow to use ThinVec/nsTArray in the style crateEmilio Cobos Álvarez2023-11-212-0/+56
| | | | | | | This allows to clean-up the previous patches by using a single ThinVec (which stores length / capacity along with the allocation). Differential Revision: https://phabricator.services.mozilla.com/D175029
* style: Convert RGBA to AbsoluteColor for computed/animated/resolved CSS colorsTiaan Louw2023-11-211-1/+0
| | | | | | | | | | | | | | Computed color values will not be in the correct format, closer to the one specified by the author. This also means that colors accross the code are stored now as AbsoluteColor or StyleAbsoluteColor. This allows color space/gamut information to be available for use. Some animation related test failures had to be changed, because colors now has greater precision. Animated a color now causes a lot more animation updates, which was not initially expected. See the bug for discussion. Differential Revision: https://phabricator.services.mozilla.com/D171021
* style: Fix clippy warningsSylvestre Ledru2023-11-211-1/+1
| | | | | | Depends on D96634 Differential Revision: https://phabricator.services.mozilla.com/D96636
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-6/+5
| | | | | * strict imports formatting * Reformat all imports
* style: Remove ThinBoxedSliceEmilio Cobos Álvarez2023-06-092-19/+0
| | | | | | | | | | | | | | | | | | | The only remaining consumers are ::-moz-tree pseudo-elements (we used to use ThinBoxedSlice for other data structures in the past). Those are not particularly performance sensitive so I think just double-boxing is fine. In the future, if we wanted to avoid the double indirection, we could probably use the "thin" crate (https://docs.rs/thin) or similar, which stores the length of the slice along with the allocation, making the pointer thin in all configurations, much like "ThinArc" does: https://searchfox.org/mozilla-central/rev/1ce2eea39442190a71a1f8f650d098f286bf4a01/servo/components/servo_arc/lib.rs#891 In practice though, I don't think it's particularly worth it for this specific case. Differential Revision: https://phabricator.services.mozilla.com/D134672
* Start the transition to workspace dependenciesMartin Robinson2023-05-171-5/+5
| | | | | | | This will ultimately make it simpler to update crate dependencies and reduce duplicate when specifying requirements. Generally, this change does not touch dependencies that are only used by a single crate. We could consider moving them to workspace dependencies in the future.
* Auto merge of #29364 - delan:selectors-servo_arc, r=jdmbors-servo2023-02-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release selectors 0.24.0 and servo_arc 0.2.0 This patch extends #29361, bumping selectors to 0.24.0 and servo_arc to 0.2.0. We’ll need to publish them too, in order to close #29105. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #29105 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because there are no functional changes
| * sync versions of to_shmem + to_shmem_derive with dummy releasesDelan Azabani2023-02-161-1/+1
| |
* | Upgrade remaining components to edition 2018sagudev2023-02-182-8/+1
|/
* Updated cssparser dependency to 0.29.Lewin Probst2021-11-181-1/+1
| | | | Signed-off-by: Lewin Probst <info@emirror.de>
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-1/+1
|
* style: Gracefully handle errors creating shared memory UA style sheets.Cameron McCormack2020-06-041-65/+89
| | | | | | | | | | | | 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: Update smallvec to 1.0.Emilio Cobos Álvarez2019-12-161-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D56044
* style: Don't specify minor version for cssparser.Emilio Cobos Álvarez2019-11-301-1/+1
|
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-2/+2
|
* Remove unused dependenciesShotaro Yamada2019-10-011-2/+1
|
* Stylo: replace uses of mem::uninitialized with MaybeUninitSimon Sapin2019-07-161-3/+4
| | | | MozReview-Commit-ID: KGhYL6DJRaR
* style: Add an owned slice type which cbindgen can understand.Emilio Cobos Álvarez2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | Passing these by value won't be ok of course, but that's fine. I plan to combine this with https://github.com/eqrion/cbindgen/pull/333 to actually be able to share representation for ~all the things, this is just the first bit. Box<T>, Atom and Arc<T> will be much easier since cbindgen can understand them without issues. It's boxed slices the only ones I should need something like this. I could avoid it if I rely on Rust's internal representation, which we can per [1], but then I need to teach cbindgen all about slices, which is generally hard, I think. [1]: https://github.com/rust-lang/unsafe-code-guidelines/blob/master/reference/src/layout/pointers.md Differential Revision: https://phabricator.services.mozilla.com/D29768
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-122-11/+30
|
* style: Reformat recent changes.Emilio Cobos Álvarez2019-04-121-12/+26
|
* style: Add ToShmem impls for collections and strings.Cameron McCormack2019-04-122-1/+276
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17191
* style: Add simple ToShmem implementations.Cameron McCormack2019-04-122-1/+67
| | | | Differential Revision: https://phabricator.services.mozilla.com/D17190
* style: Add SharedMemoryBuilder type and ToShmem trait.Cameron McCormack2019-04-122-0/+191
Differential Revision: https://phabricator.services.mozilla.com/D17187