Changeset 139873 in webkit
- Timestamp:
- Jan 16, 2013 5:11:28 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r139871 r139873 1 2013-01-16 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: fix Сlosure warnings in devTools front-end 4 https://bugs.webkit.org/show_bug.cgi?id=106993 5 6 Reviewed by Vsevolod Vlasov. 7 8 Add missing annotations and rename Element.remove() method to avoid collision with HTMLSelectElement.remove() method. 9 10 No new tests: no change in behaviour. 11 12 * inspector/front-end/DOMAgent.js: 13 (WebInspector.DOMNode.prototype.hasChildNodes): 14 (WebInspector.DOMNode.prototype.getChildNodes): 15 * inspector/front-end/DOMExtension.js: 16 (Element.prototype.removeSelf): 17 (removeSubsequentNodes): 18 * inspector/front-end/DefaultTextEditor.js: 19 * inspector/front-end/SettingsScreen.js: 20 (WebInspector.OverridesSettingsTab): 21 * inspector/front-end/SourceTokenizer.js: 22 (WebInspector.SourceTokenizer): 23 1 24 2013-01-16 Andrey Lushnikov <lushnikov@chromium.org> 2 25 -
trunk/Source/WebCore/inspector/front-end/DOMAgent.js
r139429 r139873 136 136 hasChildNodes: function() 137 137 { 138 return this._childNodeCount > 0 || !!this._shadowRoots.length || this._templateContent;138 return this._childNodeCount > 0 || !!this._shadowRoots.length || !!this._templateContent; 139 139 }, 140 140 … … 298 298 } 299 299 300 DOMAgent.requestChildNodes(this.id, mycallback.bind(this));300 DOMAgent.requestChildNodes(this.id, undefined, mycallback.bind(this)); 301 301 }, 302 302 -
trunk/Source/WebCore/inspector/front-end/DOMExtension.js
r139871 r139873 212 212 } 213 213 214 Element.prototype.remove = function()214 Element.prototype.removeSelf = function() 215 215 { 216 216 if (this.parentElement) … … 218 218 } 219 219 220 CharacterData.prototype.remove = Element.prototype.remove;221 DocumentType.prototype.remove = Element.prototype.remove;220 CharacterData.prototype.removeSelf = Element.prototype.removeSelf; 221 DocumentType.prototype.removeSelf = Element.prototype.removeSelf; 222 222 223 223 /** … … 230 230 var nodeToRemove = node; 231 231 node = node.nextSibling; 232 nodeToRemove.remove ();232 nodeToRemove.removeSelf(); 233 233 } 234 234 } -
trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js
r139844 r139873 1991 1991 * @param {Element} lineRow 1992 1992 * @param {string} line 1993 * @param {Array.<{startColumn: number, endColumn: number, cssClass:string}>} ranges1993 * @param {Array.<{startColumn: number, endColumn: number, token: ?string}>} ranges 1994 1994 */ 1995 1995 _renderRanges: function(lineRow, line, ranges) -
trunk/Source/WebCore/inspector/front-end/SettingsScreen.js
r138144 r139873 425 425 this._view = new WebInspector.OverridesView(); 426 426 this.containerElement.parentElement.appendChild(this._view.containerElement); 427 this.containerElement.remove ();427 this.containerElement.removeSelf(); 428 428 this.containerElement = this._view.containerElement; 429 429 } -
trunk/Source/WebCore/inspector/front-end/SourceTokenizer.js
r127864 r139873 35 35 WebInspector.SourceTokenizer = function() 36 36 { 37 /** @type {?string} */ 38 this.tokenType = null; 37 39 } 38 40 … … 62 64 }, 63 65 66 /** 67 * @param {number} cursor 68 * @return {string} 69 */ 64 70 _charAt: function(cursor) 65 71 { … … 71 77 }, 72 78 79 /** 80 * @param {number} cursor 81 * @return {number} 82 */ 73 83 nextToken: function(cursor) 74 84 { … … 89 99 } 90 100 101 /** 102 * @return {WebInspector.SourceTokenizer.Registry} 103 */ 91 104 WebInspector.SourceTokenizer.Registry.getInstance = function() 92 105 { … … 97 110 98 111 WebInspector.SourceTokenizer.Registry.prototype = { 112 /** 113 * @param {string} mimeType 114 * @return {WebInspector.SourceTokenizer} 115 */ 99 116 getTokenizer: function(mimeType) 100 117 {
Note: See TracChangeset
for help on using the changeset viewer.