Commit Graph

2700 Commits

Author SHA1 Message Date
Kris Taeleman
38b7d1873f Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
* Fix mochitest browser_Troubleshoot.js schema failure
* Fix mochitest browser_Troubleshoot.js schema failure on windows with
multiple adapters

Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-26 19:42:06 +00:00
Coroiu Cristina
074f577ac7 Backed out changeset 91f3048cc58e (bug 1594145) for browser-chrome failures at toolkit/modules/tests/browser/browser_Troubleshoot.js on a CLOSED TREE 2019-11-26 04:49:17 +02:00
Kris Taeleman
92eb33ee8b Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
* Fix mochitest browser_Troubleshoot.js schema failure

Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-25 20:50:33 +00:00
jeffin143
7868d04683 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-25 16:00:23 +00:00
Mihai Alexandru Michis
a033171524 Backed out changeset 270e007adcd2 (bug 1594145) for causing browser-chrome failures in browser_Troubleshoot.js 2019-11-25 14:51:07 +02:00
Kris Taeleman
25c223ac03 Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-23 00:18:27 +00:00
Tim Nguyen
9b84d66049 Bug 1597120 - Support dynamic changes to CSS pointer-events on nsMenuPopupFrame. r=karlt,jmathies,mstange,emilio
Differential Revision: https://phabricator.services.mozilla.com/D53379

--HG--
extra : moz-landing-system : lando
2019-11-22 13:14:37 +00:00
Razvan Maries
b908c8b469 Backed out changeset 0ae41aa8997b (bug 1594145) for build bustages on GfxInfo.cpp. CLOSED TREE 2019-11-22 14:52:04 +02:00
Razvan Maries
8520cc6954 Backed out changeset dce49f743139 (bug 1597893) for build bustages on nsCocoaWindow.mm. CLOSED TREE 2019-11-22 14:50:12 +02:00
Kris Taeleman
90c12ab5c4 Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-21 21:09:33 +00:00
jeffin143
6967337237 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 16:52:06 +00:00
Markus Stange
32299e9f70 Bug 1597585 - Remove GLManager, which is now unused. r=mattwoodrow
Depends on D53772

Differential Revision: https://phabricator.services.mozilla.com/D53773

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:20 +00:00
Markus Stange
df49f517a5 Bug 1597585 - Make LayerManagerComposite use mGL to pass the GL context to PreRender, just like WebRender. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D53772

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:58 +00:00
Bogdan Tara
6aae1c4aaa Backed out changeset 726c8aa10d1a (bug 1597893) for bustages complaining about nsCocoaWindow.h CLOSED TREE 2019-11-21 15:35:09 +02:00
jeffin143
9f50df6c78 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 12:09:03 +00:00
Emma Malysz
5ce533edb5 Bug 1596327, rename .xul test files in widget/ to .xhtml r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D53047

--HG--
rename : widget/cocoa/crashtests/444260-1.xul => widget/cocoa/crashtests/444260-1.xhtml
rename : widget/tests/bug586713_window.xul => widget/tests/bug586713_window.xhtml
rename : widget/tests/chrome_context_menus_win.xul => widget/tests/chrome_context_menus_win.xhtml
rename : widget/tests/empty_window.xul => widget/tests/empty_window.xhtml
rename : widget/tests/native_menus_window.xul => widget/tests/native_menus_window.xhtml
rename : widget/tests/native_mouse_mac_window.xul => widget/tests/native_mouse_mac_window.xhtml
rename : widget/tests/standalone_native_menu_window.xul => widget/tests/standalone_native_menu_window.xhtml
rename : widget/tests/system_font_changes.xul => widget/tests/system_font_changes.xhtml
rename : widget/tests/taskbar_previews.xul => widget/tests/taskbar_previews.xhtml
rename : widget/tests/test_bug1123480.xul => widget/tests/test_bug1123480.xhtml
rename : widget/tests/test_bug343416.xul => widget/tests/test_bug343416.xhtml
rename : widget/tests/test_bug428405.xul => widget/tests/test_bug428405.xhtml
rename : widget/tests/test_bug429954.xul => widget/tests/test_bug429954.xhtml
rename : widget/tests/test_bug444800.xul => widget/tests/test_bug444800.xhtml
rename : widget/tests/test_bug466599.xul => widget/tests/test_bug466599.xhtml
rename : widget/tests/test_bug478536.xul => widget/tests/test_bug478536.xhtml
rename : widget/tests/test_bug485118.xul => widget/tests/test_bug485118.xhtml
rename : widget/tests/test_bug517396.xul => widget/tests/test_bug517396.xhtml
rename : widget/tests/test_bug522217.xul => widget/tests/test_bug522217.xhtml
rename : widget/tests/test_bug538242.xul => widget/tests/test_bug538242.xhtml
rename : widget/tests/test_bug586713.xul => widget/tests/test_bug586713.xhtml
rename : widget/tests/test_bug593307.xul => widget/tests/test_bug593307.xhtml
rename : widget/tests/test_bug596600.xul => widget/tests/test_bug596600.xhtml
rename : widget/tests/test_bug673301.xul => widget/tests/test_bug673301.xhtml
rename : widget/tests/test_bug760802.xul => widget/tests/test_bug760802.xhtml
rename : widget/tests/test_chrome_context_menus_win.xul => widget/tests/test_chrome_context_menus_win.xhtml
rename : widget/tests/test_clipboard.xul => widget/tests/test_clipboard.xhtml
rename : widget/tests/test_composition_text_querycontent.xul => widget/tests/test_composition_text_querycontent.xhtml
rename : widget/tests/test_input_events_on_deactive_window.xul => widget/tests/test_input_events_on_deactive_window.xhtml
rename : widget/tests/test_key_event_counts.xul => widget/tests/test_key_event_counts.xhtml
rename : widget/tests/test_keycodes.xul => widget/tests/test_keycodes.xhtml
rename : widget/tests/test_mouse_scroll.xul => widget/tests/test_mouse_scroll.xhtml
rename : widget/tests/test_native_menus.xul => widget/tests/test_native_menus.xhtml
rename : widget/tests/test_native_mouse_mac.xul => widget/tests/test_native_mouse_mac.xhtml
rename : widget/tests/test_panel_mouse_coords.xul => widget/tests/test_panel_mouse_coords.xhtml
rename : widget/tests/test_platform_colors.xul => widget/tests/test_platform_colors.xhtml
rename : widget/tests/test_position_on_resize.xul => widget/tests/test_position_on_resize.xhtml
rename : widget/tests/test_sizemode_events.xul => widget/tests/test_sizemode_events.xhtml
rename : widget/tests/test_standalone_native_menu.xul => widget/tests/test_standalone_native_menu.xhtml
rename : widget/tests/test_system_font_changes.xul => widget/tests/test_system_font_changes.xhtml
rename : widget/tests/test_system_status_bar.xul => widget/tests/test_system_status_bar.xhtml
rename : widget/tests/test_taskbar_progress.xul => widget/tests/test_taskbar_progress.xhtml
rename : widget/tests/test_transferable_overflow.xul => widget/tests/test_transferable_overflow.xhtml
rename : widget/tests/test_wheeltransaction.xul => widget/tests/test_wheeltransaction.xhtml
rename : widget/tests/window_bug429954.xul => widget/tests/window_bug429954.xhtml
rename : widget/tests/window_bug478536.xul => widget/tests/window_bug478536.xhtml
rename : widget/tests/window_bug522217.xul => widget/tests/window_bug522217.xhtml
rename : widget/tests/window_bug538242.xul => widget/tests/window_bug538242.xhtml
rename : widget/tests/window_bug593307_centerscreen.xul => widget/tests/window_bug593307_centerscreen.xhtml
rename : widget/tests/window_bug593307_offscreen.xul => widget/tests/window_bug593307_offscreen.xhtml
rename : widget/tests/window_composition_text_querycontent.xul => widget/tests/window_composition_text_querycontent.xhtml
rename : widget/tests/window_state_windows.xul => widget/tests/window_state_windows.xhtml
rename : widget/tests/window_wheeltransaction.xul => widget/tests/window_wheeltransaction.xhtml
extra : moz-landing-system : lando
2019-11-20 19:05:30 +00:00
Markus Stange
2e63893952 Bug 1579664 - Migrate compositor GLContexts to the active GPU after a GPU switch. r=jgilbert
MigrateToActiveGPU is only called on compositor GLContexts, not for WebGL.
See bug 1597547 for WebGL.

After this fix, the situation can be improved in multiple ways:
 - Rather than moving contexts between GPUs, it would be better to have separate
   contexts for each GPU, and teach our compositors to switch a window over to
   a new context.
 - Instead of creating a fresh context to obtain the "preferred" GPU, we should
   find the GPU that drives the display on which the context's results are going
   to be displayed.

Differential Revision: https://phabricator.services.mozilla.com/D53719

--HG--
extra : moz-landing-system : lando
2019-11-19 08:52:00 +00:00
Ciure Andrei
ebbc1206eb Backed out changeset a6913f4d5a14 (bug 1596327) for causing ESlint failures CLOSED TREE
--HG--
rename : widget/cocoa/crashtests/444260-1.xhtml => widget/cocoa/crashtests/444260-1.xul
rename : widget/tests/bug586713_window.xhtml => widget/tests/bug586713_window.xul
rename : widget/tests/chrome_context_menus_win.xhtml => widget/tests/chrome_context_menus_win.xul
rename : widget/tests/empty_window.xhtml => widget/tests/empty_window.xul
rename : widget/tests/native_menus_window.xhtml => widget/tests/native_menus_window.xul
rename : widget/tests/native_mouse_mac_window.xhtml => widget/tests/native_mouse_mac_window.xul
rename : widget/tests/standalone_native_menu_window.xhtml => widget/tests/standalone_native_menu_window.xul
rename : widget/tests/system_font_changes.xhtml => widget/tests/system_font_changes.xul
rename : widget/tests/taskbar_previews.xhtml => widget/tests/taskbar_previews.xul
rename : widget/tests/test_bug1123480.xhtml => widget/tests/test_bug1123480.xul
rename : widget/tests/test_bug343416.xhtml => widget/tests/test_bug343416.xul
rename : widget/tests/test_bug428405.xhtml => widget/tests/test_bug428405.xul
rename : widget/tests/test_bug429954.xhtml => widget/tests/test_bug429954.xul
rename : widget/tests/test_bug444800.xhtml => widget/tests/test_bug444800.xul
rename : widget/tests/test_bug466599.xhtml => widget/tests/test_bug466599.xul
rename : widget/tests/test_bug478536.xhtml => widget/tests/test_bug478536.xul
rename : widget/tests/test_bug485118.xhtml => widget/tests/test_bug485118.xul
rename : widget/tests/test_bug517396.xhtml => widget/tests/test_bug517396.xul
rename : widget/tests/test_bug522217.xhtml => widget/tests/test_bug522217.xul
rename : widget/tests/test_bug538242.xhtml => widget/tests/test_bug538242.xul
rename : widget/tests/test_bug586713.xhtml => widget/tests/test_bug586713.xul
rename : widget/tests/test_bug593307.xhtml => widget/tests/test_bug593307.xul
rename : widget/tests/test_bug596600.xhtml => widget/tests/test_bug596600.xul
rename : widget/tests/test_bug673301.xhtml => widget/tests/test_bug673301.xul
rename : widget/tests/test_bug760802.xhtml => widget/tests/test_bug760802.xul
rename : widget/tests/test_chrome_context_menus_win.xhtml => widget/tests/test_chrome_context_menus_win.xul
rename : widget/tests/test_clipboard.xhtml => widget/tests/test_clipboard.xul
rename : widget/tests/test_composition_text_querycontent.xhtml => widget/tests/test_composition_text_querycontent.xul
rename : widget/tests/test_input_events_on_deactive_window.xhtml => widget/tests/test_input_events_on_deactive_window.xul
rename : widget/tests/test_key_event_counts.xhtml => widget/tests/test_key_event_counts.xul
rename : widget/tests/test_keycodes.xhtml => widget/tests/test_keycodes.xul
rename : widget/tests/test_mouse_scroll.xhtml => widget/tests/test_mouse_scroll.xul
rename : widget/tests/test_native_menus.xhtml => widget/tests/test_native_menus.xul
rename : widget/tests/test_native_mouse_mac.xhtml => widget/tests/test_native_mouse_mac.xul
rename : widget/tests/test_panel_mouse_coords.xhtml => widget/tests/test_panel_mouse_coords.xul
rename : widget/tests/test_platform_colors.xhtml => widget/tests/test_platform_colors.xul
rename : widget/tests/test_position_on_resize.xhtml => widget/tests/test_position_on_resize.xul
rename : widget/tests/test_sizemode_events.xhtml => widget/tests/test_sizemode_events.xul
rename : widget/tests/test_standalone_native_menu.xhtml => widget/tests/test_standalone_native_menu.xul
rename : widget/tests/test_system_font_changes.xhtml => widget/tests/test_system_font_changes.xul
rename : widget/tests/test_system_status_bar.xhtml => widget/tests/test_system_status_bar.xul
rename : widget/tests/test_taskbar_progress.xhtml => widget/tests/test_taskbar_progress.xul
rename : widget/tests/test_transferable_overflow.xhtml => widget/tests/test_transferable_overflow.xul
rename : widget/tests/test_wheeltransaction.xhtml => widget/tests/test_wheeltransaction.xul
rename : widget/tests/window_bug429954.xhtml => widget/tests/window_bug429954.xul
rename : widget/tests/window_bug478536.xhtml => widget/tests/window_bug478536.xul
rename : widget/tests/window_bug522217.xhtml => widget/tests/window_bug522217.xul
rename : widget/tests/window_bug538242.xhtml => widget/tests/window_bug538242.xul
rename : widget/tests/window_bug593307_centerscreen.xhtml => widget/tests/window_bug593307_centerscreen.xul
rename : widget/tests/window_bug593307_offscreen.xhtml => widget/tests/window_bug593307_offscreen.xul
rename : widget/tests/window_composition_text_querycontent.xhtml => widget/tests/window_composition_text_querycontent.xul
rename : widget/tests/window_state_windows.xhtml => widget/tests/window_state_windows.xul
rename : widget/tests/window_wheeltransaction.xhtml => widget/tests/window_wheeltransaction.xul
2019-11-20 03:40:43 +02:00
Emma Malysz
5c2d285798 Bug 1596327, rename .xul test files in widget/ to .xhtml r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D53047

--HG--
rename : widget/cocoa/crashtests/444260-1.xul => widget/cocoa/crashtests/444260-1.xhtml
rename : widget/tests/bug586713_window.xul => widget/tests/bug586713_window.xhtml
rename : widget/tests/chrome_context_menus_win.xul => widget/tests/chrome_context_menus_win.xhtml
rename : widget/tests/empty_window.xul => widget/tests/empty_window.xhtml
rename : widget/tests/native_menus_window.xul => widget/tests/native_menus_window.xhtml
rename : widget/tests/native_mouse_mac_window.xul => widget/tests/native_mouse_mac_window.xhtml
rename : widget/tests/standalone_native_menu_window.xul => widget/tests/standalone_native_menu_window.xhtml
rename : widget/tests/system_font_changes.xul => widget/tests/system_font_changes.xhtml
rename : widget/tests/taskbar_previews.xul => widget/tests/taskbar_previews.xhtml
rename : widget/tests/test_bug1123480.xul => widget/tests/test_bug1123480.xhtml
rename : widget/tests/test_bug343416.xul => widget/tests/test_bug343416.xhtml
rename : widget/tests/test_bug428405.xul => widget/tests/test_bug428405.xhtml
rename : widget/tests/test_bug429954.xul => widget/tests/test_bug429954.xhtml
rename : widget/tests/test_bug444800.xul => widget/tests/test_bug444800.xhtml
rename : widget/tests/test_bug466599.xul => widget/tests/test_bug466599.xhtml
rename : widget/tests/test_bug478536.xul => widget/tests/test_bug478536.xhtml
rename : widget/tests/test_bug485118.xul => widget/tests/test_bug485118.xhtml
rename : widget/tests/test_bug517396.xul => widget/tests/test_bug517396.xhtml
rename : widget/tests/test_bug522217.xul => widget/tests/test_bug522217.xhtml
rename : widget/tests/test_bug538242.xul => widget/tests/test_bug538242.xhtml
rename : widget/tests/test_bug586713.xul => widget/tests/test_bug586713.xhtml
rename : widget/tests/test_bug593307.xul => widget/tests/test_bug593307.xhtml
rename : widget/tests/test_bug596600.xul => widget/tests/test_bug596600.xhtml
rename : widget/tests/test_bug673301.xul => widget/tests/test_bug673301.xhtml
rename : widget/tests/test_bug760802.xul => widget/tests/test_bug760802.xhtml
rename : widget/tests/test_chrome_context_menus_win.xul => widget/tests/test_chrome_context_menus_win.xhtml
rename : widget/tests/test_clipboard.xul => widget/tests/test_clipboard.xhtml
rename : widget/tests/test_composition_text_querycontent.xul => widget/tests/test_composition_text_querycontent.xhtml
rename : widget/tests/test_input_events_on_deactive_window.xul => widget/tests/test_input_events_on_deactive_window.xhtml
rename : widget/tests/test_key_event_counts.xul => widget/tests/test_key_event_counts.xhtml
rename : widget/tests/test_keycodes.xul => widget/tests/test_keycodes.xhtml
rename : widget/tests/test_mouse_scroll.xul => widget/tests/test_mouse_scroll.xhtml
rename : widget/tests/test_native_menus.xul => widget/tests/test_native_menus.xhtml
rename : widget/tests/test_native_mouse_mac.xul => widget/tests/test_native_mouse_mac.xhtml
rename : widget/tests/test_panel_mouse_coords.xul => widget/tests/test_panel_mouse_coords.xhtml
rename : widget/tests/test_platform_colors.xul => widget/tests/test_platform_colors.xhtml
rename : widget/tests/test_position_on_resize.xul => widget/tests/test_position_on_resize.xhtml
rename : widget/tests/test_sizemode_events.xul => widget/tests/test_sizemode_events.xhtml
rename : widget/tests/test_standalone_native_menu.xul => widget/tests/test_standalone_native_menu.xhtml
rename : widget/tests/test_system_font_changes.xul => widget/tests/test_system_font_changes.xhtml
rename : widget/tests/test_system_status_bar.xul => widget/tests/test_system_status_bar.xhtml
rename : widget/tests/test_taskbar_progress.xul => widget/tests/test_taskbar_progress.xhtml
rename : widget/tests/test_transferable_overflow.xul => widget/tests/test_transferable_overflow.xhtml
rename : widget/tests/test_wheeltransaction.xul => widget/tests/test_wheeltransaction.xhtml
rename : widget/tests/window_bug429954.xul => widget/tests/window_bug429954.xhtml
rename : widget/tests/window_bug478536.xul => widget/tests/window_bug478536.xhtml
rename : widget/tests/window_bug522217.xul => widget/tests/window_bug522217.xhtml
rename : widget/tests/window_bug538242.xul => widget/tests/window_bug538242.xhtml
rename : widget/tests/window_bug593307_centerscreen.xul => widget/tests/window_bug593307_centerscreen.xhtml
rename : widget/tests/window_bug593307_offscreen.xul => widget/tests/window_bug593307_offscreen.xhtml
rename : widget/tests/window_composition_text_querycontent.xul => widget/tests/window_composition_text_querycontent.xhtml
rename : widget/tests/window_state_windows.xul => widget/tests/window_state_windows.xhtml
rename : widget/tests/window_wheeltransaction.xul => widget/tests/window_wheeltransaction.xhtml
extra : moz-landing-system : lando
2019-11-19 19:07:44 +00:00
harry
5ac5876ed5 Bug 1595082 - Ensure every Touch Bar input is updated at least once. r=mikedeboer,spohl
Differential Revision: https://phabricator.services.mozilla.com/D53176

--HG--
extra : moz-landing-system : lando
2019-11-19 19:19:24 +00:00
Dorel Luca
2fa16282db Backed out 2 changesets (bug 1595082) for Browser-chrome failures on /touchbar/tests/browser/browser_touchbar_tests.js. CLOSED TREE
Backed out changeset 86d5143e79c8 (bug 1595082)
Backed out changeset 23bffe0e868d (bug 1595082)
2019-11-19 19:10:08 +02:00
harry
bde6fc32f1 Bug 1595082 - Ensure every Touch Bar input is updated at least once. r=mikedeboer,spohl
Differential Revision: https://phabricator.services.mozilla.com/D53176

--HG--
extra : moz-landing-system : lando
2019-11-19 15:01:27 +00:00
Markus Stange
3faf29b5c5 Bug 1592150 - Remove CurrentSurfaceInvalidRegion(). Callers now always just repaint the update region that they supplied. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D51761

--HG--
extra : moz-landing-system : lando
2019-11-19 03:11:26 +00:00
Markus Stange
a74a71a82d Bug 1596696 - Restore pre-bug 1576390 lock order. r=spohl
This method is interacting with two different locks. We have debug code that
makes sure that locking and unlocking across all locks is well-nested.

Adding this scope makes sure that we unlock mCompositingState before we unlock mViewTearDownLock.

Differential Revision: https://phabricator.services.mozilla.com/D53263

--HG--
extra : moz-landing-system : lando
2019-11-15 20:35:10 +00:00
Markus Stange
8b245c092f Bug 1576390 - Remove the prefs gfx.core-animation.enabled and gfx.compositor.glcontext.opaque, and all the code needed to support it. r=mattwoodrow,spohl
Differential Revision: https://phabricator.services.mozilla.com/D52739

--HG--
extra : moz-landing-system : lando
2019-11-13 19:07:37 +00:00
Markus Stange
ba013d0f42 Bug 1594950 - Change NextSurface APIs to accept a dirty region, and remove the public method InvalidateRegionThroughoutSwapchain. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50878

--HG--
extra : moz-landing-system : lando
2019-11-13 18:55:18 +00:00
Markus Stange
04f678adc4 Bug 1594950 - Track the nsChildView invalid region inside nsChildView, rather than on the layer. r=jrmuizel
This allows us to move the call to InvalidateRegionThroughoutSwapchain to just before the call to
NextSurface, which makes it easier to merge the two calls.

Differential Revision: https://phabricator.services.mozilla.com/D50877

--HG--
extra : moz-landing-system : lando
2019-11-13 18:33:20 +00:00
Markus Stange
80c235777f Bug 1594950 - Bake the layer size and its opaqueness into the layer, don't allow mutating it. r=jrmuizel
These settings are now supplied during layer creation and never change.
Consumers must now create new NativeLayer objects if they want to change size or toggle opaqueness.
This aligns the NativeLayer API with DirectComposition's capabilities. It also simplifies swap chain
management.

Differential Revision: https://phabricator.services.mozilla.com/D51757

--HG--
extra : moz-landing-system : lando
2019-11-13 18:46:02 +00:00
Cosmin Sabou
1d71e9f510 Backed out 4 changesets (bug 1594950) for turning bug 1405083 into permafail.
Backed out changeset 684a87e91d94 (bug 1594950)
Backed out changeset adea6912c3a3 (bug 1594950)
Backed out changeset aea7108204e9 (bug 1594950)
Backed out changeset 15baea8520de (bug 1594950)
2019-11-13 06:44:24 +02:00
Markus Stange
2db4b324b7 Bug 1594950 - Change NextSurface APIs to accept a dirty region, and remove the public method InvalidateRegionThroughoutSwapchain. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50878

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:26 +00:00
Markus Stange
585d2c44f5 Bug 1594950 - Track the nsChildView invalid region inside nsChildView, rather than on the layer. r=jrmuizel
This allows us to move the call to InvalidateRegionThroughoutSwapchain to just before the call to
NextSurface, which makes it easier to merge the two calls.

Differential Revision: https://phabricator.services.mozilla.com/D50877

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:26 +00:00
Markus Stange
82452d888a Bug 1594950 - Bake the layer size and its opaqueness into the layer, don't allow mutating it. r=jrmuizel
These settings are now supplied during layer creation and never change.
Consumers must now create new NativeLayer objects if they want to change size or toggle opaqueness.
This aligns the NativeLayer API with DirectComposition's capabilities. It also simplifies swap chain
management.

Differential Revision: https://phabricator.services.mozilla.com/D51757

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:25 +00:00
harry
6925183c6d Bug 1591839 - Close Touch Bar race condition. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D52361

--HG--
extra : moz-landing-system : lando
2019-11-10 19:39:12 +00:00
Masayuki Nakano
0f9b3a05da Bug 1594215 - Make PuppetWidget::GetEditCommands() check mBrowserChild before using it r=smaug
The reason of the crash is, the window may have already been destroyed and
`PuppetWidget::mBrowserChild` was set to `nullptr` when synthesizing key event.

This patch makes `PuppetWidget::GetEditCommands()` check whether it's `nullptr`
and returns whether it's succeeded or not.  Therefore, `TextInputProcessor`
can throw exception in such case.

Differential Revision: https://phabricator.services.mozilla.com/D52308

--HG--
extra : moz-landing-system : lando
2019-11-08 11:32:51 +00:00
Markus Stange
c0cdef1454 Bug 1592739 - Stop using the vibrant region as the transparent region. r=mattwoodrow
This code was assuming that the only non-opaque parts of compositor rendering would be the
parts of the window that had vibrancy. But now that the default window background is transparent,
we can have non-vibrant parts where we render into transparency. Dialog windows such as sheet
windows are an example of this.
So instead of using the non-vibrant region of the window as its opaque region, we now use
the region that is covered by opaque Gecko layers. This region is a lot more conservative:
For example, the main browser chrome is now entirely transparent, because the chrome's opaque
parts share a layer with its transparent parts.
As a result, this change slightly affects the CALayer partitioning in the main browser window:
The entire browser chrome is now transparent, not just the tab bar.
The web content area is still opaque.

I think this will be fine. The thing I'm most concerned about is that scrolling inside web
content might cause invalidations of pixels from the chrome, because then we'd recomposite
the CALayers that cover the vibrant tab bar. This doesn't seem to happen most of the time
though, from what I can tell.

Differential Revision: https://phabricator.services.mozilla.com/D51466

--HG--
extra : moz-landing-system : lando
2019-11-05 19:04:14 +00:00
Markus Stange
80992e260c Bug 1592739 - Stop clearing the background behind vibrant -moz-appearance items. r=mattwoodrow
Now that there is no Gecko-contributed background color in the window any more,
there's nothing that needs to be cleared away. This simplifies things.

Differential Revision: https://phabricator.services.mozilla.com/D51464

--HG--
extra : moz-landing-system : lando
2019-11-05 18:48:29 +00:00
Markus Stange
7bb6e93a25 Bug 1592739 - Remove vibrancy code for sheet windows. r=spohl
With -moz-appearance: dialog now always being transparent, setting up our own
vibrant views for sheet windows is no longer necessary. We now let the regular
sheet window background show through, and that background is already vibrant.

Differential Revision: https://phabricator.services.mozilla.com/D51462

--HG--
extra : moz-landing-system : lando
2019-11-05 18:48:15 +00:00
Markus Stange
41d42f6f41 Bug 1592739 - Make -moz-appearance: dialog render nothing. r=spohl
The window background will be contributed by the widget itself, which renders
them underneath Gecko's rendering.
As a result, -moz-appearance: dialog is now equivalent to the combination
-moz-appearance: none; background-color: transparent.

This change does not turn the widget itself transparent because nsCocoaWindow
does not allow top level windows to become transparent (ever since bug 1162649).
If we ever add support for top level widgets with transparent backgrounds again,
we will probably want to treat -moz-appearance: dialog differently from
-moz-appearance: none; background-color: transparent, but for now this is fine.

This change means that Gecko's rendering will go into transparent buffers. This
may result in some loss of subpixel AA in various cases.
In the main browser window, there are CSS backgound colors that cover all the
non-vibrant areas of the window, so in that window we still render mostly onto
opaque pixels.

Differential Revision: https://phabricator.services.mozilla.com/D51461

--HG--
extra : moz-landing-system : lando
2019-11-05 18:48:00 +00:00
Markus Stange
4c8859d2b4 Bug 1592739 - Make nsChildView::WidgetPaintsBackground() return true. r=tnikkel
On macOS, the OS window always comes with an opaque background for top level
windows. This is the case even if Gecko determines the root element of the
window to be transparent: Ever since bug 1162649, nsChildView/nsCocoaWindow
ignore calls to SetTransparencyMode for top level windows and always stay opaque.

Returning true from nsChildView::WidgetPaintsBackground() lets us indicate that
we do not need an opaque backstop color to be added at the bottom of the display
list. This backstop color would interfere with vibrant -moz-appearance rendering
under the new vibrancy model.
WidgetPaintsBackground() is only called in one place, in ComputeBackstopColor():

```
nscolor PresShell::ComputeBackstopColor(nsView* aDisplayRoot) {
  nsIWidget* widget = aDisplayRoot->GetWidget();
  if (widget && (widget->GetTransparencyMode() != eTransparencyOpaque ||
                 widget->WidgetPaintsBackground())) {
    // Within a transparent widget, so the backstop color must be
    // totally transparent.
    return NS_RGBA(0, 0, 0, 0);
  }
  // Within an opaque widget (or no widget at all), so the backstop
  // color must be totally opaque. The user's default background
  // as reported by the prescontext is guaranteed to be opaque.
  return GetDefaultBackgroundColorToDraw();
}
```

On Windows 7, the widget returns eTransparencyBorderlessGlass from
GetTransparencyMode(), which also avoids the backstop color.

Differential Revision: https://phabricator.services.mozilla.com/D51458

--HG--
extra : moz-landing-system : lando
2019-11-05 18:47:21 +00:00
Markus Stange
691e7d64a1 Bug 1593339 - Remove now-unused vibrancy fill color methods. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D51457

--HG--
extra : moz-landing-system : lando
2019-11-05 18:47:17 +00:00
Markus Stange
5586cc9eca Bug 1593339 - Stop drawing vibrancy background colors. r=spohl
Drawing vibrancy fill colors was necessary in the past because we were erasing
the fill color that was drawn by the system, through our override of the
drawRect method of our NSVisualEffectView subclass.

However, starting with changeset be263e3d8bdfc0b6c072ffad2736999b9652d036
(from bug 1491445), we no longer override drawRect. Moreover, since the switch
to Core Animation, there is no way to clear the system's vibrancy fill drawing.

So we don't need to draw the vibrancy fill color any more. In fact, we should
stop drawing it, because now we're double-drawing it.
The fill color is very translucent so the double-drawing is not visually obvious.

Differential Revision: https://phabricator.services.mozilla.com/D51456

--HG--
extra : moz-landing-system : lando
2019-11-05 18:59:36 +00:00
Markus Stange
e8d0a3ca81 Bug 1593325 - Use NextSurfaceAsDrawTarget in nsChildView. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50876

--HG--
extra : moz-landing-system : lando
2019-11-05 18:59:36 +00:00
Brendan Dahl
eafc9e3293 Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

Differential Revision: https://phabricator.services.mozilla.com/D51486

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-05 17:56:28 +00:00
Mike de Boer
3bb8690c88 Bug 1554761 - Notify with a 'mac_app_activate' topic when the App has been activated, capturing Command-Tabbing behavior. OSX only. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D39936

--HG--
extra : moz-landing-system : lando
2019-11-05 12:37:02 +00:00
harry
8b9e6c9faf Bug 1593001 - Add more stringent Touch Bar null-checks. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D51645

--HG--
extra : moz-landing-system : lando
2019-11-05 10:02:34 +00:00
Mihai Alexandru Michis
b819bd25aa Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
2019-11-05 09:24:26 +02:00
Brendan Dahl
0c0da7791e Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

Differential Revision: https://phabricator.services.mozilla.com/D51486

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 23:37:31 +00:00
Emma Malysz
0bc1b5a9c6 Bug 1519517, ensure that restoring a session doesn't animate and resize the window r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D50839

--HG--
extra : moz-landing-system : lando
2019-11-04 21:13:06 +00:00
Dorel Luca
0207ce5451 Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl
247b257cfa Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

Differential Revision: https://phabricator.services.mozilla.com/D51486

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00