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

Issue 2230183004: DevTools: Add shadow-editor swatch/icon before box-shadows and text-shadows (Closed)

Created:
4 years, 4 months ago by flandy
Modified:
4 years, 3 months ago
Reviewers:
dgozman, lushnikov
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Add shadow-editor swatch/icon before box-shadows and text-shadows This is the first step for the shadow editor and is hidden under an experiment. BUG=639095 Committed: https://crrev.com/ea253f5b0f251a0942a6cd181559a1ce0683fc75 Cr-Commit-Position: refs/heads/master@{#413927}

Patch Set 1 #

Total comments: 16

Patch Set 2 : New image swatches.png #

Total comments: 4

Patch Set 3 : Use smallIcons and shadow model #

Total comments: 18

Patch Set 4 : Update model #

Total comments: 22

Patch Set 5 : Move model to another patch #

Total comments: 9

Patch Set 6 : Address comments #

Patch Set 7 : Add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -8 lines) Patch
M third_party/WebKit/Source/devtools/devtools.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/smallIcons.png View 1 2 3 Binary file 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/smallIcons_2x.png View 1 2 3 Binary file 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/src/optimize_png.hashes View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/src/smallIcons.svg View 1 2 3 2 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/src/svg2png.hashes View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js View 1 2 3 4 5 6 4 chunks +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js View 1 2 3 4 5 2 chunks +77 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/ui/cssShadowSwatch.css View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/module.json View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
flandy
Please take an initial look. Still need to update the icons so that the "s" ...
4 years, 4 months ago (2016-08-10 18:53:06 UTC) #2
lushnikov
https://codereview.chromium.org/2230183004/diff/1/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://codereview.chromium.org/2230183004/diff/1/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2037 third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js:2037: var results = WebInspector.TextUtils.splitStringByRegexes(propertyValue, [WebInspector.Color.Regex, /,/g]); we should put ...
4 years, 4 months ago (2016-08-10 19:29:02 UTC) #3
dgozman
https://codereview.chromium.org/2230183004/diff/1/third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js File third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js (right): https://codereview.chromium.org/2230183004/diff/1/third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js#newcode45 third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js:45: path.setAttribute("d", "M2,8 C2,3 8,7 8,2"); We can do similar ...
4 years, 4 months ago (2016-08-10 22:03:45 UTC) #4
flandy
Please take another look. Chris and I have added a new image asset for the ...
4 years, 4 months ago (2016-08-11 00:23:19 UTC) #5
lushnikov
https://codereview.chromium.org/2230183004/diff/20001/third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg File third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg (right): https://codereview.chromium.org/2230183004/diff/20001/third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg#newcode1 third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg:1: <?xml version="1.0" encoding="UTF-8" standalone="no"?> let's make a "smallIcons.svg" and ...
4 years, 4 months ago (2016-08-11 01:40:07 UTC) #6
flandy
Please take another look. https://codereview.chromium.org/2230183004/diff/20001/third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg File third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg (right): https://codereview.chromium.org/2230183004/diff/20001/third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg#newcode1 third_party/WebKit/Source/devtools/front_end/Images/src/swatches.svg:1: <?xml version="1.0" encoding="UTF-8" standalone="no"?> On ...
4 years, 4 months ago (2016-08-12 19:31:42 UTC) #7
lushnikov
Also, as far as we add a parsing logic, let's cover it with a test! ...
4 years, 4 months ago (2016-08-16 22:53:20 UTC) #8
flandy
Please take another look :) https://codereview.chromium.org/2230183004/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js File third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js (right): https://codereview.chromium.org/2230183004/diff/40001/third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js#newcode276 third_party/WebKit/Source/devtools/front_end/elements/ColorSwatchPopoverIcon.js:276: this._element.removeChildren(); On 2016/08/16 22:53:19, ...
4 years, 4 months ago (2016-08-18 22:00:41 UTC) #10
lushnikov
https://codereview.chromium.org/2230183004/diff/60001/third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt File third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt (right): https://codereview.chromium.org/2230183004/diff/60001/third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt#newcode4 third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt:4: 10px I like this test, good coverage! I'd suggest ...
4 years, 4 months ago (2016-08-19 16:24:35 UTC) #11
flandy
All done. https://codereview.chromium.org/2230183004/diff/60001/third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt File third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt (right): https://codereview.chromium.org/2230183004/diff/60001/third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt#newcode4 third_party/WebKit/LayoutTests/inspector/components/css-shadow-model-expected.txt:4: 10px On 2016/08/19 16:24:34, lushnikov wrote: > ...
4 years, 4 months ago (2016-08-19 21:50:40 UTC) #12
flandy
Ping
4 years, 3 months ago (2016-08-23 17:09:17 UTC) #13
dgozman
lgtm https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2033 third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js:2033: if (!shadows.length || !this._editable()) Let's not even parse ...
4 years, 3 months ago (2016-08-23 17:40:57 UTC) #14
flandy
https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2033 third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js:2033: if (!shadows.length || !this._editable()) On 2016/08/23 17:40:56, dgozman wrote: ...
4 years, 3 months ago (2016-08-23 19:27:15 UTC) #15
dgozman
https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2039 third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js:2039: container.appendChild(createTextNode(", ")); // Add back commas and spaces between ...
4 years, 3 months ago (2016-08-23 19:29:47 UTC) #16
flandy
On 2016/08/23 19:29:47, dgozman wrote: > https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js > File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js > (right): > > https://codereview.chromium.org/2230183004/diff/80001/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2039 ...
4 years, 3 months ago (2016-08-23 20:42:00 UTC) #17
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/2230183004/120001
4 years, 3 months ago (2016-08-23 22:50:35 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-08-24 01:30:54 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-08-24 01:32:32 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ea253f5b0f251a0942a6cd181559a1ce0683fc75
Cr-Commit-Position: refs/heads/master@{#413927}

Powered by Google App Engine
This is Rietveld 408576698