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

Unified Diff: Source/WebCore/inspector/front-end/UISourceCode.js

Issue 12622003: Merge 144463 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « Source/WebCore/inspector/front-end/ScriptsPanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/UISourceCode.js
===================================================================
--- Source/WebCore/inspector/front-end/UISourceCode.js (revision 145088)
+++ Source/WebCore/inspector/front-end/UISourceCode.js (working copy)
@@ -107,12 +107,15 @@
},
/**
- * @param {string} url
+ * @param {string} newName
*/
- urlChanged: function(url)
+ rename: function(newName)
{
- this._url = url;
- this._originURL = url;
+ if (!this._path.length)
+ return;
+ this._path[this._path.length - 1] = newName;
+ this._url = newName;
+ this._originURL = newName;
this._parsedURL = new WebInspector.ParsedURL(url);
this.dispatchEventToListeners(WebInspector.UISourceCode.Events.TitleChanged, null);
},
« no previous file with comments | « Source/WebCore/inspector/front-end/ScriptsPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698