servo/components/layout/display_list
bors-servo ea214e9bc3
Auto merge of #20752 - pyfisch:backgrounds42, r=emilio
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 -->
2018-05-19 11:02:01 -04:00
..
background.rs Auto merge of #20752 - pyfisch:backgrounds42, r=emilio 2018-05-19 11:02:01 -04:00
builder.rs Auto merge of #20752 - pyfisch:backgrounds42, r=emilio 2018-05-19 11:02:01 -04:00
conversions.rs Fix Servo build. 2018-05-19 10:15:17 +02:00
items.rs Update to gleam 0.5 2018-05-05 13:08:36 +02:00
mod.rs Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
webrender_helpers.rs Update to gleam 0.5 2018-05-05 13:08:36 +02:00