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 Review-Url: https://codereview.chromium.org/2310633002 Cr-Commit-Position: refs/heads/master@{#417488}
Showing
Please register or sign in to comment