ladybird/Tests/LibWeb/Text/input/hit_testing
Aliaksandr Kalenik 6a549f6270 LibWeb: Replace InlinePaintable with PaintableWithLines created per line
InlinePaintable was an ad-hoc paintable type required to support the
fragmentation of inline nodes across multiple lines. It existed because
there was no way to associate multiple paintables with a single layout
node. This resulted in a lot of duplicated code between PaintableBox and
InlinePaintable. For example, most of the CSS properties like
background, border, shadows, etc. and hit-testing are almost identical
for both of them. However, the code had to be duplicated to account for
the fact that InlinePaintable creates a box for each line. And we had
quite many places that operate on paintables with a code like:
```
if (box.is_paintable_box()) {
  // do something
} else (box.is_inline_paintable()) {
  // do exactly the same as for paintable box but using InlinePaintable
}
```

This change replaces the usage of `InlinePaintable` with
`PaintableWithLines` created for each line, which is now possible
because we support having multiple paintables per layout node. By doing
that, we remove lots of duplicated code and bring our implementation
closer to the spec.
2024-10-16 20:25:42 +02:00
..
basic.html LibWeb: Add hit testing API in internals object 2023-08-09 17:26:44 +02:00
box-outside-of-abspos-containing-block-border-rect.html LibWeb: Always check paintable boxes children during hit-testing 2024-03-05 15:43:17 +01:00
button.html LibWeb: Fix hit-testing for button element 2024-02-13 14:22:14 +01:00
click-outside-of-box-with-hidden-overflow.html LibWeb: Use clip rectangles assigned to paintables in hit-testing 2024-01-30 11:22:22 +01:00
click-outside-of-box-with-lines-and-hidden-overflow.html LibWeb: Use clip rectangles assigned to paintables in hit-testing 2024-01-30 11:22:22 +01:00
float-with-inline-sibling-after.html LibWeb: Skip out-of-flow boxes when wrapping inlines in anonymous block 2023-12-11 13:19:12 +01:00
grid.html LibWeb: Treat grid item as it creates stacking context during painting 2023-08-22 11:33:24 +02:00
hit-testing-an-xml-svg-should-not-crash.svg LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
inline-stacking-context.html LibWeb: Replace InlinePaintable with PaintableWithLines created per line 2024-10-16 20:25:42 +02:00
nested-inline-paintables.html LibWeb: Test nested elements in InlinePaintable::hit_test() 2024-01-25 15:53:18 +01:00
open-details-by-clicking-on-triangle.html LibWeb: Always check paintable boxes children during hit-testing 2024-03-05 15:43:17 +01:00
overflow-hidden-wrapped-into-css-translate.html LibWeb: Fix hit-testing by excluding CSS transform from clip rect check 2024-02-22 07:36:20 +01:00
overflow-scroll.html LibWeb: Account for scroll offset in hit-testing 2024-01-29 09:57:40 +01:00
positioned-z-index-0-and-floats.html LibWeb: Reduce paintable tree traversals during hit-testing 2024-03-01 13:03:53 +01:00
stacking-context-inside-scrollable-box.html LibWeb: Adjust stacking context position by scroll offset in hit-testing 2024-08-07 18:14:41 +02:00
svg-path.html LibWeb: Add hit-testing test for SVG path 2024-02-14 06:56:22 +01:00
text.html LibWeb: Add hit testing API in internals object 2023-08-09 17:26:44 +02:00