|
[devtools] Add DOMSnapshot domain for dom+layout+style snapshots.
Introduces a new DOMSnapshot.getSnapshot command, which returns a
flattened dom tree together with layout objects and computed styles.
By combining all trees in one command's result, we avoid the potential
for inconsistencies between them.
The patch also removes the unused DomTreeExtractor wrapper in
headless/. In a subsequent patch, we'll further remove the now obsolete
FlatDomTreeExtractor and CSS.getLayoutTreeAndStyles.
BUG= 546953
Review-Url: https://codereview.chromium.org/2882193002
Cr-Commit-Position: refs/heads/master@{#478513}
Committed: https://chromium.googlesource.com/chromium/src/+/5a101abbe0fd58cfa3fdadfeacde86c8dd108ec7
Total comments: 4
Total comments: 3
Total comments: 21
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+3602 lines, -1157 lines) |
Patch |
|
M |
content/browser/devtools/protocol/schema_handler.cc
|
View
|
1
2
3
|
1 chunk |
+9 lines, -31 lines |
0 comments
|
Download
|
|
M |
headless/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_devtools_client_impl.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_devtools_client_impl.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
headless/lib/headless_devtools_client_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+1052 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/public/headless_devtools_client.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
D |
headless/public/util/dom_tree_extractor.h
|
View
|
1
2
|
1 chunk |
+0 lines, -90 lines |
0 comments
|
Download
|
|
D |
headless/public/util/dom_tree_extractor.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -109 lines |
0 comments
|
Download
|
|
D |
headless/public/util/dom_tree_extractor_browsertest.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -918 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/FlagExpectations/root-layer-scrolls
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot.html
|
View
|
1
2
3
4
5
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1904 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.h
|
View
|
1
2
3
4
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+380 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/browser_protocol.json
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+75 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/inspector/inspector_protocol_config.json
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 58 (35 generated)
|