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
|
2022-09-26 21:30:45 +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
|
2018-11-30 23:21:07 +01: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())
|