mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Move border painting from Layout::Box to a free function
This will allow us to share some code between inline and non-inline border painting.
This commit is contained in:
parent
c01070df1b
commit
3eb07d289e
Notes:
sideshowbarker
2024-07-19 01:03:36 +09:00
Author: https://github.com/awesomekling
Commit: 3eb07d289e
6 changed files with 211 additions and 128 deletions
|
@ -92,14 +92,6 @@ protected:
|
|||
private:
|
||||
virtual bool is_box() const final { return true; }
|
||||
|
||||
enum class Edge {
|
||||
Top,
|
||||
Right,
|
||||
Bottom,
|
||||
Left,
|
||||
};
|
||||
void paint_border(PaintContext&, Edge, const Gfx::FloatRect&, const BorderData&);
|
||||
|
||||
Gfx::FloatPoint m_offset;
|
||||
Gfx::FloatSize m_size;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue