aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
Commit message (Collapse)AuthorAgeFilesLines
* layout: fix Servo build.Emilio Cobos Álvarez2019-05-071-49/+58
|
* layout: Fix servo build.Emilio Cobos Álvarez2019-03-131-0/+1
|
* ReformatSimon Sapin2019-02-261-1/+3
|
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-8/+10
| | | | | | | | | | | | | 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-5/+9
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-01-081-3/+2
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-9/+9
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-40/+31
| | | | | | 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-12/+12
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* Reorder importsPyfisch2018-11-061-11/+13
|
* Format remaining filesPyfisch2018-11-061-33/+41
|
* Sort `use` statementsSimon Sapin2018-11-061-10/+10
|
* `cargo fix --edition`Simon Sapin2018-11-061-15/+15
|
* Layout: Remove redundant deny unsafe and formatPyfisch2018-10-221-2/+0
| | | | | | Add license to two files. Bypass DisplayListBuilder for some items.
* Make layout use available image data before querying the image cache.Josh Matthews2018-10-121-5/+25
|
* Rustfmt and make tidy happyFernando Jiménez Moreno2018-10-081-1/+1
|
* Do not share entire FrameRenderer with layout, only current frameFernando Jiménez Moreno2018-10-081-16/+6
|
* layout: handle MediaFragmentInfoVíctor Manuel Jáquez Leal2018-10-081-2/+50
|
* Current-pixel-density tests passingpaavininanda2018-09-131-8/+27
|
* Rustfmt layout cratePyfisch2018-09-011-621/+805
|
* Auto merge of #20892 - gw3583:update-wr, r=mbrubeckbors-servo2018-06-261-1/+10
|\ | | | | | | | | | | | | | | 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 -->
| * Allow inline elements to create reference framesMartin Robinson2018-06-251-1/+10
| | | | | | | | | | This is important so that transforms applied to elements actually apply to the display items created for those elements.
* | layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-7/+7
|/
* Use reference frames explicitly for fixed positioningMartin Robinson2018-06-041-0/+6
| | | | | | 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.
* Pass Rect<Au> by value and not by referencePyfisch2018-05-051-1/+1
| | | | | | | 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.
* Auto merge of #20420 - pyfisch:corner-clipping, r=emiliobors-servo2018-04-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 -->
| * Move DL items from gfx to layoutPyfisch2018-04-221-1/+1
| | | | | | | | | | | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* | Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-1/+3
|/
* 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.
* Use typed transforms in stacking contextsPyfisch2018-02-241-23/+29
|
* Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeckbors-servo2018-02-211-0/+10
|\ | | | | | | | | | | | | | | | | | | | | Handle table cell backgrounds during display list generation for <table> Fixes #19788 <!-- 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/20034) <!-- Reviewable:end -->
| * Add get_column_styles for getting column structure and styles for a tableManish Goregaokar2018-02-161-0/+10
| |
* | Replace IntegerOrAuto with ZIndexAnthony Ramine2018-02-201-2/+2
|/ | | | It's its only use.
* Auto merge of #19970 - janczer:change_debug_assertions, r=emiliobors-servo2018-02-071-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change debug assertions to specific ones <!-- 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 #19962 (github issue number if applicable). <!-- 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/19970) <!-- Reviewable:end -->
| * Change debug assertions to specific onesjanczer2018-02-071-1/+1
| |
* | style: Move content property out of mako.Igor Gutorov2018-02-071-4/+4
|/
* do not preserve suppress flag on second half of splitManish Goregaokar2018-01-241-3/+10
|
* Share line breaking state across text runsManish Goregaokar2018-01-241-0/+23
| | | | Fixes #874
* layout: Remove type parameter from PseudoElementType.Emilio Cobos Álvarez2018-01-141-3/+3
| | | | Everyone uses () now.
* Auto merge of #19651 - pyfisch:background-placement, r=emiliobors-servo2018-01-021-71/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify background placement code Merges the implementations for background-image placement from gradients and images. Add missing parts and fix bugs. Now supported are the CSS properties: * background-attachment (except for local value, see #19650) * background-clip * background-origin * background-position-x/y * background-repeat * background-size It should be noted that backgrounds are not clipped to rounded border corners. (This was done before but worked only in simple cases) See: #19649 This solves the following issues: closes #19626 closes #16657 closes #19482 (examples from http://lea.verou.me/css3patterns/ are rendered perfectly but the round border is completely ignored now) closes #19577 - `./mach build -d` does not report any errors - `./mach test-tidy` does not report any errors I enabled a few tests with the first commit but I have written about a dozen manual tests I will try to turn into ref tests either before or after this patch lands. @bors-servo try The relationship between the different inputs is visualized in this flowchart: ![flowchart-background](https://user-images.githubusercontent.com/2781017/34394430-5a06c72c-eb59-11e7-9d51-3d23e2215f07.png) <!-- 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/19651) <!-- Reviewable:end -->
| * Unify background placement codePyfisch2017-12-281-71/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merges the implementations for background-image placement from gradients and images. Add missing parts and fix bugs. Now supported are the CSS properties: * background-attachment (except for local value) * background-clip * background-origin * background-position-x/y * background-repeat * background-size It should be noted that backgrounds are not clipped to rounded border corners.
* | pretty print treetigercosmos2017-12-231-4/+4
|/
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-4/+4
|
* style: Use the ? operator for OptionMatt Brubeck2017-12-091-16/+11
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-35/+45
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Implement Servo_ParseTransformIntoMatrix.Boris Chiou2017-11-281-3/+3
| | | | | | | | | | | | DOMMatrix needs to convert a specified transform list into a matrix, so we could rewrite to_transform_3d_matrix by generics for both specified and computed transform lists. Besides, we have to update the test case because we use Transform3D<f64> to compute the matrix, instead of Transform3D<f32>, so the result will be the same as that in Gecko. Using 0.3 may cause floating point issue because (0.3f32 as f64) is not equal to 0.3 (i.e. floating point precision issue), so using 0.25 instead.
* Replace old transform code with new generic codeManish Goregaokar2017-11-021-2/+2
|
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-60/+67
|