Commit Graph

9051 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
1f6edba4b7 servo: Merge #16766 - layout: Fix radius percentage resolution (from emilio:border-radius); r=glennw
Fixes #16764

Source-Repo: https://github.com/servo/servo
Source-Revision: 34d33574dbd8696ff788ae8b9af65f8e88f404a9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 979c8ae0d11656329d6949014536e817bd56dcab
2017-05-08 06:24:42 -05:00
UK992
5583a3477b servo: Merge #16593 - Mach: Add mach clean-cargo-cache command (from UK992:clean-cargo-cache); r=wafflespeanut
<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f6bd158fd4287226a881e58020f7dc154fa32532

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ca806671abe6fe30d24e0d1965aa6aef12825a3a
2017-05-08 04:37:21 -05:00
cku
48ea643f20 servo: Merge #16765 - stylo: Export mozilla::css::ImageValue to stylo (from CJKu:bug-1310885-part-1); r=heycam
<!-- Please describe your changes on the following line: -->
This is "Bug 1310885 - Part 0. (gecko) Export mozilla::css::ImageValue to stylo."
We need to land it separately to prevent build break.

Link to the gecko bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1310885.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 2119c16b6672aa06492f84ee12aee698c38eb013

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c98bec8f70b8c73022102ed66c3b8174e18179a8
2017-05-08 03:28:48 -05:00
Glenn Watson
ab2641cb40 servo: Merge #16759 - Enable subpixel anti-aliasing on text by default (from glennw:subpixel); r=cbrewster
No doubt there are still some bugs and missing features related to subpixel text anti-aliasing.

But enabling by default should allow us to detect these and fix them.

If we run into any major issues, this is a standalone commit that can be reverted while we fix the problem.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e390e2630f244e77032ded404ca885c3e3ed8a7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 17d2967f06946042885de47bfc7541b6de5e91b5
2017-05-07 20:27:46 -05:00
Glenn Watson
dd4b6dad07 servo: Merge #16758 - Update WR (transform shader select optimization, subpixel + disable AA fix) (from glennw:update-wr-xf-subpixel); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: f0cf9f47b55c90a27ff40294775882fa80aabe86

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c0a66dc172d6799c136ca29e5541d1bf740abaf2
2017-05-07 19:18:32 -05:00
zombiefungus
4b1d363d8d servo: Merge #16757 - Remove obsolete paint threads option #16716 (from zombiefungus:issue16716); r=KiChjang
<!-- Please describe your changes on the following line: -->
Remove paint_threads from `ports/cef/core.rs` and `components/config/opts.rs`

---
<!-- 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 #16716

<!-- Either: -->
- [ ] 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: c171ded902f60132e2e99e72a075afd63d0df4b5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : bb0d17dedcfa653a0033bb9eb47b35220b5c79a5
2017-05-07 17:09:47 -05:00
Pyfisch
8844d0506c servo: Merge #16666 - Improvements to gradients (from pyfisch:gradients); r=emilio
This is a collection of commits improving the rendering of linear and radial gradients by making them conform more closely to the spec.

All commits are are independent and should work without the others.

These commits address the following issues:
* a956e3fd529715cc0ac39b23910f19e092c7c5a9 resolves #3908 but contains also some other necessary changes to `convert_gradient_stops`. The updated function has a few more copys but should be more correct. Maybe @pcwalton wants to comment since he has originally written the code.
* b230be8aaf318fb754cf58e5cd243087df2f7e0f partially solves #16638. (Partially because `border-image-outset` is not implemented. This is an older issue for border gradients: #15894.

To quickly catch regressions and see changes to gradients I have created [a set of twelve manual testcases](https://pyfisch.org/stuff/testcases-gradients.html) and placed them in a single file. Attached are two files. One shows how the gradients were rendered before the PR the other one with the changes applied.

![testcases-old](https://cloud.githubusercontent.com/assets/2781017/25580052/b433278e-2e7d-11e7-9396-500fef12eee0.png)
![testcases-new](https://cloud.githubusercontent.com/assets/2781017/25580051/b43222c6-2e7d-11e7-99ab-c0a2709baf41.png)

r? @emilio
and maybe also @jdm?

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

Source-Repo: https://github.com/servo/servo
Source-Revision: 3f1ae6425588bbac37da2e0f8aa2a708f51fa988

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b6e9d1479c65a59ebe6df841e7b648782449c5dc
2017-05-07 07:56:51 -05:00
Nazım Can Altınova
7a652ca8ee servo: Merge #16754 - Fix parsing behavior of text-shadow property (from canaltinova:text-shadow); r=emilio
Blur radius should reject negative values. There was already `Shadow` struct for properties like this. `filter: drop-shadow` also has the same syntax with that property. I thought sharing the same code would be better and used Shadow struct for parsing. Converted to SpecifiedTextShadow to get rid of unneccessary fields and to be able to convert its computed value. Maybe it would be better to avoid using `Shadow` or just using `Shadow` but sharing code and avoiding unneccessary fields seems better.

---
<!-- 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

Source-Repo: https://github.com/servo/servo
Source-Revision: bd2cd40c5029f3124f2ed492b4fab7dc8f9101c8

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : eef3852365762813fc15d7d3d1e70984889254c0
2017-05-06 16:10:22 -05:00
Xidorn Quan
35fbfcdb54 servo: Merge #16750 - Use nsIAtom for counter style name (from upsuper:bug1362302); r=Manishearth
This is the Servo side change of [bug 1362302](https://bugzilla.mozilla.org/show_bug.cgi?id=1362302) which has been reviewed on Bugzilla.

Source-Repo: https://github.com/servo/servo
Source-Revision: 806f369a79409304024ba15259ec5ef68afebe51

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5bd0958a8d9ef82a8b8165208d4018e5d8e7987c
2017-05-05 23:15:08 -05:00
Xidorn Quan
d101c82a5c servo: Merge #16751 - Update binding files to autoland tip (from upsuper:update-bindings); r=jdm
Sync in-tree binding files with that generated from Gecko CI.

Source-Repo: https://github.com/servo/servo
Source-Revision: deff38597abae4687c9043c3f04e4d7c54715934

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5761649bc74fdd4786795f6ff29a046ad2def65e
2017-05-05 22:22:33 -05:00
Anthony Ramine
71d7d7e8dc servo: Merge #16744 - Properly parse 'pointer-events: all' (from nox:pointer-events); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: f50b8fd54556ddb1baf6707dcec4cb271d0cc2e6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a5ec06b16f132d2147ff84c52a239521263b9559
2017-05-05 17:25:59 -05:00
Bobby Holley
0698f88159 servo: Merge #16745 - Use selector maps for revalidation and dependency selectors (from bholley:more_selector_maps); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1360088

Source-Repo: https://github.com/servo/servo
Source-Revision: 741958b2fbe0cdf0a89e4dc88c3b1a51e18693d3

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 547c741c779e30d048ab03fbf3926435f54a9f78
2017-05-05 16:29:00 -05:00
Anthony Ramine
850168f8f9 servo: Merge #16742 - Properly use big endianness to parse font feature tags (from nox:font-feature-settings); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: ce874d72ecaa531f1da7f619b2bced72100612d3

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 22efb7ca634646ee100f8f2c244599c34c3609f1
2017-05-05 15:45:53 -05:00
Manish Goregaokar
72eb995527 servo: Merge #16741 - Handle fallback to default variable font in case of nonexistant generic (from Manishearth:stylo-fixup-generic); r=heycam
Source-Repo: https://github.com/servo/servo
Source-Revision: 943e7595d52d42a34f73e8fef98cd2dc4247714b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 16f4bf0705908c37b9b4d5e82f6a5b4bd565e88d
2017-05-05 13:39:19 -05:00
Paul Rouget
e5ec578150 servo: Merge #16738 - derive(Debug) for LoadData (from paulrouget:LoadDataDebug); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 4e73fceaf7eb62542b72d211cb84ab555cef7ba9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 078f37c4088d7841594862e1ed180064f40e03c2
2017-05-05 12:05:22 -05:00
Anthony Ramine
408d198f9d servo: Merge #16739 - Fix serialisation of 'image-orientation: <angle> flip' (from nox:image-orientation); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 09c8978c5bdd77bdbb16469e502fa53659f56046

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9543c7922b5e8f5a6290dd82a839395fe5b388cb
2017-05-05 10:14:29 -05:00
Emilio Cobos Álvarez
58fad7acb6 servo: Merge #16728 - style: Rewrite calc to be cleaner and support arbitrary expressions (from emilio:recalc); r=waffles
This improves Servo's calc support compliant with[1], and makes it cleaner and
more straight-forward. (also fixes #15192)

[1]: https://github.com/w3c/csswg-drafts/issues/1241

Source-Repo: https://github.com/servo/servo
Source-Revision: 7fc01437f4c8935951add61a76230131134382f8

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b89b3a24eaa1f1c213f22e74068912c941896e02
2017-05-05 05:09:14 -05:00
Martin Robinson
387c611ae8 servo: Merge #16735 - Rename PushScrollRoot and remove PopScrollRoot (from mrobinson:push-pop-scroll-root); r=glennw
PopScrollRoot was unused and PushScrollRoot no longer pushes a scroll
root, but defines a new one.

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

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they should not change behavior.

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f832052d9500e1102ebf43450087a7f51bfcb60e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8f5eaa0100709586c0321ee817f98ae6dde7909c
2017-05-05 02:21:12 -05:00
Manish Goregaokar
da4403ef57 servo: Merge #16730 - Make font-size: larger/smaller work with the base size stuff (from Manishearth:stylo-font-size); r=dbaron
Source-Repo: https://github.com/servo/servo
Source-Revision: 441d3cf3e5b4dd909fef4ef4a8c9a5422d5330d3

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 059b55b818893b633f8d8dfc74b9608499296d2b
2017-05-05 01:38:38 -05:00
KuoE0
01e6deb40d servo: Merge #16733 - Make stylo support moz-prefixed cursor values (from KuoE0:bug-1356072); r=xidorn
<!-- Please describe your changes on the following line: -->

This issue is reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1356072.

We need to support the following moz-prefix properties in stylo:
- -moz-grab
- -moz-grabbing
- -moz-zoom-in
- -moz-zoom-out

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

<!-- Either: -->
- [X] These changes do not require tests because the tests already exist 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 8187969c39d6cfcd415571dc02c0b62e932a59da

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ce348d8f8daed18ea8c582d5b308fc7a7dbce421
2017-05-04 22:27:44 -05:00
Glenn Watson
1327c3b0a9 servo: Merge #16731 - Update WR (remove old border path, composite fixes) (from glennw:update-wr-borders-nearly-done); r=pcwalton
* Support border corner transitions with new path.
* Remove old border rendering code and shaders.
* Bug fix for mix-blend-mode / composite tasks.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a80a0258344716be9c773fa36a66111bd255214

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 35658addcb2db615e9f96dd00f8823bdec33dc62
2017-05-04 21:20:01 -05:00
Anthony Ramine
cf55c1fbeb servo: Merge #16727 - Implement grid-template-areas (fixes #16079) (from nox:grid-template-areas); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 18c8c290daea3419b02799e206c2cb50845cd0af

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c666b12b559154a25d5b6f54201112bd554ee610
2017-05-04 19:58:22 -05:00
Connor Brewster
e2a45c503e servo: Merge #16697 - Make History attributes and methods throw (from cbrewster:history_throw); r=KiChjang
<!-- Please describe your changes on the following line: -->
All History methods and attributes should throw a `SecurityError` if the document associated with the `History` object is not fully active.
https://html.spec.whatwg.org/multipage/browsers.html#history-3

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: ca2a5025e50819f3fc54f66f681f9d73479386e4

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7ec6837fa7f0d87660233cf14a1c6ecf27cc299f
2017-05-04 18:50:17 -05:00
Maxwell Borden
a826223c85 servo: Merge #16729 - Updating rust-openssl version to 0.9.11 (from Tacklebox:issue16708); r=cbrewster
<!-- Please describe your changes on the following line: -->
Updated dependency rust-openssl to version 0.9.11 as suggested in issue 16708 to resolve compatibility issues with redhat openssl-devel

---
<!-- 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
- [ ] `./mach test-tidy` does not report any errors - it reports duplicate bitflags dependancies
- [X] These changes fix #16708 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because no code was changed.

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 896f0c49b299197eff6101ee434b4feceeb77c4d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0cfdf4d8524ebfb10c2682d9a3f8803e56c97425
2017-05-04 15:53:48 -05:00
Manish Goregaokar
e3f9211a25 servo: Merge #16721 - Set vector properties via iterator in stylo (from Manishearth:vector-iter); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1360882

Avoids transient allocations

Source-Repo: https://github.com/servo/servo
Source-Revision: e23c8f1f3cc326782ca025bc67b0e4003b1c5275

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : fcb18bb9881d5004656877d228e5aad663425fd0
2017-05-04 11:23:05 -05:00
Anthony Ramine
522c502e60 servo: Merge #16725 - Implement -moz-osx-font-smoothing (from nox:moz-osx-font-smoothing); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 36f26148e6f3decfac7858455c3170d7bf7d8b3f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d9773f0a389585ff51fd30f42885b9835b4248cc
2017-05-04 07:42:43 -05:00
Alice Maz
c0292d3464 servo: Merge #16706 - Bump base64 to 0.4.2 (from alicemaz:master); r=nox
<!-- Please describe your changes on the following line: -->
we have just released a security patch for base64 (preventing integer overflow when sizing a buffer for encoded output). this bumps the version in the three Cargo.toml files that pull it in. there should be no observable difference in behavior, no non-malicious input should be able to trigger this state

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is a small fix to a dependency with no practical difference in operation from previous.

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 6aa552d59f21644ed93b17b1cec4197cd354b882

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d5d59c0fff40d88c12de844ab50cc0f9249f46ab
2017-05-04 06:08:37 -05:00
Cameron McCormack
ebee71a43e servo: Merge #16724 - style: Re-enable font metrics querying for ch and ex units in Stylo traversal (from heycam:reenable-metrics); r=bholley
From https://bugzilla.mozilla.org/show_bug.cgi?id=1356103.

Source-Repo: https://github.com/servo/servo
Source-Revision: ca277aabe6c32f025da585b909b308336181d6e2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cc604030e331627f80bb98e37a9cf30964317e37
2017-05-04 03:46:28 -05:00
Emilio Cobos Álvarez
c225afa02e servo: Merge #16714 - style: Fix stylo's atom script (from emilio:atoms); r=heycam
It's been broken since bug 1358968.

Source-Repo: https://github.com/servo/servo
Source-Revision: dd47b1ba6c6d0d4921c65721c9620bb227783774

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3201effe12dae9657f55e46ed6d091ebb91edc19
2017-05-04 03:03:56 -05:00
Jeremy Chen
01d2568806 servo: Merge #16711 - stylo: Bug 1360144 - make stroke-{*} animatable for stylo (from chenpighead:stylo-make-stroke-properties-animatable); r=BorisChiou
This part includes making stroke-linecap, stroke-linejoin, stroke-miterlimit,
stroke-opacity, and stroke-dasharray animatable.

For properties that already implemented Interpolate trait and clone() for
glue code, we can just make them animatable by replacing the animation_value_type
with proper type name. So, set animation_value_type to 'discrete' for
stroke-linecap and stroke-linejoin. Set animation_value_type to 'ComputedValue'
for stroke-miterlimit and stroke-opacity.

As to stroke-dasharray, we need to implement Interpolate trait and glue codes
for it.

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

---
<!-- 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

Source-Repo: https://github.com/servo/servo
Source-Revision: d9ac109db63a6d05c2121b34d27f20e8325e9b3f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 86edd2153abf69ae0b1399b5828b01cf4ca6d731
2017-05-04 01:32:46 -05:00
cku
00a44a2499 servo: Merge #16707 - Stylo: Implement {specified|computed}::LayerImage (from CJKu:bug-1359787); r=manish
<!-- Please describe your changes on the following line: -->
Bug 1359787 - Stylo: Unite the implementation of background-image/ mask-image and border-image-source in {background|svg|border}.mako.rs

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 896a920ff53f683cdaac8bc6b2f796633a436a7f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9b64f6b658b04f16cdb1a4ee88075f3f0f41971d
2017-05-03 21:49:33 -05:00
Imanol Fernandez
30b37e77e5 servo: Merge #16500 - Fix unsafe Heap constructor usage in DOM objects (from MortimerGoro:unsafe_heap); r=asajeffrey
<!-- Please describe your changes on the following line: -->

See https://github.com/servo/rust-mozjs/issues/343#issuecomment-294513870

Heap::new() constructor is unsafe. Heap should be set after reflect_dom_object call in order to prevent potential GC crashes.

<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e8aa3759bd8f74f7a962e421bd0cbf2a0a3e35da

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1f7e2346a5f25efa3e055ff02cd6b9090de23837
2017-05-03 21:07:32 -05:00
Glenn Watson
9d0a7da8bc servo: Merge #16723 - Update WR (dotted borders with elliptical radii / border widths) (from glennw:update-wr-dots); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: d0057534938f7c035fc4268fa798048e4b66f94b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 66c5ad8c3be11f7e65ba9d51b48c983a655250ed
2017-05-03 20:24:57 -05:00
Juan C. Gonzalez-Zurita
6cd7127c27 servo: Merge #16568 - font-feature-settings gecko glue code (from WholeGrainGoats:master); r=Manishearth
<!-- Please describe your changes on the following line: -->
FeatureTagValue value property changed to use u32. ToCss for
FeatureTagValue changed to allow conversion from u32 to string. Parse
for the same struct updated to convert from string to u32. Added two
functions to transfer settings to gecko and copy settings.

---
<!-- 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 #15975  (github issue number if applicable).

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 01f169d8c1f52ae4c3eb53274b0613211415feb9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ca5f0e6f9c4804b5aa9eca0937b317bf99e9f035
2017-05-03 19:41:59 -05:00
Emilio Cobos Álvarez
01d358ada0 servo: Merge #16713 - style: Allow parsing nested calc() expressions (from emilio:calc-in-calc); r=manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 53b391daf84b3a611e5b356ed97fc22f6cbe92b7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c9b88e0d1c9000590e438ad60c1327e607149d6
2017-05-03 18:33:03 -05:00
Hiroyuki Ikezoe
3c7b5090d3 servo: Merge #16715 - Support all properties for -moz-appearance (from hiikezoe:moz-appearance); r=bholley
Now all properties in nsCSSProps::kMozAppearanceKTable are in
keyword list of -moz-appearance.

This is a PR of https://bugzilla.mozilla.org/show_bug.cgi?id=1361632

- [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 it's for stylo

Source-Repo: https://github.com/servo/servo
Source-Revision: 83020ffe291846ac425925da1dd4a3da9eb7cbad

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 41a11da87f4c3be15e6d297a40d5b9f024d38a48
2017-05-03 16:42:29 -05:00
Christian Poveda
c7819127ee servo: Merge #16712 - Changed all prefixes from DOMString to the atomic Prefix from html5ever (from z1mvader:atomize_ns_prefix); r=SimonSapin
<!-- Please describe your changes on the following line: -->
I just changed the `prefix` parameters on the constructors of several HTML elements. The type now is `Option<Prefix>`. I also changed the sizes of the `sizeof.rs` unit test to match the new values.

---
<!-- 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 #16700  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it should not affect anything else

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: ed7686b42c02c5c1d769be952ef58b285f35a7f6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ade76a808b80fcbb1e011c0b6f7a29c37361559e
2017-05-03 13:33:56 -05:00
Alexis Beingessner
6f404897d1 servo: Merge #16652 - Update to webrender's new bincode IPC (from Gankro:bincode-ipc-5); r=jdm
**DO NO MERGE YET**

This is the required update to Servo for my changes to webrender in https://github.com/servo/webrender/pull/1181

Source-Repo: https://github.com/servo/servo
Source-Revision: 74c36cb35ddac3bf7db9215d85b9d4d7a660197b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3f1a55f6dab59aa865e929b9fb36fb1572708bc1
2017-05-03 12:44:37 -05:00
Josh Matthews
9b3fb791ae servo: Merge #16655 - Fix broken unit tests (from servo:jdm-patch-1); r=emilio
These are tests that only get run on TravisCI, apparently, so they were broken by be0139ff3c and 32c624e585 without anybody noticing.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3905b5af1804ad912c6e1854a0bcdfe9bda79065

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5ce8a16190b7183a08a169a97b5e9f9dd35cae6a
2017-05-03 09:47:44 -05:00
Simon Sapin
fd16ec7749 servo: Merge #16689 - Upgrade to html5ever 0.16 (from servo:m5e); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 8b41c7c137c78aab208fe2991c3ec951fe5f1386

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 234eca73c03f9e482a94c97e49ce5a78d077123e
2017-05-03 08:42:41 -05:00
Boris Chiou
3b7d0afa51 servo: Merge #16704 - stylo: Bug 1346052 - Add Servo_AnimationValue_Compute (from BorisChiou:stylo/transition/compute_from_string); r=birtles
This is an interdependent patch of Bug 1346052. We need this FFI to compute the AnimationValue from a property id and a string, so nsDOMWindowUtils::ComputeAnimationDistance() can use this FFI to get the AnimationValue.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1346052](https://bugzilla.mozilla.org/show_bug.cgi?id=1346052).
- [X] These changes do not require tests because we have some tests for this in Gecko.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1b9e1cc1f2656d02c4d0c1df1edd8ffcc8d13f49

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : eccdc0ae44f417d2f751d22f952dc97b3d23bc05
2017-05-02 23:46:15 -05:00
Manish Goregaokar
7c063ec176 servo: Merge #16695 - Do not inherit kw font size if it was not used due to MathML (from Manishearth:kw-inherit); r=heycam
See https://bugzilla.mozilla.org/show_bug.cgi?id=1361126#c9

Source-Repo: https://github.com/servo/servo
Source-Revision: fb6015a75b68b2f894ee0b057a2f17a3ea78494e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : dd9ab4e2a6c9242586075ec09f168a8054a9465c
2017-05-02 22:33:15 -05:00
Bobby Holley
f716af270a servo: Merge #16702 - Use a custom arc in the style system (from bholley:custom_arc); r=emilio
See https://bugzilla.mozilla.org/show_bug.cgi?id=1360889

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b1006936a27232fb77fef5893cc141e66bb12b7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 85baf2471e165666e2540cbcf4fbb55587e60f39
2017-05-02 20:01:10 -05:00
Brad Werth
983e2dbe07 servo: Merge #16698 - Change StyleSet to track stylesheets by unique ID (from bradwerth:cloneRight); r=heycam
MozReview-Commit-ID: Ky3P53o4Euw

https://bugzilla.mozilla.org/show_bug.cgi?id=1348481
https://reviewboard.mozilla.org/r/128850/

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 536d63c67028c7368dff780945626283d2c48f1c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7a153379607836a8757678515fc086ab4fd4e0a4
2017-05-02 18:15:05 -05:00
Aneesh Agrawal
82b996c29d servo: Merge #16687 - Keep stable rustc versions in clean-nightlies (from aneeshusa:keep-stable-rustc-during-clean-nightlies); r=mbrubeck
Check the `rust-stable-version` file to keep the last n
versions of both the nightly and the stable compiler.

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

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16675 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they should be checked manually

<!-- 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 225b505d222e0437a4ac0d6d0f5e5221de9c22e6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4b8c1252a61767290de2cfa47fa674ef31d2aa33
2017-05-02 12:37:03 -05:00
Anthony Ramine
33b270d26a servo: Merge #16693 - Implement touch-action in stylo (fixes #16372) (from nox:touch-action); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 5e2d38327489df4e4e4c6da9d3f3803a8062b7cc

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 171f431a4748da017bcab064aecd8f128aff9eec
2017-05-02 09:46:59 -05:00
Anthony Ramine
fe285a1f9e servo: Merge #16692 - Try to parse legacy before overflow for JustifyItems (from nox:justify-items); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 688733a0be26f29a9e4e74bb82685c42625dfb4d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c85e044660184ef62759e953d2c69d88b86d170
2017-05-02 07:38:46 -05:00
Hiroyuki Ikezoe
14277ff361 servo: Merge #16690 - Set multiple properties in a keyframe correctly (from hiikezoe:multiple-properties-in-keyframe); r=birtles
This is a PR of https://bugzilla.mozilla.org/show_bug.cgi?id=1359669

- [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 it's for stylo.

Source-Repo: https://github.com/servo/servo
Source-Revision: f779661392af86050b4c28c759d260beb07b9249

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d00535117bb7b32c0fdc1303299ac280bd54e8e5
2017-05-02 06:03:40 -05:00
Cameron McCormack
1e2d5b0a41 servo: Merge #16691 - style: Correctly serialize CSS Custom Property names (from heycam:custom-prop-name); r=xidorn
From https://bugzilla.mozilla.org/show_bug.cgi?id=1361303, and reviewed by Xidorn over there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 997a3e8374092bc4bc90455c7b51b74b30a1e167

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : da3e7dd33855de82ce1b753966ba6e43258de330
2017-05-02 04:19:59 -05:00
KuoE0
b9cc424085 servo: Merge #16688 - Make stylo support mozmm unit (from KuoE0:make-stylo-support-mozmm-unit); r=xidorn
<!-- Please describe your changes on the following line: -->

This issue is reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1356104. Mozmm is defined at https://developer.mozilla.org/zh-TW/docs/Web/CSS/length.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because the tests already exist 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. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f1ae547b9faf82c74f1680b1c5ff456b57d153c2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 544e569ca889c7f53949330a0c59be30f03d1ced
2017-05-02 02:27:39 -05:00