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

…lines 1–12 unchanged (12 lines)
13
14class EXTColorBufferFloat : public Bindings::PlatformObject {
15 WEB_PLATFORM_OBJECT(EXTColorBufferFloat, Bindings::PlatformObject);
16 GC_DECLARE_ALLOCATOR(EXTColorBufferFloat);
17
18public:
19 static JS::ThrowCompletionOr<GC::Ptr<EXTColorBufferFloat>> create(JS::Realm&, GC::Ref<WebGL2RenderingContext>);
20
21protected:
22 void initialize(JS::Realm&) override;
23 void visit_edges(Visitor&) override;
24
25private:
26 EXTColorBufferFloat(JS::Realm&, GC::Ref<WebGL2RenderingContext>);
27
28 GC::Ref<WebGL2RenderingContext> m_context;
29};
30
31}
32

After

…lines 1–12 unchanged (12 lines)
13
14class EXTColorBufferFloat : public Bindings::PlatformObject {
15 WEB_PLATFORM_OBJECT(EXTColorBufferFloat, Bindings::PlatformObject);
16 GC_DECLARE_ALLOCATOR(EXTColorBufferFloat);
17
18public:
19 static JS::ThrowCompletionOr<GC::Ptr<EXTColorBufferFloat>> create(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
20
21protected:
22 void initialize(JS::Realm&) override;
23 void visit_edges(Visitor&) override;
24
25private:
26 EXTColorBufferFloat(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
27
28 GC::Ref<WebGLRenderingContextBase> m_context;
29};
30
31}
32

Before

translation_unit
comment "/*\n * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>\n *\n"...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/PlatformObject.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Forward.h>"
function_definition
type_identifier "namespace"
ERROR
identifier "Web"
: ":"
: ":"
identifier "WebGL"
: ":"
: ":"
identifier "Extensions"
compound_statement
{ "{"
function_definition
type_identifier "class"
identifier "EXTColorBufferFloat"
ERROR
: ":"
identifier "public"
identifier "Bindings"
: ":"
: ":"
identifier "PlatformObject"
compound_statement
{ "{"
expression_statement
call_expression
identifier "WEB_PLATFORM_OBJECT"
argument_list
( "("
identifier "EXTColorBufferFloat"
, ","
ERROR
identifier "Bindings"
: ":"
: ":"
identifier "PlatformObject"
) ")"
; ";"
expression_statement
call_expression
identifier "GC_DECLARE_ALLOCATOR"
argument_list
( "("
identifier "EXTColorBufferFloat"
) ")"
; ";"
labeled_statement
statement_identifier "public"
ERROR
: ":"
storage_class_specifier
static "static"
type_identifier "JS"
: ":"
: ":"
binary_expression
identifier "ThrowCompletionOr"
< "<"
identifier "GC"
: ":"
: ":"
expression_statement
binary_expression
identifier "Ptr"
< "<"
binary_expression
identifier "EXTColorBufferFloat"
>> ">>"
call_expression
identifier "create"
argument_list
( "("
ERROR
identifier "JS"
: ":"
: ":"
binary_expression
identifier "Realm"
& "&"
ERROR
, ","
identifier "GC"
: ":"
: ":"
binary_expression
identifier "Ref"
< "<"
identifier "WebGL2RenderingContext"
> ">"
) ")"
; ";"
labeled_statement (+21 nodes collapsed)
ERROR
primitive_type "void"
function_declarator
identifier "visit_edges"
parameter_list
( "("
identifier "Visitor"
ERROR
& "&"
) ")"
type_identifier "override"
expression_statement
; ";"
labeled_statement
statement_identifier "private"
: ":"
ERROR
comma_expression
identifier "EXTColorBufferFloat"
ERROR
( "("
type_descriptor
type_identifier "JS"
: ":"
: ":"
identifier "Realm"
& "&"
, ","
identifier "GC"
: ":"
: ":"
expression_statement
binary_expression
identifier "Ref"
< "<"
identifier "WebGL2RenderingContext"
ERROR
> ">"
) ")"
; ";"
labeled_statement
statement_identifier "GC"
: ":"
ERROR
: ":"
expression_statement
binary_expression
binary_expression
identifier "Ref"
< "<"
identifier "WebGL2RenderingContext"
> ">"
identifier "m_context"
; ";"
} "}"
expression_statement
; ";"
} "}"

After

translation_unit
comment "/*\n * Copyright (c) 2025, Luke Wilde <luke@ladybird.org>\n *\n"...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Bindings/PlatformObject.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Forward.h>"
function_definition
type_identifier "namespace"
ERROR
identifier "Web"
: ":"
: ":"
identifier "WebGL"
: ":"
: ":"
identifier "Extensions"
compound_statement
{ "{"
function_definition
type_identifier "class"
identifier "EXTColorBufferFloat"
ERROR
: ":"
identifier "public"
identifier "Bindings"
: ":"
: ":"
identifier "PlatformObject"
compound_statement
{ "{"
expression_statement
call_expression
identifier "WEB_PLATFORM_OBJECT"
argument_list
( "("
identifier "EXTColorBufferFloat"
, ","
ERROR
identifier "Bindings"
: ":"
: ":"
identifier "PlatformObject"
) ")"
; ";"
expression_statement
call_expression
identifier "GC_DECLARE_ALLOCATOR"
argument_list
( "("
identifier "EXTColorBufferFloat"
) ")"
; ";"
labeled_statement
statement_identifier "public"
ERROR
: ":"
storage_class_specifier
static "static"
type_identifier "JS"
: ":"
: ":"
binary_expression
identifier "ThrowCompletionOr"
< "<"
identifier "GC"
: ":"
: ":"
expression_statement
binary_expression
identifier "Ptr"
< "<"
binary_expression
identifier "EXTColorBufferFloat"
>> ">>"
call_expression
identifier "create"
argument_list
( "("
ERROR
identifier "JS"
: ":"
: ":"
binary_expression
identifier "Realm"
& "&"
ERROR
, ","
identifier "GC"
: ":"
: ":"
binary_expression
identifier "Ref"
< "<"
identifier "WebGLRenderingContextBase"
> ">"
) ")"
; ";"
labeled_statement (+21 nodes collapsed)
ERROR
primitive_type "void"
function_declarator
identifier "visit_edges"
parameter_list
( "("
identifier "Visitor"
ERROR
& "&"
) ")"
type_identifier "override"
expression_statement
; ";"
labeled_statement
statement_identifier "private"
: ":"
ERROR
comma_expression
identifier "EXTColorBufferFloat"
ERROR
( "("
type_descriptor
type_identifier "JS"
: ":"
: ":"
identifier "Realm"
& "&"
, ","
identifier "GC"
: ":"
: ":"
expression_statement
binary_expression
identifier "Ref"
< "<"
identifier "WebGLRenderingContextBase"
ERROR
> ">"
) ")"
; ";"
labeled_statement
statement_identifier "GC"
: ":"
ERROR
: ":"
expression_statement
binary_expression
binary_expression
identifier "Ref"
< "<"
identifier "WebGLRenderingContextBase"
> ">"
identifier "m_context"
; ";"
} "}"
expression_statement
; ";"
} "}"