| 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);
|
| },
|
|
|