Commit Graph

545051 Commits

Author SHA1 Message Date
Bobby Holley
df77fb2e20 servo: Merge #17615 - Rip out the generic abstractions around ThreadLocalStyleContext (from bholley:simplify_local_context); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1378540

Source-Repo: https://github.com/servo/servo
Source-Revision: 8923a9e5f0cc292062f852babe878326aff656ef

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : fd5436ab04b074ecab59f7341e77590975f62656
2017-07-05 19:29:01 -07:00
Chun-Min Chang
c5c6d606ca Bug 1378299 - Fix the missing headers; r=cpearce
MozReview-Commit-ID: 1IN2HKWLLM7

--HG--
extra : rebase_source : 4e60644bb283e931f6fcb1f9c89ba6efe202575d
2017-07-05 15:59:03 +08:00
Ray Lin
d53f9d5b3c Bug 1367875 - Add a reftest about brief dynamically chaning <audio> to a small width. r=jaws
MozReview-Commit-ID: 1w5f3jdNb67

--HG--
extra : rebase_source : 4090857889c6f511e291f6038c80616d7eacd85f
2017-07-04 15:06:50 +08:00
Masayuki Nakano
f83bc98f97 Bug 1377752 - part2: Selection::NotifySelectionListeners() should make nsFocusManager not scroll new focused element into the view if it's not focused document r=smaug
When changing selection into a contenteditable element in non-focused document, new focused editor shouldn't be scrolled into the view for compatibility with the other browsers.

MozReview-Commit-ID: FabqizyJrPW

--HG--
extra : rebase_source : 5bd2a017ec4c4f4fc0a6f7644fba2769b3ffca2c
2017-07-05 21:35:18 +09:00
Masayuki Nakano
ef6bac5b7b Bug 1377752 - part1: Add automated test for checking scroll position and focused document when setting selection into a contenteditable element in an iframe element r=smaug
When an iframe doesn't have focus, moving selection into a contenteditable element in it shouldn't cause moving focus to the document, moving focus to the editable element nor scrolling to the editor but the editor should become active element.

When an iframe has focus, moving selection into a contenteditable element in it should cause moving focus to the editor and scroll it into the view.

MozReview-Commit-ID: 1ZDPj6UotLn

--HG--
extra : rebase_source : c407e41f7f6ad771d25a5085786b94dd1bd99792
2017-07-05 22:21:43 +09:00
Andreas Tolfsen
88e5c10a40 Bug 1377767 - Fix idle dispatch call to gather memory in Telemetry; r=erahm
The Services.tm.mainThread.idleDispatch API was renamed in
https://bugzilla.mozilla.org/show_bug.cgi?id=1368072 to
Services.tm.idleDispatchToMainThread.

MozReview-Commit-ID: CZdH4DQdvNz

--HG--
extra : rebase_source : a2689d2cb30ff597b51615f96c5b3d81fb799f53
2017-07-02 12:40:27 -04:00
Xidorn Quan
d5f6047810 Bug 1372790 - Change uint8_t to back some enum and reorder some fields in StyleSheet to make it more compact. r=heycam
MozReview-Commit-ID: DddIzhJqmcZ

--HG--
extra : rebase_source : da357c220cea45fcc5af3b8a7421a0b699a01026
2017-06-14 14:26:48 +10:00
Bobby Holley
eae1f22183 servo: Merge #17612 - Make the style statistics dump threshold configurable (from bholley:custom_threshold); r=emilio
I've wanted to change the threshold a couple of times, and adding in a
10-minute opt rebuild cycle is always a bit de-motivating.

I'm making this option gecko-only because it's pretty niche, and adding
support in servo would require threading it through all the options
stuff. We can add support for it there if we ever need it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 340d350894584a413815fb2c62c88a9bde4e1dc5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4b784661d58cd4585916c0fe64ee05edaef25fe5
2017-07-05 18:37:04 -07:00
Jonathan Chan
0b9d67e054 servo: Merge #17556 - layout: Clean up inline_metrics_of_block a little (from jyc:inline-metrics-of-block); r=emilio
Previously the variable names were a little confusing (ascent was used
for the space_above_baseline in one branch and the and ascent field in
another branch, and was not really the ascent in one). Also add a
small diagram.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they just refactor existing code

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 03450ee8e17a8e5c206f60c93cf035c7522f70b0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b8089f61bb8082b6c3080b87f94034836c7757fe
2017-07-05 17:35:49 -07:00
Botond Ballo
8b7ba8ac1c Bug 1377020 - Use MOZ_DEFINE_ENUM instead of a sentinel enumerator for enumerations in gfx/layers. r=kats
MozReview-Commit-ID: IUQDb0VIAwQ

--HG--
extra : rebase_source : 50d05ab09a5fb03d16c044edd38f0f3e0dba7ada
2017-06-30 21:18:55 -04:00
Botond Ballo
12b5fbce7d Bug 1377020 - Add a new enum serializer ContiguousEnumSerializerInclusive. r=kats
This allows specifying the highest legal value rather than a sentinel
value, to support enumerations that don't have a sentinel.

MozReview-Commit-ID: 5Vj7SnYlfkH

--HG--
extra : rebase_source : 30f567edc6c6bb75971d27226ebfc3574944a9bb
2017-06-30 21:18:49 -04:00
Brian Birtles
bf19615984 Bug 1377053 - Add test for discrete interpolation of stroke-dasharray with 'none'; r=hiro
MozReview-Commit-ID: MuxvAeVwes

--HG--
extra : rebase_source : 6837b4273abee1f2c600524dd376c5e4698a691b
2017-07-05 21:48:02 +09:00
Brian Birtles
1e2aae7454 Bug 1377053 - Update test expectations based in fixed interpolation fallback behavior; r=hiro
MozReview-Commit-ID: LcHuXa3dTpZ

--HG--
extra : rebase_source : ba24aa7856e41463c3cf6f986d762fa385d2905c
2017-07-06 06:31:39 +09:00
Brian Birtles
462794f6fe Bug 1377053 - Crash test for interpolating zero-length lists in add_weighted; r=hiro
MozReview-Commit-ID: DJJlKNZ4GKD

--HG--
extra : rebase_source : a62c269e93ad9840eb50f3acea06c9764658385d
2017-07-06 06:28:11 +09:00
Brian Birtles
fde008d081 servo: Merge #17613 - Handle zero length lists when interpolating (from birtles:zero-length-lists); r=hiro
These are the Servo side changes for [Gecko bug 1377053](https://bugzilla.mozilla.org/show_bug.cgi?id=1377053).

These patches have been reviewed by @hiikezoe.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 162c23f00e3e0dfa267e7af37a47b36afd42e938
2017-07-05 16:47:36 -07:00
Grigory Kruglov
9f0b22d00a Bug 1374758 - Add 'os' object to Sync Ping bundle with basic OS information r=nalexander
We'll use this both to segment pings by different platforms, and segment our dashboards by
different OS versions.

MozReview-Commit-ID: 9RC2jm9Ql6H

--HG--
extra : rebase_source : b8b3ea6853ea8f70e1d737a1f8e4b9b1e2657cd6
2017-06-21 14:27:45 -04:00
Grigory Kruglov
5815a34a18 Bug 1374758 - Rename bundleID to bundleId, for consistency with other platforms r=nalexander
MozReview-Commit-ID: EYM73YArDN

--HG--
extra : rebase_source : 2f21f06e2a3e3c0a51ecb23a3b35acb0b6a5eb51
2017-06-21 14:26:15 -04:00
Grigory Kruglov
a5c2037c76 Bug 1374758 - Add 'when' epoch timestamp to each sync ping r=nalexander
Since we bundle multiple pings together for an upload, it really helps to know when
each individual ping happened.

MozReview-Commit-ID: 2NuHFiNSHFA

--HG--
extra : rebase_source : 8600483688a90dc79684a15d837e6181a665ed36
2017-06-21 14:25:10 -04:00
Grigory Kruglov
bf6922729a Bug 1374758 - Move sync data format version to sync ping bundle r=nalexander
This is being done to be consistent with how other platforms (desktop, iOS) are
reporting their data format version.

MozReview-Commit-ID: 4rmCTaY44h6

--HG--
extra : rebase_source : 75478330f66aa661063498c64095f79febe40495
2017-06-21 14:23:06 -04:00
Wes Kocher
414ea49c45 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7DxSsYpFh3X
2017-07-05 17:19:40 -07:00
Nazım Can Altınova
e0a4015f01 Bug 1341102: Update test expectations for servo/servo#17587 r=me
MozReview-Commit-ID: BIbGXEkWBrp
2017-07-05 16:49:43 -07:00
Nazım Can Altınova
267f0271f1 servo: Merge #17587 - Fix color stop sorting in -webkit-gradient (from canaltinova:webkit-gradient); r=nox
This was causing a reftest failure in gecko side(layout/reftests/webkit-gradient/webkit-gradient-linear-2.html). Basically, it was sorting exactly opposite if two color stops have the same percentage.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

Source-Repo: https://github.com/servo/servo
Source-Revision: 4f0f2fb13eb1e3ce8bf0c5be9749f830545f0bb5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e5f08ee9fd0840413707ac1468f5b63b929630b0
2017-07-05 15:46:01 -07:00
Wes Kocher
2fff726ced Backed out changeset 8eb0c588a43e (bug 1378218) for frequent win debug xpcshell failures in test_sanitizer.js a=backout
MozReview-Commit-ID: EsfsviyLVbw

--HG--
extra : source : b7373e1df03eac30bca7b882a352a7282775059e
2017-07-05 15:08:13 -07:00
Wes Kocher
288405ee34 Merge inbound to m-c a=merge
MozReview-Commit-ID: LpxvieHR7VH
2017-07-05 17:10:43 -07:00
Wes Kocher
b2b6270f16 Merge autoland to central, a=merge
MozReview-Commit-ID: aTamJCbp5v
2017-07-05 16:45:19 -07:00
Jonathan Kew
a2ac9a50b5 Bug 1377534 - Optimize gfxFontconfigFontEntry::GetAspect by using OS/2 metrics directly if available. r=lsalzman 2017-07-05 20:18:51 +01:00
Nathan Froyd
9af0cd2f31 Bug 1377971 - followup - don't explicitly link to libm on Windows; r=bustage
On Windows, libm is just rolled into the CRT, so there's nothing special
we need to do here.

Landing this on a CLOSED TREE
2017-07-05 14:38:52 -04:00
Sebastian Hengst
2f135bc235 Backed out changeset 7fbe19a6f88e (bug 1365601) as requested by bobowen for c3 failures. r=backout 2017-07-05 20:24:26 +02:00
Sebastian Hengst
a02286b777 Backed out changeset 6035f7b2a12c (bug 1365601) 2017-07-05 20:23:26 +02:00
Nathan Froyd
c4db85fbe1 Bug 1378440 - part 2 - add mach cargo check; r=rillian
Cargo recently introduced the `cargo check` command for shortening the
edit-compile cycle when working on large programs.  Since we don't
really support invoking `cargo` directly, let's wire up this command to
`mach`.  Gecko developers can then `mach cargo check` to ensure their
changes typecheck.
2017-07-05 14:19:31 -04:00
Nathan Froyd
d73da35d6b Bug 1378440 - part 1 - make Cargo invocation macro more generic; r=rillian
All the machinery we set up for `cargo build` is equally useful for
other commands, such as `cargo check`.  Let's refactor things so that
it's easy to reuse said machinery for `cargo check`.
2017-07-05 14:19:31 -04:00
Wes Kocher
4632c0896b Backed out changeset 3e43abb01f45 (bug 1373223) at developer's request a=backout
MozReview-Commit-ID: CVfr2m11xw1
2017-07-05 11:19:21 -07:00
Ryan VanderMeulen
5e1e8d2f24 Backed out changeset 261d61f4eeec (bug 1356701) for causing bug 1378339. 2017-07-05 12:58:39 -04:00
ffxbld
fe457a38af No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-07-05 08:47:53 -07:00
ffxbld
04c83f2603 No bug, Automated HSTS preload list update from host bld-linux64-spot-304 - a=hsts-update 2017-07-05 08:47:50 -07:00
Jason Laster
691e57fbfc Bug 1376135 - Upgrade debugger frontend v0.7.0 (6/24). r=jdescottes 2017-07-05 08:38:00 -04:00
Nathan Froyd
2c6c66c145 Bug 1377971 - part 3 - honor LIB_IS_C_ONLY in more cases; r=glandium
We currently only honor LIB_IS_C_ONLY for cases where we set a
LIBRARY (and, implicitly, REAL_LIBRARY) and FORCE_SHARED_LIB.  For many
libraries, such as the libraries from NSS, we never set LIBRARY, which
leads to not setting REAL_LIBRARY, which leads to not honoring
LIB_IS_C_ONLY.  This practice has not been harmful thus far (except
perhaps linking in more things than necessary to our NSS shared
libraries), but on some platforms, linking with the C++ compiler will
drag in more things than we would like.

Consulting LIBRARY first should not be necessary; checking
FORCE_SHARED_LIB should be enough to tell us if we're building a shared
library for the purposes of honoring LIB_IS_C_ONLY.
2017-07-05 14:05:10 -04:00
Nathan Froyd
d2ffb5fefc Bug 1377971 - part 2 - link libavutil and libavcodec with libm; r=rillian
Both of these libraries call into libm for various reasons, but by
linking with the C++ compiler on most platforms, they never had to
declare their dependency on libm.  Future changes will make these
libraries link with the C compiler, which won't automatically link with
libm, so we need to make the dependency explicit prior to that change.
2017-07-05 14:05:10 -04:00
Nathan Froyd
2bed06130d Bug 1377971 - part 1 - make C++ linking for Linkable ignore shared libraries; r=glandium
We have a flag set on all Linkables, cxx_link, denoting whether there's
anything being linked into them that requires C++.  We do this even when
we link against shared libraries that required C++.  But if these
libraries don't export C++ interfaces, there's no reason that the things
linking against them should require C++.  Therefore, ignore shared
libraries when making the determination of whether an object requires
C++ or not.
2017-07-05 14:05:10 -04:00
Carsten "Tomcat" Book
b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Wes Kocher
1a83241dad Backed out 3 changesets (bug 1372433) for stylo assertions in ServoRestyleManager.cpp a=backout
Backed out changeset 3abe2b5f8b24 (bug 1372433)
Backed out changeset cbb550def80d (bug 1372433)
Backed out changeset 78b5ca196c54 (bug 1372433)

MozReview-Commit-ID: H6t8LpY3FHX
2017-07-04 22:32:54 -07:00
Mike Hommey
a02826e8ee Bug 1378278 - Use nullptr in mozjemalloc. r=njn
At the same time:
- replace "(nullptr)" with "nullptr",
- replace "x == nullptr" with "!x",
- replace "x != nullptr" with "x".

--HG--
extra : rebase_source : 5bc5577d0de53244afae9ebadb84962f38306368
2017-07-05 14:02:50 +09:00
Cameron McCormack
82152d369e Bug 1378300 - Stop assuming Gecko style set when fetching XBL sheets for devtools. r=xidorn
MozReview-Commit-ID: KmRDWUQQzPT

--HG--
extra : rebase_source : e37c4549369aa67cae8e075e96f24708144fa5d0
2017-07-05 17:11:54 +08:00
Alexandre Poirot
f490858f8f Bug 1378151 - Remove toolbox-process-window.js preprocessing and enable eslint. r=jdescottes
MozReview-Commit-ID: 6qPg0jSsdsR

--HG--
extra : rebase_source : af62ae660071fe119c73be173741152a81b848a2
2017-07-04 17:05:12 +02:00
Daisuke Akatsuka
4565764d92 Bug 1371115 - Part 15: Remove test fail annotations from meta in wpt. r=hiro
Since we make following properties animatable in this bug,
remove test fail annotations from meta in wpt.

* background-image
* background-repeat
* border-image-outset
* border-image-slice
* border-image-source
* border-image-width
* counter-increment
* counter-reset
* font-family
* font-feature-settings
* grid-auto-columns
* grid-auto-rows
* grid-column-end
* grid-column-start
* grid-row-end
* grid-row-start
* list-style-image
* marker-end
* marker-mid
* marker-start
* mask-image
* mask-repeat
* quotes
* scroll-snap-points-x
* scroll-snap-points-y
* text-emphasis-style
* text-overflow
* will-change

MozReview-Commit-ID: Fq6I59b2fNm

--HG--
extra : rebase_source : 0392dddbe0a9608514d6f0d4dd2fa48c43ffa7d4
2017-07-05 14:12:59 +09:00
Daisuke Akatsuka
d1aa803f11 Bug 1371115 - Part 14: add tests for moz prefixed properties. r=hiro
Since we implement following properties animatable, append to test.

* -moz-border-bottom-colors
* -moz-border-left-colors
* -moz-border-right-colors
* -moz-border-top-colors

MozReview-Commit-ID: E3zWaDcRdtE

--HG--
extra : rebase_source : 27301a4bc354f14cf3f90e8c8271be6022d99721
2017-07-05 13:54:08 +09:00
Daisuke Akatsuka
d455bb09bd Bug 1371115 - Part 12: implements nsStyleImage type properties animatable. r=birtles,hiro
In this patch, implements following properties:

* background-image
* border-image-source
* mask-image

MozReview-Commit-ID: 30RdO0fMNr8

--HG--
extra : rebase_source : d4490b4d64e22a3bc1f022c37edc20363f7c0269
2017-07-05 13:53:47 +09:00
Daisuke Akatsuka
c91507eebc Bug 1371115 - Part 7: implements nsStyleBorder type properties animatable. r=hiro
In this patch, implements following properties:

* -moz-border-bottom-colors
* -moz-border-left-colors
* -moz-border-right-colors
* -moz-border-top-colors

To realize, we introduced a binding method Gecko_GetMozBorderColors.

MozReview-Commit-ID: JeseSyl8rMG

--HG--
extra : rebase_source : 118b6659a7be58f7b84e6024bfeea0a13dad66c0
2017-07-05 13:53:07 +09:00
Daisuke Akatsuka
813e863567 servo: Merge #17544 - Support discrete animations for more Gecko things (from dadaa:bug1371115); r=<try>
<!-- Please describe your changes on the following line: -->
This PR fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1371115

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes. Add some tests into dom/animation/test/ of m-c in patch 14. Also, remove test fail annotation from meta in wpt as patch 15.

Source-Repo: https://github.com/servo/servo
Source-Revision: 42e551f60614da58f47fd29cb095cd72733e38b8

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 8acead695cf4f6294e4f84be90cca616a555a0e0
2017-07-04 22:16:46 -07:00
Nicholas Nethercote
77757143fb Bug 1378011 (part 2) - Remove the Legacy HTML Parser's EntityToUnicode conversions. r=mrbkap.
It's unused except in test code (nsTestEntityTable). The patch removes that
test code, which also removes testing for UnicodeToEntity conversion, but the
test code wasn't being run anyway so it's no great loss.

(UnicodeToEntity conversion is still used by
nsHTMLContentSerializer::AppendAndTranslateEntities().)
2017-07-04 16:00:55 +10:00