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

2220 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 83a923ef7a Merge inbound to mozilla-central. a=merge 2018-05-30 12:25:03 +03:00
Boris Zbarsky 6213894581 Bug 1455676 part 3. Remove nsIDOMNode usage from widget/. r=qdot 2018-05-29 22:58:48 -04:00
Masayuki Nakano 80b5c54449 Bug 1464016 - TextInputHandler should not clear alt/ctrl/meta modifiers of eKeyPress event before sending TextEventDispatcher r=m_kato
If a key combination causes text input, we need to dispatch keypress
events without alt/ctrl/meta modifiers since TextEditor won't handle
keyepress events whose altKey, ctrlKey or metaKey is true as inputting
text.

Currently, TextEventDispatcher sets mCharCode of eKeyPress event from
mKeyValue.  Then, when altKey, ctrlKey or metaKey is true, it'll call
WillDispatchKeyboardEvent() and then, TextInputHandler needs to reset
the charCode value from native event information.

However, the problem is, TextInputHandler::InsertText() is called
with control character when control key is pressed and InsertText()
clears the modifier information before sending eKeyPress event to
TextEvenDispatcher so that TextEventDispatcher won't call
WillDispatchKeyboardEvent() even though control key is actually
pressed.  Therefore, TextInputHandler cannot adjust charCode value
and modifier flags in some cases such as control + option + 'a'.

This patch makes InsertText() stop clearing the modifiers and
makes WillDispatchKeyboardEvent() do it instead.  This procedure
is expected by TextEventDispatcher.

MozReview-Commit-ID: Ig6qgRBeQDh

--HG--
extra : rebase_source : 446e8af0e921946f3409d26ede70446248317673
2018-05-24 20:59:48 +09:00
Markus Stange 27976ff026 Bug 1461118 - Null-check mGeckoChild after calling DispatchInputEvent. r=spohl
MozReview-Commit-ID: 4bfe8TM4GuS

--HG--
extra : rebase_source : 472e531f56b6a63b7cc8c5fc9faeef6b4abb76c0
2018-05-28 18:00:35 -04:00
Dorel Luca d54a3b06aa Backed out changeset da12c077747f (bug 1448040) for Android build bustage on build/src/obj-firefox/dist/include/mozilla/HangAnnotations.h. CLOSED TREE
--HG--
extra : amend_source : 683201b5a47af3cb7fdcb7426c65f1c9ed713186
2018-05-25 20:13:26 +03:00
Doug Thayer 9765bdd0e0 Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : a8840bd26f4b01b756ffa72345ababb625048550
2018-04-29 18:21:20 -07:00
Markus Stange a5f551f7c4 Bug 1461635 - Enforce a minimum widget size of 1x1 for toolbar separators. r=spohl
MozReview-Commit-ID: Gc5TC5DGUI

--HG--
extra : rebase_source : 185ad305189e47877bf6765f12917f5307b3b329
2018-05-23 11:55:41 -04:00
Xidorn Quan 643475f237 Bug 1462262 - Handle pasting image files on macOS. r=spohl
MozReview-Commit-ID: Inp8jmtcoQi

--HG--
extra : rebase_source : 42d27a6fef35e952332e366731c267e5be464c12
2018-05-17 23:12:46 +10:00
Bogdan Tara 3287e1104c Merge inbound to mozilla-central. a=merge 2018-05-18 01:04:08 +03:00
Mats Palmgren 6e331b1d1d Bug 1461222 part 2 - Make GetWidgetPadding return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00
Mats Palmgren bae2d6f225 Bug 1461222 part 1 - Make GetWidgetBorder return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00
Tanushree Podder 22d30f4b45 Bug 1458711 - Allow pinch-zooming to be triggered by Mac trackpad gestures (behind a pref); r=botond,mstange
Previously, a feature was added to trigger pinch-zooming on desktops using the
mousewheel and a modifier key of the user's choosing (behind a pref).

To make testing easier on Macs, we wanted to trigger pinch-zooming
through Mac trackpad gestures. This patch enables pinch zooming through
trackpad gestures when the prefs apz.allow-zooming and
dom.meta-viewport.enabled are set to true. Currently, tests for this feature
were performed manually.

We will be using this feature only for internal testing. Later on when zooming
on desktops is more well-behaved, we will create automated tests and ship it.

MozReview-Commit-ID: HQ9OsPA1HPM

--HG--
extra : rebase_source : 47e4efb28f7ecc1867c00486dcff02b8922d0fc0
2018-05-15 16:03:24 -04:00
Narcis Beleuzu 932adad93d Merge inbound to mozilla-central. a=merge 2018-05-15 00:36:35 +03:00
Adrian Wielgosik c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
David Major 2428ba795b Bug 1460699 followup bustage fix.
error: use of undeclared identifier 'sShutdownOccured'; did you mean 'sShutdownOccurred'?

Why yes, yes I did. Thanks clang!
2018-05-14 11:48:01 -04:00
YUKI "Piro" Hiroshi dd7b3aab39 Bug 1457395 - Fix typo "proces" in comments. r=milan
--HG--
extra : amend_source : 36cf036803ff9bffaebb66fc31ff7b960f0c7509
2018-05-10 16:56:09 +09:00
David Major a0c067cd0e Bug 1458270: Clean up in the shutdown observer. r=milan 2018-05-08 17:37:25 -04:00
David Major 8c24450c7e Bug 1460699: Use an 's' rather than 'm' prefix for GfxInfo static variables. r=milan 2018-05-14 11:16:50 -04:00
Chris Peterson 71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Dale Harvey 2beab3540e Bug 1455310 - Add title data and activity to sharing. r=mstange
MozReview-Commit-ID: IL4sqvRwSwu

--HG--
extra : rebase_source : ff973f92552931c725a81c177c02fcbd5c6aab63
2018-04-25 08:23:32 +01:00
Milan Sreckovic 4712274b69 Bug 1455696: gfx.webrender.all.qualified preference to default to WR for non-blocked devices/hardware. gfx.webrender.all will still force it on. r=milan
--HG--
extra : rebase_source : 173f06f702ccc4eb93d0e4533316056cb07c88af
2018-05-03 13:02:00 +03:00
Cosmin Sabou 2474ce8cde Backed out changeset 48b66743b97b (bug 1455310) for xpcshell failures on widget/tests/unit/test_macsharingservice.js. CLOSED TREE 2018-04-27 19:12:07 +03:00
Dale Harvey b4ccd4de21 Bug 1455310 - Add title data and activity to sharing. r=mstange
MozReview-Commit-ID: IL4sqvRwSwu

--HG--
extra : rebase_source : 7179fc3e2ef112574b02b03a56f150d0e3617d4e
2018-04-25 08:23:32 +01:00
Cosmin Sabou 68fdb6cf4f Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Boris Zbarsky 4783772a18 Bug 1455674 part 17. Remove use of nsIDOMElement in non-dom non-JS code. r=qdot 2018-04-26 23:37:34 -04:00
Boris Zbarsky 6bf97b61c0 Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot 2018-04-26 23:37:29 -04:00
Dão Gottwald c6a2fbaa2b Bug 1457186 - Dispatch the resolutionchange event when DPI settings change on Mac and Linux. r=mstange
MozReview-Commit-ID: DEttWFKyA4

--HG--
extra : rebase_source : 2e204ccc465d88799be5178ef603a9a37f75b738
2018-04-26 17:33:51 +02:00
Dale Harvey b6759085c8 Bug 1455304 - Filter unwanted sharing providers. r=mstange
MozReview-Commit-ID: 5FKHWzcJDYk

--HG--
extra : rebase_source : 6b997c83596fdd2a5ff294f38fb45d90d67209a7
2018-04-21 09:01:09 +01:00
Jonathan Watt 156c4af1ec Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Jonathan Kew 4b2b2d4c9f Bug 1455569 - Handle variation settings of system-installed variation fonts when creating CTFont from CGFont on High Sierra. r=lsalzman 2018-04-20 17:18:03 +01:00
Jonathan Kew 8cc9d24a4f Bug 1454094 - Explicitly copy font variation settings from CGFont when creating a CTFont only on macOS Sierra; on HighSierra, rely on Core Text to automatically propagate the required settings. r=lsalzman 2018-04-18 22:08:41 +01:00
Markus Stange d649a6d091 Bug 1403989 - Automatically treat black menu icons as templates, so that they get drawn inverted in hovered menuitems. r=jrmuizel,spohl
MozReview-Commit-ID: Bn69Ij0BfRa

--HG--
extra : rebase_source : 9d2d7d0797d89d0b7cf6685d29e458795f518e9d
extra : source : 7b389e4f44679c086a4a510da264f2f0531267ec
2018-04-16 15:23:23 -04:00
Dale Harvey 5aeada7d94 Bug 1363168 - Add support for OSX Share feature. r=Gijs,mstange
MozReview-Commit-ID: sJXl2If9Ou

--HG--
extra : rebase_source : b88ff89e1d28bab28c3575c2f7f30c91bd584aea
2018-03-12 09:16:51 +00:00
Markus Stange dc2e7f64fa Bug 1421088 - Move code out of DrawWidgetBackground into a new method called ComputeWidgetInfo. r=spohl
MozReview-Commit-ID: 2XeZHH4lJrj

--HG--
extra : rebase_source : 40c05f8748b8534dbc55a1cea1d44f1fbd4321a1
extra : source : 359f50ab6156dc33aa04dda62816b87fe3883d7d
2018-04-14 23:31:11 -04:00
Markus Stange 74682ab717 Bug 1421088 - Move rendering code out into a separate method. r=spohl
MozReview-Commit-ID: 9lxf0VPYaK8

--HG--
extra : rebase_source : 1e63d6b292f39d97fd54156c71199c1af5a1ea49
extra : intermediate-source : bae3b78391709cf3f00301d90bbac6a458d14446
extra : source : 2d2a595a6d150e3435a11c77609a509bbb8d264f
2017-11-18 18:53:54 -05:00
Markus Stange db34652d0c Bug 1421088 - Create a WidgetInfo struct and route drawing through it. r=spohl
MozReview-Commit-ID: 1pKgNAodbev

--HG--
extra : rebase_source : d3512cd040aa3730d5ba2bbad115838589b2b9c6
2018-04-14 23:19:18 -04:00
Markus Stange c8c263cd37 Bug 1421088 - Create a DrawNativeTitlebar overload that takes a UnifiedToolbarParams param. r=spohl
MozReview-Commit-ID: Gxe4qIZV7HI

--HG--
extra : rebase_source : c9f2b295bf7270f2167641ec27901878f5b362f7
2017-12-01 19:54:29 -05:00
Markus Stange b1e02d2039 Bug 1421088 - Create DrawSourceList. r=spohl
MozReview-Commit-ID: AZoLMcl9YLr

--HG--
extra : rebase_source : e7cceabfe8fd25043fe88227aebf143f7a90ffcf
2017-12-01 18:01:16 -05:00
Markus Stange 988c7e9da6 Bug 1421088 - Create DrawMenuSeparator. r=spohl
MozReview-Commit-ID: Lvab4zMrs2D

--HG--
extra : rebase_source : 498341b5c59b0e13f6133253764c375cbf3ea169
2017-12-01 17:58:02 -05:00
Markus Stange 6868ae0bf5 Bug 1421088 - Create DrawToolbar. r=spohl
MozReview-Commit-ID: 3NMidcVazQo

--HG--
extra : rebase_source : 18cc2df0dd61a5039b8ce50d634441cf6645e702
2017-12-01 17:55:02 -05:00
Markus Stange a2bb203dde Bug 1421088 - Create DrawMultilineTextField. r=spohl
MozReview-Commit-ID: CyAhfGVmfzs

--HG--
extra : rebase_source : 2ee20f5002009fb8877196fb70922a730c4f7ab1
2017-12-01 18:35:45 -05:00
Markus Stange 797692f34e Bug 1421088 - Don't pass an nsIFrame* to DrawResizer. r=spohl
MozReview-Commit-ID: hQbnCke2zN

--HG--
extra : rebase_source : 0b2ff8b2985f36dd9a171e29ba141d1ed6b84603
2017-12-01 18:31:18 -05:00
Markus Stange 23249fd625 Bug 1421088 - Don't pass an nsIFrame* to DrawStatusBar. r=spohl
MozReview-Commit-ID: 6KU2OyZb9BS

--HG--
extra : rebase_source : adbcf1d3a51ed814a4d7055f7a8f8516946022f9
2017-12-01 18:08:35 -05:00
Markus Stange 3b4bd55c63 Bug 1421088 - Remove unused parameters from DrawFocusOutline. r=spohl
MozReview-Commit-ID: Kd6Rxl58Xwh

--HG--
extra : rebase_source : f2e8d2966ae16350bfa076aa818bac57a08bbb1e
2017-12-01 18:07:24 -05:00
Markus Stange 416548794d Bug 1421088 - Don't pass an nsIFrame* to DrawTabPanel. r=spohl
MozReview-Commit-ID: JeWt76t7rRQ

--HG--
extra : rebase_source : 0beb552cf3d4713e6f73c32d7abbd6a0e1e0aaa7
2017-12-01 18:03:12 -05:00
Markus Stange 1c8b5e6c53 Bug 1421088 - Don't pass an nsIFrame* to DrawScale, and create DrawScrollbarTrack and DrawScrollbarThumb. r=spohl
MozReview-Commit-ID: 8MPG7ZlBvVD

--HG--
extra : rebase_source : b10d52492b0264e1b01795647f72f3e01889e2ff
2018-04-14 23:06:29 -04:00
Markus Stange 62c8f8f488 Bug 1421088 - Don't pass an nsIFrame* to DrawMeter. r=spohl
MozReview-Commit-ID: 63ZuRb6VRSY

--HG--
extra : rebase_source : 4a2c47cf025069ed4fecb0d71befed283ed1436c
2017-11-30 18:59:27 -05:00
Markus Stange ceea95633b Bug 1421088 - Don't pass an nsIFrame* to DrawProgress. r=spohl
MozReview-Commit-ID: 7fxBzCyp239

--HG--
extra : rebase_source : 5ba40ddcb96125eb62f19213aa4b76544e475926
2018-04-14 22:43:04 -04:00
Markus Stange 02199fdb2b Bug 1421088 - Don't pass an nsIFrame* to DrawSearchField. r=spohl
MozReview-Commit-ID: 3hlBThgIDt5

--HG--
extra : rebase_source : ed658a76d75c9daca09230413ccd0639c29ccf4d
2017-11-30 18:51:24 -05:00
Markus Stange 4fb1684324 Bug 1421088 - Rename DrawFrame to DrawTextBox and stop passing an nsIFrame* to it. r=spohl
MozReview-Commit-ID: 1hGVXNhbomJ

--HG--
extra : rebase_source : 37f57d72538b35db012a8238faa13274050119bc
2018-04-14 22:29:57 -04:00