aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/floats.rs
Commit message (Collapse)AuthorAgeFilesLines
* Lint layout_2013 with clippy (#31221)Oriol Brufau2024-01-301-26/+24
| | | | | | | | | * Lint layout_2013 with clippy CARGO_BUILD_RUSTC=rustc cargo clippy --fix -p layout_2013 --broken-code * ./mach fmt * Cosmetic adjustments
* Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578)Delan Azabani2023-10-181-1/+3
|
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-5/+7
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+2
| | | | | | | | | | | * 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>
* Update nightly rustc.Josh Matthews2021-11-011-2/+2
|
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-3/+3
| | | | | | | | | | | | | 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-4/+4
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-01-081-3/+2
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-3/+3
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-8/+13
| | | | | | 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-4/+4
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-3/+5
|
* `cargo fix --edition`Simon Sapin2018-11-061-3/+3
|
* Rustfmt layout cratePyfisch2018-09-011-119/+163
|
* Use specific negative assertion for layout floatsCYBAI2018-01-261-2/+2
|
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-4/+4
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-8/+8
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-3/+3
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-3/+3
| | | | | | 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-3/+3
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* order derivable traits listsClément DAVID2017-08-231-3/+3
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* UntrySimon Sapin2017-06-181-2/+2
|
* Make computed types hold Percentage instead of bare CSSFloatAnthony Ramine2017-06-151-1/+1
|
* Update app_units to 0.4.1Manish Goregaokar2017-05-191-7/+6
|
* Migrated -Z trace-layout to serde_jsonShing Lyu2016-11-071-1/+1
|
* layout: Take margins in the inline direction into account whenPatrick Walton2016-05-101-12/+10
| | | | | | | | guessing the inline-size of block formatting contexts. Fixes the layout on reddit.com. Partially addresses #10571.
* layout: When printing out debug info for the float list, includePatrick Walton2016-05-041-1/+5
| | | | information about each float.
* layout: Speculate that the inline sizes of floats with percentagePatrick Walton2016-05-041-6/+23
| | | | | | inline sizes are nonzero. This is a bit of a hack.
* layout: Reset the speculated inline size of floats out to compensate forPatrick Walton2016-04-281-9/+14
| | | | | | margins for all blocks, not just block formatting contexts. Partial fix for Reddit /r/rust.
* layout: Disallow margins from collapsing through blocks with clearancePatrick Walton2016-04-141-0/+4
| | | | | | per CSS 2.1 § 8.3.1. Fixes the test failure in #10458.
* layout: Only take nonnegative margins into account when estimatingPatrick Walton2016-03-281-14/+18
| | | | | | | | | | inline placement of floats. Otherwise, the heuristics can pass even when there are no floats, causing block formatting contexts to be speculated to be flowing around floats that don't exist! Closes #10237.
* layout: Rewrite the block formatting context/float inline-sizePatrick Walton2016-03-251-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | speculation code. The old code tried to do the speculation as a single bottom-up pass after intrinsic inline-size calculation, which was unable to handle cases like this: <div> <div style="float: left">Foo</div> </div> <div> <div style="overflow: hidden">Bar</div> </div> No single bottom-up pass could possibly handle this case, because the inline-size of the float flowing out of the "Foo" block could never make it down to the "Bar" block, where it is needed for speculation. On the pages I tried, this regresses layout performance by 1%-2%. I first noticed this breaking some pages, like the Google SERPs, several months ago.
* layout: Allow floats to have negative ceilings due to negative margins.Patrick Walton2016-03-251-12/+15
| | | | | | This fixes `margin-collapse-104.htm`, which is currently accidentally passing due to lack of #10085. When that PR lands, then that will become a representative test case.
* Move util::persistent_list to layoutTim van der Meij2016-02-201-1/+1
|
* Move util::logical_geometry to styleAnthony Ramine2016-02-181-2/+1
|
* Remove dead code from layout.Ms2ger2015-11-181-4/+0
|
* Split Au type into separate crate, with minimal dependencies.Glenn Watson2015-10-011-1/+1
|
* sort all usesJohann Tuffe2015-08-201-4/+4
|
* Positioning fixes for RTL floatsMatt Brubeck2015-05-181-3/+3
|
* Auto merge of #5480 - SimonSapin:multicol, r=pcwaltonbors-servo2015-04-281-4/+4
|\ | | | | | | | | | | | | | | This add some properties to the style system and a new flow type, but the larger issues of dealing with fragmentation in the flow tree is still an open question. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5480) <!-- Reviewable:end -->
| * Refactor flow construction to make `float` less of a special case.Simon Sapin2015-04-291-4/+4
| |
* | Implement Clone for Copy types.Ms2ger2015-04-281-1/+1
|/
* layout: During inline layout, make `place_between_floats` use the samePatrick Walton2015-04-091-3/+5
| | | | | | line height computation logic as final block size assignment. Improves Wikipedia.
* Use usize for Floats::len.Ms2ger2015-03-291-1/+1
|
* Get rid of servo_utilDan Fox2015-03-051-4/+4
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-5/+5
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-16/+16
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-5/+6
|
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-19/+19
|