servo/components/layout
bors-servo 163f29ff63 Auto merge of #18243 - DominoTree:18224, r=stshine
[18224] Check if line_count is zero to calculate space around line

<!-- Please describe your changes on the following line: -->
Check line_count before attempting to calculate space around line

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because changes are minimal and the error was triggered by a test

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- 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/18243)
<!-- Reviewable:end -->
2017-08-26 17:07:28 -05:00
..
animation.rs stylo: Remove a lot of the restyle damage related complexity. 2017-08-20 13:59:46 +02:00
block.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
Cargo.toml Updated h5e and x5e 2017-08-18 19:51:17 +05:30
construct.rs Use the is_absolute_containing_block method everywhere 2017-08-16 13:32:48 +02:00
context.rs Speculatively evaluate paint functions during style. 2017-07-31 13:02:28 -05:00
data.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
display_list_builder.rs Allow overflow:scroll without a stacking context 2017-08-24 08:30:45 +02:00
flex.rs Auto merge of #18243 - DominoTree:18224, r=stshine 2017-08-26 17:07:28 -05:00
floats.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
flow.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
flow_list.rs Untry 2017-06-18 13:21:51 +02:00
flow_ref.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fragment.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
generated_content.rs Code organization: Move all generic traversal code to layout::traversal 2017-08-08 10:53:19 -07:00
incremental.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
inline.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
model.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
multicol.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs style: Only store applicable ::before / ::after pseudo styles during the traversal. 2017-08-25 08:46:22 +02:00
sequential.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
table.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
table_caption.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
table_cell.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
table_colgroup.rs Fix fixed position items with parents with CSS clips 2017-08-03 17:52:02 +02:00
table_row.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
table_rowgroup.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
table_wrapper.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
text.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
traversal.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
webrender_helpers.rs Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox" 2017-08-16 23:23:18 +02:00
wrapper.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00