Commit 8c3bd381 authored by Riku Palomäki's avatar Riku Palomäki Committed by Marshall Greenblatt
Browse files

Fix OSR PDF viewer rendering on initial page load (fixes issue #2598)

parent 2aa46514
...@@ -381,7 +381,7 @@ CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR( ...@@ -381,7 +381,7 @@ CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR(
delegated_frame_host_ = std::make_unique<content::DelegatedFrameHost>( delegated_frame_host_ = std::make_unique<content::DelegatedFrameHost>(
AllocateFrameSinkId(is_guest_view_hack), AllocateFrameSinkId(is_guest_view_hack),
delegated_frame_host_client_.get(), delegated_frame_host_client_.get(),
true /* should_register_frame_sink_id */); false /* should_register_frame_sink_id */);
root_layer_.reset(new ui::Layer(ui::LAYER_SOLID_COLOR)); root_layer_.reset(new ui::Layer(ui::LAYER_SOLID_COLOR));
#endif #endif
...@@ -414,6 +414,7 @@ CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR( ...@@ -414,6 +414,7 @@ CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR(
compositor_->SetDelegate(this); compositor_->SetDelegate(this);
compositor_->SetRootLayer(root_layer_.get()); compositor_->SetRootLayer(root_layer_.get());
compositor_->AddChildFrameSink(GetFrameSinkId());
#endif #endif
if (browser_impl_.get()) if (browser_impl_.get())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment