servo/components/layout
bors-servo 016ea11cba Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox
stylo: Bug 1374233 - Clamp interpolated values for properties which need to be restricted

Some properties only accept non-negative values, or values greater than or equal to one. It is possible to produce an negative interpolated values while using negative timing functions, so we have to apply a restriction to these values to avoid getting invalid values.

For example, line-height must be non-negative, but the output progress of some timing functions (e,g. cubic-bezier(0.25, -2, 0.75, 1)) may be a negative value, so the interpolated result of line-height is also negative.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix Bug 1374233.
- [X] These changes do not require tests because we have tests in Gecko side already.

<!-- 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/17783)
<!-- Reviewable:end -->
2017-08-07 11:05:17 -05:00
..
animation.rs Revert "Backed out changeset b10e6ba9cbdb because gecko part had to be backed out." 2017-07-20 17:26:53 +02:00
block.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
Cargo.toml Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
construct.rs Bug 1374233 - Part 2: Add NonNegativeAu. 2017-08-04 14:21:57 +08: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 Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox 2017-08-07 11:05:17 -05:00
flex.rs Bug 1374233 - Part 1: Add NonNegativeNumber and GreaterThanOrEqualToOneNumber. 2017-08-04 14:21:21 +08:00
floats.rs Untry 2017-06-18 13:21:51 +02:00
flow.rs Fix fixed position items with parents with CSS clips 2017-08-03 17:52:02 +02: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 Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter. 2017-08-04 14:23:30 +08:00
generated_content.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
incremental.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
inline.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02: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 Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
model.rs stylo: Use ComputedValuesInner instead of ComputedValues when we don't need it 2017-07-17 18:02:25 -07:00
multicol.rs Bug 1374233 - Part 6: Add PositiveInteger and PositiveIntegerOrAuto for column-count. 2017-08-04 14:23:17 +08:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs layout: Make -Z show-parallel-layout show something useful again. 2017-07-23 01:47:47 +02:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox 2017-08-07 11:05:17 -05:00
sequential.rs Make BaseFlow::stacking_relative_position a vector. 2017-06-14 16:01:01 +02:00
table.rs Bug 1374233 - Part 5: Use NonNegativeLength and NonNegativeAu for border-spacing. 2017-08-04 14:22:36 +08:00
table_caption.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
table_cell.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +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 Bug 1374233 - Part 5: Use NonNegativeLength and NonNegativeAu for border-spacing. 2017-08-04 14:22:36 +08:00
table_rowgroup.rs Bug 1374233 - Part 5: Use NonNegativeLength and NonNegativeAu for border-spacing. 2017-08-04 14:22:36 +08:00
table_wrapper.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
text.rs Bug 1374233 - Part 12: Implement ToAnimatedValue for LineHeight. 2017-08-04 14:23:28 +08:00
traversal.rs Fix fixed position items with parents with CSS clips 2017-08-03 17:52:02 +02:00
webrender_helpers.rs Auto merge of #17783 - BorisChiou:stylo/animation/restrictions, r=nox 2017-08-07 11:05:17 -05:00
wrapper.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00