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

Issue 2187173002: DevTools: Find bookmarks at line endpoints when calling _clearBookmarks (Closed)

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

Description

DevTools: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
flandy
Please take a look
4 years, 4 months ago (2016-07-27 22:28:12 UTC) #2
lushnikov
I believe findMarks is supposed to be inclusive; maybe we can just fix it upstream? ...
4 years, 4 months ago (2016-07-27 23:32:02 UTC) #3
flandy
Please take another look. Marijn confirmed that findMarks is intended to be exclusive, so we'll ...
4 years, 4 months ago (2016-07-29 17:25:51 UTC) #4
lushnikov
https://codereview.chromium.org/2187173002/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/2187173002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html#newcode63 third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html:63: function testBookmarksBoundary(next) testBookmarsAtLineStart https://codereview.chromium.org/2187173002/diff/20001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://codereview.chromium.org/2187173002/diff/20001/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode1028 third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:1028: ...
4 years, 4 months ago (2016-07-29 17:46:25 UTC) #5
flandy
Addressed the comments :) https://codereview.chromium.org/2187173002/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/2187173002/diff/20001/third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html#newcode63 third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html:63: function testBookmarksBoundary(next) On 2016/07/29 17:46:24, ...
4 years, 4 months ago (2016-07-29 18:31:39 UTC) #6
lushnikov
lgtm
4 years, 4 months ago (2016-07-29 19:13:48 UTC) #7
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/2187173002/40001
4 years, 4 months ago (2016-07-29 19:18:57 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-29 21:19:42 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 21:22:18 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a267f68a32a1ecc8f1c220f621db70c96fe3738c
Cr-Commit-Position: refs/heads/master@{#408758}

Powered by Google App Engine
This is Rietveld 408576698