1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-28 11:52:37 +00:00
serenity/Userland/Libraries/LibWeb/Painting/TableBordersPainting.h
Andi Gallo 7bd00d6a42 LibWeb: Snap table grid to device pixels in separate borders mode
Build a grid snapped to device pixels and use it to construct the
rectangles for the cell edges, same as for collapsed borders. This is
especially important when border-spacing is set to 0 since it avoids
gaps between adjacent cells which have borders set.
2023-08-08 12:26:11 +02:00

15 lines
251 B
C++

/*
* Copyright (c) 2023, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Painting/PaintContext.h>
namespace Web::Painting {
void paint_table_borders(PaintContext&, Layout::Node const&);
}