gecko-dev/widget/gtk
Karl Tomlinson f1b0f33678 bug 1315668 construct menuitem style contexts from paths r=stransky+263117
instead of using the context belonging to a widget.
Only the style context is cached, instead of the whole widget.

Using the style context from a widget meant that rendering displayed the
initial appearance of animations after state changes, but there was no
invalidation to trigger the final rendering in the animations.

Style contexts constructed from paths do not incorporate animations.
(See gtk_css_path_node_update_style() in GTK.)  Therefore they provide the
appropriate rendering for Gecko's model, which is not expecting animations.

There is no mechanism available to display animations when using style
contexts constructed from paths, but the GtkWidget animation design is also
not suitable for rendering potentially multiple elements each in a different
state of their animation.

This contexts-from-paths approach can be extended also to other widget types,
but this is a smaller change intended for uplift to other branches to address
a regression in menuitem rendering.

MozReview-Commit-ID: EFV7swWQtm4

--HG--
extra : rebase_source : 689f7340007c889ce0eaeb3b4acd228d45ad0d6d
2016-11-15 17:11:14 +13:00
..
compat Bug 694570 - (3/4) - Stop using libgnome and libgnomeui on Linux. r=acomminos 2016-06-20 08:13:00 +02:00
compat-gtk3 bug 1288702 suppress all GTK3 deprecated warnings r=glandium 2016-07-27 13:17:00 +12:00
crashtests
mozgtk bug 1315668 CreateStyleForWidget: store classes on context instead of path r=stransky+263117 2016-11-15 15:29:06 +13:00
CompositorWidgetChild.cpp Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
CompositorWidgetChild.h Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
CompositorWidgetParent.cpp Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
CompositorWidgetParent.h Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
IMContextWrapper.cpp Bug 1302980 - Don't reset IME context on preedit_end. r=masayuki 2016-09-16 18:00:25 +09:00
IMContextWrapper.h Bug 1138159 Don't reset IM context at selection change when there is no composition and hasn't retrieved surrounding text after last selection change r=m_kato 2016-09-15 22:36:23 +09:00
InProcessX11CompositorWidget.cpp Fix vsync sometimes not firing after the GPU process crashes. (bug 1305628, r=mattwoodrow) 2016-09-30 01:23:52 -07:00
InProcessX11CompositorWidget.h Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
NativeKeyBindings.cpp Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug 2016-05-13 16:06:18 +09:00
NativeKeyBindings.h
PCompositorWidget.ipdl Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
PlatformWidgetTypes.ipdlh Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
WakeLockListener.cpp Bug 1266054: GTK+: Hold references to |DBusPendingCall| in |RefPtr|, r=karlt 2016-05-09 12:28:37 +02:00
WakeLockListener.h Bug 1271477 - Unbreak --disable-dbus build after bug 1266054. r=karlt 2016-05-09 18:51:00 +02:00
WidgetStyleCache.cpp bug 1315668 construct menuitem style contexts from paths r=stransky+263117 2016-11-15 17:11:14 +13:00
WidgetStyleCache.h bug 1315668 CreateStyleForWidget: store classes on context instead of path r=stransky+263117 2016-11-15 15:29:06 +13:00
WidgetTraceEvent.cpp Bug 1278452 - Remove unnecessary null checks in widget/gtk/. r=karlt. 2016-06-07 15:00:47 +10:00
WidgetUtilsGtk.cpp
WidgetUtilsGtk.h
WindowSurfaceProvider.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
WindowSurfaceProvider.h Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
WindowSurfaceX11.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
WindowSurfaceX11.h Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
WindowSurfaceX11Image.cpp Bug 1296731: Add parameter to GetAlignedStride and check for overflow. r=bas 2016-08-25 13:57:39 -04:00
WindowSurfaceX11Image.h Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
WindowSurfaceXRender.cpp Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
WindowSurfaceXRender.h Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
X11CompositorWidget.cpp Bug 1304637 - Move back to using window display for basic composition paths. r=lsalzman 2016-10-27 14:39:59 -04:00
X11CompositorWidget.h Bug 1289251 - Allow GLContextProviderGLX to create a GLContext out of process. r=acomminos,jgilbert 2016-08-29 17:14:20 -07:00
gtk2drawing.c Bug 1308936 - Draw tooltips correctly r=karlt 2016-11-11 11:31:29 +13:00
gtk3drawing.cpp bug 1315668 use style context instead of widget for menuitem dimensions r=stransky+263117 2016-11-15 16:11:38 +13:00
gtkdrawing.h Bug 1282753 - implement combo boxes by WidgetCache, r=?karlt 2016-10-19 15:13:25 +13:00
maiRedundantObjectFactory.c
maiRedundantObjectFactory.h
moz.build Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
mozcontainer.c
mozcontainer.h
nsAppShell.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsAppShell.h
nsApplicationChooser.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
nsApplicationChooser.h Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
nsBidiKeyboard.cpp Backed out changeset 64c6e5121479 (bug 1033483) for unexpected "Recursive GetService!" assertions 2016-10-03 20:29:27 -07:00
nsBidiKeyboard.h
nsCUPSShim.cpp
nsCUPSShim.h
nsClipboard.cpp Bug 1310017 - Remove nsISupportsArray usage from nsITransferable and nsIFormatConverter. r=smaug 2016-10-16 12:43:56 -07:00
nsClipboard.h
nsColorPicker.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
nsColorPicker.h
nsDeviceContextSpecG.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
nsDeviceContextSpecG.h Bug 1313525 - Remove the nsIPrintOptions interface. r=mstange 2016-10-28 00:31:14 +01:00
nsDragService.cpp Bug 1287823, When a file is available in the drag data we provide, and no uri is available, get the uri of the file and use it as the text/uri-list data, r=karlt 2016-10-21 11:22:15 -04:00
nsDragService.h Bug 1301673, use device pixels for the supplied drag position and the computed dragrectangle, r=tn 2016-10-19 15:01:39 -04:00
nsFilePicker.cpp Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm 2016-08-24 02:07:21 +03:00
nsFilePicker.h Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
nsGTKToolkit.h
nsGtkCursors.h
nsGtkKeyUtils.cpp Bug 1033483 - Send bidi keyboard Information on direction-changed signal. r=karlt 2016-10-10 16:42:03 +09:00
nsGtkKeyUtils.h Bug 1033483 - Send bidi keyboard Information on direction-changed signal. r=karlt 2016-10-10 16:42:03 +09:00
nsGtkUtils.h
nsIImageToPixbuf.h
nsIdleServiceGTK.cpp
nsIdleServiceGTK.h
nsImageToPixbuf.cpp Bug 1265953, part 2 - Convert much of the rest of the widget code from nsAutoPtr to UniquePtr. r=mstange 2016-04-19 21:51:25 +01:00
nsImageToPixbuf.h
nsLookAndFeel.cpp Bug 1302157 - Remove images-in-menu and images-in-button code (& associated icons) since it's deprecated in GTK. r=bz,dholbert 2016-09-29 00:22:32 +01:00
nsLookAndFeel.h
nsNativeThemeGTK.cpp Bug 1310850 - Zero scrollbar size could also happen when running GTK 3.20 so we need to set the minimum size of the scrollbar to the minimum size of a thumb. r=karlt 2016-10-25 11:27:00 -04:00
nsNativeThemeGTK.h bug 1311604 consider block flow direction in vertical writing mode native widget layout r=jfkthame 2016-10-20 17:57:55 +13:00
nsPSPrinters.cpp
nsPSPrinters.h
nsPaperPS.cpp
nsPaperPS.h
nsPrintDialogGTK.cpp Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
nsPrintDialogGTK.h Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
nsPrintOptionsGTK.cpp
nsPrintOptionsGTK.h
nsPrintSettingsGTK.cpp
nsPrintSettingsGTK.h
nsScreenGtk.cpp Bug 1289251 - Create a CompositorWidget for GTK+X11 platform. r=acomminos,jrmuizel 2016-07-22 10:23:07 -07:00
nsScreenGtk.h
nsScreenManagerGtk.cpp Bug 1265386: Fix white-space errors in widget/, r=nfroyd 2016-07-22 10:56:13 +02:00
nsScreenManagerGtk.h
nsSound.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
nsSound.h
nsToolkit.cpp
nsWidgetFactory.cpp Initialize nsAppShell in the GPU process. (bug 1294350 part 5, r=nfroyd) 2016-08-22 22:57:36 -07:00
nsWindow.cpp Bug 1315477 - Remove some instances of static_cast'ing to ClientLayerManager. r=mattwoodrow 2016-11-07 11:38:44 -05:00
nsWindow.h Bug 1304637 - Move back to using window display for basic composition paths. r=lsalzman 2016-10-27 14:39:59 -04:00