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

Issue 177963004: DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. (Closed)

Created:
6 years, 9 months ago by vsevik
Modified:
6 years, 9 months ago
Reviewers:
apavlov, lushnikov, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. R=lushnikov@chromium.org, pfeldman Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168388

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : Comments addressed #

Patch Set 4 : Added protocol test #

Total comments: 4

Patch Set 5 : Rebaselined #

Patch Set 6 : Rebaselined, rewrote tests. #

Patch Set 7 : Fixed test #

Total comments: 1

Patch Set 8 : Rebaselined #

Patch Set 9 : Comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -53 lines) Patch
M LayoutTests/http/tests/inspector-protocol/inspector-protocol-test.js View 1 2 3 4 5 6 7 8 2 chunks +55 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/inspector/elements-test.js View 1 chunk +11 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html View 1 chunk +1 line, -6 lines 0 comments Download
A LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule-expected.txt View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/css/css-protocol-test.js View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A + LayoutTests/inspector-protocol/css/resources/stylesheet.css View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.html View 1 chunk +3 lines, -9 lines 0 comments Download
M LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html View 1 chunk +1 line, -12 lines 0 comments Download
M LayoutTests/inspector/elements/styles/styles-new-API.html View 1 2 2 chunks +13 lines, -2 lines 1 comment Download
M LayoutTests/inspector/elements/styles/undo-add-new-rule.html View 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/inspector/elements/styles/undo-add-rule-crash.html View 1 chunk +6 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 1 chunk +21 lines, -4 lines 0 comments Download
M Source/devtools/front_end/CSSStyleModel.js View 1 2 4 chunks +49 lines, -6 lines 0 comments Download
M Source/devtools/front_end/DOMAgent.js View 1 2 chunks +12 lines, -0 lines 0 comments Download
M Source/devtools/front_end/StylesSidebarPane.js View 1 2 1 chunk +15 lines, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 2 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vsevik
PTAL
6 years, 9 months ago (2014-02-27 12:56:21 UTC) #1
lushnikov
https://codereview.chromium.org/177963004/diff/20001/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html File LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html (left): https://codereview.chromium.org/177963004/diff/20001/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html#oldcode21 LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html:21: InspectorTest.waitForStyles("inspected", stylesReceived, true); Is this step skipped intentionally? Why? ...
6 years, 9 months ago (2014-02-28 11:55:59 UTC) #2
vsevik
https://codereview.chromium.org/177963004/diff/20001/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html File LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html (left): https://codereview.chromium.org/177963004/diff/20001/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html#oldcode21 LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html:21: InspectorTest.waitForStyles("inspected", stylesReceived, true); addNewRule will callback after the styles ...
6 years, 9 months ago (2014-02-28 14:35:27 UTC) #3
vsevik
> https://codereview.chromium.org/177963004/diff/20001/Source/devtools/protocol.json#newcode2674 > Source/devtools/protocol.json:2674: "name": "createViaInspectorStyleSheet", > I would rather name it "createNewStyleSheet" to avoid ...
6 years, 9 months ago (2014-02-28 14:36:01 UTC) #4
lushnikov
On 2014/02/28 14:36:01, vsevik wrote: > > > https://codereview.chromium.org/177963004/diff/20001/Source/devtools/protocol.json#newcode2674 > > Source/devtools/protocol.json:2674: "name": "createViaInspectorStyleSheet", > ...
6 years, 9 months ago (2014-02-28 15:02:01 UTC) #5
lushnikov
https://codereview.chromium.org/177963004/diff/60001/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html File LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html (right): https://codereview.chromium.org/177963004/diff/60001/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html#newcode12 LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html:12: setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000); 1. not needed 2. bad indentation https://codereview.chromium.org/177963004/diff/60001/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html#newcode29 ...
6 years, 9 months ago (2014-03-03 12:43:08 UTC) #6
vsevik
PTAL
6 years, 9 months ago (2014-03-03 13:58:51 UTC) #7
vsevik
> https://codereview.chromium.org/177963004/diff/60001/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html#newcode12 > LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html:12: > setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000); > 1. not needed > 2. bad indentation ...
6 years, 9 months ago (2014-03-03 16:48:14 UTC) #8
vsevik
Please take another look, I can not upload this patch right now due to git ...
6 years, 9 months ago (2014-03-03 16:48:50 UTC) #9
lushnikov
lgtm with nit https://chromiumcodereview.appspot.com/177963004/diff/120001/LayoutTests/inspector-protocol/css/css-protocol-test.js File LayoutTests/inspector-protocol/css/css-protocol-test.js (right): https://chromiumcodereview.appspot.com/177963004/diff/120001/LayoutTests/inspector-protocol/css/css-protocol-test.js#newcode29 LayoutTests/inspector-protocol/css/css-protocol-test.js:29: InspectorTest.requestNodeId = function(selector, callback) Not really ...
6 years, 9 months ago (2014-03-04 08:22:35 UTC) #10
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 9 months ago (2014-03-04 08:53:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vsevik@chromium.org/177963004/40002
6 years, 9 months ago (2014-03-04 08:54:53 UTC) #12
vsevik
Committed patchset #9 manually as r168388 (presubmit successful).
6 years, 9 months ago (2014-03-04 15:00:19 UTC) #13
pfeldman
6 years, 9 months ago (2014-03-17 06:10:49 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/177963004/diff/40002/LayoutTests/inspector/el...
File LayoutTests/inspector/elements/styles/styles-new-API.html (right):

https://codereview.chromium.org/177963004/diff/40002/LayoutTests/inspector/el...
LayoutTests/inspector/elements/styles/styles-new-API.html:301: if (error) {
Note that nothing prevents from executing rebuildUpdate in the middle of these
operations.

Powered by Google App Engine
This is Rietveld 408576698