aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/sizing.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-1/+2
| | | | | * 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>
* Resolve cyclic margin and padding percentages against zero (#30085)Oriol Brufau2023-08-101-38/+13
| | | | | | | From https://drafts.csswg.org/css-sizing-3/#min-percentage-contribution > For the min size properties, as well as for margins and paddings > (and gutters), a cyclic percentage is resolved against zero > for determining intrinsic size contributions.
* Handle floats in BlockContainer::inline_content_sizesOriol Brufau2023-06-191-1/+8
| | | | | | Typically, block-level contents are stacked vertically, so this was just taking the maximum size among all contents. However, floats can be stacked horizontally, so we need to sum their sizes.
* Parallelize `BlockContainer::inline_content_sizes`Simon Sapin2020-06-191-3/+5
|
* Compute content sizes lazily in layout 2020Anthony Ramine2020-06-181-58/+3
|
* Make outer_inline and outer_inline_and_percentages free functionsAnthony Ramine2020-06-151-84/+83
| | | | They now take a closure that will compute the content sizes on demand.
* Use the writing mode of the containing block when accessing CSS propertiesSimon Sapin2020-06-101-8/+15
| | | | | | | | … and converting them to flow-relative geometric values. These values are almost always used to size and position a fragment within its containing block, so using the mode of the containing block seems more correct. Note that the `writing-mode` and `direction` properties are disabled in Servo at the moment, so this PR by itself should have no effect: the writing mode of an element is always the same of that of its containing block since they’re both horizontal rtl.
* Less cloningSimon Sapin2020-04-011-6/+5
|
* Implement the `box-sizing` propertySimon Sapin2020-03-311-38/+53
|
* Dump box tree state into json files and display it on layout 2020 viewerFernando Jiménez Moreno2020-02-211-2/+2
|
* layout_2020: Avoid decomposing mixed length / percentages in intrinsic sizing.Emilio Cobos Álvarez2020-02-121-2/+6
| | | | As that makes no sense in presence of min / max.
* style: Miscellaneous Servo build fixes.Emilio Cobos Álvarez2020-02-121-2/+2
|
* layout-2020: build fixes.Emilio Cobos Álvarez2019-12-161-5/+5
|
* Account for min/max-width in outer intrinsic sizingSimon Sapin2019-12-101-6/+26
|
* Use a new `BoxContentSizes` enum instead of `Option<ContentSizes>`Simon Sapin2019-12-041-61/+71
|
* Replace boolean parameters by a new `ContentSizesRequest` enumSimon Sapin2019-12-041-0/+31
|
* Use `Sides::inline_sum` methodSimon Sapin2019-12-041-4/+3
|
* Fix incorrect variable nameSimon Sapin2019-12-041-2/+2
| | | | This was not the specified value
* Implement shrink-to-fit for absposSimon Sapin2019-12-031-4/+18
|
* Finish plumbing intrinsic min/max-content through box constructionSimon Sapin2019-12-031-1/+4
|
* Add content sizes computation for block containersSimon Sapin2019-12-031-2/+17
|
* Rename IntrinsicSizes to ContentSizesSimon Sapin2019-12-031-0/+80