mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Port WebGLRenderingContext IDL from DeprecatedString to String
This commit is contained in:
committed by
Andrew Kaster
parent
cf733d309e
commit
e8d592ded2
@@ -119,18 +119,18 @@ bool WebGLRenderingContextBase::is_context_lost() const
|
||||
return m_context_lost;
|
||||
}
|
||||
|
||||
Optional<Vector<DeprecatedString>> WebGLRenderingContextBase::get_supported_extensions() const
|
||||
Optional<Vector<String>> WebGLRenderingContextBase::get_supported_extensions() const
|
||||
{
|
||||
if (m_context_lost)
|
||||
return Optional<Vector<DeprecatedString>> {};
|
||||
return Optional<Vector<String>> {};
|
||||
|
||||
dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_supported_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)
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user