Commit Graph

544927 Commits

Author SHA1 Message Date
Kartikaya Gupta
cad9534e69 Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel
Most of this patch is updating a few places that use gfxMatrix to use
the equivalent-but-differently-named functions on MatrixDouble:
- Translate/Rotate/Scale get turned into PreTranslate/PreRotate/PreScale
- Transform(Point) gets turned into TransformPoint(Point)
- gfxMatrix::TransformBounds(gfxRect) gets turned into
  gfxRect::TransformBoundsBy(gfxMatrix).
- gfxMatrix::Transform(gfxRect) gets turned into
  gfxRect::TransformBy(gfxMatrix).
The last two functions are added in this patch as convenience wrappers
to gfxRect instead of Matrix.h because we don't want Matrix.h to "know"
about gfxRect (to avoid adding gecko dependencies on Moz2D). Once we
turn gfxRect into a typedef for RectDouble these will be eliminated
anyway.

MozReview-Commit-ID: BnOjHzmOSKn

--HG--
extra : rebase_source : cf1692d1f0d44a4b05d684a66678739181a426d5
2017-07-05 11:18:49 -04:00
Kartikaya Gupta
8609d33dec Bug 1377090 - Further generify the Matrix class and define MatrixDouble. r=bas
To allow MatrixDouble to be a drop-in replacement for gfxMatrix, it
needs to accept the "double" versions of Point, Rect, and Size. This
patch does that by adding some extra typedefs inside BaseMatrix to
abstract over that.

It also moves some function implementations into the .h file as they
don't need specialization. I left some function implementations in
the Matrix.cpp file:
- Rotation, because it is specialized for Float and Double, since it uses
  sinf/cosf vs sin/cos in the two implementations.
- The Matrix4x4 multiplication operator overload, because if I put it
  inside the BaseMatrix class declaration Matrix4x4 isn't defined yet
  and the compiler doesn't like it.

MozReview-Commit-ID: K56dZjJhXWS

--HG--
extra : rebase_source : d009151942811a725ee6bf854238073e59665d5c
2017-07-05 11:18:49 -04:00
Kartikaya Gupta
23aa782d4f Bug 1377090 - Move NudgeToInteger(double) into Tools.h for reuse. r=bas
MozReview-Commit-ID: HJ5rmUfKOaG

--HG--
extra : rebase_source : c806c87bf8ad2e872737c01c91e30437b60d4e7b
2017-07-05 11:18:48 -04:00
Kartikaya Gupta
1c54bb2347 Bug 1377090 - Make the Matrix class templated so we can instantiate it with a double type. r=bas
This extracts a BaseMatrix template of which Matrix is now a particular
specialization. The BaseMatrix allows us to reuse the same code for
floats and doubles, much like the other "base" classes (BasePoint,
BaseRect, etc.).

MozReview-Commit-ID: HO7bA83S9E0

--HG--
extra : rebase_source : dcd84d9a978cdea00bb54eb11eefcca9c6635901
2017-07-05 11:18:48 -04:00
Andrew Halberstadt
7ac6ca27c6 Bug 1378212 - Default to grabbing 'parameters.yml' file from latest mozilla-central decision task, r=dustin
MozReview-Commit-ID: 1993ISgb1Dn

--HG--
extra : rebase_source : cac58e5129fc05b702a1724b50082e0a2f1c87ee
2017-07-04 16:10:05 -04:00
Andrew Halberstadt
e26e3d1b13 Bug 1378212 - Give cron-based decision tasks unique index routes, r=dustin
We'd like to use routes like:
index.gecko.v2.mozilla-central.latest.firefox.decision

to automatically find the latest parameters.yml file from a decision task. Unfortunately,
sometimes the latest decision task happens to be triggered by a cron job which uses a different
target_tasks method and therefore won't generate the expected tasks.

This patch *should* create a different index for these types of decision tasks, though I'm not
sure how I can test it before pushing.

MozReview-Commit-ID: 1993ISgb1Dn

--HG--
extra : rebase_source : f86fc60e823e02b922e5eec888620a28f4dc254c
2017-07-04 16:09:58 -04:00
jwu
7b987c5d30 Bug 1366659 - Show default homepage when creating a private tab. r=walkingice
MozReview-Commit-ID: JhGZIFgGYou

--HG--
extra : rebase_source : 2bbe1232410aed4626d7584deabf198df04610e0
2017-07-04 10:52:08 +08:00
Greg Mierzwinski
8f5d6420a6 Bug 1377982 - Use the Ubuntu 16.04 OS in Talos test suites that run on linux64-ccov. r=marco
This patch updates the OS that the Talos test suites use when they run on linux64-ccov to Ubuntu 16.04.

MozReview-Commit-ID: 4hx0jhTXv1C

--HG--
extra : rebase_source : b0b05378a158b74e23b4f330154541e00c305353
2017-07-04 14:31:47 -04:00
jwu
b645d4560e Bug 1378032 - Don't call setTabsCounterPrivateMode on Tablet in Photon. r=walkingice
In Photon, TabCounter has a new design and implementation which handles itself
private mode visual refresh by calling `TabCounter#setPrivateMode(boolean)`.

So we shouldn't call setTabsCounterPrivateMode anymore in BrowserToolbarTabletBase.

MozReview-Commit-ID: LKu4OiTQyJV

--HG--
extra : rebase_source : c31216fcc50e2c8aeadbd03773968c90b5b2f585
2017-07-04 11:07:53 +08:00
Carsten "Tomcat" Book
6a0985654f Backed out changeset 9b2f0f827468 (bug 1377902) for bustage 2017-07-05 16:56:22 +02:00
Carsten "Tomcat" Book
8f9bf5902b Backed out changeset b14cbbf5256a (bug 1378250) on request from sylvestre 2017-07-05 16:55:27 +02:00
Sylvestre Ledru
705e480d84 Bug 1378250 - clang-format: Align consecutive declarations r=andi
MozReview-Commit-ID: CmceBZ5JGJA

--HG--
extra : rebase_source : bab6158185a64ae259fa8dfe23f08f3ecc72b1f8
2017-07-05 11:46:37 +02:00
Emilio Cobos Álvarez
dfa6bdea00 Bug 1377902: Trivially cleanup a bit of the FC code. r=mats
MozReview-Commit-ID: HJKVk7lWp4p

--HG--
extra : rebase_source : 29a1b91602ef52e02869a028487fde67f815d6ec
2017-07-05 16:30:24 +02:00
Simon Sapin
b72787cee2 servo: Merge #17605 - Replace remaining usage of deprecated Range::step_by (from servo:maybereverse); r=nox
… which is being removed in rust-lang/rust#43012

Source-Repo: https://github.com/servo/servo
Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : bf5a743b537b8b238e83e8c84c69ce98e15ec410
2017-07-05 06:08:29 -07:00
Henrik Skupin
c9b6fbb461 Bug 1378191 - Use JSON to send capabilities in "Marionette:listenersAttached" r=automatedtester
By not using the JSON format when sending the capabilities to the
frame script, the values cannot be correctly decoded. As result
the capabilities will be reset to their default values for the
listener, and can cause various failures.

MozReview-Commit-ID: KaryoJiyd30

--HG--
extra : rebase_source : 206e45755d3ea9b6cbf2f2022a9a364dcf22d78e
2017-07-04 21:03:36 +02:00
Alessio Placitelli
0a0f015bfa Bug 1378345 - Fix a typo in experiments.rst. r=chutten
MozReview-Commit-ID: Aqsr1gc1Yvh

--HG--
extra : rebase_source : 6135587f365d23cc87f6a3acbb71007cbd6e5b5a
2017-07-05 15:04:10 +02:00
Julian_Chu
6248874d64 Bug 1377294 - ToolbarDisplay layout color span supports Pirvate mode r=jwu
In ToolbarDisplayLayout we use color span for Title, Domain...etc.

In Photon-flavor we use use different color in priavte mode. In
Australis-flavor, normal-mode and private-mode refers to same color, so
user should not aware anything different.

MozReview-Commit-ID: 30cGivl9oOz

--HG--
extra : rebase_source : d30d2afabacb19f540763604d0286fedb909f4a0
2017-06-22 14:12:39 +08:00
Julian_Chu
4a47fadca4 Bug 1377294 - Let Site-Identity becomes theme-able r=jwu
In Australis flavor, it use same color then user should not aware of any
changes.

In Photon-flaor, its style use UrlBar.Button to avoid involving tint color list.
In current design, we should not tint color for some drawable such as
Lock.

MozReview-Commit-ID: PSuCbNPKR7

--HG--
extra : rebase_source : 088b7a4d78ffcb02267b24c06eb7a4e9e08b1ab1
2017-06-22 13:54:30 +08:00
Julian_Chu
91c053d3f8 Bug 1377294 - Let some icon in ToolbarEditLayout become Theme-able r=jwu
* search icon
* qrcode
* mic

In Australia-flavor, it still use not-theme-able drawable, hence its
appearance won't change even in private mode. In Photon-flavor, these
icons should change its color base on normal/private mode.

MozReview-Commit-ID: EOsJuKqv70d

--HG--
extra : rebase_source : 51d20548bd11bc6a7aeeb9283781ee321a8c8041
2017-06-20 11:18:57 +08:00
Julian_Chu
b8cb89d5d8 Bug 1377294 - duplicate xml resource files r=jwu
Similiar to Bug 1375448. To duplicate and indent some resource files
which will be used in upcoming patches, to prevent effect Australis
flavor.

* toolbar_display_layout
* url_bar_title.xml
* url_bar_title_hint.xml
* drawable/url_bar_bg.xml
* browser_toolbar.xml
* toolbar_edit_layout.xml

MozReview-Commit-ID: LpqFUXCXOrj

--HG--
rename : mobile/android/app/src/main/res/color/url_bar_title.xml => mobile/android/app/src/australis/res/color/url_bar_title.xml
rename : mobile/android/app/src/main/res/color/url_bar_title_hint.xml => mobile/android/app/src/australis/res/color/url_bar_title_hint.xml
rename : mobile/android/app/src/main/res/drawable/url_bar_bg.xml => mobile/android/app/src/australis/res/drawable/url_bar_bg.xml
rename : mobile/android/app/src/main/res/layout-large-v11/browser_toolbar.xml => mobile/android/app/src/australis/res/layout-large-v11/browser_toolbar.xml
rename : mobile/android/app/src/main/res/layout/browser_toolbar.xml => mobile/android/app/src/australis/res/layout/browser_toolbar.xml
rename : mobile/android/app/src/main/res/layout/toolbar_display_layout.xml => mobile/android/app/src/australis/res/layout/toolbar_display_layout.xml
rename : mobile/android/app/src/main/res/layout/toolbar_edit_layout.xml => mobile/android/app/src/australis/res/layout/toolbar_edit_layout.xml
extra : rebase_source : 023a2a23be404e6a8cfaf93cdad6a7879c284a1a
2017-06-19 16:49:27 +08:00
Henrik Skupin
be27f8498f Bug 1378209 - Add DEBUG log line for received observer notifications. r=automatedtester
For debugging purposes it would be useful to see which observer
notifications have been received and handled by the Marionette
component.

MozReview-Commit-ID: 1EucCEjOXhu

--HG--
extra : rebase_source : 09864144c4b92d1652aee6b62c72b29d692bd2ce
2017-07-05 10:35:28 +02:00
Henrik Skupin
dccfbfd03e Bug 1378209 - Add INFO log lines for how Marionette got started. r=automatedtester
It is helpful to let the user know how Marionette get started. So
INFO log lines have to be added for the command line argument and
the environment variable.

This is especially helpful to get in case of missing observer
notifications, under which the server socket is not getting
created, and the client just hangs.

MozReview-Commit-ID: 4TEF33CDJKP

--HG--
extra : rebase_source : 3246fbcce4a3db2beddf82fa7b62ac482f37dcb1
2017-07-05 10:33:23 +02:00
Carsten "Tomcat" Book
49921c11be Merge mozilla-central to autoland 2017-07-05 13:05:51 +02: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
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
Mathieu Leplatre
778f047057 Bug 1376874 - Close blocklist Sqlite connection on shutdown r=mak
MozReview-Commit-ID: LUV9b8U8jGY

--HG--
extra : rebase_source : 607f8054ad00387f17d124c87c0b0b12ce3ee2e2
2017-07-04 12:36:08 +02:00
Hemant Singh Patwal
046089eed8 Bug 1376347 - Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/ r=MarcoZ
MozReview-Commit-ID: AtUmUpOSvhi

--HG--
extra : rebase_source : a719fad7bb4c139ff73520b096a348a6eb5d6465
2017-07-04 18:57:02 +05:30
Masayuki Nakano
5533f095cb Bug 1377653 - part3: WidgetEvent::mFlags should have a bool flag if it's been posted to at least one remote process r=smaug
Currently, it's not been managed yet that whether an event is posted to at least one remote process.  So, for managing the state, BaseEventFlags should have a new bool flag and WidgetEvent and BaseEventFlags should have helper methods for it.

Additionally, this fixes a bug of nsGUIEventIPC.h. In a lot of ParamTraits, static_cast<Foo> is used for using base class's ParamTraits.  However, it causes creating temporary instance with copy constructor.  Therefore, WidgetEvent::MarkAsPostedToRemoteProcess() call in ParamTraits<mozilla::WidgetEvent>::Write() didn't work as expected.

MozReview-Commit-ID: DdafsbVfrya

--HG--
extra : rebase_source : 94205f3a7b36455c3c9f607c35866be033e627c1
2017-07-05 18:59:44 +09:00
Masayuki Nakano
57f359b0de Bug 1377653 - part2: Add helper methods to WidgetEvent and BaseEventFlags to manage propagation state between parent process and remote process r=smaug
Currently, we have 2 bool flags (and optional 2 bool flags with related purpose) for managing propagation state between parent process and remote process.  However, it's really complicated.  Actually, setting these flags and referring the flags is usually follow explanation.

So, for making simpler, WidgetEvent and BaseEventFlags should have some utility methods for making them as self documented code.

This patch moves WidgetKeyboardEvent::mIsReserved to BaseEventFlags::mIsReservedByChrome.  That allows us to manage the cross process event propagation state in same place.

MozReview-Commit-ID: IXEDQJ4GpAZ

--HG--
extra : rebase_source : 5b63ac4f1d15e40e8bfc88423e336de28caa8ab6
2017-07-05 13:58:41 +09: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
Tom Ritter
da6bc01d39 Bug 1378038 MinGW causes a difference of opinion about whether or not we have unistd.h r=jya
MozReview-Commit-ID: JUr98CAbwWg

--HG--
extra : rebase_source : 3924a4489c59c24b458a56c181d8685598de141b
2017-07-03 22:55:55 -05:00
Nicholas Nethercote
1c45fc829f Bug 1378011 (part 1) - Remove nsToken.h, because it is unused. r=mrbkap. 2017-07-04 11:25:09 +10:00
Nicholas Nethercote
c649ebbc0f Backout 72f2cb8b917e (bug 1329923) for causing crashes.
--HG--
extra : rebase_source : c8dd4ebeb3b3e320947a56358d25d8108eb7e040
2017-07-05 14:42:29 +10:00
Phil Ringnalda
22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Phil Ringnalda
edd2fcf74b Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3KyMJNBoJpp
2017-07-04 20:30:34 -07:00
Gabriel Luong
9c0313cf54 Bug 1373935 - Rename "Disply numbers on lines" to "Display line numbers" in the Grid Inspector. r=pbro 2017-07-04 23:06:37 -04:00
James Cheng
feed124df0 Bug 1363547 - Block LG D605 Optimus L9II for adaptive playback. r=jolin
MozReview-Commit-ID: Jr6QSdnqQtI

--HG--
extra : rebase_source : e6b17bd529794b409f5fc05d87e7f1b46d69013d
2017-07-05 08:42:03 +08:00
Edouard Oger
03c81660b0 Bug 1377200 - Ensure Sync can recover after a profile refresh. r=markh
MozReview-Commit-ID: FeId4ANTNX9

--HG--
extra : rebase_source : 5c3f69ee524584617635375d9bc416fc57e9a67e
2017-07-04 15:03:43 -04:00
Emilio Cobos Álvarez
7ae63d2e3b Bug 1378190: Try to make ServoRestyleManager easier to follow. r=heycam
MozReview-Commit-ID: B9bw23n2jUe

--HG--
extra : rebase_source : 2fbd43cee1c3b0efafaa51ef6755adcfe6f31598
2017-07-04 19:16:04 +02:00
Bobby Holley
88c42c5965 Bug 1378005 - Stop synchronously clearing serving data on style set teardown. r=emilio
MozReview-Commit-ID: 3B2qV84peCv
2017-07-04 15:02:18 -07:00
Bobby Holley
25d2053570 Bug 1378005 - Detect prescontext re-initialization and drop any servo data that exists. r=emilio
MozReview-Commit-ID: 76dmk3ip3hv
2017-07-04 15:02:18 -07:00
Bobby Holley
cdffee1b35 servo: Merge #17602 - Use GC machinery rather than recursion for post-rule-tree-teardown node dropping (from bholley:rule_tree_custom_gc); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1378005

Source-Repo: https://github.com/servo/servo
Source-Revision: 006037f79839b94ae6a2db01919976c47d1589b5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c1dee776d1e6fea458bc381653af9aac8fc392d
2017-07-04 13:44:52 -07:00
ffxbld
e8f4f51cd5 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-07-04 08:48:12 -07:00
ffxbld
3bce5dbd2f No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-07-04 08:48:09 -07:00