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

Issue 2769843003: DevTools: split text_utils out of common module (Closed)

Created:
3 years, 9 months ago by lushnikov
Modified:
3 years, 9 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, blink-reviews-style_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

DevTools: split text_utils out of common module This patch introduces a new 'text_utils' module which has text-related classes from 'common' module. We always had a need to have text_utils in formatter worker, but since it was part of a big 'common' module, re-implemented parts of it functionality inside worker. This is a pre-step to switching javascript outline from tokenizer to AST. Generating AST with locations for every node is time-consuming; instead, we'd like to simply re-use TextUtils.TextCursor. BUG=438203 R=dgozman Review-Url: https://codereview.chromium.org/2769843003 Cr-Commit-Position: refs/heads/master@{#459357} Committed: https://chromium.googlesource.com/chromium/src/+/da678dd14198b5dee5303e9d51d1ff883b4a8e12

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : rebaseline #

Patch Set 4 : rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -1221 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/live-edit-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/search/source-frame-search.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/json-balanced-tokenizer.html View 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/json-balanced-tokenizer-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/split-string-by-regexes.html View 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/split-string-by-regexes-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/utilities-highlight-results.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/editor-test.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-enter-behaviour.html View 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-home-button.html View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-indent-autodetection.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-line-breaks.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-mark-clean.html View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-selection-to-search.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-smart-braces.html View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/editor/text-editor-word-jumps.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles/original-content-provider.html View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt View 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sass/sass-test.js View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sass/test-find-node-for-position.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/autocomplete-css.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/autocomplete-hide-on-smart-brace.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/autocomplete-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/bezier-swatch-position.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/color-swatch-position.html View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/possible-breakpoints.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit-no-reveal.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tabbed-editors-history.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/BreakpointManager.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/ContentProvider.js View 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/devtools/front_end/common/Text.js View 1 chunk +0 lines, -179 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/common/TextRange.js View 1 chunk +0 lines, -325 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/common/TextUtils.js View 1 chunk +0 lines, -282 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/module.json View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/CoverageModel.js View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js View 7 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker/AcornTokenizer.js View 3 chunks +7 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker/module.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/heap_snapshot_worker/HeapSnapshotLoader.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowModel.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inline_editor/ColorSwatch.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inspector.json View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/XMLView.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/ASTSourceMap.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/SASSProcessor.js View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sass/SASSSupport.js View 19 chunks +33 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSMedia.js View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js View 8 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js View 8 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSRule.js View 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleDeclaration.js View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js View 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js View 15 chunks +21 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js View 6 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/EditingLocationHistoryManager.js View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/ScriptFormatterEditorAction.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js View 8 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js View 1 2 23 chunks +36 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/TextEditorAutocompleteController.js View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/module.json View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/text_utils/Text.js View 1 6 chunks +13 lines, -15 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/text_utils/TextRange.js View 15 chunks +35 lines, -35 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/text_utils/TextUtils.js View 9 chunks +11 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/text_utils/module.json View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineLoader.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SyntaxHighlighter.js View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/unit_test_runner.json View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/extract_module/extract_module.js View 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
lushnikov
please, take a look
3 years, 9 months ago (2017-03-22 21:56:04 UTC) #1
dgozman
https://codereview.chromium.org/2769843003/diff/1/third_party/WebKit/Source/devtools/front_end/text_utils/Text.js File third_party/WebKit/Source/devtools/front_end/text_utils/Text.js (right): https://codereview.chromium.org/2769843003/diff/1/third_party/WebKit/Source/devtools/front_end/text_utils/Text.js#newcode5 third_party/WebKit/Source/devtools/front_end/text_utils/Text.js:5: self['TextUtils'] = self['TextUtils'] || {}; Can we remove this ...
3 years, 9 months ago (2017-03-22 22:54:12 UTC) #5
lushnikov
all done https://codereview.chromium.org/2769843003/diff/1/third_party/WebKit/Source/devtools/front_end/text_utils/Text.js File third_party/WebKit/Source/devtools/front_end/text_utils/Text.js (right): https://codereview.chromium.org/2769843003/diff/1/third_party/WebKit/Source/devtools/front_end/text_utils/Text.js#newcode5 third_party/WebKit/Source/devtools/front_end/text_utils/Text.js:5: self['TextUtils'] = self['TextUtils'] || {}; On 2017/03/22 ...
3 years, 9 months ago (2017-03-23 00:50:50 UTC) #8
dgozman
lgtm
3 years, 9 months ago (2017-03-23 21:50:12 UTC) #13
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/2769843003/40001
3 years, 9 months ago (2017-03-23 22:51:10 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/334960)
3 years, 9 months ago (2017-03-24 00:27:51 UTC) #18
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/2769843003/60001
3 years, 9 months ago (2017-03-24 01:10:42 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 04:05:26 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/da678dd14198b5dee5303e9d51d1...

Powered by Google App Engine
This is Rietveld 408576698