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

24192 Коммитов

Автор SHA1 Сообщение Дата
Martin Stransky 3264d3e2dd Bug 1498898 - Don't draw container-only widgets, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D9379

--HG--
extra : moz-landing-system : lando
2018-10-25 12:54:35 +00:00
Tom Schuster 0959f0508c Bug 1499821 - Introduce the FindDataFlavor helper function to nsTransferable. r=froydnj
This combines some of your ideas from D8074, in which I think is quite a big improvement to the overall code.

The code for nsTransferable::GetTransferData, especially nsIFlavorDataProvider is a bit wonky, because I tried to preserve the current behavior.

Differential Revision: https://phabricator.services.mozilla.com/D9599

--HG--
extra : moz-landing-system : lando
2018-10-25 10:04:43 +00:00
Csoregi Natalia 9476fa6c62 Backed out changeset 7b87be447ed8 (bug 1499821) for bustages on nsTransferable.h. CLOSED TREE 2018-10-25 01:26:25 +03:00
Tom Schuster 70d6344664 Bug 1499821 - Introduce the FindDataFlavor helper function to nsTransferable. r=froydnj
This combines some of your ideas from D8074, in which I think is quite a big improvement to the overall code.

The code for nsTransferable::GetTransferData, especially nsIFlavorDataProvider is a bit wonky, because I tried to preserve the current behavior.

Differential Revision: https://phabricator.services.mozilla.com/D9599

--HG--
extra : moz-landing-system : lando
2018-10-24 21:34:32 +00:00
Tom Schuster fa1366d1bc Bug 1500954 - Remove special zero length handling in nsITransferable.GetTransferData. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D9423

--HG--
extra : moz-landing-system : lando
2018-10-24 21:32:04 +00:00
Kartikaya Gupta 5999ea0b2a Bug 1501533 - Block a bunch of low-powered nvidia cards from getting WebRender. r=mattwoodrow
Depends on D9677

Differential Revision: https://phabricator.services.mozilla.com/D9678

--HG--
extra : moz-landing-system : lando
2018-10-24 18:58:00 +00:00
Kartikaya Gupta 8f3838dc1a Bug 1498417 - Don't manually blacklist non-nVidia drivers from WebRender. r=mattwoodrow
We already have a check for the nvidia vendor id in gfxPlatform.cpp so
we don't need to list all the other vendors explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D9677

--HG--
extra : moz-landing-system : lando
2018-10-24 18:58:28 +00:00
shindli 670e412487 Merge inbound to mozilla-central. a=merge 2018-10-24 19:46:50 +03:00
Jonathan Watt 4c7965da49 Bug 1500423. Paint the fill for menulist-textfield manually. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D9410

--HG--
extra : rebase_source : b141e46a4a5c61123107b2c4649dd587f057b5c5
extra : amend_source : 0b0ae51a6b766dfe58e974060a870a9dc02af6ca
2018-10-22 16:17:22 +01:00
Xidorn Quan 78e208a120 Bug 1501418 - Have scrollbar-color: auto resolved to auto rather than two colors. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D9640

--HG--
extra : moz-landing-system : lando
2018-10-24 11:52:46 +00:00
Makoto Kato 4b9422e251 Bug 1496706 - Windows 8 doesn't return valid IInspectable when clicking toast notification. r=aklotz
When clicking toast notification window, OnActivate is called.  When using
Windows 8, 2nd parameter (IInspectable) might be nullptr.

So when this parameter is nullptr, it should recognize as alertclickcallback
with mClickable=true.

Differential Revision: https://phabricator.services.mozilla.com/D8076

--HG--
extra : moz-landing-system : lando
2018-10-23 20:59:02 +00:00
Xidorn Quan cf1681d7e4 Bug 1501428 - Enable test_scrollbar_colors.html on Linux. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D9595

--HG--
extra : moz-landing-system : lando
2018-10-23 23:25:32 +00:00
Jonathan Watt 4fa7304682 Bug 1500637. Remove MOZ_WIDGET_TOOLKIT==gtk2 code. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D9326

--HG--
extra : rebase_source : ee11c8f01af639cf4e3a302593239fd1a6866aa3
extra : amend_source : e8f755f1b8ae33b04e582f9be8751ca85c4b139d
2018-10-18 01:16:39 +01:00
Jan Horak 229b3f0529 Bug 1493081 - Added nsIWidget::GetDesktopToDeviceScaleByScreen for scale factor lookup by window position; r=mattwoodrow
We've added nsIWidget::GetDesktopToDeviceScaleByScreen which will return scale factor of the newly placed window
according to its position on the display. This change is to move implementation to the nsIWidget derived classes.
We need that for GTK Wayland, because on the Wayland we cannot determine absolute position of the window, we
need to use parent's window scale factor. For other platforms the GetDesktopToDeviceScaleByScreen is implemented
in nsBaseWidget.

Differential Revision: https://phabricator.services.mozilla.com/D7290

--HG--
extra : moz-landing-system : lando
2018-10-23 12:49:21 +00:00
Tom Schuster 3a29b5d888 Bug 1499821 - Some general code style fixes for nsTransferable. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9496

--HG--
extra : moz-landing-system : lando
2018-10-23 12:17:02 +00:00
Tom Schuster 4904e37caf Bug 1499821 - Remove unused nsITransferable.isLargeDataSet. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9440

--HG--
extra : moz-landing-system : lando
2018-10-22 21:46:38 +00:00
Ryan Hunt 8a867dafcb Bug 1499554 - Don't blacklist the GPU process for vendors not on the whitelist. r=jrmuizel
We currently allow the GPU process if we are not hardware accelerated. One of the
reasons we might not use hardware acceleration is because the device vendor is
not in the gfxInfo whitelist. In this case, we should be consistent and still
use the GPU process.

Differential Revision: https://phabricator.services.mozilla.com/D9446

--HG--
extra : moz-landing-system : lando
2018-10-23 04:43:28 +00:00
Xidorn Quan d4af807d62 Bug 1498216 - Properly support alpha channel on custom scrollbars. r=spohl
This also includes implementation of nsNativeThemeCocoa::GetWidgetAutoColor
which should have been done in bug 1464722 actually.

Differential Revision: https://phabricator.services.mozilla.com/D8629

--HG--
extra : moz-landing-system : lando
2018-10-22 16:05:05 +00:00
Sebastian Hengst 602fbb8422 merge mozilla-inbound to mozilla-central. a=merge 2018-10-22 20:26:16 +03:00
Jan Beich fba5ec1aed Bug 1500484 - Unbreak Wayland build on FreeBSD after bug 1417890. r=stransky
--HG--
extra : rebase_source : 4e8df32a70652677a8f4b7e78375a6cf97212dbb
2018-10-19 09:45:00 -04:00
Jonathan Watt 3922f1cb96 Bug 1500423. Make '-webkit-appearance: menulist-textfield' behave like Chrome. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D9339

--HG--
extra : rebase_source : afa3c037857838be2e18d4b47eaf64d318747de7
2018-10-19 18:12:15 +01:00
Tom Schuster 3334b2af14 Bug 1497476 - Clang-format nsTransferable.cpp. r=froydnj
Running clang-format makes this code at least a bit more pleasant to look at.

Differential Revision: https://phabricator.services.mozilla.com/D8074

--HG--
extra : moz-landing-system : lando
2018-10-17 16:48:43 +00:00
Martin Stransky a4ef03261f Bug 1500366 - register all DBus connection to be handled by gmain loop, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D9230

--HG--
extra : moz-landing-system : lando
2018-10-19 10:11:46 +00:00
Tom Schuster 1506df6b61 Bug 1497476 - Remove nsITransferable.kFlavorHasDataProvider. r=NeilDeakin
Depends on D8074

Differential Revision: https://phabricator.services.mozilla.com/D8075

--HG--
extra : moz-landing-system : lando
2018-10-16 20:35:10 +00:00
Martin Stransky df678c862e Bug 1500850 - [Wayland] Add missing dbus header dbus-glib-lowlevel.h, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D9365

--HG--
extra : moz-landing-system : lando
2018-10-22 09:14:07 +00:00
Csoregi Natalia f95bae0402 Backed out changeset 9a3a43e8743d (bug 1493081) for bustages on AccessibleWrap.cpp. CLOSED TREE 2018-10-22 12:00:29 +03:00
Jan Horak 9ac0f986e7 Bug 1493081 - Added nsIWidget::GetDesktopToDeviceScaleByScreen for scale factor lookup by window position; r=mattwoodrow
We've added nsIWidget::GetDesktopToDeviceScaleByScreen which will return scale factor of the newly placed window
according to its position on the display. This change is to move implementation to the nsIWidget derived classes.
We need that for GTK Wayland, because on the Wayland we cannot determine absolute position of the window, we
need to use parent's window scale factor. For other platforms the GetDesktopToDeviceScaleByScreen is implemented
in nsBaseWidget.

Differential Revision: https://phabricator.services.mozilla.com/D7290

--HG--
extra : moz-landing-system : lando
2018-10-12 17:03:54 +00:00
Eitan Isaacson d220e1c023 Bug 1499188 - Make accessibility entry input type an int in bundle message. r=jchen,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D8871

--HG--
extra : moz-landing-system : lando
2018-10-16 16:43:16 +00:00
Martin Stransky 0365dbffd5 Bug 1498499 - [Wayland] Implement triple buffering at Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D8849

--HG--
extra : moz-landing-system : lando
2018-10-18 14:30:21 +00:00
Jim Chen 4c2a810a62 Bug 1498352 - Apply root resolution when sending mouse events from child to parent; r=kats
Because the root resolution is conceptually at the parent/child process
boundary, when sending mouse events from child to the parent, we need to
apply that resolution to the mouse coordinates.

Differential Revision: https://phabricator.services.mozilla.com/D8993

--HG--
extra : moz-landing-system : lando
2018-10-18 16:43:40 +00:00
Markus Stange a14e1357ef Bug 1496823 - Remove declaration of -[NSView _regionForOpaqueDescendants:forMove:]. r=spohl
Our implementation of this method was removed in bug 1070710. I forgot to remove the declaration in that bug.

Differential Revision: https://phabricator.services.mozilla.com/D7947

--HG--
extra : moz-landing-system : lando
2018-10-17 20:50:09 +00:00
Margareta Eliza Balazs c41508657f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-18 13:25:55 +03:00
Margareta Eliza Balazs c56977420d Merge inbound to mozilla-central. a=merge 2018-10-18 13:20:43 +03:00
Tom Schuster 90b0f3e9cb Bug 1497580 - Save text/html as UTF-8 to the clipboard. r=karlt
I verified that we can still copy from Firefox to an older version of Firefox without this patch.
LibreOffice also still works. Talking to some GTK people on IRC they are also happy about UTF-8 instead of wrongly declared UCS2.

Differential Revision: https://phabricator.services.mozilla.com/D8467

--HG--
extra : moz-landing-system : lando
2018-10-17 23:00:36 +00:00
Markus Stange 43ec702b66 Bug 1496823 - Inline -[ChildView drawRect:inContext:] into -[ChildView drawRect:]. r=spohl
This was separate because at some point in the past we were calling
-[ChildView drawRect:inContext:] from a separate draw-in-titlebar pass. That separate
pass was removed in bug 676241.

Depends on D7929

Differential Revision: https://phabricator.services.mozilla.com/D7931

--HG--
extra : moz-landing-system : lando
2018-10-17 20:49:18 +00:00
Markus Stange 4dd2f66dab Bug 1496823 - Inline drawUsingOpenGL into drawRect:inContext: and tweak a comment. r=spohl
Depends on D7928

Differential Revision: https://phabricator.services.mozilla.com/D7929

--HG--
extra : moz-landing-system : lando
2018-10-17 20:48:20 +00:00
Markus Stange a6b335391e Bug 1496823 - Remove unneeded debugging code. r=spohl
I don't think anybody has made use of this code in years.

Depends on D7927

Differential Revision: https://phabricator.services.mozilla.com/D7928

--HG--
extra : moz-landing-system : lando
2018-10-17 20:47:33 +00:00
Markus Stange b6affc509f Bug 1496823 - Remove -[ChildView setNeedsDisplayInRect:] override. r=spohl
This override was intended to ignore unnecessary nsChildView::Invalidate calls
when using main thread OpenGL. With OMTC, Gecko no longer calls Invalidate in
those cases, it just composites on the compositor thread, and the widget's main
thread code doesn't really hear about it. So this workaround is no longer necessary.

Depends on D7925

Differential Revision: https://phabricator.services.mozilla.com/D7927

--HG--
extra : moz-landing-system : lando
2018-10-17 20:47:29 +00:00
Markus Stange 0838e29ffa Bug 1496823 - Remove -[ChildView isUsingMainThreadOpenGL] and dependent code because it always returns NO. r=spohl
The main thread layer manager is always NONE, BASIC or CLIENT. It is never OPENGL anymore.
Main-thread OpenGL rendering was removed in bug 924403.

Depends on D7924

Differential Revision: https://phabricator.services.mozilla.com/D7925

--HG--
extra : moz-landing-system : lando
2018-10-17 20:46:16 +00:00
Markus Stange aac44afa75 Bug 1496823 - Remove EventThreadRunner and the pref that enabled it. r=kats,spohl
This was an experiment before we had e10s. It's no longer needed.

Depends on D7922

Differential Revision: https://phabricator.services.mozilla.com/D7924

--HG--
extra : moz-landing-system : lando
2018-10-17 20:44:28 +00:00
Markus Stange 6a68b8cf92 Bug 1496823 - Remove setNeedsPendingDisplay infrastructure. r=spohl
Many years ago, Gecko would sometimes call nsChildView::Invalidate during drawRect:.
This is no longer the case: Widget invalidations now only happen outside of drawRect,
usually from a refresh tick or from viewWillDraw.

Differential Revision: https://phabricator.services.mozilla.com/D7922

--HG--
extra : moz-landing-system : lando
2018-10-17 20:43:23 +00:00
Narcis Beleuzu 0b8074bdd7 Backed out changeset bb2acd046eae (bug 1497580) for clipboard failures on test_clipboard_events.html. CLOSED TREE 2018-10-17 02:02:33 +03:00
Tom Schuster 4a1a92d8c8 Bug 1497580 - Save text/html as UTF-8 to the clipboard. r=karlt
I verified that we can still copy from Firefox to an older version of Firefox without this patch.
LibreOffice also still works. Talking to some GTK people on IRC they are also happy about UTF-8 instead of wrongly declared UCS2.

Differential Revision: https://phabricator.services.mozilla.com/D8467

--HG--
extra : moz-landing-system : lando
2018-10-16 21:08:59 +00:00
Dale Harvey ce7a7296b3 Bug 1363169 - Add support for native windows share. r=gijs, r=aklotz
MozReview-Commit-ID: 7quON7Somvr
2018-10-16 13:54:13 +01:00
sotaro 2661c399b9 Bug 1498982 - Use GL/WebRender compatible visual only when it is necessary necessary r=nical 2018-10-16 21:14:52 +09:00
Jeff Gilbert f78f606a79 No bug - Strip EOL whitespace from widget/windows/nsWindow.cpp.
MozReview-Commit-ID: 31tcxJWLRG2
2018-10-17 16:21:16 -07:00
Tom Schuster 805f4cc3c8 Bug 1497831 - Followup as point as out by froydnj, r=me
--HG--
extra : rebase_source : a19ab1375e2316e38b9e5ecd6801739838e3d01b
2018-10-17 18:21:55 +02:00
Nathan Moos 0e8cef431d Bug 1490186 - Add GtkFileChooserNative support to Firefox. r=stransky
This patch makes Firefox's GTK3 platform support use GtkFileChooserNative when
available. GtkFileChooserNative transparently uses the desktop portals
interface, which enables Firefox to use native Qt file dialogs on KDE, or
sandboxed file dialogs in Flatpak.

Differential Revision: https://phabricator.services.mozilla.com/D7033

--HG--
extra : moz-landing-system : lando
2018-10-15 19:25:10 +00:00
Dorel Luca 451e26f0c6 Backed out changeset 8d7987ea4fb1 (bug 1490257) for causing android failures. CLOSED TREE 2018-10-15 14:39:00 +03:00
Jonathan Kingston 8bcd10a7ab Bug 1490257 - Add asserts and remove implied system triggering principal code r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8368

--HG--
extra : moz-landing-system : lando
2018-10-15 06:29:45 +00:00