aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippy: Fix warnings in `components/layout` (#31612)eri2024-03-111-45/+22
| | | | | * clippy: fix warnings in components/layout * fix: formatting
* Lint layout_2013 with clippy (#31221)Oriol Brufau2024-01-301-3/+15
| | | | | | | | | * Lint layout_2013 with clippy CARGO_BUILD_RUSTC=rustc cargo clippy --fix -p layout_2013 --broken-code * ./mach fmt * Cosmetic adjustments
* Fix transform assertion failures in Layout 2013 and Layout 2020 (#30713)Martin Robinson2023-11-131-3/+5
| | | | | | | Layout asserts that it never creates stacking contexts that have a zero scale, yet it doesn't prevent the creation of those stacking contexts. This change stops their creation at an earlier stage. Fixes #30118.
* Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578)Delan Azabani2023-10-181-1/+5
|
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-22/+24
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-1/+4
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* build(deps): bump bitflags from 1.3.2 to 2.3.1 (#30273)Martin Robinson2023-09-011-54/+37
| | | | | | Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.1)
* Detect body elements during layoutMartin Robinson2023-05-041-4/+11
| | | | | | | | | | | | | | | | | During layout it is often useful, for various specification reasons, to know if an element is the `<body>` element of an `<html>` element root. There are a couple places where a brittle heuristic is used to detect `<body>` elements. This information is going to be even more important to properly handle `<html>` elements that inherit their overflow property from their `<body>` children. Implementing this properly requires updating the DOM wrapper interface. This check does reach up to the parent of thread-safe nodes, but this is essentially the same kind of operation that `parent_style()` does, so is ostensibly safe. This change should not change any behavior and is just a preparation step for properly handle `<body>` overflow.
* Bump euclid to 0.22Martin Robinson2023-01-261-2/+2
| | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
* Actually check if root is absolute positionedWu Yu Wei2022-04-191-0/+25
|
* Fix compiler warningsBryce Wilson2021-08-141-1/+1
|
* layout: Don't built stacking contexts or display lists for empty blocks.Josh Matthews2020-06-091-1/+19
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-12-161-3/+2
|
* Servo build fixes.Emilio Cobos Álvarez2019-12-161-9/+8
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-1/+1
| | | | | | | | 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.
* WebRender units are no longer reexported.Patrick Walton2019-07-091-1/+1
|
* Some further removalsest312019-05-301-8/+0
|
* Remove unused code from gfx and layout cratesest312019-05-291-94/+1
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-9/+9
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-17/+17
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* layout: Fix servo build.Emilio Cobos Álvarez2018-11-101-0/+1
| | | | TextAlign now implements FromPrimitive instead of an ad-hoc method.
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-9/+9
|
* Reorder importsPyfisch2018-11-061-4/+4
|
* Sort `use` statementsSimon Sapin2018-11-061-10/+10
|
* `cargo fix --edition`Simon Sapin2018-11-061-23/+23
|
* Rustfmt layout cratePyfisch2018-09-011-127/+215
|
* Move DL items from gfx to layoutPyfisch2018-04-221-1/+1
| | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* Use typed transforms in stacking contextsPyfisch2018-02-241-3/+4
|
* Add stacking_relative_border_box_for_display_listManish Goregaokar2018-02-161-0/+13
|
* Add get_column_styles for getting column structure and styles for a tableManish Goregaokar2018-02-161-0/+6
|
* Simplify counter CSS propertiesAnthony Ramine2018-02-041-2/+2
|
* moved css longhand counter-reset out of makoJonas Reinwald2018-02-011-2/+2
|
* Merge layout and layout_testsAnthony Ramine2018-01-201-16/+22
|
* Introduce MaxRect traitPyfisch2018-01-171-2/+2
| | | | | It is implemented for LayoutRect and Rect<Au>. Replaces the max_rect() function from servo_geometry.
* Create own file for background calculations in layoutPyfisch2018-01-061-1/+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
* style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented.Emilio Cobos Álvarez2018-01-041-0/+4
| | | | | Replace them instead by a computed value flag, the same way as the IS_IN_DISPLAY_NONE_SUBTREE flag works.
* pretty print treetigercosmos2017-12-231-5/+8
|
* style: Move text-align outside of the mako file.Nazım Can Altınova2017-12-181-1/+1
|
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-56/+57
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-22/+26
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Replace old transform code with new generic codeManish Goregaokar2017-11-021-1/+1
|
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-44/+45
|
* Wait as late as possible to assign ClipIdsMartin Robinson2017-10-241-10/+8
| | | | | | | | | This will allow Servo to create ClipScrollNodes later during display list construction, which will be necessary once rounded rectangles are removed from the LocalClip structure. Instead of keeping track of the ClipId of each ClipScrollNode, we keep track of its index in an array of ClipScrollNodes. This will allow us to access them without a hash lookup.
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-45/+44
| | | | | | 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-44/+45
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.Simon Sapin2017-10-141-3/+11
|
* Use pointer casts instead of tramsutes to raw::TraitObjectSimon Sapin2017-10-131-14/+10
| | | | | | 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 "raw"Simon Sapin2017-10-131-4/+4
|
* Remove usage of unstable feature conservative_impl_trait in layoutSimon Sapin2017-10-131-2/+2
|