1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 15:05:07 +00:00
serenity/Userland/Libraries/LibWeb/CSS/StyleValues
Andreas Kling 34591ff3d9 LibWeb: Use a separate class for shared image requests
As it turns out, making everyone piggyback on HTML::ImageRequest had
some major flaws, as HTMLImageElement may decide to abort an ongoing
fetch or wipe out image data, even when someone else is using the same
image request.

To avoid this issue, this patch introduces SharedImageRequest, and then
implements ImageRequest on top of that.

Other clients of the ImageRequest API are moved to SharedImageRequest
as well, and ImageRequest is now only used by HTMLImageElement.

This fixes an issue with image data disappearing and leading to asserts
and/or visually absent images.
2023-06-14 14:23:17 +02:00
..
AbstractImageStyleValue.h LibWeb: Move PercentageOr and subclasses into PercentageOr.{h,cpp} 2023-03-30 21:29:50 +02:00
AngleStyleValue.cpp LibWeb: Split AngleStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
AngleStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
BackgroundRepeatStyleValue.cpp LibWeb: Split BackgroundRepeatStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
BackgroundRepeatStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
BackgroundSizeStyleValue.cpp LibWeb: Split BackgroundSizeStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
BackgroundSizeStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
BackgroundStyleValue.cpp LibWeb: Split StyleValueList out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
BackgroundStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
BorderRadiusShorthandStyleValue.cpp LibWeb: Split BorderRadiusShorthandStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
BorderRadiusShorthandStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
BorderRadiusStyleValue.cpp LibWeb: Propagate errors from absolutizing StyleValues 2023-05-06 08:07:28 +02:00
BorderRadiusStyleValue.h LibWeb: Propagate errors from absolutizing StyleValues 2023-05-06 08:07:28 +02:00
BorderStyleValue.cpp LibWeb: Split BorderStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
BorderStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
CalculatedStyleValue.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
CalculatedStyleValue.h LibWeb: Add a way to resolve calc() values without a layout node 2023-06-02 20:03:28 +02:00
ColorStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
ColorStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
CompositeStyleValue.cpp LibWeb: Add CSS CompositeStyleValue 2023-05-29 05:35:41 +02:00
CompositeStyleValue.h LibWeb: Add CSS CompositeStyleValue 2023-05-29 05:35:41 +02:00
ConicGradientStyleValue.cpp LibWeb: Split AbstractImageStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
ConicGradientStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
ContentStyleValue.cpp LibWeb: Declare defaulted style value comparision operators inline 2023-03-28 09:18:50 +01:00
ContentStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
CustomIdentStyleValue.h LibWeb: Add CustomIdentStyleValue, along with parsing for it 2023-05-25 15:31:20 +01:00
DisplayStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
DisplayStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
EdgeStyleValue.cpp LibWeb: Add EdgeStyleValue 2023-04-03 07:10:33 +02:00
EdgeStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
FilterValueListStyleValue.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
FilterValueListStyleValue.h LibWeb: Make CSSPixels and Length use 64-bit (double) floating point 2023-05-24 14:40:35 +02:00
FlexFlowStyleValue.cpp LibWeb: Split FlexFlowStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
FlexFlowStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
FlexStyleValue.cpp LibWeb: Split FlexStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
FlexStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
FontStyleValue.cpp LibWeb: Split FontStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
FontStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
FrequencyStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridAreaShorthandStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridAreaShorthandStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTemplateAreaStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTemplateAreaStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackPlacementShorthandStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackPlacementShorthandStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackPlacementStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackPlacementStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackSizeListShorthandStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackSizeListShorthandStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
GridTrackSizeListStyleValue.cpp LibWeb: Use none as initial value for grid-template-column/rows 2023-06-07 14:13:07 +02:00
GridTrackSizeListStyleValue.h LibWeb: Use none as initial value for grid-template-column/rows 2023-06-07 14:13:07 +02:00
IdentifierStyleValue.cpp LibWeb: Allow doing .to_color() on a StyleValue without a layout node 2023-04-28 09:42:28 +02:00
IdentifierStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
ImageStyleValue.cpp LibWeb: Use a separate class for shared image requests 2023-06-14 14:23:17 +02:00
ImageStyleValue.h LibWeb: Use a separate class for shared image requests 2023-06-14 14:23:17 +02:00
InheritStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
InitialStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
IntegerStyleValue.cpp LibWeb: Implement IntegerStyleValue, for holding <integer> 2023-06-01 21:04:21 +02:00
IntegerStyleValue.h LibWeb: Implement IntegerStyleValue, for holding <integer> 2023-06-01 21:04:21 +02:00
LengthStyleValue.cpp LibWeb: Propagate errors from absolutizing StyleValues 2023-05-06 08:07:28 +02:00
LengthStyleValue.h LibWeb: Remove StyleValue::has/to_length() 2023-05-27 16:12:25 +02:00
LinearGradientStyleValue.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
LinearGradientStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
ListStyleStyleValue.cpp LibWeb: Split ListStyleStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
ListStyleStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
NumberStyleValue.cpp LibWeb: Remove int usage of NumberStyleValues 2023-06-01 21:04:21 +02:00
NumberStyleValue.h LibWeb: Convert NumberStyleValue from float to double 2023-06-01 21:04:21 +02:00
OverflowStyleValue.cpp LibWeb: Split OverflowStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
OverflowStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
PercentageStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
PlaceContentStyleValue.cpp LibWeb: Add support for parsing place-content shorthand CSS property 2023-06-01 09:06:13 +02:00
PlaceContentStyleValue.h LibWeb: Add support for parsing place-content shorthand CSS property 2023-06-01 09:06:13 +02:00
PositionStyleValue.cpp LibWeb: Parse and plumb background-position-x/y 2023-04-03 07:10:33 +02:00
PositionStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
RadialGradientStyleValue.cpp LibWeb+WebContent: Forbid access to underlying type of CSSPixels 2023-06-13 06:08:27 +02:00
RadialGradientStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
RatioStyleValue.h LibWeb: Add RatioStyleValue and parsing 2023-06-09 20:37:51 +02:00
RectStyleValue.cpp LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
RectStyleValue.h LibWeb: Remove StyleValue::has_rect() 2023-05-27 16:12:25 +02:00
ResolutionStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
ShadowStyleValue.cpp LibWeb: Propagate errors from absolutizing StyleValues 2023-05-06 08:07:28 +02:00
ShadowStyleValue.h LibWeb: Propagate errors from absolutizing StyleValues 2023-05-06 08:07:28 +02:00
StringStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
StyleValueList.cpp LibWeb: Split StyleValueList out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
StyleValueList.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
TextDecorationStyleValue.cpp LibWeb: Split TextDecorationStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
TextDecorationStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
TimeStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
TransformationStyleValue.cpp LibWeb: Split TransformationStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
TransformationStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
UnresolvedStyleValue.cpp LibWeb: Split UnresolvedStyleValue out of StyleValue.{h,cpp} 2023-03-25 16:56:04 +00:00
UnresolvedStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
UnsetStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00
URLStyleValue.h LibWeb: Propagate errors from StyleValue construction 2023-05-06 08:07:28 +02:00