servo/components/layout
bors-servo edd6c2cecb Auto merge of #16779 - behnam:bidi-0.3, r=mbrubeck
[gfx] [layout] [style] Upgrade unicode-bidi to 0.3

Depends on https://github.com/servo/unicode-bidi/pull/27 , which
upgrades `unicode-bidi` crate to `0.3.0`.

Summary of changes:

* Use `unicode_bidi::Level` (instead of `u8`) in all relevant places and
replace magic computations with (inline) method calls to Level API.

* Doing so required adding `unicode-bidi` crate dependency to two more
components here: `style` and `gfx`. IMHO, totally makes sense, as
replaces local integer manipulations/checks with well-tested ones
already available in a common dependency.

---
<!-- 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). [N/A]

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because `unicode-bidi` has its own tests and there's no logic change in this diff.

<!-- 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/16779)
<!-- Reviewable:end -->
2017-05-22 23:06:07 -05:00
..
animation.rs style: Use RestyleDamage to determine whether we must continue cascading style changes to children. 2017-05-20 16:25:39 +02:00
block.rs Refactor how calc() clamping is done on computed values (fixes #15296) 2017-05-18 10:14:59 +02:00
Cargo.toml [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 2017-05-22 20:06:19 -05:00
construct.rs Stylo: Pass style list's image_value to gecko. 2017-05-16 02:34:16 +08:00
context.rs Use the origin of the actual image response when determining if a canvas is origin clean. 2017-05-19 09:38:50 -04:00
data.rs Fix unsafe casting between PersistentLayoutData and PartialPersistentLayoutData 2017-05-11 21:30:59 +02:00
display_list_builder.rs Introduce CalcLengthOrPercentage::unclamped_length 2017-05-18 19:27:31 +02:00
flex.rs Refactor how calc() clamping is done on computed values (fixes #15296) 2017-05-18 10:14:59 +02:00
floats.rs Update app_units to 0.4.1 2017-05-19 20:33:02 -07:00
flow.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
flow_list.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
flow_ref.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
fragment.rs Update app_units to 0.4.1 2017-05-19 20:33:02 -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 [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 2017-05-22 20:06:19 -05:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs Fix unsafe AtomicRefCell<PersistentLayoutData> transmute due to memory alignment differences 2017-05-12 12:48:13 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
model.rs Refactor how calc() clamping is done on computed values (fixes #15296) 2017-05-18 10:14:59 +02:00
multicol.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Rewrite parallel.rs to be not slow. 2017-05-21 07:45:39 +02:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Properly handle scroll offsets in hit testing 2017-05-16 15:27:09 +02:00
sequential.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
table.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_caption.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_cell.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_colgroup.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_row.rs Fix up script and layout. 2017-05-02 17:35:45 -07: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 [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 2017-05-22 20:06:19 -05:00
traversal.rs Eliminate ScrollRootId 2017-04-20 08:51:38 +02:00
webrender_helpers.rs Using TransformStyle::Preserve3D 2017-05-16 11:08:32 -04:00
wrapper.rs Parse -moz-alt-content as a whole content value (fixes #15726) 2017-05-22 13:59:36 +02:00