Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement webkit-prefixed linear gradients #16440

Merged
merged 3 commits into from Apr 14, 2017

Conversation

nox
Copy link
Contributor

@nox nox commented Apr 13, 2017

This is half of #15441.


This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/specified/image.rs, components/style/values/computed/image.rs
  • @emilio: components/style/values/specified/image.rs, components/style/values/computed/image.rs

@highfive
Copy link

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 13, 2017
@nox
Copy link
Contributor Author

nox commented Apr 13, 2017

r? @upsuper

@highfive highfive assigned upsuper and unassigned Manishearth Apr 13, 2017
if input.try(|input| input.expect_ident_matching("to")).is_ok() {
impl AngleOrCorner {
fn parse(context: &ParserContext, input: &mut Parser, mode: CompatMode) -> Result<Self, ()> {
if let Ok(angle) = input.try(|i| Angle::parse(context, i)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to allow unitless angles for webkit gradients (and for all non-moz gradients, actually)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK the same is true for non-webkit gradients and thus is a bit unrelated to that change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine, feel free to do it as a followup or file an issue (though given it's just s/Angle::parse/Angle::parse_with_unitless thought it may be worth to just do it here).

@upsuper
Copy link
Contributor

upsuper commented Apr 14, 2017

r? @emilio

@highfive highfive assigned emilio and unassigned upsuper Apr 14, 2017
Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with that or with an issue filled

Thanks!

if input.try(|input| input.expect_ident_matching("to")).is_ok() {
impl AngleOrCorner {
fn parse(context: &ParserContext, input: &mut Parser, mode: CompatMode) -> Result<Self, ()> {
if let Ok(angle) = input.try(|i| Angle::parse(context, i)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine, feel free to do it as a followup or file an issue (though given it's just s/Angle::parse/Angle::parse_with_unitless thought it may be worth to just do it here).

@emilio
Copy link
Member

emilio commented Apr 14, 2017

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit ba3f18f has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 14, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit ba3f18f with merge 842ff5f...

bors-servo pushed a commit that referenced this pull request Apr 14, 2017
Implement webkit-prefixed linear gradients

This is half of #15441.

<!-- 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/16440)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing 842ff5f to master...

@bors-servo bors-servo merged commit ba3f18f into servo:master Apr 14, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 14, 2017
@pyfisch pyfisch mentioned this pull request Apr 27, 2017
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants