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

Issue 2455613002: Fix index used to join results of DOM.getDocument and CSS.getLayoutTreeAndStyles (Closed)

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

Description

Fix index used to join results of DOM.getDocument and CSS.getLayoutTreeAndStyles I had thought the backend node id matched the output of DOM.getDocument, but it doesn't. As an added bonus I've omitted empty css style properties from the results. BUG=546953 Committed: https://crrev.com/6d803545166f33cac42f4e2a74658cf834d09b5c Cr-Commit-Position: refs/heads/master@{#428178}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Found a way to avoid the dummy value #

Patch Set 3 : Rebased #

Total comments: 4

Patch Set 4 : Fix skew between property names and values when emepty ones are skipped. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -508 lines) Patch
M headless/public/util/dom_tree_extractor.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M headless/public/util/dom_tree_extractor_browsertest.cc View 1 18 chunks +158 lines, -186 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html View 1 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes-expected.txt View 1 9 chunks +36 lines, -306 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp View 1 2 3 4 chunks +23 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
alex clarke (OOO till 29th)
PTAL :)
4 years, 1 month ago (2016-10-26 14:48:48 UTC) #4
Sami
https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html (right): https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html#newcode15 third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html:15: InspectorTest.sendCommandOrDie("DOM.getDocument", {"depth": -1}, onDocument); nit: extra space before {"depth"... ...
4 years, 1 month ago (2016-10-26 17:15:23 UTC) #9
dgozman
https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp (right): https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp#newcode2379 third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp:2379: style.append("dummy value"); On 2016/10/26 17:15:23, Sami wrote: > Would ...
4 years, 1 month ago (2016-10-26 17:24:39 UTC) #10
alex clarke (OOO till 29th)
I'll send another patch set tomorrow but a couple of quick replies for now. https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ...
4 years, 1 month ago (2016-10-26 21:18:49 UTC) #11
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html File third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html (right): https://codereview.chromium.org/2455613002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html#newcode15 third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html:15: InspectorTest.sendCommandOrDie("DOM.getDocument", {"depth": -1}, onDocument); On 2016/10/26 17:15:23, Sami ...
4 years, 1 month ago (2016-10-27 10:51:12 UTC) #13
dgozman
lgtm https://codereview.chromium.org/2455613002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp (right): https://codereview.chromium.org/2455613002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp#newcode2399 third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp:2399: .setName(cssPropertyWhitelist[i].first) Aren't these two out of sync, since ...
4 years, 1 month ago (2016-10-27 19:16:05 UTC) #21
alex clarke (OOO till 29th)
Thanks for the review! https://codereview.chromium.org/2455613002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp (right): https://codereview.chromium.org/2455613002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp#newcode2399 third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp:2399: .setName(cssPropertyWhitelist[i].first) On 2016/10/27 19:16:05, dgozman ...
4 years, 1 month ago (2016-10-27 20:51:20 UTC) #22
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/2455613002/60001
4 years, 1 month ago (2016-10-27 20:52:16 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-27 22:53:14 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 22:55:39 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6d803545166f33cac42f4e2a74658cf834d09b5c
Cr-Commit-Position: refs/heads/master@{#428178}

Powered by Google App Engine
This is Rietveld 408576698