Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Inspector: Add experimental feature to enable aggressive limits o…
…n the length of lines we let CodeMirror process/format https://bugs.webkit.org/show_bug.cgi?id=251401 rdar://104840214 Reviewed by Devin Rousso and Justin Michaud. In select cases, we are finding that Web Inspector is effectively unusable on some sites with many source files with very longs lines of source code. The highlighting of very longs lines of code accounts for upwards of 30 seconds of delay for very long lines of code. While we investigate further improvements we can make to solve this problem, we are adding an experimental setting that enforces very low line limits for highlight, as well as for determining the hovered token. These two changes will unblock developers encountering this issue when they enable the added experimental setting. * Source/WebInspectorUI/UserInterface/Base/Setting.js: * Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js: (WI.CodeMirrorTokenTrackingController.prototype._updateHoveredTokenInfo): * Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js: (WI.SettingsTabContentView.prototype._createExperimentalSettingsView): * Source/WebInspectorUI/UserInterface/Views/TextEditor.js: (WI.TextEditor): Canonical link: https://commits.webkit.org/259603@main
- Loading branch information
1 parent
a5f1b1e
commit b79f163
Showing
4 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters