mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 15:58:47 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/alimpfard
Commit: 5e1499d104
Pull-request: https://github.com/SerenityOS/serenity/pull/22325
1615 changed files with 10257 additions and 10257 deletions
|
@ -170,7 +170,7 @@ void HTMLObjectElement::resource_did_load()
|
|||
// 4.8. Determine the resource type, as follows:
|
||||
|
||||
// 1. Let the resource type be unknown.
|
||||
Optional<DeprecatedString> resource_type;
|
||||
Optional<ByteString> resource_type;
|
||||
|
||||
// FIXME: 2. If the user agent is configured to strictly obey Content-Type headers for this resource, and the resource has associated Content-Type metadata, then let the resource type be the type specified in the resource's Content-Type metadata, and jump to the step below labeled handler.
|
||||
// FIXME: 3. If there is a type attribute present on the object element, and that attribute's value is not a type that the user agent supports, but it is a type that a plugin supports, then let the resource type be the type specified in that type attribute, and jump to the step below labeled handler.
|
||||
|
@ -203,7 +203,7 @@ void HTMLObjectElement::resource_did_load()
|
|||
}
|
||||
// * Otherwise, if the resource does not have associated Content-Type metadata
|
||||
else {
|
||||
Optional<DeprecatedString> tentative_type;
|
||||
Optional<ByteString> tentative_type;
|
||||
|
||||
// 1. If there is a type attribute present on the object element, then let the tentative type be the type specified in that type attribute.
|
||||
// Otherwise, let tentative type be the computed type of the resource.
|
||||
|
@ -235,7 +235,7 @@ static bool is_xml_mime_type(StringView resource_type)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element:plugin-11
|
||||
void HTMLObjectElement::run_object_representation_handler_steps(Optional<DeprecatedString> resource_type)
|
||||
void HTMLObjectElement::run_object_representation_handler_steps(Optional<ByteString> resource_type)
|
||||
{
|
||||
// 4.9. Handler: Handle the content as given by the first of the following cases that matches:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue