1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:07:45 +00:00

LibWeb+Browser+WebContent: Convert BoxModelMetrics to new pixel units

This commit is contained in:
Sam Atkins 2022-11-08 11:48:31 +00:00 committed by Linus Groh
parent 5d8e3f5122
commit 02cd853eee
4 changed files with 23 additions and 22 deletions

View file

@ -7,14 +7,15 @@
#pragma once
#include <LibGfx/Size.h>
#include <LibWeb/PixelUnits.h>
namespace Web::Layout {
struct PixelBox {
float top { 0 };
float right { 0 };
float bottom { 0 };
float left { 0 };
CSSPixels top { 0 };
CSSPixels right { 0 };
CSSPixels bottom { 0 };
CSSPixels left { 0 };
};
struct BoxModelMetrics {