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

Issue 376803002: [DevTools] Color values should be case insensitive while suggestions should be case aware (Closed)

Created:
6 years, 5 months ago by vivekg_samsung
Modified:
6 years, 5 months ago
Reviewers:
vivekg, apavlov, pfeldman, loislo
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[DevTools] Color values should be case insensitive while suggestions should be case aware This CL makes following changes: * Color swatch is not shown for capitalized CSS property names. As the CSS property names in caps are allowed and applied by the browser, added support for showing color swatch for the color values ignoring the case. * Prompt Suggestions should be case-aware to the user input Added support for showing the suggestions in CSS value/name prompts honoring the user entered case. BUG=392052 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178093

Patch Set 1 #

Patch Set 2 : Fixed the failing cases! #

Total comments: 7

Patch Set 3 : Review comments done! #

Total comments: 2

Patch Set 4 : Patch for landing! #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Patch for landing! #

Total comments: 8

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -8 lines) Patch
M LayoutTests/FlakyTests View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
A LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
A LayoutTests/inspector/elements/styles/case-sensitive-suggestions-expected.txt View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/inspector/elements/styles/mixed-case-color-aware-properties.html View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/inspector/elements/styles/mixed-case-color-aware-properties-expected.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/inspector/elements/styles/style-autocomplete.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/elements/StylesSidebarPane.js View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M Source/devtools/front_end/sdk/CSSMetadata.js View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M Source/devtools/front_end/ui/TextPrompt.js View 1 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vivekg
PTAL, thank you!
6 years, 5 months ago (2014-07-08 06:04:49 UTC) #1
apavlov
This patch has broken inspector/elements/styles/inherited-mixed-case-properties.html. Please also make sure that the involved code works as ...
6 years, 5 months ago (2014-07-08 07:20:48 UTC) #2
vivekg
Updated, PTAL. https://codereview.chromium.org/376803002/diff/20001/Source/devtools/front_end/elements/StylesSidebarPane.js File Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://codereview.chromium.org/376803002/diff/20001/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2310 Source/devtools/front_end/elements/StylesSidebarPane.js:2310: if (format === WebInspector.Color.Format.Original) { This change ...
6 years, 5 months ago (2014-07-08 11:03:37 UTC) #3
apavlov
https://codereview.chromium.org/376803002/diff/20001/Source/devtools/front_end/sdk/CSSMetadata.js File Source/devtools/front_end/sdk/CSSMetadata.js (right): https://codereview.chromium.org/376803002/diff/20001/Source/devtools/front_end/sdk/CSSMetadata.js#newcode79 Source/devtools/front_end/sdk/CSSMetadata.js:79: return WebInspector.CSSMetadata._colorAwareProperties[propertyName.toLowerCase()] === true; On 2014/07/08 11:03:37, vivekg_ wrote: ...
6 years, 5 months ago (2014-07-08 11:16:38 UTC) #4
vivekg
Done with the review comments incorporation. PTAL, thanks!
6 years, 5 months ago (2014-07-08 12:05:14 UTC) #5
apavlov
https://chromiumcodereview.appspot.com/376803002/diff/40001/Source/devtools/front_end/elements/StylesSidebarPane.js File Source/devtools/front_end/elements/StylesSidebarPane.js (right): https://chromiumcodereview.appspot.com/376803002/diff/40001/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2310 Source/devtools/front_end/elements/StylesSidebarPane.js:2310: if (format === WebInspector.Color.Format.Original) { No braces around single-statement ...
6 years, 5 months ago (2014-07-08 13:04:08 UTC) #6
vivekg
On 2014/07/08 13:04:08, apavlov wrote: > https://chromiumcodereview.appspot.com/376803002/diff/40001/Source/devtools/front_end/elements/StylesSidebarPane.js > File Source/devtools/front_end/elements/StylesSidebarPane.js (right): > > https://chromiumcodereview.appspot.com/376803002/diff/40001/Source/devtools/front_end/elements/StylesSidebarPane.js#newcode2310 > ...
6 years, 5 months ago (2014-07-08 15:00:11 UTC) #7
vivekg
On 2014/07/08 15:00:11, vivekg_ wrote: > On 2014/07/08 13:04:08, apavlov wrote: > > > https://chromiumcodereview.appspot.com/376803002/diff/40001/Source/devtools/front_end/elements/StylesSidebarPane.js ...
6 years, 5 months ago (2014-07-09 17:36:18 UTC) #8
apavlov
looks good. Let's test that (a) mixed-case color-aware properties are actually considered color-aware, (b) all-caps ...
6 years, 5 months ago (2014-07-10 12:53:53 UTC) #9
vivekg
On 2014/07/10 12:53:53, apavlov wrote: > looks good. Let's test that (a) mixed-case color-aware properties ...
6 years, 5 months ago (2014-07-14 11:03:26 UTC) #10
apavlov
https://codereview.chromium.org/376803002/diff/100001/LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html File LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html (right): https://codereview.chromium.org/376803002/diff/100001/LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html#newcode31 LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html:31: var proxyElement = document.createElement("span"); ... = document.createChild("span"); https://codereview.chromium.org/376803002/diff/100001/LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html#newcode32 LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html:32: ...
6 years, 5 months ago (2014-07-14 11:25:54 UTC) #11
vivekg
Done, thank you!
6 years, 5 months ago (2014-07-14 11:42:52 UTC) #12
apavlov
lgtm with nits https://codereview.chromium.org/376803002/diff/120001/LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html File LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html (right): https://codereview.chromium.org/376803002/diff/120001/LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html#newcode26 LayoutTests/inspector/elements/styles/case-sensitive-suggestions.html:26: }, we try to avoid dangling ...
6 years, 5 months ago (2014-07-14 12:23:42 UTC) #13
vivekg
Thank you @apavlov for your time. I have incorporated all the review comments. https://codereview.chromium.org/376803002/diff/120001/LayoutTests/inspector/elements/styles/mixed-case-color-aware-properties.html File ...
6 years, 5 months ago (2014-07-14 17:57:51 UTC) #14
vivekg
The CQ bit was checked by vivekg@chromium.org
6 years, 5 months ago (2014-07-14 17:57:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/376803002/140001
6 years, 5 months ago (2014-07-14 17:58:27 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 19:00:40 UTC) #17
Message was sent while issue was closed.
Change committed as 178093

Powered by Google App Engine
This is Rietveld 408576698