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

26752 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez ff61891772 Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp
Having two classes in the inheritance chain inherit from SupportsWeakPtr
now won't compile, but you can use WeakPtr<Derived> when any base class
inherits from SupportsWeakPtr.

Differential Revision: https://phabricator.services.mozilla.com/D83674
2020-07-23 14:51:46 +00:00
Andrew Osmond 67f4c8b777 Bug 1653612 - Enable WebRender on beta for Linux users on X11 and with recent Intel/AMD drivers. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D83973
2020-07-23 11:56:21 +00:00
Robert Mader 963b9ba20a Bug 1654687 - Use gtk_window_set_titlebar directly, r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D84623
2020-07-23 08:53:40 +00:00
Nicolas Silva a4921d9a4c Bug 1652743 - Invalidate window origin recursively.
Differential Revision: https://phabricator.services.mozilla.com/D83908
2020-07-23 07:48:48 +00:00
Dzmitry Malyshau 1be0f732d4 Bug 1640960 - Remove aPosition from all shaders, except debug ones r=gw,jrmuizel
we only draw quads, and for quads we have a fixed vertex buffer with positions.
If we get stop using instancing, we'll no longer have the luxury of 4 vertices there.
Given that they are trivial to compute, it seems simpler to just do that in the shader today.
So this PR is a required step on the way to instance-less rendering.

It appears that we are hitting a driver bug with Intel on macOS, where scissored clears don't work properly if we render without per-vertex attributes.
It doesn't make a ton of sense, but switching to quad clears appears to fix it for me. Added the corresponding entry to the wiki - https://github.com/servo/webrender/wiki/Driver-issues#bug-1652763---glitches-on-macos-intel-with-clears

Differential Revision: https://phabricator.services.mozilla.com/D83391
2020-07-23 05:49:14 +00:00
Andrew Osmond 6cfed64163 Bug 1650748 - Prevent DMABUF usage with GLX. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D84256
2020-07-22 18:58:11 +00:00
Chris Martin afd61504a3 Bug 1647877 - Remote Backbuffer: Only BitBlt dirty region r=mstange
For initial implementation of remote backbuffer, I took a simple approach of
just BitBlt-ing the entire backbuffer contents to the window.

This now only updates the bounding rectangle of the dirty region.

Differential Revision: https://phabricator.services.mozilla.com/D84351
2020-07-22 16:24:37 +00:00
Bob Owen 37fa34b296 Bug 1631465 part 4: Add unwritable margin information for Windows. r=jwatt
This includes adding nsPrinterWin and nsPaperWin, so that we can retrieve
information from the printer device lazily.

Differential Revision: https://phabricator.services.mozilla.com/D84009
2020-07-22 15:12:02 +00:00
Bob Owen 3064765112 Bug 1631465 part 3: Move calculation of unwritable margins to WinUtils. r=jwatt
At some point it might be good to move all of the interaction with the native
Windows printer API into some sort of wrapper class, but this keeps it simple
for now.

Differential Revision: https://phabricator.services.mozilla.com/D84008
2020-07-22 15:08:13 +00:00
Jonathan Kew d64fbb6b0b Bug 1631460 - Create a boolean showMarginGuides attribute on nsIPrintSettings. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D84158
2020-07-20 17:39:12 +00:00
Emily McDonough 2c1c9b5c93 Bug 1653433 Part 2 - Use CUPS header in the CUPSShim to get struct declarations and function signatures. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D84033
2020-07-21 23:39:45 +00:00
Emily McDonough 18d8e7f92a Bug 1653433 Part 1 - Import CUPS headers r=jwatt,froydnj,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D84019
2020-07-21 23:39:42 +00:00
Jeff Gilbert 35f892e782 Bug 1607940 - Stand up webgl.out-of-process:true path. r=handyman,nika,froydnj
* Use clearer pref names.
* Default (and only support) IPDL dispatching.
* Make DispatchCommands async-only.
* Sync ipdl command per sync webgl entrypoint.
  * Eat the boilerplate cost, since there's not too many.
* Run SerializedSize off same path as Serialize.
* All shmem uploads go through normal DispatchCommands.
* Defer pruning of dead code for now so we can iterate quickly.
* Use Read/Write(begin,end) instead of (begin,size).
  * This would have prevented a bug where we read/wrote N*sizeof(T)*sizeof(T).

Differential Revision: https://phabricator.services.mozilla.com/D81495
2020-07-21 22:56:52 +00:00
Doug Thayer 8f54209ef6 Bug 1651165 - Rename idle service r=Gijs,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83413
2020-07-20 16:06:59 +00:00
Kris Taeleman 415406886e Bug 1654032 - Enable Webrender on beta/release for Adreno 6xx devices. r=jnicol,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84203
2020-07-20 21:05:10 +00:00
Andrew Osmond ba13177767 Bug 1649528 - Part 2. Ship WebRender on Mac to early beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D84221
2020-07-20 19:49:59 +00:00
Andrew Osmond 731600fe07 Bug 1649528 - Part 1. Ship WebRender on Intel Gen 7/7.5 gt1, broxton and geminilake to early beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D84220
2020-07-20 19:49:31 +00:00
Emily McDonough 5d41165836 Bug 1653686 - Make adding/managing functions in the CUPS shim less error prone r=emilio
Avoid using a separate list of pointer-to-pointers to the members to hold the
functions. Also use a macro to actually invoke this, which will be useful when
we allow having a hard-dependency on CUPS for OS X.

Differential Revision: https://phabricator.services.mozilla.com/D84022
2020-07-20 20:07:18 +00:00
Robert Mader 0d74f2d95f Bug 1617002 - Remove checks for unsupported GTK3 versions. r=stransky
Cleans up the code a bit to make actually used fallback code easier to spot
and update the required GTK version so deprecation warnings are more accurate.

Also make `gdk_window_set_opaque_region` always available - we can now assume
it to be present in all supported versions.

Differential Revision: https://phabricator.services.mozilla.com/D82804
2020-07-20 15:43:30 +00:00
David Teller 23a82b7187 Bug 1652000 - Refactoring ChromeUtils::RequestProcInfo to place a single request to GetProcInfo;r=tarek,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D83335
2020-07-20 09:42:23 +00:00
Timothy Nikkel 7248961013 Bug 1653700. Populate PanGestureInput::mLineOrPageDeltaX/Y when the events are produced from direct manipulation. r=kats
The macOS widget code already does this here

https://searchfox.org/mozilla-central/rev/d6d8fcc22c3820f2ae08229e0d37be19fba74db9/widget/cocoa/nsChildView.mm#3491

So we factor our a helper from the macOS widget code (which already does this) to use cross platform.

Differential Revision: https://phabricator.services.mozilla.com/D84059
2020-07-18 20:47:04 +00:00
Cosmin Sabou c562fee6cd Backed out 2 changesets (bug 1652000) for causing Bug 1653749.
Backed out changeset 69dbf38f4071 (bug 1652000)
Backed out changeset 0a6cb920a247 (bug 1652000)
2020-07-19 05:54:07 +03:00
Markus Stange ccdf0c3561 Bug 1653737 - Add output time to VsyncEvent. r=nical
This timestamp is provided by the system on macOS, and estimated as "the next
vsync" on all other platforms.

On macOS, the output time increments in very consistent amounts. The timestamp
is independent of when exactly the vsync callback ends up running, so it is less
vulnerable to unfortunate thread scheduling.
This makes it a more reliable source for picking video frames, for example.

Differential Revision: https://phabricator.services.mozilla.com/D83828
2020-07-18 05:34:35 +00:00
David Teller 8c1c6283d4 Bug 1652000 - Refactoring ChromeUtils::RequestProcInfo to place a single request to GetProcInfo;r=tarek,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D83335
2020-07-17 20:32:43 +00:00
Edgar Chen 345c09f684 Bug 1649475 - Remove touch/precise-input-detected observers; r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D81719
2020-07-17 19:47:20 +00:00
Emily McDonough 310ec9ce7c Bug 1653418 - Move CUPS shim to widget/ and add it to OS X configuration r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D83856
2020-07-17 17:34:20 +00:00
Narcis Beleuzu a475e11422 Backed out 2 changesets (bug 1652000) for bustages on ChromeUtils.cpp . CLOSED TREE
Backed out changeset 5f02a357671c (bug 1652000)
Backed out changeset 22bb2a5032b7 (bug 1652000)
2020-07-17 20:16:32 +03:00
David Teller 7c291bdfd1 Bug 1652000 - Refactoring ChromeUtils::RequestProcInfo to place a single request to GetProcInfo;r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D83335
2020-07-17 15:17:52 +00:00
Andrew Osmond 4a645cb26a Bug 1653464 - Improve Linux desktop and window protocol detection. r=nical
This patch adds detection for XWayland, as that is sometimes an
important distinction when debugging WebRender bugs. For all intents and
purposes, it should work the same as X11, but sometimes does not.

This patch also fixes the desktop environment detection for a few corner
cases. Budgie, in particular, claims to be a GNOME variant, which is not
correct for our purposes, and DWM wasn't detected at all.

Differential Revision: https://phabricator.services.mozilla.com/D83876
2020-07-17 09:57:25 +00:00
Makoto Kato 61c5bb1a5e Bug 1648534 - Read HKLM's EnableDesktopModeAutoInvoke entry if no entry in HKCU. r=masayuki
This is regression by bug 1618759 and bug 1197722.

By bug 1197722, we use registry value whether opening software keyboard even if
desktop mode. But this fix isn't enough.

Also, before landing bug 1618759, since TSF manages software keyboard state on
newer Windows 10 version such as Windows 10 RS1, bug 1197722's fix isn't used.
Then, after landing bug 1618759, since we use `EnableDesktopModeAutoInvoke`
again, this issue occurs.

Since `EnableDesktopModeAutoInvoke` is available if in HKLM, we should read
HKLM's key too.

Differential Revision: https://phabricator.services.mozilla.com/D83489
2020-07-17 03:02:15 +00:00
Cameron McCormack af3cb9efc8 Bug 1620467 - Part 5: Remove appearance values not used by the browser or Web content. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83431
2020-07-16 22:04:14 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Cameron McCormack 1fe732d979 Bug 1620467 - Part 3: Defer to -moz-default-appearance when appearance is auto. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83429
2020-07-16 22:04:12 +00:00
Edgar Chen 86341ec4ef Bug 1653214 - Part 2: Remove nsIBaseWindow::Create; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D83767
2020-07-16 20:42:20 +00:00
Butkovits Atila e5880f1a26 Backed out changeset 697243e0434b (bug 1640960) as requested by kvark. CLOSED TREE 2020-07-16 17:31:20 +03:00
Xidorn Quan c7ff1de54c Bug 1350875 part 4 - Have windows notify fullscreen will change. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D68681
2020-07-15 12:21:45 +00:00
Xidorn Quan 1ad851c5cb Bug 1350875 part 3 - Have GTK notify fullscreen will change. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D68680
2020-07-15 11:10:29 +00:00
Xidorn Quan 14becb6203 Bug 1350875 part 2 - Have cocoa always notify fullscreen will change. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D68679
2020-07-15 11:10:22 +00:00
Xidorn Quan cd22a67b7e Bug 1350875 part 1 - Have android notify fullscreen will change. r=snorp,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68678
2020-07-15 14:23:14 +00:00
alwu 1493d7798d Bug 1621403 - part2 : implement `seekto` action. r=chunmin,emilio
Implement `Seekto` action [1]. In addtion, as `seekto` can go with additional properties, we create a new structure `MediaControlAction` to wrap `MediaControlKey` and `SeekDetails`, which can be sent with `seekto`.

[1] https://w3c.github.io/mediasession/#dom-mediasessionaction-seekto

Differential Revision: https://phabricator.services.mozilla.com/D82816
2020-07-16 00:16:33 +00:00
Emily McDonough b8cee90569 Bug 1631465 part 2 - Add unwritable margin information for OS X r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D83392
2020-07-15 18:25:19 +00:00
Emily McDonough 80b4720de5 Bug 1631465 part 1 - Add unwritable margin information to nsIPaper r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D83387
2020-07-15 18:38:08 +00:00
Simon Giesecke 96fb649d21 Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
2020-07-15 13:44:39 +00:00
Simon Giesecke 0421532c89 Bug 1652008 - Add some missing include directives in widget/windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D83102
2020-07-15 13:43:37 +00:00
Simon Giesecke 426bb6e4a5 Bug 1651930 - Add missing include in nsXPLookAndFeel.cpp. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D83048
2020-07-15 12:45:07 +00:00
Simon Giesecke fea9dab7f2 Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug
With these changes, on my Linux analysis with ClangBuildAnalyzer, the
top two expensive headers, DOMTypes.h and TabMessageUtils.h are no longer
among the 30 most expensive headers.

Differential Revision: https://phabricator.services.mozilla.com/D82935
2020-07-15 13:24:20 +00:00
Dzmitry Malyshau 368c201e04 Bug 1640960 - Remove aPosition from all shaders, except debug ones r=gw,jrmuizel
we only draw quads, and for quads we have a fixed vertex buffer with positions.
If we get stop using instancing, we'll no longer have the luxury of 4 vertices there.
Given that they are trivial to compute, it seems simpler to just do that in the shader today.
So this PR is a required step on the way to instance-less rendering.

It appears that we are hitting a driver bug with Intel on macOS, where scissored clears don't work properly if we render without per-vertex attributes.
It doesn't make a ton of sense, but switching to quad clears appears to fix it for me. Added the corresponding entry to the wiki - https://github.com/servo/webrender/wiki/Driver-issues#bug-1652763---glitches-on-macos-intel-with-clears

Differential Revision: https://phabricator.services.mozilla.com/D83391
2020-07-15 15:27:32 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Bob Owen 63b5b5e9b2 Bug 1650886 Part 4: Expose Paper Sizes for Windows. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D83503
2020-07-14 18:40:23 +00:00
Csoregi Natalia 5106918e11 Backed out changeset d0ff30e1d830 (bug 1650692) for toolchains failures on ImageDecoderTest.kt. CLOSED TREE 2020-07-15 07:42:37 +03:00