diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/MediaQuery.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/MediaQuery.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/MediaQuery.cpp b/Userland/Libraries/LibWeb/CSS/MediaQuery.cpp index f004d57b19..af2c4c8f8b 100644 --- a/Userland/Libraries/LibWeb/CSS/MediaQuery.cpp +++ b/Userland/Libraries/LibWeb/CSS/MediaQuery.cpp @@ -166,7 +166,7 @@ bool MediaFeature::compare(HTML::Window const& window, MediaFeatureValue left, C Gfx::IntRect viewport_rect { 0, 0, window.inner_width(), window.inner_height() }; auto const& initial_font = window.associated_document().style_computer().initial_font(); - Gfx::FontMetrics const& initial_font_metrics = initial_font.metrics(); + Gfx::FontPixelMetrics const& initial_font_metrics = initial_font.pixel_metrics(); float initial_font_size = initial_font.presentation_size(); left_px = left.length().to_px(viewport_rect, initial_font_metrics, initial_font_size, initial_font_size); |