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

Issue 2128093004: DevTools: Add color swatches to Sources panel (Closed)

Created:
4 years, 5 months ago by flandy
Modified:
4 years, 5 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_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: Add color swatches to the Sources panel when editing style sheets. Color swatches help to visualize the code and will later launch color pickers to edit the colors. BUG=266326 Committed: https://crrev.com/6a382a152026aa3f48a1e94ae89c9d83f37cd09e Cr-Commit-Position: refs/heads/master@{#405423}

Patch Set 1 #

Patch Set 2 : Inline color swatches #

Total comments: 10

Patch Set 3 : Addressed comments #

Total comments: 34

Patch Set 4 : Addressed further comments #

Total comments: 16

Patch Set 5 : Addressed comments #

Total comments: 6

Patch Set 6 : Addressed further comments #

Total comments: 2

Patch Set 7 : First iteration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -0 lines) Patch
M third_party/WebKit/Source/devtools/front_end/externs.js View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js View 1 2 3 4 5 6 2 chunks +110 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
flandy
Please take a look and let me know if I'm on the right track. Thanks!
4 years, 5 months ago (2016-07-07 01:08:14 UTC) #3
lushnikov
Overall looks reasonably good! Let's try inline version to see how it works out.
4 years, 5 months ago (2016-07-08 18:18:46 UTC) #4
flandy
On 2016/07/08 18:18:46, lushnikov wrote: > Overall looks reasonably good! Let's try inline version to ...
4 years, 5 months ago (2016-07-11 23:05:44 UTC) #5
lushnikov
I played with this, and I really liked it! Let's optimize performance (try recording a ...
4 years, 5 months ago (2016-07-12 03:48:02 UTC) #6
flandy
Thanks again for the feedback! Please take another look. I added the use of code ...
4 years, 5 months ago (2016-07-12 21:17:15 UTC) #7
lushnikov
https://codereview.chromium.org/2128093004/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2128093004/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1011 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1011: * @param {?Element} element can we make it non-nullable? ...
4 years, 5 months ago (2016-07-12 22:38:46 UTC) #8
flandy
https://codereview.chromium.org/2128093004/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2128093004/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1011 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1011: * @param {?Element} element On 2016/07/12 22:38:45, lushnikov wrote: ...
4 years, 5 months ago (2016-07-13 18:14:57 UTC) #9
lushnikov
https://codereview.chromium.org/2128093004/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js File third_party/WebKit/Source/devtools/front_end/externs.js (right): https://codereview.chromium.org/2128093004/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js#newcode589 third_party/WebKit/Source/devtools/front_end/externs.js:589: CodeMirror.TextMarker = function(doc, type) { } shouldn't it have ...
4 years, 5 months ago (2016-07-13 21:21:53 UTC) #10
flandy
https://codereview.chromium.org/2128093004/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js File third_party/WebKit/Source/devtools/front_end/externs.js (right): https://codereview.chromium.org/2128093004/diff/60001/third_party/WebKit/Source/devtools/front_end/externs.js#newcode589 third_party/WebKit/Source/devtools/front_end/externs.js:589: CodeMirror.TextMarker = function(doc, type) { } On 2016/07/13 21:21:53, ...
4 years, 5 months ago (2016-07-13 23:02:46 UTC) #11
lushnikov
https://codereview.chromium.org/2128093004/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js (right): https://codereview.chromium.org/2128093004/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js#newcode42 third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js:42: if (Runtime.experiments.isEnabled("sourceColorPicker")) let's not check for experiment here - ...
4 years, 5 months ago (2016-07-13 23:31:42 UTC) #12
flandy
https://codereview.chromium.org/2128093004/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js (right): https://codereview.chromium.org/2128093004/diff/80001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js#newcode42 third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js:42: if (Runtime.experiments.isEnabled("sourceColorPicker")) On 2016/07/13 23:31:42, lushnikov wrote: > let's ...
4 years, 5 months ago (2016-07-14 00:56:41 UTC) #13
lushnikov
lgtm On a side note, maybe there's a way to unify your color regex with ...
4 years, 5 months ago (2016-07-14 01:20:05 UTC) #14
flandy
https://codereview.chromium.org/2128093004/diff/100001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js (right): https://codereview.chromium.org/2128093004/diff/100001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js#newcode128 third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js:128: var colorRegex = /[\s:;,(){}]((?:rgb|hsl)a?\([^)]+\)|#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{3,4}|[a-z]+)(?=[\s;,(){}])/gi; On 2016/07/14 01:20:05, lushnikov wrote: ...
4 years, 5 months ago (2016-07-14 01:38:12 UTC) #16
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/2128093004/120001
4 years, 5 months ago (2016-07-14 01:39:00 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-14 02:58:36 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 03:00:20 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6a382a152026aa3f48a1e94ae89c9d83f37cd09e
Cr-Commit-Position: refs/heads/master@{#405423}

Powered by Google App Engine
This is Rietveld 408576698