Commit Graph

435 Commits

Author SHA1 Message Date
Andrew Comminos
e3874ec346 Bug 1187237 - Correct range slider drawing on GTK3. r=karlt 2015-07-30 11:29:00 +02:00
Nick Robson
7a52465904 Bug 1075089 - Moved popup menu frame offset to LookAndFeel, fixed default offset for OS X. r=enn 2015-07-30 15:00:00 +02:00
Mike Conley
d3d99035d8 Bug 1145916 - [e10s] Defer starting a GTK Print Job during printer enumeration until the next tick. r=karlt
Before, we were calling nsDeviceContextSpecGTK::StartPrintJob within the
gtk_enumerate_printers callback function as soon as we found the printer
we wanted to print from. This was causing the GTK printing backend to get
confused about what the capabilities of the selected printer were when running
in the content process, due to https://bugzilla.gnome.org/show_bug.cgi?id=753041.
This moves the call to StartPrintJob to the next tick of the event loop.
2015-07-27 17:11:46 -04:00
Andrew Comminos
bc35eef7a0 Bug 1188138 - Prevent default buttons from being drawn twice on GTK3. r=karlt 2015-07-27 15:08:00 -04:00
Andrew Comminos
3d93c1113c Bug 1186661 - Draw drag and drop alpha pixmap correctly on GTK3. r=karlt 2015-07-28 07:13:00 -04:00
Andrew Comminos
51fd957d75 Bug 1186661 - Use monitors-changed signal to update screen manager on GTK. r=karlt 2015-07-25 19:07:00 -04:00
Andrew Comminos
2bb51e47e8 Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-28 06:28:00 -04:00
Carsten "Tomcat" Book
575fa52c5c Backed out changeset ac04ab483fba (bug 1187649) for bustage on a CLOSED TREE 2015-07-28 13:05:48 +02:00
Andrew Comminos
11a58478c7 Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-27 11:21:00 +02:00
Mike Hommey
5cb6216446 Bug 1187533 - Change how Gtk+2 plugin-container is started on Gtk+3 builds. r=billm
The current situation looks like this: Firefox launches the plugin-container
with two environment variables set:
  LD_LIBRARY_PATH=$FIREFOX_DIR:$LD_LIBRARY_PATH
  LD_PRELOAD=$FIREFOX_DIR/libmozgtk2.so:$LD_PRELOAD

libxul.so has a dependency on libmozgtk.so (without "2"), but libmozgtk2.so
has a SONAME of libmozgtk.so, so ld.so recognizes libmozgtk2.so as a
dependency of libxul.so, and uses it instead of the actual libmozgtk.so,
making the plugin-container use Gtk+2 instead of Gtk+3 to load Gtk+2 plugins.

Now, ASan sets things up in shared libraries such that they needs a symbol
from the executable binary. So in the case of plugin-container, the
plugin-container executable itself contains some ASan symbols such as
__asan_init_v3. libmozgtk2.so, OTOH, contains an undefined weak reference to
that symbol, like all other Firefox shared libraries.

Since libmozgtk2.so is LD_PRELOADed, it is loaded _before_ the
plugin-container executable, and __asan_init_v3 can't be resolved.

Disabling ASan for libmozgtk2.so would be a possibility, but the build system
doesn't really know how to do that, and filtering out -fsanitize=address
can be fragile.

The alternative possibility, implemented here, is to change the library
loading strategy, renaming libmozgtk2.so to gtk2/libmozgtk.so, and setting
the following environment variable when Firefox launches the plugin-container:
  LD_LIBRARY_PATH=$FIREFOX_DIR/gtk2:$FIREFOX_DIR:$LD_LIBRARY_PATH
2015-07-28 08:19:13 +09:00
Makoto Kato
00aa5f2e97 Bug 1181000 - Use logical pixel to set IME candidate window. r=karlt 2015-07-27 14:37:02 +09:00
Masayuki Nakano
9aaf830c11 Bug 1186017 part.2 Rename GetBoolName() in IMContextWrapper.cpp to ToChar() r=kerlt 2015-07-27 08:23:04 +09:00
Masayuki Nakano
cde1c85687 Bug 1186017 part.1 Rename nsGtkIMModule to mozilla::widget::IMContextWrapper r=m_kato+kerlt 2015-07-27 08:23:04 +09:00
Xidorn Quan
2c68936b66 Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-24 09:45:00 +10:00
Mike Hommey
0b2afe8819 Bug 1063359 - Unconditionally use -Wl,--no-as-needed when building with GNU ld/gold. r=mshal 2015-07-24 06:49:49 +09:00
Lee Salzman
3bd48f32ec Bug 1184009 - Limit image preview sizes. r=acomminos 2015-07-21 13:16:44 -04:00
Masayuki Nakano
94b57ee7a6 Bug 1184449 part.1 IMENotifiation::SelectionChangeData should store selected string r=smaug 2015-07-22 12:40:32 +09:00
Wes Kocher
ea8844fc2c Backed out changeset b3d392163411 (bug 1160014) (Linux part), too CLOSED TREE 2015-07-21 16:54:09 -07:00
Xidorn Quan
99eae518ce Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-22 09:07:46 +10:00
Masayuki Nakano
a81bbc4eef Bug 1176959 nsGtkIMModule shouldn't commit composition when a selection change is notified but it was caused by selection set event r=m_kato 2015-07-17 13:27:32 +09:00
Andrew Comminos
719bbb0cd1 Bug 1182972 - Fallback to GTK monitor scale factor when mGdkWindow is null. r=karlt 2015-07-15 20:26:00 -04:00
Andrew Comminos
91addea8f5 Bug 1173907 - Don't use gtk_render_activity for drawing progress chunks on GTK versions above 3.13.7. r=karlt 2015-07-15 11:47:00 -04:00
Andrew Comminos
c16198fd70 Bug 1179780 - Render opaque scrollbar troughs in the root viewport on GTK3. r=karlt 2015-07-14 07:35:00 -04:00
Karl Tomlinson
3d8058cc4a bug 1182972 no need to pass member variable bounds to NativeResize r=acomminos 2015-07-14 15:24:56 +12:00
Karl Tomlinson
36dcd17cbc bug 1182972 remove mNeedsMove/mNeedsResize logic; instead process changes immediately r=acomminos 2015-07-14 15:23:47 +12:00
Karl Tomlinson
ecc490f679 bug 1182972 create NativeMove helper method r=acomminos 2015-07-13 14:29:05 +12:00
Karl Tomlinson
bf45a70439 bug 1182972 remove unused aRepaint parameter from NativeResize methods r=acomminos 2015-07-13 13:57:23 +12:00
Andrew Comminos
59b0d0f7d5 Bug 1178799 - Filter X11 SelectionRequest events with an invalid requestor on GTK3. r=karlt 2015-07-13 08:58:00 -04:00
Birunthan Mohanathas
47ed3a3675 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Michael Layzell
355a5ad0bf Bug 1180993 - Part 3: Correct use sites of functions which return already_AddRefed. r=ehsan 2015-07-10 08:36:00 -04:00
Andrew Comminos
5b16dd93bf Bug 1174248 - Workaround unico theme engine resizer bug on GTK3. r=karlt 2015-07-08 08:40:00 -04:00
Dragana Damjanovic
e3003eee82 Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
e1b03075a7 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Andrew Comminos
548010f654 Bug 1180971 - Fix X11 SHM invalidation regions on HiDPI with GTK3. r=karlt 2015-07-06 16:57:00 +02:00
Andrew Comminos
e66f4586a7 Bug 1180008 - Define gtk_window_get_window_type in mozgtk. r=karlt 2015-07-06 08:26:00 +02:00
Andrew Comminos
dd7da7683d Bug 1176109 - Don't attach menu popups to menubars on GTK3. r=karlt 2015-07-06 21:55:00 +02:00
Andrew Comminos
b21ad2aac7 Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt 2015-06-17 12:20:00 +02:00
Karl Tomlinson
1e2afaf964 bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos 2015-04-21 19:52:00 +12:00
Karl Tomlinson
d58cb92f31 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
2015-04-21 19:06:41 +12:00
Karl Tomlinson
046dca2876 bug 1180008 provide gtk_window_get_window_type for old GTK versions r=glandium 2015-04-21 18:17:24 +12:00
Andrew Comminos
8ce4bf1ddd Bug 1177171 - Round widget coordinates on GTK3. r=karlt 2015-06-29 11:50:00 -04:00
Nathan Froyd
8780083336 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
aa2a91dcfe Bug 1175171 - Deallocate GTK's KeymapWrapper on shutdown. r=karlt 2015-06-26 11:28:00 -04:00
Andrew Comminos
dc28f4581f Bug 1131978 - Acknowledge GDK's scale factor in scale calculation. r=karlt 2015-06-26 10:19:00 +02:00
Makoto Kato
59cb5a71fa Bug 1176843 - Don't query caret rect on layout change. r=masayuki 2015-06-26 00:08:29 -07:00
Botond Ballo
e42ed2bdd7 Bug 1177024 - Fix clang warnings-as-errors in GTK3 build. r=karlt 2015-06-21 15:27:07 -04:00
Andrew Comminos
7f080470bd Bug 1171696 - Require room for scrollbar sliders and draw troughs only when there is room for a slider or buttons on GTK. r=karlt 2015-06-17 07:27:00 -04:00
Masayuki Nakano
360ff0cac8 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
0bf63bcbef Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz 2015-06-17 12:21:39 +01:00
Karl Tomlinson
cb35746ae4 bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.
2015-06-11 09:34:27 +12:00