aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/multicol.rs
Commit message (Collapse)AuthorAgeFilesLines
* Enable min-content, max-content, fit-content and stretch (#33492)Oriol Brufau2024-09-201-9/+5
| | | | | | | | | For the sizing properties. We don't actually support them yet, just treating them as the initial value. Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Move non-gfx things out of `gfx_traits` and create a `base` crate (#32296)Martin Robinson2024-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | For a long time, `gfx_traits` has held a lot of things unrelated to graphics and also unrelated to the `gfx` crate (which is mostly about fonts). This is a cleanup which does a few things: 1. Move non `gfx` crate things out of `gfx_traits`. This is important in order to prevent dependency cycles with a different integration between layout, script, and fonts. 2. Rename the `msg` crate to `base`. It didn't really contain anything to do with messages and instead mostly holds ids, which are used across many different crates in Servo. This new crate will hold the *rare* data types that are widely used. Details: - All BackgroundHangMonitor-related things from base to a new `background_hang_monitor_api` crate. - Moved `TraversalDirection` to `script_traits` - Moved `Epoch`-related things from `gfx_traits` to `base`. - Moved `PrintTree` to base. This should be widely useful in Servo. - Moved `WebrenderApi` from `base` to `webrender_traits` and renamed it to `WebRenderFontApi`.
* Lint layout_2013 with clippy (#31221)Oriol Brufau2024-01-301-2/+2
| | | | | | | | | * Lint layout_2013 with clippy CARGO_BUILD_RUSTC=rustc cargo clippy --fix -p layout_2013 --broken-code * ./mach fmt * Cosmetic adjustments
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-1/+1
| | | | 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.
* Further changes required by ServoOriol Brufau2023-11-041-3/+7
|
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-10/+12
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+1
| | | | | | | | | | | * 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>
* Add trace logs when assigning inline/block sizesWu Yu Wei2022-04-171-0/+14
|
* Servo build fixes.Emilio Cobos Álvarez2019-12-161-4/+4
|
* 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.
* Remove unused code from gfx and layout cratesest312019-05-291-4/+0
|
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-121-4/+7
|
* layout: Fix servo build.Emilio Cobos Álvarez2019-03-131-2/+4
|
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-7/+5
| | | | | | | | | | | | | MozLength is not a very descriptive name. If we're going to use it in both Gecko and Servo we may as well name it something more accurate. I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence of box-sizing. I don't have better ideas than `Size`, given that. [1]: https://drafts.csswg.org/css2/visudet.html#propdef-width [2]: https://drafts.csswg.org/css2/box.html#content-width Differential Revision: https://phabricator.services.mozilla.com/D19280
* Fix servo build.Emilio Cobos Álvarez2019-02-101-7/+5
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-01-081-8/+6
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-5/+5
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-6/+17
| | | | | | This also fixes a bunch of calc handling issues and such. Also remove tests that no longer compile and are covered by WPT.
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-5/+5
|
* Reorder importsPyfisch2018-11-061-4/+4
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-9/+9
|
* Layout: Remove redundant deny unsafe and formatPyfisch2018-10-221-2/+0
| | | | | | Add license to two files. Bypass DisplayListBuilder for some items.
* Rustfmt layout cratePyfisch2018-09-011-33/+70
|
* Fix servo build.Emilio Cobos Álvarez2018-04-281-3/+3
|
* Add support for percentages in column-gap.Ramshell2018-04-051-2/+1
|
* [css-multicol] style: Implement percentages for 'column-gap'.Mats Palmgren2018-04-021-0/+1
| | | | | Bug: 1398537 Reviewed-by: emilio,dholbert
* Replace PositiveIntegerOrAuto by ColumnCountAnthony Ramine2018-02-221-2/+3
| | | | It was its only use.
* Use specific assertion for layout multicolCYBAI2018-01-261-1/+1
|
* 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
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-2/+2
|
* Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.Simon Sapin2017-10-141-0/+8
|
* stylo: Add keyword info to computed value of font-sizeManish Goregaokar2017-09-231-4/+4
|
* Auto merge of #18462 - mrobinson:cleanup-building-state, r=emiliobors-servo2017-09-151-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do some minor cleanups in display list building <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [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. --> <!-- 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/18462) <!-- Reviewable:end -->
| * Separate stacking context collection and display list building stateMartin Robinson2017-09-121-3/+3
| | | | | | | | | | | | | | These are two different passes during layout, but previously they shared a state object. While some of the members are the same, many are different so we separate them out into two separate objects. We also change the HashMaps of these state objects to use the FnvHashMap.
* | Use CSSPixelLength in LengthOrPercentage{*}.Boris Chiou2017-09-131-2/+2
| | | | | | | | | | Replace Au with CSSPixelLength in LengthOrPercentage, LengthOrPercentageOrAuto, and LengthOrPercentageOrNone.
* | Introduce CSSPixelLength and update NonNegativeLength.Boris Chiou2017-09-131-5/+6
|/ | | | | | | | | | | First, we define computed::CSSPixelLength which contains a CSSFloat, a pixel value, and then we replace computed::Length with CSSPixelLength. Therefore, the |ComputedValue| of NoCalcLength, AbsoluteLength, FontRelativeLength, ViewportPercentageLength, CharacterWidth, and PhysicalLength is CSSPixelLength. Besides, we drop NonNegativeAu, and replace computed::NonNegativeLength with NonNegative<computed::Length>. (i.e. NonNegative<CSSPixelLength>)
* Improve containing block creation for position:absolute flowsMartin Robinson2017-08-171-0/+16
| | | | | | | | | | Instead of only promoting flows with positioned fragments to containing blocks, also do this for flows which have the transform, perspective or filter properties set. This is what the spec requires and also fixes some failing tests. It will allow us to stop creating stacking contexts for overflow:hidden and overflow:scroll flows. Fixes #18091.
* Rename compute_absolute_position to compute_stacking_relative_positionMatt Brubeck2017-08-081-4/+4
|
* Bug 1374233 - Part 6: Add PositiveInteger and PositiveIntegerOrAuto for ↵Boris Chiou2017-08-041-2/+2
| | | | | | | | column-count. column-count should be a positive integer or auto. MozReview-Commit-ID: 9LFvrYo8De5
* Bug 1374233 - Part 4: Add NonNegativeLengthOr{Auto|Normal|Number}.Boris Chiou2017-08-041-2/+2
| | | | | | | | | | | Add NonNegativeLength, which could be computed to NonNegativeAu. So we can declare Either<NonNegativeLength, X>, X=Auto, Normal, or Number. NonNegativeLengthOrAuto is for column-width. NonNegativeLengthOrNormal is for column-gap. NonNegativeLengthOrNumber is for -moz-tab-size. MozReview-Commit-ID: AfU8XpA1um0
* Bug 1374233 - Part 3: Use NonNegativeAu as computed values for font-size ↵Boris Chiou2017-08-041-1/+1
| | | | | | | | related properties. For font-size and font-size-adjust. MozReview-Commit-ID: 5rrfVSzB7WF
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-3/+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).
* stylo: Use ComputedValuesInner instead of ComputedValues when we don't need itManish Goregaokar2017-07-171-3/+3
|
* Make BaseFlow::stacking_relative_position a vector.Nicolas Silva2017-06-141-3/+2
|
* Fix up script and layout.Bobby Holley2017-05-021-2/+3
|
* Switch column-count to use predefined integer typeXidorn Quan2017-03-171-2/+5
|