mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Use CSS Pixels for viewport rects
This commit is contained in:
parent
8cc0bdf777
commit
4084c66ad2
7 changed files with 17 additions and 17 deletions
|
@ -163,7 +163,7 @@ bool MediaFeature::compare(HTML::Window const& window, MediaFeatureValue left, C
|
|||
left_px = left.length().absolute_length_to_px();
|
||||
right_px = right.length().absolute_length_to_px();
|
||||
} else {
|
||||
Gfx::IntRect viewport_rect { 0, 0, window.inner_width(), window.inner_height() };
|
||||
auto viewport_rect = window.page()->web_exposed_screen_area();
|
||||
|
||||
auto const& initial_font = window.associated_document().style_computer().initial_font();
|
||||
Gfx::FontPixelMetrics const& initial_font_metrics = initial_font.pixel_metrics();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue