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

Unified Diff: Source/devtools/front_end/UISourceCode.js

Issue 18341003: DevTools: [CodeMirror] Add syntax highlighting for some other languages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/UISourceCode.js
diff --git a/Source/devtools/front_end/UISourceCode.js b/Source/devtools/front_end/UISourceCode.js
index 0fb88a2927b285af2e2291efb79bdcb84d274e0b..9c48e4792eff4d3524fd16d85d9ed3ae2462f41d 100644
--- a/Source/devtools/front_end/UISourceCode.js
+++ b/Source/devtools/front_end/UISourceCode.js
@@ -533,7 +533,8 @@ WebInspector.UISourceCode.prototype = {
*/
setWorkingCopy: function(newWorkingCopy)
{
- this._mimeType = this.canonicalMimeType();
+ if (!this._mimeType)
+ this._mimeType = this.canonicalMimeType();
this._workingCopy = newWorkingCopy;
delete this._workingCopyGetter;
this.dispatchEventToListeners(WebInspector.UISourceCode.Events.WorkingCopyChanged);

Powered by Google App Engine
This is Rietveld 408576698