Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b79f1636634fa4631caf970168c2bbe763edb3b7
      
https://github.com/WebKit/WebKit/commit/b79f1636634fa4631caf970168c2bbe763edb3b7
  Author: Patrick Angle <pan...@apple.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Base/Setting.js
    M 
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js
    M Source/WebInspectorUI/UserInterface/Views/CodeMirrorEditor.js
    M Source/WebInspectorUI/UserInterface/Views/SettingsTabContentView.js

  Log Message:
  -----------
  Web Inspector: Add experimental feature to enable aggressive limits on 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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to