Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(22)

Issue 1178063005: DevTools: editor should not loose scroll position when displaying inline values (Closed)

Created:
4 years, 10 months ago by lushnikov
Modified:
4 years, 10 months ago
Reviewers:
pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

DevTools: editor should not loose scroll position when displaying inline values The bug happens due to the following reasons: a) CodeMirror requires manual scroll restoring after it is attached to DOM. It is usually done via "refresh" method call, but we optimize this and restore scroll position via custom super-fast logic, written in CodeMirrorTExtEditor.onResize. b) if a codeMirror.operation is called on unitialized CodeMirror instance, then scroll position is lost. This patch post-pones inline value processing until textEditor is initialized. BUG=499889 R=pfeldman Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197273

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
lushnikov
ptal
4 years, 10 months ago (2015-06-17 13:43:15 UTC) #1
pfeldman
lgtm
4 years, 10 months ago (2015-06-17 15:38:32 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178063005/1
4 years, 10 months ago (2015-06-17 15:39:33 UTC) #4
commit-bot: I haz the power
4 years, 10 months ago (2015-06-17 19:26:36 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197273

Powered by Google App Engine
This is Rietveld 408576698