From e8d592ded21d5feab651c79cc273a93a3b50ef7c Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 26 Aug 2023 17:32:20 +1200 Subject: [PATCH] LibWeb: Port WebGLRenderingContext IDL from DeprecatedString to String --- Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl | 2 +- .../Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp | 8 ++++---- .../Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl index f87b8d1023..e21b862dd3 100644 --- a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl +++ b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl @@ -1,6 +1,6 @@ #import -[Exposed=(Window,Worker)] +[Exposed=(Window,Worker), UseNewAKString] interface WebGLRenderingContext { }; diff --git a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp index e01a21ef31..a2fe390fda 100644 --- a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp +++ b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp @@ -119,18 +119,18 @@ bool WebGLRenderingContextBase::is_context_lost() const return m_context_lost; } -Optional> WebGLRenderingContextBase::get_supported_extensions() const +Optional> WebGLRenderingContextBase::get_supported_extensions() const { if (m_context_lost) - return Optional> {}; + return Optional> {}; dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_supported_extensions()"); // FIXME: We don't currently support any extensions. - return Vector {}; + return Vector {}; } -JS::Object* WebGLRenderingContextBase::get_extension(DeprecatedString const& name) const +JS::Object* WebGLRenderingContextBase::get_extension(String const& name) const { if (m_context_lost) return nullptr; diff --git a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h index 1bae97b660..1027923fd4 100644 --- a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h +++ b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h @@ -29,8 +29,8 @@ public: bool is_context_lost() const; - Optional> get_supported_extensions() const; - JS::Object* get_extension(DeprecatedString const& name) const; + Optional> get_supported_extensions() const; + JS::Object* get_extension(String const& name) const; void active_texture(GLenum texture);