Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Pu Xingyu 7756e28712 servo: Merge #12754 - Fix unexpected freeze of flex item (from stshine:no-divide-by-zero); r=pcwalton
<!-- Please describe your changes on the following line: -->

Fix the currently logic that a item will freeze if it should
grow(shrink) and its basesize is less(more) than its min(max) size. This
also fix the divide by zero error when an item should shrink but it has
zero length and zero min size.

---
<!-- 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] There are tests for these changes

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

Source-Repo: https://github.com/servo/servo
Source-Revision: a83fed2144bc3c6ba5125d9b26d102b4e1e73b5a
2016-08-08 00:39:05 -05:00
servo servo: Merge #12754 - Fix unexpected freeze of flex item (from stshine:no-divide-by-zero); r=pcwalton 2016-08-08 00:39:05 -05:00