aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
Commit message (Collapse)AuthorAgeFilesLines
* Anonymous boxes that wrap inlines should not inherit overflow (#30579)Martin Robinson2023-10-191-14/+14
| | | | | | | | | | | | | | In legacy layout, anonymous text wrappers were inheriting the `overflow` and `text-overflow` properties. This results in the creation of extra clipping for these anonymous wrappers which could clip away floats. We will likely implement `text-overflow` differently in non-legacy layout. This change marks all legacy layout pseudo elements as "legacy" and also adds a new pseudo element for non-legacy layout that does not inherit `overflow`. Fixes #30562. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-38/+35
| | | | | * 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>
* Make Layout 2013 style a superset of Layout 2020 styleMartin Robinson2023-06-281-0/+10
| | | | | This is the first step toward removing the compile-time difference in style between Layout 2020 and Layout 2013.
* Clean up debug optionsMartin Robinson2023-05-011-1/+1
|
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-4/+10
|
* Add a 'dom lifetime to GetLayoutDataAnthony Ramine2020-03-261-17/+19
|
* style: Miscellaneous Servo build fixes.Emilio Cobos Álvarez2020-02-121-2/+6
|
* Make inline elements work in fullscreen modeFernando Jiménez Moreno2019-09-051-1/+3
|
* Fix Servo build and unify display representation.Emilio Cobos Álvarez2019-08-151-7/+10
|
* Revert change to render media controls breaking inline layoutFernando Jiménez Moreno2019-07-221-9/+3
|
* Only allow UA widgets as children of media elementsFernando Jiménez Moreno2019-07-221-3/+8
| | | | Do not allow pseudo-elements for replaced elements
* Media UI basic functionalityFernando Jiménez Moreno2019-07-221-2/+4
|
* Render media controlsFernando Jiménez Moreno2019-07-221-4/+10
|
* Remove ObjectElementAnthony Ramine2019-01-141-40/+19
|
* Remove ComputedValueUtilsAnthony Ramine2019-01-141-21/+14
|
* Remove FlowConstructionUtilsAnthony Ramine2019-01-141-17/+1
|
* Move is_image_data to the layout crateAnthony Ramine2019-01-091-1/+7
| | | | It's only used there.
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-6/+9
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-11/+21
|
* Format remaining filesPyfisch2018-11-061-2/+3
|
* Sort `use` statementsSimon Sapin2018-11-061-10/+10
|
* `cargo fix --edition`Simon Sapin2018-11-061-29/+29
|
* Layout: Remove redundant deny unsafe and formatPyfisch2018-10-221-2/+0
| | | | | | Add license to two files. Bypass DisplayListBuilder for some items.
* Revert import style formatFernando Jiménez Moreno2018-10-081-6/+4
|
* layout: instantiate SpecificFragmentInfo from node's media dataVíctor Manuel Jáquez Leal2018-10-081-5/+11
|
* Current-pixel-density tests passingpaavininanda2018-09-131-0/+3
|
* Rustfmt layout cratePyfisch2018-09-011-567/+824
|
* layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-3/+3
|
* Fix Servo build.Emilio Cobos Álvarez2018-05-281-2/+3
|
* Fix Servo build.Emilio Cobos Álvarez2018-05-191-1/+1
|
* 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
* | 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
* style: Move content property out of mako.Igor Gutorov2018-02-071-8/+7
|
* style: Make the TElement type arrive to the `cascade` function.Emilio Cobos Álvarez2018-01-231-103/+228
| | | | | | | | | | | | | | | | | Not super-proud of this one, but it's the easiest way I could think of. The changeset looks bigger than what it is, because while at it I've rewrapped a fair amount of functions around to use proper block indentation. Alternatives are parameterizing Stylist by <E>, which is not fun, or moving the concrete element from layout_thread to layout, but that implies layout depending on script, which isn't fun either. Other alternative is implementing an empty enum and making anon boxes work on it. It has the advantage of removing the annoying type parameter, but the disadvantage of instantiating `cascade` twice, which isn't great, and having to maintain all the boilerplate of a `TElement` implementation that just does nothing.
* Merge layout and layout_testsAnthony Ramine2018-01-201-8/+8
|
* layout: Add a FIXME for #19771.Emilio Cobos Álvarez2018-01-151-0/+3
|
* layout: Avoid doing stupid calls to Node::style.Emilio Cobos Álvarez2018-01-151-3/+3
|
* layout: Remove type parameter from PseudoElementType.Emilio Cobos Álvarez2018-01-141-12/+15
| | | | Everyone uses () now.
* style: Remove unused optional display from PseudoElementType definition.Emilio Cobos Álvarez2018-01-141-9/+1
| | | | Everyone passes None now.
* style: Remove -servo-display-for-hypothetical-box from longhandCYBAI2018-01-131-1/+1
|
* style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented.Emilio Cobos Álvarez2018-01-041-12/+6
| | | | | Replace them instead by a computed value flag, the same way as the IS_IN_DISPLAY_NONE_SUBTREE flag works.
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-16/+16
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-53/+59
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-33/+33
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-33/+33
| | | | | | 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-33/+33
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Remove usage of unstable box syntax, except in the script crateSimon Sapin2017-10-121-19/+24
| | | | | … because there’s a lot of it, and script still uses any other unstable features anyway.