1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00
serenity/Userland/Libraries/LibWeb
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
..
ARIA Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Bindings LibWeb: Implement the HostGetImportMetaProperties hook 2023-07-18 17:03:21 +01:00
Cookie Userland: Remove remaining users of Duration::now_realtime() 2023-05-24 23:18:07 +02:00
Crypto Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
CSS LibWeb: Add 'object-fit' property 2023-08-02 11:35:57 +01:00
DOM LibWeb: Detach stale layout nodes from DOM during layout tree build 2023-08-01 09:19:41 +02:00
DOMParsing LibWeb: Don't include DOM/NamedNodeMap.h from DOM/Element.h 2023-05-08 09:29:44 +02:00
Encoding Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Fetch LibWeb: Begin support for requesting blob URLs with Fetch infrastructure 2023-08-02 00:52:33 +01:00
FileAPI LibWeb: Implement an ephemeral Blob URL store 2023-08-02 00:52:33 +01:00
Geometry LibWeb: Implement DOMRect(ReadOnly)#fromRect 2023-07-07 05:27:25 +02:00
HighResolutionTime Everywhere: Use MonotonicTime instead of Duration 2023-05-24 23:18:07 +02:00
HTML LibWeb: Implement the :buffering and :stalled pseudo-classes 2023-08-01 12:50:40 -04:00
Infra LibJS: Make intrinsics getters return NonnullGCPtr 2023-04-13 14:29:42 +02:00
IntersectionObserver LibWeb: Fix incorrectly offset root intersection rectangle for Document 2023-07-11 10:03:49 +02:00
Layout LibWeb: Set max-width for inline child boxes after inside layout 2023-08-02 05:27:56 +02:00
Loader AK: Decode data URLs to separate class (and parse like every other URL) 2023-08-01 14:19:05 +02:00
MimeSniff Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
NavigationTiming LibWeb: Specify snake case names for navigation timing entries too 2023-05-13 16:31:10 +02:00
Page LibWeb: Do not fire click event if mouseup/down elements do not match 2023-07-26 05:22:43 +02:00
Painting LibWeb: Add object-fit support to HTMLImageElement 2023-08-02 11:35:57 +01:00
PerformanceTimeline LibWeb: Introduce Performance Timeline and its Performance functions 2023-03-23 21:00:43 +00:00
PermissionsPolicy LibWeb+LibWebView+WebContent: Add APIs to manage an autoplay allowlist 2023-04-18 16:30:02 +02:00
Platform AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
ReferrerPolicy LibWeb: Add ReferrerPolicy::EmptyString 2023-04-25 12:54:01 +02:00
RequestIdleCallback LibWeb/HTML: Port Window.requestIdleCallback() to IDL 2023-03-07 23:33:34 +00:00
ResizeObserver LibWeb: Make factory method of ResizeObserver::ResizeObserver fallible 2023-02-22 09:55:33 +01:00
Scripts LibWeb: Store stylesheet sources as StringViews 2023-02-19 00:51:16 +01:00
SecureContexts AK: Serialize URL hosts with 'concept-host-serializer' 2023-07-31 05:18:51 +02:00
Selection LibWeb: Make factory method of Selection::Selection fallible 2023-02-22 09:55:33 +01:00
SRI LibWeb: Implement integrity-metadata part of fetch algorithm 2023-04-21 20:44:47 +01:00
Streams LibJS+LibWeb: Move IteratorOperations.h AOs to Iterator.h 2023-07-19 14:11:43 +01:00
SVG LibWeb: Use viewbox attribute in SVG symbol element 2023-08-01 14:40:51 +02:00
Tests Everywhere: Rename WrapperGenerator to BindingsGenerator 2022-09-21 23:06:08 +01:00
UIEvents LibWeb: Implement KeyboardEvent.location closer to the spec 2023-07-09 06:32:20 +02:00
URL LibWeb: Implement URL.createObjectURL and URL.revokeObjectURL 2023-08-02 00:52:33 +01:00
UserTiming LibWeb: Implement performance.{measure,clearMeasures} 2023-05-13 16:31:10 +02:00
WebAssembly LibJS+LibWeb: Move IteratorOperations.h AOs to Iterator.h 2023-07-19 14:11:43 +01:00
WebAudio Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
WebDriver Everywhere: Remove 'clang-format off' comments that are no longer needed 2023-07-08 10:32:56 +01:00
WebGL LibWeb: Don't include Layout/Node.h from DOM/Element.h 2023-05-08 09:29:44 +02:00
WebIDL LibWeb+LibJS: Move some code around to make CSS/Parser parse faster 2023-07-11 09:38:37 +03:30
WebSockets Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
XHR AK: Serialize URL hosts with 'concept-host-serializer' 2023-07-31 05:18:51 +02:00
XML LibWeb: Detect when an XML document belongs in the SVG namespace 2023-06-09 01:12:48 +02:00
CMakeLists.txt LibWeb: Implement an ephemeral Blob URL store 2023-08-02 00:52:33 +01:00
Dump.cpp LibWeb: Implement the :buffering and :stalled pseudo-classes 2023-08-01 12:50:40 -04:00
Dump.h LibWeb: Rough implementation of CSS namespace rule 2023-07-30 20:27:19 +01:00
FontCache.cpp LibWeb: Scale the font when painting the text on buttons 2023-03-15 23:29:00 +01:00
FontCache.h LibWeb: Scale the font when painting the text on buttons 2023-03-15 23:29:00 +01:00
Forward.h LibWeb: Add support for "place-items" CSS property 2023-07-17 18:58:05 +02:00
idl_files.cmake LibWeb: Rough implementation of CSS namespace rule 2023-07-30 20:27:19 +01:00
Namespace.cpp LibWeb: Initialize static web strings during main-thread VM creation 2023-03-18 19:50:45 +01:00
Namespace.h LibWeb: Initialize static web strings during main-thread VM creation 2023-03-18 19:50:45 +01:00
PixelUnits.cpp LibWeb: Implement subtraction using saturated_addition in CSSPixels 2023-07-25 15:21:40 +02:00
PixelUnits.h LibWeb: Use fixed-point saturated arithmetics for CSSPixels 2023-07-25 11:52:02 +02:00
TreeNode.h LibJS+LibWeb: Move headers around to allow including Value from Cell 2023-01-29 00:02:45 +00:00