Commit Graph

1777 Commits

Author SHA1 Message Date
Manish Goregaokar
989d68bb1d servo: Merge #17803 - servo: Move FontComputationData to the end of ServoComputedValues to make size check easier, make it NonZero (from Manishearth:servo-fontcomputation); r=emilio
We fail bindgen layout tests on 32 bit because FontComputationData does not accurately reflect the size/alignment of the rust-side replacement.

We move it to the end so that alignment is more straightforward, and
use a NonZero enum so that the representation can be more accurately
handled on the C++ side.

r=emilio https://bugzilla.mozilla.org/show_bug.cgi?id=1382190

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2581c78c4b627ff65def07226ea1976819d63a83
2017-07-20 10:33:43 -07:00
Emilio Cobos Álvarez
599d471a55 servo: Merge #17801 - style: Don't inherit from the parent visited style if we're a link (from emilio:visited-inherited); r=jryans
Bug: 1377469
Reviewed-by: jryans
MozReview-Commit-ID: CoMj9KSb5w9
Source-Repo: https://github.com/servo/servo
Source-Revision: 3d66cdeed40468cb97f9f007ed282d7f3021a890

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8ecc5e6039ac1d653b48d3d0725352caa2efeaf3
2017-07-20 08:25:09 -07:00
Sebastian Hengst
cf13b3c72d Backed out changeset b10e6ba9cbdb because gecko part had to be backed out. r=backout on a CLOSED TREE 2017-07-20 15:42:03 +02:00
Anthony Ramine
4a617c7c10 servo: Merge #17798 - Derive some SVGPaint impls (from servo:derive-all-the-things); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: fa34af609fd916f4e4df86ba73e9a5843177a29f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6573f45032529c3de1fe4678e2bb0580cac51346
2017-07-20 04:46:23 -07:00
Cameron McCormack
701a0b27ba servo: Merge #17796 - style: pass old ComputedValues from Element data into Gecko_CalcStyleDifference (from heycam:calc-difference); r=emilio
This is the Servo-side part of https://bugzilla.mozilla.org/show_bug.cgi?id=1380133.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3fa72f7564d3a5d5df662b033fb33c5ceda4b0f3
2017-07-20 03:39:15 -07:00
Emilio Cobos Álvarez
b1d9987ccd servo: Merge #17788 - style: Cleanup the cascade a good bit (from emilio:clean-cascade); r=heycam
Was about the time.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c6942502e978107dabbbda199194c1501d9992f
2017-07-20 02:36:15 -07:00
Nazım Can Altınova
864962970b servo: Merge #17776 - More grid serialization and parsing fixes (from canaltinova:disabled-mochitests); r=emilio
These are the bugs I discovered while I was re-enabling the disabled grid mochitests. Now all grid mochitests are passing! Additionally I converted `Vec<CustomIdent>`'s into `Box<[CustomIdent]>`. We are storing so many line names in vectors. These should help a bit.

---
<!-- 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: 20a3b0236d20e621591e751646758e833526084b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f13ef9b3cff0cff4ff2c71f1ca7ece1ccc8483b2
2017-07-19 23:54:33 -07:00
Brian Birtles
25469a7ddc servo: Merge #17794 - Assign properties safely (from birtles:assign-properties-safely); r=hiro
These are the Servo-side changes for [Bugzilla bug 1381389](https://bugzilla.mozilla.org/show_bug.cgi?id=1381389).

Source-Repo: https://github.com/servo/servo
Source-Revision: 513e6b297925387aa21d8382907d4b9283bf6c1e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f04cda9778e7ef619bfdff85b09bcb3fb6eefb2c
2017-07-19 22:48:47 -07:00
Bobby Holley
2a5b9c20fb servo: Merge #17791 - Bring back concise logging for ElementData (from bholley:less_verbose_cv); r=heycam
This was removed recently in the ComputedValues patch, and makes traversal
logging rather unusable.

Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1382357

Source-Repo: https://github.com/servo/servo
Source-Revision: 37d96f5ca9cf6df08dcb9a98455cbf297ec22cff

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ed1e3f1a7d8600447fc6a7c446812399752aef60
2017-07-19 21:02:28 -07:00
Jeremy Chen
c371881b39 servo: Merge #17789 - stylo: Fix Y scale computation while decomposing a 3D matrix (from chenpighead:stylo-fix-decompose_3d_matrix); r=hiro
While decomposing a 3D matrix, we should normalize the 2nd row right after the
Y scale computation. However, we accidentally use the length of the 1st row to
do the normalization. This causes the wrong Scale3D function while decomposing,
and then leads to the wrong decomposed 3D matrix.

Here, we correct it by using the right value (the length of the 2nd row).

r=hiro https://bugzilla.mozilla.org/show_bug.cgi?id=1381196

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 24b4878ac8430bbe87e3af64c6e8a2288a947b34
2017-07-19 20:07:26 -07:00
Pavel Sergeev
601e362bcf servo: Merge #17754 - replace vector iteration by ascii_case_insensitive_phf_map (from SergeevPavel:system-colors-refactor); r=SimonSapin
<!-- 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
- [X] These changes fix #15994 (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: e7b195b060fc9240393ad2754d3a92829b406541

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7ab9281e1f857f4a780eb08a6bc1deeb82c0f5ea
2017-07-19 14:56:24 -07:00
Josh Matthews
1faafe6c32 servo: Merge #17787 - Store COW strings in CSS parser errors when possible (from jdm:invalidvalue); r=SimonSapin
This should be a straightforward performance improvement in pages with lots of CSS property values that the parser does not understand.

---
- [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 there's no functional difference.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 18e9fcafa9b8e8137b3991331effc2a629ff3e88
2017-07-19 10:08:14 -07:00
Simon Sapin
4907b2fe85 servo: Merge #17785 - Remove explicit lifetime arguments on a method call (from servo:future-break); r=nox
This causes a warning it today’s Nightly: https://github.com/rust-lang/rust/issues/42868

… which makes the build fail because we use `#![deny(warnings)]`. This warning is planned to become a hard error in a future Rust version.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9597fec9fa82f4e64c2f28889d6865722cadcd5d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 730cca773decf44383059e9631f37461443aeca4
2017-07-19 07:12:36 -07:00
Michael Partheil
3ff096ba27 servo: Merge #17775 - Replace all uses of the style::stylearc alias with servo_arc (from michael-p:rename-stylearc-to-servo-arc); r=emilio
The `stylearc` alias is left there temporarilly and will be removed completely in a later commit/PR where also `components/style/gecko/generated/structs_{debug|release}.rs` are re-generated (they still use the old alias).

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because no new features / only refactoring

Source-Repo: https://github.com/servo/servo
Source-Revision: 31228c18499d1c7f68b6b64b559354c768e81215

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4d7b64e8a000a80d9daf9b1a511682416f456ff5
2017-07-19 06:03:17 -07:00
Emilio Cobos Álvarez
9b4972da8a servo: Merge #17782 - style: Unify needs_traversal logic (from emilio:needs-traversal); r=heycam
Source-Repo: https://github.com/servo/servo
Source-Revision: 9b060cf4bf5ff49b05370da6dfb82af5ea46f370

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d2aa60edd5fde51b4ef72c91ca942ee1efd37120
2017-07-19 04:57:23 -07:00
Anthony Ramine
f5d5a4edf4 servo: Merge #17774 - Prepare some code for future derivation 🌊 (from servo:derive-all-the-things); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: d76d0978911e4823d9d40f7ed161de24f3cc7f61

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b5b75d416d42e34b9aa6b496e0cfc858ff923328
2017-07-19 01:56:05 -07:00
Emilio Cobos Álvarez
e27dbd50ed servo: Merge #17781 - style: Remove bogus assertion (from emilio:assert-not); r=heycam
Bug: 1381682
Reviewed-by: heycam
MozReview-Commit-ID: E6bKyBdMUue
Source-Repo: https://github.com/servo/servo
Source-Revision: 8e73bc5b471d92331d9308821caed62bd30a231f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b4220c58b94f1d03cf1de75bba79437f28590f85
2017-07-19 00:44:45 -07:00
Manish Goregaokar
475ad603da servo: Merge #17778 - stylo: Don't ignore visited state when deciding to share style contexts (from Manishearth:stylo-visited-fix); r=bz
r=bz https://bugzilla.mozilla.org/show_bug.cgi?id=1381635

Source-Repo: https://github.com/servo/servo
Source-Revision: 38e808645292a1e4e9264937b979137b194c2196

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 088b841a8beef361f56b2621d660d47b167197de
2017-07-18 13:40:18 -07:00
Emilio Cobos Álvarez
4c1df51aa3 servo: Merge #17773 - style: Cleanup post #17767 (from emilio:removing-the-ugly); r=manishearth
Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1381764

Source-Repo: https://github.com/servo/servo
Source-Revision: 66e06578ee68b98c94029fba3cfc3ae7d3782044

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 58815fbe282d109ca50b75b025dc06ef5fe718fe
2017-07-18 09:23:03 -07:00
Hiroyuki Ikezoe
4c893720fa servo: Merge #17770 - Avoid snapshot handling in animation only restyle (from hiikezoe:snapshot-in-animation-only-restyle); r=emilio
<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1381431

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3ce8d09787930c54db8fe7de8b20d07fc82e4daf
2017-07-18 04:55:30 -07:00
Xidorn Quan
d46b6fe4a0 servo: Merge #17764 - Adjust display value for ::-moz-fieldset-content when parent is flex/grid (from upsuper:fieldset-flexgrid); r=emilio,heycam
This is the Servo side change for [bug 1379901](https://bugzilla.mozilla.org/show_bug.cgi?id=1379901).

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9bd15748044f3449ccebd8394293933500f8f342
2017-07-17 21:16:26 -07:00
Manish Goregaokar
da00e55f45 servo: Merge #17767 - stylo: Fuse ServoStyleContext and ServoComputedValues (from Manishearth:stylo-fuse); r=bholley
r=bholley https://bugzilla.mozilla.org/show_bug.cgi?id=1367904

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b3f72c771f92d5cd6a68f560092698f328f581d7
2017-07-17 19:44:25 -07:00
Emilio Cobos Álvarez
a0620f69e8 servo: Merge #17762 - style: Cascade the visited style with the normal rules if we didn't find a relevant link (from emilio:visited-nested); r=jryans
Source-Repo: https://github.com/servo/servo
Source-Revision: e122ea65fdbb07c237de7f53a998f678c7a0ca5a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6e2c80e19383aebd6ce2c40b7f241543d9767bc9
2017-07-17 15:21:22 -07:00
Emilio Cobos Álvarez
e05d0241f7 servo: Merge #17758 - Bug 1377993: Make node slots less memory hungry in common cases (from emilio:extended-slots); r=heycam
Source-Repo: https://github.com/servo/servo
Source-Revision: 3459748134e14dd2265e8b94b43bff18a02c042d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 95bf4decec3c47840604cc82912f49ec984dc481
2017-07-17 14:25:51 -07:00
Josh Matthews
3e06aadbea servo: Merge #17739 - Suppress CSS parser errors for vendor-prefixed properties (from jdm:no-vendor-prefixed-errors); r=emilio
This matches the behaviour of Gecko's CSS parser.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #17736
- [X] There are tests for these changes

Source-Repo: https://github.com/servo/servo
Source-Revision: 38f4ae80c4b456b89ee33543c8c6699501696c9c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1a1909fa1db0e97b0997462f48b23827f84394f0
2017-07-17 07:10:11 -07:00
Emilio Cobos Álvarez
b49ad75e0f servo: Merge #17731 - style: Respect calc for percentages (from emilio:percentage-calc); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 2d37700cf819d901552cfb3954e948f1fbadcf78

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 375b4076885e4a0de0333329409bf6662d2d394b
2017-07-17 01:29:11 -07:00
Emilio Cobos Álvarez
09183a0042 servo: Merge #17751 - style: Fix a typo that makes us resolve styles for the whole spin to the root (from emilio:embarrasing-typo); r=heycam
For undisplayed elements, at least.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3258595cafc95c61e4e3aeb3ac6152ed8a4a86f2
2017-07-16 17:53:41 -07:00
Bobby Holley
497e5345cc servo: Merge #17741 - Trim some fat from the traversal (from bholley:trim_traversal_fat); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1380877

Source-Repo: https://github.com/servo/servo
Source-Revision: 17f99e2a7bb0d7eec167eac952f12a7feafd647d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4e5e24b864f4a1f80808930aa629917de1b44c8d
2017-07-15 15:07:51 -07:00
Pavel Sergeev
13b843b6ce servo: Merge #17745 - rustify if statements style (from SergeevPavel:cleanup); r=emilio
<!-- Please describe your changes on the following line: -->
Rewrite if statement in more rusty style.

---
<!-- 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 #17699 (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: 98836ff30d6c13a49902b7a15324ea94ee062046

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 55e31d5a79278fbf5eb362a356d166bc39835b95
2017-07-15 14:07:19 -07:00
Emilio Cobos Álvarez
8708f24703 servo: Merge #17747 - style: Remove unused ElementStyles::styles_and_restyle_mut (from emilio:more-stuff-going-away); r=wafflespeanut
Never enough code going away.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d78008acb3cd89b35e66a88cd308b2dab8a1e38

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 19e990e27df70b7ae5e1b44a26217448834bb007
2017-07-15 11:11:13 -07:00
Emilio Cobos Álvarez
936015e90b servo: Merge #17746 - style: Remove some no longer needed type arguments (from emilio:always-be-removing-the-ugly); r=wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: c69cc88a6aec5a1bfa0630edf54ab90b0d49deee

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 94c43090a3b0445cc3831d57c557c60e8f7fadf6
2017-07-15 10:04:25 -07:00
Emilio Cobos Álvarez
097003e6f1 servo: Merge #17744 - script: Move the layout_wrapper outside of script (from emilio:ensure-data); r=nox
This allows us to have ensure_data() and clear_data() functions on the TElement
trait, instead of hacking around it adding methods in random traits.

This also allows us to do some further cleanup, which I'd rather do in a
followup.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3497bbbf1d092dd8ab274e21b33b6394afa61d8a

--HG--
rename : servo/components/script/layout_wrapper.rs => servo/components/layout_thread/dom_wrapper.rs
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9f6c194ea4b1056ff3cd3854726a7a5ae43f4aa7
2017-07-15 07:44:08 -07:00
Hiroyuki Ikezoe
951ca9e4d5 servo: Merge #17740 - Post traversal fix triggered by animation-only restyle for event handling (from hiikezoe:post-traversal-fix); r=emilio
<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1371450

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cff83db1f2d332805835091f3e0ebcc38de51e77
2017-07-14 21:07:38 -07:00
Jonathan Chan
944a56812c servo: Merge #17696 - Sync Servo / Gecko image-orientation rounding; pass as enum (from jyc:image-orientation-redux); r=Manishearth
Make Servo's rounding of image-orientation values agree with Gecko's,
and pass orientations directly as an enum instead of as angles.

Depends on a Gecko change to be subsequently landed in m-c.

Were reviewed here: https://reviewboard.mozilla.org/r/155336/

<!-- 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 [Bugzilla Bug 1355380](https://bugzilla.mozilla.org/show_bug.cgi?id=1355380) (github issue number if applicable).

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

<!-- 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: 3fb309c7554e1a2ee2917348da8572e9b6d98c98

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 27b98eb71173b396b0cbe4aa13a8002b3cfa8736
2017-07-14 18:54:45 -07:00
Nazım Can Altınova
190ffe6d00 servo: Merge #17737 - Convert TrackList's values field to store only TrackSize (from canaltinova:same-grid-but-better); r=Manishearth,wafflespeanut
It was storing both TrackSize and TrackRepeat before and TrackRepeat have to be
converted into sequence of TrackSize during serialization. Instead of doing this
in serialization process(which is hard and hacky), we converted to do this in
parsing process. We were doing this conversion in the ComputedValue conversion.
So we only had to move this process to parsing.

---
<!-- 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: 124a23b207d645d994eddc27efd409c22dc0aa28

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 84c1504441a37d5fd8a9acbe9c9b1cae2cae56b6
2017-07-14 16:50:04 -07:00
Emilio Cobos Álvarez
8535bd87be servo: Merge #17732 - style: Simplify font_size::SpecifiedValue::as_font_ratio (from emilio:font-size-as-ratio); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: bb0c05dd2b4b81dfe86931c5e2dadcb1af11992d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cb612b2ed443ef07d5db9a7a3370647976405ca2
2017-07-14 05:01:48 -07:00
Emilio Cobos Álvarez
3d05394757 servo: Merge #17729 - stylo: Honor cursor: progress (from emilio:cursor-progress); r=heycam
Gecko maps it to NS_STYLE_CURSOR_SPINNING:

http://searchfox.org/mozilla-central/rev/cbd628b085ac809bf5a536109e6288aa91cbdff0/layout/style/nsCSSProps.cpp#1217

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e68eedb21736e3c72bed939db34515766b03b155
2017-07-14 03:04:38 -07:00
bors-servo
a480d9ea0b servo: Merge #17728 - Reuse bloom filter and style sharing cache across traversals (from emilio:reuse-allocs); r=bholley,emilio
This relands #17701, with a fix for the test failures.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c766e6a5e7cb14d45b722f73fb6b63b1f50d97e2
2017-07-14 02:02:55 -07:00
Emilio Cobos Álvarez
430c593c07 servo: Merge #17713 - style: Kill some style sharing code (from emilio:less-code-is-lovely); r=heycam
It's trivial to do so after #17688.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 13330c26af646ba7d48b10fbcc90cc02272e145c
2017-07-14 00:25:37 -07:00
Cameron McCormack
4c463396c0 servo: Merge #17724 - add support for Gecko style difference noticing custom property changes (from heycam:custom-props); r=emilio
From https://bugzilla.mozilla.org/show_bug.cgi?id=1380224.

Source-Repo: https://github.com/servo/servo
Source-Revision: 59f00f58260f935e20a30800eb6d13841cface56

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8a3509e987a8e81e9a1ba4d3d95c68f64e770caf
2017-07-13 23:21:30 -07:00
Xidorn Quan
8f9a97253f servo: Merge #17722 - Implement style adjustments for ruby (from upsuper:ruby-fixup); r=heycam,bz
This is the Servo side changes of [bug 1378287](https://bugzilla.mozilla.org/show_bug.cgi?id=1378287) and [bug 1364274](https://bugzilla.mozilla.org/show_bug.cgi?id=1364274).

Source-Repo: https://github.com/servo/servo
Source-Revision: 18c5ba108d6d2afa00af1d267c03a900c434b87d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 58312eb24c5ea3621546a751f8285256ded37c32
2017-07-13 20:02:36 -07:00
Emilio Cobos Álvarez
5f2967be65 servo: Merge #17716 - style: Don't early return before updating the root font-size (from emilio:reconstruct-root); r=heycam
We never use the reconstruct path for the root, but feels less handwavy.

Source-Repo: https://github.com/servo/servo
Source-Revision: 394921e33cf9e9d83a7f25d30f007aa1fd0b8179

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 78fa4cd653c238a28e1840bae789cb24b2b5ac4c
2017-07-13 18:57:47 -07:00
Emilio Cobos Álvarez
b6e3f777cc servo: Merge #17717 - style: Don't stop looking at the sharing cache for various reasons (from emilio:style-sharing-stop); r=bzbarsky
All the information that made those failures expensive is now lazily computed
and cached, or eagerly computed anyway, so seems not worth to stop iteration.

Source-Repo: https://github.com/servo/servo
Source-Revision: 788ba8ccf0fee481ab051866704e01ac74872e31

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e2e8144891ff3f8fb41fba38fbc1f37f5c781693
2017-07-13 15:05:07 -07:00
Simon Sapin
da04cde7ad servo: Merge #17703 - Reduce amount of Mako-generated code in style (from servo:code-size); r=emilio
In multiple places, instead of generated similar code for each CSS property, have a single code path that uses an enum such as `LonghandId`.

Fix https://bugzilla.mozilla.org/show_bug.cgi?id=1377262

Machine code size is measured with [bloaty](https://github.com/google/bloaty), looking at the total "VM size" in order to exclude debug info (which is stripped in binaries shipped to users).

```
mach build-geckolib --release
bloaty target/geckolib/release/libgeckoservo.a
```

Initial size was 9.56Mi. Successive commits in this PR bring it to 9.55Mi, 9.51Mi, 9.44Mi, 9.31Mi, 8.89Mi, 8.89Mi, and 7.54Mi. Total savings: 2.02 MiB.

In an optimized Firefox build with `mach build && mach package`, the size of `obj-x86_64-pc-linux-gnu/dist/firefox/libxul.so` goes from 109.11 MiB to 107.49 MiB, saving 1.62 MiB. I don’t really know how to explain the difference. Does `libgeckoservo.a` contain code that ends up not being used in `libxul.so`?

Source-Repo: https://github.com/servo/servo
Source-Revision: 68ae7ceff6e95f1008c6f32f240c1601e5d440d1

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3900ed70ecca1e3e31b627dec0264b8598c16bac
2017-07-13 08:51:55 -07:00
Fernando Jiménez Moreno
34423fbf4a servo: Merge #17711 - Implement serialization of linear-gradient the same ways as in Gecko (from ferjm:bug1367274.linear.gradient); r=xidorn
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

From https://bugzilla.mozilla.org/show_bug.cgi?id=1367274

Source-Repo: https://github.com/servo/servo
Source-Revision: 347cbb0635c0f1fea581ed3c3d686bdacc3bc334

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2b03e79ac61cbc6efaf7afc63ccb99b06afea04c
2017-07-13 05:17:06 -07:00
Emilio Cobos Álvarez
be09f143b8 servo: Merge #17707 - stylo: Waste less memory in invalidation stuff and style rules (from emilio:invalidation-less-memory); r=heycam
This should help a lot with https://bugzilla.mozilla.org/show_bug.cgi?id=1380488.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9515abbca396c176e6a5c603a193573ac0cb9e33

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a4601778f9a782387203cceb70efe733848cee16
2017-07-13 04:15:15 -07:00
Emilio Cobos Álvarez
781f10d63c servo: Merge #17710 - Revert "Auto merge of #17701 - bholley:reuse_allocations, r=emilio" (from emilio:revert-bloom-sharing); r=heycam
This reverts commit ebfc8f585834948f9b7564ffe382a6e266edf738, reversing
changes made to 5585ff2c440dc27c8e98e834c9c0e9d956581b8e.

Animation code can reenter and create a new TLS context from the traversal
SequentialTask, so this won't work as written, and it's making test fails.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d74ae890b31fc45452ae60af7d89573fc52a86f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b993fffb20fc8371a4aa42163e6712b9f1ebf33d
2017-07-13 01:26:34 -07:00
Xidorn Quan
2874d1cbf0 servo: Merge #17702 - Avoid random python address to be added to generated files (from upsuper:python-addr-in-generated); r=emilio
This would catch cases like #17691 and avoid regressing [bug 1380327](https://bugzilla.mozilla.org/show_bug.cgi?id=1380327) in this manner.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9451b41d33d00016cfd45b0c4fc7a999a83169a9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8eb9d421cd2d075e24fecfae662ff8923db21394
2017-07-12 23:34:58 -07:00
Emilio Cobos Álvarez
239b85400b servo: Merge #17705 - style: Avoid parsing negative padding in the padding shorthand (from emilio:neg-padding); r=bholley
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1380492

Source-Repo: https://github.com/servo/servo
Source-Revision: 28abeab5a5c812c489ce676fced9c5c71f9de4e9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0587bddfb7b06ee3b289f32ff0bef426be56fc82
2017-07-12 20:11:45 -07:00
Bobby Holley
79095a47fc servo: Merge #17701 - reuse the bloom filter and style sharing cache across traversals (from bholley:reuse_allocations); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1380198

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 801ddbd5ca171d665dba3c02644c69f7d76af353
2017-07-12 16:48:19 -07:00