Граф коммитов

11579 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 07c301c809 No bug - Make servo-tidy happy. r=me
MozReview-Commit-ID: HDlgkGdvdBg
2018-05-15 12:09:25 +02:00
Emilio Cobos Álvarez add7370903 Bug 1442195: Don't crash when finding an unexpected default font type. r=xidorn
For now just return sans-serif, though as the FIXME comment indicates we should
probably just carry around the font-name instead.

MozReview-Commit-ID: CIPbV3R5Ul

--HG--
extra : rebase_source : ce8666e747341d203d655e937501806c1646331b
2018-05-14 15:19:34 +02:00
Emilio Cobos Álvarez a6a7ba02de Bug 1461288: Distinguish between specified and computed URLs. r=xidorn
This is needed to serialize computed URLs correctly from getComputedStyle.

MozReview-Commit-ID: 9wakhqNrszb

--HG--
extra : rebase_source : 7d120ac0917a5e13de4e52b7dfa0d784495fd8f7
2018-05-14 12:29:40 +02:00
Emilio Cobos Álvarez 4ac7b84022 Bug 1461296: Ensure all lonhands have a working clone(), and to_css. r=xidorn
This removes some dubious font-family code too.

It ensures that vector longhands have a proper clone implementation
auto-generating it using `collect()`.

MozReview-Commit-ID: FkdnbTkeF6E

--HG--
extra : rebase_source : 8574eda5b65be614fc2daea8b2ded4c09f0a186e
2018-05-14 12:40:31 +02:00
Emilio Cobos Álvarez f78be9e725 Bug 1460655: Support x as a resolution unit. r=xidorn
MozReview-Commit-ID: TjU0FLCLMN

--HG--
extra : rebase_source : 63da5bdd570587f82b370e8819d9e0fc7220e9c2
2018-05-10 18:11:52 +02:00
Emilio Cobos Álvarez 3cb1708084 Bug 1460655: Make resolutions more like the rest of the CSS values. r=xidorn
MozReview-Commit-ID: 3Gt8VX1KhjC

--HG--
extra : rebase_source : 10521fb5ec015f9e76456e20cc279808668486ba
2018-05-10 18:06:27 +02:00
Kristen Wright 031610cc8e Bug 1459367 - Convert NS_STYLE_IMAGELAYER_ATTACHMENT_* to enum class. r=manishearth
Converted NS_STYLE_IMAGELAYER_ATTATCHMENT_* vals to enum class, StyleImageLayerAttachment.
2018-05-08 15:05:33 -07:00
Emilio Cobos Álvarez a5e7a3aec3 Bug 509958: Unprefix :-moz-selection. r=dbaron,xidorn
Our implementation is totally not what the spec says, but totally what other
UAs do, see https://github.com/w3c/csswg-drafts/issues/2474.

So given this is causing webcompat pain, I think we should be pragmatic and just
unprefix this.

We could keep serialization and getComputedStyle with ::selection working with a
bit more effort, like we do for :-moz-placeholder, but I'd prefer not doing at
least the serialization bit, and just alias in nsCSSPseudoElements
:-moz-selection to selection too.

MozReview-Commit-ID: 6lxctozRDqv
2018-05-10 17:19:25 +02:00
Xidorn Quan 38152a41e1 Bug 1460192 - Rename pointing to inherited_ui. r=heycam
And also merge values::*::pointing into values::*::ui.

MozReview-Commit-ID: FM4gWEszahB

--HG--
rename : servo/components/style/properties/longhand/pointing.mako.rs => servo/components/style/properties/longhand/inherited_ui.mako.rs
rename : servo/components/style/values/generics/pointing.rs => servo/components/style/values/generics/ui.rs
extra : rebase_source : c69db288acdf60b2e480a61dc6637b427aa9a5e3
2018-05-09 16:07:36 +10:00
Xidorn Quan 8de2621296 Bug 1454591 part 3 - Consistently use top-right-bottom-left order for physical sides. r=heycam
MozReview-Commit-ID: 6pLRSO8YNDI

--HG--
extra : rebase_source : 4c8ce8560c2112d2378a12b34ae2241e2e25eed4
2018-05-04 15:15:56 +10:00
Emilio Cobos Álvarez 0baa408319 Bug 1459436: Remove a useless unit test that no longer compiles. r=emilio
We have WPT and integration tests for the functionality in mozilla-central.

MozReview-Commit-ID: L0vdF3tfT83
2018-05-05 18:07:56 +02:00
Emilio Cobos Álvarez 71a7af886c Bug 1459436: Remove some unneeded cfg(..). r=emilio
The less not-compiled code in common builds, the better for everybody.

MozReview-Commit-ID: 3JQfz6AYhPG
2018-05-05 18:07:46 +02:00
Emilio Cobos Álvarez d6f79cd48e Bug 1459436: Implement Debug for KeyframeAnimationStyle by hand. r=emilio
The ComputedValues format is huge and unneeded.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 44OuCMWJPLk
2018-05-05 18:07:37 +02:00
Emilio Cobos Álvarez 6ee6a58a0f Bug 1459436: Fix servo build. r=emilio
MozReview-Commit-ID: Ex5RKgPgd8x
2018-05-05 18:07:28 +02:00
Emilio Cobos Álvarez 68affa51a4 Bug 1459436: Fix tidy issues. r=emilio
MozReview-Commit-ID: KXInHzAiiD8
2018-05-05 18:07:18 +02:00
Emilio Cobos Álvarez 73331875c7 Bug 1458814: followup: remove some unused imports. r=me
MozReview-Commit-ID: KMmH0ATu5Df
2018-05-05 17:55:52 +02:00
Emilio Cobos Álvarez 27ca8b58c8 Bug 1458814: Remove code that is no longer called. r=hiro
Au revoir!

MozReview-Commit-ID: DjqszUSIzXs
2018-05-05 16:31:20 +02:00
Emilio Cobos Álvarez ceca84ff64 Bug 1458814: Remove a bit of trivially dead code. r=hiro
MozReview-Commit-ID: GG41v4TejBU
2018-05-05 16:31:19 +02:00
Emilio Cobos Álvarez d7f92df0f2 Bug 1458814: Make SMIL values not roundtrip through strings. r=hiro
MozReview-Commit-ID: DpbFSutIv3t
2018-05-05 16:31:17 +02:00
Xidorn Quan 5bba37b212 Bug 1457524 part 4 - Allow 16% false positives in test bloom::create_and_insert_some_stuff. r=heycam
It seems that the result of hash algorithm used in bloom filter depends
on the pointer length. On 64bit platforms, there are 135 false positives
in the first part of that test, and 8 in the second part. However, on
32bit platforms, the numbers become 157 and 16 correspondingly.

16 is still less than 20% in the second part, so all fine, but 157 is
slightly larger than 15% in the test assertion. Given it is what we are
shipping, we probably should just accept this and loosen the assertion.

MozReview-Commit-ID: 9kFXBzLFAzE

--HG--
extra : rebase_source : 41fa45dc3c59b2f44d33bdbe86b3eb2e29a31319
2018-05-02 21:07:07 +10:00
shindli 8fad8a2218 Merge inbound to mozilla-central. a=merge 2018-05-04 11:35:37 +03:00
Noemi Erli 6e6ddaaf1f Backed out 4 changesets (bug 1458814) for failres in builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/smil/style/anim-css-strokewidth-1-to-pct-pct.svg on a CLOSED TREE
Backed out changeset d0990dff4fc4 (bug 1458814)
Backed out changeset c61d211a9f1d (bug 1458814)
Backed out changeset e7f7ea7ab4af (bug 1458814)
Backed out changeset 9ac18a3eeaa5 (bug 1458814)
2018-05-04 08:39:52 +03:00
Ciure Andrei 9be98c9d63 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-04 00:56:01 +03:00
Jonathan Watt cfe84bdd1c Bug 1458219 - Remove the 'property_name' macro. r=xidorn 2018-04-25 14:54:26 +01:00
Emilio Cobos Álvarez 391b338b94 Bug 1457678: Make the font canvas code not mess with the rule tree. r=xidorn,hiro
Inserting a lot of rules in the root level is super-inefficient. This fixes it
by not doing it.

It gives the root rule node to the style, but that's fine, since it's useless.
All this code-path is already pretty messy.

MozReview-Commit-ID: GoGHI4YJbKr
2018-05-04 05:50:21 +02:00
Emilio Cobos Álvarez a3a9886c6b Bug 1458814: Remove code that is no longer called. r=hiro
Au revoir!

MozReview-Commit-ID: DjqszUSIzXs

--HG--
extra : rebase_source : b81bb905449eb1e4d7cbc1094da9a151011b0350
2018-05-03 18:47:47 +02:00
Emilio Cobos Álvarez 0566c42687 Bug 1458814: Remove a bit of trivially dead code. r=hiro
MozReview-Commit-ID: GG41v4TejBU

--HG--
extra : rebase_source : 5dc1f255178ae723eed47ec3fdbd6595fa84da62
2018-05-03 18:41:17 +02:00
Emilio Cobos Álvarez d97d041be2 Bug 1458814: Make SMIL values not roundtrip through strings. r=hiro
MozReview-Commit-ID: DpbFSutIv3t

--HG--
extra : rebase_source : 034bb584fcb3f6b67a6b38f70149e167ba0c300c
2018-05-03 18:27:44 +02:00
Emilio Cobos Álvarez da45aa5fed Bug 1458927: Fix perspective squared distance computation. r=hiro
MozReview-Commit-ID: YwjTheRonB

--HG--
extra : rebase_source : d3734aad5d37dda1ccaf24f1f84e2f0972e45f5d
2018-05-03 17:43:30 +02:00
Emilio Cobos Álvarez b448f93568 Bug 1458715: followup: don't fix distance computation so fast. r=me
On a CLOSED TREE

MozReview-Commit-ID: 1Y3As81hnRx
2018-05-03 17:38:42 +02:00
Emilio Cobos Álvarez b22479d43d Bug 1458715: Fix perspective interpolation. r=hiro
It's not sound to insert random matrices in random positions in the transform
operation list.

I cannot make any sense of what the old code was trying to do.

MozReview-Commit-ID: 5BtCiueEPlR
2018-05-03 16:45:07 +02:00
Emilio Cobos Álvarez c556ec7ad0 Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez 2a42c4ed18 Bug 1457920: Merge ServoStyleSheet and StyleSheet. r=xidorn
These are the most minimal changes I could make. More cleanups incoming.

MozReview-Commit-ID: AdMOA1acQIH
2018-05-02 04:13:10 +02:00
Emilio Cobos Álvarez adc46229a3 Bug 1018269: Handle Shadow DOM in keyframes lookup. r=heycam
MozReview-Commit-ID: AeUmsOHOUYR
2018-05-01 13:01:23 +02:00
Emilio Cobos Álvarez 8da32ee8b3 Bug 1457635: Remove values::Verbatim. r=xidorn
No point of having two things that do the same.

MozReview-Commit-ID: Do1L4bvOeVQ
2018-04-30 05:10:48 +02:00
Emilio Cobos Álvarez 3058209ae5 Bug 1457635: Move represents_keyword to the css attributes. r=xidorn
MozReview-Commit-ID: 21yuU4h34AQ
2018-04-30 05:10:37 +02:00
Emilio Cobos Álvarez 42257e0c21 Bug 1457332: Derive ToCss for Counters. r=xidorn
MozReview-Commit-ID: 1jOglcqt1Dd
2018-04-30 05:10:22 +02:00
Xidorn Quan f2ba299166 Bug 1448759 part 1 - Make KTableEntry an independent type. r=heycam
MozReview-Commit-ID: oZfJAigThN

--HG--
extra : rebase_source : 6a0efbf40fed8c9eaba7bb3af74d281b536677c8
2018-04-29 21:17:26 +10:00
Emilio Cobos Álvarez b52948e2af No bug - Fix tidy issues and Servo build, and fix unit test bustage. r=me
MozReview-Commit-ID: 7MFLnVZmZUg
2018-04-29 05:20:27 +02:00
Emilio Cobos Álvarez c2ca86b566 No bug - Change the configuration of some properties for servo. r=me
MozReview-Commit-ID: FxJQrXziRK0
2018-04-29 02:43:47 +02:00
Emilio Cobos Álvarez 289dbdc04a No bug - Derive an attribute for servo. r=me
MozReview-Commit-ID: DQBJeg3xbuM
2018-04-29 02:30:59 +02:00
Emilio Cobos Álvarez 4fa6110947 No bug - Reorder an import to sync with servo. r=me
MozReview-Commit-ID: 4BLELl3T54p
2018-04-29 02:29:39 +02:00
Emilio Cobos Álvarez 3485ba7bff No bug - Get rid of an import and sync with servo. r=me
MozReview-Commit-ID: 5aGNna6ulsM
2018-04-29 02:29:36 +02:00
Emilio Cobos Álvarez afc1297f6d No bug - sync some changes from servo. r=me
MozReview-Commit-ID: HyRI5CfZh5w
2018-04-29 01:59:00 +02:00
Xidorn Quan 9d288a4ae2 Bug 1434130 part 12 - Manually implement collect_completion_keywords for some types. r=emilio
MozReview-Commit-ID: 6T35uylxgho

--HG--
extra : source : b638793227b9f6317b540670227d68ad90a76173
2018-04-29 09:03:31 +10:00
Xidorn Quan c873376fd5 Bug 1434130 part 11 - Add some attributes for SpecifiedValueInfo to help deriving more from types. r=emilio
MozReview-Commit-ID: IyohSTbUO31

--HG--
extra : source : 2af95ecd7e1f48bf54a93573a68a9d3f29393e42
2018-04-29 09:03:31 +10:00
Xidorn Quan cd8a6cc5fc Bug 1434130 part 10 - Handle keywords for color values. r=emilio
MozReview-Commit-ID: 5GvIHSeQuCX

--HG--
extra : source : 524796e355b2221343b96a77c7a00abd2eb41af7
2018-04-29 09:03:31 +10:00
Xidorn Quan bb381a4356 Bug 1434130 part 9 - Use unified list for TextDecorationLine and implement its SpecifiedValueInfo. r=emilio
MozReview-Commit-ID: 2sCnK1AecFk

--HG--
extra : source : adc038d9c64ae32ca74ecaa46ca5cf0b9d5fdb77
2018-04-29 09:03:31 +10:00
Xidorn Quan ab9de25533 Bug 1434130 part 8 - Have TextAlign derive ToCss and unship char value from it. r=emilio
MozReview-Commit-ID: CXDnyqzjQkq

--HG--
extra : source : a78f97b583f55fb2373d9629b16883584d93cfd1
2018-04-29 09:03:31 +10:00
Xidorn Quan 2cddea6516 Bug 1434130 part 7 - Have Parse derive respect #[css(skip)] on variant as well and derive Parse for KeywordSize. r=emilio
MozReview-Commit-ID: evSvk1RQGe

--HG--
extra : source : 19f96541b1c1d147d92bf055b36abe4a7ed5c43d
2018-04-29 09:03:31 +10:00
Xidorn Quan 46ea7a41bd Bug 1434130 part 6 - Allow shorthands to specify their own impl of SpecifiedValueInfo and manual impl it for font and border. r=emilio
MozReview-Commit-ID: 3B9OfkWU0Eq

--HG--
extra : source : fe72d293e8420ddb903883fb6c0b5970aead6a26
2018-04-29 09:03:31 +10:00
Xidorn Quan 7fc9b978c6 Bug 1434130 part 5 - Derive ToCss for values::generics::font::KeywordSize. r=emilio
MozReview-Commit-ID: 9ek3PcqYiU3

--HG--
extra : source : 29990f9171efe771ea4d09fd129d37a4a1ec3870
2018-04-29 09:03:31 +10:00
Xidorn Quan af03b6b3eb Bug 1434130 part 4 - Use unified lists to impl several bitflag font-variant properties. r=emilio
This also changes their ToCss impl to use SequenceWriter instead of
checking has_value manually.

SpecifiedValueInfo for those types are also implemented in this patch.

MozReview-Commit-ID: 23h2VWS417H

--HG--
extra : source : f2c10917b105912bbe5fa06a986bbce08ebceac4
2018-04-29 09:03:31 +10:00
Xidorn Quan 9842a32733 Bug 1434130 part 3 - Add SequenceWriter::item_str for writing str items. r=emilio
This will be used in the next patch for font-variant bitflag types.

MozReview-Commit-ID: 2IvcsnYBNqA

--HG--
extra : source : a4cd0a8db99c2a46af183d44807dffb2a1a88e3f
2018-04-29 09:03:31 +10:00
Xidorn Quan aa75ec745f Bug 1434130 part 2 - Add collect_values function to SpecifiedValueInfo trait for collecting possible values. r=emilio
This is the basic structure of the stuff. Following patches will fill
the gap between Gecko and Servo on value generating, and finally hook
it into InspectorUtils.

MozReview-Commit-ID: KNLAfFBiY6e

--HG--
extra : source : e9e5d72857746710ead3cd42481b805efc771389
2018-04-29 09:03:31 +10:00
Xidorn Quan 0192f05add Bug 1434130 part 1 - Skip system font variant for ToCss in font subproperties. r=emilio
System font keywords are not a valid value for those properties.

The newly-added #[css(skip)] would be reused by deriving algorithm of
SpecifiedValueInfo to skip them as well.

MozReview-Commit-ID: EmnhkaA9RR5

--HG--
extra : source : d2fc92ed32f497ff6826228181b19787c1b48cc4
2018-04-29 09:03:31 +10:00
Emilio Cobos Álvarez 1915a41571 Bug 1457652: Fix serialization order of the outline shorthand. r=xidorn
This is going to be tested in
https://github.com/w3c/web-platform-tests/pull/10700.

MozReview-Commit-ID: 7Oi1it70YFw
2018-04-28 15:41:17 +02:00
Dorel Luca 69408b00d8 Backed out changeset 2a03e9effe84 (bug 1457652) for WPT failures on /css/cssom/shorthand-values.html 2018-04-28 14:54:16 +03:00
Emilio Cobos Álvarez 573ab1cdee Bug 1457652: Fix serialization order of the outline shorthand. r=xidorn
This is going to be tested in
https://github.com/w3c/web-platform-tests/pull/10700.

MozReview-Commit-ID: 7Oi1it70YFw

--HG--
extra : rebase_source : 4c4e738ceaec32750ae0c5aa0308c17346806b3a
2018-04-28 09:41:48 +02:00
Cosmin Sabou db4c6f9696 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-27 13:13:54 +03:00
Gerald Squelart 89f75361b3 Bug 1417761 - Remove "layout.css.text-combine-upright.enabled" pref - r=xidorn
Shipped since Firefox 48, other browsers have similar impls, and the related
spec has been in CR since a while ago.
The syntax of this property as implemented should be considered to be pretty
stable, so we can remove this pref.

MozReview-Commit-ID: H7lDsdbUamD

--HG--
extra : rebase_source : fda63805d9dea49a55d57153c841426508a882f6
2018-04-27 11:31:25 +10:00
sotaro 666719aa81 Bug 1456350 - Forward webrender error log to gfxCriticalNote r=bholley 2018-04-27 16:48:39 +09:00
Emilio Cobos Álvarez c5da849604 Bug 1457026: followup: Skip a rustest that depends on include order and isn't super-useful. r=bholley on a CLOSED TREE
MozReview-Commit-ID: 3lwAyl8aztW
2018-04-26 19:16:52 +02:00
Andreea Pavel a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
Xidorn Quan cd1312cc66 Bug 1455576 part 3 - Use Servo side data to back InspectorUtils::CssPropertySupportsType. r=emilio
The only difference in the final result is "all" shorthand, for which
the original result is wrong because "all" shorthand doesn't accept any
value other than the CSS-wide keywords.

MozReview-Commit-ID: BmT7kGwC0ZQ

--HG--
extra : rebase_source : 094d764007359cb928f4c31a3818448f254a4043
extra : source : 10d25cf7b4ff2b5615a638031f98dc6163708545
2018-04-26 09:01:02 +10:00
Xidorn Quan 68b65ee807 Bug 1455576 part 2 - Add a ValueInfo trait for exposing types needed by devtools. r=emilio
Most of types just derive it using proc_macro directly. Some of value
types need manual impl.

In my current plan, this new trait will be used in bug 1434130 to expose
values as well.

MozReview-Commit-ID: LI7fy45VkRw

--HG--
extra : rebase_source : a765e43b0c615e5f47bddb90ba6fa24bfc06959e
extra : source : 60812c1b190d90602bc6d49477fe1f558a53cd51
2018-04-26 09:01:02 +10:00
Emilio Cobos Álvarez 986f7acaf7 No bug - Cherry-pick servo build fixes for style and fix style unit tests. r=me
MozReview-Commit-ID: 857HqA1oK66
2018-04-25 16:51:29 +02:00
Emilio Cobos Álvarez ec8bd0a587 Bug 1456471: Unify MediaList and ServoMediaList. r=xidorn
MozReview-Commit-ID: KFWxoohpGlb
2018-04-25 10:37:04 +02:00
Brad Werth a8b478eae0 Bug 1265342 Part 0: Servo changes to add shape-margin. r=xidorn
MozReview-Commit-ID: 99pLZsFA9mj

--HG--
extra : rebase_source : 0bae04ddf428eb8ee54d91d13401b756b9951cfd
2018-02-08 11:00:56 -08:00
Bobby Holley e7c9ddc0cf Bug 1455784 - Update StyleSource to use ArcUnion. r=Manishearth
MozReview-Commit-ID: AT4sud9goGV
2018-04-25 09:23:01 -07:00
Bobby Holley fd27f59cc5 Bug 1455784 - ArcUnion. r=Manishearth
MozReview-Commit-ID: Jxp2A7cj6CV
2018-04-25 09:22:49 -07:00
Narcis Beleuzu a07765b336 Backed out 20 changesets (bug 1265342) for mochitest-plain-headless failures on layout/style/test/test_first_letter_restrictions.html. CLOSED TREE
Backed out changeset 6c80ec2d0398 (bug 1265342)
Backed out changeset 62d571916086 (bug 1265342)
Backed out changeset fd247f38f8a7 (bug 1265342)
Backed out changeset 83aee3dafe4b (bug 1265342)
Backed out changeset 9b200122014e (bug 1265342)
Backed out changeset a90aa063b2fd (bug 1265342)
Backed out changeset 0791ff3d9194 (bug 1265342)
Backed out changeset 7109288f10b3 (bug 1265342)
Backed out changeset 048cce2fb99f (bug 1265342)
Backed out changeset c8e3dbc6c729 (bug 1265342)
Backed out changeset 09da0968333a (bug 1265342)
Backed out changeset d16f7ff85677 (bug 1265342)
Backed out changeset 53eb7f14463d (bug 1265342)
Backed out changeset 64fc631ef122 (bug 1265342)
Backed out changeset 332382c708e1 (bug 1265342)
Backed out changeset a8695981eec0 (bug 1265342)
Backed out changeset ce473fa5f1f4 (bug 1265342)
Backed out changeset 5ee470e75a53 (bug 1265342)
Backed out changeset 802aa95a52d9 (bug 1265342)
Backed out changeset 5da0c34c9600 (bug 1265342)
2018-04-24 22:31:15 +03:00
Brad Werth ccd77e590d Bug 1265342 Part 0: Servo changes to add shape-margin. r=xidorn
MozReview-Commit-ID: 99pLZsFA9mj

--HG--
extra : rebase_source : 5f97af5d405bbec811b166326ebeb4c09e7cf9a8
2018-02-08 11:00:56 -08:00
Margareta Eliza Balazs fa0ffa186e Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 14:51:28 +03:00
Mats Palmgren 314470600f Bug 1398482 part 1 - [css-grid][css-flexbox][css-multicol] Add 'row-gap' and 'gap' properties; make 'grid-[column|row]-gap' and 'grid-gap' alias the respective unprefixed properties (Stylo part). r=emilio
This also makes 'normal' the initial value for the grid-*
properties, per:
https://github.com/w3c/csswg-drafts/issues/2294#issuecomment-369313438
2018-04-24 01:52:51 +02:00
Emilio Cobos Álvarez 158c258b7e Bug 1426516: Remove Valgrind workaround to make ::slotted use the rule hash. r=me
MozReview-Commit-ID: 2q14kHjajIr
2018-04-23 20:37:11 +02:00
Emilio Cobos Álvarez 4939ae347e Bug 1455032: Pack the shadow cascade order in ApplicableDeclarationBlock. r=heycam
I didn't bother not shifting there. We need to load the whole thing and shift
for at least one of cascade level / shadow cascade order.

Callers of level() other than for_rule_tree are non-existent in release builds,
so we'd be doing the shift anyway. I can implement the same thing for
shadow_cascade_order too, but I don't think that optimization is measurable in
any way, either, the compiler should make the decision.

And just in case, the simpler version actually generated less instructions in:

  https://play.rust-lang.org/?gist=ceadb0d3cbce4eeca76e4d9ab9a1c744&version=nightly

with the simple thing.

MozReview-Commit-ID: 8xPBJmlcyKh
2018-04-24 10:44:57 +02:00
Emilio Cobos Álvarez 6064fc5ef9 Bug 1454883: Only parse font-stretch keywords in the font shorthand. r=xidorn
MozReview-Commit-ID: 4BqnOSz83w4
2018-04-23 18:22:08 +02:00
Jonathan Watt 156c4af1ec Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Emilio Cobos Álvarez 0c4a2fffdf Bug 1455358: Cleanup (a bit) system font copypasta. r=xidorn
If I had to write that again I would've killed myself :).

This is still not perfect, and the system font code is still quite a mess, but
well, little steps.

MozReview-Commit-ID: BmrZlCSejo7
2018-04-23 16:56:58 +02:00
Emilio Cobos Álvarez 5f8d28da11 Bug 1455358: Fix clamping on animations. r=xidorn
MozReview-Commit-ID: Awyub0dMOmq
2018-04-23 16:56:57 +02:00
Emilio Cobos Álvarez e826b60e6a Bug 1455358: Use a generic type in preparation to fix animation. r=xidorn
Apart from a bit more code reuse.

MozReview-Commit-ID: 2BNOK6v30lX
2018-04-23 16:56:56 +02:00
Emilio Cobos Álvarez 5aeef4886f Bug 1455358: Update font-style to css-fonts-4. r=xidorn
This patch is meant to be squashed with the following two. This is an initial
strawman implementation that I wrote to unblock jwatt, cleanups and fixes
follow.

Note that this is style pretty much untested until jwatt's patches are ready,
since Gecko doesn't understand the angle at all, but I expect the fixes to be
minor.

MozReview-Commit-ID: 1Nq5DyCjaZe
2018-04-23 16:56:56 +02:00
Emilio Cobos Álvarez 5403bc5d9c Bug 1454883: Update font-stretch to css-fonts-4. r=xidorn
These won't "just work", pending changes from bug 1436048 to use a floating
point representation for those.

MozReview-Commit-ID: Bi5iTdFreMA
2018-04-23 16:56:55 +02:00
Xidorn Quan f3bd200b24 Bug 1455623 part 2 - Not copy generated binding files into dist. r=emilio
MozReview-Commit-ID: GBnkmwjDS8Y

--HG--
extra : rebase_source : 247500457a1f1779ed8a3fd7d43d546e48980e9a
2018-04-21 00:38:08 +10:00
Matt Brubeck 0a2063bcca Bug 1455902: Update to smallbitvec 2.1. r=nox,emilio
This cherry-picks servo commit e3f79d91306655f4cbe3eefe6106b9c10218f464.

MozReview-Commit-ID: JO1wwjFuz5N
2018-04-21 21:49:39 +02:00
Dorel Luca 65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Xidorn Quan abfdb524a5 Bug 1454830 part 3 - Add CAN_ANIMATE_ON_COMPOSITOR in Servo side and propagate it to ServoCSSPropList.h. r=emilio
MozReview-Commit-ID: 2OBCliDY02g

--HG--
extra : rebase_source : 0b292c07ef89c472cfeb7834df83a574641a4c18
2018-04-20 20:32:57 +10:00
Xidorn Quan 3f0e7b7d9e Bug 1454830 part 2 - Add GETCS_NEEDS_LAYOUT_FLUSH flag in Servo side and propagate it to ServoCSSPropList.h. r=emilio
MozReview-Commit-ID: 5k08FWjobCg

--HG--
extra : rebase_source : fdfe0e83fc3e905a420cb877b27179ed58aa1622
2018-04-20 19:13:16 +10:00
Cosmin Sabou 4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
Xidorn Quan e723f6b291 Bug 1454831 - Generate nsCSSPropertyID.h from data file directly. r=emilio
MozReview-Commit-ID: CcX2uzgjWFo

--HG--
rename : layout/style/nsCSSPropertyID.h => layout/style/nsCSSPropertyID.h.in
extra : rebase_source : 441f22dbe019f6ebc879fd21c0dc3d0f6f9cb63a
2018-04-18 19:39:51 +10:00
Noemi Erli 7e6ef531b7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-19 12:58:43 +03:00
Noemi Erli 875e5ed0a1 Merge inbound to mozilla-central. a=merge 2018-04-19 12:53:30 +03:00
Bogdan Tara 6cb59b5809 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-19 01:46:00 +03:00
Emilio Cobos Álvarez 8754b8c870 Bug 1454162: Fix the sizeof tests since they apparently don't run by default. r=me
MozReview-Commit-ID: KhEC1CtBSdo
2018-04-18 19:21:34 +02:00
Emilio Cobos Álvarez 630760c6c7 Bug 1454162: Fix cascade order of !important in Shadow DOM. r=heycam
No cleaner ideas right now that carrying that counter around... Maybe a custom
type may be cleaner?

This makes ApplicableDeclarationBlock a bit bigger. I could probably try to make
the counter a 4 / 5-bit number or something and pack the counter there in the
SourceOrderAndCascadeLevel somehow...

But doesn't seem really worth the churn, and can be done as a followup in any
case. Let me know if you want to block on that.

MozReview-Commit-ID: 1LdW9S4xA6f
2018-04-18 18:27:03 +02:00
Xidorn Quan 113e4d2010 Bug 1452542 part 5 - Generate property list from Servo data. r=emilio,froydnj
With this change, we first generate a data file ServoCSSPropList.py from
Servo data, and then use this data to generate ServoCSSPropList.h.

This change itself serves as a checkpoint with a runtime check that all
information generated from Servo side matches what we have in the Gecko
side. Following patches will start replacing uses of nsCSSPropList.h
with either the data file or the header file.

The reason that it generates data file rather than header directly is
that, many users of PythonCSSProps.h invokes C++ preprocessor manually
to extract data from nsCSSPropList.h without passing in search paths,
so it is non-trivial to replace the use of nsCSSPropList.h there with
a generated header. Generating a Python data file would hopefully
simplify those users rather than adding more complexity to them.

I also thought about generating JSON rather than plain Python file, but
JSON doesn't allow trailing comma in array, which makes it less pretty
to generate via mako template.

MozReview-Commit-ID: CwK2oL88r6F

--HG--
extra : rebase_source : aaf98cfd768740fdd6ac4961fc825d84adaf94a5
2018-04-16 14:08:20 +10:00
Xidorn Quan b894981f8f Bug 1452542 part 4 - Have ENABLED_IN flags in nsCSSPropList.h match those in Servo side. r=emilio
MozReview-Commit-ID: 48t5u1D5rZX

--HG--
extra : rebase_source : fe407e60ecc565f14e2d8568f04f80bfbd7e78c1
2018-04-11 13:46:08 +10:00
Xidorn Quan 08af381c61 Bug 1452542 part 3 - Use snake_case naming for nsCSSPropertyID of alias as well. r=emilio
MozReview-Commit-ID: 242ms8wBDIU

--HG--
extra : rebase_source : 9b87b6fb4f8c95221ffcc6ee363ef138910f518b
2018-04-11 13:44:30 +10:00
Bobby Holley 38a23e8931 Bug 1346988 - Parse sheets on the thread pool. r=bz,r=emilio
Note that we also drop the dead optional aReusableSheets argument from
the async parsing path, since it was always null.

MozReview-Commit-ID: KddpGFdaqEe
2018-04-18 13:52:57 -07:00
Bobby Holley 9cff749db5 Bug 1454460 - Pass a bonafide nsACString to Servo. r=bz
This will allow the Rust code hold a copy-free strong reference to the string
past callstack unwind.

MozReview-Commit-ID: HCop9h2abZU
2018-04-17 16:27:08 -07:00
Csoregi Natalia b31fdd70ba Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-18 01:37:31 +03:00
Csoregi Natalia 12a8bddd95 Merge inbound to mozilla-central. a=merge 2018-04-18 00:52:25 +03:00
Andreea Pavel 1b610a02c9 Backed out 7 changesets (bug 1452542) for failing toolkit/content/tests/chrome/test_arrowpanel.xul on a CLOSED TREE
Backed out changeset f206acff283f (bug 1452542)
Backed out changeset be97e652391f (bug 1452542)
Backed out changeset 4d3a028edaed (bug 1452542)
Backed out changeset 5619bba37cdd (bug 1452542)
Backed out changeset e83a797bdc61 (bug 1452542)
Backed out changeset 255e2feff19f (bug 1452542)
Backed out changeset fac55b1a0706 (bug 1452542)
2018-04-18 20:10:35 +03:00
Xidorn Quan 4eca80828d Bug 1452542 part 5 - Generate property list from Servo data. r=emilio,froydnj
With this change, we first generate a data file ServoCSSPropList.py from
Servo data, and then use this data to generate ServoCSSPropList.h.

This change itself serves as a checkpoint with a runtime check that all
information generated from Servo side matches what we have in the Gecko
side. Following patches will start replacing uses of nsCSSPropList.h
with either the data file or the header file.

The reason that it generates data file rather than header directly is
that, many users of PythonCSSProps.h invokes C++ preprocessor manually
to extract data from nsCSSPropList.h without passing in search paths,
so it is non-trivial to replace the use of nsCSSPropList.h there with
a generated header. Generating a Python data file would hopefully
simplify those users rather than adding more complexity to them.

I also thought about generating JSON rather than plain Python file, but
JSON doesn't allow trailing comma in array, which makes it less pretty
to generate via mako template.

MozReview-Commit-ID: CwK2oL88r6F

--HG--
extra : rebase_source : 926cca8548d42ecb0dd364ea5c52a46a4973e819
2018-04-16 14:08:20 +10:00
Xidorn Quan 2b130b95d1 Bug 1452542 part 3 - Use snake_case naming for nsCSSPropertyID of alias as well. r=emilio
MozReview-Commit-ID: 242ms8wBDIU

--HG--
extra : rebase_source : 548378fc6c8380bf5ca0ecb68e9b7bd624f77236
2018-04-11 13:44:30 +10:00
Emilio Cobos Álvarez 7b41eaf443 Bug 1454596: Update font-weight property and descriptor to css-fonts-4. r=xidorn
Need to change the tests still, but that should be trivial.

MozReview-Commit-ID: 27aS2UrgXjs
2018-04-19 12:49:37 +02:00
Xidorn Quan 17bc121eff Bug 1453258 - Support calc in cursor. r=emilio
MozReview-Commit-ID: 1ZzxkYboWZg

--HG--
extra : rebase_source : 075d3e504dcfc0ba6df4110db79c8769de5a4df7
2018-04-17 21:18:37 +10:00
Brindusan Cristian 667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Xidorn Quan fdb9d8b7d8 Bug 1454528 - Remove trailing underscore of float ident. r=heycam
MozReview-Commit-ID: DN7rQu3adSB

--HG--
extra : rebase_source : c0fb1df20a6612a96abb1e6a74fde61b6ee870f8
2018-04-17 11:07:57 +10:00
Emilio Cobos Álvarez e5e108a524 Bug 1453702: [css-display] Move unboxing to style, and handle display: contents before other suppressions. r=mats,xidorn
This also adopts the resolution of [1] while at it, and switches XUL to not
support display: contents until a use case appears.

This makes our behavior consistent both with the spec and also in terms of
handling dynamic changes to stuff that would otherwise get suppressed.

Also makes us consistent with both Blink and WebKit in terms of computed style.
We were the only ones respecting "behaves as display: none" without actually
computing to display: none. Will file a spec issue to get that changed.

It also makes us match Blink and WebKit in terms of respecting display: contents
before other suppressions, see the reftest which I didn't write as a WPT
(because there's no spec supporting neither that or the opposite of what we do),
where a <g> element respects display: contents even though if it had any other
kind of display value we'd suppress the frame for it and all the descendants
since it's an SVG element in a non-SVG subtree.

Also, this removes the page-break bit from the display: contents loop, which I
think is harmless.

As long as the tests under style are based in namespace id / node name /
traversal parent, this should not make style sharing go wrong in any way, since
that's the first style sharing check we do at [2].

The general idea under this change is making all nodes with computed style of
display: contents actually honor it. Otherwise there's no way of making the
setup sound except re-introducing something similar to all the state tracking
removed in bug 1303605.

[1]: https://github.com/w3c/csswg-drafts/issues/2167
[2]: https://searchfox.org/mozilla-central/rev/fca4426325624fecbd493c31389721513fc49fef/servo/components/style/sharing/mod.rs#700

MozReview-Commit-ID: JoCKnGYEleD
2018-04-16 12:56:30 +02:00
Xidorn Quan 441a45aca4 Bug 1453521 - Support prefs for aliases in Servo side. r=heycam
MozReview-Commit-ID: 8DAFmLDVYlR

--HG--
extra : rebase_source : 6477a01ad81b66f99856e07792d480dcf63ff315
2018-04-12 10:27:43 +10:00
Bobby Holley 0945bafb4a Bug 1454030 - Allow placeholder import sheets. r=emilio
This is necessary because we can't create GeckoStyleSheets off-main-thread,
so we need a placeholder until it can be filled in.

MozReview-Commit-ID: ssRme4fLYg
2018-04-16 15:15:45 -07:00
Jonathan Watt 5a30df0f18 No bug - Fix error name in comment for try_match_ident_ignore_ascii_case. r=nox,emilio
MozReview-Commit-ID: GDejDQE7sj3
2018-04-17 20:35:58 +02:00
Emilio Cobos Álvarez f1793fd0b5 Bug 1454030: followup: Fix Servo build bustage. r=me
DONTBUILD, since code is not part of the build.

MozReview-Commit-ID: KU2sDFDjeNV
2018-04-17 20:33:47 +02:00
Emilio Cobos Álvarez b77d0bdace Bug 1453702: followup: Fix Servo build. r=me
DONTBUILD

MozReview-Commit-ID: 6MklMseUFzO
2018-04-17 20:33:46 +02:00
Kerem Kat 97ece751a4 Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn
--HG--
extra : source : bd0a3fdb037c308ae7eab0be3c68d00fcb9b6056
2018-04-14 19:05:44 +03:00
Coroiu Cristina 4b2644bf85 Backed out 2 changesets (bug 37468) for linting failure at builds/worker/checkouts/gecko/tools/lint/wpt.yml
Backed out changeset 5e7a1db60298 (bug 37468)
Backed out changeset bd0a3fdb037c (bug 37468)
2018-04-15 03:23:36 +03:00
Cosmin Sabou c8235cb81b Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-15 03:05:51 +03:00
Emilio Cobos Álvarez 9083c33e83 Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
MozReview-Commit-ID: B2aYury8K7i
2018-04-14 11:59:06 +02:00
Andreea Pavel 01f50bc3d8 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-14 00:56:30 +03:00
Jonathan Watt 1e7f76576a Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Bobby Holley 5ec8b701fa Bug 1454021 - Make ns{,C}String Sync/Send. r=mystor
MozReview-Commit-ID: DeBOgxxTvBR
2018-04-13 10:11:39 -07:00
Emilio Cobos Álvarez 5dea335a87 Bug 1453148: Let overflow parse two values. r=xidorn
Per https://github.com/w3c/csswg-drafts/issues/2484.

MozReview-Commit-ID: D7M3PhnTtD2
2018-04-12 14:48:55 +02:00
Kerem Kat f2a32c122a Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn
--HG--
extra : amend_source : 2572c4d3ae52d0d4f11344b2611ddf847040da02
2018-04-14 19:05:44 +03:00
Emilio Cobos Álvarez 952f224921 No bug - Remove an unused import. r=me
MozReview-Commit-ID: E92BZF0SnHm
2018-04-17 12:44:28 +02:00
Brindusan Cristian f25eb19816 Backed out changeset 84fc374da5e3 (bug 1453148) for mochitest failures on layout/style/test/test_bug319381.html CLOSED TREE 2018-04-12 10:13:56 +03:00
Emilio Cobos Álvarez d8f9719a5b Bug 1453148: Let overflow parse two values. r=xidorn
Per https://github.com/w3c/csswg-drafts/issues/2484.

MozReview-Commit-ID: D7M3PhnTtD2
2018-04-12 07:56:12 +02:00
Cameron McCormack 04706b50e1 Bug 1453556 - Test commit hook. (NOBUILD) r=heycam
MozReview-Commit-ID: Ll7XlCXEpA2

--HG--
extra : rebase_source : 53ef632df32dc05ad7cefcb923141ed1823e5787
2018-04-12 15:26:50 +10:00
ddh c52d34c9ae servo: Merge #20626 - added spec comments for progressive web metrics (from avadacatavra:pwm-spec); r=asajeffrey
<!-- Please describe your changes on the following line: -->
r? @asajeffrey

---
<!-- 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 build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #20624 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's a comment

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1a0e616e8b4bd2330d8146d11b8c122a9fec9163
2018-04-11 16:33:38 -04:00
Xidorn Quan a97eff5a4d servo: Merge #20619 - Have nscssproperty a method of data instances (from upsuper:properties-data); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 7462eda675e2b19b3890acfaa4ac4f3dd2606bb0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 49b70add2d99e212c629a36d54be0fca0912455b
2018-04-11 14:41:15 -04:00
Connor Brewster f5b1f3bfd6 servo: Merge #20579 - Replace initial about:blank loads (from cbrewster:about_blank_replace); r=asajeffrey
<!-- 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 build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14720 (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: ae117be752a658265fe2f4d0cadd7134b1e23eff

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 35939e48ca07a62059cb496684f9355852a1244d
2018-04-11 11:12:52 -04:00
Emilio Cobos Álvarez 532399b51c servo: Merge #20620 - style: Simplify ImageValue (from emilio:imagevalue); r=heycam
Bug: 1452987
Reviewed-by: heycam
MozReview-Commit-ID: 5LRaaEPSSdY
Source-Repo: https://github.com/servo/servo
Source-Revision: 5182c81c116d114b33e4cf4ddb2ef13474dd843a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0819925e8b70914e3c7f1cc631035c7f9394e344
2018-04-11 03:52:46 -04:00
Bobby Holley b515de0c66 servo: Merge #20603 - Run rustfmt on selectors, servo_arc, and style (from bholley:rustfmt_style); r=Manishearth
Now that rustfmt is getting close to stable, and work on the style system has died down a bit, it seemed like an opportune time to auto-format the style crates.

The first commit disables import reordering, since tidy and rustfmt don't currently agree on the correct ordering. The second commit does a bunch of manual fixups such that the output of rustfmt passes tidy. The third commit runs rustfmt on the three aforementioned crate.

There are a few dozen warnings in the style crate about lines longer than 100 characters. It would be good to fix these, but I don't have time for that now.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2b228d52a084bc832444ac686290840c4369f98d
2018-04-10 21:00:11 -04:00
Emilio Cobos Álvarez 9d81428b52 servo: Merge #20616 - style: Simplify border-image-repeat serialization (from emilio:border-image-repeat); r=nox
We're the only ones to preserve explicitly the second keyword, as noticed in:

  https://github.com/w3c/web-platform-tests/pull/10170

Reland of #20610 because it got backed out because I wasn't paying attention to IRC.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f85c645197608a32f453f7f7f1f9d5709456c2a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 78c24f1f347f08ba000dead9abd2a366a96c500e
2018-04-10 18:46:39 -04:00
Alan Jeffrey da1d0cf730 servo: Merge #20614 - Use the incumbent global as the source of x-origin postMessage (from asajeffrey:script-dissimilar-orgin-postMessage-from-incumbent); r=cbrewster
<!-- 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 build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #20604 (github issue number if applicable).
- [X] These changes do not require tests because it's already caught by existing WPT

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : acb36d7223a3309221ec3943e03bb047dd08b9e5
2018-04-10 15:10:07 -04:00
Gurzau Raul 50cb7a4f32 Backed out changeset d186bcce1235 for failing on layout/style/test/test_shorthand_property_getters.html on a CLOSED TREE 2018-04-10 19:42:20 +03:00
Emilio Cobos Álvarez 96521cf595 servo: Merge #20610 - style: Simplify border-image-repeat serialization (from emilio:border-image-repeat); r=nox
We're the only ones to preserve explicitly the second keyword, as noticed in:

  https://github.com/w3c/web-platform-tests/pull/10170

Source-Repo: https://github.com/servo/servo
Source-Revision: 07dd37a0cf2eb19a294b27404f1deee1ee6e8fd7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 63bfe2e3f540cc2108155ae683adb13b7f0ecd45
2018-04-10 08:49:28 -04:00
Anthony Ramine 8bd15f367b servo: Merge #20598 - Four nondescript WebGL improvements (from servo:webgl); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: ce72e526566de70ed71684ebc39a531f59c92aa5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 05941bd75cc79e79487600e3a09008ba7dce5c03
2018-04-10 04:28:40 -04:00
Hiroyuki Ikezoe 37ac8f6ab0 servo: Merge #20602 - Don't make logical properties animatable (from hiikezoe:dont-make-logical-properties-animatable); r=emilio
|animation_type| was renamed in 94fb839fdde, but the commit missed renaming
one place.  It means that some of logical properties might have been
accidentally animatable.  Logical properties should be animatable but we
haven't yet implemented the proper Animate trait for logical properties.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 30ed27a1255a7ebd6f1841587127e2791608c10f
2018-04-10 03:30:13 -04:00
Emilio Cobos Álvarez 06cc98b9ff servo: Merge #20606 - style: Implement the functional :host(..) selector (from emilio:host); r=xidorn
We could invalidate in a slightly more fine-grained way, but I don't think it's
worth the churn vs. keeping the special-cases minimal.

Bug: 1452640
Reviewed-by: xidorn
MozReview-Commit-ID: 5DkQrgwg9GW
Source-Repo: https://github.com/servo/servo
Source-Revision: e11c2d97552d192b761b0684c8c6852b9dea0921

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 00941db97d18fcbea845f225d318eae4d47aab22
2018-04-10 02:16:30 -04:00
Simon Sapin 4abca2fc3e servo: Merge #20474 - Use new std::num::NonZero* types instead of deprecated core::nonzero::NonZero (from servo:nonzero); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: bfb9fe6159ba61f0155a5ecc5a473b2a3edd6ef6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 559ce5eda3ec3c18b59293271245bf41f3177e72
2018-04-09 15:44:16 -04:00
Emilio Cobos Álvarez 2bc468b78a servo: Merge #20597 - style: Implement the non-functional :host selector (from emilio:host); r=xidorn
Kinda tricky because :host only matches rules on the shadow root where the rules
come from. So we need to be careful during invalidation and style sharing.

I didn't use the non_ts_pseudo_class_list bits because as soon as we implement
the :host(..) bits we're going to need to special-case it anyway.

The general schema is the following:

 * Rightmost featureless :host selectors are handled inserting them in the
   host_rules hashmap. Note that we only insert featureless stuff there. We
   could insert all of them and just filter during matching, but that's slightly
   annoying.

 * The other selectors, like non-featureless :host or what not, are added to the
   normal cascade data. This is harmless, since the shadow host rules are never
   matched against the host, so we know they'll just never match, and avoids
   adding more special-cases.

 * Featureless :host selectors to the left of a combinator are handled during
   matching, in the special-case of next_element_for_combinator in selectors.
   This prevents this from being more invasive, and keeps the usual fast path
   slim, but it's a bit hard to match the spec and the implementation.

   We could keep a copy of the SelectorIter instead in the matching context to
   make the handling of featureless-ness explicit in match_non_ts_pseudo_class,
   but we'd still need the special-case anyway, so I'm not fond of it.

 * We take advantage of one thing that makes this sound. As you may have
   noticed, if you had `root` element which is a ShadowRoot, and you matched
   something like `div:host` against it, using a MatchingContext with
   current_host == root, we'd incorrectly report a match. But this is impossible
   due to the following constraints:

    * Shadow root rules aren't matched against the host during styling (except
      these featureless selectors).

    * DOM APIs' current_host needs to be the _containing_ host, not the element
      itself if you're a Shadow host.

Bug: 992245
Reviewed-by: xidorn
MozReview-Commit-ID: KayYNfTXb5h
Source-Repo: https://github.com/servo/servo
Source-Revision: cb754b262747e7cab794411df55588f0f0b30b5e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2ebbb2578ff9dbadfe905ae501cd52bd61a9fe9a
2018-04-09 06:41:59 -04:00
Xidorn Quan 2d686a4869 servo: Merge #20592 - Use Servo code to check whether a property is inherited (from upsuper:is-inherited); r=emilio
This is the Servo side change of [bug 1452534](https://bugzilla.mozilla.org/show_bug.cgi?id=1452534).

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f20e82690db5e865b12eef2bed2d787d4b02280

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 536cd69f38f86c5810659a2fe5aa0c6e2ea91d8a
2018-04-09 05:19:48 -04:00
Manish Goregaokar 380e5e2a25 servo: Merge #20575 - Use correct filler y value when animating with an implied-y translate()s (from Manishearth:filler-y); r=emilio
r=emilio https://bugzilla.mozilla.org/show_bug.cgi?id=1451724

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8d1bb775be1dd91e7b050b867fb41fbdd482005d
2018-04-09 01:47:58 -04:00
Emilio Cobos Álvarez c482852324 servo: Merge #20586 - style: Respect the -moz- gradient pref again (from emilio:moz-gradient-pref); r=xidorn
This hopefully allows us to unship them eventually.

Bug: 1451874
Reviewed-by: xidorn
MozReview-Commit-ID: 2MDRZLmLMM0
Source-Repo: https://github.com/servo/servo
Source-Revision: 954ac8157f1acac6454ced09bfc948a0bcce75e2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d599106eac67425f2e8a2efd245a26fedea223e5
2018-04-07 11:07:55 -04:00
Emilio Cobos Álvarez 3651c429b9 servo: Merge #20583 - selectors: Don't serialize :nth-child(-n) as -1n (from emilio:affine-stuff); r=upsuper
Source-Repo: https://github.com/servo/servo
Source-Revision: ecfcf35c26e789bacd2c46786bf0d75f0b20944f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e8e1b6c86a62fda25f755b021eab13da3173aa22
2018-04-07 10:10:35 -04:00
Xidorn Quan bcf3754a3f servo: Merge #20582 - Have CSSOM append rather than replace slot in declaration block (from upsuper:cssom-append); r=emilio
The early return for identical setting in importance matching as well as the comment before `index_to_remove` are removed because the order is web-exposing regardless of whether it's from CSSOM or parsing. e.g. `top: 1px; left: 2px; top: 1px;` is effectively `left: 2px; top: 1px;`,
not `top: 1px; left: 2px;`.

This is patch for [bug 1415330](https://bugzilla.mozilla.org/show_bug.cgi?id=1415330), for spec change in w3c/csswg-drafts#2516. And corresponding test will be added in w3c/web-platform-tests#10354.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9c326db0bca76383e0c47c53baa0fd7f20481130
2018-04-07 09:18:28 -04:00
Emilio Cobos Álvarez 295a8f58b3 servo: Merge #20584 - style: Add an FFI function to see if an element is display: contents (from emilio:bye-undisplayed-maps); r=bz
Bug: 1303605
Reviewed-by: bz
Source-Repo: https://github.com/servo/servo
Source-Revision: a35c9e71a3d5d9ef87de4cfba542117a280014e1

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 226530d7f19f66bf7d5ee399fce94a29cb0fb9b9
2018-04-07 07:54:41 -04:00
Ramshell 109e0117e6 servo: Merge #20573 - Add support for percentages in column-gap (from Ramshell:issue/20498); r=mbrubeck
<!-- Please describe your changes on the following line: -->
# Changes in this PR
* I've removed the `if product == "gecko"` line in order to make the column_gap type "NonNegativeLengthOrPercentageOrNormal" always.

* Then I've changed this line
```rust
Either::First(len) => len.into(),
```
to
```rust
Either::First(len) => len.0.to_pixel_length(content_inline_size).into(),
```

---
<!-- 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 build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #20498  (github issue number if applicable).

<!-- Either: -->
- [X] These changes do not require tests because there are tests already for this in wpt, in particular css/css-align/gaps/column-gap-parsing-001.html for the parsing bits, and css/css-multicol/multicol-gap-percentage-001.html for the layout bits.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 16a3fc0d6220196432027a859c13b1f364217769
2018-04-06 19:48:59 -04:00