Commit Graph

12843 Commits

Author SHA1 Message Date
Xidorn Quan
ffd1cf2956 Bug 1417220 - Force re-resolve style for doc element when binding requires so. r=emilio
MozReview-Commit-ID: DdbpZnk7tCZ

--HG--
extra : rebase_source : 4672e37ea037d07651cd5cf5a136b9a38fedb3f2
2017-11-15 15:39:29 -08:00
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