Web Inspector: Remove largest common indentation spacing in debugger popover
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Aug 2016 06:21:05 +0000 (06:21 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Aug 2016 06:21:05 +0000 (06:21 +0000)
commit782a0d1a708f64e67a2f21a17f2be5e48aa70e5c
tree40fc27d7c78f5b0414e05eed20d3be9b992c4996
parent2a7aed43f6111e4519d57dcef1daa2e6658378fa
Web Inspector: Remove largest common indentation spacing in debugger popover
https://bugs.webkit.org/show_bug.cgi?id=161417

Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-08-30
Reviewed by Joseph Pecoraro.

* UserInterface/Views/SourceCodeTextEditor.css:
(.popover .debugger-popover-content.function > .body):
(.popover .debugger-popover-content.function > .body .CodeMirror):

* UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype._showPopoverForFunction.didGetDetails):
Use CodeMirror and FormatterWorker to display a non-editable popover.

* UserInterface/Workers/Formatter/FormatterWorker.js:
(FormatterWorker.prototype.formatJavaScript):
Reworked logic to always attempt to format by wrapping content in "(...)".  This is
necessary for unnamed functions, since they are not valid programs by themselves.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.css
Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js
Source/WebInspectorUI/UserInterface/Workers/Formatter/FormatterWorker.js