mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 02:33:03 +00:00
This patch adds ImageResource as a subclass of Resource. This new class also keeps a Gfx::ImageDecoder so that we can share decoded bitmaps between all clients of an image resource inside LibWeb. With this, we now share both encoded and decoded data for images. :^) I had to change how the purgeable-volatile flag is updated to keep the volatile-images-outside-the-visible-viewport optimization working. HTMLImageElement now inherits from ImageResourceClient (a subclass of ResourceClient with additional image-specific stuff) and informs its ImageResource about whether it's inside the viewport or outside. This is pretty awesome! :^) |
||
---|---|---|
.. | ||
.gitignore | ||
Default.css | ||
Length.h | ||
LengthBox.h | ||
Properties.json | ||
Selector.cpp | ||
Selector.h | ||
SelectorEngine.cpp | ||
SelectorEngine.h | ||
Specificity.h | ||
StyleDeclaration.cpp | ||
StyleDeclaration.h | ||
StyleProperties.cpp | ||
StyleProperties.h | ||
StyleResolver.cpp | ||
StyleResolver.h | ||
StyleRule.cpp | ||
StyleRule.h | ||
StyleSheet.cpp | ||
StyleSheet.h | ||
StyleValue.cpp | ||
StyleValue.h |