Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1/*
2 * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <LibJS/Runtime/Realm.h>
8#include <LibWeb/Bindings/Intrinsics.h>
9#include <LibWeb/Bindings/WebGLCompressedTextureS3tcSrgbPrototype.h>
10#include <LibWeb/WebGL/Extensions/WebGLCompressedTextureS3tcSrgb.h>
11#include <LibWeb/WebGL/OpenGLContext.h>
12#include <LibWeb/WebGL/WebGLRenderingContextBase.h>
…lines 13–21 unchanged (9 lines)
22
23WebGLCompressedTextureS3tcSrgb::WebGLCompressedTextureS3tcSrgb(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
24 : PlatformObject(realm)
25 , m_context(context)
26{
27 m_context->context().request_extension("GL_EXT_texture_compression_s3tc_srgb");
28}
29
30void WebGLCompressedTextureS3tcSrgb::initialize(JS::Realm& realm)
31{
32 WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLCompressedTextureS3tcSrgb);
33 Base::initialize(realm);
34}
…lines 35–43 unchanged (9 lines)

After

1/*
2 * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <GLES2/gl2.h>
8#include <GLES2/gl2ext.h>
9
10#include <LibJS/Runtime/Realm.h>
11#include <LibWeb/Bindings/Intrinsics.h>
12#include <LibWeb/Bindings/WebGLCompressedTextureS3tcSrgbPrototype.h>
13#include <LibWeb/WebGL/Extensions/WebGLCompressedTextureS3tcSrgb.h>
14#include <LibWeb/WebGL/OpenGLContext.h>
15#include <LibWeb/WebGL/WebGLRenderingContextBase.h>
…lines 16–25 unchanged (10 lines)
26WebGLCompressedTextureS3tcSrgb::WebGLCompressedTextureS3tcSrgb(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
27 : PlatformObject(realm)
28 , m_context(context)
29{
30 m_context->context().request_extension("GL_EXT_texture_compression_s3tc_srgb");
31
32 m_context->enable_compressed_texture_format(GL_COMPRESSED_SRGB_S3TC_DXT1_EXT);
33 m_context->enable_compressed_texture_format(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT);
34 m_context->enable_compressed_texture_format(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT);
35 m_context->enable_compressed_texture_format(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT);
36}
37
38void WebGLCompressedTextureS3tcSrgb::initialize(JS::Realm& realm)
39{
40 WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLCompressedTextureS3tcSrgb);
41 Base::initialize(realm);
…lines 42–51 unchanged (10 lines)

Before

translation_unit
comment "/*\n * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>\n *\n"...
preproc_include
#include "#include"
system_lib_string "<LibJS/Runtime/Realm.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/Intrinsics.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/WebGLCompressedTextureS3tcSrgbPrototype.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/Extensions/WebGLCompressedTextureS3tcSrgb.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/OpenGLContext.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/WebGLRenderingContextBase.h>"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "Web"
:: "::"
nested_namespace_specifier
namespace_identifier "WebGL"
:: "::"
namespace_identifier "Extensions"
declaration_list
{ "{"
expression_statement
call_expression
identifier "GC_DEFINE_ALLOCATOR"
argument_list
( "("
identifier "WebGLCompressedTextureS3tcSrgb"
) ")"
; ";"
function_definition (+72 nodes collapsed)
function_definition
function_declarator (+29 nodes collapsed)
field_initializer_list
: ":"
field_initializer
field_identifier "PlatformObject"
argument_list
( "("
identifier "realm"
) ")"
, ","
field_initializer
field_identifier "m_context"
argument_list
( "("
identifier "context"
) ")"
compound_statement
{ "{"
expression_statement (+21 nodes collapsed)
} "}"
function_definition (+40 nodes collapsed)
function_definition (+40 nodes collapsed)
} "}"

After

translation_unit
comment "/*\n * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>\n *\n"...
preproc_include
#include "#include"
system_lib_string "<GLES2/gl2.h>"
preproc_include
#include "#include"
system_lib_string "<GLES2/gl2ext.h>"
preproc_include
#include "#include"
system_lib_string "<LibJS/Runtime/Realm.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/Intrinsics.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/WebGLCompressedTextureS3tcSrgbPrototype.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/Extensions/WebGLCompressedTextureS3tcSrgb.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/OpenGLContext.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/WebGL/WebGLRenderingContextBase.h>"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "Web"
:: "::"
nested_namespace_specifier
namespace_identifier "WebGL"
:: "::"
namespace_identifier "Extensions"
declaration_list
{ "{"
expression_statement
call_expression
identifier "GC_DEFINE_ALLOCATOR"
argument_list
( "("
identifier "WebGLCompressedTextureS3tcSrgb"
) ")"
; ";"
function_definition (+72 nodes collapsed)
function_definition
function_declarator (+29 nodes collapsed)
field_initializer_list
: ":"
field_initializer
field_identifier "PlatformObject"
argument_list
( "("
identifier "realm"
) ")"
, ","
field_initializer
field_identifier "m_context"
argument_list
( "("
identifier "context"
) ")"
compound_statement
{ "{"
expression_statement (+21 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "m_context"
-> "->"
field_identifier "enable_compressed_texture_format"
argument_list
( "("
identifier "GL_COMPRESSED_SRGB_S3TC_DXT1_EXT"
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "m_context"
-> "->"
field_identifier "enable_compressed_texture_format"
argument_list
( "("
identifier "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "m_context"
-> "->"
field_identifier "enable_compressed_texture_format"
argument_list
( "("
identifier "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "m_context"
-> "->"
field_identifier "enable_compressed_texture_format"
argument_list
( "("
identifier "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"
) ")"
; ";"
} "}"
function_definition (+40 nodes collapsed)
function_definition (+40 nodes collapsed)
} "}"