aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_row.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-13/+7
| | | | | | | | | | | | | 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-20/+18
|
* Remove BlockFlowDisplayListBuildingAnthony Ramine2019-01-141-2/+3
| | | | Replaced by inherent methods on BlockFlow, the only implementor of that trait.
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-7/+7
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-14/+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-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-4/+4
|
* Reorder importsPyfisch2018-11-061-1/+3
|
* Sort `use` statementsSimon Sapin2018-11-061-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-13/+13
|
* 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-267/+375
|
* layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-2/+2
|
* Don't panic on cells with both a rowspan and colspan in ↵Manish Goregaokar2018-03-011-1/+10
| | | | | | include_sizes_from_previous_rows fixes #20162
* Support rowspan=0; always fixup overflowing rowspans beforehandManish Goregaokar2018-02-281-37/+57
| | | | | | | | | | This makes rowspan=0 work by storing notes on which group of rows we're in for tables containing both rowgroups and rows, and using that to respan cells with overlarge or zero rowspans. This also gets rid of the largest_leftover_incoming_size business, because now spans will always be correct and we'll never have any left over.
* Unconditionally layout rows when laying out tablesManish Goregaokar2018-02-271-4/+1
| | | | If the reflow flag is set on a row it will be on the table anyway
* Assert that cells aren't floatsManish Goregaokar2018-02-271-5/+4
|
* Handle overlarge rowspans by keeping track of largest leftover incoming sizesManish Goregaokar2018-02-261-11/+24
|
* Don't crash on overflowing rowsManish Goregaokar2018-02-261-7/+14
|
* Use computed border spacings when handling rowspansManish Goregaokar2018-02-261-7/+20
|
* Compute border spacing info beforehandManish Goregaokar2018-02-261-4/+6
|
* Always call compute_block_size_table_row_baseManish Goregaokar2018-02-261-64/+63
|
* Preserve information on incoming row sizesManish Goregaokar2018-02-261-8/+31
|
* Hacky rowspan supportManish Goregaokar2018-02-261-10/+25
|
* Assign table row block sizes in the parent table or rowgroupManish Goregaokar2018-02-261-46/+42
|
* Unconditionally remove repaint damage for table cells/rows/rgsManish Goregaokar2018-02-161-0/+4
|
* Generate display lists for table cells during display list generation for ↵Manish Goregaokar2018-02-161-14/+4
| | | | their table parent
* Create own file for background calculations in layoutPyfisch2018-01-061-3/+3
| | | | | | | | | | 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-4/+4
|
* Remove border_collapse field in InternalTableKeith Yeung2017-12-081-3/+1
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-16/+18
| | | | 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.
* Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.Simon Sapin2017-10-141-0/+4
|
* Auto merge of #18506 - mrobinson:position-sticky-table, r=emiliobors-servo2017-09-181-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues with the combination of position:sticky and tables <!-- 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 #18441 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/18506) <!-- Reviewable:end -->
| * Fix panic when tables having position:stickyMartin Robinson2017-09-151-2/+3
| | | | | | | | | | We no longer do any stacking context or clip node creation for table wrappers, instead relying on their TableFlows to do this.
* | style: Make border-spacing serialization consistent, and move it to ↵Emilio Cobos Álvarez2017-09-171-9/+6
|/ | | | precomputed_type.
* Auto merge of #18462 - mrobinson:cleanup-building-state, r=emiliobors-servo2017-09-151-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+2
| | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | | Replace Au with CSSPixelLength in LengthOrPercentage, LengthOrPercentageOrAuto, and LengthOrPercentageOrNone.
* | Introduce CSSPixelLength and update NonNegativeLength.Boris Chiou2017-09-131-11/+11
|/ | | | | | | | | | | 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>)
* Add support for position:stickyMartin Robinson2017-09-051-2/+3
| | | | | | | | This leverages the position:sticky support in WebRender to bring basic support for position:sticky in Servo. There are still some issues with nested sticky flows as well as a few other corner cases. Tests are imported from WPT and can be removed once we update to the latest version.
* order derivable traits listsClément DAVID2017-08-231-4/+4
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Improve containing block creation for position:absolute flowsMartin Robinson2017-08-171-0/+8
| | | | | | | | | | 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-2/+2
|
* Bug 1374233 - Part 5: Use NonNegativeLength and NonNegativeAu for ↵Boris Chiou2017-08-041-7/+7
| | | | | | | | | | border-spacing. We already have NonNegativeLength and NonNegativeAu, so we can re-use it to define the specified value and the computed value of border-spacing. And then implement ToAnimatedValue for it. MozReview-Commit-ID: CLckpKMYVXU
* Bug 1374233 - Part 2: Add NonNegativeAu.Boris Chiou2017-08-041-4/+4
| | | | | | | | | | | Add values::computed::NonNegativeAu, so BorderSideWith could be computed to this non-negative Au, for the following properties: 1. outline-width 2. border-{*}-width 3. column-rule-width 4. -webkit-text-stroke-width MozReview-Commit-ID: ASHaB2F7VtM