Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-20 | LibWeb: Replace `RefPtr` with `ValueComparingRefPtr` in StyleValue | MacDue | |
Like the name suggests this pointer type compares its pointees by value rather than just by the pointer. This is needed for the defaulted struct Properties equality operator. This commit also contains a few changes to StyleValue such as replacing the operator==()s with a .equals() again. This is done to avoid the new reversed operator==()s ambiguity in C++20. | |||
2023-02-19 | LibTextCodec+Everywhere: Port Decoders to new Strings | Sam Atkins | |
2023-02-19 | LibTextCodec+Everywhere: Return Optional<Decoder&> from `decoder_for()` | Sam Atkins | |
2023-02-19 | LibWeb: Port StyleComputer to new Strings | Sam Atkins | |
2023-02-19 | LibWeb: Port FontCache to new Strings | Sam Atkins | |
2023-02-19 | LibWeb: Store stylesheet sources as StringViews | Sam Atkins | |
2023-02-19 | LibWeb: Port Selector to new Strings | Sam Atkins | |
Also use `Infra::is_ascii_case_insensitive_match()` in some appropriate places, after checking the specs. | |||
2023-02-19 | LibWeb: Port FontFace to new Strings | Sam Atkins | |
2023-02-19 | LibWeb: Port GeneralEnclosed to new Strings | Sam Atkins | |
2023-02-19 | LibWeb: Use is_ascii_case_insensitive_match() where the spec says to | Sam Atkins | |
2023-02-18 | LibWeb: Make factory method of CSS::ResolvedCSSStyleDeclaration fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::StyleSheetList fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::Screen fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::MediaQueryListEvent fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSSupportsRule fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::MediaQueryList fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::MediaList fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSStyleSheet fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSStyleRule fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory methods of CSS::CSSStyleDeclaration fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory methods of CSS::CSSRuleList fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSMediaRule fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSImportRule fallible | Kenneth Myhra | |
2023-02-18 | LibWeb: Make factory method of CSS::CSSFontFaceRule fallible | Kenneth Myhra | |
2023-02-17 | LibWeb: Always move (Nonnull)RefPtr parameters into StyleValues | MacDue | |
This is done for consistency rather than any performance concerns. | |||
2023-02-17 | LibWeb: Use default equality operators for StyleValues | MacDue | |
This removes a load of manually implemented equality operators. This is done with a little pattern where all properties of a StyleValue are placed inside a Properties member struct, with a defaulted equality operator. This is then used to do the actual StyleValue compare. There is also a CTRP class to avoid manually implementing the virtual operator==()s for all StyleValues. | |||
2023-02-17 | LibWeb: Use default equality operators for StyleValue helper structs | MacDue | |
Co-authored-by: kleines Filmröllchen <filmroellchen@serenityos.org> | |||
2023-02-17 | AK+LibWeb: Implement Variant equality operator | kleines Filmröllchen | |
And make use of it for CSS StyleValues. | |||
2023-02-15 | LibWeb: Port CSS/Serialize.{h,cpp} to new Strings, and propagate errors | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::MediaQuery to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::Supports to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::UnicodeRange to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Use StringView in CSS::PreferredColorScheme | Sam Atkins | |
This doesn't need to hold the string data. | |||
2023-02-15 | LibWeb: Port CSS::Display to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::Parser::Rule to new Strings | Sam Atkins | |
`Rule::to_deprecated_string()` and `DeclarationOrAtRule::to_deprecated_string()` are not used anywhere, so we can just delete them. | |||
2023-02-15 | LibWeb: Port CSS::Parser::Declaration to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::Parser::ComponentValue to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::Parser::Function to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port CSS::Parser::Block to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Port ComputedValues to new Strings | Sam Atkins | |
2023-02-15 | LibWeb: Remove unused includes for DeprecatedString | Sam Atkins | |
Missed these before, oops. | |||
2023-02-15 | LibWeb: Port CSS Tokenizer to new Strings | Sam Atkins | |
Specifically, this uses FlyString, because the data gets held long-term as a FlyString anyway. | |||
2023-02-15 | AK+Tests+LibWeb: Make `URL::complete_url()` take a StringView | Sam Atkins | |
All it does is pass this to `URLParser::parse()` which takes a StringView, so we might as well take one here too. | |||
2023-02-15 | LibWeb: Construct CSS Tokenizer and Parser with a StringView encoding | Sam Atkins | |
This doesn't need to be a full (Deprecated)String, so let's not force it to be. | |||
2023-02-13 | LibWeb: Convert CSS Token::to_debug_string() to ::to_string() :^) | Sam Atkins | |
Using from_utf8_short_string() for all cases that are <= 3 bytes long. Which is almost all of the static ones. | |||
2023-02-13 | LibWeb: Convert CSS Token/ComponentValue::to_debug_string() to String | Sam Atkins | |
These are only used for debugging, so I've decided that logging the ErrorOr<String> itself is fine instead of trying to handle that error more gracefully in those cases. If you're getting OOM trying to debug log things, you have bigger problems. | |||
2023-02-13 | LibWeb: Convert CSS Token value to new FlyString | Sam Atkins | |
2023-02-13 | LibWeb: Return StringViews from CSS Token bracket-string getters | Sam Atkins | |
These don't need to be full Strings, so let's be lightweight. | |||
2023-02-12 | LibWeb: Re-implement checkbox painting using the UA stylesheet | Linus Groh | |
The checkbox provided by ClassicStylePainter is not scaling-aware and generally unflexible, instead use the UA default stylesheet with a handful of properties, the same way we already style buttons and text inputs. Thanks to Xexxa for the nice checkmark image! Co-Authored-By: Xexxa <93391300+Xexxa@users.noreply.github.com> | |||
2023-02-08 | Everywhere: Use ReadonlySpan<T> instead of Span<T const> | MacDue | |