Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 2346853002: Add a DOM.getLayoutTreeNodes devtools command (Closed)

Created:
4 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 2 months ago
Reviewers:
esprehn, Sami, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a DOM.getLayoutTreeNodes devtools command This command will help Headless API users understand the layout of the page. BUG=546953 Committed: https://crrev.com/8a9aad4ec3fcf29e289898802b7f2fd43be83398 Cr-Commit-Position: refs/heads/master@{#423623}

Patch Set 1 #

Patch Set 2 : Add missing files #

Patch Set 3 : Pretty print #

Total comments: 12

Patch Set 4 : Changes for Pavel #

Total comments: 4

Patch Set 5 : Rename to DOM.getLayoutTreeNodes #

Patch Set 6 : Canonicalize node ids in the layout test. #

Patch Set 7 : Try specify a font size & family to make mac & pc pass #

Patch Set 8 : Instead lets have mac and windows expects #

Patch Set 9 : Try the Ahem font #

Patch Set 10 : Make it work with iframes #

Total comments: 12

Patch Set 11 : Changes for Elliott #

Total comments: 4

Patch Set 12 : Documentation nits #

Patch Set 13 : Rebased #

Patch Set 14 : Rebased #

Patch Set 15 : Fix iframe font path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+886 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes.html View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +671 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/simple-iframe.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +83 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 10 11 12 13 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (55 generated)
alex clarke (OOO till 29th)
PTAL
4 years, 3 months ago (2016-09-15 16:26:39 UTC) #4
pfeldman
https://codereview.chromium.org/2346853002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2346853002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode534 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:534: std::unique_ptr<protocol::DOM::Rect> getRectForFloatRect(const FloatRect& rect) We call these build*. Also, ...
4 years, 3 months ago (2016-09-16 00:59:35 UTC) #7
alex clarke (OOO till 29th)
PTAL. PS any idea why I'm getting different node IDs for mac? https://codereview.chromium.org/2346853002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp ...
4 years, 3 months ago (2016-09-16 10:23:37 UTC) #8
Sami
https://codereview.chromium.org/2346853002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html (right): https://codereview.chromium.org/2346853002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html#newcode35 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html:35: <div class="class5 class6"></div> As one more sanity check could ...
4 years, 3 months ago (2016-09-16 12:31:59 UTC) #13
pfeldman
On 2016/09/16 12:31:59, Sami (OoO) wrote: > https://codereview.chromium.org/2346853002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html > File > third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html > (right): > ...
4 years, 3 months ago (2016-09-19 22:58:23 UTC) #14
pfeldman
4 years, 3 months ago (2016-09-19 22:58:29 UTC) #15
alex clarke (OOO till 29th)
On 2016/09/19 22:58:23, pfeldman wrote: > On 2016/09/16 12:31:59, Sami (OoO) wrote: > > > ...
4 years, 3 months ago (2016-09-20 10:02:19 UTC) #16
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2346853002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html (right): https://codereview.chromium.org/2346853002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html#newcode35 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html:35: <div class="class5 class6"></div> On 2016/09/16 12:31:59, Sami (OoO) ...
4 years, 3 months ago (2016-09-20 10:59:00 UTC) #18
pfeldman
But you should be able to get everything in one go - there was a ...
4 years, 3 months ago (2016-09-20 23:09:21 UTC) #25
alex clarke (OOO till 29th)
On 2016/09/20 23:09:21, pfeldman wrote: > But you should be able to get everything in ...
4 years, 3 months ago (2016-09-21 10:14:29 UTC) #26
pfeldman
Right, but we already suffer from these when working with DOM, so working it around ...
4 years, 3 months ago (2016-09-21 20:31:26 UTC) #35
alex clarke (OOO till 29th)
4 years, 2 months ago (2016-09-27 16:11:13 UTC) #41
esprehn
We can do this API, but I don't think we want to support the shape ...
4 years, 2 months ago (2016-09-28 04:02:49 UTC) #46
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2346853002/diff/180001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2346853002/diff/180001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode151 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:151: FloatRect buildAbsoluteBoundingBox(LayoutObject* layoutObject) On 2016/09/28 04:02:49, esprehn wrote: ...
4 years, 2 months ago (2016-09-28 17:15:20 UTC) #48
alex clarke (OOO till 29th)
ping :)
4 years, 2 months ago (2016-09-30 09:03:05 UTC) #52
Sami
lgtm. https://codereview.chromium.org/2346853002/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2346853002/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2071 third_party/WebKit/Source/core/inspector/browser_protocol.json:2071: "description": "Details of post layout rendered text positions. ...
4 years, 2 months ago (2016-09-30 10:05:23 UTC) #53
alex clarke (OOO till 29th)
https://codereview.chromium.org/2346853002/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2346853002/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2071 third_party/WebKit/Source/core/inspector/browser_protocol.json:2071: "description": "Details of post layout rendered text positions. Note ...
4 years, 2 months ago (2016-09-30 10:27:54 UTC) #54
pfeldman
lgtm
4 years, 2 months ago (2016-10-04 20:05:00 UTC) #59
alex clarke (OOO till 29th)
Thanks all!
4 years, 2 months ago (2016-10-05 09:06:23 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2346853002/220001
4 years, 2 months ago (2016-10-05 09:06:51 UTC) #63
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-05 10:28:13 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2346853002/240001
4 years, 2 months ago (2016-10-05 17:59:50 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/306095)
4 years, 2 months ago (2016-10-05 19:17:40 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2346853002/280001
4 years, 2 months ago (2016-10-06 17:16:27 UTC) #77
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 2 months ago (2016-10-06 19:15:31 UTC) #79
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 19:17:56 UTC) #81
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/8a9aad4ec3fcf29e289898802b7f2fd43be83398
Cr-Commit-Position: refs/heads/master@{#423623}

Powered by Google App Engine
This is Rietveld 408576698