Commit Graph

12992 Commits

Author SHA1 Message Date
Brindusan Cristian
d0a4ab96a0 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 00:24:15 +02:00
Nathan Froyd
2b3527011f Bug 1325632 - part 3 - compile rust bindings with -fno-sized-deallocation; r=ted.mielczarek
This probably doesn't make a huge difference, as we're not generating
any code here, but better safe than sorry.
2017-11-15 14:53:17 -04:00
Brad Werth
6182a6fe8c Bug 1350780 Part 2: Add a test of getComputedStyle with pseudo element styling on an unflowed display:grid element. r=mats
MozReview-Commit-ID: KEk4cz5bEb0

--HG--
extra : rebase_source : 45a438614ff011bc6d6c4bf13b825c3a99746cd1
2017-11-13 17:45:29 -08:00
Brad Werth
35a17bc67c Bug 1350780 Part 1: Change nsComputedDOMStyle::DoGetGridTemplate{Columns|Rows} to take grid templates from mInnerFrame. r=mats
MozReview-Commit-ID: KYGfehqaOij

--HG--
extra : rebase_source : d05fcd8de27ae7a3b603e4adeb747f531145f0d0
2017-11-14 13:15:37 -08:00
Cameron McCormack
c72056e124 Bug 1417393 - Count style contexts properly. r=emilio
MozReview-Commit-ID: FHoc7XOkH4P

--HG--
extra : rebase_source : 96439470bef18877bc3e6e6ed03645ced467518c
2017-11-15 19:44:05 +08:00
Emilio Cobos Álvarez
f9b153f761 Bug 1416564: Remove mozmm CSS unit. r=heycam
MozReview-Commit-ID: AU4CUq09tw4
2017-11-14 16:14:17 +01:00
Emilio Cobos Álvarez
407a8b95ff Bug 1416756: Stub out Servo_SourceSizeList_Drop so MingGW builds again. r=heycam
MozReview-Commit-ID: 9zvYonPJL16

--HG--
extra : rebase_source : 5c3e3e491684f167b0b9cb614395adfc012e6cf2
2017-11-13 16:41:59 +01:00
Kartikaya Gupta
87186734ba Bug 1416540 - Convert AnimationValue::GetStyleValue to return a float-based Size. r=mattwoodrow
This follows from the previous patch; these values feed into UpdateMinMaxScale
as well, which explicitly wants to use floats, so there's no point in creating
doubles. The source of this information is also a float-based matrix.

MozReview-Commit-ID: LPk4Xm9AaJJ

--HG--
extra : rebase_source : d7714755fb1078880133d6f044cc9bc7743439ee
2017-11-12 18:37:33 -05:00
Emilio Cobos Álvarez
0e8ba9b1b5 Bug 1408308: Reland the bindings so the build isn't busted, but we don't need to backout the servo bits. r=me
That way we don't bust the build (for some reason the ASAN build choked in
ResponsiveImageSelector, I suspect due to missing includes).

MozReview-Commit-ID: 6I6Q7jiAFr0
2017-11-13 06:33:46 +01:00
Margareta Eliza Balazs
85280dc48c Backed out 1 changesets (bug 1408308) for bustage in [toolkit/library/target] r=backout on a CLOSED TREE
Backed out changeset b59ffea83e0a (bug 1408308)
2017-11-13 07:23:52 +02:00
Emilio Cobos Álvarez
58aae7a733 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
This needs to dumb down the parsing in order to match what we do in Gecko and
pass more tests.

The remaining tests are just because of calc() in media queries and "or" media
expressions.

MozReview-Commit-ID: CXGdYVbojBL
2017-11-13 05:18:36 +01:00
Chris Peterson
edb82b8131 Bug 1416164 - Replace NS_POSTCONDITION with MOZ_ASSERT. r=froydnj
MozReview-Commit-ID: 9K3Ksf36uxr

--HG--
extra : rebase_source : c5574794ae0e0ce5e756bdbcc2601896d6916002
2017-11-04 22:48:48 -07:00
Chris Peterson
feb58d9d37 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY

--HG--
extra : rebase_source : 56bef4eead24901191f190e31d2841710097cdcf
2017-10-25 00:37:02 -07:00
Emilio Cobos Álvarez
5e27db6805 Bug 1415021: Re-disable web-components in the crashtest for leaks, see bug 1416296. r=me on a CLOSED TREE
MozReview-Commit-ID: IhWWbh7B8N
2017-11-10 18:58:11 +01:00
Emilio Cobos Álvarez
6d99e28430 Bug 1415021: Enable webcomponents in the crashtest since it calls createShadowRoot. r=me
Thanks RyanVM for the heads-up!

MozReview-Commit-ID: nOQtodKAVY
2017-11-10 17:11:28 +01:00
Nathan Froyd
17b6101551 Bug 1341234 - part 2 - add an intermediate step for determining bindgen's CFLAGS; r=gps
Add an intermediate step in old-configure.in for setting up
BINDGEN_CFLAGS (renamed to BINDGEN_SYSTEM_FLAGS), so we can add whatever
flags we like (e.g. for system libaries with their includes in
non-standard places) at a later point.
2017-11-10 10:05:36 -05:00
Emilio Cobos Álvarez
f21768f547 Bug 1415021: Add crashtest. r=me
MozReview-Commit-ID: AX0CTVFJo7P
2017-11-10 15:16:32 +01:00
Nika Layzell
3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Jason Kratzer
c85719a37f Bug 1415663 - Add crashtest. r=me 2017-11-08 22:39:49 -05:00
Mats Palmgren
1c2b8c222e Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00
Markus Stange
62e25a4903 Bug 1414926 - Make -moz-font-smoothing-background-color changes only cause repaints, not reflows. r=emilio
This case is hit by hovering over menu items, so the optimization is somewhat worthwhile.
As a side-effect, not causing reflows also avoids a XUL <select> popup positioning bug.

MozReview-Commit-ID: AOrijytoHHL

--HG--
extra : rebase_source : c2156eb24171f6d0b0e5476c4a7dbc641a0b5301
2017-11-07 23:01:29 -05:00
Emilio Cobos Álvarez
e92c9696de Bug 1415353: Crashtest. r=me
MozReview-Commit-ID: GjeTrTPfSnP
2017-11-08 15:28:38 +01:00
Martin Stransky
c80f5d1b89 Bug 1413166 - Added moz-gtk-csd-* media features to resistFingerprinting tests, r=bz
MozReview-Commit-ID: FF1rVDSrpK

--HG--
extra : rebase_source : b3fb3e0a5f9492d2698a5f0fe25b7b415fa55953
2017-11-02 12:12:19 +01:00
Martin Stransky
6803a7b4e8 Bug 1413166 - Added parsing tests for moz-gtk-csd-* media features, r=bz
MozReview-Commit-ID: G0fXDJ2Bjwf

--HG--
extra : rebase_source : cc920426bb514da660a22ff53f0717c7c5326d47
2017-11-01 13:16:35 +01:00
Martin Stransky
b61a9fedd5 Bug 1413166 - Export gtk_csd* atoms as media features, r=bz
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 26IV2A3vZAB

--HG--
extra : rebase_source : a4cbcafc8a8e8539b8275e5d0dfdff55175cc882
2017-10-31 14:29:17 +01:00
Martin Stransky
aa7f0bf7f1 Bug 1413166 - Bind gtk_csd* atoms with LookAndFeel, r=bz
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 91pyS53yTVt

--HG--
extra : rebase_source : 7418ba9f83075211f2a8d9b0ef85039684e78121
2017-10-31 14:27:58 +01:00
Markus Stange
f2f07fc63b Bug 1414147 - Move fontSmoothingBackgroundColor from nsStyleUserInterface to nsStyleFont / nsFont. r=dbaron
MozReview-Commit-ID: 7i0Sy50Badm

--HG--
extra : rebase_source : 28f36f191aa82a0ece87b412b59641f7dc061acf
2017-11-02 17:48:44 -04:00
Emilio Cobos Álvarez
9951add396 Bug 1413754: Add tests for parsing of non-content-exposed media queries. r=xidorn
MozReview-Commit-ID: 4B8EPLboM4G

--HG--
extra : rebase_source : 1731ca6931c0aa67df918cf576cd4a0dc868c2e1
2017-11-03 16:46:05 +01:00
Emilio Cobos Álvarez
421fce6c1d Bug 1410624: Allow disabling invalidation-based querySelector from C++. r=bz
Rust compile times are hard.

MozReview-Commit-ID: 9Xhtf7f3Vzv
2017-11-04 12:36:38 +01:00
Emilio Cobos Álvarez
79635409a0 Bug 1410624: Add a Document::elements_with_id API. r=xidorn
MozReview-Commit-ID: BNtbJp0RI68
2017-11-04 12:36:22 +01:00
Emilio Cobos Álvarez
707ec18980 Bug 1410624: Integrate QuerySelectorAll in Gecko. r=heycam
MozReview-Commit-ID: 2Jf3Z6ikjXB
2017-11-04 12:33:41 +01:00
Attila Craciun
334a1e2309 Backed out 5 changesets (bug 1413166) for failing valgrind-test at Conditional jump or move depends on uninitialised value(s) at nsCSSRuleProcessor::InitSystemMetrics / InitSystemMetrics / nsCSSRuleProcessor::HasSystemMetric / GetSystemMetric r=backout on a CLOSED TREE.
Backed out changeset b39bf4bf8127 (bug 1413166)
Backed out changeset e1ef2adcc815 (bug 1413166)
Backed out changeset 16fd21f5ad8c (bug 1413166)
Backed out changeset 9e5f5924dad8 (bug 1413166)
Backed out changeset 3b8671ab0719 (bug 1413166)
2017-11-03 15:55:56 +02:00
Emilio Cobos Álvarez
76b64c7c5f Bug 1374247: Keep the hack working on late beta and release, so we can land this a little earlier. r=bz,xidorn
As Xidorn mentions, if the plan is stylo-in-chrome for 59, we really should land
this assertion pretty much now. This ensures that we don't ship 58 without this
hack.

MozReview-Commit-ID: JXol2r3BMtC
2017-11-03 14:30:05 +01:00
Emilio Cobos Álvarez
101005c955 Bug 1374247: Remove the XBL children matching hack, and assert against it. r=xidorn,francois
MozReview-Commit-ID: 9Q9WpJFczxc
2017-11-03 14:30:03 +01:00
Martin Stransky
6a561c1f1f Bug 1413166 - Added moz-gtk-csd-* media features to resistFingerprinting tests, r=bz
MozReview-Commit-ID: FF1rVDSrpK

--HG--
extra : rebase_source : b3fb3e0a5f9492d2698a5f0fe25b7b415fa55953
2017-11-02 12:12:19 +01:00
Martin Stransky
a1f7fe3810 Bug 1413166 - Added parsing tests for moz-gtk-csd-* media features, r=bz
MozReview-Commit-ID: G0fXDJ2Bjwf

--HG--
extra : rebase_source : cc920426bb514da660a22ff53f0717c7c5326d47
2017-11-01 13:16:35 +01:00
Martin Stransky
49ff47e35f Bug 1413166 - Export gtk_csd* atoms as media features, r=bz
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 26IV2A3vZAB

--HG--
extra : rebase_source : a4cbcafc8a8e8539b8275e5d0dfdff55175cc882
2017-10-31 14:29:17 +01:00
Martin Stransky
29fb3228ed Bug 1413166 - Bind gtk_csd* atoms with LookAndFeel, r=bz
Based on patch by Andrew Comminos [:acomminos] <andrew@comminos.com>

MozReview-Commit-ID: 91pyS53yTVt

--HG--
extra : rebase_source : 7418ba9f83075211f2a8d9b0ef85039684e78121
2017-10-31 14:27:58 +01:00
ANDREEA PAVEL
24a187da02 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-11-02 11:40:57 +02:00
Emilio Cobos Álvarez
0426e8e468 No bug - Remove unused variable. r=me
MozReview-Commit-ID: EuOqz9FLJyy
2017-11-02 06:36:45 +01:00
Xidorn Quan
2ddfdf43a2 Bug 1412714 - Don't clone inner of XBL stylesheet in Servo. r=bz
MozReview-Commit-ID: Kzrod3SBt1k

--HG--
extra : rebase_source : 4cf96063f372ffbeb6aabde396ef9fd9f547bcb7
2017-10-30 15:16:20 +11:00
Sebastian Hengst
ca88e3c4c5 Merge mozilla-central to autoland. r=merge a=merge 2017-11-01 22:58:44 +01:00
Sebastian Hengst
4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Emilio Cobos Álvarez
9bd202a77c Bug 1413288: The owner of a bullet frame is the first continuation of the parent. r=xidorn
MozReview-Commit-ID: FUsdsETkV2Q

--HG--
extra : rebase_source : 9c6183e567321c9ee541a04d001dc00fbcc7e94b
2017-11-01 12:20:55 +01:00
Cameron McCormack
1e2c9293c6 Bug 1390694 - Part 1: Add ServoStyleSet function for checking document state dependencies. r=emilio
MozReview-Commit-ID: G8Ju8yHtYx6

--HG--
extra : rebase_source : 11f25c9b9b9a45144170ff9e563e52577ca8cea2
extra : source : 38302acda5cdb8a808ee80430488d83527a415ff
2017-11-01 21:20:39 +11:00
Mike Hommey
04fe451c07 Bug 1413111 - Use nsTSubstring::Split in nsCSSRuleProcessor::LangPseudoMatches instead of manually go through with FindChar. r=dbaron,njn
--HG--
extra : rebase_source : ff5fc57a3ec6ce6878789bf59524c7180d85c716
2017-11-01 10:19:56 +09:00
Emilio Cobos Álvarez
93dd48995f Bug 1412486: Update bindgen. r=xidorn
Constified enums are default now. I think I want to introduce an option to
bindgen to allow setting the default enum behavior, but it doesn't need to block
this.

The ServoBindings.toml changes are somewhat hacky, but that's because of
https://github.com/rust-lang-nursery/rust-bindgen/issues/1125.

Also, the fixups now need to account for whitespace, since quote generates stuff
like root :: nsString, and we don't rustfmt the bindings if there's no rustfmt
installed.

MozReview-Commit-ID: FZOvZnfYXj5

--HG--
extra : rebase_source : 6cda8e65315d97f394ed2441dd882b6ff955efae
2017-10-30 11:54:03 +01:00
Emilio Cobos Álvarez
62b555ba78 Bug 1412486: Make the replacement for UniquePtr not have a deleter parameter. r=xidorn
Bindgen now assumes for replaced types that all the template parameters are
used, which makes sense.

We don't use the Deleter, so let's get rid of it.

MozReview-Commit-ID: AXxRgyLorD7

--HG--
extra : rebase_source : 844691924cbe692deceeda79d031d9f95bd4f33f
2017-10-30 12:01:01 +01:00
Chris Peterson
73037a0f6a Bug 1412048 - Replace NS_RUNTIMEABORT(var) with MOZ_CRASH_UNSAFE_OOL(var). r=froydnj data-review=francois
And remove unreachable code after MOZ_CRASH_UNSAFE_OOL().

MOZ_CRASH_UNSAFE_OOL causes data collection because crash strings are annotated to crash-stats and are publicly visible. Firefox data stewards must do data review on usages of this macro. However, all the crash strings this patch collects with MOZ_CRASH_UNSAFE_OOL are already collected with NS_RUNTIMEABORT.

MozReview-Commit-ID: IHmJfuxXSqw

--HG--
extra : rebase_source : 031f30934b58a7b87f960e57179641d44aefe5c5
extra : source : fe9f638a56a53c8721eecc4273dcc074c988546e
2017-10-24 23:38:38 -07:00
Chris Peterson
1df202b177 Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj
And remove unreachable code after MOZ_CRASH().

MozReview-Commit-ID: 6ShBtPRKYlF

--HG--
extra : rebase_source : 0fe45a59411bda663828336e2686707b550144ae
extra : source : 8473fd7333d2abe1ea1cc176510c292a5b34df45
2017-10-24 23:30:31 -07:00
Emilio Cobos Álvarez
2a6ba34bad Bug 1412252 - Only fetch mPresShell after flushing the relevant content pres shell. r=bz
MozReview-Commit-ID: BkcYtu2MsNs
2017-10-29 17:39:20 -04:00
Boris Chiou
f3c859eaaa Bug 1340005 - Part 8: Remove tolerance for omta tests. r=hiro
Just notice these precision errors are fixed by our other patches (i.e.
not by this patch series). Anyway, it's time to remove the tolerance.

MozReview-Commit-ID: 2ZDoRhuVOL8

--HG--
extra : rebase_source : 585ddcc4640ef9c8f5875d586e371b101626505d
2017-10-06 17:59:02 +08:00
Boris Chiou
3788926119 Bug 1340005 - Part 6: Move AppendTransformFunction into AnimationValue struct. r=birtles
MozReview-Commit-ID: KhjKXxkllEF

--HG--
extra : rebase_source : 6f22a5f0a90f3f3d160f64c67e6fd6d04a2c1441
2017-10-17 13:11:19 +08:00
Boris Chiou
387cd4d8a1 Bug 1340005 - Part 5: Implement SampleValue for Servo backend. r=birtles
Use the new added FFI, Servo_ComposeAnimationSegment, to compose an
animation segment from Servo backend on the compositor.

MozReview-Commit-ID: LNgpCSIlDl9

--HG--
extra : rebase_source : 5b5c145fae877b4f4b01ea54259737dc9dad2951
2017-10-27 21:09:11 +02:00
Boris Chiou
0129bb4f52 Bug 1340005 - Part 4: Retrieve transform list from AnimationValue. r=birtles
MozReview-Commit-ID: 82NAOBV2rEl

--HG--
extra : rebase_source : 073ff742dcea4573febeec3b57c60b0f1f5736e2
2017-09-25 14:25:43 +08:00
Boris Chiou
743614effe Bug 1340005 - Part 3: Use AnimationValue on the compositor thread. r=birtles
MozReview-Commit-ID: CtnDLsdcr9x

--HG--
extra : rebase_source : 3d4a0f40e2f522471555c04c88474cb08e082851
2017-09-21 17:01:48 +08:00
Boris Chiou
7086921688 Bug 1340005 - Part 2: Implement AnimationValue::Transform. r=birtles
MozReview-Commit-ID: BDKcpDIM9nb

--HG--
extra : rebase_source : 43a5e7f053d746198f422487f7e19f535ccd9dc5
2017-10-27 21:06:30 +02:00
Boris Chiou
701609334e Bug 1340005 - Part 1: Implement AnimationValue::Opacity. r=birtles
We will use Servo backend on the compositor, so implement this for opacity.

MozReview-Commit-ID: BeWR2nBSbjb

--HG--
extra : rebase_source : eb5db3cf04640a83f13857984e792a949f26bcc7
2017-10-27 21:04:52 +02:00
Daniel Holbert
680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Daniel Holbert
a7f82bed77 Bug 1412346 part 4: Update stale MPL license boilerplate on a few files in layout. r=jfkthame
We have a fair number of files that have a particular stale version of the MPL
boilerplate.  (It was probably originally correct, and then the official
boilerplate changed, and the stale MPL boilerplate continued to propagate via
copypasting from neighboring files into newly-added files.)

This patch updates this stale MPL text (and *only* the MPL text) to the latest
version, which can be found at https://www.mozilla.org/en-US/MPL/headers/ and
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

MozReview-Commit-ID: 8WeBb8b0uRo

--HG--
extra : rebase_source : 2c3aa8d07ba23714501c9e26ad03625aeab36a7a
2017-10-27 10:09:35 -07:00
Daniel Holbert
600885496e Bug 1412346 part 2: Split mode line into its own C++ comment & own line, in a few files within layout. r=jfkthame
(This brings these lines into conformance with our standard style for mode
lines, and it's required in order for the modeline.py script to be able to
process these files.)

MozReview-Commit-ID: KqppMKF1jHv

--HG--
extra : rebase_source : 831b29574d66b66b8104f29b5b5c538241e95eba
2017-10-27 10:08:24 -07:00
Daniel Holbert
5581e7e5de Bug 1412346 part 1: Add standard mode line & MPL boilerplate to a few layout C++ files that are missing it entirely. r=jfkthame
Note that I'm intentionally *not* leaving a blank line between the license
block and the "IWYU pragma" line, in nsDisplayItemTypesList.h. This matches the
prevailing style that I found in other files that have "IWYU pragma" lines.

I copied the boilerplate comment directly from the Coding Style MDN page:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

MozReview-Commit-ID: ACoHkDFe8Z3

--HG--
extra : rebase_source : 374d28fea72cfb76043bde724120877b15092d01
2017-10-27 10:07:35 -07:00
Nicholas Nethercote
8ad99dd7fa Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj.
It's a sub-class of nsAtom, useful for cases where you know you are dealing
exclusively with static atoms. The nice thing about it is that you can use
raw nsStaticAtom pointers instead of RefPtr<>. (In fact, the AddRef/Release
implementations ensure that we'll crash if we use RefPtr<nsStaticAtom>.)

MozReview-Commit-ID: 4Q6QHX5h44V

--HG--
extra : rebase_source : e4237f85b4821b684db0ef84d1f9c5e17cdee428
2017-10-27 10:31:13 +11:00
Makoto Kato
73336f8958 Bug 1411522 - Skip layout/style/crashtests/439184-1.html on debug build of Android/stylo. r=emilio
layout/style/crashtests/439184-1.html is too slow (over 12min) on debug build of
android/stylo.

MozReview-Commit-ID: JHD6mZW7M4E

--HG--
extra : rebase_source : d6c1e4d6b9ee65ffe3e4e2a9931047d28d7d463d
2017-10-27 16:16:23 +09:00
Emilio Cobos Álvarez
18c8d123c0 Bug 1410074: Restrict system metric stuff in content pages. r=xidorn
MozReview-Commit-ID: 6rmMQfr8fzf

--HG--
extra : rebase_source : a6d133fa757cb1f6eade9fa7b215c5e404e39855
2017-10-19 16:23:45 +02:00
Attila Craciun
0cab95ab0f Merge inbound to mozilla-central r=merge a=merge 2017-10-26 12:20:45 +03:00
Emilio Cobos Álvarez
5abc6282f0 Bug 1410808. r=xidorn
MozReview-Commit-ID: 5uufVVEIw20
2017-10-25 23:48:26 +02:00
Jesse Ruderman
a0ad2c1e46 Bug 481557 - Add crashtest. r=me 2017-10-25 14:58:33 -04:00
Sebastian Hengst
443416f881 Merge mozilla-central to autoland. r=merge a=merge 2017-10-26 00:39:55 +02:00
Emilio Cobos Álvarez
3a29f9d2ce Bug 1410074: Fixup tests by relanding a test change which should've been part of the second patch. r=me
MozReview-Commit-ID: LPCljOboHkx
2017-10-25 20:46:22 +02:00
Ryan VanderMeulen
46fda21b1a Backed out 3 changesets (bug 1410074) for Windows reftest failures.
Backed out changeset 5d54875788e3 (bug 1410074)
Backed out changeset 4d771e18c365 (bug 1410074)
Backed out changeset d045057cdf68 (bug 1410074)
2017-10-25 13:31:15 -04:00
Emilio Cobos Álvarez
6468a50bc7 Bug 1406750: Use GetStyleContextNoFlush in UpdateCurrentStyleSources, and avoid flushing mPresShell twice. r=bz
MozReview-Commit-ID: Nfu9FZcIzQ
2017-10-25 19:03:14 +02:00
Emilio Cobos Álvarez
f3053729c9 Bug 1406750: Fix detection of animations to avoid flushing. r=hiro,birtles
This fixes multiple things:

 * EffectCompositor was using the light tree instead of the flat tree.

 * When we insert an element inside the document, we may not style it right away
   (we mark it for lazy frame construction with the NODE_NEEDS_FRAME). Since we
   trigger animations and transitions from the traversal, we can't skip flushing
   if we call getComputedStyle on any of those.

MozReview-Commit-ID: DpAhmLH3uJ2
2017-10-25 19:02:01 +02:00
Emilio Cobos Álvarez
7ff0e04616 Bug 1410074: Fix windows-specific resistFingerprinting tests. r=me
MozReview-Commit-ID: 605ZX4si9hD
2017-10-25 17:33:10 +02:00
Emilio Cobos Álvarez
33e5c7314c Bug 1411478: Crashtest. r=xidorn
MozReview-Commit-ID: 3fO3Wn1M609

--HG--
extra : rebase_source : bbb2698717efe22c6a9e14454fbab31f5b65b749
2017-10-25 10:37:38 +02:00
Emilio Cobos Álvarez
93d40bb9bb Bug 1410074: Restrict system metric stuff in content pages. r=xidorn
MozReview-Commit-ID: 6rmMQfr8fzf
2017-10-25 16:05:03 +02:00
Emilio Cobos Álvarez
e1d5b96032 Bug 1410074: Honor CallerType for media query parsing. r=xidorn
We don't support setText (though it wouldn't be hard).

It doesn't really matter anyway.

MozReview-Commit-ID: 6M4HHqVJ1dp
2017-10-25 16:04:55 +02:00
Emilio Cobos Álvarez
d631a75643 Bug 1410074: Make the caller type from MatchMedia arrive to the CSS code. r=xidorn,bz
MozReview-Commit-ID: LUiobfHSUq1
2017-10-25 16:04:48 +02:00
Xidorn Quan
16e53464c5 Bug 1411143 - Give dummy URL extra data a dummy referrer rather than null. r=bz
MozReview-Commit-ID: GV07RBocNnH

--HG--
extra : rebase_source : 1f6371173d9fb2d8811f9fa9e0b0123976974fb9
2017-10-24 18:32:48 +11:00
Andrew Osmond
95ee2e55dc Bug 1404422 - Part 4. Remove imgIOnloadBlocker and related from tree as redundant. r=tnikkel 2017-11-01 06:59:10 -04:00
Emilio Cobos Álvarez
75916bf75c Bug 1413361: EnsureFrameForTextNode shouldn't reconstruct synchronously without up-to-date styles. r=bz
MozReview-Commit-ID: IzpcdCdcPjr
2017-11-01 20:06:28 +01:00
Emilio Cobos Álvarez
2d5df88155 Bug 1410624: Add some declarations and bindings so the build isn't busted when servo-vcs-sync goes back alive. r=me,heycam
https://github.com/servo/servo/pull/18988 has merged a while ago in servo, but
since the sync service is down, I haven't been able to land the relevant patches
today.

This at least ensures that the build isn't busted when servo-vcs-sync goes back
up.

MozReview-Commit-ID: 9ohgwcnMc5T
2017-10-23 22:46:02 +02:00
Nicholas Nethercote
21e7dce1a2 Bug 1410294 (part 3) - Overhaul static atom macros. r=froydnj.
There are four things that must be provided for every static atom, two of which
have a macro:
- the atom pointer declaration (no macro);
- the atom pointer definition (no macro);
- the atom char buffer (NS_STATIC_ATOM_BUFFER);
- the StaticAtomSetup struct (NS_STATIC_ATOM_SETUP).

This patch introduces new macros for the first two things: NS_STATIC_ATOM_DECL
and NS_STATIC_ATOM_DEFN, and changes the arguments of the existing two macros
to make them easier to use (e.g. all the '##' concatenation now happens within
the macros).

One consequence of the change is that all static atoms must be within a class,
so the patch adds a couple of classes where necessary (DefaultAtoms, TSAtoms).

The patch also adds a big comment explaining how the macros are used, and what
their expansion looks like. This makes it a lot easier to understand how static
atoms work. Correspondingly, the patch removes some small comments scattered
around the macro use points.

MozReview-Commit-ID: wpRyrEOTHE

--HG--
extra : rebase_source : 9f85d477b4d06c9a9e710c757de1f1476edb6efe
2017-10-22 08:50:25 +11:00
Nicholas Nethercote
074a872086 Bug 1410294 (part 1) - Rename nsStaticAtom as nsStaticAtomSetup. r=froydnj.
Because it's the type we use to set up static atoms at startup, not the static
atom itself.

The patch accordingly renames some parameters, variables, and NS_STATIC_ATOM,
for consistency.

MozReview-Commit-ID: 1a0KvhYNNw2

--HG--
extra : rebase_source : 5c66e5b2dfe053a368bf3584d957198aec4cce91
2017-10-20 14:04:47 +11:00
J. Ryan Stinnett
8766fcbe53 Bug 1409277 - Ignore non-URLs for background pres attr. r=manishearth
Check background attribute values for the same types (URL, image) in Stylo mode
as we do in Gecko mode.

In particular, this ignores the edge case of the empty attribute, which comes
through as a string value type, and leads Stylo to trigger a load of the page
itself as the background image (since the empty URL is interpreted as relative
to the page).

MozReview-Commit-ID: CUhq5nS8kVw

--HG--
extra : rebase_source : 8a04a3175cb1a873ee7e597ad881ae64720c01ef
2017-10-20 15:24:51 -05:00
Emilio Cobos Álvarez
650a64145b Bug 1410226: Properly compute the insertion point for a display: contents child in an XBL binding. r=mats
MozReview-Commit-ID: DzuGDHZEc1A

--HG--
extra : rebase_source : 59bde9e85e843bd7ce2ee5167b10fcef5dd4d39b
2017-10-20 13:42:15 +02:00
Sebastian Hengst
05cc4b82d9 Backed out changeset f8703e5ad323 (bug 1410226) for failing reftests layout/reftests/forms/legend/shadow-dom.html and layout/reftests/css-display/display-contents-generated-content-2.html. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 73fc264f71697cc56520b580c90ca949650e88ba
2017-10-20 20:40:01 +02:00
Emilio Cobos Álvarez
8074d54110 Bug 1410226: Properly compute the insertion point for a display: contents child in an XBL binding. r=mats
MozReview-Commit-ID: DzuGDHZEc1A

--HG--
extra : rebase_source : 5591e74ccbb830017c0b34081d60335ba95e0be8
2017-10-20 13:42:15 +02:00
Jesse Ruderman
c8d7cc2d4b Bug 809762 - Add crashtest. r=me
--HG--
extra : rebase_source : 8d1b71844bb51097b5b147217dc02c38287ed4cc
2017-10-20 08:36:11 -04:00
Cameron McCormack
6e9ab08423 Bug 1408311 - Part 2: Add GetDeclarationBlock method to BindingStyleRule. r=xidorn
MozReview-Commit-ID: 5adkbeTOHQU

--HG--
extra : rebase_source : 67d196ac36b5f6daca8e20f6ec6063b3f2f8c84d
2017-10-19 15:55:42 +08:00
Cameron McCormack
bbdc9e9e0f Bug 1408311 - Part 1: Make Declaration::RemovePropertyByID return whether it did remove a property. r=xidorn
MozReview-Commit-ID: F44KrwNgYLo

--HG--
extra : rebase_source : 4d09ed37c4aa496feb7f730605f330e8ee6aaced
2017-10-19 15:51:12 +08:00
Emilio Cobos Álvarez
7a3d033bd5 Bug 1409931: nsImageControlFrame can also be using a <map> element. r=xidorn
This goes with a crashtest, as soon as I get a usable build.

MozReview-Commit-ID: LqmPWoJZ7AJ

--HG--
extra : rebase_source : a2f2e4b0b2f3cfa4c0f53bc5110d31f0fb86667f
2017-10-20 12:00:49 +02:00
Attila Craciun
03687d95f5 Backed out 4 changesets (bug 1390694) for failing crash test and in reftest/tests/layout/reftests/xul/mac-tab-toolbar.xul r=backout on a CLOSED TREE.
Backed out changeset b9cff3469bfd (bug 1390694)
Backed out changeset e13dd2a3651f (bug 1390694)
Backed out changeset 83ff9e245757 (bug 1390694)
Backed out changeset 484a2644318f (bug 1390694)
2017-10-20 14:49:52 +03:00
Xidorn Quan
e175680895 Bug 1397644 part 1 - Implement XUL tree pseudo style resolution for stylo. r=emilio
MozReview-Commit-ID: 5JqvLv3tt5m

--HG--
extra : source : 23a7db4b7938b095947abeb41edb0cb6375f95da
2017-10-20 21:31:13 +11:00
Emilio Cobos Álvarez
8a2e749556 Bug 1408702: Don't honor privacy.resistFingerprinting for media features that aren't accessible to content pages. r=xidorn
This is kind of a band-aid because not all the media features chrome code uses
happen to be banned from content pages. But I'll change that soon.

Meanwhile this fixes scrollbars and such.

MozReview-Commit-ID: IVHljzpxc2z

--HG--
extra : rebase_source : 89329ad8b9991057e906b2d21a8120ed0c1e2b7d
2017-10-19 15:06:38 +02:00
Cameron McCormack
2559396ff5 Bug 1390694 - Part 1: Add ServoStyleSet function for checking document state dependencies. r=emilio
MozReview-Commit-ID: G8Ju8yHtYx6

--HG--
extra : rebase_source : fc55dfaa52acf490b65650a7101188115a6e4f18
2017-10-18 17:26:08 +08:00
Sebastian Hengst
24583b9443 merge mozilla-central to autoland. r=merge a=merge 2017-10-20 01:08:09 +02:00
Sebastian Hengst
20d769ea9c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gc5JIILUrPi
2017-10-20 00:05:39 +02:00
Boris Chiou
a43997fa7b Bug 1303235 - Part 1: Add ResolveServoStyleByAddingAnimation. r=hiro
We need to create a temporary ServoStyleContext with the animation value for
calculating the Cumulative change hints.

MozReview-Commit-ID: JzArnaGqVeV

--HG--
extra : rebase_source : 2947910e07f0aab6b385ca60cef927966d15bcf6
2017-10-19 10:51:55 +08:00
Jason Kratzer
c3679cbcac Bug 1409502 - Add crashtest. r=me 2017-10-18 09:43:11 -04:00
Sebastian Hengst
f9b5b9b40c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 790IXj5MZ4f
2017-10-18 11:48:34 +02:00
Sebastian Hengst
f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst
66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Boris Zbarsky
fb684cc726 Bug 1409152. Add an nsTArray::ContainsSorted method. r=froydnj 2017-10-17 15:39:59 -04:00
Andrea Marchesini
d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Sebastian Hengst
0fde5cb6b5 merge mozilla-central to autoland. r=merge a=merge 2017-10-17 11:46:52 +02:00
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Cameron McCormack
8f935136a2 Bug 1408322 - Remove inDOMUtils.cssPropertyIsValid() and use CSS.supports() instead. r=jryans
MozReview-Commit-ID: HNYVb31PZus

--HG--
extra : rebase_source : 8419a14bc21e9cf7f405a2c3091e5dc7d1676da1
2017-10-17 13:00:42 +08:00
Jeremy Chen
f2005d7a52 Bug 1408851 - part3: add test. r=TYLin
MozReview-Commit-ID: 3MrSPQWpcY

--HG--
extra : rebase_source : 44a99cbc823325f2be4994a1dc378b4afa8a57ac
2017-10-16 17:15:01 +08:00
Jeremy Chen
df30b97e6d Bug 1408851 - part2: do not always clamp negative calc values while serializing basic-shape inset. r=TYLin
According to the spec, negative values are valid for inset(), so we should not
clamp it while computing and serializing negative calc values for inset().

MozReview-Commit-ID: DA21CaPO9w7

--HG--
extra : rebase_source : 235b4f144ebff1295853a559e867f4f904f0f061
2017-10-16 17:18:05 +08:00
Jeremy Chen
0391446db0 Bug 1408851 - part1: do not always clamp negative calc values in BoxValuesToString. r=TYLin
nsComputedDOMStyle::BoxValuesToString() is a helper function for computing and
serializing box values. In the current implementation, BoxValuesToString
implicitly clamp negative calc values, which is pretty non-trivial.

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

MozReview-Commit-ID: 1UjLSqtqVzn

--HG--
extra : rebase_source : 9bdbb17fc8287fc5f9e505ffb8d5377917cac510
2017-10-16 16:55:54 +08:00
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