aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update euclid.Emilio Cobos Álvarez2019-07-231-0/+2
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03)Josh Matthews2019-07-051-1/+0
|
* Fix servo build.Emilio Cobos Álvarez2019-02-101-0/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-33/+0
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-2/+2
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-0/+1
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* Rustfmt layout cratePyfisch2018-09-011-2/+4
|
* Fix Servo build.Emilio Cobos Álvarez2018-08-081-0/+1
|
* Share line breaking state across text runsManish Goregaokar2018-01-241-0/+1
| | | | Fixes #874
* Create own file for background calculations in layoutPyfisch2018-01-061-2/+1
| | | | | | | | | | Move display_list_builder.rs and webrender_helpers.rs along with the new file to components/layout/display_list/ Remove apparently unused IdType enum. Only variant used was OverflowClip. See #19676
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+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`.
* Use pointer casts instead of tramsutes to raw::TraitObjectSimon Sapin2017-10-131-9/+0
| | | | | | Casting `*const T` to `*const U` with `U: Sized` is allowed even if `T: ?Sized`. This safely extracts the data pointer out of a trait object, without relying on the memory representation of trait objects.
* Remove usage of unstable feature box_patternsSimon Sapin2017-10-131-1/+0
|
* Remove usage of unstable feature "raw"Simon Sapin2017-10-131-1/+9
|
* Remove usage of unstable feature conservative_impl_trait in layoutSimon Sapin2017-10-131-1/+0
|
* Use wrappers in the nonzero crate so users don’t need unstable featuresSimon Sapin2017-10-131-1/+0
|
* Remove usage of unstable box syntax, except in the script crateSimon Sapin2017-10-121-1/+0
| | | | | … because there’s a lot of it, and script still uses any other unstable features anyway.
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-2/+3
| | | | | | 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).
* script: Move the layout_wrapper outside of script.Emilio Cobos Álvarez2017-07-151-2/+1
| | | | | | | | This allows us to have ensure_data() and clear_data() functions on the TElement trait, instead of hacking around it adding methods in random traits. This also allows us to do some further cleanup, which I'd rather do in a followup.
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-1/+1
|
* Implemented paint worklet properties.Alan Jeffrey2017-07-111-0/+1
|
* Replace remaining usage of deprecated Range::step_bySimon Sapin2017-07-051-1/+0
| | | | … which is being removed in https://github.com/rust-lang/rust/pull/43012
* remove various things now that Rust 1.17 is requiredNathan Froyd2017-06-231-8/+0
| | | | | std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
* Remove explicit dependencies on serde_deriveSimon Sapin2017-06-161-3/+1
|
* Add separate computed Color value.Xidorn Quan2017-06-081-1/+0
|
* layout: Stop doing unsafe transmutes between refcell references.Emilio Cobos Álvarez2017-05-251-1/+1
| | | | | | | | | This commit splits the style and layout data in two separate refcells. These transmutes have been a source of trouble (for example on Android), and they feel like a hack anyway. Fixes #16982
* Fix unsafe AtomicRefCell<PersistentLayoutData> transmute due to memory ↵Imanol Fernandez2017-05-121-0/+1
| | | | alignment differences
* Auto merge of #16689 - servo:m5e, r=noxbors-servo2017-05-031-1/+1
|\ | | | | | | | | | | | | | | Upgrade to html5ever 0.16 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16689) <!-- Reviewable:end -->
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Fix up script and layout.Bobby Holley2017-05-021-0/+12
|/
* Trigger reflow on document.elementsFromPointFernando Jiménez Moreno2017-03-021-1/+1
|
* Kill the plugins crate and its clippy supportAnthony Ramine2017-02-211-5/+1
| | | | | | Sometimes clippy gets outdated by months, and its current support setup means that each Servo component need to opt into it by depending on the plugins crate manually, and not all components do that.
* Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).Ms2ger2017-01-241-4/+0
|
* Only create scrolling overflow regions when necessaryMartin Robinson2017-01-171-0/+1
| | | | | | | | | | | | | | | | | Only create scroll roots for overflow regions when the overflow region is actually larger than the container size. This prevents creating scrolling roots for elements that do not have overflow scroll as a side-effect of the way their height and width is defined. For example, tables should never respect overflow:scroll since their height and width should always be large enough to prevent overflow. This also decreases the size and complexity of the display list in many other circumstances. As part of this change, transformed overflow calculation is moved from display list construction to layout. This should mean that overflow is handled more accurately earlier. Fixes #14574.
* Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06)Simon Sapin2017-01-061-1/+0
|
* Switch to crates.io for atomic_refcell.Bobby Holley2017-01-031-0/+1
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Update to Rust 1.15.0-nightly (1c448574b 2016-11-28)Anthony Ramine2016-11-291-3/+0
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-1/+1
|
* style: Use rayon instead of our custom work queue.Emilio Cobos Álvarez2016-11-141-0/+1
|
* Migrated -Z trace-layout to serde_jsonShing Lyu2016-11-071-1/+4
|
* Remove the direct azure dependencies from gfx, layout and layout_thread.Ms2ger2016-11-041-1/+0
| | | | | This does not cover transitive dependencies through canvas_traits, though that should not be too hard to solve either.
* Update to string-cache 0.3Simon Sapin2016-11-031-1/+2
|
* Remove #![feature(custom_derive)]Anthony Ramine2016-11-031-1/+0
|
* Use heapsize_derive instead of heapsize_pluginSimon Sapin2016-11-031-1/+2
|
* Make style context use parking_lot::RwLockXidorn Quan2016-11-021-0/+1
|
* Hoist most styling functionality from TNode to TElement.Bobby Holley2016-10-291-1/+0
| | | | MozReview-Commit-ID: DZ8ZrsZIiAU
* #13262 Add a unit test verifying that SpecificFragmentInfo sizeFlorent FAYOLLE2016-09-251-0/+1
|