mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 06:52:52 +00:00
LibWeb/WebGL: Preserve original bound objects to return in getParameter
Required by https://qwasm2.m-h.org.uk, which adds a custom `name` attribute to objects it generates. It then gets some of these objects out with getParameter, and expects the `name` attribute to be there.
This commit is contained in:
parent
c067271897
commit
8e453d5069
Notes:
github-actions[bot]
2025-01-08 14:59:41 +00:00
Author: https://github.com/Lubrsi
Commit: 8e453d5069
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2943
Reviewed-by: https://github.com/kalenikaliaksandr
4 changed files with 170 additions and 4 deletions
|
@ -69,6 +69,7 @@ void WebGL2RenderingContext::initialize(JS::Realm& realm)
|
|||
void WebGL2RenderingContext::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
WebGL2RenderingContextImpl::visit_edges(visitor);
|
||||
visitor.visit(m_canvas_element);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue