servo/components/style/gecko
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
..
generated Auto merge of #17972 - heycam:ignore-existing, r=bholley 2017-08-04 21:33:59 -05:00
arc_types.rs stylo: Create ServoFontFeatureValuesRule and bind servo data 2017-07-27 13:38:00 -07:00
conversions.rs Always set mBgPos for LineDirection::Vertical. 2017-08-04 19:29:01 +10:00
data.rs Add a Stylo API for reparenting a given style. 2017-07-28 22:54:06 -04:00
global_style_data.rs Separate thread pool from global state for Gecko 2017-06-23 19:36:58 +09:00
media_queries.rs Bug 1374233 - Part 3: Use NonNegativeAu as computed values for font-size related properties. 2017-08-04 14:21:59 +08:00
mod.rs Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout CLOSED TREE 2017-07-06 21:58:15 +00:00
non_ts_pseudo_class_list.rs style: Introduce Chrome UI privilege for parsers 2017-08-03 16:30:08 +08:00
pseudo_element.rs style: Don't perform parent display-based style fixups on most pseudos. 2017-08-05 18:35:40 +08:00
pseudo_element_definition.mako.rs style: Move nsStyleContext::mParent to GeckoStyleContext. 2017-08-03 12:46:51 +02:00
regen_atoms.py stylo: Fix PseudoElement::pseudo_type. 2017-07-18 17:34:42 +02:00
restyle_damage.rs style: Ensure we generate a ReconstructFrame hint when -moz-binding changes on a display:none root. 2017-07-25 15:50:00 +08:00
rules.rs Use integer for specified and computed font-weight 2017-07-06 15:31:24 +10:00
selector_parser.rs style: Introduce Chrome UI privilege for parsers 2017-08-03 16:30:08 +08:00
snapshot.rs style: Implement a more fine-grained invalidation method. 2017-06-13 13:26:41 +02:00
snapshot_helpers.rs ID and class selectors are ASCII case-insensitive in quirks mode. 2017-06-12 23:33:53 +02:00
traversal.rs Pass a callback to recalc_style_at to avoid traversing children twice. 2017-07-15 14:45:51 -07:00
url.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
values.rs Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter. 2017-08-04 14:23:30 +08:00
wrapper.rs Update stylo code to work on nightly 2017-08-03 14:26:55 -07:00