servo/components/layout
bors-servo 54b387ab59
Auto merge of #21348 - pyfisch:only-webrender-items, r=jdm
Replace Servo DL items with WR ones

The Servo internal display list items are already pretty much
equivalent to the WebRender ones. Except that Servo items contain
base information and associated glyphs and gradient stops which are
stored implicitly in WebRender. Remove the display items for
rectangles, text, images, border, gradients and box shadow and
replace them with their WebRender counter parts.

Some more internal items like line, text shadow and iframe can definitively be replaced with WebRender equivalents but I think the PR is already quite huge. If WebRender would expose a quite minimal API which allowed servo to directly push items onto the display list most of webrender_helpers boilerplate code could go away. As WebRender performs normalization of gradients this would need to be called by servo explicitly in this case.

It should be noted that gradient borders don't actually work neither with the old version nor with this PR as the measurements are all set to zero.

Part of #19676

<!-- 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/21348)
<!-- Reviewable:end -->
2018-08-23 19:37:41 -04:00
..
display_list Do not emit DL items for zero images 2018-08-16 12:41:37 +02:00
tests Allow inline elements to create reference frames 2018-06-25 07:35:10 +10:00
animation.rs Fix Servo build. 2018-08-08 01:34:35 +02:00
block.rs Auto merge of #19184 - bobthekingofegypt:fix/18706-abs-image-with-padding, r=mbrubeck 2018-07-13 20:18:27 -04:00
Cargo.toml Fix Servo build. 2018-08-08 01:34:35 +02:00
construct.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
context.rs Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
data.rs Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
flex.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
floats.rs Use specific negative assertion for layout floats 2018-01-26 01:55:24 +08:00
flow.rs Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
flow_list.rs Remove usage of unstable feature conservative_impl_trait in layout 2017-10-13 11:11:06 +02:00
flow_ref.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fragment.rs Auto merge of #20892 - gw3583:update-wr, r=mbrubeck 2018-06-26 17:27:31 -04:00
generated_content.rs Fix Servo build. 2018-05-19 10:15:17 +02:00
incremental.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
inline.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
layout_debug.rs Use specific assertion for layout layout_debug 2018-01-26 01:01:01 +08:00
lib.rs Fix Servo build. 2018-08-08 01:34:35 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Allow floats to impact list item marker position 2018-01-24 12:26:32 +01:00
model.rs Fix some "unnecessary parentheses" warnings 2018-01-22 17:41:25 +01:00
multicol.rs Fix servo build. 2018-04-28 10:26:47 +02:00
opaque_node.rs Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
parallel.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
persistent_list.rs Use try syntax for Option where appropriate 2017-10-20 08:25:35 -07:00
query.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
sequential.rs Update euclid to 0.18 2018-07-18 09:27:24 +02:00
table.rs Revert "Fix the build for NLL" 2018-08-07 20:24:55 -04:00
table_caption.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_cell.rs Assign table row block sizes in the parent table or rowgroup 2018-02-26 17:08:43 -08:00
table_colgroup.rs Add get_column_styles for getting column structure and styles for a table 2018-02-16 16:01:41 -08:00
table_row.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
table_rowgroup.rs Auto merge of #20892 - gw3583:update-wr, r=mbrubeck 2018-06-26 17:27:31 -04:00
table_wrapper.rs New reference frames should create containing blocks 2018-06-25 07:35:19 +10:00
text.rs layout: script: Fix build. 2018-06-23 20:34:10 +02:00
traversal.rs style: Indent properly a couple more functions. 2018-02-24 23:23:16 +01:00
wrapper.rs Fix Servo build. 2018-05-19 10:15:17 +02:00