1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibWeb: Port Selector to new Strings

Also use `Infra::is_ascii_case_insensitive_match()` in some appropriate
places, after checking the specs.
This commit is contained in:
Sam Atkins 2023-02-18 15:42:55 +00:00 committed by Linus Groh
parent c2f0b20d6b
commit 13d2111b74
Notes: sideshowbarker 2024-07-17 07:16:27 +09:00
6 changed files with 105 additions and 105 deletions

View file

@ -51,7 +51,7 @@ DeprecatedString CSSStyleRule::serialized() const
// 1. Let s initially be the result of performing serialize a group of selectors on the rules associated selectors,
// followed by the string " {", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B).
builder.append(serialize_a_group_of_selectors(selectors()));
builder.append(serialize_a_group_of_selectors(selectors()).release_value_but_fixme_should_propagate_errors());
builder.append(" {"sv);
// 2. Let decls be the result of performing serialize a CSS declaration block on the rules associated declarations, or null if there are no such declarations.
@ -92,7 +92,7 @@ DeprecatedString CSSStyleRule::serialized() const
DeprecatedString CSSStyleRule::selector_text() const
{
// The selectorText attribute, on getting, must return the result of serializing the associated group of selectors.
return serialize_a_group_of_selectors(selectors());
return serialize_a_group_of_selectors(selectors()).release_value_but_fixme_should_propagate_errors().to_deprecated_string();
}
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext