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

Shrink the storage needed by specified background images #18430

Merged
merged 2 commits into from
Sep 9, 2017

Conversation

bzbarsky
Copy link
Contributor

@bzbarsky bzbarsky commented Sep 9, 2017

This makes a specified background image take 48 bytes instead of 1024 bytes.


  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

Gradients and rects are rare, and large.  Image is much smaller with them boxed.

This is part of of the fix for Gecko bug 1397614
<https://bugzilla.mozilla.org/show_bug.cgi?id=1397614>
@highfive
Copy link

highfive commented Sep 9, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/shorthand/background.mako.rs, components/style/properties/shorthand/mask.mako.rs, components/style/gecko/conversions.rs, components/style/values/specified/image.rs, components/style/values/generics/image.rs
  • @canaltinova: components/style/properties/shorthand/background.mako.rs, components/style/properties/shorthand/mask.mako.rs, components/style/gecko/conversions.rs, components/style/values/specified/image.rs, components/style/values/generics/image.rs
  • @emilio: components/style/properties/shorthand/background.mako.rs, components/style/properties/shorthand/mask.mako.rs, components/style/gecko/conversions.rs, components/style/values/specified/image.rs, components/style/values/generics/image.rs

@highfive
Copy link

highfive commented Sep 9, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

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

bzbarsky commented Sep 9, 2017

@bors-servo r=xidorn

@bors-servo
Copy link
Contributor

📌 Commit 385e34a has been approved by xidorn

@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 Sep 9, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 385e34a with merge c853040...

bors-servo pushed a commit that referenced this pull request Sep 9, 2017
Shrink the storage needed by specified background images

<!-- Please describe your changes on the following line: -->
This makes a specified background image take 48 bytes instead of 1024 bytes.

---
<!-- 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 https://bugzilla.mozilla.org/show_bug.cgi?id=1397614

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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. -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: xidorn
Pushing c853040 to master...

@bors-servo bors-servo merged commit 385e34a into servo:master Sep 9, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 9, 2017
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.

4 participants