mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
Fix OSR PDF viewer rendering on initial page load (fixes issue #2598)
This commit is contained in:
parent
e7d8dd5ef7
commit
d8845b88f4
@ -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(
|
|||||||
|
|
||||||
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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user