aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
Commit message (Collapse)AuthorAgeFilesLines
* tmpJosh Matthews2018-08-231-2/+2
|
* Auto merge of #21357 - emilio:gecko-sync, r=emiliobors-servo2018-08-073-4/+6
|\ | | | | | | | | | | | | | | | | | | | | style: Sync changes from mozilla-central. See each individual commit. <!-- 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/21357) <!-- Reviewable:end -->
| * Fix Servo build.Emilio Cobos Álvarez2018-08-083-4/+6
| |
* | Revert "Fix the build for NLL"Josh Matthews2018-08-071-5/+5
|/ | | | This reverts commit d1733aa5029c5b97390a236d94eed916ddb64577.
* Fix the build for NLLSimon Sapin2018-08-081-5/+5
| | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
* WR updatePaul Rouget2018-08-061-2/+2
|
* Fix build errors after rebaseFernando Jiménez Moreno2018-07-301-1/+1
|
* Update parking_lot to 0.6Bastien Orivel2018-07-201-1/+1
|
* Update euclid to 0.18Bastien Orivel2018-07-183-3/+3
|
* Updates for WR gradient API change.Glenn Watson2018-07-161-20/+41
|
* Auto merge of #19184 - bobthekingofegypt:fix/18706-abs-image-with-padding, ↵bors-servo2018-07-131-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=mbrubeck fix block size for absolute replaced element Absolutely replaced elements with padding were incorrectly setting their block size to include twice the padding values. This attempts to stop that extra padding for replaced elements but leave the working flow for non replaced elements <!-- 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 #18706 (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/19184) <!-- Reviewable:end -->
| * fix linelength warningBob2017-11-221-1/+2
| |
| * move padding adjustments to inside is_replaced conditionBob2017-11-221-6/+2
| |
| * fix block size for absolute replaced elementBob2017-11-221-1/+6
| | | | | | | | | | | | | | Absolutely replaced elements with padding were incorrectly setting their block size to include twice the padding values. This attempts to stop that extra padding for replaced elements but leave the working flow for non replaced elements
* | Fix servo build.Emilio Cobos Álvarez2018-07-011-9/+2
| |
* | Auto merge of #20892 - gw3583:update-wr, r=mbrubeckbors-servo2018-06-267-55/+114
|\ \ | | | | | | | | | | | | | | | | | | | | | Update WR (transaction API 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/20892) <!-- Reviewable:end -->
| * | Give stacking contexts the right reference frame idMartin Robinson2018-06-251-0/+5
| | | | | | | | | | | | | | | Stacking contexts that create reference frames should be created with the positioning node set to the reference frames that surround them.
| * | New reference frames should create containing blocksMartin Robinson2018-06-253-6/+16
| | | | | | | | | | | | | | | | | | | | | Transforms should always create containing blocks. This bug already existed in Servo, but was covered up by the reference frame id replacement feature in WebRender. Now that we create reference frames manually we need to fix it.
| * | Allow inline elements to create reference framesMartin Robinson2018-06-253-19/+67
| | | | | | | | | | | | | | | This is important so that transforms applied to elements actually apply to the display items created for those elements.
| * | Changes for separate reference frame PR (#2756)Martin Robinson2018-06-201-11/+21
| | |
| * | Update WR (transaction API change)Glenn Watson2018-06-203-21/+7
| | |
* | | layout: script: Fix build.Emilio Cobos Álvarez2018-06-2311-38/+38
|/ /
* | Fix Servo build.Emilio Cobos Álvarez2018-06-182-7/+18
| |
* | Update dependencies to use new_debug_unrechableMatt Brubeck2018-06-062-3/+3
| | | | | | | | Because reem/rust-debug-unreachable#6 makes `debug_unreachable` enable debug checks even in release builds since Rust 1.0.
* | Use reference frames explicitly for fixed positioningMartin Robinson2018-06-044-50/+160
| | | | | | | | | | | | Now that WebRender gives us reference frame ClipIds, we can use those to implement fixed positioning in Servo. This will allow us to remove the feature from WebRender entirely.
* | Auto merge of #20868 - tigercosmos:gg1, r=emiliobors-servo2018-05-281-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix logic in overflow_direction, also add a FIXME <!-- Please describe your changes on the following line: --> This PR fix #19477, which the logic is obviously wrong. However, it is impossible to add a test for this. Due to #20867, the ` overflow_direction` is a hard code now. It never go to other conditions. I add a FIXME there, and also add a SPEC link. --- <!-- 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 #19477(github issue number if applicable). <!-- Either: --> - [ ] 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/20868) <!-- Reviewable:end -->
| * | fix logic in overflow_direction, also add a FIXMEtigercosmos2018-05-261-1/+3
| | |
* | | Fix Servo build.Emilio Cobos Álvarez2018-05-283-14/+16
|/ /
* | Auto merge of #20752 - pyfisch:backgrounds42, r=emiliobors-servo2018-05-194-191/+175
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix crash in DL building Fix one crash and some style changes. This HTML crashed servo before. Key parts are `background-clip: content-box` and `direction: rtl` ```html <!DOCTYPE html> <html> <style> #span1 { background-clip: content-box; } #span2 { direction: rtl; } </style> <span id="span1">Filler Text <span id="span2">txeT relliF</span></span> </html> ``` Should I add this as a test? And where do I put this "does-it-crash?" test? I find always passing rectangles by value a lot easier as it avoids many references and dereferences and I assume that the compiler will always use the faster one either way. If you don't like the change feel free to only merge the first commit. <!-- 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/20752) <!-- Reviewable:end -->
| * | Rustfmt components/layout/display_list/Pyfisch2018-05-052-43/+44
| | |
| * | Pass Rect<Au> by value and not by referencePyfisch2018-05-054-123/+120
| | | | | | | | | | | | | | | | | | | | | Style change in display_list/builder.rs to reduce the number of & and * found in the code. Rect<Au> are basically 4 integers so there is no need to pass by reference.
| * | Fix crash in background buildingPyfisch2018-05-051-27/+13
| | | | | | | | | | | | | | | | | | | | | Always use border_padding and writing_mode from the same fragment. Mixing them will trigger a debug assertion if the writing modes are different. Cleanup and use compute_background_clip
* | | Auto merge of #20506 - jonleighton:font-fallback, r=emilio,mbrubeckbors-servo2018-05-191-52/+54
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Font fallback This implements more complete support for font fallback, see #17267. r? @glennw @mbrubeck <!-- 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/20506) <!-- Reviewable:end -->
| * | | Don't perform font matching for control charactersJon Leighton2018-05-191-52/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can encounter control characters here, for example when processing a <pre> element which contains newlines. Control characters are inherently non-printing, therefore if we try to call find_by_codepoint for these characters we will end up triggering an unnecessary font fallback search.
* | | | Fix Servo build.Emilio Cobos Álvarez2018-05-195-11/+17
|/ / /
* | | style: Fix servo build.Emilio Cobos Álvarez2018-05-052-11/+11
| | |
* | | Update to gleam 0.5Anthony Ramine2018-05-053-21/+19
|/ /
* | Correct edge case for background color clipPyfisch2018-05-031-4/+7
| | | | | | | | | | | | | | | | Use the color clip corresponding to the last background-image instead of the last background-clip. (There may be more clips than images and clips are repeated if there are less clips than images.) Add a test.
* | Implement border-image-outsetPyfisch2018-05-022-15/+47
| | | | | | | | | | | | | | | | Add an automatic test for border-image-outset with a gradient. Convert two tests from UTF-8 LE with CRLF line endings to UTF-8 with LF endings as the old files could not be viewed with servo. Closes #16638
* | 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 -->