DescriptionDevTools: 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)
|