servo/components
bors-servo f5a546a160 Auto merge of #12437 - gpoesia:tr_margin_fix, r=pcwalton
Handle row borders in border collapsing logic.

<!-- Please describe your changes on the following line: -->
Handle table row border when collapsing borders for a table row. The row border is combined with the cell's border using the already implemented conflict resolution logic.

This is a screenshot of the following test:

```html
<!doctype html>
<html><body>
    <style>
      table {
        border-collapse: collapse;
      }
      tr {
        border: 1px solid black;
      }
    </style>
    <table>
      <tr><td>Lorem</td><td>Ipsum</td><td>Sit</td><td>Dolor</td></tr>
      <tr><td>Lorem</td><td>Ipsum</td><td>Sit</td><td>Dolor</td></tr>
      <tr><td>Lorem</td><td>Ipsum</td><td>Sit</td><td>Dolor</td></tr>
      <tr><td>Lorem</td><td>Ipsum</td><td>Sit</td><td>Dolor</td></tr>
    </table>
  </body>
</html>
```

<img src="https://dl.dropboxusercontent.com/u/10962672/Screenshots%20Servo/servo_tr_border_collapse.png"/>

The top border is missing, but I think that's a different bug, since it also does not show up when the border is in the cells, and not the rows. Also, when debugging the border collapsing structures, they seem ok (the top border seems to be there). I can look at that bug in a separate issue (or in this one too if you prefer).

---
<!-- 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 #11527 (github issue number if applicable).

<!-- Either: -->
- [X] These changes do not require tests because I didn't find how to automatically test it (will be happy to provide a test if there's infrastructure for this kind of test already in place).

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Fixes #11527.

<!-- 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/12437)
<!-- Reviewable:end -->
2016-08-31 11:28:18 -05:00
..
canvas Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
canvas_traits Fix canvas image tests when using webrender. 2016-08-30 09:57:38 +10:00
compositing Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
constellation Do not define Pipeline::setup_common on Windows 2016-08-22 13:20:46 +03:00
devtools Added using real pipeline ID value 2016-08-27 15:27:31 +08:00
devtools_traits Console message packets should have a '_type' attribute 2016-08-31 15:01:34 +02:00
gfx Update string_cache to 0.2.26 2016-08-28 07:51:49 -07:00
gfx_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
layout Auto merge of #12437 - gpoesia:tr_margin_fix, r=pcwalton 2016-08-31 11:28:18 -05:00
layout_thread layout: Keep track of whether we've deferred the painting of the document due to 2016-08-30 17:01:03 -07:00
layout_traits Update to webrender 0.4.0 2016-08-18 19:33:12 +02:00
msg Update cssparser 2016-08-28 23:10:56 +02:00
net Auto merge of #13071 - wdv4758h:cors_preflight_fetch, r=jdm 2016-08-27 05:20:46 -05:00
net_traits Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00
plugins Update Rust to 1.13.0-nightly (499484f56 2016-08-18) 2016-08-20 17:29:49 +02:00
profile Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
profile_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
range Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
script Auto merge of #13100 - nox:better-getters, r=Ms2ger 2016-08-31 04:10:42 -05:00
script_layout_interface Update cssparser 2016-08-28 23:10:56 +02:00
script_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
servo Compile WebIDL return type "object" to NonZero<*mut JSObject> 2016-08-30 19:07:13 +02:00
style layout: Keep track of whether we've deferred the painting of the document due to 2016-08-30 17:01:03 -07:00
style_traits Update cssparser 2016-08-28 23:10:56 +02:00
util Remove static usage at compile-time of GIT_INFO to enable builds outside of a git repo 2016-08-27 06:31:28 -05:00
webdriver_server Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00