Sam Atkins
0233627545
LibWeb: Convert background painting to new pixel units
2022-12-14 16:47:57 +00:00
MacDue
1473842b56
LibWeb: Follow image-rendering
when painting image style values
2022-08-10 19:39:07 +02:00
MacDue
28c78b45ca
LibWeb: Keep both horizontal and vertical border radii till painting
2022-06-13 09:43:45 +01:00
Sam Atkins
a797a92990
LibWeb: Stop including StyleValue.h in a few places
...
I don't know how much this will actually help compile times, but it's
something!
2022-04-14 14:54:06 +02:00
Andreas Kling
0de488749f
LibWeb: Use rounding instead of enclosing_int_rect() when painting
...
By using enclosing_int_rect(), borders and backgrounds of boxes were
sometimes 1 pixel off, making things slightly larger than they should
be. Fix this by using to_rounded() instead of enclosing_int_rect().
There's definitely more of these type of issues lurking in the code,
and we'll get to them in time.
2022-03-29 16:35:46 +02:00
Sam Atkins
6234e3fcb3
LibWeb: Implement background-clip :^)
...
We now pass in the Layout Node so that we can read the BoxModelMetrics.
Renamed a couple of variables too for clarity.
2021-11-17 22:20:01 +01:00
Sam Atkins
e8b7946732
LibWeb: Paint backgrounds with multiple layers :^)
2021-11-17 22:20:01 +01:00
Sam Atkins
abc22b727c
LibWeb: Move background painting from Box to its own file
...
This makes the code accessible to things that aren't a Box, such as
InlineNode.
2021-09-19 22:53:35 +02:00