aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
Commit message (Collapse)AuthorAgeFilesLines
...
* | Auto merge of #20420 - pyfisch:corner-clipping, r=emiliobors-servo2018-04-2915-203/+1282
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move DL items from gfx to layout and implement corner clipping Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, closes #19680, closes #19802 <!-- 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 - [x] These changes fix #__ (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/20420) <!-- Reviewable:end -->
| * | Place item clipping_and_scrolling inside closurePyfisch2018-04-252-98/+102
| | | | | | | | | | | | | | | A utility function assures that if the clipping and scrolling are changed for a display item the old value is later restored.
| * | Move DL items from gfx to layoutPyfisch2018-04-2215-129/+1204
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* | | style: Fix tidy issues and Servo build.Emilio Cobos Álvarez2018-04-291-4/+4
| | |
* | | Fix servo build.Emilio Cobos Álvarez2018-04-281-3/+3
| | |
* | | Update Webrender to last versionAnthony Ramine2018-04-261-1/+2
| | |
* | | Update WebrenderBastien Orivel2018-04-252-1/+2
| | | | | | | | | | | | Fixes #20609
* | | Add support for percentages in column-gap.Ramshell2018-04-051-2/+1
| | |
* | | Auto merge of #20482 - brainlessdeveloper:list-style-image-computed, r=emiliobors-servo2018-04-031-4/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a URL-generic type for ListStyleImage <!-- Please describe your changes on the following line: --> This should fix the following two "expected to fail" tests described in https://github.com/servo/servo/issues/18015: - getComputedStyle(elem) for url() listStyleImage uses the resolved URL and elem.style uses the original URL - getComputedStyle(elem) for url() listStyle uses the resolved URL and elem.style uses the original URL I updated the test failure expectations by removing the corresponding `.ini` file. --- <!-- 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 - [x] These changes fix #18015 (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/20482) <!-- Reviewable:end -->
| * | | Implement a URL-generic type for list-style-imageFausto Núñez Alberro2018-04-031-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should fix the following two "expected to fail" tests: - getComputedStyle(elem) for url() listStyleImage uses the resolved URL and elem.style uses the original URL - getComputedStyle(elem) for url() listStyle uses the resolved URL and elem.style uses the original URL
* | | | Auto merge of #20447 - Brody-Eastwood:master, r=jdmbors-servo2018-04-022-2/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NCSU Canvas Rendering Project Initial Steps <!-- Please describe your changes on the following line: --> Implements the initial steps from: https://github.com/servo/servo/wiki/Canvas-rendering-project --- <!-- 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: --> - [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/20447) <!-- Reviewable:end -->
| * | | Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-022-2/+5
| | | |
* | | | style: Add support for 'flex-basis:content' in the style system.Emilio Cobos Álvarez2018-04-021-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 1105111 Reviewed-by: xidorn MozReview-Commit-ID: 5WhgHJJ0mDB
* | | | [css-multicol] style: Implement percentages for 'column-gap'.Mats Palmgren2018-04-021-0/+1
|/ / / | | | | | | | | | | | | Bug: 1398537 Reviewed-by: emilio,dholbert
* / / Bump env_logger to 0.5 and log to 0.4 in every servo crateBastien Orivel2018-03-281-1/+1
|/ /
* | Auto merge of #20390 - jdm:android-layout-workaround, r=emiliobors-servo2018-03-221-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't OOM when laying out basic web pages on Android This is a workaround for the symptom described in https://github.com/servo/servo/issues/20149#issuecomment-375366991 which looks like either a standard library or compiler bug. My release android build can load all sorts of web pages as expected with this change. <!-- 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/20390) <!-- Reviewable:end -->
| * | Workaround #20149 - presumed rustc bug on android.Josh Matthews2018-03-221-3/+3
| | |
* | | Bump parking_lot to 0.5Bastien Orivel2018-03-211-1/+1
| | |
* | | Bump ipc-channel and bincodeBastien Orivel2018-03-211-1/+1
| | | | | | | | | | | | This required bumping uuid too which unfortunately duplicated rand.
* | | Update to handle WebRender API changesMartin Robinson2018-03-162-25/+28
|/ / | | | | | | Items now only take a clipping rectangle instead of a LocalClip.
* | Stop using LocalClip::RoundedRectMartin Robinson2018-03-062-120/+135
| | | | | | | | | | | | | | We would like to remove this functionality from WebRender, so convert its use to clip scroll nodes. This change also removes the redundant BlocBlockStackingContextType in favor of Option<StackingContextType>, which is just as expressive. This simplifies the code a bit.
* | Auto merge of #20171 - servo:content-item-counters, r=emiliobors-servo2018-03-021-6/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make ContentItem use a CustomIdent for counter names See https://github.com/w3c/csswg-drafts/pull/2377. <!-- 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/20171) <!-- Reviewable:end -->
| * | Make ContentItem use a CustomIdent for counter namesAnthony Ramine2018-03-021-6/+6
| | | | | | | | | | | | See https://github.com/w3c/csswg-drafts/pull/2377
* | | 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-282-61/+83
|/ / | | | | | | | | | | | | | | | | | | 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.
* | Auto merge of #20128 - Manishearth:rowspan, r=mbrubeckbors-servo2018-02-284-103/+233
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rowspan support for tables fixes #20092 This just contains the first steps. We apply a naive algorithm: Spanning cells apply a pressure equal to `block_size / rowspan` on each row they are in. We move table row block size computation into the tables, and make it two pass. In the first pass we compute the sizes of each row, and in the second pass we assign them, adding them up for any involved cells. This is missing: - [x] Accounting for border sizes - [x] Applying pressure to rows that are not the row containing the cell - [ ] Reducing pressure on future rows if the current row is able to accomodate more of the cell - [x] For tables containing both rows and rowgroups, reset the rowspan info when we hit a rowgroup - [x] Correctly handle overflowing rowspans cc @mbrubeck @pcwalton <!-- 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/20128) <!-- Reviewable:end -->
| * | Unconditionally layout rows when laying out tablesManish Goregaokar2018-02-272-16/+5
| | | | | | | | | | | | 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
| | |
| * | Merge fourth and fifth (assign block sizes / positions) passesManish Goregaokar2018-02-271-23/+14
| | |
| * | Remove outdated commentManish Goregaokar2018-02-261-7/+0
| | |
| * | Handle overlarge rowspans by keeping track of largest leftover incoming sizesManish Goregaokar2018-02-262-12/+35
| | |
| * | 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-262-13/+53
| | |
| * | Always call compute_block_size_table_row_baseManish Goregaokar2018-02-261-64/+63
| | |
| * | Preserve information on incoming row sizesManish Goregaokar2018-02-262-10/+33
| | |
| * | Hacky rowspan supportManish Goregaokar2018-02-262-11/+50
| | |
| * | Assign table row block sizes in the parent table or rowgroupManish Goregaokar2018-02-264-52/+66
| | |
* | | Bump euclid to 0.17Bastien Orivel2018-02-281-1/+1
| | |
* | | Auto merge of #20058 - Eijebong:rayon1.0, r=jdmbors-servo2018-02-271-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump rayon to 1.0 <!-- 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/20058) <!-- Reviewable:end -->
| * | | Bump rayon to 1.0Bastien Orivel2018-02-241-1/+1
| | | |
* | | | Replace LengthOrNone by a specific type for the perspective propertyAnthony Ramine2018-02-261-5/+4
| |/ / |/| | | | | | | | | | | This was its only use, and it was bugged: AFAIK this didn't properly clamp animated values below 0.
* | | style: Indent properly a couple more functions.Emilio Cobos Álvarez2018-02-241-7/+12
| | |
* | | Rebase and fix innerTextPyfisch2018-02-242-27/+12
| | |
* | | Remove image_data from tests.Pyfisch2018-02-241-15/+11
| | | | | | | | | | | | Store multiple indexable text items for a node.
* | | Move calculation functions out of builder.rsPyfisch2018-02-242-315/+339
| | |
* | | Remove now unnecessary fix_gradient_stops functionPyfisch2018-02-241-48/+3
| | | | | | | | | | | | Webrender solved the issue with servo/webrender#1189.
* | | Introduce a dedicated data structure for text queriesPyfisch2018-02-243-9/+62
| | | | | | | | | | | | | | | | | | Add an IndexableText structure for text queries. Instead of linear search for a node this now uses a HashMap. Remove the now irrelevant fields from TextDisplayItem.
* | | Remove image_data field from display itemPyfisch2018-02-241-3/+0
| | | | | | | | | | | | It was unused.
* | | Use typed transforms in stacking contextsPyfisch2018-02-245-47/+45
| | |