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

Issue 2015303002: Show related nodes as expandable sub-tree unless there is only one and no attribute value (Closed)

Created:
4 years, 6 months ago by aboxhall
Modified:
4 years, 6 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, aboxhall, aboxhall+watch_chromium.org, nektar+watch_chromium.org, lushnikov+blink_chromium.org, yuzo+watch_chromium.org, pfeldman+blink_chromium.org, nektarios, je_julie, apavlov+blink_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, dmazzoni, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show related nodes as expandable sub-tree unless there is only one and no attribute value BUG=470311 Committed: https://crrev.com/475bda36f7624035cc7112e6ac7989ca52e722e6 Cr-Commit-Position: refs/heads/master@{#396945}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -15 lines) Patch
M third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js View 1 4 chunks +20 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
aboxhall
An even more minor tweak. See https://bugs.chromium.org/p/chromium/issues/detail?id=470311#c20 for screenshot.
4 years, 6 months ago (2016-05-27 18:32:54 UTC) #2
dgozman
lgtm https://codereview.chromium.org/2015303002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js File third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js (right): https://codereview.chromium.org/2015303002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js#newcode224 third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js:224: if (!value.value || value.relatedNodes.length === 0) Shouldn't this ...
4 years, 6 months ago (2016-05-31 19:27:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015303002/20001
4 years, 6 months ago (2016-05-31 21:26:53 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-05-31 22:04:23 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/475bda36f7624035cc7112e6ac7989ca52e722e6 Cr-Commit-Position: refs/heads/master@{#396945}
4 years, 6 months ago (2016-05-31 22:05:19 UTC) #9
aboxhall
4 years, 6 months ago (2016-06-01 17:55:11 UTC) #10
Message was sent while issue was closed.
Oops, forgot to send comments :|

https://codereview.chromium.org/2015303002/diff/1/third_party/WebKit/Source/d...
File
third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
(right):

https://codereview.chromium.org/2015303002/diff/1/third_party/WebKit/Source/d...
third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js:224:
if (!value.value || value.relatedNodes.length === 0)
On 2016/05/31 19:27:23, dgozman wrote:
> Shouldn't this be && instead of || ?

I probably don't need to check the length of relatedNodes here at all, actually.
We'll only want to call createSimpleValueElement if value.value exists,
regardless of the length of relatedNodes.

https://codereview.chromium.org/2015303002/diff/1/third_party/WebKit/Source/d...
third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js:266:
if (value.relatedNodes.length === 1 && !("value" in value)) {
On 2016/05/31 19:27:23, dgozman wrote:
> !value.value

Done.

Powered by Google App Engine
This is Rietveld 408576698