2018-11-06 23:27:26 +01:00
|
|
|
diff --git content/browser/renderer_host/input/fling_scheduler_mac.mm content/browser/renderer_host/input/fling_scheduler_mac.mm
|
2023-08-09 23:17:17 +02:00
|
|
|
index 50ed39df38044..7839bdaf7b7e5 100644
|
2018-11-06 23:27:26 +01:00
|
|
|
--- content/browser/renderer_host/input/fling_scheduler_mac.mm
|
|
|
|
+++ content/browser/renderer_host/input/fling_scheduler_mac.mm
|
2023-08-09 23:17:17 +02:00
|
|
|
@@ -26,6 +26,10 @@ ui::Compositor* FlingSchedulerMac::GetCompositor() {
|
2018-11-06 23:27:26 +01:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // For CEF this will always be false when running in OSR mode.
|
|
|
|
+ if (!view->GetNativeView())
|
|
|
|
+ return nullptr;
|
|
|
|
+
|
|
|
|
RenderWidgetHostViewMac* mac_view =
|
|
|
|
static_cast<RenderWidgetHostViewMac*>(view);
|
|
|
|
if (mac_view->BrowserCompositor())
|