gecko-dev/widget/gtk
Masayuki Nakano 9092695677 Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt
IME (e.g., fcitx) may refer selection colors of widget under window which
is associated with IM context to support any colored widget.  So, IME
expects good selection colors which have sufficient contrast between
foreground and background, and also selection background color and
widget background color like GtkTextView.  However, some desktop themes
set our widget to different selection colors from GtkTextView which may
be unreadable.

nsTextFrame (which paints composition string) expects that composition
string colors coming from IME are sufficiently readable and background
color of composition string and background color of our editor's default
style (coming from LookAndFeel) have sufficient contrast because
nsTextFrame assmes that composition string colors coming from IME are
decided for the default style.

Therefore, this patch creates SelectionStyleProvider which overwrites
selection style of our widget with selection style of GtkTextView so
that IME can refer selection colors of GtkTextView via our widget.

MozReview-Commit-ID: 5vdcSgoEYv0

--HG--
extra : rebase_source : edf375ac393a72d3e44839a76d5c44b6db12dc63
2018-07-13 18:12:53 +09:00
..
compat
compat-gtk3
crashtests
mozgtk Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt 2018-07-13 18:12:53 +09:00
mozwayland Bug 1460605 - Provide NS_NATIVE_EGL_WINDOW to get a native EGL window on Wayland, r=jhorak 2018-05-10 16:04:20 +02:00
wayland Bug 1417892 - Added gtk-primary-selection-client-protocol header/source files from Gtk+ project, r=jhorak 2018-03-06 14:02:21 +01:00
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp
CompositorWidgetParent.h
gtk2drawing.c Bug 1376756 - gtk: while drawing nsTreeBodyFrame, fetch current row attributes for proper style rendering. r=karlt 2018-06-27 05:11:00 +03:00
gtk3drawing.cpp Bug 1478391: Autogenerate StyleAppearance. r=jwatt 2018-07-26 17:06:17 +02:00
GtkCompositorWidget.cpp Bug 1406533 - Implement a way to transfer shape option from nsWindow to WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:07:04 +02:00
GtkCompositorWidget.h
gtkdrawing.h Bug 1376756 - gtk: while drawing nsTreeBodyFrame, fetch current row attributes for proper style rendering. r=karlt 2018-06-27 05:11:00 +03:00
IMContextWrapper.cpp Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt 2018-07-13 18:12:53 +09:00
IMContextWrapper.h Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt 2018-07-13 18:12:53 +09:00
InProcessGtkCompositorWidget.cpp
InProcessGtkCompositorWidget.h Bug 1448271 - Update some names of #include guards r=nical 2018-03-23 22:40:04 +09:00
maiRedundantObjectFactory.c
maiRedundantObjectFactory.h
moz.build Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak 2018-04-04 14:49:21 +02:00
mozcontainer.cpp Bug 1477967 - Fix the popup menu sizes and redrawing on Wayland/hidpi monitor, r=stransky 2018-07-24 12:51:34 +02:00
mozcontainer.h Bug 1444437 - [Wayland] Don't map mozcontainer subsurface until parent surface is commited, r=ashie 2018-06-28 13:37:31 +02:00
NativeKeyBindings.cpp
NativeKeyBindings.h
nsApplicationChooser.cpp
nsApplicationChooser.h
nsAppShell.cpp Backed out changeset 531593bacc4e (bug 1448040) for Android build bustages on HangAnnotations.h. CLOSED TREE 2018-06-07 19:22:31 +03:00
nsAppShell.h
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp Bug 1452041 - nsClipboard::HasDataMatchingFlavors(): return immediately when there's no clipboard content, r=jhorak 2018-04-09 13:36:03 +02:00
nsClipboard.h Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak 2018-04-04 14:49:21 +02:00
nsClipboardWayland.cpp Bug 1464808 - [Wayland] Emulate gdk_drag_context_get_actions(), nsWaylandDragContext::GetSelectedDragAction returns available D&D actions when no one is selected by user, r=jhorak 2018-06-01 12:24:17 +02:00
nsClipboardWayland.h Bug 1464808 - [Wayland] Emulate gdk_drag_context_get_actions(), nsWaylandDragContext::GetSelectedDragAction returns available D&D actions when no one is selected by user, r=jhorak 2018-06-01 12:24:17 +02:00
nsClipboardX11.cpp Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak 2018-04-04 14:49:21 +02:00
nsClipboardX11.h Bug 1417892 - Implement primary clipboard selection under Wayland, r=jhorak 2018-04-04 14:49:21 +02:00
nsColorPicker.cpp
nsColorPicker.h
nsCUPSShim.cpp
nsCUPSShim.h
nsDeviceContextSpecG.cpp Bug 1411589 - Notify flatpak print portal that print to file has finished, r=stransky 2018-04-16 12:28:51 +02:00
nsDeviceContextSpecG.h
nsDragService.cpp Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
nsDragService.h Bug 1455676 part 3. Remove nsIDOMNode usage from widget/. r=qdot 2018-05-29 22:58:48 -04:00
nsFilePicker.cpp
nsFilePicker.h
nsGtkCursors.h
nsGtkKeyUtils.cpp Bug 1470047 - Implement InitBySystemSettingsWayland() and get key modifiers on Wayland, r=ashie 2018-07-10 18:28:32 +02:00
nsGtkKeyUtils.h Bug 1470047 - Implement InitBySystemSettingsWayland() and get key modifiers on Wayland, r=ashie 2018-07-10 18:28:32 +02:00
nsGTKToolkit.h
nsGtkUtils.h
nsIdleServiceGTK.cpp
nsIdleServiceGTK.h
nsIImageToPixbuf.h
nsImageToPixbuf.cpp
nsImageToPixbuf.h
nsLookAndFeel.cpp Bug 1478519 - Support prefers-reduced-motion for GTK. r=karlt 2018-07-27 14:42:14 +09:00
nsLookAndFeel.h
nsNativeThemeGTK.cpp Bug 1478391: Autogenerate StyleAppearance. r=jwatt 2018-07-26 17:06:17 +02:00
nsNativeThemeGTK.h Bug 1478391: Autogenerate StyleAppearance. r=jwatt 2018-07-26 17:06:17 +02:00
nsPrintDialogGTK.cpp Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
nsPrintDialogGTK.h
nsPrintSettingsGTK.cpp
nsPrintSettingsGTK.h
nsPrintSettingsServiceGTK.cpp
nsPrintSettingsServiceGTK.h
nsPSPrinters.cpp
nsPSPrinters.h
nsSound.cpp Bug 1448914 - remove nsISound::playSystemSound; r=masayuki 2018-03-27 10:41:40 -04:00
nsSound.h
nsToolkit.cpp
nsWidgetFactory.cpp Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt 2018-07-13 18:12:53 +09:00
nsWindow.cpp Bug 1461307 - Overwrite selection colors of widget which may be referred by IME via IM context with selection colors of GtkTextView r=karlt 2018-07-13 18:12:53 +09:00
nsWindow.h Bug 1478661 - Replace IsComposited() with explicit alpha visual state, r=jhorak 2018-07-26 13:23:34 +02:00
PCompositorWidget.ipdl
PlatformWidgetTypes.ipdlh Bug 1406533 - Implement a way to transfer shape option from nsWindow to WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:07:04 +02:00
ScreenHelperGTK.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ScreenHelperGTK.h
TaskbarProgress.cpp
TaskbarProgress.h
WakeLockListener.cpp
WakeLockListener.h
WidgetStyleCache.cpp Bug 1456898 - Implement and use solid-csd decoration style to get window offset when solid-csd is used by mShell toplevel window, r=jhorak 2018-04-26 13:55:41 +02:00
WidgetStyleCache.h Bug 1355143 - Implement CreateStyleContextWithStates to style with fully stated css path, r=jhorak 2018-04-18 11:03:39 +02:00
WidgetTraceEvent.cpp
WidgetUtilsGtk.cpp
WidgetUtilsGtk.h
WindowSurfaceProvider.cpp Bug 1406533 - Implement a way to transfer shape option from nsWindow to WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:07:04 +02:00
WindowSurfaceProvider.h Bug 1406533 - Implement a way to transfer shape option from nsWindow to WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:07:04 +02:00
WindowSurfaceWayland.cpp Bug 1477967 - Fix the popup menu sizes and redrawing on Wayland/hidpi monitor, r=stransky 2018-07-24 12:51:34 +02:00
WindowSurfaceWayland.h Bug 1441743 - [Wayland] Don't draw directly to frame buffer for partial window updates, r=jhorak 2018-06-15 09:41:56 +02:00
WindowSurfaceX11.cpp Bug 1449352 - always composite 24 depth WindowSurfaceX11 as BGRX. r=jrmuizel 2018-04-10 12:43:59 -04:00
WindowSurfaceX11.h
WindowSurfaceX11Image.cpp Bug 1406533 - Create and apply XShape mask at WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:02:05 +02:00
WindowSurfaceX11Image.h Bug 1406533 - Create and apply XShape mask at WindowSurfaceX11Image, r=lsalzman 2018-07-24 16:02:05 +02:00
WindowSurfaceXRender.cpp
WindowSurfaceXRender.h