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

7768 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 50afa7ac48 Bug 1466008: followup: set the rule type in the custom properties code, since we use it. r=me on a CLOSED TREE
Though I think it may be slightly fishy if used in, e.g., a @keyframes block.

For our purposes right now it doesn't make a difference, I think.

MozReview-Commit-ID: A7VCTOqaIuB
2018-06-01 16:15:14 +02:00
Emilio Cobos Álvarez 5c22d25db8 Bug 1466095: Make PropertyId::parse less of a footgun. r=xidorn
MozReview-Commit-ID: 2BmtSDPmHj9
2018-06-01 14:57:08 +02:00
Emilio Cobos Álvarez 50bc098041 Bug 1466008: Make will-change honor prefs properly, and clean it up while at it. r=xidorn
Will add a test, though in JSConf right now...

MozReview-Commit-ID: JyzwaRgf5Ct
2018-06-01 14:49:59 +02:00
Nazım Can Altınova 361380987c Bug 1464496 - Part 1: Merge ServoDeclarationBlock and DeclarationBlock r=emilio
MozReview-Commit-ID: By9fV70Oq0K

--HG--
extra : rebase_source : 837afe9c33b21d7db41ff19d3aaf6cf3e9eedbdf
2018-05-30 18:15:25 +02:00
Dan Glastonbury 68881da7dd Bug 1457353 - P1: Change nscolor to StyleComplexColor. r=xidorn
Change mStopColor, mFloodColor, and mLightingColor in nsStyleSVGReset.

MozReview-Commit-ID: KMRMtHk1jNK

--HG--
extra : rebase_source : c0c12fa811d17ab6fe0a5ceb31ff32ec585314e0
2018-04-27 12:07:20 +10:00
Morgan Rae Reschenberg 0403087901 Bug 1463589 - Add contain:size and contain:content parsing functionality. r=emilio
MozReview-Commit-ID: 4fOqln3oOpC

--HG--
extra : rebase_source : 3b2ac1116ea9399a8fbbaab158e7dda5fec3930d
2018-05-30 07:49:31 -07:00
Yusuf Sermet de248c7ca7 Bug 1465250 - Make contain:paint trigger clipping independent of the overflow property. r=mattwoodrow
MozReview-Commit-ID: 2QbfZD1jnWX

--HG--
extra : rebase_source : 3c73973bd6373889ce1d147e348e584036782d1d
2018-05-30 14:28:53 -07:00
Csoregi Natalia f3599e000e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-30 12:28:56 +03:00
Emilio Cobos Álvarez d7bfa8a3bb Bug 1460382: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. r=heycam
Currently, NAC always inherits from the closest non-NAC ancestor element,
regardless of whether it is for an element-backed pseudo or not.

This patch changes the inheritance so that for element-backed pseudos, we
inherit from the closest native anonymous root's parent, and for other NAC we
inherit from the parent.

This prevents the following two issues and allows us to remove the
NODE_IS_NATIVE_ANONYMOUS flag:

 * Avoiding inheriting from the non-NAC ancestor in XBL bindings bound to NAC.

   - This is no longer a problem since we apply the rule only if we're a
     pseudo-element, and all pseudo-elements are in native anonymous subtrees.

   - This also allows to remove the hack that propagates the
     NODE_IS_NATIVE_ANONYMOUS flag from the ::cue pseudo-element from
     BindToTree.

 * Inheriting from the wrong thing if we're a nested NAC subtree.

   - We no longer look past our NAC subtree, with the exception of
     ::-moz-number-text's pseudo-elements, for which we do want to propagate
     ::placeholder to.

A few rules from forms.css have been modified because they're useless or needed
to propagate stuff to the anonymous form control in input[type="number"] which
previously inherited from the input itself.

MozReview-Commit-ID: IDKYt3EJtSH
2018-05-30 10:14:46 +02:00
Emilio Cobos Álvarez 635baff295 Bug 1465066: Cleanup transform animation. r=hiro
MozReview-Commit-ID: D9rq8CZIgf5
2018-05-30 10:11:26 +02:00
Emilio Cobos Álvarez f69d157533 Bug 1464865: Some trivial cleanup. r=xidorn
MozReview-Commit-ID: 8ClaBR9ooGb
2018-05-29 16:39:38 +02:00
Emilio Cobos Álvarez 3a5b66d9c2 Bug 1464865: Don't let @namespace rules that aren't going to be inserted affect the namespace map. r=xidorn
MozReview-Commit-ID: 9bjlEBExqsr
2018-05-29 16:39:37 +02:00
shindli 16731e010d Backed out changeset ad877938d752 (bug 1464865) for wpt3 failures in /css/cssom/insertRule-import-no-index.htm on a CLOSED TREE 2018-05-29 13:39:43 +03:00
shindli de4b4b8e83 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-29 12:59:12 +03:00
shindli ee44448835 Merge inbound to mozilla-central. a=merge 2018-05-29 12:52:25 +03:00
Emilio Cobos Álvarez 362f28d4bb Bug 1464865: Don't let @namespace rules that aren't going to be inserted affect the namespace map. r=xidorn
MozReview-Commit-ID: 9bjlEBExqsr
2018-05-29 10:45:42 +02:00
Emilio Cobos Álvarez 3a1b4b93c1 Bug 1464834: Remove dead servo code. r=xidorn,heycam
Just leaving enough for style and tests to compile. Otherwise it's really
confusing, specially when looking for webidl stuff, and can confuse contributors
too.

I prefer to keep the rest as is, since the rest I do sync (semi) manually.

Reviewers: xidorn,heycam

Bug #: 1464834

Differential Revision: https://phabricator.services.mozilla.com/D1434

MozReview-Commit-ID: HtxzJ29Pjkp
2018-05-29 10:28:11 +02:00
Emilio Cobos Álvarez 189e0dc488 No bug - trivial TopLevelRuleParser construction cleanup. r=me
MozReview-Commit-ID: 5CdOdQPZzyb
2018-05-29 00:31:22 +02:00
Hiroyuki Ikezoe 2ef0eac0e3 Bug 1464647 - Implement the smarter interporation for transform. r=birtles,emilio
Corresponding to this spec change;
32812668df

The expected value in test_transitions_per_property.html can be calculated;

  'start' + ('end' - 'start') * 0.25

MozReview-Commit-ID: NI9gOUuPnG

--HG--
extra : rebase_source : 2eff1fee211a7f4a9be0593b3fae6816f91a3831
2018-05-29 12:33:16 +09:00
Simon Sapin a8e3499296 No bug - Import style changes for Servo PR #20703. r=me
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7Crl7d1Vs1N
2018-05-28 16:07:04 +02:00
Emilio Cobos Álvarez 533ea279c5 No bug - Appease Servo's tidy lint. r=me
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: CoejeixDmI6
2018-05-28 16:06:24 +02:00
Emilio Cobos Álvarez 54c29475e9 Bug 1464428: Optimize QuerySelector in shadow trees. r=xidorn
Pretty much the same setup we have for document.

We have the awkwardness of having to check containing shadow manually for
ShadowRoot because it's not available in TNode (and making it available added a
bit more complexity that wasn't worth it IMO).

MozReview-Commit-ID: CqOh0sLHf6o
2018-05-28 14:30:34 +02:00
arthur.iakab 436cd55b31 Backed out changeset 8fb0fa2dca36 (bug 1464428) for Reftest crashes on a CLOSED TREE
--HG--
extra : amend_source : 023931e140119e040f5ca1c5b24bc4def5b0c215
2018-05-28 13:17:34 +03:00
Emilio Cobos Álvarez 84ed3147e4 Bug 1459403: The fix: scale and translate appropriately. r=hiro
Loops are hard. This hasn't been the funniest Saturday evening.

MozReview-Commit-ID: I8rfuIRIsrY
2018-05-28 11:23:55 +02:00
Emilio Cobos Álvarez 3b06764ca4 Bug 1459403: Move skew and rotation application to their own scope for clarity. r=hiro
The skew resetting of temp I think fixes a bug in presence of skew in every
direction, but again haven't double-checked.

MozReview-Commit-ID: Bn93CoaG8Bu
2018-05-28 11:23:54 +02:00
Emilio Cobos Álvarez d7cc22e3e8 Bug 1459403: Cleanup multiply(). r=hiro
We assign all the members, the result matrix doesn't really need to be any clone
of a.

MozReview-Commit-ID: 3NkhvyfqQL
2018-05-28 11:23:53 +02:00
Emilio Cobos Álvarez ab6020056c Bug 1459403: Add a FIXME comment which I think reveals a bug but I haven't confirmed it. r=hiro
MozReview-Commit-ID: DgCfqA5TNzP
2018-05-28 11:23:52 +02:00
Emilio Cobos Álvarez 3ac809b7aa Bug 1459403: Cleanup and add references to decompose_3d_matrix. r=hiro
Same, no functional change, but I basically rewrote this two times so...

MozReview-Commit-ID: FXOnJDPyPu5
2018-05-28 11:23:51 +02:00
Emilio Cobos Álvarez 66a98f1315 Bug 1459403: Cleanup and add references to Quaternion::animate. r=hiro
No functional change, but I did this while searching for the bug.

MozReview-Commit-ID: KsJxFoYaOq1
2018-05-28 11:23:50 +02:00
Emilio Cobos Álvarez d4bc975ab9 Bug 1459403: Trivial cleanup. r=hiro
MozReview-Commit-ID: K7zVYGiYAn6
2018-05-28 11:23:50 +02:00
Emilio Cobos Álvarez d3aa695c83 Bug 1464615: Reuse computed rotate animation. r=hiro
I have the feeling this fixes a bug, but...

MozReview-Commit-ID: Aj478qCbMV9
2018-05-28 11:05:39 +02:00
Emilio Cobos Álvarez f031f71b78 Bug 1464615: Match rotate ops. r=hiro
Per bug 1322189 we really should. I've copied the setup we have already for
translate / scale, but we should really clean this up a bit more I'd think.

In any case, probably skew should be matched as well...

MozReview-Commit-ID: Jky5k8HVfuH
2018-05-28 11:05:38 +02:00
Emilio Cobos Álvarez 3f97dd5cab Bug 1464060: Make the general setup for computed style bits nicer. r=xidorn
This patch:

 * Makes StyleStructID an enum class, and moves it to the mozilla namespaces.

 * Introduces StyleStructConstants with some constants scattered through the
   codebase.

 * Makes the computed style bits an enum class, and splits mPseudoType and mBits
   into their own members, since we were using a uint64_t when we have only a
   couple flags and CSSPseudoElementType is a byte. We statically assert that
   the number of style structs is less or equal to 32.

 * Makes mPseudoTag, mPseudoType and mBits const, since we don't want them to be
   mutated from C++, and we still need a few more refactorings (mostly getting
   rid of FinishStyle) to avoid mutating ComputedStyle instead.

MozReview-Commit-ID: 7qsTtASGcYB
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez dc60d6f0c2 Bug 1464060: Remove a bunch of unused style bits. r=xidorn
MozReview-Commit-ID: FLACqfSHfSO
2018-05-28 10:17:11 +02:00
Emilio Cobos Álvarez 2fe6f39529 Bug 1464428: Optimize QuerySelector in shadow trees. r=xidorn
Pretty much the same setup we have for document.

We have the awkwardness of having to check containing shadow manually for
ShadowRoot because it's not available in TNode (and making it available added a
bit more complexity that wasn't worth it IMO).

MozReview-Commit-ID: CqOh0sLHf6o
2018-05-28 10:08:35 +02:00
Emilio Cobos Álvarez 82d64f3b99 Bug 1464595: Cleanup single transform functions that can't really error. r=hiro
Also call them "resolve" since it's the general term for computing something
more specific than what you have.

Though I don't feel strongly about that, feel free to push back.

MozReview-Commit-ID: KtqjzlppZLp

--HG--
extra : rebase_source : bc98820991f8858486f7bbaab929bc60d4d39b0c
2018-05-26 16:22:52 +02:00
Emilio Cobos Álvarez fd50762838 No bug - Use a static atom instead of a dynamic one. r=me
MozReview-Commit-ID: CUTwfsCrovQ
2018-05-25 14:14:15 +02:00
Yusuf Sermet ebb3ebe1db Bug 1463599 - Create a stacking context for contain:paint. r=mattwoodrow
MozReview-Commit-ID: Ln72MOlHXwi

--HG--
extra : rebase_source : ec6bd5d3de4635acd2e2d0dcd2222232524d9459
2018-05-28 23:54:01 -07:00
Emilio Cobos Álvarez 98b26e7175 No bug - Remove dead and unsafe code. r=me
MozReview-Commit-ID: 9seuLNCJAqz
2018-05-25 00:53:35 +02:00
Xidorn Quan 837eabb26b Bug 1463978 - Don't generate catch-all branch if a image layer keyword value is exhaustive. r=emilio
MozReview-Commit-ID: H8T9Low6kqY

--HG--
extra : rebase_source : 98506d3c01df27c4fd408c1f01de040dd17df350
2018-05-24 14:12:55 +10:00
Dorel Luca dc6d856805 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-23 12:51:22 +03:00
Xidorn Quan e9db8ebaee Bug 1463603 - Ensure modified_reset is set when {mutate,take}_reset_struct is called. r=heycam
MozReview-Commit-ID: 8mqVb7kl0ok

--HG--
extra : rebase_source : 3bcefc1e2eeb89483f41ffc630b88e492e323456
2018-05-23 13:58:38 +10:00
Csoregi Natalia acd92af57e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-23 01:02:30 +03:00
Emilio Cobos Álvarez f6d8b4b950 Bug 1462829: followup: Add a comment regarding why a type is generic. rs=xidorn
DONTBUILD, comment only.

MozReview-Commit-ID: 5DE8W2n1NP
2018-05-22 10:25:06 +02:00
Olli Pettay 1dc582540a Bug 1463116 - Make mBindingParent strong, r=bz
--HG--
extra : rebase_source : 84aed48c0d8bd298cba0d6b6c6fa898b6c95c1ef
2018-05-22 00:11:11 +03:00
shindli 83d239ac83 Backed out changeset 603804d62ce8 (bug 1463116) for force-cargo-library-build bustage on a CLOSED TREE 2018-05-21 23:55:58 +03:00
Olli Pettay 622b10843f Bug 1463116 - Make mBindingParent strong, r=bz
--HG--
extra : rebase_source : 7013301bf68d2f35bde61072152f8819336c7b5a
2018-05-21 23:02:07 +03:00
Emilio Cobos Álvarez 716d561add Bug 1462829: Refactor vector types. r=hiro,xidorn
This fixes clamping of mask-size and moves it out of mako while at it.

MozReview-Commit-ID: 9hiTe63odna
2018-05-21 12:07:28 +02:00
Emilio Cobos Álvarez b77fa8e036 No bug - Import style changes from Servo PR #20843. r=me
MozReview-Commit-ID: FpQXZUBdgNN
2018-05-21 12:00:14 +02:00
Emilio Cobos Álvarez 422d49f784 No bug - Import style changes from Servo PR #20506. r=me
MozReview-Commit-ID: BELRJUdRUaU
2018-05-21 11:59:40 +02:00
Dorel Luca 70a0f75d37 Backed out changeset 76a4f60761f9 for breaking Mochitests on multiple platforms on layout/style/test/test_transitions_per_property.html. 2018-05-21 02:48:20 +03:00
Emilio Cobos Álvarez 53c7c73179 No bug - Import style changes from Servo PR #20506. r=me
MozReview-Commit-ID: BELRJUdRUaU
2018-05-20 21:36:41 +02:00
Xidorn Quan 4c114dbee6 Bug 1460456 part 3 - Add scrollbar-{face,track}-color properties. r=heycam
MozReview-Commit-ID: ImNfHHfzRdM

--HG--
extra : rebase_source : 58caf9fff4ad62d4413de688ad115e89a5929ea6
2018-05-10 10:40:17 +10:00
Xidorn Quan b0413cb441 Bug 1460456 part 2 - Rename CaretColor to ColorOrAuto for reusing. r=heycam
MozReview-Commit-ID: LD6PlNI60GC

--HG--
extra : rebase_source : e6549ec41bb6125f0bf67202b65c0ab1f738d33d
2018-05-10 09:56:10 +10:00
Mats Palmgren e818007e69 Bug 1461039 - Inlinify display:list-item to display:inline for now, until we support 'display:inline list-item' properly. r=xidorn 2018-05-17 17:30:35 +02:00
Xidorn Quan 9ab2784516 Bug 1461858 followup - Use RefPtr::new instead of RefPtr::from_ptr_ref + clone.
--HG--
extra : source : 4a743827a83a7130ea8de9916cf3f83448596ffb
2018-05-16 22:21:57 +10:00
Xidorn Quan f42f8f59ab Bug 1461858 part 4 - Rename from_url_value_data to from_url_value and reuse URLValue passed in for ComputedUrl. r=emilio
MozReview-Commit-ID: LJGm3lUS9mD

--HG--
extra : rebase_source : 02bcbfd349b54ab7d72bbfcda69b5664549ca37b
2018-05-16 14:35:37 +10:00
Xidorn Quan 07df897bae Bug 1461858 part 3 - Have from_image_request reuse ImageValue from image request directly. r=emilio
And also remove ComputedImageUrl::from_url_value_data.

MozReview-Commit-ID: 5zifQlU7tOz

--HG--
extra : rebase_source : 23631ad2e9144cf30951a3d07421a8e5ae0ba8ec
2018-05-16 14:01:25 +10:00
Xidorn Quan 9886a02dbd Bug 1461858 part 2 - Make from_image_request infallible. r=emilio
All callsites already assert, so moving the assertion into the method
should be fine. It is not expected to handle a null image value anyway.

MozReview-Commit-ID: J8CA8m22eSv

--HG--
extra : rebase_source : e4d524263363393d3d0388ede8efcae096917546
2018-05-16 13:39:58 +10:00
Xidorn Quan 28bb73ac18 Bug 1461858 part 1 - Make creating CssUrl infallible. r=emilio
There were a check in CssUrl::parse_from_string for extra data, which
was removed as part of servo/servo#16241, so it never fails now.

CssUrl::from_url_value_data doesn't seem to need Result from the very
beginning. It is unclear why it was made that way.

MozReview-Commit-ID: LXzKlZ6wPYW

--HG--
extra : rebase_source : baa4eb68b7c6b0042bd01108d3e6631c3cdf01a8
2018-05-16 12:19:31 +10:00
Emilio Cobos Álvarez 5bfb2e13b8 No bug - Fix Servo build. r=me
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: DpRWVlcU0ki
2018-05-15 12:09:26 +02:00
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
Dan Glastonbury 334258d77f Bug 1467621 - P1: nsCSSShadowItem - Change nscolor to StyleComplexColor. r=xidorn
MozReview-Commit-ID: moE2CI7fT8

--HG--
extra : rebase_source : 7b64beccbd4c499d93567d62b913257dfa53c9fe
2018-06-19 14:18:33 +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 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
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
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 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
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
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 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 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
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