Commit Graph

399 Commits

Author SHA1 Message Date
Andrew Comminos
e47140908b Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt
--HG--
extra : rebase_source : 278ba83eed30b1ff7d0824822a6ab6518f3313f7
2015-06-17 12:20:00 +02:00
Karl Tomlinson
41e62ce1ec bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos
--HG--
extra : rebase_source : fee0440498753be5b2c011d7915eb044cff90963
2015-04-21 19:52:00 +12:00
Karl Tomlinson
578ad122af bug 1180008 use mGdkWindow instead of finding it from gtk_widget_get_window(mShell) r=acomminos
Since https://hg.mozilla.org/mozilla-central/rev/9541dbf6e020#l2.184
there is only one GdkWindow per nsWindow.

The mGdkWindow pointer is cleared in OnContainerUnrealize() before the shell
widget destruction completes:
https://hg.mozilla.org/mozilla-central/annotate/50b95032152c/widget/gtk/nsWindow.cpp#l2480

--HG--
extra : rebase_source : fe6da6f16514bbb18f3ab65da3b21a2816bc23a0
2015-04-21 19:06:41 +12:00
Karl Tomlinson
ff72a52865 bug 1180008 provide gtk_window_get_window_type for old GTK versions r=glandium
--HG--
extra : rebase_source : c1d1f1778f27152ce2e6470b44d77939f97cb777
2015-04-21 18:17:24 +12:00
Andrew Comminos
3bdf142d83 Bug 1177171 - Round widget coordinates on GTK3. r=karlt
--HG--
extra : rebase_source : ac32281d7251453c5075fc0dc22c7461af5f32f6
2015-06-29 11:50:00 -04:00
Nathan Froyd
974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Andrew Comminos
69949017a1 Bug 1175171 - Deallocate GTK's KeymapWrapper on shutdown. r=karlt
--HG--
extra : rebase_source : 5ff0e22c28e8349902d4ca0146b63d604a0abd58
2015-06-26 11:28:00 -04:00
Andrew Comminos
7a31276561 Bug 1131978 - Acknowledge GDK's scale factor in scale calculation. r=karlt 2015-06-26 10:19:00 +02:00
Makoto Kato
2eaace5db3 Bug 1176843 - Don't query caret rect on layout change. r=masayuki 2015-06-26 00:08:29 -07:00
Botond Ballo
5c454a43e7 Bug 1177024 - Fix clang warnings-as-errors in GTK3 build. r=karlt
--HG--
extra : source : 22ae9b52ec5b25fab359ff32e04072df6412662e
2015-06-21 15:27:07 -04:00
Andrew Comminos
c32ccdaa18 Bug 1171696 - Require room for scrollbar sliders and draw troughs only when there is room for a slider or buttons on GTK. r=karlt
--HG--
extra : rebase_source : 3c9d3ce76209e5ae82164d0271cf93509f4be856
2015-06-17 07:27:00 -04:00
Masayuki Nakano
9805b3e4d3 Bug 1175382 TextRangeArray::TargetClauseOffset() and TextRangeArray::TargetClauseLength() shouldn't be public and same name methods of WidgetCompositionEvent should be used r=m_kato 2015-06-18 13:43:18 +09:00
Andrea Marchesini
45578e03fa Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz 2015-06-17 12:21:39 +01:00
Karl Tomlinson
603b1ace02 bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.

--HG--
extra : rebase_source : a538569807b8340dae3fe9f0cbfc68334e20ccc9
2015-06-11 09:34:27 +12:00
Karl Tomlinson
71e6f82be1 bug 147419 remove meaningless GetPrintMethod() r=roc
--HG--
extra : rebase_source : bd89c4f495cd14a190bb65aaea2e23e54591ca5d
2015-06-16 11:02:34 +12:00
Karl Tomlinson
bb37b9da4d bug 147419 remove print(|.<modulename>)(|.printer_<printername>).filename pref reading code r=roc
There are no default pref values, and even if some have been set, the value
is subsequently overridden by the print.print_to_filename pref, which exists
if saved from a previous nsPrintSettingsGTK.

--HG--
extra : rebase_source : 6912584e537d77d4efb1b1c3716d6c38bda3899e
2015-06-10 19:11:49 +12:00
Karl Tomlinson
4c5d983774 bug 147419 use GTK default paper size and orientation r=roc
In the nsPrintSettingsGTK constructor, gtk_paper_size_new(nullptr) gets the
system default paper size from the locale and gtk_page_setup_new() sets
default orientation to portrait.

These are subsequently overridden by prefs if any have been saved from
a previous nsPrintSettingsGTK.

--HG--
extra : rebase_source : 37b626bb0ed93454f6adc8916dbc674cf37ed4fe
2015-06-10 18:51:46 +12:00
Karl Tomlinson
a19a1f0d0c bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
These was used only to write to and read from each other.

--HG--
extra : rebase_source : ef49678652f829fe23611fb2294a22c3ffd91cf1
2015-06-10 18:10:28 +12:00
Andrew Comminos
d9685f25c8 Bug 1167239 - Make GTK button activity require hover. r=karlt
--HG--
extra : rebase_source : 880240867939e93cd91eec3d11029c70baf8c077
2015-06-16 07:58:00 -04:00
Andrew Comminos
6021357a72 Bug 1171011 - Use only document padding for MOZ_GTK_ENTRY in XUL. r=karlt 2015-06-10 12:38:00 -04:00
Hubert Figuière
40a12f2005 Bug 1174374 - gdk_cursor_new() is deprecated in 3.16. Use gdk_cursor_new_for_display(). r=karlt
--HG--
extra : transplant_source : %DF%15%81%18%1A%93D%ADQ%BDO%3EN4%F7%3E%F9%8B%3C%0D
2015-06-12 22:38:20 -04:00
Makoto Kato
0597055c59 Bug 1120851 - Set candidate window position for prediction even if no composition. r=masayuki 2015-06-15 16:01:39 +09:00
Daniel Holbert
632bb46230 Bug 1174287: Use mozilla:: prefix for namespaced classes in nsGtkIMModule.h. r=Ms2ger 2015-06-12 14:19:41 -07:00
Hubert Figuière
1c7aad3a06 Bug 1168527 - Variable was re-declared causing a bustage on gcc 5. r=lsalzman 2015-06-12 14:19:34 -04:00
Andrew Comminos
40b78be093 Bug 1168527 - Replay clips into the system cairo on GTK3. r=lsalzman
--HG--
extra : rebase_source : 013e1811f6b3fa1f599531153c292d7a5136f087
extra : histedit_source : 7c3f596514ea87840a0bd231b247b119ed9d3048
2015-06-09 13:46:09 -04:00
Andrew Comminos
1013161996 Bug 1167356 - Handle return value of DataSourceSurface::Map wherever possible. r=Bas
--HG--
extra : rebase_source : fe4fcb9c3a89e2573e6fde423ed8d96f31e00f14
2015-06-11 13:06:23 -04:00
Masayuki Nakano
107d7e94f3 Bug 1130937 part.3 nsGtkIMModule should adjust candidate window position when layout is changed r=m_kato 2015-06-11 19:50:15 +09:00
Masayuki Nakano
f2a58d2261 Bug 1130937 part.2 nsGtkIMModule should set candidiate window position to bottom left of the target clause in vertical writing mode r=m_kato 2015-06-11 19:50:15 +09:00
Masayuki Nakano
91ed158c1d Bug 1130937 part.1 nsGtkIMModule should cache selection r=m_kato 2015-06-11 19:50:15 +09:00
Mike Hommey
4b28879d7b Fixup for bug 1129873 for bustage of GTK+3 builds on elm. r=karlt. DONTBUILD. 2015-06-11 13:21:02 +09:00
Xidorn Quan
7699870266 Bug 1161802 part 1 - Add FullscreenChanged callback in WidgetListener. r=roc
--HG--
extra : source : dcfb961149d8c8e56ff787fa812dc781a491ee53
2015-06-10 23:13:12 +12:00
Jan Horak
1f0864644b Bug 1129873 - [GTK3] Implement wrapper to GtkAppChooserDialog to allow using native application chooser. r=karlt 2015-06-08 04:41:00 -04:00
Jonathan Kew
f05c9dee41 Bug 1113206 patch 2: Disable use of Cocoa and Gtk native-theme dropdown rendering that doesn't play well with vertical writing mode. r=roc 2015-06-08 07:21:42 +01:00
Andrew Comminos
bcf78111e1 Bug 1171029 - Only omit legacy scroll events on GTK3. r=karlt
--HG--
extra : rebase_source : c4badf1f606bbb5cf0052265f38514acc3eee63c
2015-06-03 07:47:00 -04:00
Martin Stransky
649e670ec4 Bug 1169233 - Get grey (inactive) text color from menu labels. r=karlt 2015-05-29 05:40:00 -04:00
Martin Stransky
3626e5799b Bug 1169232 - [gtk3] Add background class to tooltip window to get correct background color. r=karlt 2015-06-01 05:01:00 -04:00
Eric Rahm
75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
67f6de2a30 Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-03 15:22:35 -07:00
Eric Rahm
cc58068318 Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-03 15:22:30 -07:00
Carsten "Tomcat" Book
5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm
a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm
fb40eb5516 Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-01 22:17:26 -07:00
Eric Rahm
28978ade8c Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 22:17:21 -07:00
Wes Kocher
4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm
f82c0e7caf Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm
4095cdb19f Bug 1165515 - Part 9: Remove instances of using numeric log levels 1-5. rs=froydnj 2015-06-01 14:31:00 -07:00
Eric Rahm
0a502beb23 Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-01 14:31:00 -07:00
Andrew Comminos
80f348519c Bug 1168578 - Use widget state in GTK3 toggles' style context. r=karlt
--HG--
extra : rebase_source : ed8c384d7d2c7ac1f89b4fb1356f2189fa1ac7b2
2015-05-27 14:27:00 -04:00
Lee Salzman
688f2ebbdc Bug 1168495 - Restrict updated region to fall within GTK window. r=jrmuizel
--HG--
extra : rebase_source : 4c34f469e4cb9b5afcabd336615181b3be0bd5de
2015-05-26 14:09:18 -04:00
Daniel Holbert
97501a00b6 Bug 1166741 followup: Guard GTK file-picker member-var decl/init statements with same #ifdef that its usages are guarded with, to avoid -Wunused-private-field warning. r=karlt 2015-05-26 22:40:28 -07:00