mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
LibWeb: Store clip border radii in CSSPixels instead of DevicePixels
Paintable boxes should not hold information stored in device pixels. It should be converted from CSS pixels only by the time painting command recording occurs.
This commit is contained in:
parent
41f57a5477
commit
d27b376699
5 changed files with 13 additions and 10 deletions
|
@ -196,7 +196,7 @@ public:
|
|||
void set_clip_rect(Optional<CSSPixelRect> rect) { m_clip_rect = rect; }
|
||||
void set_scroll_frame_id(int id) { m_scroll_frame_id = id; }
|
||||
void set_enclosing_scroll_frame_offset(CSSPixelPoint offset) { m_enclosing_scroll_frame_offset = offset; }
|
||||
void set_corner_clip_radii(CornerRadii const& corner_radii) { m_corner_clip_radii = corner_radii; }
|
||||
void set_corner_clip_radii(BorderRadiiData const& corner_radii) { m_corner_clip_radii = corner_radii; }
|
||||
|
||||
protected:
|
||||
explicit PaintableBox(Layout::Box const&);
|
||||
|
@ -228,7 +228,7 @@ private:
|
|||
Optional<CSSPixelRect> m_clip_rect;
|
||||
Optional<int> m_scroll_frame_id;
|
||||
Optional<CSSPixelPoint> m_enclosing_scroll_frame_offset;
|
||||
Optional<CornerRadii> m_corner_clip_radii;
|
||||
Optional<BorderRadiiData> m_corner_clip_radii;
|
||||
|
||||
Optional<BordersDataWithElementKind> m_override_borders_data;
|
||||
Optional<TableCellCoordinates> m_table_cell_coordinates;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue