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

12831 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack 460faae1fa Bug 1408312 - Part 1: Add ServoCSSParser utility class. r=xidorn
MozReview-Commit-ID: KzM9332hBSx

--HG--
extra : rebase_source : cee890ae943bdd855528522ef774bc95adfd4245
2017-10-16 08:54:47 +08:00
Cameron McCormack c5a3672a18 Bug 1408305 - Use Servo to parse IntersectionObserver rootMargin values. r=xidorn
MozReview-Commit-ID: 4CIXP73kcf2

--HG--
extra : rebase_source : d9b8bdbf374e98d0f2276be129efd7ae49123498
2017-10-16 18:02:16 +08:00
Kris Maglione 663e9cb7fa Bug 1404198: Part 2e - Switch to NS_NewTimer* in layout. r=njn
MozReview-Commit-ID: 2WxyAXpJ3Fg

--HG--
extra : rebase_source : 4166c82c86558f79a4b41566a9997584e5fc94cf
2017-10-15 23:13:31 -07:00
Jessica Jong 93235e7dd3 Bug 1404327 - Move CSS font-family property to date/time input so that it can be overriden. r=dholbert
MozReview-Commit-ID: 4sqXQSZMlmd
2017-10-16 15:24:50 +08:00
Andrea Marchesini 6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Emilio Cobos Álvarez b371f16b3f Bug 1404789: Update test expectations. r=bz
MozReview-Commit-ID: 6juwgWa4OVN

--HG--
extra : rebase_source : b87fa7013e6ca894f0b06e07e7778e6b5ba3ce88
2017-10-18 11:31:18 +02:00
Emilio Cobos Álvarez c021ca02b5 Bug 1409079: Re-enable web components in stylo. r=heycam,smaug
MozReview-Commit-ID: DJZRO7j2pOJ

--HG--
extra : rebase_source : c6e39755b7dd324ca8ae77b6d8a8868d913c930b
2017-10-12 15:22:17 +02:00
Emilio Cobos Álvarez d7842232e2 No bug - Remove declaration of non-existent function. r=me
MozReview-Commit-ID: DftE7aBUhCc
2017-10-14 14:04:43 +02:00
Emilio Cobos Álvarez 831383d849 Bug 1408622: Dumb down the return value of Servo_SelectorList_Closest. r=me
MozReview-Commit-ID: 2KRWlVAzj0D
2017-10-14 14:04:41 +02:00
Emilio Cobos Álvarez 5fe1768dec Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF
2017-10-14 14:04:39 +02:00
Sebastian Hengst a46c92c8b7 Backed out changeset f66cb1530f75 (bug 1407952) for build failure (bug 1408622). r=backout a=backout
MozReview-Commit-ID: 3h4oDHbvmes

--HG--
extra : amend_source : 9e9e1bb348b7e2434f3388cf97580172348e769a
2017-10-14 12:32:50 +02:00
Xidorn Quan 841f0f88b0 Bug 1407843 part 3 - Remove nsICSSPseudoComparator. r=heycam
MozReview-Commit-ID: Ct3zUoiSIA4

--HG--
extra : rebase_source : 4a415c13fe51d5cfbff0c9cd873f3100974da327
2017-10-13 13:50:04 +11:00
Xidorn Quan 22466ec8dd Bug 1407843 part 2 - Move tree pseudo matching code from nsTreeBodyFrame into nsCSSRuleProcessor. r=heycam
MozReview-Commit-ID: FyPhBLGX2qD

--HG--
extra : rebase_source : b401f41a6132be6ca4d438c97aa7e09865c94adb
2017-10-13 12:54:18 +11:00
Emilio Cobos Álvarez c3d1112763 Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF

--HG--
extra : rebase_source : 8e66d9bb15e91412431178324b37c94fbc20b773
2017-10-12 11:42:17 +02:00
Sebastian Hengst 847d86fda7 merge mozilla-central to autoland. r=merge a=merge 2017-10-13 11:51:55 +02:00
Xidorn Quan da66155d17 Bug 1403839 - Add a more complicated test for custom properties loop eliminiation. r=SimonSapin
MozReview-Commit-ID: CqafptHWYhc

--HG--
extra : source : ecd5118be1ba331fabf497e44076a8a20a4546e6
2017-10-13 14:37:46 +11:00
Xidorn Quan c2366649a6 Bug 1407888 part 2 - Make ServoStyleRuleMap::FillTableFromStyleSheet not make unique inner. r=heycam
MozReview-Commit-ID: 1I7sawfjcnl

--HG--
extra : rebase_source : 41667c3ff9ef52509b21cdff6495dbe9b85ab1af
2017-10-12 18:56:02 +11:00
Phil Ringnalda e83e2ad1b0 Backed out 2 changesets (bug 1407888) for aSheet->HasUniqueInner() assertion failures
CLOSED TREE

Backed out changeset 50e535750cc9 (bug 1407888)
Backed out changeset e1287860a439 (bug 1407888)

MozReview-Commit-ID: 8UHuO8Fz0pL
2017-10-12 19:59:50 -07:00
Xidorn Quan 75fcad8ea7 Bug 1407888 part 2 - Make ServoStyleRuleMap::FillTableFromStyleSheet not make unique inner. r=heycam
MozReview-Commit-ID: 1I7sawfjcnl

--HG--
extra : rebase_source : 620cc19b3826d557e5a255b1bee2417b073da799
2017-10-12 18:56:02 +11:00
Kris Maglione 5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Emilio Cobos Álvarez d19ac89f75 Bug 1405311: Remove :-moz-system-metric pseudo-class. r=xidorn
MozReview-Commit-ID: CIF64dG1F2k
2017-10-12 15:10:49 +02:00
Xidorn Quan 15b9626feb Bug 1363088 - Remove text-shadow handling from HasAuthorSpecifiedRules. r=heycam
After bug 1401825, we no longer need the code for text-shadow anymore,
so we can just remove it.

MozReview-Commit-ID: B2zpzetwW91

--HG--
extra : rebase_source : 655ef8f1fc646b3905c55199b5f509c8e4093ddb
2017-10-12 11:13:07 +11:00
J. Ryan Stinnett aa03c11bd5 Bug 1406254 - Visited reftest for ::first-line inheritance. r=emilio
MozReview-Commit-ID: 4ZOlVvBuSfT
2017-10-11 23:21:17 -05:00
Cameron McCormack 5b1a5502d7 Bug 1407246 - Split out Variables struct difference calculation. r=emilio
MozReview-Commit-ID: CtWtG3zkD1D

--HG--
extra : rebase_source : 0e1efeb844cde641288a6aecb15b1285cb37ea3f
2017-10-12 09:12:30 +08:00
Brian Birtles e30acd91b9 Bug 1405548 - Post restyles when creating or removing new CSS animations when using the Servo backend; r=hiro
As explained in the extended comment in this patch, for Servo we want to post
restyles when creating new animations so that we run a second animation
restyle and incorporate the result of new animations into style immediately.
(Gecko does everything in the one restyle, and although this causes other bugs
related to triggering transitions, at least it means it does not require
restyles to be posted here).

It turns out that we normally end up posting a restyle anyway in
CSSAnimation::SetAnimationIndex. Bug 1332958 was supposed to drop that but it
never landed.

However, CSSAnimation::SetAnimationIndex only posts a restyle when there is
a change to the animation index. It turns out that, by chance, there normally
*is* a change to a CSSAnimation's animation index when it is created. Initially
it takes its animation index from Animation::sNextAnimationIndex which is
incremented each time it is assigned to an animation.

If the first Animation we create for a given content process is a CSSAnimation
then sNextAnimationIndex will be zero and so we will initially assign an
animation index of zero. If that CSS animation is also the first in the list
of animations in animation-name, when we call SetAnimationIndex we will pass
zero as the index to use, and when we go to update the animation index we will
detect that there is no change, and will NOT post an animation restyle.
As a result the target element's style will NOT reflect the animated style.

To fix this we need to ensure that *new* CSS animations trigger a restyle.

For *changes* to animations, the corresponding calls to SetKeyframes and
SetSpecifiedTiming post restyles so the behavior should be correct in those
cases.

For *removed* animations I observed that in at least some cases we successfully
post a restyle. However, this appeared to be as much by chance as anything so
this patch also posts a restyle for removed animations. (Note that the
EffectCompositor will ignore redundant restyle requests so this is ok.)

This patch deliberately does not expose Animation::PostUpdate and call that
because the code introduced here is intended to be temporary. Long-term we
should remove the Gecko style backend and allow the calls to PlayFromStyle,
PauseFromStyle, CancelFromStyle etc. to post restyles just like calls to Play,
Pause, and Cancel do. At that point this code can also be removed.

MozReview-Commit-ID: 4c3vJdLBqeY

--HG--
extra : rebase_source : 684cb483562709161b2d5635e173e55319509a70
2017-10-11 16:36:36 +09:00
Ryan VanderMeulen 0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Emilio Cobos Álvarez e808575ca4 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : e7e0a3f83001813239338bc5b3895252e1fb3ea6
2017-10-07 14:06:44 +02:00
Hiroyuki Ikezoe 2b54925c5c Bug 1407463 - Drop unused pseudo atom argument from GetBaseContextForElement. r=heycam
MozReview-Commit-ID: JJ2Jh1I6y4h

--HG--
extra : rebase_source : 99c458dfffee88103e5f2b01f9ff9ae0256b8c62
2017-10-11 10:00:37 +09:00
Hiroyuki Ikezoe a5c66d4d97 Bug 1407463 - Drop unused pseudo atom argument from ResolveStyleLazily and ResolveStyleLazilyInternal. r=heycam
MozReview-Commit-ID: Lmjqbr7QsTU

--HG--
extra : rebase_source : dc1587cd9058bf279f21116a843928289b2602f2
2017-10-11 10:00:28 +09:00
Ryan VanderMeulen f0f257809c Bug 1344210 - Add crashtest. r=me
--HG--
extra : rebase_source : dac6b45cd4858f905ffb9f68ab967cdbb4d9c302
2017-10-11 11:52:40 -04:00
Sebastian Hengst edb0dd8898 Backed out changeset bcffb222c970 (bug 1408312) for failing web-platform-test /2dcontext/fill-and-stroke-styles/2d.gradient.object.current.html with stylo disabled. r=backout
--HG--
extra : amend_source : 66151415de533e9e7af7e49e788fc65680fd7be5
2017-10-16 16:15:45 +02:00
Cameron McCormack b9be378e65 Bug 1408312 - Part 1: Add ServoCSSParser utility class. r=xidorn
MozReview-Commit-ID: KzM9332hBSx

--HG--
extra : rebase_source : c048323e36bef9dceb3c86d3cc9ee66aa39efb51
2017-10-16 08:54:47 +08:00
Emilio Cobos Álvarez 4ee54ec509 Bug 1408839: Hide some moz-scrollbar media features in content docs. r=xidorn
MozReview-Commit-ID: 4I1697PAIy0

--HG--
extra : rebase_source : 1749e8219981b39129481e6487b2ac4b15b1fb5f
2017-10-16 09:24:24 +02:00
Jeremy Chen 2683647837 Bug 1378368 - part3: add tests. r=TYLin
MozReview-Commit-ID: Amy7Dcyz8cq

--HG--
extra : rebase_source : bb8d825f71d44d9e4957af0311671063d9ee40d6
2017-10-16 14:41:51 +08:00
Jeremy Chen f243927e63 Bug 1378368 - part2: do not clamp negative calc values while serializing basic-shape polygon. r=TYLin
According to the spec, negative values are valid for polygon(), so we should not
clamp it while computing and serializing negative calc values for polygon().

MozReview-Commit-ID: 5uhLjoYmJEh

--HG--
extra : rebase_source : e314736bff61a4ea881ea0182fa1362fe621a1b2
2017-10-16 14:45:34 +08:00
Jeremy Chen 8bdfb7f337 Bug 1378368 - part1: do not always clamp negative calc values in SetCssTextToCoord. r=TYLin
nsComputedDOMStyle::SetCssTextToCoord() is a helper function for computing and
serializing a nsStyleCoord. In the current implementation, SetCssTextToCoord
implicitly clamp negative calc values, which is pretty non-trivial.

In this patch, we expose an extra aClampNegativeCalc parameter for SetCssTextToCoord,
so the callers can explicitly set the clamping mode as needed.

MozReview-Commit-ID: IOIhssjUldC

--HG--
extra : rebase_source : 44d9ff3a5fc20a869de356868688483aa28ecff8
2017-10-16 13:29:46 +08:00
Emilio Cobos Álvarez 63db5c2845 Bug 1408838: Remove -moz-physical-home-button system metric. r=xidorn
MozReview-Commit-ID: A7nZdj6GQtM

--HG--
extra : rebase_source : b721a9e21e935fdb08bb0b0342d447d89509986b
2017-10-16 08:57:59 +02:00
Emilio Cobos Álvarez 7d84c84a7a Bug 1408672: Test that hover quirk is handled properly during invalidation. r=heycam
MozReview-Commit-ID: 9PaVx2pP2HB
2017-10-16 08:39:29 +02:00
Xidorn Quan e701a0dbc6 Bug 1401825 - Support pseudo-element properly in nsPresContext::HasAuthorSpecifiedRules. r=emilio
MozReview-Commit-ID: Iugvr9DYm2E

--HG--
extra : rebase_source : a0675ddafd525aa12b11fd264f2b0e6e5d0c06b7
2017-10-10 18:35:10 +11:00
Hiroyuki Ikezoe 4b0a430d0d Bug 1405544 - Propagate existing bits to the parent element as well when switch the restyle root for invalidation siblings in post-traversal. r=emilio
MozReview-Commit-ID: 8Rmg2FSytlp

--HG--
extra : rebase_source : 9c61187b6d9879383c531e630490c92fb5ec8745
2017-10-10 10:05:54 +09:00
Bobby Holley 7c241c0f84 Bug 1407080 - Add an API to annotate crash reports from stylo. r=Manishearth
MozReview-Commit-ID: KuD4SbVrdYH
2017-10-10 13:30:57 -07:00
Simon Sapin f23c797cc7 Bug 1378861 - Update test expectations for Servo PR #18808 r=emilio
Note: `cssMessages.js` changes were generated by running
`mach test devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/browser_webconsole_update_stubs_css_message.js`

MozReview-Commit-ID: 4UHmHcC5eWm

--HG--
extra : rebase_source : 9ff1f1966f46968865084a24a00dd3a69b52e73b
2017-10-06 15:41:57 +02:00
Hiroyuki Ikezoe 5e34bc1f57 Bug 1329169 - Use atom for animation-name property. r=xidorn
MozReview-Commit-ID: 9yVWXVi1oXf

--HG--
extra : rebase_source : f0d8a731c3e6caaf248a0b0e25ef96370af3ecd8
2017-10-10 17:00:28 +09:00
Sebastian Hengst ca5a50735f merge mozilla-central to autoland. r=merge a=merge 2017-10-10 06:17:48 -03:00
Sebastian Hengst 1a4a26905f merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Hiroyuki Ikezoe 3079b3e5d9 Bug 1406811 - Remove a duplicate entry for RawServoSelectorListBorrowed. r=emilio
MozReview-Commit-ID: CN4LbkY4IcU

--HG--
extra : rebase_source : 9de4bf17fdaf39edba3595d61add944551941fbf
2017-10-10 07:57:41 +09:00
Hiroyuki Ikezoe 9b69f7bcd1 Bug 1406811 - Fix mismatched arguments for Servo_SelectorXXX. r=emilio
MozReview-Commit-ID: 7OgrwTOHTtQ

--HG--
extra : rebase_source : db5affc188e3c949149658eb3bc7769649759623
2017-10-10 07:57:34 +09:00
Kris Maglione 9c145b38f6 Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
MozReview-Commit-ID: LWMkBcB4WIg

--HG--
extra : rebase_source : fa2daf25c58190cee7e55798347d4eaffa0d5250
extra : histedit_source : f2887c9e53c572aa5e675600cd1aeb6c5a72becc%2Ce7a84ac505319ca24e65c73a4df13014a0a0cdc0
2017-10-05 19:40:48 -07:00
Cameron McCormack fcd58611c7 Bug 1364139 - Crashtest for ::first-letter/::first-line text node inheritance problems. r=me
MozReview-Commit-ID: BWD1hFqNOD9
2017-10-10 13:17:59 +08:00
Jeremy Chen 0288650258 Bug 1403077 - add tests for the stylo blocklist mechanism. r=heycam,leplatrem
In this patch, we add 3 tests:
1. test for blocked domain
2. test for blocked sub-domain
3. test for non-blocked domain

MozReview-Commit-ID: JzMImsbGoPr

--HG--
extra : rebase_source : 0eed42f6d2815bd8adbb9fb6be54b6feb3b1bcc8
2017-10-05 17:33:10 +08:00
Sebastian Hengst aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote 8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Bobby Holley 3b4158287b Bug 1406220 - Followup: Assert main thread to silence heap-write hazard. r=me
MozReview-Commit-ID: JFW9zDbV5VV
2017-10-07 14:31:00 -07:00
Bobby Holley a519863205 Bug 1406220 - Add canary and journaling. r=Manishearth,r=dmajor
MozReview-Commit-ID: 582ZiTmcvgs
2017-10-07 12:35:24 -07:00
Sebastian Hengst b29f365446 Backed out changeset f70d6fcdb760 (bug 1406631) for failing color related reftests like layout/reftests/writing-mode/ua-style-sheet-input-color-1.html on Android. r=backout 2017-10-07 20:08:12 +02:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Manish Goregaokar 63f30a0c62 Bug 1404057 - stylo: Add crashtest for text-zoom being reenabled within svg:text; r=xidorn
MozReview-Commit-ID: 3dIDW8Tz6Mj
2017-10-07 08:27:08 -07:00
Emilio Cobos Álvarez b7befbe6b5 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : a2661dce1ac191fdf098e631cd7878f0215643d5
2017-10-07 14:06:44 +02:00
Emilio Cobos Álvarez 1fcd583663 Bug 1396066: Add a mechanism to make media features chrome / UA-only. r=xidorn
This is unused right now, but will allow to change media feature visibility
without servo/ changes (along with https://github.com/servo/servo/pull/18774).

MozReview-Commit-ID: 75hahvROoJz
2017-10-07 13:30:09 +02:00
Boris Zbarsky c629c7383a Bug 1406222 tests. r=heycam
MozReview-Commit-ID: 6fNGlwC8ZwA
2017-10-07 10:10:18 +02:00
Sebastian Hengst 6ceb627ccd Backed out changeset cb92b20ea556 (bug 1406222) for frequently failing clipboard's devtools/client/netmonitor/test/browser_net_copy_headers.js. r=backout 2017-10-07 10:03:30 +02:00
Boris Zbarsky 28f817772c Bug 1406222 tests. r=heycam
MozReview-Commit-ID: 6fNGlwC8ZwA
2017-10-07 03:17:22 -04:00
Hiroyuki Ikezoe 9d610320fe Bug 1406284 - Remove unused parent context argument. r=heycam
MozReview-Commit-ID: A1yIOZ1bWjY

--HG--
extra : rebase_source : a4daa3466382b64f50256d1c081f886b98f4f80d
2017-10-06 13:51:02 +09:00
Phil Ringnalda 6ea2792d77 Backed out 9 changesets (bug 1396066) for Windows reftest failures
CLOSED TREE

Backed out changeset e41f9295ee00 (bug 1396066)
Backed out changeset 7a22efa8df6b (bug 1396066)
Backed out changeset ed95eea7105c (bug 1396066)
Backed out changeset 635746c88630 (bug 1396066)
Backed out changeset 5b1997aeaead (bug 1396066)
Backed out changeset 19c9ea492f5e (bug 1396066)
Backed out changeset b9d8e4588584 (bug 1396066)
Backed out changeset 87b44ea10407 (bug 1396066)
Backed out changeset e5b9aed44133 (bug 1396066)

MozReview-Commit-ID: K9q3MfPBc5E
2017-10-06 20:48:23 -07:00
Emilio Cobos Álvarez fec2a9ebed Bug 1396066: Fix bug 418986 tests. r=me
On a CLOSED TREE.

MozReview-Commit-ID: 9bulxAwhsTM
2017-10-06 17:01:30 +02:00
Emilio Cobos Álvarez df1739abac Bug 1396066: Remove -moz-physical-home-button. r=xidorn
MozReview-Commit-ID: IaXLKNuHomI
2017-10-06 14:34:59 +02:00
Emilio Cobos Álvarez b90c5280f4 Bug 1396066: Restrict -moz-is-glyph to UA and chrome only. r=xidorn
MozReview-Commit-ID: A2Jiw8KtJSM
2017-10-06 14:34:58 +02:00
Emilio Cobos Álvarez 81f719cb23 Bug 1396066: Restrict -moz-windows-theme and -moz-os-version to UA and chrome only. r=xidorn
MozReview-Commit-ID: 9iEhkcZb52C
2017-10-06 14:34:57 +02:00
Emilio Cobos Álvarez 4efbb7d1dd Bug 1396066: Restrict system-metric media features to UA and chrome sheets only. r=xidorn
MozReview-Commit-ID: 38jRV6mPbE3
2017-10-06 14:34:56 +02:00
Emilio Cobos Álvarez cd52a82d9e Bug 1396066: Restrict :-moz-system-metric to chrome and ua sheets. r=xidorn
MozReview-Commit-ID: AyHWP3QgGlA
2017-10-06 14:34:56 +02:00
Emilio Cobos Álvarez 4ce8f460f2 Bug 1396099: Make :-moz-styleeditor-transitioning only valid in UA sheets. r=xidorn
MozReview-Commit-ID: 9CjdFz5ZpAw
2017-10-05 20:35:54 +02:00
Emilio Cobos Álvarez 9ca2b9b823 Bug 1405635: Test that custom content doesn't inherit from the root element. r=bholley
MozReview-Commit-ID: GvjsdQk5Wt4

--HG--
extra : rebase_source : 7ea1d03c512e197eeadbcae7a7a58cfbfa5e6d20
2017-10-05 01:40:48 +02:00
Sebastian Hengst ee4297061e Backed out changeset 1df4622b548b (bug 1405635) for failing mochitest layout/style/test/test_custom_content_inheritance.html. r=backout on a CLOSED TREE 2017-10-05 17:39:20 +02:00
Emilio Cobos Álvarez d7ff7725af Bug 1405635: Test that custom content doesn't inherit from the root element. r=bholley
MozReview-Commit-ID: GvjsdQk5Wt4
2017-10-05 14:53:22 +02:00
Wes Kocher 6dc323cfe9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Dxbv9TjDlDY
2017-10-04 16:47:41 -07:00
Wes Kocher d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
Arthur Edelstein 451dcb314e Bug 1404224 - Fix ubsan runtime error for nsCSSTokenSerializationType. r=heycam 2017-10-03 10:06:00 -04:00
Emilio Cobos Álvarez d46ace29b9 Bug 1405605: Bypass the IsReallyFixedPos assertion when the style may have changed due to first-line reparenting. r=bz
MozReview-Commit-ID: HS0670UMqKK
2017-10-04 17:53:13 +02:00
Brad Werth 119fecfe62 Bug 1403699 Part 1: Unify ServoBindings synchronization primitives into a single RWLock. r=bholley
MozReview-Commit-ID: GdYLEQHiM1f

--HG--
extra : rebase_source : 50b89324dc06f3374029f36a70a63b0f6fcb0df6
2017-10-03 12:57:38 -07:00
Brad Werth 238373e9d8 Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
MozReview-Commit-ID: DPdz1Tmv24R

--HG--
extra : rebase_source : 529e1414a9017cad3afcacb69bddad1d46d7f9de
2017-09-27 16:53:27 -07:00
Sebastian Hengst 4976129381 Backed out changeset 61387758d1c4 (bug 1376931) 2017-10-05 00:15:02 +02:00
Brad Werth 559b3e4021 Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
MozReview-Commit-ID: DPdz1Tmv24R

--HG--
extra : rebase_source : ddf4b4aae7fdc8ca62de714b9f222daee5959743
2017-09-27 16:53:27 -07:00
Emilio Cobos Álvarez 808664591f Bug 1404324: Mark one of the test-cases as known-asserting until we figure out what to do with that assertion. r=me
MozReview-Commit-ID: 7RI7dwRSFkH
2017-10-04 11:36:20 +02:00
Sebastian Hengst 8512b78e41 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-04 11:18:02 +02:00
Emilio Cobos Álvarez 660ab8f549 Bug 1404324: Use the placeholder state to remove out-of-flows that aren't real descendants of the destruction root. r=bz
Using the style of the frame can mess things up when we reparent them due to
::first-line before removing them.

MozReview-Commit-ID: 3Dt0wF2XRAH
2017-10-04 10:49:41 +02:00
Sebastian Hengst 0ba56b9c7d Backed out changeset cb247c8a0fe5 (bug 1404324) for landing with wrong commit message. r=backout 2017-10-04 10:48:14 +02:00
Emilio Cobos Álvarez ae652b0b37 Bug 1404324: Always remove out of flows from the placeholder frame, using its info. r=bz
MozReview-Commit-ID: 3Dt0wF2XRAH
2017-10-04 10:38:34 +02:00
Bobby Holley cb4c93bfd6 Bug 1403397 - Revert: Round hashglobe allocations up to the nearest page size. r=bholley
This reverts commit a4aba77facc8ceab1e0d7f7d796075a6606b15c6.

MozReview-Commit-ID: 7quMDoDmqxL
2017-10-03 14:07:05 -07:00
Bobby Holley ce4c83e27d Bug 1403397 - Revert: Protect the hashmaps outside of rebuilds. r=bholley
This reverts commit 80a3d080ad6f6ae8641443ba08e11a6e9eed260a.
2017-10-03 14:05:57 -07:00
Bobby Holley ef26283b2d Bug 1403397 - Revert: Add a testing API. r=bholley
This reverts commit 4194b7dd8ec748c044a9b8b0967fd9d652ea342c.
2017-10-03 14:05:56 -07:00
Brad Werth 4560a2c23f Bug 1374181 Part 1: Don't attempt EnsureUniqueInner on incomplete sheets in a StyleSet. r=xidorn
One remaining issue is that requesters of CSSRules might also want to know if those rules are complete, and to listen for completion if the rules are incomplete. Bug 1404538 will fix this up at least for devtools.

MozReview-Commit-ID: COnkS40Ooe2

--HG--
extra : rebase_source : 453bed12805fec668e90d5194fcd3df2d48af56e
2017-10-03 11:15:26 -07:00
Arthur Edelstein 9ce6189199 Bug 1404572 - Fix ubsan runtime error for ReferrerPolicy enum in FontFaceSet.cpp. r=jfkthame 2017-09-30 21:52:00 -04:00
Cameron McCormack 6fdd311839 Bug 1404180 - Don't allow associating form elements by ID to <form>s across anonymous subtree boundaries. r=smaug
MozReview-Commit-ID: KRJjrkL4FgZ

--HG--
extra : amend_source : 80cd5e00804a8b2a5fd4e51b0f7ea9160dd63b1c
2017-10-02 13:10:18 +08:00
Ting-Yu Lin 0407b6a507 Bug 1404243 Part 4 - Change StyleShapeSource's URL value storage by using nsStyleImage. r=heycam
This is for implementing shape-outside: <image> later.

MozReview-Commit-ID: 93TmLecRjRx

--HG--
extra : rebase_source : c2b39b1e12ef96e80a3ceb0a800767d379e6e6bb
2017-09-29 16:24:23 +08:00
Ting-Yu Lin d944131798 Bug 1404243 Part 3 - Remove refcount for StyleBasicShape, and use UniquePtr to hold it. r=heycam
After StyleBasicShape is set to StyleShapeSource, it's life cycle never go
beyond StyleShapeSource, so I make StyleBasicShape hold by a UniquePtr in
StyleShapeSource.

Also, replace all raw pointers to StyleBasicShape by UniquePtr in all APIs.

MozReview-Commit-ID: 1MfIFjP8TsQ

--HG--
extra : rebase_source : bdbbd47de57e0bc610e37913752ab8413f62588a
2017-09-25 18:50:24 +08:00
Ting-Yu Lin d8c9dae62b Bug 1404243 Part 2 - Change StyleShapeSource::operator==() to use logic in DefinitelyEquals(). r=heycam
The original operator==() (implemented by EqualsInternal<true>) is not been
used. Therefore, I expand EqualsInternal<false> into it, and move it to
nsStyleStruct.cpp.

Also, use DefinitelyEqualURIs() in nsStyleStruct.cpp in operator==().

MozReview-Commit-ID: HccwKvzQHR

--HG--
extra : rebase_source : f63dac121e13fd9c6dccf7f0c6e870bd75d9e03a
2017-09-29 14:36:35 +08:00
Ting-Yu Lin 5df24bad8e Bug 1404243 Part 1 - Move StyleShapeSource's large methods to nsStyleStruct.cpp. r=heycam
MozReview-Commit-ID: 5X5LGCSzSwX

--HG--
extra : rebase_source : 28e8a499184688f13069857b886306b3d9b3840f
2017-09-27 11:32:38 +08:00
Shih-Chiang Chien d19facee30 Bug 1381434 - off-main-thread loading web font r=heycam
MozReview-Commit-ID: 8PQdxK5K55

--HG--
extra : rebase_source : 2691c8dcfb9e49b670529526551c4ac0be271eb0
2017-09-29 10:10:13 +08:00
Bobby Holley df7054fd8e Bug 1404316 - Crashtest. r=me
MozReview-Commit-ID: LCbXnY8nqmJ
2017-10-01 14:08:20 -07:00
Sebastian Hengst eb2c50f444 Backed out changeset 325ab1b04aba (bug 1404316) 2017-10-01 10:07:12 +02:00
Bobby Holley cdba57eac5 Bug 1404316 - Crashtest. r=me
MozReview-Commit-ID: LCbXnY8nqmJ
2017-09-30 21:17:36 -07:00
Phil Ringnalda 7546edeeec Backed out 2 changesets (bug 1404316) for debug build bustage
Backed out changeset 555a9dafe460 (bug 1404316)
Backed out changeset e939fa11b68c (bug 1404316)

MozReview-Commit-ID: 5ek3To3HsWo
2017-09-30 21:09:30 -07:00
Bobby Holley b082b896b7 Bug 1404316 - Crashtest. r=me
MozReview-Commit-ID: LCbXnY8nqmJ
2017-09-30 20:02:43 -07:00
Hiroyuki Ikezoe 653e15ba32 Bug 1403433 - Add another variant of SchedulePaint that does not call InvalidateRenderingObservers for PendingAnimationTracker. r=birtles
nsFrame::SchedulePaint() invokes InvalidateRenderingObservers, and
InvalidateRenderingObservers ends up posting change hints during we are
processing sequential tasks for animations, but we don't allow posting any
change hints while we are in the middle of restyling process.

Though the change hints posted by InvalidateRenderingObservers are not harmful
in this case since the change hints will be processed in a second post
traversal without problems.  That's said, InvalidateRenderingObservers stuff
should be processed in display list based invalidation anyway (bug 1284053).

MozReview-Commit-ID: GKVRZ98lvEN
2017-09-29 19:42:13 +09:00
Sebastian Hengst 5a95ac34b4 merge mozilla-central to autoland. r=merge a=merge 2017-09-29 11:49:46 +02:00
Nazım Can Altınova 53bc8653d8 Bug 1396102 - Add some testcases to verify that we consistently serialize the default line directions in linear gradients (iff stylo is enabled) r=dholbert
We exclude these testcases from being tested under Gecko, because they fail some
mochitest checks for parse+serialize idempotence.  The failures happen because of
a combination of these factors:
 (a) Gecko's style system is inconsistent about whether an explicitly-specified
(but default) gradient direction should get serialized.
 (b) Gecko's style system is inconsistent about whether the vendor prefix is
preserved, when parsing a prefixed gradient.

Since these prefixed gradients aren't super-important and since Gecko's style-system
is being replaced via stylo, we're not bothering to fix the gecko style-system for
this -- we'll just make these tests stylo-specific.

MozReview-Commit-ID: 8lL1aRnDO2H

--HG--
extra : rebase_source : 86d5eab7097ebf39238859debc5ff5539cb2429a
2017-09-25 22:13:03 +03:00
Bobby Holley bd4be52f46 Bug 1403397 - Add a testing API. r=bz,r=Manishearth
This will allow us to verify the entire detection pipeline in real nightly
builds, which will give us confidence that real heap corruption will be
detected and reported properly.

MozReview-Commit-ID: 43Fp2HT8RYy
2017-09-28 18:23:15 -07:00
Bobby Holley 9163763885 Bug 1403397 - Protect the hashmaps outside of rebuilds. r=Manishearth,r=dmajor,r=ehoogeveen
MozReview-Commit-ID: KACmfw4pZY2
2017-09-28 18:23:13 -07:00
Bobby Holley 55e810d2cf Bug 1403397 - Round hashglobe allocations up to the nearest page size. r=Manishearth,r=dmajor
MozReview-Commit-ID: 34KFtcwCkBB
2017-09-28 18:23:11 -07:00
J. Ryan Stinnett 521920fe39 Bug 1403465 - Crashtest. r=emilio
MozReview-Commit-ID: 9jYSE2oErnH
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-29 00:05:58 +02:00
Emilio Cobos Álvarez 0d24ce4b72 Bug 1403712: Crashtest. r=bholley
MozReview-Commit-ID: DtOKa8V4deq
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 22:24:56 +02:00
Manish Goregaokar f1f5fc7cf5 Bug 1403808 - Move mFrameRefCount to GeckoStyleContext; r=emilio
MozReview-Commit-ID: 3ZlvXVlgR6i

--HG--
extra : rebase_source : bbebcfd58f6423c966ca9e0dad1adbed31895c84
2017-09-27 20:22:52 -07:00
Emilio Cobos Álvarez 371f0cc42f Bug 1396073: Simplify and remove some more code. r=xidorn
MozReview-Commit-ID: Ec9pfQw7U6W
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:44 +02:00
Emilio Cobos Álvarez b550117c8d Bug 1396073: Remove some never matching rules for applet. r=xidorn
MozReview-Commit-ID: HSSiPWA0RjI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:34 +02:00
Emilio Cobos Álvarez 88eef10615 Bug 1396073: Remove :-moz-empty-except-children-with-local-name. r=xidorn
<applet> is not a thing anymore, and that selector in our UA sheet will never
match anyway, since an <applet> element will never have the BROKEN state.

MozReview-Commit-ID: 7UOMKOv55uJ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:26 +02:00
Emilio Cobos Álvarez d3c613dea4 Bug 1396073: Hide :-moz-devtools-highlighted from anywhere but UA sheets. r=xidorn
It's always used from a UA sheet already.

MozReview-Commit-ID: J3poQuTD1C7
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:18 +02:00
Boris Zbarsky c842174571 Bug 1402218. Make sure to clone our CSSDeclaration as needed when removing properties. r=emilio
MozReview-Commit-ID: 6LRjLU3QQok
2017-09-28 22:04:34 -04:00
Boris Zbarsky 4f6bea99ba Bug 1403293. Make sure that anonymous table columns and column groups never affect hit testing. r=heycam
Per spec, these boxes shouldn't even exist.

MozReview-Commit-ID: 9tQdqSgXg76
2017-09-28 22:03:54 -04:00
Emilio Cobos Álvarez 48c5a32dc2 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe

--HG--
extra : rebase_source : 38248c72c8208200735fe4cf4516e374ea721080
2017-10-02 12:07:11 +02:00
Cameron McCormack 0b7960f23a Bug 1397626 - Part 3: Use SharedFontList to store font-family specified and computed values. r=xidorn
MozReview-Commit-ID: J3MNO2un2ov

--HG--
extra : rebase_source : 737943aea3d383669a7103d4e23f109889c09034
2017-10-03 12:27:45 +08:00
Cameron McCormack 7713fdd126 Bug 1397626 - Part 2: Replace uses of FontFamilyListRefCnt with SharedFontList. r=xidorn
MozReview-Commit-ID: 7HoBae9UOks

--HG--
extra : rebase_source : c0938e034847e825cab3684b70d097b0e0b8c9f9
2017-10-02 10:24:25 +08:00
Sebastian Hengst 66c0db70b2 Backed out changeset 1f1ff129684f (bug 1404897) for Android bustage at nsDocument.cpp:1414: undefined reference to 'Servo_SelectorList_Drop'. r=backout 2017-10-04 12:56:00 +02:00
Sebastian Hengst d90f0a5f6d Backed out changeset cfc393773f0d (bug 1404897) 2017-10-04 12:55:11 +02:00
Emilio Cobos Álvarez ff89c00970 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W

--HG--
extra : rebase_source : 4c816bb774ea7c67262a1e73277e3dbaeec060e8
2017-10-02 18:14:15 +02:00
Emilio Cobos Álvarez 6edc4a4c43 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe

--HG--
extra : rebase_source : de0f04b9155e9ad31596d7fd7b89585b8c1d753f
2017-10-02 12:07:11 +02:00
Sebastian Hengst 65ea166a53 Backed out changeset fda0d9bc93f0 (bug 1404897) for build bustage at nsIDocument.h:1181: bad implicit conversion constructor for 'SelectorList'. r=backout 2017-10-04 11:25:27 +02:00
Sebastian Hengst 000d2b584e Backed out changeset 3833f3700021 (bug 1404897) 2017-10-04 11:24:26 +02:00
Emilio Cobos Álvarez aaadd28724 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-04 11:01:42 +02:00
Emilio Cobos Álvarez 3e01f33d28 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe
2017-10-04 11:01:26 +02:00
Emilio Cobos Álvarez 27b8091362 Bug 1403592: Crashtest. r=Manishearth
I've made it crash at least once, though it's intermittent-y. I guess it's
better than no crashtest.

MozReview-Commit-ID: 5m2VCrEs8lM
2017-09-28 10:12:57 +02:00
Emilio Cobos Álvarez d389330c2e Bug 1403592: Never flush the user font set when getting font metrics from style resolution. r=Manishearth
In this case, the caller doesn't go through all the PreTraverseSync stuff (we
don't really want it to do so), via GetComputedStyleNoFlush.

It makes sense to not flush the user font set that case, we'll schedule a
restyle properly if / when needed.

Since the set should be flushed otherwise, let's just not flush it from the
styling code.

MozReview-Commit-ID: LLHfxemJ8QQ
2017-09-28 10:12:50 +02:00
Emilio Cobos Álvarez 0b1b86082e Bug 1403615: Also follow the NODE_DESCENDANTS_NEED_FRAMES bit in ClearRestyleStateFromSubtree. r=bholley
We don't follow this bit intentionally because we know that even if it's set,
when none of the other two bits are set there are no other restyle / change
hints down the tree.

We rely on the frame constructor to clean the mess up, though, and it doesn't
really do a good work about it.

In particular, the case we're hitting on the test-case is:

<body descendant-need-frames change=reconstruct style="display: table-column-group">
  <div descendant-need-frames>
    <div descendant-need-frames>
      <span needs-frame></span>
    </div>
  </div>
</body>

When we see we need to reconstruct the body, we call
ClearRestyleStateFromSubtree, but that doesn't do much now, since we don't
follow the descendant-need-frames bits.

Then, when we reconstruct the content, we arrive at[1] when constructing the
first child <div>. The <div> flags have been cleared, but not the children's!

Then a text-node is inserted in a <div>, breaking all sorts of invariants.

This is the easiest fix. Other fixes include clearing the flags on
SetAsUndisplayedContent. But that implies not clearing them in
ShouldCreateItemsForChild, and doing that somewhere more sensible.

I suspect it's not too hard, but that's a slightly more risky change, will do it
if you prefer it.

[1]: http://searchfox.org/mozilla-central/rev/3dbb47302e114219c53e99ebaf50c5cb727358ab/layout/base/nsCSSFrameConstructor.cpp#6092

MozReview-Commit-ID: 7026wkQLQkz
2017-09-28 08:53:51 +02:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Sebastian Hengst dc3edbabca Backed out changeset 379e7e7bf80d (bug 1403615) for failing own crashtest. r=backout 2017-09-27 21:27:08 +02:00
Emilio Cobos Álvarez db0476916e Bug 1403615: Also follow the NODE_DESCENDANTS_NEED_FRAMES bit in ClearRestyleStateFromSubtree. r=bholley
We don't follow this bit intentionally because we know that even if it's set,
when none of the other two bits are set there are no other restyle / change
hints down the tree.

We rely on the frame constructor to clean the mess up, though, and it doesn't
really do a good work about it.

In particular, the case we're hitting on the test-case is:

<body descendant-need-frames change=reconstruct style="display: table-column-group">
  <div descendant-need-frames>
    <div descendant-need-frames>
      <span needs-frame></span>
    </div>
  </div>
</body>

When we see we need to reconstruct the body, we call
ClearRestyleStateFromSubtree, but that doesn't do much now, since we don't
follow the descendant-need-frames bits.

Then, when we reconstruct the content, we arrive at[1] when constructing the
first child <div>. The <div> flags have been cleared, but not the children's!

Then a text-node is inserted in a <div>, breaking all sorts of invariants.

This is the easiest fix. Other fixes include clearing the flags on
SetAsUndisplayedContent. But that implies not clearing them in
ShouldCreateItemsForChild, and doing that somewhere more sensible.

I suspect it's not too hard, but that's a slightly more risky change, will do it
if you prefer it.

[1]: http://searchfox.org/mozilla-central/rev/3dbb47302e114219c53e99ebaf50c5cb727358ab/layout/base/nsCSSFrameConstructor.cpp#6092

MozReview-Commit-ID: 7026wkQLQkz
2017-09-27 20:02:04 +02:00
Nicholas Nethercote 859669c8b0 Bug 1401692 - Add crashtest. r=bholley.
This required adding getMemoryReports() to SpecialPowers.

--HG--
extra : rebase_source : b61d0fb7e01973db45c3e3df64f6f5c324fa3b24
2017-09-26 14:32:30 +10:00
Hiroyuki Ikezoe 9e9a01fd49 Bug 1402219 - Compute css variables with custom properties in keyframes for getKeyframes(). r=birtles
MozReview-Commit-ID: 7CMnWbzzemY

--HG--
extra : rebase_source : 977a2d4af632beef45906cb0eb1077fc48ccd4ed
2017-09-27 16:49:21 +09:00
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Daniel Holbert 65c9dd0145 Bug 1383323: Add a property_database.js testcase to verify that we reject radial-gradient() expressions that lack comma between shape and first color (iff stylo is enabled). r=xidorn
As noted in my code-comment here: Gecko's CSS parser incorrectly accepts this
CSS -- wherease Stylo correctly rejects it. Rather than trying to fix this in
Gecko, I'm just adding it in such a way that our expectation changes depending
on which CSS engine we're using.  This lets us regression-test this in our
now-default stylo configuration, and still detect accidental/unexpected
behavior-changes in Gecko.

MozReview-Commit-ID: whLGIrh7TQ

--HG--
extra : rebase_source : fd80ea3ca3ef0a39d1ceae36db11ec2a9e281e25
2017-09-26 15:52:17 -07:00
Emilio Cobos Álvarez 1ae8fc2d3a Bug 1403078: Lazily tweak the traversal root to account for sibling invalidations. r=heycam
MozReview-Commit-ID: Ij3nMOKu5FO
2017-09-26 14:20:11 +02:00
Emilio Cobos Álvarez b28dcac38a Bug 1403028: Crashtest. r=heycam
MozReview-Commit-ID: 68vEodg5jzR
2017-09-26 10:02:29 +02:00
Cameron McCormack 57d322dc42 Bug 1403073 - stylo: Fix some bindgen object layout issues. r=xidorn
MozReview-Commit-ID: CnW4J2ZlmfJ

--HG--
extra : rebase_source : 1a5318e75b1cde9a48dcdab689c7983a0b0c89b5
2017-09-26 15:06:33 +08:00
Cameron McCormack 75329a655b Bug 1403030 - stylo: One more followup to fix a build error. r=me 2017-09-26 10:31:10 +08:00
Cameron McCormack ec4e0786a0 Bug 1403030 - stylo: Followup for another missing const. r=me
--HG--
extra : amend_source : 1db1fe5adf61b5cebd653bf0a0a740a7bfc7d2db
2017-09-26 10:21:37 +08:00
Cameron McCormack d3e557a199 Bug 1403030 - stylo: Fix some mismatching FFI declarations. r=xidorn
MozReview-Commit-ID: C5iBTR0OZKy

--HG--
extra : rebase_source : fa8c99f64dc8a78954cee21747a8915a7c04e7bb
2017-09-26 09:13:36 +08:00
Ryan VanderMeulen d7d9df2904 Bug 1404057 - Add back two lines to the crashtest manifest that got accidentally deleted. r=emilio 2017-10-09 14:54:55 -04:00
Emilio Cobos Álvarez da30d6e2cf Bug 1397619: Test paint-order specified value serialization. r=me
MozReview-Commit-ID: ICtzbZVix1u
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-25 19:01:15 +02:00
Emilio Cobos Álvarez 029a69ad78 Bug 1397619: Test border-spacing specified value serialization. r=me
MozReview-Commit-ID: 1L5mjfvYRLQ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-25 19:01:14 +02:00
Fernando Jimenez Moreno ede1d2702e Bug 1397619 - stylo: test border-radius longhand specified values serialization. r=emilio
MozReview-Commit-ID: FWN56IcctTJ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-25 19:01:14 +02:00
Sebastian Hengst 937b5d72b8 merge mozilla-central to autoland. r=merge a=merge 2017-09-25 12:02:51 +02:00