1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00
serenity/Userland/Libraries/LibWeb/Painting
Andreas Kling 25a3d0d643 LibWeb: Resolve relative offsets *once* after layout
Instead of applying relative offsets (like position:relative insets)
during painting and hit testing, we now do a pass at the end of layout
and assign the final resolved offsets to paintables.

This makes painting and hit testing easier since they don't have to
think about relative offsets, and it also fixes a bug where offsets were
not applied to text fragments inside inline-flow elements that were
themselves position:relative.
2023-08-15 16:37:11 +02:00
..
AudioPaintable.cpp LibWeb: Add a clip rect for AudioPaintable 2023-08-01 11:14:26 -04:00
AudioPaintable.h LibWeb: Begin implementing the HTMLAudioElement for audio playback 2023-06-13 06:14:01 +02:00
BackgroundPainting.cpp LibWeb: Implement background-attachment: local 2023-08-09 05:37:43 +02:00
BackgroundPainting.h LibWeb: Convert background painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderPainting.cpp LibWeb: Snap table grid to device pixels in separate borders mode 2023-08-08 12:26:11 +02:00
BorderPainting.h LibWeb: Snap table grid to device pixels in separate borders mode 2023-08-08 12:26:11 +02:00
BorderRadiusCornerClipper.cpp LibWeb: Fix calculation of bitmap size in BorderRadiusCornerClipper 2023-07-27 08:02:44 +02:00
BorderRadiusCornerClipper.h LibWeb: Convert border painting to new pixel units 2022-12-14 16:47:57 +00:00
ButtonPaintable.cpp LibWeb: Don't clear clip rect history but restore previous state 2023-08-03 20:08:53 +01:00
ButtonPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CanvasPaintable.cpp LibWeb: Use box sampling instead of bilinear scaling when downscaling 2023-05-19 18:36:36 +02:00
CanvasPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CheckBoxPaintable.cpp LibWeb: Move checkbox color palette computation to helper header 2023-03-24 09:57:48 +00:00
CheckBoxPaintable.h LibWeb: Add scaleable checkboxes (with theme/accent-color support) 2023-03-23 08:27:51 +00:00
FilterPainting.cpp Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
FilterPainting.h Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
GradientPainting.cpp LibWeb: Allow (explicitly) converting CSSPixels to float and int 2023-08-08 14:58:26 +02:00
GradientPainting.h LibJS+LibWeb: Add a bunch of missing includes 2023-03-06 13:05:43 +00:00
ImagePaintable.cpp LibWeb: Add object-fit support to HTMLImageElement 2023-08-02 11:35:57 +01:00
ImagePaintable.h LibWeb: Move image viewport awareness from ImageBox to ImagePaintable 2023-05-09 09:48:49 +02:00
InlinePaintable.cpp LibWeb: Snap table grid to device pixels in separate borders mode 2023-08-08 12:26:11 +02:00
InlinePaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
InputColors.h LibWeb: Move checkbox color palette computation to helper header 2023-03-24 09:57:48 +00:00
LabelablePaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
LabelablePaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
MarkerPaintable.cpp LibWeb: Allow direct rouding of CSSPixelRects to CSSPixelRects 2023-08-10 12:24:21 +02:00
MarkerPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
MediaPaintable.cpp LibWeb: Move the media volume slider 1:1 with the mouse cursor 2023-08-06 22:23:00 -04:00
MediaPaintable.h LibWeb: Move the media volume slider 1:1 with the mouse cursor 2023-08-06 22:23:00 -04:00
NestedBrowsingContextPaintable.cpp LibWeb: Use device pixels to translate NestedBrowsingContextPaintable 2023-04-20 20:44:02 +02:00
NestedBrowsingContextPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
Paintable.cpp LibWeb: Move mouse wheel handling from Paintable to PaintableBox 2023-08-07 05:23:31 +02:00
Paintable.h LibWeb: Rename PaintPhase::FocusOutline -> Outline 2023-08-03 05:25:48 +02:00
PaintableBox.cpp LibWeb: Resolve relative offsets *once* after layout 2023-08-15 16:37:11 +02:00
PaintableBox.h LibWeb: Resolve relative offsets *once* after layout 2023-08-15 16:37:11 +02:00
PaintContext.cpp LibWeb: Use double functions for pixel unit conversions 2023-07-30 22:18:26 +01:00
PaintContext.h LibWeb: Compensate scroll offset translation before clip rect is applied 2023-08-08 16:55:14 +02:00
ProgressPaintable.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
ProgressPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
RadioButtonPaintable.cpp LibWeb: Add scalable radio buttons (with theme/accent-color support) 2023-03-24 09:57:48 +00:00
RadioButtonPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
ShadowPainting.cpp LibWeb: Fix calculation of bitmap size in paint_outer_box_shadow 2023-07-27 08:02:44 +02:00
ShadowPainting.h LibWeb: Add support for inset shadows 2023-06-07 10:14:21 +02:00
StackingContext.cpp LibWeb: Paint separate borders for inline tables 2023-08-14 15:12:19 +02:00
StackingContext.h LibWeb: Don't paint all stacking contexts like positioned elements 2023-08-14 13:10:17 +02:00
SVGGeometryPaintable.cpp LibWeb: Allow (explicitly) converting CSSPixels to float and int 2023-08-08 14:58:26 +02:00
SVGGeometryPaintable.h LibWeb: Use (transformed) path bounding quad for SVG path hit testing 2023-04-12 07:40:22 +02:00
SVGGraphicsPaintable.cpp LibWeb: Remove SVGContext 2023-07-02 01:31:18 +02:00
SVGGraphicsPaintable.h LibWeb: Remove SVGContext 2023-07-02 01:31:18 +02:00
SVGPaintable.cpp LibWeb: Remove SVGContext 2023-07-02 01:31:18 +02:00
SVGPaintable.h LibWeb: Remove SVGContext 2023-07-02 01:31:18 +02:00
SVGSVGPaintable.cpp LibWeb: Remove SVGContext 2023-07-02 01:31:18 +02:00
SVGSVGPaintable.h LibWeb: Make a handful of paintable leaf classes final 2023-01-11 14:03:25 +01:00
SVGTextPaintable.cpp LibWeb: Add an initial implementation of SVG text-anchor 2023-07-21 11:42:30 +02:00
SVGTextPaintable.h LibWeb: Implement painting for svg text 2023-06-09 17:20:34 +02:00
TableBordersPainting.cpp LibWeb: Verify that table cells have a paintable when collecting them 2023-08-10 05:14:40 +02:00
TableBordersPainting.h LibWeb: Snap table grid to device pixels in separate borders mode 2023-08-08 12:26:11 +02:00
TextPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
TextPaintable.h LibWeb: Make a handful of paintable leaf classes final 2023-01-11 14:03:25 +01:00
VideoPaintable.cpp LibWeb: Make VideoPaintable's clip rect temporary 2023-08-01 11:14:26 -04:00
VideoPaintable.h LibWeb: Extract media element timeline painting to a base class 2023-06-13 06:14:01 +02:00