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

26106 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 4e4cd29c90 Bug 1616245 - Fix unit mismatches by applying an appropriate scaling factor. r=jfkthame
Depends on D67696

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

--HG--
extra : moz-landing-system : lando
2020-04-01 10:50:40 +00:00
Kartikaya Gupta 19fc8e5c6a Bug 1616245 - Change a few nsIWidget functions to take strongly-typed arguments. r=jfkthame
These functions all have a single call site, and the call site clearly always
has rect in DesktopPixel units. So it makes sense to encode this in the API,
and propagate the strongly typed units.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 11:50:47 +00:00
sonakshi a6f08454e0 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 18:47:30 +00:00
Razvan Maries 40412d7928 Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE 2020-03-31 17:18:38 +03:00
sonakshi fc4a38cd03 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 13:38:55 +00:00
Martin Stransky 1c00ea0aa0 Bug 1625296 [Wayland] Enable basic compositor smooth drawing by widget.wayland-smooth-rendering pref, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68457

--HG--
extra : moz-landing-system : lando
2020-03-30 21:12:37 +00:00
Bogdan Tara e93ba090b8 Backed out changeset 2a1b5f29d43d (bug 1625296) for bustages complaining about WindowSurfaceWayland.cpp CLOSED TREE 2020-03-30 17:26:10 +03:00
Bogdan Tara 09fa9dbc7c Backed out changeset 61cc7740daa3 (bug 1623974) for bustages related to nsWindow.cpp CLOSED TREE 2020-03-30 17:23:10 +03:00
Christoph Walcher 14aaa55210 Bug 1624251 - Fix use-after-free in nsMacFinderProgress r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D68667

--HG--
extra : moz-landing-system : lando
2020-03-28 01:46:29 +00:00
Martin Stransky 822447aeb7 Bug 1625296 [Wayland] Enable basic compositor smooth drawing by widget.wayland-smooth-rendering pref, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68457

--HG--
extra : moz-landing-system : lando
2020-03-30 13:40:22 +00:00
Jan Horak 75273113e5 Bug 1623974 [wayland] Attach popups to anchor rects; r=stransky
If we want correct popup placement we need to use the right anchor rect
for gdk_window_move_to_rect under Wayland. Patch exports the anchor rect from the
nsMenuPopupFrame to be used in nsWindow.

This patch also fixes popup overflowing the screen by using the size returned from
gdk_window_move_to_rect for the nsMenuPopupFrame.

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

--HG--
extra : moz-landing-system : lando
2020-03-30 13:29:47 +00:00
Makoto Kato 86298c9983 Bug 1618754 - Part 1. Support inputmode=none to hide software keyboard. r=geckoview-reviewers,snorp
`inputmode=none` has to close software keyboard. `inputmode` value is lower
case except to `mozAwesomebar` by bug 1618763, so we don't have to use
`equalsIgnoreCase` for `inputmode`.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:22:47 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

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

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull 8d7aa62e32 Bug 1625138 - Part 29: Replace mozilla::IsVoid with std::is_void. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68548

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:19 +00:00
André Bargull cae4e1fdbc Bug 1606962: Replace mozilla::EnableIf with std::enable_if. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68401

--HG--
extra : moz-landing-system : lando
2020-03-28 13:35:31 +00:00
André Bargull 1be056677a Bug 1625138 - Part 26: Replace mozilla::Conditional with std::conditional. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68381

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
André Bargull d53798e749 Bug 1625138 - Part 23: Replace mozilla::RemovePointer with std::remove_pointer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68378

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull 13e9ad3137 Bug 1625138 - Part 14: Replace mozilla::IsSigned with std::is_signed. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68369

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull b0c9db06e3 Bug 1625138 - Part 12: Replace mozilla::IsPointer with std::is_pointer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68366

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:14 +00:00
Kartikaya Gupta 7d2c8af30b Bug 1622360 - Remove SLGuidAndRenderRoot and convert remaining uses to ScrollableLayerGuid. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D68400

--HG--
extra : moz-landing-system : lando
2020-03-27 17:44:21 +00:00
Martin Stransky 39bcf103db Bug 1625294 [Wayland] Ship testing dmabuf preferences on nightly only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68455

--HG--
extra : moz-landing-system : lando
2020-03-27 08:49:47 +00:00
Chris Peterson c6e20cbb8c Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/android. r=snorp
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Depends on D68146

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

--HG--
extra : moz-landing-system : lando
2020-03-25 15:13:43 +00:00
Chris Peterson fd22d5d367 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget and widget/windows. r=jmathies
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:48:30 +00:00
Stephen A Pohl eba159d415 Bug 1625199: Switch to non-deprecated API to load the MainMenu.nib. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D68447

--HG--
extra : moz-landing-system : lando
2020-03-26 19:56:33 +00:00
Emilio Cobos Álvarez a214514a58 Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.

This changes behavior in two ways, one of them which is not observable to
content, I believe:

 * revert now re-enables the native styling. This was brought up in
   https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.

   This is observable to content, and I'm adding a test for it.

 * We don't look at inherited styles from our ancestors when `inherit` is
   specified in a non-author stylesheet. This was introduced for bug 452969 but
   we don't seem to inherit background anymore for file controls or such. It
   seems back then file controls used to have a text-field.

   I audited forms.css and ua.css and we don't explicitly inherit
   padding / border / background-color into any nested form control.

We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.

We need to give an appearance to the range-thumb and such so that we can assert
that we don't call HasAuthorSpecifiedRules on non-themed stuff. I used a new
internal value for that.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 16:48:01 +00:00
Razvan Maries 7155f2665a Backed out changeset ac0d06c0ca93 (bug 1624080) for assertion failures. CLOSED TREE 2020-03-26 16:52:18 +02:00
Masayuki Nakano 11c1ccc0d7 Bug 1596916 - Make `NativeKey` stop dispatching `eKeyPress` event when the key does not produce a character with `AltGr` key r=m_kato,smaug
On Windows, `AltGr` modifier state is represented with activating both
`Alt` and `Ctrl` modifiers.  I.e., when `AltGr` is pressed, any shortcut
keys whose modifier require `Control` and/or `Alt` because `NativeKey`
needs to consume both flags and set modifier state to only `AltGraph`.

That means that we don't need to dispatch `eKeyPress` event when `AltGr` key
is pressed and the key does not produce a character since we've stopped
dispatching non-printable `keypress` events on web content.

See the automated test changes for the detail in chrome script handling for
its detail.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 14:03:44 +00:00
Emilio Cobos Álvarez c556351cd0 Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.

This changes behavior in two ways, one of them which is not observable to
content, I believe:

 * revert now re-enables the native styling. This was brought up in
   https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.

   This is observable to content, and I'm adding a test for it.

 * We don't look at inherited styles from our ancestors when `inherit` is
   specified in a non-author stylesheet. This was introduced for bug 452969 but
   we don't seem to inherit background anymore for file controls or such. It
   seems back then file controls used to have a text-field.

   I audited forms.css and ua.css and we don't explicitly inherit
   padding / border / background-color into any nested form control.

We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.

We need to give an appearance to the range-thumb and such so that we can assert
that we don't call HasAuthorSpecifiedRules on non-themed stuff. I used a new
internal value for that.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 13:23:42 +00:00
Martin Stransky 86cb8bf916 Bug 1624921 [Linux/X11] Use CSD for PIP windows only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68330

--HG--
extra : moz-landing-system : lando
2020-03-26 12:08:26 +00:00
Martin Stransky f39d91ec59 Bug 1624745 [Wayland] Handle error states when wayland surfaces are created, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68163

--HG--
extra : moz-landing-system : lando
2020-03-26 12:08:03 +00:00
Martin Stransky 4d1730dd79 Bug 1612377 [Wayland] Update opaque region and widget scale factor when screen DPI changes, r=jhorak
- Integrate scale factor setup to moz_container_get_wl_surface() and don't call it explicitly.
- No need to set it explicitly at nsWindow::GetWaylandSurface().
- Update client offset when scale changes in CSD mode by UpdateClientOffsetFromCSDWindow().
- Update scale factor/opaque region on EGL immediately.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 12:12:48 +00:00
Martin Stransky f30e2a9e31 Bug 1612377 [Wayland] Remove moz_container_set_accelerated(), r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68351

--HG--
extra : moz-landing-system : lando
2020-03-26 12:12:40 +00:00
Emilio Cobos Álvarez 8fb3d13c4e Bug 1624436 - Don't include GTK widget padding in outline: auto size. r=karlt,stransky
To paint outline: auto, we paint the focused border of a GTK_ENTRY_PAINT.

We're also adding the padding of the entry, and that's wrong and causes
undesirable padding that looks bogus.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 10:23:39 +00:00
Masayuki Nakano 3fd73c16fb Bug 1589497 - Make PendingAction of TSFStore copy of key message r=m_kato
`TSFTextStore::sHandlingKeyMsg` refers pointer of struct, but referred via
`TSFTextStore::PendingAction` so that we should make it has a copy of
`sHandlingKeyMsg` because of for async handling.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 07:33:37 +00:00
Andrew Osmond 8aa78032a6 Bug 1624858 - Fix graphics blocklist not recent Windows 10 comparison check. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68200

--HG--
extra : moz-landing-system : lando
2020-03-25 14:12:56 +00:00
Emilio Cobos Álvarez e13b4495b3 Bug 1624708 - Make non-native theme keyboard navigable. r=spohl
By painting focus colors. I suspect this was mostly an oversight? But it is the
most obvious issue I always find with this theme.

I followed active > focus > hover, which seems to match what GTK does (and makes
sense, generally).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Emilio Cobos Álvarez 53477db16b Bug 1624696 - Respect padding for all elements except checkbox/radio. r=spohl,mstange
Only button / menulist-button were missing from the hard-coded if condition. I
don't think we ever want to override author padding, and this can cause compat
issues as the one in this bug.

I'm making HasAuthorSpecifiedRules fast in bug 1624080, btw.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Narcis Beleuzu 464f343178 Backed out changeset f3c5f5a1b35d (bug 1624696) for wpt failures on baseline-alignment-and-overflow.tentative.html . CLOSED TREE 2020-03-25 00:24:22 +02:00
Narcis Beleuzu 2f0ac811bf Backed out changeset 0ee82dc106f2 (bug 1624708) for reftest failure on 359903-1.html . CLOSED TREE 2020-03-25 00:22:30 +02:00
Emilio Cobos Álvarez 403e32fa76 Bug 1624708 - Make non-native theme keyboard navigable. r=spohl
By painting focus colors. I suspect this was mostly an oversight? But it is the
most obvious issue I always find with this theme.

I followed active > focus > hover, which seems to match what GTK does (and makes
sense, generally).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 21:01:34 +00:00
Emilio Cobos Álvarez e1dadb10e3 Bug 1624696 - Respect padding for all elements except checkbox/radio. r=spohl,mstange
Only button / menulist-button were missing from the hard-coded if condition. I
don't think we ever want to override author padding, and this can cause compat
issues as the one in this bug.

I'm making HasAuthorSpecifiedRules fast in bug 1624080, btw.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 21:02:12 +00:00
Makoto Kato dc6a8410d1 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 10:36:53 +00:00
Sylvestre Ledru 734f79b541 Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00
Martin Stransky 8430fa3cd2 Bug 1623097 [Linux] Make widget aspect ratio configurable r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67166

--HG--
extra : moz-landing-system : lando
2020-03-23 12:12:55 +00:00
Martin Stransky b263e97e9f Bug 1624199 [Linux/X11] Use resize workaround on X11 to avoid KDE regression, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67805

--HG--
extra : moz-landing-system : lando
2020-03-23 10:21:25 +00:00
Dorel Luca c8058b7dd4 Backed out 2 changesets (bug 1618763) for build bustage in checkouts/gecko/widget/gtk/IMContextWrapper.cpp. CLOSED TREE
Backed out changeset 0b9d1afee478 (bug 1618763)
Backed out changeset ac1ff4be2662 (bug 1618763)
2020-03-23 09:35:16 +02:00
Makoto Kato a416d8ed45 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

Depends on D67770

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

--HG--
extra : moz-landing-system : lando
2020-03-23 07:20:05 +00:00
Simon Giesecke 58d0171406 Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj
To correctly implement this, it must be known on instantiation whether E is
copy-constructible, which is not the case if only a forward declaration is
available. This can be resolved either by making sure a full definition of E is
available, which is preferable. But in cases where this is not (easily) possible,
the information can be explicitly provided by the MOZ_DECLARE_COPY_CONSTRUCTIBLE
and MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE macros. In particular, declarations for
IPDL-declared types are added to nsTArray.h itself, like it was already done
for MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:13:51 +00:00
Jonathan Kew f2b9997dda Bug 1587953 - Improve Gtk theme handling for some widgets in vertical writing-modes. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D67289

--HG--
extra : moz-landing-system : lando
2020-03-19 19:29:55 +00:00
Oana Pop Rus 1f4abcaa1a Backed out changeset b8205184278a (bug 1587953) for crashtests/1547420-1.html on a CLOSED TREE 2020-03-19 20:18:31 +02:00