Andreas Kling
680fc3f90a
LibWeb: Piggyback on HTML::ImageRequest in CSS ImageStyleValue
...
This is all ad-hoc since no spec currently exists for this behavior.
Basically, ImageStyleValue now uses ImageRequest for fetching and
decoding of images.
This already leads to visible improvements on many websites.
2023-06-11 20:37:12 +02:00
Jelle Raaijmakers
7652dbd983
LibWeb: Use box sampling instead of bilinear scaling when downscaling
...
As a heuristic, either the width or height of the scaled image should
decrease for box sampling to be used. Otherwise, we use bilinear
scaling.
2023-05-19 18:36:36 +02:00
Andreas Kling
77db621be5
Revert "LibWeb: Use box sampling instead of bilinear scaling when downscaling"
...
This reverts commit b79fd3d1a9
.
2023-05-19 13:33:52 +02:00
Jelle Raaijmakers
b79fd3d1a9
LibWeb: Use box sampling instead of bilinear scaling when downscaling
...
As a heuristic, either the width or height of the scaled image should
decrease for box sampling to be used. Otherwise, we use bilinear
scaling.
2023-05-19 06:16:14 +02:00
Andreas Kling
70db40c9b0
LibWeb: Don't include Layout/Node.h from DOM/Element.h
...
This required moving the CSS::StyleProperty destruct out of line.
2023-05-08 09:29:44 +02:00
Sam Atkins
35b240c87d
LibWeb: Split ImageStyleValue out of StyleValue.{h,cpp}
2023-03-25 16:56:04 +00:00