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// Copyright (c) 2019 GitHub, Inc.
2// Use of this source code is governed by the MIT license that can be
3// found in the LICENSE file.
4
5#include "shell/browser/child_web_contents_tracker.h"
6#include "content/public/browser/web_contents_user_data.h"
7
8namespace electron {
9
10ChildWebContentsTracker::ChildWebContentsTracker(
11 content::WebContents* web_contents)
12 : content::WebContentsUserData<ChildWebContentsTracker>(*web_contents) {}
13
14ChildWebContentsTracker::~ChildWebContentsTracker() = default;
…lines 15–19 unchanged (5 lines)

After

1// Copyright (c) 2019 GitHub, Inc.
2// Use of this source code is governed by the MIT license that can be
3// found in the LICENSE file.
4
5#include "shell/browser/child_web_contents_tracker.h"
6
7#include "base/memory/scoped_refptr.h"
8#include "content/public/browser/web_contents_user_data.h"
9#include "content/public/common/referrer.h"
10#include "services/network/public/cpp/resource_request_body.h"
11#include "url/gurl.h"
12
13namespace electron {
14
15ChildWebContentsTracker::ChildWebContentsTracker(
16 content::WebContents* web_contents)
17 : content::WebContentsUserData<ChildWebContentsTracker>(*web_contents) {}
18
…lines 19–24 unchanged (6 lines)

Before

translation_unit
comment "// Copyright (c) 2019 GitHub, Inc."
comment "// Use of this source code is governed by the MIT license th"...
comment "// found in the LICENSE file."
preproc_include
#include "#include"
string_literal
" "\""
string_content "shell/browser/child_web_contents_tracker.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "content/public/browser/web_contents_user_data.h"
" "\""
namespace_definition (+68 nodes collapsed)
comment "// namespace electron"

After

translation_unit
comment "// Copyright (c) 2019 GitHub, Inc."
comment "// Use of this source code is governed by the MIT license th"...
comment "// found in the LICENSE file."
preproc_include
#include "#include"
string_literal
" "\""
string_content "shell/browser/child_web_contents_tracker.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "base/memory/scoped_refptr.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "content/public/browser/web_contents_user_data.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "content/public/common/referrer.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "services/network/public/cpp/resource_request_body.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "url/gurl.h"
" "\""
namespace_definition (+68 nodes collapsed)
comment "// namespace electron"