aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow_ref.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy layout (layout 2013) (#35943)Oriol Brufau2025-03-131-66/+0
| | | | | | We were already not compiling it and not running tests on it by default. So it's simpler to just completely remove it. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Address issues uncovered by rust-1.78 beta (#32130)Martin Robinson2024-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes changes to allow Servo to compile with the 1.78 version of Rust: - Dead code is removd (Rust seems to have gotten better at detecting it). - The `FlowRef` `DerefMut` is updated according to @SimonSapin's advice [^1]. - The `imports.rs` now explicitly silences warnings about unused imports. [^1]: https://github.com/servo/servo/issues/6503#issuecomment-2066088179 <!-- Please describe your changes on the following line: --> --- <!-- 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 do not require tests because they should not change behavior. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
* clippy: Fix warnings in `components/layout` (#31612)eri2024-03-111-0/+1
| | | | | * clippy: fix warnings in components/layout * fix: formatting
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-4/+4
| | | | This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-1/+2
| | | | | * strict imports formatting * Reformat all imports
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-10/+10
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Rustfmt layout cratePyfisch2018-09-011-2/+0
|
* order derivable traits listsClément DAVID2017-08-231-2/+2
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Migrated -Z trace-layout to serde_jsonShing Lyu2016-11-071-0/+1
|
* Make `FlowRef` a newtypeMichael Howell2016-11-041-12/+49
| | | | | | | | | | | | | This creates a sharp distinction between `Arc<Flow>`s, which may be owned by anyone, and `FlowRef`s, which may only be owned by the traversal code. By checking the reference count, we ensure that a `Flow` cannot be pointed to by `Arc`s and `FlowRef`s simultaneously. This is not a complete fix for #6503, though it is a necessary start (enforcing the no-aliasing rule of `FlowRef::deref_mut` will require far more work). Fixes #14014
* Correct the signature of flow_ref::deref_mut.Ms2ger2016-06-061-1/+1
| | | | This also fixes Undefined Behavior in build_display_list_for_subtree.
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-1/+1
|
* Don’t mark flow_ref::deref_mut as unsafe.Simon Sapin2015-08-211-5/+9
| | | | See discussion in https://github.com/servo/servo/pull/7237
* Replace FlowRef with Arc<Flow>, now that Arc supports DST.Simon Sapin2015-08-201-182/+7
| | | | … and WeakFlowRef with Weak<Flow>.
* Replace the unsound `impl DerefMut for FlowRef` with an unsafe function.Simon Sapin2015-08-201-7/+5
| | | | See #6503.
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Remove Deref and DerefMut implementations from WeakFlowRef.Ms2ger2015-06-271-21/+12
| | | | By definition of a weak pointer, these implementations cannot be safe.
* Use the heap module through its facade in libstd.Ms2ger2015-06-261-1/+1
|
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-3/+5
|
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-1/+1
|
* Fix various build warnings.Ms2ger2015-03-201-3/+1
|
* Fix memory leak in flow tree by adding weak refs.Jack Moffitt2015-03-161-7/+123
| | | | | | | | | | Cycles were being created in the flow tree since absolutely positioned descendants had pointers to their containing blocks. This adds WeakFlowRef (based on Weak<T>) and makes these backpointers weak references. This also harmonizes our custom Arc<T>, FlowRef, to be consistent with the upstream implementation. Fixes #4915.
* Opt-in rather than opt-out to unsafe blocks in layout.Ms2ger2015-02-081-0/+2
|
* Fix the documentation comment syntax in flow_ref.rs.Ms2ger2015-02-081-3/+3
|
* Don't shadow lifetimes in layout.Ms2ger2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-2/+7
|
* Stop calling deref() and deref_mut() explicitly.Ms2ger2015-01-221-1/+1
|
* Use std::sync::atomic::Ordering explicitly.Ms2ger2015-01-221-3/+3
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-4/+4
|
* Remove some manual deref() / deref_mut() calls.Ms2ger2014-12-161-1/+1
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-7/+7
|
* Use the Deref traits for FlowRefs.Clark Gaebel2014-10-151-7/+10
| | | | | This patch switches FlowRefs to using the Deref and DerefMut traits, instead of the custom `get` and `get_mut` functions.
* Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)Keegan McAllister2014-09-201-5/+5
|
* Cargoify servoJack Moffitt2014-09-081-0/+84