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

Issue 2342643002: DevTools: Don't refresh CodeMirror if it is hidden (Closed)

Created:
4 years, 3 months ago by einbinder
Modified:
4 years, 3 months ago
Reviewers:
dgozman, lushnikov
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Don't refresh CodeMirror if it is hidden CodeMirror.refresh is expensive, and calling it when CodeMirror is hidden breaks the gutters. BUG=none Committed: https://crrev.com/1e5ed305bafdfece6a07cfd342ac08370ad3d28e Cr-Commit-Position: refs/heads/master@{#418684}

Patch Set 1 #

Total comments: 1

Patch Set 2 : indexOf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js View 1 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js View 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
einbinder
ptal
4 years, 3 months ago (2016-09-14 18:17:07 UTC) #3
lushnikov
lgtm https://codereview.chromium.org/2342643002/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js (right): https://codereview.chromium.org/2342643002/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js#newcode185 third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js:185: var originalLength = this._gutters.length; indexOf..
4 years, 3 months ago (2016-09-14 19:02:35 UTC) #4
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/2342643002/20001
4 years, 3 months ago (2016-09-14 19:07:02 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-14 21:35:48 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1e5ed305bafdfece6a07cfd342ac08370ad3d28e Cr-Commit-Position: refs/heads/master@{#418684}
4 years, 3 months ago (2016-09-14 21:39:18 UTC) #10
dgozman
4 years, 3 months ago (2016-09-15 01:08:00 UTC) #12
Message was sent while issue was closed.
Should we add a test?

Powered by Google App Engine
This is Rietveld 408576698