DescriptionDevTools: Find bookmarks at line endpoints when calling _clearBookmarks
This fixes an issue with the source color picker where undo-ing the color text did not
always remove the color swatch. CodeMirror findMarks() is not inclusive, so we also need
to check the line endpoints.
The additional newline added to the string in _updateColorSwatches allows
color text to be matched when it is located at the start of a line.
R=lushnikov
Committed: https://crrev.com/a267f68a32a1ecc8f1c220f621db70c96fe3738c
Cr-Commit-Position: refs/heads/master@{#408758}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Check endpoints in CodeMirrorTextEditor #
Total comments: 6
Patch Set 3 : Addressed comments #
Messages
Total messages: 13 (4 generated)
|