mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:14:58 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -49,7 +49,7 @@ void WindowEnvironmentSettingsObject::setup(AK::URL const& creation_url, Nonnull
|
|||
settings_object->target_browsing_context = reserved_environment->target_browsing_context;
|
||||
|
||||
// 2. Set reservedEnvironment's id to the empty string.
|
||||
reserved_environment->id = String::empty();
|
||||
reserved_environment->id = DeprecatedString::empty();
|
||||
}
|
||||
|
||||
// 5. Otherwise, ...
|
||||
|
@ -58,7 +58,7 @@ void WindowEnvironmentSettingsObject::setup(AK::URL const& creation_url, Nonnull
|
|||
// settings object's target browsing context to null,
|
||||
// and settings object's active service worker to null.
|
||||
static i64 next_id = 1;
|
||||
settings_object->id = String::number(next_id++);
|
||||
settings_object->id = DeprecatedString::number(next_id++);
|
||||
settings_object->target_browsing_context = nullptr;
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ JS::GCPtr<DOM::Document> WindowEnvironmentSettingsObject::responsible_document()
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#script-settings-for-window-objects:api-url-character-encoding
|
||||
String WindowEnvironmentSettingsObject::api_url_character_encoding()
|
||||
DeprecatedString WindowEnvironmentSettingsObject::api_url_character_encoding()
|
||||
{
|
||||
// Return the current character encoding of window's associated Document.
|
||||
return m_window->associated_document().encoding_or_default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue