From 11ddc88ed703f4ef6272888ee772ff2d069ba01d Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 5 Dec 2024 16:06:19 +0100 Subject: [PATCH] LibWeb/WebGL: Remove FIXME from isContextLost() IDL method Currently this function always returns false, but that's better than not having it at all. --- Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl | 2 +- .../CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl b/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl index 3939c58e746..7e159e979c0 100644 --- a/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl +++ b/Libraries/LibWeb/WebGL/WebGLRenderingContextBase.idl @@ -39,7 +39,7 @@ interface mixin WebGLRenderingContextBase { [FIXME] attribute PredefinedColorSpace unpackColorSpace; WebGLContextAttributes? getContextAttributes(); - [FIXME] boolean isContextLost(); + boolean isContextLost(); sequence? getSupportedExtensions(); object? getExtension(DOMString name); diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp index 1317bedba9c..2c015afbd3c 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWebGLRenderingContext.cpp @@ -345,7 +345,7 @@ public: continue; } - if (function.name == "getSupportedExtensions"sv || function.name == "getExtension"sv || function.name == "getContextAttributes"sv) { + if (function.name == "getSupportedExtensions"sv || function.name == "getExtension"sv || function.name == "getContextAttributes"sv || function.name == "isContextLost"sv) { // Implemented in WebGLRenderingContext continue; }