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

Support None and NotSet for the fallback type of SVGPaint. #18376

Conversation

@kuoe0
Copy link
Contributor

kuoe0 commented Sep 5, 2017

We didn't set None and NotSet for the fallback type of SVGPaint, and it caused the fallback color is wrong when fallback color is empty or keyword none. So, we add the None and NotSet support for it.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix Bug 1380590
  • There are tests for these changes OR
  • These changes do not require tests because of the test cases already in Gecko.

This change is Reviewable

@highfive
Copy link

highfive commented Sep 5, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/gecko.mako.rs, components/style/values/generics/svg.rs
  • @canaltinova: components/style/properties/gecko.mako.rs, components/style/values/generics/svg.rs
  • @emilio: components/style/properties/gecko.mako.rs, components/style/values/generics/svg.rs
@highfive
Copy link

highfive commented Sep 5, 2017

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@aethanyc
Copy link
Contributor

aethanyc commented Sep 5, 2017

@bors-servo delegate+

@bors-servo
Copy link
Contributor

bors-servo commented Sep 5, 2017

✌️ @kuoe0 can now approve this pull request

@kuoe0
Copy link
Contributor Author

kuoe0 commented Sep 5, 2017

@bors-servo r=xidorn

@bors-servo
Copy link
Contributor

bors-servo commented Sep 5, 2017

📌 Commit 2d84686 has been approved by xidorn

@chenpighead
Copy link
Contributor

chenpighead commented Sep 5, 2017

This has been reviewed by @upsuper in Bug 1380590

@bors-servo
Copy link
Contributor

bors-servo commented Sep 5, 2017

Testing commit 2d84686 with merge cff0476...

bors-servo added a commit that referenced this pull request Sep 5, 2017
…ck-color-of-context-property-is-none, r=xidorn

Support None and NotSet for the fallback type of SVGPaint.

<!-- Please describe your changes on the following line: -->

We didn't set None and NotSet for the fallback type of SVGPaint, and it caused the fallback color is wrong when fallback color is empty or keyword `none`. So, we add the None and NotSet support for it.

---
<!-- 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 fix [Bug 1380590](https://bugzilla.mozilla.org/show_bug.cgi?id=1380590)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because of the test cases already in Gecko.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

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

bors-servo commented Sep 5, 2017

💔 Test failed - mac-rel-css1

@chenpighead
Copy link
Contributor

chenpighead commented Sep 5, 2017

#18374....:(

@jdm
Copy link
Member

jdm commented Sep 5, 2017

This can be retried now.

@chenpighead
Copy link
Contributor

chenpighead commented Sep 6, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Sep 6, 2017

Testing commit 2d84686 with merge 1cf87a2...

bors-servo added a commit that referenced this pull request Sep 6, 2017
…ck-color-of-context-property-is-none, r=xidorn

Support None and NotSet for the fallback type of SVGPaint.

<!-- Please describe your changes on the following line: -->

We didn't set None and NotSet for the fallback type of SVGPaint, and it caused the fallback color is wrong when fallback color is empty or keyword `none`. So, we add the None and NotSet support for it.

---
<!-- 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 fix [Bug 1380590](https://bugzilla.mozilla.org/show_bug.cgi?id=1380590)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because of the test cases already in Gecko.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

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

bors-servo commented Sep 6, 2017

@bors-servo bors-servo merged commit 2d84686 into servo:master Sep 6, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.