servo/components/layout
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
..
display_list Auto merge of #20752 - pyfisch:backgrounds42, r=emilio 2018-05-19 11:02:01 -04:00
tests Merge layout and layout_tests 2018-01-20 15:33:39 +01:00
animation.rs style: Fix servo build. 2018-05-05 17:19:06 +02:00
block.rs Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
Cargo.toml Update Webrender 2018-04-25 10:25:21 +02:00
construct.rs Fix Servo build. 2018-05-19 10:15:17 +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 style: Add support for 'flex-basis:content' in the style system. 2018-04-02 03:17:56 +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 Pass Rect<Au> by value and not by reference 2018-05-05 22:16:23 +02: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 Pass Rect<Au> by value and not by reference 2018-05-05 22:16:23 +02:00
layout_debug.rs Use specific assertion for layout layout_debug 2018-01-26 01:01:01 +08:00
lib.rs Share line breaking state across text runs 2018-01-24 12:51:33 +05:30
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 Move DL items from gfx to layout 2018-04-22 13:13:45 +02:00
sequential.rs Use typed transforms in stacking contexts 2018-02-24 10:36:10 +01:00
table.rs Support rowspan=0; always fixup overflowing rowspans beforehand 2018-02-28 17:37:59 -08: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 Don't panic on cells with both a rowspan and colspan in include_sizes_from_previous_rows 2018-03-01 15:38:29 -08:00
table_rowgroup.rs Assign table row block sizes in the parent table or rowgroup 2018-02-26 17:08:43 -08:00
table_wrapper.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
text.rs Don't perform font matching for control characters 2018-05-19 14:33:38 +10: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