blob: 1fa3abb523a1c9f9992a17d849e4ae204d6edae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/third_party/blink/public/common/widget/device_emulation_params.h
+++ b/third_party/blink/public/common/widget/device_emulation_params.h
@@ -21,6 +21,9 @@ namespace blink {
struct DeviceEmulationParams {
mojom::EmulatedScreenType screen_type = mojom::EmulatedScreenType::kDesktop;
+ // Forces screen recalculation the same way as mobile
+ bool force_mobile_calc = false;
+
// Emulated screen size. Typically full / physical size of the device screen
// in DIP. Empty size means using default value: original one for kDesktop
// screen position, equal to |view_size| for kMobile.
@@ -91,7 +91,8 @@
a.force_android_overlay_scrollbar ==
b.force_android_overlay_scrollbar &&
a.force_viewport_meta == b.force_viewport_meta &&
- a.force_text_size_adjust == b.force_text_size_adjust;
+ a.force_text_size_adjust == b.force_text_size_adjust &&
++ a.force_mobile_calc == b.force_mobile_calc;
}
} // namespace blink
|