ladybird/Userland/Libraries/LibWeb/CSS
Andrew Kaster 2c3531ab78 LibWeb: Move JS::Promise <-> WebIDL conversion into IDL
This change also removes as much direct use of JS::Promise in LibWeb
as possible. When specs refer to `Promise<T>` they should be assumed
to be referring to the WebIDL Promise type, not the JS::Promise type.

The one exception is the HostPromiseRejectionTracker hook on the JS
VM. This facility and its associated sets and events are intended to
expose the exact opaque object handles that were rejected to author
code. This is not possible with the WebIDL Promise type, so we have
to use JS::Promise or JS::Object to hold onto the promises.

It also exposes which specs need some updates in the area of
promises. WebDriver stands out in this regard. WebAudio could use
some more cross-references to WebIDL as well to clarify things.
2024-10-25 14:04:21 -06:00
..
Parser LibWeb: Parse @property CSS directives 2024-10-23 06:55:37 +01:00
StyleValues LibWeb/CSS: Tweak in CSSRGB::to_color() to avoid floating point errors 2024-10-22 14:18:17 +01:00
SyntaxHighlighter LibWeb/CSS: Remove tiny-oom propagation from CSS Tokenizer 2024-07-26 17:29:20 +02:00
Angle.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Angle.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
AnimationEvent.cpp LibWeb: Remove Bindings/Forward.h from LibWeb/Forward.h 2024-04-27 18:29:35 -04:00
AnimationEvent.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
AnimationEvent.idl LibWeb: Normalize all WebIDL definition lines to four leading spaces 2024-09-10 21:16:53 +01:00
BackdropFilter.h LibWeb: Rename StyleValue -> CSSStyleValue 2024-08-15 13:58:38 +01:00
CalculatedOr.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
CalculatedOr.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Clip.cpp
Clip.h
ColumnCount.h
ComputedValues.h LibWeb: Add letter-spacing css property to Node 2024-10-22 15:32:34 +01:00
CountersSet.cpp LibWeb: Make DOM Node unique IDs strongly typed (and 64 bit) 2024-10-20 13:42:33 +02:00
CountersSet.h LibWeb: Make DOM Node unique IDs strongly typed (and 64 bit) 2024-10-20 13:42:33 +02:00
CSS.cpp LibWeb/CSS: Implement "is a custom property name string" to spec 2024-10-14 08:08:37 +02:00
CSS.h
CSS.idl
CSSAnimation.cpp LibWeb: Move "owning element" of Animation classes into Animation 2024-09-22 06:41:55 +02:00
CSSAnimation.h LibWeb: Move "owning element" of Animation classes into Animation 2024-09-22 06:41:55 +02:00
CSSAnimation.idl LibWeb: Normalize all WebIDL definition lines to four leading spaces 2024-09-10 21:16:53 +01:00
CSSConditionRule.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSConditionRule.h LibWeb/CSS: Replace style-rule iteration methods with a generic one 2024-09-06 07:49:55 +02:00
CSSConditionRule.idl LibWeb: Make CSSConditionRule.conditionText read-only 2024-02-28 22:14:58 +01:00
CSSFontFaceRule.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSFontFaceRule.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSFontFaceRule.idl
CSSGroupingRule.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSGroupingRule.h LibWeb/CSS: Replace style-rule iteration methods with a generic one 2024-09-06 07:49:55 +02:00
CSSGroupingRule.idl
CSSImportRule.cpp LibWeb: Allow CSS @import rule to import non-UTF-8 style sheets 2024-10-12 19:20:22 +02:00
CSSImportRule.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSImportRule.idl LibWeb: Use 'FIXME' extended attribute where possible 2024-05-19 16:24:11 +02:00
CSSKeyframeRule.cpp LibWeb: Implement CSSStyleDeclaration.parentRule 2024-06-14 20:45:37 +02:00
CSSKeyframeRule.h LibWeb: Implement CSSKeyframesRule.cssRuleList 2024-06-14 20:45:37 +02:00
CSSKeyframeRule.idl IDL: Add missing #imports 2023-11-11 08:51:51 +01:00
CSSKeyframesRule.cpp LibWeb: Make CSSKeyframeRule.parentRule actually point to parent rule 2024-06-14 20:45:37 +02:00
CSSKeyframesRule.h LibWeb: Make CSSKeyframeRule.parentRule actually point to parent rule 2024-06-14 20:45:37 +02:00
CSSKeyframesRule.idl LibWeb: Implement CSSKeyframesRule.cssRuleList 2024-06-14 20:45:37 +02:00
CSSLayerBlockRule.cpp LibWeb: Cache the qualified layer name in CSSRule 2024-09-07 13:23:55 +02:00
CSSLayerBlockRule.h LibWeb/CSS: Add CSSOM types for @layer rules 2024-09-06 07:49:55 +02:00
CSSLayerBlockRule.idl LibWeb/CSS: Add CSSOM types for @layer rules 2024-09-06 07:49:55 +02:00
CSSLayerStatementRule.cpp LibWeb: Cache the qualified layer name in CSSRule 2024-09-07 13:23:55 +02:00
CSSLayerStatementRule.h LibWeb/CSS: Add CSSOM types for @layer rules 2024-09-06 07:49:55 +02:00
CSSLayerStatementRule.idl LibWeb/CSS: Add CSSOM types for @layer rules 2024-09-06 07:49:55 +02:00
CSSMediaRule.cpp LibWeb/CSS: Don't serialize empty rules in CSSMediaRule 2024-10-14 09:50:41 +01:00
CSSMediaRule.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSMediaRule.idl
CSSNamespaceRule.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
CSSNamespaceRule.h LibWeb: Port CSSNamespaceRule to FlyString 2023-12-01 16:03:58 +01:00
CSSNamespaceRule.idl LibWeb: Format all .idl files to use four space indentation 2024-01-18 14:00:06 +01:00
CSSNestedDeclarations.cpp LibWeb: Implement CSSNestedDeclarations type 2024-10-17 20:55:55 +02:00
CSSNestedDeclarations.h LibWeb: Implement CSSNestedDeclarations type 2024-10-17 20:55:55 +02:00
CSSNestedDeclarations.idl LibWeb: Implement CSSNestedDeclarations type 2024-10-17 20:55:55 +02:00
CSSNumericType.cpp LibWeb/CSS: Add parsing for <opentype-tag> 2024-10-02 16:28:55 +01:00
CSSNumericType.h
CSSPropertyRule.cpp LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSPropertyRule.h LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSPropertyRule.idl LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSRule.cpp LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSRule.h LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSRule.idl
CSSRuleList.cpp LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
CSSRuleList.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSRuleList.idl
CSSStyleDeclaration.cpp LibWeb: Allow setting shorthand CSS properties via CSSStyleDeclaration 2024-09-22 09:45:59 +02:00
CSSStyleDeclaration.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSStyleDeclaration.idl LibWeb: Remove unnecessary FIXME marker for CSSStyleDeclaration.cssFloat 2024-06-14 20:45:37 +02:00
CSSStyleRule.cpp LibWeb/CSS: Parse and use nested style rules 2024-10-17 20:55:55 +02:00
CSSStyleRule.h LibWeb/CSS: Parse and use nested style rules 2024-10-17 20:55:55 +02:00
CSSStyleRule.idl LibWeb/CSS: Make CSSStyleRule be a CSSGroupingRule 2024-10-14 08:08:37 +02:00
CSSStyleSheet.cpp LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
CSSStyleSheet.h LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
CSSStyleSheet.idl LibWeb: Remove first rule if no argument is given for remove_rule() 2024-02-24 21:59:28 +01:00
CSSStyleValue.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSStyleValue.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CSSSupportsRule.cpp LibWeb: Avoid FlyString lookups when setting IDL interface prototypes 2024-03-16 16:35:54 +01:00
CSSSupportsRule.h LibWeb: Make CSSConditionRule.conditionText read-only 2024-02-28 22:14:58 +01:00
CSSSupportsRule.idl
CSSTransition.cpp LibWeb: Start transitions when affected properties change 2024-09-22 06:41:55 +02:00
CSSTransition.h LibWeb: Start transitions when affected properties change 2024-09-22 06:41:55 +02:00
CSSTransition.idl LibWeb: Normalize all WebIDL definition lines to four leading spaces 2024-09-10 21:16:53 +01:00
Default.css LibWeb: Don't let input element placeholders influence line-height 2024-10-08 08:12:07 +02:00
Display.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Display.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
EasingFunctions.json
EdgeRect.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
EdgeRect.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
ElementCSSInlineStyle.idl
Enums.json LibWeb: Add stroke-linecap attribute and plumb it to SVGGraphicsElement 2024-10-11 00:27:47 +01:00
Flex.cpp
Flex.h LibWeb/CSS: Introduce CSSNumericValue and CSSUnitValue type stubs 2024-08-21 10:51:48 +01:00
FontFace.cpp LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
FontFace.h LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
FontFace.idl LibWeb: Support loading FontFaces constructed with binary data 2024-05-14 12:31:10 -06:00
FontFaceSet.cpp LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
FontFaceSet.h LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
FontFaceSet.idl LibWeb: Delete public constructor of FontFaceSet 2024-09-30 08:07:59 +02:00
Frequency.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Frequency.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
GeneralEnclosed.h
GridTrackPlacement.cpp
GridTrackPlacement.h
GridTrackSize.cpp LibWeb/CSS: Serialize empty grid-template-* values correctly 2024-10-16 08:34:02 +02:00
GridTrackSize.h LibWeb: Implement grid-template function fit-content() 2024-07-25 13:12:26 +02:00
Interpolation.cpp LibWeb: Rename Layout::Node::paintable() to first_paintable() 2024-10-16 20:25:42 +02:00
Interpolation.h LibWeb: Start transitions when affected properties change 2024-09-22 06:41:55 +02:00
Keywords.json LibWeb: Add stroke-linecap attribute and plumb it to SVGGraphicsElement 2024-10-11 00:27:47 +01:00
Length.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Length.h LibWeb: Handle calculations without a context better 2024-10-16 16:39:47 +02:00
LengthBox.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
LengthBox.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
LinkStyle.idl
MathFunctions.json
MediaFeatures.json
MediaList.cpp LibWeb: Make empty media query lists evaluate to true 2024-10-07 14:50:57 +01:00
MediaList.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
MediaList.idl
MediaQuery.cpp AK: Make String::number() infallible 2024-10-14 20:47:35 +02:00
MediaQuery.h LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
MediaQueryList.cpp LibWeb: Make empty media query lists evaluate to true 2024-10-07 14:50:57 +01:00
MediaQueryList.h LibWeb: Use String for getting/setting MediaQueryList media 2023-12-01 20:48:13 +01:00
MediaQueryList.idl
MediaQueryListEvent.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
MediaQueryListEvent.h LibWeb: Put most LibWeb GC objects in type-specific heap blocks 2023-11-19 22:00:48 +01:00
MediaQueryListEvent.idl
Number.h AK: Make String::number() infallible 2024-10-14 20:47:35 +02:00
ParsedFontFace.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
ParsedFontFace.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Percentage.h
PercentageOr.cpp LibWeb: Make CSS::PercentageOr<T> non-virtual 2024-08-02 20:37:40 +02:00
PercentageOr.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
PreferredColorScheme.cpp
PreferredColorScheme.h
PreferredContrast.cpp LibWeb: Add Contrast preference 2024-06-13 11:18:38 +02:00
PreferredContrast.h LibWeb: Add Contrast preference 2024-06-13 11:18:38 +02:00
PreferredMotion.cpp LibWeb: Add motion preference 2024-06-18 10:31:54 -04:00
PreferredMotion.h LibWeb: Add motion preference 2024-06-18 10:31:54 -04:00
Properties.json LibWeb/CSS: Mark grid-[gap, column-gap, row-gap] properties as aliases 2024-10-14 17:57:34 +02:00
PropertyName.h LibWeb/CSS: Implement "is a custom property name string" to spec 2024-10-14 08:08:37 +02:00
PseudoClasses.json LibWeb: Implement the :has() pseudo-class 2024-07-15 11:52:03 +01:00
QuirksMode.css
Ratio.cpp LibWeb: Limit ratio parts to 5 decimal places when printing 2024-03-03 19:50:25 +01:00
Ratio.h
Resolution.cpp LibWeb: Support the 'x' resolution unit identifier 2024-10-12 22:23:03 -06:00
Resolution.h LibWeb/CSS: Introduce CSSNumericValue and CSSUnitValue type stubs 2024-08-21 10:51:48 +01:00
ResolvedCSSStyleDeclaration.cpp LibWeb: Rename Layout::Node::paintable() to first_paintable() 2024-10-16 20:25:42 +02:00
ResolvedCSSStyleDeclaration.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Screen.cpp LibWeb: Stub out Window-Management proposal extensions to Screen API 2024-05-27 17:24:51 -06:00
Screen.h LibWeb: Stub out Window-Management proposal extensions to Screen API 2024-05-27 17:24:51 -06:00
Screen.idl LibWeb: Stub out Window-Management proposal extensions to Screen API 2024-05-27 17:24:51 -06:00
ScreenOrientation.cpp LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
ScreenOrientation.h LibWeb: Move JS::Promise <-> WebIDL conversion into IDL 2024-10-25 14:04:21 -06:00
ScreenOrientation.idl LibWeb: Add stubs for the Screen Orientation API 2024-04-03 10:09:58 +01:00
Selector.cpp LibWeb/CSS: Parse and use nested style rules 2024-10-17 20:55:55 +02:00
Selector.h LibWeb/CSS: Parse and use nested style rules 2024-10-17 20:55:55 +02:00
SelectorEngine.cpp LibWeb/CSS: Parse the & nesting selector 2024-10-17 20:55:55 +02:00
SelectorEngine.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Serialize.cpp LibWeb: Limit color alpha values to 4 decimal places when serializing 2024-03-03 19:50:25 +01:00
Serialize.h LibWeb+LibGfx: Move UnicodeRange from LibWeb to LibGfx 2023-12-10 17:32:04 +01:00
Size.cpp LibWeb: Replaced remaining usage and delete Size::resolved() 2024-10-06 18:51:03 +02:00
Size.h LibWeb: Replaced remaining usage and delete Size::resolved() 2024-10-06 18:51:03 +02:00
Sizing.cpp LibWeb: Move our "default sizing algorithm" function into a public place 2024-09-12 07:39:11 +02:00
Sizing.h LibWeb: Move our "default sizing algorithm" function into a public place 2024-09-12 07:39:11 +02:00
StyleComputer.cpp LibWeb: Add and implement CSSPropertyRule IDL and bindings 2024-10-23 06:55:37 +01:00
StyleComputer.h LibWeb/CSS: Process style properties from CSSNestedDeclarations rules 2024-10-17 20:55:55 +02:00
StyleInvalidation.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
StyleInvalidation.h LibWeb: Rename StyleValue -> CSSStyleValue 2024-08-15 13:58:38 +01:00
StyleProperties.cpp LibWeb: Add letter-spacing css property to Node 2024-10-22 15:32:34 +01:00
StyleProperties.h LibWeb: Add letter-spacing css property to Node 2024-10-22 15:32:34 +01:00
StyleProperty.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
StyleProperty.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
StyleSheet.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
StyleSheet.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
StyleSheet.idl LibWeb: Align StyleSheet title getter with the specification 2024-04-29 08:10:38 +02:00
StyleSheetIdentifier.cpp LibWeb: Make DOM Node unique IDs strongly typed (and 64 bit) 2024-10-20 13:42:33 +02:00
StyleSheetIdentifier.h LibWeb: Make DOM Node unique IDs strongly typed (and 64 bit) 2024-10-20 13:42:33 +02:00
StyleSheetList.cpp LibWeb: Remove all font loaders linked to a StyleSheet when it's deleted 2024-09-22 20:10:30 +02:00
StyleSheetList.h LibWeb: Only invalidate shadow root when style sheet inside changes 2024-08-20 16:10:33 +02:00
StyleSheetList.idl
Supports.cpp LibWeb: Don't leak entire realm after parsing CSS @supports rule 2024-04-05 08:14:19 +02:00
Supports.h LibWeb/CSS: Rewrite CSS Parser core methods according to new spec 2024-10-14 08:08:37 +02:00
SystemColor.cpp
SystemColor.h
Time.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Time.h LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Transformation.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Transformation.h LibWeb: Allow percentages on CSS transform scale functions 2024-01-10 09:48:25 +01:00
TransformFunctions.json LibWeb: Add missing CSS Transforms Module Level 2 functions 2024-01-10 09:48:25 +01:00
VisualViewport.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
VisualViewport.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
VisualViewport.idl