Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstylo: Support linear-gradients as background-image #11456
Conversation
highfive
commented
May 26, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 26, 2016
| // NB: stops are guaranteed to be none in the gecko side by | ||
| // default. | ||
| stop.position.to_gecko_style_coord(&mut coord.mUnit, | ||
| &mut coord.mValue); |
This comment has been minimized.
This comment has been minimized.
| if let AngleOrCorner::Angle(angle) = gradient.angle_or_corner { | ||
| unsafe { | ||
| angle.to_gecko_style_coord(&mut (*gecko_gradient).mAngle.mUnit, | ||
| &mut (*gecko_gradient).mAngle.mValue); |
This comment has been minimized.
This comment has been minimized.
|
r=mbrubeck with some minor cleanup suggestions (above). |
highfive
commented
May 27, 2016
|
New code was committed to pull request. |
|
Gecko changes got r+'d, so I'm going to land this (per the @bors-servo: 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 -->
|
|
highfive
commented
Jun 1, 2016
|
|
@bors-servo: retry
|
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
1 similar comment
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
This was fixed in gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=955857
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
Gecko's allocs are infallible by default.
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
|
-S-blocked-on-external -S-awaiting-review +S-awaiting-answer Looks good to me, with one suggested change. r=mbrubeck with or without the change.
|
Makes things a lot nicer :)
highfive
commented
Jun 2, 2016
|
New code was committed to pull request. |
|
Yep, that's a great idea, I don't know why I didn't thought about it :) @bors-servo: 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 -->
|
|
…ray bindings r=heycam See servo/servo#11456, when they where added. MozReview-Commit-ID: FsHMk9FjOo1
…ray bindings r=heycam See servo/servo#11456, when they where added. MozReview-Commit-ID: FsHMk9FjOo1
…ray bindings r=heycam See servo/servo#11456, when they where added. MozReview-Commit-ID: FsHMk9FjOo1 UltraBlame original commit: 0560b158bb22366202b489a95d78cb66605d456e
…ray bindings r=heycam See servo/servo#11456, when they where added. MozReview-Commit-ID: FsHMk9FjOo1 UltraBlame original commit: 0560b158bb22366202b489a95d78cb66605d456e
…ray bindings r=heycam See servo/servo#11456, when they where added. MozReview-Commit-ID: FsHMk9FjOo1 UltraBlame original commit: 0560b158bb22366202b489a95d78cb66605d456e
emilio commentedMay 26, 2016
•
edited by larsbergstrom
This PR supports setting the background-image property to a linear-gradient in Geckolib.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsr? @mbrubeck
cc @heycam @bholley
This change is