Commit Graph

1912 Commits

Author SHA1 Message Date
Marc Streckfuss
2625fe32a5 Bug 1353652 - Fix unified builds r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D55281

--HG--
extra : moz-landing-system : lando
2019-12-03 14:03:01 +00:00
Michael Hoffmann
7011479978 Bug 1595677 - Support dark mode profiler popup in default theme for Win and Mac r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D55116

--HG--
extra : moz-landing-system : lando
2019-12-03 13:32:12 +00:00
sotaro
c9b4baab9c Bug 1597861 - Pause compositor during hiding Wayland window r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D53906

--HG--
extra : moz-landing-system : lando
2019-12-02 06:56:27 +00:00
Magnus Melin
85ff146682 Bug 1598337 - add null check to prevent crash at nsApplicationChooser::Done. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D55352

--HG--
extra : moz-landing-system : lando
2019-12-02 19:48:17 +00:00
Emilio Cobos Álvarez
0f8d2aad39 Bug 1600454 - Add some missing includes in nsWaylandDisplay.cpp r=stransky
Otherwise open flags are not defined in some build configurations (or in
non-unified builds, for that matter).

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

--HG--
extra : moz-landing-system : lando
2019-12-02 06:54:08 +00:00
Henri Sivonen
df188f8285 Bug 1600031 - Replace U+0000 with U+FFFD in Gtk IME context to avoid passing U+0000 to IBus. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55243

--HG--
extra : moz-landing-system : lando
2019-11-29 12:00:18 +00:00
Henri Sivonen
cf81804281 Bug 1600029 - Avoid assigned string length as character in IMContextWrapper::Selection::Assign. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55095

--HG--
extra : moz-landing-system : lando
2019-11-28 15:46:17 +00:00
Hiroyuki Ikezoe
1958404d26 Bug 1560660 - Update mSystemUsesDarkTheme in the child process via caching machinery. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D54199

--HG--
extra : moz-landing-system : lando
2019-11-28 22:25:48 +00:00
Kenny Levinsen
1c5650fe48 Bug 1542808 - Implement widget-local VsyncSource for Wayland windows. r=stransky,lsalzman
Lets Wayland sessions run vsync off wayland surface frame callbacks by creating
an interface for widgets to return a local VsyncSource, if applicable.

This interface is currently used for the compositor, and for refresh drivers
in the parent process. It is not yet used for vsync in content processes.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 00:21:33 +00:00
Martin Stransky
a731b16af1 Bug 1599016 [Wayland] Don't use GL_TEXTURE_EXTERNAL_OES textures with DMA BUF backend, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D54690

--HG--
extra : moz-landing-system : lando
2019-11-26 11:15:48 +00:00
Tim Nguyen
9b84d66049 Bug 1597120 - Support dynamic changes to CSS pointer-events on nsMenuPopupFrame. r=karlt,jmathies,mstange,emilio
Differential Revision: https://phabricator.services.mozilla.com/D53379

--HG--
extra : moz-landing-system : lando
2019-11-22 13:14:37 +00:00
Jan Horak
8f225f4f8b Bug 1585918 Show only one remote content panel at a time; r=stransky
Items in overflow-widget which belongs to addons cannot have
the overflow-widget panel set as a popup parent because the
overflow-widget is replaced by them.

We also need to close the addon panel before we return back
to overflow-widget to avoid simillar problem.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 12:19:19 +00:00
Csoregi Natalia
f51f54ce15 Backed out changeset 19b9fd7a11d0 (bug 1585918) for bustage on nsWindow.cpp. CLOSED TREE 2019-11-21 13:02:52 +02:00
Jan Horak
08e22cc986 Bug 1585918 Show only one remote content panel at a time; r=stransky
Items in overflow-widget which belongs to addons cannot have
the overflow-widget panel set as a popup parent because the
overflow-widget is replaced by them.

We also need to close the addon panel before we return back
to overflow-widget to avoid simillar problem.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:17:45 +00:00
Jan Horak
241b5641e1 Bug 1597990 Do not use monitor offset in Wayland because we can't get absolute position ;r=stransky
The absolute position of the window under Wayland is unknown
and using monitor offset to adjust popups position shown
on content (like <select) is therefore broken on Wayland.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:18:18 +00:00
Karl Tomlinson
5af6af429c Bug 1469716 update expose event rectangle log message r=mattwoodrow
for change in rectangle output from
https://hg.mozilla.org/mozilla-central/rev/f5120348a27f02067b4ea070bc429fe5377686f6#l22.166

Depends on D53387

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

--HG--
extra : moz-landing-system : lando
2019-11-20 23:23:47 +00:00
Jed Davis
c8b77dbe74 Bug 1545504 - Use poll() instead of select() on the X11 socket. r=stransky
These are single-fd polls of the X server socket, which in practice will
be much smaller than FD_SETSIZE, but it's cleaner to just not have the
fixed-size array in the first place.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 10:09:35 +00:00
Karl Tomlinson
7199eb1b35 Bug 1469716 SetTransparentMode: warn only when requesting translucency without support r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D53391

--HG--
extra : moz-landing-system : lando
2019-11-19 23:57:47 +00:00
Karl Tomlinson
c3414a9494 Bug 1469716 SetTransparentMode: only clear out popup window layer manager if a different kind is needed r=stransky
Depends on D53389

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

--HG--
extra : moz-landing-system : lando
2019-11-19 10:51:22 +00:00
Karl Tomlinson
f62fdfa67f Bug 1469716 add log messages for SetTransparencyMode r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D53389

--HG--
extra : moz-landing-system : lando
2019-11-20 04:32:43 +00:00
Karl Tomlinson
c4775ee642 Bug 1469716 provide identifying handles in CreateWindowSurface() log messages r=rhunt
These identifiers can be compared with messages from logging from nsWindow.

Also clarify that this log is not intended to indicate each draw.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 04:32:43 +00:00
sotaro
5c0c09d6fe Bug 1597619 - Remove RequestsUpdatingEGLSurface() r=nical
Resume() could be used as a timing of creating EGLSurface.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 10:36:55 +00:00
Karl Tomlinson
5e98d84af1 Bug 1590965 store clipboard only once on shutdown r=stransky
Depends on D50538

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

--HG--
extra : moz-landing-system : lando
2019-11-07 22:42:16 +00:00
Karl Tomlinson
3e1c2db5be bug 1590965 call gtk_clipboard_store() from an event r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D50538

--HG--
extra : moz-landing-system : lando
2019-11-07 22:42:13 +00:00
Karl Tomlinson
8058c82dba Bug 1590965 call gtk_clipboard_store() regardless of whether Gecko is providing the clipboard r=stransky
This stores the clipboard even if it was set in a GTK dialog.

Depends on D50764

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

--HG--
extra : moz-landing-system : lando
2019-11-07 22:42:15 +00:00
Andrew McCreight
f922f43922 Bug 1595828 - Fix some include guards. r=froydnj
The formatting change presumably happens because clang-format treats
include guards differently.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 17:27:20 +00:00
Karl Tomlinson
142c229418 bug 1590965 clear GtkClipboard on nsIClipboard::EmptyClipboard r=stransky
This notifies GTK that the data is no longer available for clipboard_get_cb(),
so that GTK will no longer advertise nor attempt to store the data.

The clipboard is not cleared immediately before it is set in case that might
trigger a system clipboard manager to take ownership of the selection, which
could lead to gtk_clipboard_set_with_data() failing to take ownership back due
to an older timestamp.

This also fixes a GtkTargetList leak.

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

--HG--
extra : moz-landing-system : lando
2019-11-11 11:24:56 +00:00
Masayuki Nakano
0f9b3a05da Bug 1594215 - Make PuppetWidget::GetEditCommands() check mBrowserChild before using it r=smaug
The reason of the crash is, the window may have already been destroyed and
`PuppetWidget::mBrowserChild` was set to `nullptr` when synthesizing key event.

This patch makes `PuppetWidget::GetEditCommands()` check whether it's `nullptr`
and returns whether it's succeeded or not.  Therefore, `TextInputProcessor`
can throw exception in such case.

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

--HG--
extra : moz-landing-system : lando
2019-11-08 11:32:51 +00:00
Martin Stransky
54ae606371 Bug 1593408 [Wayland] Position mozcontainer wayland subsurface at moz_container_move(), r=jhorak
WebRender does not call moz_container_get_wl_egl_window() before each frame so mozcontainer
is not positioned properly here.

As a fix position mozcontainer directly at moz_container_move() if there are resources
for it.

Also always call moz_container_get_wl_surface() at moz_container_get_wl_egl_window()
to make sure an underlying mozcontainer surface is properly positioned.

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

--HG--
extra : moz-landing-system : lando
2019-11-08 14:28:39 +00:00
Martin Stransky
f677c03233 Bug 1589642 - Use gfxPlatformGtk instead of GDK_IS_X11_DISPLAY(gdk_display_get_default() to check current dispay type, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D49724

--HG--
extra : moz-landing-system : lando
2019-11-07 14:28:55 +00:00
Martin Stransky
17cc08c81c Bug 1594729 [Wayland] Mark mozcontainer as moved at moz_container_get_wl_surface(), r=jhorak
Also rename surface_position_update to surface_position_needs_update to make it more clear.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 15:41:24 +00:00
Razvan Maries
67e6a22efa Backed out changeset e1e3835cafc7 (bug 1589642) for build bustages on nsClipboard.cpp. CLOSED TREE 2019-11-07 15:03:59 +02:00
Martin Stransky
a2d726855c Bug 1589642 - Use gfxPlatformGtk instead of GDK_IS_X11_DISPLAY(gdk_display_get_default() to check current dispay type, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D49724

--HG--
extra : moz-landing-system : lando
2019-11-07 12:30:00 +00:00
Martin Stransky
d1e715dc78 Bug 1594688 [Wayland] Don't use mUseDMABuf directly, query UseDMABufBackend() instead as mUseDMABuf is initialized there, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D52142

--HG--
extra : moz-landing-system : lando
2019-11-07 12:15:44 +00:00
Martin Stransky
48cfdc00e3 Bug 1594692 [Wayland] Keep texture for framebuffer object at dmabuf surface, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D52143

--HG--
extra : moz-landing-system : lando
2019-11-07 12:29:56 +00:00
Jim Mason
1be2b74935 Bug 969322 - make :-moz-window-inactive state follow GDK_WINDOW_STATE_FOCUSED when drawing in titlebar r=karlt,stransky
This patch fixes activation of the :-moz-window-inactive pseudoclass in client side decoration during drag operations.  It depends on and complements the fixes provided in support of Bug 1491808.

Obsoletes D50445

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

--HG--
extra : moz-landing-system : lando
2019-11-06 20:49:07 +00:00
Martin Stransky
486a8209db Bug 1592933 - [Wayland] Cache scale factor for toplevel windows, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D51253

--HG--
extra : moz-landing-system : lando
2019-11-06 13:18:55 +00:00
Martin Stransky
93728f0682 Bug 1592933 - [Wayland] Get scale factor from nsWindow::GdkScaleFactor() and set it when wl_surface/egl_window is used for rendering, r=jhorak
Remove moz_container_get_scale() and use only nsWindow::GdkScaleFactor() to get scale factor for wl_surface and wl_egl_window.
Always set the scale factor when wl_surface / wl_egl_window is queued for rendering.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 13:18:43 +00:00
Brindusan Cristian
817b88aae9 Backed out 4 changesets (bug 1590965) as requested by karlt on irc. CLOSED TREE
Backed out changeset f68c212c8b2a (bug 1590965)
Backed out changeset 1ced33f66353 (bug 1590965)
Backed out changeset 22f28d146e38 (bug 1590965)
Backed out changeset 70331e97107e (bug 1590965)
2019-11-06 02:32:29 +02:00
Sam Mauldin
16993481ab Bug 1592389 - Rename Mozfield / Mozfieldtext to Field and Fieldtext r=emilio
Split off of Bug 1590894
Rename these to support unprefixed version
Also add alias to keep compatibility

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

--HG--
extra : moz-landing-system : lando
2019-11-02 21:28:49 +00:00
Martin Stransky
724a9d7e4f Bug 1583732 [Wayland] Use DMABUF for fullscreen updates only, r=jhorak
Add IsDMABufBuffer identification to WindowBackBuffer

Use two sets of wayland buffers (shm and dmabuf) and use dmabuf for fullscreen updates only
when dmabuf is enabled.

Split GetWaylandBufferToDraw() to GetWaylandBufferRecent() and GetWaylandBufferWithSwitch()
to better reflect actual function.

Add CreateWaylandBuffer() to create and store Wayland buffer and use it at SetNewWaylandBuffer()
to change an active wayland buffer or create a new one.

When CACHE_MISSING image cache is selected we draw directly to wayland buffer if it's available
and cache drawing when wayland buffer is missing only. That produces flickering when small buffer parts are
sent to compositor early and the buffer is blocked for further rendering.

This patch enables direct rendering of bigger screen parts only (like page scrolling) to eliminate small
buffer updates.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 21:11:06 +00:00
Martin Stransky
04afc29457 Bug 1592350 [Wayland] Call wl_surface_commit() on parent surface when subsurface position is updated, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D51133

--HG--
extra : moz-landing-system : lando
2019-10-31 19:00:30 +00:00
Karl Tomlinson
28ea5a2234 Bug 1590965 store clipboard only once on shutdown r=stransky
Depends on D50538

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:47:35 +00:00
Karl Tomlinson
8a2f160728 bug 1590965 call gtk_clipboard_store() from an event r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D50538

--HG--
extra : moz-landing-system : lando
2019-10-29 21:47:25 +00:00
Karl Tomlinson
303818c484 Bug 1590965 call gtk_clipboard_store() regardless of whether Gecko is providing the clipboard r=stransky
This stores the clipboard even if it was set in a GTK dialog.

Depends on D50764

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:47:27 +00:00
Karl Tomlinson
3e16a1c556 Bug 1590965 clear GtkClipboard on nsIClipboard::EmptyClipboard r=stransky
This notifies GTK that the data is no longer available for clipboard_get_cb(),
so that GTK will no longer advertise nor attempt to store the data.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 08:59:36 +00:00
Karl Tomlinson
b733e3b3ac Bug 1592502 initialize all fields of GdkEvents r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D51051

--HG--
extra : moz-landing-system : lando
2019-10-30 07:36:23 +00:00
Daniel Varga
b747b90cd8 Backed out changeset ec25a8482342 (bug 1592389) for mochitest failure at layout/style/test/test_value_computation.html. On a CLOSED TREE 2019-10-30 10:17:29 +02:00
Sam Mauldin
09a1cf803b Bug 1592389 - Rename Mozfield / Mozfieldtext to Field and Fieldtext r=emilio
Split off of Bug 1590894
Rename these to support unprefixed version
Also add alias to keep compatibility

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

--HG--
extra : moz-landing-system : lando
2019-10-30 05:51:38 +00:00
Jan Alexander Steffens (heftig)
5d3dcb3132 Bug 1591488 - [Wayland] Only offset the opaque region for normal windows; r=stransky
Maximized and fullscreened windows do not have a CSD decoration border.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 14:48:54 +00:00