From 075b4ca4d0759a8439203796756ea309c756c5e8 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 12 Jan 2023 14:34:12 +0000 Subject: LibWeb: Rename PageHost::m_screen_display_scale to match the getter name --- Userland/Services/WebContent/PageHost.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Userland/Services/WebContent/PageHost.h') diff --git a/Userland/Services/WebContent/PageHost.h b/Userland/Services/WebContent/PageHost.h index 1950b4635c..e7fd8c7388 100644 --- a/Userland/Services/WebContent/PageHost.h +++ b/Userland/Services/WebContent/PageHost.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2020-2021, Andreas Kling - * Copyright (c) 2021-2022, Linus Groh + * Copyright (c) 2021-2023, Linus Groh * * SPDX-License-Identifier: BSD-2-Clause */ @@ -32,7 +32,7 @@ public: void set_palette_impl(Gfx::PaletteImpl const&); void set_viewport_rect(Web::DevicePixelRect const&); void set_screen_rects(Vector const& rects, size_t main_screen_index) { m_screen_rect = rects[main_screen_index].to_type(); } - void set_screen_display_scale(float device_pixels_per_css_pixel) { m_screen_display_scale = device_pixels_per_css_pixel; } + void set_device_pixels_per_css_pixel(float device_pixels_per_css_pixel) { m_device_pixels_per_css_pixel = device_pixels_per_css_pixel; } void set_preferred_color_scheme(Web::CSS::PreferredColorScheme); void set_should_show_line_box_borders(bool b) { m_should_show_line_box_borders = b; } void set_has_focus(bool); @@ -53,7 +53,7 @@ private: virtual bool is_connection_open() const override; virtual Gfx::Palette palette() const override; virtual Web::DevicePixelRect screen_rect() const override { return m_screen_rect; } - virtual float device_pixels_per_css_pixel() const override { return m_screen_display_scale; } + virtual float device_pixels_per_css_pixel() const override { return m_device_pixels_per_css_pixel; } virtual Web::CSS::PreferredColorScheme preferred_color_scheme() const override { return m_preferred_color_scheme; } virtual void page_did_invalidate(Web::CSSPixelRect const&) override; virtual void page_did_change_selection() override; @@ -110,7 +110,7 @@ private: Web::DevicePixelRect m_screen_rect; Web::DevicePixelSize m_content_size; // FIXME: Actually set this based on the device's pixel ratio. - float m_screen_display_scale { 1.0f }; + float m_device_pixels_per_css_pixel { 1.0f }; bool m_should_show_line_box_borders { false }; bool m_has_focus { false }; -- cgit v1.2.3