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

Issue 2893523002: DevTools: make StyleSourceMapping in charge of managing UISourceCodes (Closed)

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

Description

DevTools: make StyleSourceMapping in charge of managing UISourceCodes This patch: - move style-related UISourceCode management from NetworkProject into StylesSourceMapping - create only a single UISourceCode per target for css header As a result, all the headers are synced perfectly across shadow roots and frames. BUG=671867, 670180 R=dgozman Review-Url: https://codereview.chromium.org/2893523002 Cr-Commit-Position: refs/heads/master@{#479168} Committed: https://chromium.googlesource.com/chromium/src/+/c5b8d597dda99a31ae014519984d51c994f3f55d

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : update test #

Total comments: 18

Patch Set 4 : address comments #

Patch Set 5 : rebaseline #

Patch Set 6 : rebaseline #

Patch Set 7 : rebaseline #

Total comments: 8

Patch Set 8 : address comments #

Total comments: 8

Patch Set 9 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -351 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/bindings-multiple-frames-expected.txt View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/shadowdom-bindings-expected.txt View 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/shadowdom-navigator-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-bindings-multiple-frames-expected.txt View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings-expected.txt View 1 2 3 4 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-do-not-overwrite-css.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags-expected.txt View 1 2 1 chunk +7 lines, -15 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/elements/styles-1/resources/frame.html View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-history.html View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js View 1 2 3 4 7 chunks +4 lines, -82 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js View 1 2 3 4 5 6 7 8 6 chunks +173 lines, -208 lines 0 comments Download

Messages

Total messages: 36 (27 generated)
lushnikov
please, take a look!
3 years, 7 months ago (2017-05-17 02:58:45 UTC) #3
dgozman
https://codereview.chromium.org/2893523002/diff/40001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags-expected.txt File third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags-expected.txt (right): https://codereview.chromium.org/2893523002/diff/40001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags-expected.txt#newcode8 third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags-expected.txt:8: Both headers and uiSourceCode content: Nice test! I was ...
3 years, 7 months ago (2017-05-17 16:46:20 UTC) #9
lushnikov
https://codereview.chromium.org/2893523002/diff/40001/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js File third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js (right): https://codereview.chromium.org/2893523002/diff/40001/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js#newcode238 third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js:238: var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForResourceURL( On 2017/05/17 16:46:20, dgozman wrote: ...
3 years, 7 months ago (2017-05-20 01:24:18 UTC) #10
lushnikov
@dgozman's comments https://codereview.chromium.org/2893523002/diff/120001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js File third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js (right): https://codereview.chromium.org/2893523002/diff/120001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js#newcode147 third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js:147: this._styleFiles.clear(); remove project https://codereview.chromium.org/2893523002/diff/120001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js#newcode179 third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js:179: this._cssModel.subscribeToStyleSheetChanged(header.id, this._styleSheetChangedBound); ...
3 years, 6 months ago (2017-06-12 23:49:18 UTC) #21
lushnikov
all done; please, take another look! https://codereview.chromium.org/2893523002/diff/120001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js File third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js (right): https://codereview.chromium.org/2893523002/diff/120001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js#newcode147 third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js:147: this._styleFiles.clear(); On 2017/06/12 ...
3 years, 6 months ago (2017-06-13 01:17:43 UTC) #24
dgozman
lgtm https://codereview.chromium.org/2893523002/diff/140001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html File third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html (right): https://codereview.chromium.org/2893523002/diff/140001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html#newcode50 third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html:50: function waitForStyleFile() { nit: you can use addSnifferPromise ...
3 years, 6 months ago (2017-06-13 19:09:38 UTC) #29
lushnikov
https://codereview.chromium.org/2893523002/diff/140001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html File third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html (right): https://codereview.chromium.org/2893523002/diff/140001/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html#newcode50 third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-resource-referred-by-multiple-styletags.html:50: function waitForStyleFile() { On 2017/06/13 19:09:38, dgozman wrote: > ...
3 years, 6 months ago (2017-06-13 19:25:22 UTC) #30
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/2893523002/160001
3 years, 6 months ago (2017-06-13 19:30:02 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 21:57:45 UTC) #36
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/c5b8d597dda99a31ae014519984d...

Powered by Google App Engine
This is Rietveld 408576698