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

Issue 2662513003: DevTools: make StylesSourceMapping in charge of creating and removing UISourceCodes (Closed)

Created:
3 years, 10 months ago by lushnikov
Modified:
3 years, 6 months ago
Reviewers:
dgozman, pfeldman
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: make StylesSourceMapping in charge of creating and removing UISourceCodes This patch makes StylesSourceMapping manage lifetime of stylesheet UISourceCodes. This patch also makes StyleFile to sync all the changes between all the stylesheets, fixing the editing of the stylesheets inside the ShadowDOM. BUG=671867 R=dgozman

Patch Set 1 #

Total comments: 9

Patch Set 2 : move projects under stylessourcemapping #

Total comments: 11

Patch Set 3 : experimental - single UISourceCode per target #

Patch Set 4 : pass tests #

Total comments: 1

Patch Set 5 : cleanup & addres comments #

Messages

Total messages: 19 (9 generated)
lushnikov
please, take a look I'll add a test slightly later to validate new behavior
3 years, 10 months ago (2017-01-27 04:47:56 UTC) #1
dgozman
Looks promising! https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js File third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js (right): https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js#newcode198 third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js:198: getFile(url, frame, isContentScript) { uiSourceCode(frame, url, isContentScript) ...
3 years, 10 months ago (2017-01-27 23:49:13 UTC) #2
lushnikov
https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js File third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js (right): https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js#newcode206 third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js:206: removeFile(uiSourceCode) { On 2017/01/27 23:49:12, dgozman wrote: > removeUISourceCode ...
3 years, 10 months ago (2017-01-30 14:19:15 UTC) #3
dgozman
On 2017/01/30 14:19:15, lushnikov wrote: > https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js > File third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js > (right): > > https://codereview.chromium.org/2662513003/diff/1/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js#newcode206 ...
3 years, 10 months ago (2017-01-30 19:44:59 UTC) #4
lushnikov
please, take a look The patchset#2 addresses all the comments, incapsulating UISourceCode management inside StylesSourceMapping
3 years, 10 months ago (2017-02-15 05:17:26 UTC) #9
lushnikov
https://codereview.chromium.org/2662513003/diff/20001/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/2662513003/diff/20001/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js#newcode197 third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js:197: var uiSourceCode = in future, this green chunk should ...
3 years, 10 months ago (2017-02-15 05:18:48 UTC) #10
dgozman
Let's try to move all UISourceCode management to StyleFile. https://codereview.chromium.org/2662513003/diff/20001/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/2662513003/diff/20001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js#newcode103 third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js:103: ...
3 years, 10 months ago (2017-02-15 19:57:12 UTC) #11
lushnikov
please, take another look! https://codereview.chromium.org/2662513003/diff/20001/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/2662513003/diff/20001/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js#newcode103 third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js:103: var resource = SDK.ResourceTreeModel.resourceForURL(url); On ...
3 years, 10 months ago (2017-02-23 02:02:35 UTC) #12
dgozman
https://codereview.chromium.org/2662513003/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js File third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js (right): https://codereview.chromium.org/2662513003/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js#newcode307 third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js:307: this.uiSourceCodeAdded(uiSourceCode); Remove.
3 years, 10 months ago (2017-02-23 02:17:28 UTC) #15
pfeldman
3 years, 10 months ago (2017-02-23 02:23:24 UTC) #17
It is entirely unclear why this makes things better, needs a design doc.

Powered by Google App Engine
This is Rietveld 408576698