Web Inspector: Do not create CodeMirror color/gradient markers in JavaScript resources
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Apr 2016 05:45:13 +0000 (05:45 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Apr 2016 05:45:13 +0000 (05:45 +0000)
commite3b8bfec49cbbe430b24140c6250cbb31a93659a
treea4c695373c38e4c046fd7b5c3ccc269fe1ce1856
parentf9b07ef8d3632f2b90733d648f5171f625735e69
Web Inspector: Do not create CodeMirror color/gradient markers in JavaScript resources
https://bugs.webkit.org/show_bug.cgi?id=156278
<rdar://problem/25570404>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-04-05
Reviewed by Timothy Hatcher.

* UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype._hasStyleSheetContents):
(WebInspector.SourceCodeTextEditor.prototype._updateEditableMarkers):
Only spend the time to create style markers for style sheet contents.

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