aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/element/restyle_hints.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Stylo to its own repo (#31350)Delan Azabani2024-02-271-190/+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: Rustfmt servo/. r=zrhoffmanEmilio Cobos Álvarez2023-11-241-1/+5
| | | | | | | | $ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
* style: Restyle pseudo-elements as well on part attribute changesEmilio Cobos Álvarez2023-11-211-41/+35
| | | | | | | | Refactor a bit the code to unify how we deal with this conditional restyling (we had similar code for MustCascadeChildrenIfInheritResetStyle). Differential Revision: https://phabricator.services.mozilla.com/D172890
* style: More fine-grained viewport units invalidationEmilio Cobos Álvarez2023-05-241-1/+6
| | | | | | This should speed up window resize significantly. Differential Revision: https://phabricator.services.mozilla.com/D118878
* Remove unused code from selector and style cratesest312019-06-071-6/+0
|
* style: Use a single RestyleHint representation.Emilio Cobos Álvarez2019-03-271-72/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D22828
* style: Rustfmt recent changes.Emilio Cobos Álvarez2019-01-071-2/+6
|
* style: Update the Rust target version for bindgen.Emilio Cobos Álvarez2019-01-071-22/+15
| | | | | | This brings us alignas support and also associated constants for bitfield enums. Differential Revision: https://phabricator.services.mozilla.com/D15334
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition --features gecko`Simon Sapin2018-11-101-9/+9
|
* `cargo fix --edition`Simon Sapin2018-11-101-1/+1
|
* Format style component.chansuke2018-09-091-2/+4
|
* Run rustfmt on selectors, servo_arc, and style.Bobby Holley2018-04-101-13/+16
| | | | | | | | | | 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)
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-32/+32
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-32/+32
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-32/+32
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* stylo: Fix restyle hint conversion to handle eRestyle_ForceDescendants correcty.Emilio Cobos Álvarez2017-08-011-1/+11
|
* Pass TraversalFlags from C++ into Rust.Bobby Holley2017-07-271-1/+1
| | | | MozReview-Commit-ID: EVUzgnL5coN
* style: Avoid looking at descendant hints to check whether the element needs ↵Emilio Cobos Álvarez2017-07-241-2/+6
| | | | a restyle.
* Add has_current_styles_for_traversal().Hiroyuki Ikezoe2017-07-181-0/+7
| | | | | | | | In animation-only restyle, we just need to check the element has animation restyle hints or has recascade self which is a result of animation-only restyle for ancestors. has_current_styles() in Servo_ResolveStyle() is intentionally left there, it will be changed in a subsequent patch.
* style: Kill StoredRestyleHint.Emilio Cobos Álvarez2017-06-141-8/+39
| | | | | | Reviewed-By: bholley Bug: 1368236 MozReview-Commit-ID: 43Cf0rJyhzO
* style: Implement a more fine-grained invalidation method.Emilio Cobos Álvarez2017-06-131-0/+212
This commit also removes the old restyle_hints module and splits it into multiple modules under components/style/invalidation/element/. The basic approach is to walk down the tree using compound selectors as needed, in order to do as little selector-matching as possible. Bug: 1368240 MozReview-Commit-ID: 2YO8fKFygZI