ladybird/Libraries/LibWeb/Painting
Jelle Raaijmakers d819152b4e LibGfx+LibWeb: Preserve text color for selections
Selecting text without custom ::selection styling changed the
foreground color of the selected content. This was especially visible
for links, where the text changed color but the underline did not.

The default selection style supplied both a selection background and a
foreground color from the palette or HighlightText system color. That
made ordinary selections behave as if the page had explicitly styled
::selection color.

Only provide a default selection background, so selected content keeps
its own foreground color unless CSS overrides it. Remove the now-unused
SelectionText palette role.
2026-06-18 22:43:26 +02:00
..
AccumulatedVisualContext.cpp LibWeb: Preserve compatible visual context tree versions 2026-06-18 00:12:42 +02:00
AccumulatedVisualContext.h LibWeb: Preserve compatible visual context tree versions 2026-06-18 00:12:42 +02:00
BackgroundPainting.cpp LibWeb: Move CSS image loading state to Document 2026-06-06 23:29:48 +02:00
BackgroundPainting.h LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
Blending.cpp LibWeb: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +00:00
Blending.h LibWeb: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +00:00
BorderPainting.cpp LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
BorderPainting.h LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
BorderRadiiData.cpp LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
BorderRadiiData.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
BorderRadiusCornerClipper.cpp LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
BorderRadiusCornerClipper.h LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
BordersData.cpp LibWeb: Rename PaintContext to DisplayListRecordingContext 2025-08-01 05:25:56 -04:00
BordersData.h LibWeb: Reduce recompilation from editing Enums.json 2026-02-19 11:27:06 +00:00
BoxModelMetrics.cpp LibWeb: Store final box model metrics in paint tree, not layout tree 2025-02-17 18:28:29 +01:00
BoxModelMetrics.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
CanvasPaintable.cpp LibWeb+Compositor: Run canvas contexts in the Compositor 2026-06-17 19:07:32 +02:00
CanvasPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
CanvasSurfaceRegistry.h LibWeb+Compositor: Add canvas display-list surfaces 2026-06-17 19:07:32 +02:00
CheckBoxPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
CheckBoxPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ChromeMetrics.h LibWeb: Implement resizing for eligible elements and update scrollbars 2026-01-12 11:00:14 +00:00
ChromeWidget.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
DevicePixelConverter.h LibWeb: Inline CSSPixels methods and optimize device pixel math 2026-02-21 15:53:22 +01:00
DisplayList.cpp LibWeb+Compositor: Add canvas display-list surfaces 2026-06-17 19:07:32 +02:00
DisplayList.h LibWeb+Compositor: Add canvas display-list surfaces 2026-06-17 19:07:32 +02:00
DisplayListCommand.cpp LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListCommand.h LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListPlayerSkia.cpp LibWeb: Paint emoji glyph text-shadows in the shadow color 2026-06-18 22:42:29 +02:00
DisplayListPlayerSkia.h LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListRecorder.cpp LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListRecorder.h LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListRecordingContext.cpp LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
DisplayListRecordingContext.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
DisplayListResourceIds.h LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
DisplayListResourceStorage.cpp LibWeb: Stop storing compositor surfaces as display list resources 2026-06-17 20:20:24 +02:00
DisplayListResourceStorage.h LibWeb: Stop storing compositor surfaces as display list resources 2026-06-17 20:20:24 +02:00
DisplayListResourceTransaction.cpp Compositor+LibWeb: Pass AVC trees separately from display lists 2026-05-27 18:29:42 +01:00
FieldSetPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
FieldSetPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
FlexboxInspectorOverlay.h LibWeb/Painting: Paint flexbox inspector overlays 2026-05-28 12:58:46 +01:00
Forward.h LibWeb: Make message drag selection more eager 2026-05-30 21:36:47 +02:00
GradientData.h LibWeb: Store gradient color stops separately 2026-05-08 20:45:17 +02:00
GradientPainting.cpp LibWeb: Handle degenerate repeating gradients 2026-06-08 01:04:08 +02:00
GradientPainting.h LibWeb: Rename PaintContext to DisplayListRecordingContext 2025-08-01 05:25:56 -04:00
GridInspectorOverlay.h LibWeb/Painting: Implement painting a debug overlay for grids 2026-05-27 17:47:50 +01:00
HitTestDisplayList.cpp LibWeb: Hit-test SVG paths against their fill geometry 2026-06-14 17:45:28 +02:00
HitTestDisplayList.h LibWeb: Hit-test SVG paths against their fill geometry 2026-06-14 17:45:28 +02:00
HitTestResult.h LibWeb: Expose document caretPositionFromPoint 2026-05-30 13:50:48 +02:00
ImagePaintable.cpp LibWeb: Transfer animation ownership to AnimatedBitmapDecodedImageData 2026-06-18 10:44:25 +02:00
ImagePaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
InputColors.h LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
MarkerPaintable.cpp LibWeb: Move CSS image loading state to Document 2026-06-06 23:29:48 +02:00
MarkerPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
NavigableContainerViewportPaintable.cpp LibWeb+Compositor+WebContent: Simplify nested context composition 2026-06-18 07:08:34 +02:00
NavigableContainerViewportPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
Paintable.cpp LibGfx+LibWeb: Preserve text color for selections 2026-06-18 22:43:26 +02:00
Paintable.h LibGfx+LibWeb: Preserve text color for selections 2026-06-18 22:43:26 +02:00
PaintableBox.cpp LibWeb: Keep pinch zoom out of client rects 2026-06-16 02:03:59 +02:00
PaintableBox.h LibWeb: Keep pinch zoom out of client rects 2026-06-16 02:03:59 +02:00
PaintableFragment.cpp LibWeb: Make layout nodes refcounted 2026-06-07 20:52:49 +02:00
PaintableFragment.h LibWeb: Make layout nodes refcounted 2026-06-07 20:52:49 +02:00
PaintableWithLines.cpp LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
PaintableWithLines.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
PaintStyle.cpp Compositor+LibWeb: Pass AVC trees separately from display lists 2026-05-27 18:29:42 +01:00
PaintStyle.h Compositor+LibWeb: Pass AVC trees separately from display lists 2026-05-27 18:29:42 +01:00
RadioButtonPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
RadioButtonPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ReplacedElementCommon.cpp LibWeb: Use CSSPixelFraction to calculate painted image sizes 2026-04-21 19:11:24 -05:00
ReplacedElementCommon.h LibWeb: Factor out replaced element sizing to its own file 2026-04-21 19:11:24 -05:00
ResizeHandle.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ResizeHandle.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
ResolvedCSSFilter.cpp LibWeb: Move effects application into AccumulatedVisualContext 2026-01-21 16:19:18 +01:00
ResolvedCSSFilter.h LibWeb: Move effects application into AccumulatedVisualContext 2026-01-21 16:19:18 +01:00
Scrollbar.cpp LibWeb: Handle stale scrollbar data during capture 2026-05-17 00:40:40 +02:00
Scrollbar.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
ScrollFrame.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ScrollFrame.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ScrollState.cpp LibWeb: Add IPC serialization for display-list resource transactions 2026-05-21 11:45:06 +01:00
ScrollState.h LibWeb: Add IPC serialization for display-list resource transactions 2026-05-21 11:45:06 +01:00
ShadowData.h LibWeb: Add helpers to convert CSS::ShadowData to Painting::ShadowData 2026-02-06 10:47:50 +00:00
ShadowPainting.cpp LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
ShadowPainting.h LibWeb: Precompute box shadow geometry at display list recording time 2026-03-10 19:08:31 +01:00
StackingContext.cpp LibWeb: Do not dump number of children for StackingContexts 2026-06-18 10:50:08 +02:00
StackingContext.h LibWeb: Allocate layout and painting objects with mimalloc 2026-06-13 19:08:08 +02:00
SVGClipPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGClipPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGForeignObjectPaintable.cpp LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
SVGForeignObjectPaintable.h LibWeb: Avoid SVG getBBox paintable downcasts 2026-06-08 01:04:08 +02:00
SVGGraphicsPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGGraphicsPaintable.h Compositor+LibWeb: Pass AVC trees separately from display lists 2026-05-27 18:29:42 +01:00
SVGMaskable.cpp LibWeb: Apply visual effects in SVG mask subtrees 2026-05-31 15:49:58 +02:00
SVGMaskable.h Compositor+LibWeb: Pass AVC trees separately from display lists 2026-05-27 18:29:42 +01:00
SVGMaskPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGMaskPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGPaintable.cpp LibWeb: Tolerate unpainted SVG ancestors 2026-06-08 01:04:08 +02:00
SVGPaintable.h LibGfx+LibWeb: Move display-list corner types to LibGfx 2026-05-12 16:30:26 +02:00
SVGPathPaintable.cpp LibWeb: Record SVG hit-test geometry in absolute coordinates 2026-06-14 17:45:28 +02:00
SVGPathPaintable.h LibWeb: Use retained data for hit testing 2026-05-30 13:50:48 +02:00
SVGPatternPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGPatternPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
SVGSVGPaintable.cpp LibWeb: Paint replaced backgrounds in SVG foreignObject 2026-05-30 21:36:47 +02:00
SVGSVGPaintable.h LibWeb: Avoid SVG getBBox paintable downcasts 2026-06-08 01:04:08 +02:00
TableBordersPainting.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
TableBordersPainting.h LibWeb: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
TextPaintable.cpp LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
TextPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
VideoPaintable.cpp LibWeb: Let image paint callers own clipping 2026-06-06 13:23:21 +01:00
VideoPaintable.h LibWeb: Make Paintable tree ref-counted 2026-05-07 15:03:44 +02:00
ViewportPaintable.cpp LibWeb: Preserve compatible visual context tree versions 2026-06-18 00:12:42 +02:00
ViewportPaintable.h LibWeb: Avoid display list rebuilds for VV changes 2026-06-03 02:12:39 +01:00