Auto merge of #11456 - emilio:stylo-linear-gradient, r=mbrubeck

stylo: Support linear-gradients as background-image

This PR supports setting the background-image property to a linear-gradient in Geckolib.

---
<!-- 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

- [x] These changes do not require tests because these are geckolib-only changes.

r? @mbrubeck
cc @heycam @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11456)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-02 11:50:53 -05:00
commit e23962c404
11 changed files with 846 additions and 196 deletions

View file

@ -309,8 +309,7 @@ ${helpers.predefined_type("text-indent",
// name per CSS-TEXT 6.2.
${helpers.single_keyword("overflow-wrap",
"normal break-word",
gecko_ffi_name="mWordWrap",
gecko_constant_prefix="NS_STYLE_WORDWRAP")}
gecko_constant_prefix="NS_STYLE_OVERFLOWWRAP")}
// TODO(pcwalton): Support `word-break: keep-all` once we have better CJK support.
${helpers.single_keyword("word-break",

View file

@ -1179,6 +1179,7 @@ pub mod specified {
}
impl Angle {
#[inline]
pub fn radians(self) -> f32 {
let Angle(radians) = self;
radians