Luke Wilde
eeb5446c1b
LibWeb: Avoid including Navigable.h in headers
...
This greatly reduces how much is recompiled when changing Navigable.h,
from >1000 to 82.
2025-10-20 10:16:55 +01:00
Aliaksandr Kalenik
72aaef5a0f
LibWeb: Delete non-const layout_node_with_style_and_box_metrics()
...
...from PaintableBox. It was used exclusively to go to corresponding DOM
node which could be done via direct DOM node pointer owned by paintable.
2025-10-10 16:58:51 +02:00
Andreas Kling
6042b5631a
LibWeb: Make DisplayListRecorder::draw_text() take text as UTF-16
...
This is prep work for getting rid of UTF-8 text shaping.
2025-09-21 13:22:38 +02:00
Andreas Kling
b634918ff6
LibWeb: Remove Font::width() overloads for UTF-8
...
This is prep work for getting rid of UTF-8 text shaping.
2025-09-21 13:22:38 +02:00
Aliaksandr Kalenik
a41d586117
LibWeb: Merge FillPathUsingPaintStyle and FillPathUsingColor
...
Use `Variant<PaintStyle, Gfx::Color>` in new `FillPath` instead of
duplicating two almost identical display list items.
2025-08-03 10:42:33 +02:00
Aliaksandr Kalenik
5c11a541d3
LibWeb: Merge StrokePathUsingPaintStyle and StrokePathUsingColor
...
Use `Variant<PaintStyle, Gfx::Color>` in new `StrokePath` instead of
duplicating two almost identical display list items.
2025-08-03 10:42:33 +02:00
Aliaksandr Kalenik
61114f6d16
LibWeb: Rename PaintContext to DisplayListRecordingContext
...
PaintContext dates back to a time when display lists didn't exist and it
truly represented "paint context". Renaming it to better align with its
current role.
2025-08-01 05:25:56 -04:00
Timothy Flynn
8417ade552
LibWeb: Update the media display when the hovered component changes
...
This allows the media paintable to be redrawn when the media element is
paused. We change the color of some components on hover, but if the
media was paused, that would not be rendered. This wasn't an issue while
the media is playing because the update to the timeline would take care
of redrawing the paintable.
2025-04-23 13:22:56 +02:00
Timothy Flynn
7b0e62cae7
LibWeb: Use branded colors for the painted media controls
2025-04-23 13:22:56 +02:00
Aliaksandr Kalenik
8e2d1559ec
LibGfx: Join ScaledFont into Font
...
Since ScaledFont is the only class inherited from Font we could simply
merge them.
2025-04-21 09:51:16 +02:00
InvalidUsernameException
be47f95180
LibWeb: Reduce number of recompiled files for display list headers
...
This reduces the number of `.cpp` files that need to be recompiled when
one of the below header files changes as follows:
Painting/Command.h: 1030 -> 61
Painting/DisplayList.h: 1030 -> 60
Painting/DisplayListRecorder.h: 557 -> 59
2025-02-23 10:14:39 -05:00
Timothy Flynn
85b424464a
AK+Everywhere: Rename verify_cast to as
...
Follow-up to fc20e61e72 .
2025-01-21 11:34:06 -05:00
Pavel Shliak
dbfe5be9ff
LibGfx: Delete DeprecatedPainter
2024-11-25 21:13:53 +01:00
Nico Weber
f4b0d17e4b
LibWeb: Plumb svg stroking state to DisplayListPlayerSkia
...
The state is still ignored there, so no behavior change, but this
should make it fairly easy to actually implement complete stroking
support for SVGs.
2024-11-22 12:21:29 +01:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00