mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 05:00:48 +01:00
Fix incorrect initialization of WebCursor object (issue #1894)
This commit is contained in:
parent
bff6dd684c
commit
839e78a519
@ -255,4 +255,10 @@ patches = [
|
|||||||
'name': 'render_view_host_impl_1392',
|
'name': 'render_view_host_impl_1392',
|
||||||
'path': '../content/browser/renderer_host/',
|
'path': '../content/browser/renderer_host/',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
# Fix incorrect initialization of WebCursor object.
|
||||||
|
# https://bitbucket.org/chromiumembedded/cef/issues/1894
|
||||||
|
'name': 'webcursor_1894',
|
||||||
|
'path': '../content/common/cursors/',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
20
patch/patches/webcursor_1894.patch
Normal file
20
patch/patches/webcursor_1894.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
diff --git webcursor_aurawin.cc webcursor_aurawin.cc
|
||||||
|
index b8b4c57..69fe05e 100644
|
||||||
|
--- webcursor_aurawin.cc
|
||||||
|
+++ webcursor_aurawin.cc
|
||||||
|
@@ -37,6 +37,7 @@ ui::PlatformCursor WebCursor::GetPlatformCursor() {
|
||||||
|
|
||||||
|
void WebCursor::InitPlatformData() {
|
||||||
|
custom_cursor_ = NULL;
|
||||||
|
+ device_scale_factor_ = 1.0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool WebCursor::SerializePlatformData(base::Pickle* pickle) const {
|
||||||
|
@@ -59,6 +60,7 @@ void WebCursor::CleanupPlatformData() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebCursor::CopyPlatformData(const WebCursor& other) {
|
||||||
|
+ device_scale_factor_ = other.device_scale_factor_;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace content
|
Loading…
x
Reference in New Issue
Block a user