mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
Ladybird/Qt: Listen to DPI changes and update WebContentView accordingly
This commit is contained in:
parent
51ecfdf71f
commit
04b591b2e0
6 changed files with 81 additions and 15 deletions
|
@ -69,6 +69,7 @@ public:
|
|||
void set_viewport_rect(Gfx::IntRect);
|
||||
void set_window_size(Gfx::IntSize);
|
||||
void set_window_position(Gfx::IntPoint);
|
||||
void set_device_pixel_ratio(double);
|
||||
|
||||
enum class PaletteMode {
|
||||
Default,
|
||||
|
@ -90,7 +91,6 @@ private:
|
|||
void update_viewport_rect();
|
||||
void update_cursor(Gfx::StandardCursor cursor);
|
||||
|
||||
qreal m_inverse_pixel_scaling_ratio { 1.0 };
|
||||
bool m_should_show_line_box_borders { false };
|
||||
|
||||
Gfx::IntRect m_viewport_rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue