1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 19:22:18 +00:00
serenity/Userland/Libraries/LibWeb/Painting
Tobias Christiansen 8709369d43 LibWeb: Add object-fit support to HTMLImageElement
This patch adds handling of the 'object-fit' CSS property to the
painting of HTML Image Elements.
This is achieved by first calculating the rect which the image would
need if it were to fully expand into open space and then adequately
cropping it to fit into the image's box.

scale-down is not supported for now.
2023-08-02 11:35:57 +01: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: Convert BorderData::width to CSSPixels 2023-07-30 22:18:26 +01:00
BackgroundPainting.h LibWeb: Convert background painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderPainting.cpp LibWeb: Convert BorderData::width to CSSPixels 2023-07-30 22:18:26 +01:00
BorderPainting.h LibWeb: More correctly paint joins between borders 2023-07-18 14:51:13 +01: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: Scale the font when painting the text on buttons 2023-03-15 23:29:00 +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+LibJS: Move some code around to make CSS/Parser parse faster 2023-07-11 09:38:37 +03:30
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: Add support for inset shadows 2023-06-07 10:14:21 +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: Pass color to draw_text in marker painting routines 2023-07-24 02:28:21 +02:00
MarkerPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
MediaPaintable.cpp LibWeb: Display the media volume in a tooltip while it is changing 2023-07-03 19:07:26 +02:00
MediaPaintable.h LibWeb: Paint the media timeline above the other media controls 2023-06-22 20:05:19 +02: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: Add Paintable::stacking_context_rooted_here() 2023-07-15 07:10:34 +02:00
Paintable.h LibWeb: Paint relatively positioned inline-level elements 2023-07-15 07:10:34 +02:00
PaintableBox.cpp LibWeb: Convert BorderData::width to CSSPixels 2023-07-30 22:18:26 +01:00
PaintableBox.h LibWeb: Complete table border conflict resolution 2023-07-25 15:21:04 +02:00
PaintContext.cpp LibWeb: Use double functions for pixel unit conversions 2023-07-30 22:18:26 +01:00
PaintContext.h LibWeb: Remove SVGContext 2023-07-02 01:31:18 +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: Fix hit testing for fixed position nodes 2023-07-15 19:57:17 +01:00
StackingContext.h LibWeb: Make StackingContext sorting a lot faster 2023-06-02 15:00:38 +02:00
SVGGeometryPaintable.cpp LibWeb: Use viewbox attribute in SVG symbol element 2023-08-01 14:40:51 +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: Complete table border conflict resolution 2023-07-25 15:21:04 +02:00
TableBordersPainting.h LibWeb: Some improvements for painting of collapsed table borders 2023-07-06 10:31:51 +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