servo/components
bors-servo 7c346e0d94 Auto merge of #14421 - upsuper:patch-2, r=emilio
Treat top-level number in calc() invalid

<!-- Please describe your changes on the following line: -->
This should probably considered as a temporary fix (for [bug 1321206](https://bugzilla.mozilla.org/show_bug.cgi?id=1321206)), to avoid assertion when trying to serialize calc value with only numbers. Certain properties (e.g. `line-height`) would eventually need to keep numbers inside calc.

---
<!-- 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: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Currently, CalcLengthOrPercentage doesn't actually keep the number value. If we don't treat it invalid, we can end up generating empty `calc()` value when one contains numbers (e.g. `calc(1)`), which would violate assertion elsewhere that `calc` must not be empty.

<!-- 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/14421)
<!-- Reviewable:end -->
2016-12-02 20:18:05 -08:00
..
atoms Auto merge of #14387 - szeged:event-target, r=jdm 2016-11-28 22:13:31 -08:00
bluetooth Step annotations for WebBluetooth functions 2016-11-29 18:24:28 +01:00
bluetooth_traits Fix a typo in bluetooth_traits/lib.rs 2016-11-28 15:49:42 +01:00
canvas Implement WebGLContext resize, r=emilio 2016-12-01 00:56:59 +01:00
canvas_traits Remove old shaders, updates for WR feature and API changes. 2016-11-25 06:28:21 +10:00
compositing compositing: Only make the compositor responsible for initiating reflow 2016-11-30 16:36:02 -08:00
constellation Implement synchronous about:blank loading. 2016-11-30 11:26:35 +01:00
debugger Disable the debugger on Android until mio works on Android 2016-11-17 19:11:30 -06:00
devtools Remove #![feature(custom_attribute)] 2016-11-03 11:24:13 +01:00
devtools_traits Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
gfx Remove old shaders, updates for WR feature and API changes. 2016-11-25 06:28:21 +10:00
gfx_traits Don't promote all scrollable regions to stacking contexts 2016-11-05 18:36:45 +01:00
jstraceable_derive Update to Rust 1.15.0-nightly (1c448574b 2016-11-28) 2016-11-29 21:19:25 +01:00
layout Auto merge of #14394 - jcdyer:jcdyer/either-column-width, r=Wafflespeanut 2016-12-01 23:03:37 -08:00
layout_thread Auto merge of #14418 - pcwalton:infinite-reflows, r=notriddle 2016-12-01 10:16:38 -08:00
layout_traits Make the layout content process shutdown sender optional. 2016-11-30 01:24:45 +01:00
msg Auto merge of #14286 - gterzian:update_canvas_with_offscreen_context, r=jdm 2016-11-24 12:29:52 -08:00
net Made http_redirect_fetch error for non-HTTPS. #14069 2016-11-30 20:46:27 +00:00
net_traits Auto merge of #14286 - gterzian:update_canvas_with_offscreen_context, r=jdm 2016-11-24 12:29:52 -08:00
plugins Update to Rust 1.15.0-nightly (1c448574b 2016-11-28) 2016-11-29 21:19:25 +01:00
profile Update profiler logging with current ProfilerCategory enum values 2016-11-17 19:36:58 -08:00
profile_traits Allow unsafe code for energy module (build failure otherwise) 2016-11-17 19:33:32 -08:00
range Remove #![feature(rustc_attrs)] 2016-11-03 11:24:19 +01:00
script Implement MediaList interface 2016-12-02 23:46:40 +03:00
script_layout_interface Make the layout content process shutdown sender optional. 2016-11-30 01:24:45 +01:00
script_traits Implement synchronous about:blank loading. 2016-11-30 11:26:35 +01:00
servo Remove misleading section from non-toplevel Cargo.toml. 2016-11-29 16:17:18 -05:00
style Auto merge of #14421 - upsuper:patch-2, r=emilio 2016-12-02 20:18:05 -08:00
style_traits Auto merge of #14135 - frewsxcv:code-like, r=Ms2ger 2016-11-14 06:59:35 -06:00
url Auto merge of #14274 - stshine:servo-url-index, r=emilio 2016-11-20 12:35:14 -06:00
util Update to Rust 1.15.0-nightly (1c448574b 2016-11-28) 2016-11-29 21:19:25 +01:00
webdriver_server Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00