mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
committed by
Andreas Kling
parent
6e19ab2bbc
commit
57dc179b1f
@@ -275,7 +275,7 @@ DeprecatedString Selector::SimpleSelector::serialize() const
|
||||
dbgln("FIXME: Unsupported simple selector serialization for type {}", to_underlying(type));
|
||||
break;
|
||||
}
|
||||
return s.to_string();
|
||||
return s.to_deprecated_string();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#serialize-a-selector
|
||||
@@ -333,7 +333,7 @@ DeprecatedString Selector::serialize() const
|
||||
}
|
||||
}
|
||||
|
||||
return s.to_string();
|
||||
return s.to_deprecated_string();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#serialize-a-group-of-selectors
|
||||
@@ -342,7 +342,7 @@ DeprecatedString serialize_a_group_of_selectors(NonnullRefPtrVector<Selector> co
|
||||
// To serialize a group of selectors serialize each selector in the group of selectors and then serialize a comma-separated list of these serializations.
|
||||
StringBuilder builder;
|
||||
builder.join(", "sv, selectors);
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
Optional<Selector::PseudoElement> pseudo_element_from_string(StringView name)
|
||||
|
||||
Reference in New Issue
Block a user