Commit Graph

52 Commits

Author SHA1 Message Date
janekptacijarabaci 306690e137 Merge branch 'master' of https://github.com/MoonchildProductions/UXP into data-transfer_1 2018-04-21 18:53:06 +02:00
Moonchild 844da4597f Merge pull request #221 from janekptacijarabaci/js_dom_pointer_events_1
moebius#71: Pointer Events - improvements
2018-04-21 14:53:24 +02:00
trav90 2828e5db82 Use -1 instead of 0 to indicate absent glxtest_pipe fd 2018-04-20 17:44:53 -05:00
janekptacijarabaci 4549256c2b moebius#56: Fix: DataTransfer - Pasting image from clipboard fails in some cases
https://github.com/MoonchildProductions/moebius/pull/56
2018-04-20 22:54:26 +02:00
janekptacijarabaci 09f456b280 moebius#71: DOM - Pointer Events - improvements
https://github.com/MoonchildProductions/moebius/pull/71
2018-04-20 22:18:52 +02:00
janekptacijarabaci e43cde864f Bug 1299197 Part2: Serialize WidgetPointerHelper in IPC message
native in moebius
2018-04-20 20:30:07 +02:00
janekptacijarabaci 8a6f654e95 Bug 1299197 Part1: Refine WidgetPointerHelper
native in moebius
2018-04-20 20:28:00 +02:00
janekptacijarabaci 054dde2728 Bug 1344642 - Part 1: Cleanup dom.forms.datepicker related code 2018-04-15 14:39:19 +02:00
New Tobin Paradigm a22bf0142f Merge pull request #136 from trav90/gtk-work
Improve GTK3 support
2018-04-13 00:46:18 -04:00
trav90 a0a79a9aa3 [GTK3] Set alpha component appropriately in operator over for -moz-field 2018-04-11 11:14:15 -05:00
trav90 54465cc4ac Fix GTK3 build bustage 2018-04-06 17:38:44 -05:00
trav90 2dba03fd2f [GTK3] Ignore double-click on WM without _NET_WM_MOVERESIZE support
This fixes a crash with GTK3 builds used with a window manager that does not support _NET_WM_MOVERESIZE.
2018-04-06 11:25:22 -05:00
trav90 e08833665d [GTK3] Get styles for menu label, button text and combobox text colors from WidgetCache 2018-04-06 11:14:42 -05:00
trav90 e7b059d943 [GTK3] Don't invalidate style content for missing widgets 2018-04-06 11:03:35 -05:00
trav90 5ddda9321c [GTK3] Invalidate widget style contexts after their ancestors are set
Although this is only known to affect buttons with builtin child widgets, it is difficult to audit all GTK widgets for similar situations, and so the same defense is applied to all widgets.
2018-04-06 11:02:43 -05:00
trav90 484a5de81d [GTK3] Force a style resolution on context creation to set GTK 3.4 theming_engine
This works around a GTK bug that led to the default engine being used instead for the first draw.
2018-04-06 10:58:03 -05:00
trav90 50217bd546 [GTK3] For Gtk > 3.20 determine scale trough size from trough CSS node and also add border/padding/margin 2018-04-06 10:37:03 -05:00
trav90 d75e9071f1 [GTK3] Consider also margin when determine range widget slider size 2018-04-06 10:34:41 -05:00
trav90 b1f27cb866 [GTK3] With GTK versions < 3.8 draw menuitem background and frame only when in hover and not a separator 2018-04-06 10:30:12 -05:00
trav90 b0af6c9827 [GTK3] Implement pre-3.20 MOZ_GTK_PROGRESS_CHUNK in WidgetStyleCache 2018-04-06 10:25:03 -05:00
trav90 3c30002e00 [GTK3] Adjust textarea style contexts for GTK 3.20 theming ABI changes 2018-04-06 09:18:33 -05:00
trav90 17a7b835d5 [GTK3] Consider textview root node background in addition to text node for -moz-appearance:textfield-multiline
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2018-04-06 09:16:44 -05:00
trav90 08f0754406 [GTK3] Consider textview root node background in addition to text node for -moz-field
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2018-04-06 09:10:47 -05:00
trav90 dfe72009d3 [GTK3] Introduce MOZ_GTK_TEXT_VIEW_TEXT and move MOZ_GTK_RESIZER to WidgetStyleCache
The style context for MOZ_GTK_TEXT_VIEW is now created by copying from the widget instead of caching a widget and using its context.
No rendering changes are expected, unless themes are animating GtkTextView backgrounds.
2018-04-06 09:06:33 -05:00
trav90 91d45b1630 [GTK3] Use WidgetCache to get colors at nsLookAndFeelfor menuitems, text and tree view 2018-04-06 09:04:54 -05:00
trav90 fa8c3a20c6 [GTK3] Use WidgetCache to get colors at nsLookAndFeel for GtkButton, GtkWindow, GtkScrollBar 2018-04-06 07:53:35 -05:00
trav90 3203c21a80 [GTK3] Use WidgetCache to get colors at nsLookAndFeel 2018-04-06 07:52:43 -05:00
trav90 0f83951b6b [GTK3] Adjust menuitem padding and check/radio indicator position for changes in GTK 3.20 2018-04-05 15:51:07 -05:00
trav90 45c75167b0 [GTK3] Rename subtract_margin and rectangle_inset to Inset* and swap InsetByMargin parameters for consistency. 2018-04-05 15:50:31 -05:00
trav90 cf1b29fe47 [GTK] Rename radio/check menuitem and indicator as used with ClaimStyleContext.
The same name is retained for moz_gtk_widget_paint(), which is now more consistent.
2018-04-05 15:49:41 -05:00
trav90 fe4175e799 [GTK3] Use menuitem padding between menuitem and check indicator. 2018-04-05 15:48:29 -05:00
trav90 51c57b41a1 [GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20
In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately.
2018-04-05 15:47:48 -05:00
trav90 a5a34355e4 [GTK3] Draw separator menuitem background and frame behind separator in menu 2018-04-05 15:47:12 -05:00
trav90 9fed5c8f39 [GTK3] Draw menuitem background even when not in hover 2018-04-05 15:46:38 -05:00
wolfbeast 473fb65d33 Remove unused LSPAnnotator 2018-03-30 12:38:37 +02:00
wolfbeast 4e368f8199 Remove base conditional code for crash reporter and injector. 2018-03-30 08:50:58 +02:00
janekptacijarabaci 4577efd50f Implement DOM page onvisibilitychange. 2018-03-12 08:38:36 +01:00
wolfbeast 4c697043da Remove windows-xp and windows-vista from @media(-moz-os-version) 2018-02-20 14:01:05 +01:00
wolfbeast 39578317ee Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsWinGesture.h. 2018-02-19 12:33:04 +01:00
wolfbeast 2e0f80af42 Remove always-false #if WINVER < 0x0601 (Windows 7) checks in nsLookAndFeel.h. 2018-02-19 12:31:28 +01:00
wolfbeast 66248cfbcc Remove always-false #if WINVER < 0x0600 (Windows Vista) checks in widget/windows. 2018-02-19 12:27:14 +01:00
wolfbeast c766897196 Remove the use of GetProcAddress() for shell32
This avoids manually hooking into shell32.dll and using the native shell API instead.
Tag #22.
2018-02-19 10:00:25 +01:00
wolfbeast 85edb1c711 Make the proper Windows APIs natively available to our tree.
Tag #22.
This bypasses custom definitions of some functions for things natively available in Windows 7.
2018-02-19 09:58:44 +01:00
wolfbeast a24398e42d Remove unnecessary code in /widget.
- Remove numerous blocklist entries that no longer apply.
- Remove CanComputeVirtualKeyCodeFromScanCode(), because it's always true.
- Remove ShowXP{Folder,File}Picker(), since we have native pickers on supported Windows versions.
- Remove the config.trim_on_minimize preference, which is pointless on NT6+ and will just cause problems if used.

Tag #22.
2018-02-18 14:56:31 +01:00
wolfbeast 4ccbe3620e Add a signal preference for dynamic color changes to adjust "brighttext" in the front-end.
This makes all relevant toolbars pick up the fact that the Windows accent color has changed and should check and if necessary update the "brighttext" property on them for styling of controls.
This is a bit of a hack-around to the fact that there is no real easy way otherwise to notify the front-end of color changes without needing a change in focus of the window.
There is a deliberate 300ms delay built in, because otherwise the styles might not have propagated yet, resulting in brighttext not being updated properly.
2018-02-17 16:31:25 +01:00
wolfbeast 1201510514 Use more logical pref names for mouse button 4&5
Also improves comment wording.
2018-02-12 15:56:16 +01:00
wolfbeast e45706ca3a Un-fold browsercomps.* from libxul
This resolves #16.
2018-02-11 13:01:08 +01:00
wolfbeast 0f285318cd Add -moz-windows-accent-color-is-dark
#31 point 4
2018-02-04 20:41:16 +01:00
wolfbeast 3019e0ff28 Split out the check for accent color luminance. 2018-02-04 20:40:20 +01:00
wolfbeast f843f02860 Add -moz-win-accentcolor(text)
#31 points 1 and 2
2018-02-04 20:37:56 +01:00