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

Issue 2310633002: DevTools: Reduce color parsing by passing in Color to ColorSwatch (Closed)

Created:
4 years, 3 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Reduce color parsing by passing in Color to ColorSwatch Often times we are doing double work parsing color text to handle invalid colors and then parsing color text again in setColorText. We should just parse once and pass in the Color object to ColorSwatch. BUG=642782 Committed: https://crrev.com/3254b5dba1a5071e33db5955e131ec34ed65b864 Cr-Commit-Position: refs/heads/master@{#417488}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add semicolon and clean up AppManifestView #

Total comments: 6

Patch Set 3 : Get color from model #

Total comments: 1

Messages

Total messages: 21 (7 generated)
flandy
Please take a look.
4 years, 3 months ago (2016-09-02 21:00:58 UTC) #2
dgozman
I don't like that all the clients now have to handle whether the color has ...
4 years, 3 months ago (2016-09-02 22:08:01 UTC) #3
flandy
On 2016/09/02 22:08:01, dgozman wrote: > I don't like that all the clients now have ...
4 years, 3 months ago (2016-09-02 23:09:18 UTC) #4
lushnikov
https://codereview.chromium.org/2310633002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js File third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js (left): https://codereview.chromium.org/2310633002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js#oldcode101 third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js:101: this.setColorText("white"); what does it render if there's no color ...
4 years, 3 months ago (2016-09-06 17:00:58 UTC) #5
flandy
Please take another look. https://codereview.chromium.org/2310633002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js File third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js (left): https://codereview.chromium.org/2310633002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js#oldcode101 third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js:101: this.setColorText("white"); On 2016/09/06 17:00:58, lushnikov ...
4 years, 3 months ago (2016-09-08 16:51:49 UTC) #6
lushnikov
lgtm, i like the patch let's make sure @dgozman doesn't have anything against it https://codereview.chromium.org/2310633002/diff/40001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js ...
4 years, 3 months ago (2016-09-09 00:16:42 UTC) #7
dgozman
lgtm
4 years, 3 months ago (2016-09-09 00:21:15 UTC) #8
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/2310633002/40001
4 years, 3 months ago (2016-09-09 00:24:01 UTC) #10
commit-bot: I haz the power
Exceeded global retry quota
4 years, 3 months ago (2016-09-09 00:34:39 UTC) #12
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/2310633002/40001
4 years, 3 months ago (2016-09-09 00:43:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/233981)
4 years, 3 months ago (2016-09-09 00:49: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/2310633002/40001
4 years, 3 months ago (2016-09-09 02:10:17 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-09 03:00:16 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 03:02:06 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3254b5dba1a5071e33db5955e131ec34ed65b864
Cr-Commit-Position: refs/heads/master@{#417488}

Powered by Google App Engine
This is Rietveld 408576698