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

Issue 2296323002: DevTools: Add features to collect classnames from Stylesheets and DOM (Closed)

Created:
4 years, 3 months ago by ahmetemirercin
Modified:
4 years, 3 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-style_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Add features to collect classnames from Stylesheets and DOM BUG=636089 Committed: https://crrev.com/9f5d339452d3d4f76337ecb08e86227e13f15a79 Cr-Commit-Position: refs/heads/master@{#417780}

Patch Set 1 #

Total comments: 28

Patch Set 2 : DevTools: Add features to collect classnames from Stylesheets and DOM #

Total comments: 8

Patch Set 3 : DevTools: Add features to collect classnames from Stylesheets and DOM #

Total comments: 6

Patch Set 4 : DevTools: Add features to collect classnames from Stylesheets and DOM #

Total comments: 12

Patch Set 5 : DevTools: Add features to collect classnames from Stylesheets and DOM #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names-expected.txt View 1 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names-imported.css View 1 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names-expected.txt View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorStyleSheet.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp View 1 2 3 4 2 chunks +30 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 2 chunks +22 lines, -0 lines 1 comment Download

Messages

Total messages: 32 (7 generated)
ahmetemirercin
I split my previous issue (2282653002) as lushnikov suggested and this is the first part ...
4 years, 3 months ago (2016-08-31 20:52:27 UTC) #3
ahmetemirercin
4 years, 3 months ago (2016-09-01 06:27:44 UTC) #4
lushnikov
https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html File third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html (right): https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html#newcode30 third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html:30: if (a < b) isn't default comparator good enough? ...
4 years, 3 months ago (2016-09-01 20:50:36 UTC) #5
ahmetemirercin
https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp File third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp (right): https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp#newcode1327 third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp:1327: for (unsigned i = ruleList ? ruleList->length() : 0; ...
4 years, 3 months ago (2016-09-01 21:47:58 UTC) #6
lushnikov
https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp File third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp (right): https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp#newcode1327 third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp:1327: for (unsigned i = ruleList ? ruleList->length() : 0; ...
4 years, 3 months ago (2016-09-01 22:04:25 UTC) #7
ahmetemirercin
https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html File third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html (right): https://codereview.chromium.org/2296323002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html#newcode30 third_party/WebKit/LayoutTests/inspector-protocol/css/css-collect-class-names.html:30: if (a < b) On 2016/09/01 20:50:35, lushnikov wrote: ...
4 years, 3 months ago (2016-09-02 19:59:55 UTC) #8
lushnikov
https://codereview.chromium.org/2296323002/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html (right): https://codereview.chromium.org/2296323002/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html#newcode13 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html:13: InspectorTest.sendCommandOrDie("DOM.collectClassNames", { nodeId: rootNodeId }, onClassNamesCollected); could you please ...
4 years, 3 months ago (2016-09-06 17:51:39 UTC) #9
ahmetemirercin
https://codereview.chromium.org/2296323002/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html File third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html (right): https://codereview.chromium.org/2296323002/diff/20001/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html#newcode13 third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-collect-class-names.html:13: InspectorTest.sendCommandOrDie("DOM.collectClassNames", { nodeId: rootNodeId }, onClassNamesCollected); On 2016/09/06 17:51:38, ...
4 years, 3 months ago (2016-09-07 00:02:28 UTC) #10
lushnikov
Great, almost there! https://codereview.chromium.org/2296323002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2296323002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode594 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:594: for (; node; node = FlatTreeTraversal::next(*node)) ...
4 years, 3 months ago (2016-09-07 22:31:37 UTC) #11
ahmetemirercin
https://codereview.chromium.org/2296323002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/2296323002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp#newcode594 third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp:594: for (; node; node = FlatTreeTraversal::next(*node)) { On 2016/09/07 ...
4 years, 3 months ago (2016-09-08 17:51:14 UTC) #12
lushnikov
thank you, lgtm
4 years, 3 months ago (2016-09-08 23:39:24 UTC) #13
lushnikov
Could you please also add an issue description to briefly describes what this CL does
4 years, 3 months ago (2016-09-08 23:41:21 UTC) #14
dgozman
Nice one! https://codereview.chromium.org/2296323002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css File third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css (right): https://codereview.chromium.org/2296323002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css#newcode15 third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css:15: #testdiv > .test2 { Let's have duplicates ...
4 years, 3 months ago (2016-09-09 01:57:57 UTC) #16
ahmetemirercin
https://codereview.chromium.org/2296323002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css File third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css (right): https://codereview.chromium.org/2296323002/diff/60001/third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css#newcode15 third_party/WebKit/LayoutTests/inspector-protocol/css/resources/collect-class-names.css:15: #testdiv > .test2 { On 2016/09/09 01:57:56, dgozman wrote: ...
4 years, 3 months ago (2016-09-09 10:07:55 UTC) #17
pfeldman
https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2166 third_party/WebKit/Source/core/inspector/browser_protocol.json:2166: "name": "collectClassNamesFromSubtree", What about node ids? Will that be ...
4 years, 3 months ago (2016-09-09 15:55:23 UTC) #18
ahmetemirercin
On 2016/09/09 15:55:23, pfeldman wrote: > https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json > File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): > > https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2166 > ...
4 years, 3 months ago (2016-09-09 17:13:30 UTC) #19
lushnikov
https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp File third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp (right): https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp#newcode1343 third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp:1343: for (size_t i = 0; i < m_parsedFlatRules.size(); ++i) ...
4 years, 3 months ago (2016-09-09 18:21:35 UTC) #20
ahmetemirercin
On 2016/09/09 18:21:35, lushnikov wrote: > https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp > File third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp (right): > > https://codereview.chromium.org/2296323002/diff/80001/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp#newcode1343 > ...
4 years, 3 months ago (2016-09-09 18:48:50 UTC) #21
ahmetemirercin
Is the final patch ready for committing or needs improvement?
4 years, 3 months ago (2016-09-09 20:33:59 UTC) #22
dgozman
lgtm
4 years, 3 months ago (2016-09-09 22:13:56 UTC) #23
paulirish
lgtm
4 years, 3 months ago (2016-09-09 23:07:51 UTC) #25
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/2296323002/80001
4 years, 3 months ago (2016-09-09 23:08:27 UTC) #27
paulirish
I've just added the CL to the commit queue. If all goes well, it should ...
4 years, 3 months ago (2016-09-09 23:09:05 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-10 00:34:37 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-10 00:35:47 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9f5d339452d3d4f76337ecb08e86227e13f15a79
Cr-Commit-Position: refs/heads/master@{#417780}

Powered by Google App Engine
This is Rietveld 408576698