ladybird/Libraries/LibWeb/CSS/StyleValues
Sam Atkins 9f00425dad LibWeb/CSS: Let CSSStyleValue know its CSSStyleSheet
The CSS `fetch_foo()` functions resolve the URL relative to the
CSSStyleSheet if one is provided. So, style values that do so need to
know what CSSStyleSheet they are part of so that, for example, `url
(foo.png)` is loaded relative to the style sheet's URL instead of the
document's one.

That all works without this change because we currently absolutize URLs
during parsing, but we're in the process of stopping that.

This commit adds the infrastructure for telling style values what their
CSSStyleSheet is.
2025-04-15 09:54:35 +01:00
..
AbstractImageStyleValue.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
AngleStyleValue.cpp LibWeb: Preserve unit when serializing angle values 2025-03-20 16:59:27 +00:00
AngleStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
BackgroundRepeatStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
BackgroundRepeatStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
BackgroundSizeStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
BackgroundSizeStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
BasicShapeStyleValue.cpp LibWeb: Properly serialize position/edge style values 2024-12-13 11:35:38 +00:00
BasicShapeStyleValue.h LibWeb: Properly serialize position/edge style values 2024-12-13 11:35:38 +00:00
BorderRadiusStyleValue.cpp LibWeb: Use correct canonical serialization for BorderRadiusStyleValue 2025-03-18 21:55:06 +01:00
BorderRadiusStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
CalculatedStyleValue.cpp LibWeb: Coerce NaNs to 0 when escaping top-level calculations 2025-03-25 19:53:36 +00:00
CalculatedStyleValue.h LibWeb/CSS: Remove unused includes from CSSStyleValue.h 2025-02-28 13:50:13 +01:00
ColorFunctionStyleValue.cpp LibWeb: Don't resolve color components when serializing color functions 2025-04-09 12:11:33 +01:00
ColorFunctionStyleValue.h LibWeb: Don't convert color functions to RGB when resolving color values 2025-04-09 12:11:33 +01:00
ColorSchemeStyleValue.cpp LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
ColorSchemeStyleValue.h LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
ConicGradientStyleValue.cpp Everywhere: Remove sv suffix from format string literals 2025-04-08 20:00:18 -04:00
ConicGradientStyleValue.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
ContentStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ContentStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
CounterDefinitionsStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
CounterDefinitionsStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
CounterStyleValue.cpp LibWeb: Support strings as list-style-types 2025-02-11 10:39:27 +01:00
CounterStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
CSSColorValue.cpp LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSColorValue.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSHSL.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
CSSHSL.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSHWB.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
CSSHWB.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSKeywordValue.cpp LibWeb/CSS: Implement the color-scheme CSS property 2025-01-08 11:18:13 +00:00
CSSKeywordValue.h LibWeb: Inline CSSStyleValue::to_keyword() 2025-01-28 01:12:45 +01:00
CSSLabLike.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
CSSLabLike.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSLCHLike.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
CSSLCHLike.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSLightDark.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
CSSLightDark.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSNumericValue.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CSSRGB.cpp LibWeb/CSS: Wrap calc()-resolution data in a struct 2025-01-30 19:31:54 +01:00
CSSRGB.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
CSSUnitValue.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CursorStyleValue.cpp LibWeb: Save ScrollState snapshot in DisplayList to avoid race condition 2025-04-12 02:55:18 +02:00
CursorStyleValue.h LibWeb/CSS: Implement CursorStyleValue 2025-02-28 13:50:13 +01:00
CustomIdentStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
DisplayStyleValue.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
DisplayStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
EasingStyleValue.cpp LibWeb: Correct serialization of steps() easing functions 2024-11-18 17:39:03 -05:00
EasingStyleValue.h LibWeb: Remove CubicBezier cached sample inline cache 2025-03-25 07:51:27 +00:00
EdgeStyleValue.cpp LibWeb/CSS: Make CalculationNodes ref-counted 2025-01-30 19:31:54 +01:00
EdgeStyleValue.h LibWeb: Properly serialize position/edge style values 2024-12-13 11:35:38 +00:00
FilterValueListStyleValue.cpp Everywhere: Remove sv suffix from format string literals 2025-04-08 20:00:18 -04:00
FilterValueListStyleValue.h LibWeb: Set blur filter radius to 0px if omitted 2025-04-04 17:12:47 +01:00
FitContentStyleValue.h LibWeb: Parse CSS fit-content(<length-percentage>) values 2025-02-27 00:44:14 +01:00
FlexStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
FontSourceStyleValue.cpp LibWeb/CSS: Qualify uses of LibURL 2025-04-09 18:45:57 +01:00
FontSourceStyleValue.h LibWeb/CSS: Qualify uses of LibURL 2025-04-09 18:45:57 +01:00
FrequencyStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridAutoFlowStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridAutoFlowStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTemplateAreaStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTemplateAreaStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTrackPlacementStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTrackPlacementStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTrackSizeListStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
GridTrackSizeListStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ImageStyleValue.cpp LibWeb: Include SharedResourceRequest.h where it's used 2025-04-15 09:54:35 +01:00
ImageStyleValue.h LibWeb: Include SharedResourceRequest.h where it's used 2025-04-15 09:54:35 +01:00
IntegerStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
IntegerStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
LengthStyleValue.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LengthStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
LinearGradientStyleValue.cpp Everywhere: Remove sv suffix from format string literals 2025-04-08 20:00:18 -04:00
LinearGradientStyleValue.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
MathDepthStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
MathDepthStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
NumberStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
NumberStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
OpenTypeTaggedStyleValue.cpp LibWeb/CSS: Teach OpenTypeTaggedStyleValue to serialize without "1" 2025-04-07 10:00:21 +01:00
OpenTypeTaggedStyleValue.h LibWeb/CSS: Teach OpenTypeTaggedStyleValue to serialize without "1" 2025-04-07 10:00:21 +01:00
PercentageStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
PositionStyleValue.cpp LibWeb: Properly serialize position/edge style values 2024-12-13 11:35:38 +00:00
PositionStyleValue.h LibWeb: Properly serialize position/edge style values 2024-12-13 11:35:38 +00:00
RadialGradientStyleValue.cpp Everywhere: Remove sv suffix from format string literals 2025-04-08 20:00:18 -04:00
RadialGradientStyleValue.h LibWeb: Implement css gradient-interpolation-method 2025-03-06 11:33:12 +00:00
RatioStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
RectStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
RectStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ResolutionStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ScrollbarGutterStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ShadowStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ShadowStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
ShorthandStyleValue.cpp LibWeb/CSS: Let CSSStyleValue know its CSSStyleSheet 2025-04-15 09:54:35 +01:00
ShorthandStyleValue.h LibWeb/CSS: Let CSSStyleValue know its CSSStyleSheet 2025-04-15 09:54:35 +01:00
StringStyleValue.h LibWeb/CSS: Add missing include to StringStyleValue.h 2025-04-04 10:40:32 +01:00
StyleValueList.cpp LibWeb/CSS: Let CSSStyleValue know its CSSStyleSheet 2025-04-15 09:54:35 +01:00
StyleValueList.h LibWeb/CSS: Let CSSStyleValue know its CSSStyleSheet 2025-04-15 09:54:35 +01:00
TimeStyleValue.h LibWeb: Preserve unit when serializing time values 2025-03-20 16:59:27 +00:00
TransformationStyleValue.cpp LibWeb: Make transform: scale(calc(..)) work 2025-03-25 19:53:36 +00:00
TransformationStyleValue.h LibWeb/CSS: Merge ScaleStyleValue into TransformationStyleValue 2025-01-17 10:12:39 +01:00
TransitionStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
TransitionStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
UnicodeRangeStyleValue.cpp LibWeb/CSS: Implement UnicodeRangeStyleValue 2025-03-28 09:15:02 +00:00
UnicodeRangeStyleValue.h LibWeb/CSS: Implement UnicodeRangeStyleValue 2025-03-28 09:15:02 +00:00
UnresolvedStyleValue.cpp LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
UnresolvedStyleValue.h LibWeb: Add mode flag to CSSStyleValue::to_string() 2024-12-07 08:31:03 +00:00
URLStyleValue.h LibWeb/CSS: Qualify uses of LibURL 2025-04-09 18:45:57 +01:00