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

Issue 2173913002: DevTools: Optimize source color picker to analyze changed lines (Closed)

Created:
4 years, 5 months ago by flandy
Modified:
4 years, 4 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@escSpectrum
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Optimize source color picker to analyze changed lines -Analyze the new lines from onTextChanged when updating the color swatches. (CodeMirror handles the bookmarks for any old lines that have been deleted) -Use bookmark find() method to keep track of swatch positions. -Remove the timeout so that swatches are updated immediately. -Only analyze a set number of columns (currently 300) to improve loading of minified style sheets. R=lushnikov Committed: https://crrev.com/959d01eae15091152be1e8b88489ecc451a83e8f Cr-Commit-Position: refs/heads/master@{#408022}

Patch Set 1 #

Patch Set 2 : Added tests #

Total comments: 16

Patch Set 3 : Addressed comments #

Patch Set 4 : Cap columns to speed up loading of minified style sheets #

Total comments: 2

Patch Set 5 : Address last comment #

Messages

Total messages: 15 (5 generated)
flandy
Please take a look :)
4 years, 5 months ago (2016-07-22 16:56:34 UTC) #1
lushnikov
looks like it's time to have a few tests for this Let's add two tests ...
4 years, 5 months ago (2016-07-22 18:40:59 UTC) #2
flandy
On 2016/07/22 18:40:59, lushnikov wrote: > looks like it's time to have a few tests ...
4 years, 5 months ago (2016-07-25 22:43:27 UTC) #3
lushnikov
https://codereview.chromium.org/2173913002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html File third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html (right): https://codereview.chromium.org/2173913002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html#newcode45 third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html:45: } lets add a few more tests here that ...
4 years, 5 months ago (2016-07-25 23:15:37 UTC) #4
flandy
Please take another look. https://codereview.chromium.org/2173913002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html File third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html (right): https://codereview.chromium.org/2173913002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html#newcode45 third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html:45: } On 2016/07/25 23:15:36, lushnikov ...
4 years, 5 months ago (2016-07-26 01:16:46 UTC) #5
lushnikov
lgtm, thanks Please make sure this works fine with multiple cursors https://codereview.chromium.org/2173913002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js File third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js (right): ...
4 years, 4 months ago (2016-07-26 22:41:26 UTC) #6
flandy
It works fine with multiple cursors. https://codereview.chromium.org/2173913002/diff/60001/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/2173913002/diff/60001/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js#newcode111 third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js:111: var maxColumnsSupported = ...
4 years, 4 months ago (2016-07-26 23:24: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/2173913002/80001
4 years, 4 months ago (2016-07-26 23:25:36 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-27 02:47:18 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 02:49:21 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/959d01eae15091152be1e8b88489ecc451a83e8f
Cr-Commit-Position: refs/heads/master@{#408022}

Powered by Google App Engine
This is Rietveld 408576698