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–10 unchanged (10 lines)
11
12namespace Web::Layout {
13
14GC_DEFINE_ALLOCATOR(CheckBox);
15
16CheckBox::CheckBox(DOM::Document& document, HTML::HTMLInputElement& element, GC::Ref<CSS::ComputedProperties> style)
17 : FormAssociatedLabelableNode(document, element, move(style))
18{
19}
20
21CheckBox::~CheckBox() = default;
22
23GC::Ptr<Painting::Paintable> CheckBox::create_paintable() const
…lines 24–29 unchanged (6 lines)

After

…lines 1–10 unchanged (10 lines)
11
12namespace Web::Layout {
13
14GC_DEFINE_ALLOCATOR(CheckBox);
15
16CheckBox::CheckBox(DOM::Document& document, HTML::HTMLInputElement& element, GC::Ref<CSS::ComputedProperties> style)
17 : ReplacedBox(document, element, move(style))
18{
19}
20
21CheckBox::~CheckBox() = default;
22
23GC::Ptr<Painting::Paintable> CheckBox::create_paintable() const
…lines 24–29 unchanged (6 lines)

Before

translation_unit
comment "/*\n * Copyright (c) 2020-2022, Andreas Kling <andreas@ladybi"...
preproc_include
#include "#include"
system_lib_string "<LibWeb/DOM/Document.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/HTML/HTMLInputElement.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Layout/CheckBox.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Painting/CheckBoxPaintable.h>"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "Web"
:: "::"
namespace_identifier "Layout"
declaration_list
{ "{"
expression_statement
call_expression
identifier "GC_DEFINE_ALLOCATOR"
argument_list
( "("
identifier "CheckBox"
) ")"
; ";"
function_definition
function_declarator (+41 nodes collapsed)
field_initializer_list
: ":"
field_initializer
field_identifier "FormAssociatedLabelableNode"
argument_list
( "("
identifier "document"
, ","
identifier "element"
, ","
call_expression
identifier "move"
argument_list
( "("
identifier "style"
) ")"
) ")"
compound_statement
{ "{"
} "}"
function_definition
function_declarator
qualified_identifier
namespace_identifier "CheckBox"
:: "::"
destructor_name
~ "~"
identifier "CheckBox"
parameter_list
( "("
) ")"
default_method_clause
= "="
default "default"
; ";"
function_definition (+44 nodes collapsed)
} "}"

After

translation_unit
comment "/*\n * Copyright (c) 2020-2022, Andreas Kling <andreas@ladybi"...
preproc_include
#include "#include"
system_lib_string "<LibWeb/DOM/Document.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/HTML/HTMLInputElement.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Layout/CheckBox.h>"
preproc_include
#include "#include"
system_lib_string "<LibWeb/Painting/CheckBoxPaintable.h>"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "Web"
:: "::"
namespace_identifier "Layout"
declaration_list
{ "{"
expression_statement
call_expression
identifier "GC_DEFINE_ALLOCATOR"
argument_list
( "("
identifier "CheckBox"
) ")"
; ";"
function_definition
function_declarator (+41 nodes collapsed)
field_initializer_list
: ":"
field_initializer
field_identifier "ReplacedBox"
argument_list
( "("
identifier "document"
, ","
identifier "element"
, ","
call_expression
identifier "move"
argument_list
( "("
identifier "style"
) ")"
) ")"
compound_statement
{ "{"
} "}"
function_definition
function_declarator
qualified_identifier
namespace_identifier "CheckBox"
:: "::"
destructor_name
~ "~"
identifier "CheckBox"
parameter_list
( "("
) ")"
default_method_clause
= "="
default "default"
; ";"
function_definition (+44 nodes collapsed)
} "}"