servo/components/layout
bors-servo 03450ee8e1 Auto merge of #17556 - jyc:inline-metrics-of-block, r=emilio
layout: Clean up inline_metrics_of_block a little.

Previously the variable names were a little confusing (ascent was used
for the space_above_baseline in one branch and the and ascent field in
another branch, and was not really the ascent in one). Also add a
small diagram.

<!-- Please describe your changes on the following 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they just refactor existing code

<!-- 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/17556)
<!-- Reviewable:end -->
2017-07-05 17:35:49 -07:00
..
animation.rs style: Avoid some cfg checks in context.rs 2017-05-29 23:24:06 +02:00
block.rs Make computed types hold Percentage instead of bare CSSFloat 2017-06-15 16:59:03 +02:00
Cargo.toml Update flags for absolutely positioned elements on style changes 2017-06-30 22:14:28 -07:00
construct.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
context.rs Implemented the plumbing for paint worklets. 2017-06-07 13:49:30 -05:00
data.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
display_list_builder.rs stylo: Implement -moz-prefixed radial gradients 2017-06-30 17:54:01 -07:00
flex.rs Rename LengthOrPercentageOrAutoOrContent to FlexBasis 2017-06-17 13:46:35 +02:00
floats.rs Untry 2017-06-18 13:21:51 +02:00
flow.rs Update flags for absolutely positioned elements on style changes 2017-06-30 22:14:28 -07:00
flow_list.rs Untry 2017-06-18 13:21:51 +02:00
flow_ref.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
fragment.rs layout: Clean up inline_metrics_of_block a little. 2017-07-05 11:13:09 -07:00
generated_content.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
incremental.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
inline.rs Replace remaining usage of deprecated Range::step_by 2017-07-05 13:54:40 +02:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs Replace remaining usage of deprecated Range::step_by 2017-07-05 13:54:40 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
model.rs Make computed types hold Percentage instead of bare CSSFloat 2017-06-15 16:59:03 +02:00
multicol.rs Make BaseFlow::stacking_relative_position a vector. 2017-06-14 16:01:01 +02:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Reduce allocations during parallel layout 2017-06-06 12:34:36 -07:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Make BaseFlow::stacking_relative_position a vector. 2017-06-14 16:01:01 +02:00
sequential.rs Make BaseFlow::stacking_relative_position a vector. 2017-06-14 16:01:01 +02:00
table.rs Make computed types hold Percentage instead of bare CSSFloat 2017-06-15 16:59:03 +02:00
table_caption.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_cell.rs Add separate computed Color value. 2017-06-08 12:59:26 +10:00
table_colgroup.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_row.rs Make computed types hold Percentage instead of bare CSSFloat 2017-06-15 16:59:03 +02:00
table_rowgroup.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_wrapper.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
text.rs Use BorderSideWidth for outline-width 2017-06-02 10:53:27 +02:00
traversal.rs Eliminate ScrollRootId 2017-04-20 08:51:38 +02:00
webrender_helpers.rs Use the Separator trait for the filter property 2017-06-27 23:40:16 +02:00
wrapper.rs style: Inline RestyleData. 2017-06-16 03:36:18 +02:00