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

Issue 2801543002: DevTools: simplify ScriptFormatterEditorAction (Closed)

Created:
3 years, 8 months ago by caseq
Modified:
3 years, 8 months ago
Reviewers:
dgozman, lushnikov, pfeldman
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, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify ScriptFormatterEditorAction - use symbols to map scripts and UISourceCodes to FormatData; - make FormatterScriptMapping independent on both debugger model and editor action; - make FormatData agnostic of source code type, just keep original and formatted source codes. Review-Url: https://codereview.chromium.org/2801543002 Cr-Commit-Position: refs/heads/master@{#462756} Committed: https://chromium.googlesource.com/chromium/src/+/ffd62e54dade66c69d8db05c71cf5a0a2f923012

Patch Set 1 #

Total comments: 7

Patch Set 2 : renamed FormatData, added static method to get it #

Patch Set 3 : fixed cleanup #

Messages

Total messages: 13 (6 generated)
caseq
3 years, 8 months ago (2017-04-05 01:19:01 UTC) #2
pfeldman
https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js File third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js (right): https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js#newcode37 third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js:37: var scripts = Sources.ScriptFormatterEditorAction._scriptsForUISourceCode(formatData.originalSourceCode); You are formatting UISourceCodes, not ...
3 years, 8 months ago (2017-04-05 18:23:36 UTC) #4
lushnikov
https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js File third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js (right): https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js#newcode33 third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js:33: var formatData = uiSourceCode[Sources.ScriptFormatterEditorAction._formatDataSymbol]; don't you want to save ...
3 years, 8 months ago (2017-04-05 18:29:48 UTC) #5
pfeldman
https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js File third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js (right): https://codereview.chromium.org/2801543002/diff/1/third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js#newcode16 third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js:16: var formatData = script && script[Sources.ScriptFormatterEditorAction._formatDataSymbol]; type cast it? ...
3 years, 8 months ago (2017-04-06 00:46:26 UTC) #6
pfeldman
lgtm
3 years, 8 months ago (2017-04-06 00:46:33 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/2801543002/40001
3 years, 8 months ago (2017-04-07 01:03:24 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 05:01:18 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ffd62e54dade66c69d8db05c71cf...

Powered by Google App Engine
This is Rietveld 408576698