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

Issue 1641893002: DevTools: [SASS] introduce workspace/cssModel adapter for SASS processor. (Closed)

Created:
4 years, 10 months ago by lushnikov
Modified:
4 years, 10 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, sergeyv+blink_chromium.org, pfeldman, 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

DevTools: [SASS] introduce workspace/cssModel adapter for SASS processor. The WI.SASSWorkspaceAdapter sits atop workspaces and CSSModel and provides a consise and sufficient API for SASS processor operations. Methods of WI.SASSWorkspaceAdapter: - trackSources(sourceMap): WI.SASSWorkspaceAdapter.Client Methods of The WI.SASSWorkspaceAdapter.Client: - content(url): Promise<string> - setCSSText(text, cssEdits): boolean - setSASSText(url, text): boolean - isOutdated(): boolean - wheather any sourceMap source has changed since last content inquiry. - dispose() Events of WI.SASSWorkspaceAdapter.Client: - SourceChanged(url) - whenever any source of source map gets changed - TrackingStopped() - whenever the client gets disposed BUG=527993 R=dgozman Committed: https://crrev.com/877755e652517055db2247baf8282626757a3812 Cr-Commit-Position: refs/heads/master@{#371996}

Patch Set 1 #

Total comments: 30

Patch Set 2 : adddress comments #

Total comments: 2

Patch Set 3 : fix test flakiness #

Patch Set 4 : remove settimeout from test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+882 lines, -114 lines) Patch
M third_party/WebKit/LayoutTests/inspector/sass/sass-test.js View 1 4 chunks +69 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sass/test-mapping-bad.html View 1 chunk +4 lines, -33 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sass/test-mapping-bad-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sass/test-mapping-good.html View 2 chunks +10 lines, -41 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sass/test-workspace-adapter.html View 1 2 3 1 chunk +189 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sass/test-workspace-adapter-expected.txt View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/devtools.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js View 1 5 chunks +53 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js View 2 chunks +6 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/sass/SASSWorkspaceAdapter.js View 1 1 chunk +461 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/module.json View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleModel.js View 1 3 chunks +2 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js View 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
lushnikov
ptal
4 years, 10 months ago (2016-01-27 20:56:23 UTC) #2
dgozman
https://codereview.chromium.org/1641893002/diff/1/third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js File third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js (right): https://codereview.chromium.org/1641893002/diff/1/third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js#newcode19 third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js:19: for (var url of sourceMap.sources()) { client.sassURLs() https://codereview.chromium.org/1641893002/diff/1/third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js#newcode25 third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js:25: ...
4 years, 10 months ago (2016-01-27 23:14:05 UTC) #3
lushnikov
https://codereview.chromium.org/1641893002/diff/1/third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js File third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js (right): https://codereview.chromium.org/1641893002/diff/1/third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js#newcode19 third_party/WebKit/Source/devtools/front_end/sass/SASSLiveSourceMap.js:19: for (var url of sourceMap.sources()) { On 2016/01/27 23:14:04, ...
4 years, 10 months ago (2016-01-28 00:04:30 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641893002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641893002/20001
4 years, 10 months ago (2016-01-28 00:11:24 UTC) #6
dgozman
lgtm https://codereview.chromium.org/1641893002/diff/20001/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js File third_party/WebKit/LayoutTests/inspector/sass/sass-test.js (right): https://codereview.chromium.org/1641893002/diff/20001/third_party/WebKit/LayoutTests/inspector/sass/sass-test.js#newcode225 third_party/WebKit/LayoutTests/inspector/sass/sass-test.js:225: var styleSheetIds = InspectorTest.cssModel.styleSheetIdsForURL(url) semicolon missing https://codereview.chromium.org/1641893002/diff/20001/third_party/WebKit/LayoutTests/inspector/sass/test-workspace-adapter.html File ...
4 years, 10 months ago (2016-01-28 01:11:52 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641893002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641893002/40001
4 years, 10 months ago (2016-01-28 01:13:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1641893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1641893002/60001
4 years, 10 months ago (2016-01-28 01:25:49 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-28 03:44:46 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 03:45:39 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/877755e652517055db2247baf8282626757a3812
Cr-Commit-Position: refs/heads/master@{#371996}

Powered by Google App Engine
This is Rietveld 408576698