|
Fix race between DPI and window size
Because the display scale factor and the window size are sent in two different
IPCs, and because the window size (ViewMsg_Resize) may be delayed (to avoid
spamming the renderer with resize messages while dragging), the renderer can
think it's using a different resolution than it is.
This merges the ViewMsg_ScreenInfoChanged and ViewMsg_Resize messages,
so that the renderer cannot not have a consistent view of the window size and
DPI.
BUG= 239624
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202814
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -108 lines) |
Patch |
 |
M |
content/browser/renderer_host/render_widget_host_impl.h
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
3
4
|
4 chunks |
+21 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+15 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_base.cc
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
content/common/view_messages.h
|
View
|
1
2
3
4
5
|
3 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/public/test/render_view_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/test/render_widget_test.cc
|
View
|
1
2
3
|
2 chunks |
+23 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.h
|
View
|
1
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget_fullscreen_pepper.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget_fullscreen_pepper.cc
|
View
|
|
1 chunk |
+4 lines, -8 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|