servo/components/gfx
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
..
display_list Fix fixed position items with parents with CSS clips 2017-08-03 17:52:02 +02:00
platform Auto merge of #17706 - glennw:linux-fonts, r=stshine,emilio 2017-07-13 16:13:41 -07:00
text Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26) 2017-07-27 02:21:01 +02:00
Cargo.toml Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
font.rs Upgrade to the latest version of WebRender 2017-07-13 07:44:08 +10:00
font_cache_thread.rs Auto merge of #16508 - brainlessdeveloper:fetch-set-origin, r=asajeffrey 2017-07-17 08:29:23 -07:00
font_context.rs Bug 1374233 - Part 3: Use NonNegativeAu as computed values for font-size related properties. 2017-08-04 14:21:59 +08:00
font_template.rs Use integer for specified and computed font-weight 2017-07-06 15:31:24 +10:00
lib.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00