mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-23 07:27:42 +01:00
Fix rendering of the PDF extension with OSR when the device scale factor is not 1 (issue #1687)
This commit is contained in:
parent
39020fb2ea
commit
cd7e0eef20
@ -185,4 +185,11 @@ patches = [
|
||||
'name': 'aura_window_1677',
|
||||
'path': '../ui/aura/',
|
||||
},
|
||||
{
|
||||
# Fix rendering of the PDF extension with OSR when the device scale factor
|
||||
# is not 1.
|
||||
# https://bitbucket.org/chromiumembedded/cef/issues/1687
|
||||
'name': 'browser_frame_host_guest_1687',
|
||||
'path': '../content/browser/frame_host/',
|
||||
},
|
||||
]
|
||||
|
14
patch/patches/browser_frame_host_guest_1687.patch
Normal file
14
patch/patches/browser_frame_host_guest_1687.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git render_widget_host_view_guest.cc render_widget_host_view_guest.cc
|
||||
index f5a04c4c..cdd4b1f 100644
|
||||
--- render_widget_host_view_guest.cc
|
||||
+++ render_widget_host_view_guest.cc
|
||||
@@ -191,6 +191,9 @@ void RenderWidgetHostViewGuest::Destroy() {
|
||||
}
|
||||
|
||||
gfx::Size RenderWidgetHostViewGuest::GetPhysicalBackingSize() const {
|
||||
+ RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView();
|
||||
+ if (rwhv)
|
||||
+ return rwhv->GetPhysicalBackingSize();
|
||||
return RenderWidgetHostViewBase::GetPhysicalBackingSize();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user