servo/tests/unit
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
..
deny_public_fields Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
malloc_size_of Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
metrics Fix unit tests 2018-08-06 22:40:04 +02:00
profile Implements profiler for blocked recv 2018-03-22 11:48:27 -07:00
script WR update 2018-08-06 07:22:24 +02:00
script_plugins Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
style Fix Servo build. 2018-08-08 01:34:35 +02:00