Pārlūkot izejas kodu

LibWeb: Port WebGLRenderingContext IDL from DeprecatedString to String

Shannon Booth 1 gadu atpakaļ
vecāks
revīzija
e8d592ded2

+ 1 - 1
Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl

@@ -1,6 +1,6 @@
 #import <WebGL/WebGLRenderingContextBase.idl>
 #import <WebGL/WebGLRenderingContextBase.idl>
 
 
-[Exposed=(Window,Worker)]
+[Exposed=(Window,Worker), UseNewAKString]
 interface WebGLRenderingContext {
 interface WebGLRenderingContext {
 };
 };
 
 

+ 4 - 4
Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.cpp

@@ -119,18 +119,18 @@ bool WebGLRenderingContextBase::is_context_lost() const
     return m_context_lost;
     return m_context_lost;
 }
 }
 
 
-Optional<Vector<DeprecatedString>> WebGLRenderingContextBase::get_supported_extensions() const
+Optional<Vector<String>> WebGLRenderingContextBase::get_supported_extensions() const
 {
 {
     if (m_context_lost)
     if (m_context_lost)
-        return Optional<Vector<DeprecatedString>> {};
+        return Optional<Vector<String>> {};
 
 
     dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_supported_extensions()");
     dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_supported_extensions()");
 
 
     // FIXME: We don't currently support any extensions.
     // FIXME: We don't currently support any extensions.
-    return Vector<DeprecatedString> {};
+    return Vector<String> {};
 }
 }
 
 
-JS::Object* WebGLRenderingContextBase::get_extension(DeprecatedString const& name) const
+JS::Object* WebGLRenderingContextBase::get_extension(String const& name) const
 {
 {
     if (m_context_lost)
     if (m_context_lost)
         return nullptr;
         return nullptr;

+ 2 - 2
Userland/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.h

@@ -29,8 +29,8 @@ public:
 
 
     bool is_context_lost() const;
     bool is_context_lost() const;
 
 
-    Optional<Vector<DeprecatedString>> get_supported_extensions() const;
-    JS::Object* get_extension(DeprecatedString const& name) const;
+    Optional<Vector<String>> get_supported_extensions() const;
+    JS::Object* get_extension(String const& name) const;
 
 
     void active_texture(GLenum texture);
     void active_texture(GLenum texture);