Changeset 173433 in webkit
- Timestamp:
- Sep 9, 2014, 10:34:30 AM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r173432 r173433 1 2014-09-09 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Fix ESLint eqeqeq warnings 4 https://bugs.webkit.org/show_bug.cgi?id=136658 5 6 Reviewed by Andy Estes. 7 8 * UserInterface/Controllers/DOMTreeManager.js: 9 (WebInspector.DOMTreeManager.prototype.mycallback): 10 (WebInspector.DOMTreeManager.prototype.searchResult): 11 * UserInterface/Models/Breakpoint.js: 12 (WebInspector.Breakpoint.prototype.clearActions): 13 * UserInterface/Models/DOMTree.js: 14 (WebInspector.DOMTree.prototype._requestRootDOMNode.rootObjectAvailable): 15 (WebInspector.DOMTree.prototype._requestRootDOMNode.rootDOMNodeAvailable): 16 (WebInspector.DOMTree.prototype._requestRootDOMNode.dispatchCallbacks): 17 (WebInspector.DOMTree.prototype._requestRootDOMNode): 18 * UserInterface/Models/ProbeSet.js: 19 (WebInspector.ProbeSet.prototype.removeProbe): 20 * UserInterface/Models/ProbeSetDataTable.js: 21 (WebInspector.ProbeSetDataTable.prototype.addSampleForProbe): 22 * UserInterface/Views/CodeMirrorAdditions.js: 23 * UserInterface/Views/CookieStorageContentView.js: 24 (WebInspector.CookieStorageContentView.prototype._filterCookies): 25 (WebInspector.cookieMatchesResourceURL): 26 * UserInterface/Views/DOMStorageContentView.js: 27 (WebInspector.DOMStorageContentView.prototype._editingCallback): 28 * UserInterface/Views/DOMTreeElement.js: 29 (WebInspector.DOMTreeElement): 30 (WebInspector.DOMTreeElement.prototype._updateChildren): 31 (WebInspector.DOMTreeElement.prototype._startEditingTarget): 32 (WebInspector.DOMTreeElement.prototype._textNodeEditingCommitted): 33 * UserInterface/Views/DataGrid.js: 34 (WebInspector.DataGrid.prototype._resizerDragging): 35 * UserInterface/Views/DatabaseContentView.js: 36 (WebInspector.DatabaseContentView.prototype._queryError): 37 * UserInterface/Views/DetailsSectionSimpleRow.js: 38 (.valueElementClicked): 39 (WebInspector.DetailsSectionSimpleRow): 40 * UserInterface/Views/Slider.js: 41 (WebInspector.Slider.prototype.get _maxX): 42 * UserInterface/Views/TreeOutline.js: 43 (TreeElement.prototype.expand): 44 1 45 2014-09-09 Jono Wells <jonowells@apple.com> 2 46 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js
r172662 r173433 322 322 return; 323 323 } 324 if (nodeIds.length != 1)324 if (nodeIds.length !== 1) 325 325 return; 326 326 -
trunk/Source/WebInspectorUI/UserInterface/Models/Breakpoint.js
r172204 r173433 352 352 this._actions = []; 353 353 else 354 this._actions = this._actions.filter(function(action) { action.type != type; });354 this._actions = this._actions.filter(function(action) { action.type !== type; }); 355 355 356 356 this.dispatchEventToListeners(WebInspector.Breakpoint.Event.ActionsDidChange); -
trunk/Source/WebInspectorUI/UserInterface/Models/DOMTree.js
r164543 r173433 141 141 { 142 142 // Check to see if we have been invalidated (if the callbacks were cleared). 143 if (!this._pendingRootDOMNodeRequests || requestIdentifier != this._requestIdentifier)143 if (!this._pendingRootDOMNodeRequests || requestIdentifier !== this._requestIdentifier) 144 144 return; 145 145 … … 162 162 163 163 // Check to see if we have been invalidated (if the callbacks were cleared). 164 if (!this._pendingRootDOMNodeRequests || requestIdentifier != this._requestIdentifier)164 if (!this._pendingRootDOMNodeRequests || requestIdentifier !== this._requestIdentifier) 165 165 return; 166 166 … … 194 194 { 195 195 // Check to see if we have been invalidated (if the callbacks were cleared). 196 if (!this._pendingRootDOMNodeRequests || requestIdentifier != this._requestIdentifier)196 if (!this._pendingRootDOMNodeRequests || requestIdentifier !== this._requestIdentifier) 197 197 return; 198 198 -
trunk/Source/WebInspectorUI/UserInterface/Models/ProbeSet.js
r164543 r173433 110 110 { 111 111 console.assert(probe instanceof WebInspector.Probe, "Tried to remove non-probe ", probe, " to probe group", this); 112 console.assert(this._probes.indexOf(probe) != -1, "Tried to remove probe", probe, " not in group ", this);112 console.assert(this._probes.indexOf(probe) !== -1, "Tried to remove probe", probe, " not in group ", this); 113 113 console.assert(this._probesByIdentifier.has(probe.id), "Tried to remove probe", probe, " not in group ", this); 114 114 -
trunk/Source/WebInspectorUI/UserInterface/Models/ProbeSetDataTable.js
r164543 r173433 75 75 // Eagerly save the frame if the batch identifier differs, or we know the frame is full. 76 76 // Create a new frame when the batch identifier differs. 77 if (sample.batchId != this._previousBatchIdentifier) {77 if (sample.batchId !== this._previousBatchIdentifier) { 78 78 if (this._openFrame) { 79 79 this._openFrame.fillMissingValues(this._probeSet); … … 86 86 console.assert(this._openFrame, "Should always have an open frame before adding sample.", this, probe, sample); 87 87 this._openFrame.addSampleForProbe(probe, sample); 88 if (this._openFrame.count == this._probeSet.probes.length) {88 if (this._openFrame.count === this._probeSet.probes.length) { 89 89 this.addFrame(this._openFrame); 90 90 this._openFrame = null; -
trunk/Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js
r173431 r173433 140 140 // Parse characters until the end of the stream/line or a proper end quote character. 141 141 while ((ch = stream.next()) != null) { 142 if (ch == quote && !escaped) {142 if (ch === quote && !escaped) { 143 143 reachedEndOfURL = true; 144 144 break; … … 262 262 CodeMirror.defineExtension("hasLineClass", function(line, where, className) { 263 263 // This matches the arguments to addLineClass and removeLineClass. 264 var classProperty = (where === "text" ? "textClass" : (where == "background" ? "bgClass" : "wrapClass"));264 var classProperty = (where === "text" ? "textClass" : (where === "background" ? "bgClass" : "wrapClass")); 265 265 var lineInfo = this.lineInfo(line); 266 266 if (!lineInfo) … … 387 387 388 388 // Fix up the selection so it follows the increase or decrease in the replacement length. 389 if (previousLength != newLength) {389 if (previousLength !== newLength) { 390 390 if (selectionStart.line === from.line && selectionStart.ch > from.ch) 391 391 selectionStart.ch += newLength - previousLength; -
trunk/Source/WebInspectorUI/UserInterface/Views/CookieStorageContentView.js
r165487 r173433 170 170 // we get the URLs from. 171 171 var mainResourceURLComponents = frames[i].mainResource.urlComponents; 172 if (mainResourceURLComponents && mainResourceURLComponents.host && mainResourceURLComponents.host == this.representedObject.host)172 if (mainResourceURLComponents && mainResourceURLComponents.host && mainResourceURLComponents.host === this.representedObject.host) 173 173 resourcesForDomain.push(frames[i].mainResource.url); 174 174 } … … 250 250 251 251 return (parsedURL.path.startsWith(cookie.path) 252 && (!cookie.port || parsedURL.port == cookie.port)252 && (!cookie.port || parsedURL.port === cookie.port) 253 253 && (!cookie.secure || parsedURL.scheme === "https")); 254 254 } -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMStorageContentView.js
r164543 r173433 191 191 var enteredValue = newText.trim(); 192 192 var columnIndex = this._dataGrid.orderedColumns.indexOf(columnIdentifier); 193 var mayMoveToNextRow = moveDirection === "forward" && columnIndex == this._dataGrid.orderedColumns.length - 1;194 var mayMoveToPreviousRow = moveDirection === "backward" && columnIndex == 0;193 var mayMoveToNextRow = moveDirection === "forward" && columnIndex === this._dataGrid.orderedColumns.length - 1; 194 var mayMoveToPreviousRow = moveDirection === "backward" && columnIndex === 0; 195 195 var willMoveRow = mayMoveToNextRow || mayMoveToPreviousRow; 196 196 var shouldCommitRow = willMoveRow && key.length && value.length; … … 234 234 editingNode.element.classList.remove(WebInspector.DOMStorageContentView.DuplicateKeySyleClassName); 235 235 236 if (editingNode.__previousKeyValue != key)236 if (editingNode.__previousKeyValue !== key) 237 237 domStorage.removeItem(editingNode.__previousKeyValue); 238 238 -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
r173431 r173433 37 37 TreeElement.call(this, "", node, hasChildrenOverride); 38 38 39 if (this.representedObject.nodeType() == Node.ELEMENT_NODE && !elementCloseTag)39 if (this.representedObject.nodeType() === Node.ELEMENT_NODE && !elementCloseTag) 40 40 this._canAddAttributes = true; 41 41 this._searchQuery = null; … … 374 374 375 375 var lastChild = this.children.lastValue; 376 if (this.representedObject.nodeType() == Node.ELEMENT_NODE && (!lastChild || !lastChild._elementCloseTag))376 if (this.representedObject.nodeType() === Node.ELEMENT_NODE && (!lastChild || !lastChild._elementCloseTag)) 377 377 this.insertChildElement(this.representedObject, this.children.length, true); 378 378 … … 537 537 _startEditingTarget: function(eventTarget) 538 538 { 539 if (this.treeOutline.selectedDOMNode() != this.representedObject)540 return; 541 542 if (this.representedObject.nodeType() != Node.ELEMENT_NODE && this.representedObject.nodeType() != Node.TEXT_NODE)539 if (this.treeOutline.selectedDOMNode() !== this.representedObject) 540 return; 541 542 if (this.representedObject.nodeType() !== Node.ELEMENT_NODE && this.representedObject.nodeType() !== Node.TEXT_NODE) 543 543 return false; 544 544 … … 940 940 // has a single child, and that child is a text node. 941 941 textNode = this.representedObject.firstChild; 942 } else if (this.representedObject.nodeType() == Node.TEXT_NODE)942 } else if (this.representedObject.nodeType() === Node.TEXT_NODE) 943 943 textNode = this.representedObject; 944 944 -
trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js
r172241 r173433 1026 1026 var collapserColumnIdentifier = null; 1027 1027 for (var [identifier, column] of this.columns) { 1028 if (column["collapsesGroup"] == columnGroup) {1028 if (column["collapsesGroup"] === columnGroup) { 1029 1029 collapserColumnIdentifier = identifier; 1030 1030 break; … … 1263 1263 1264 1264 // Differences for other resize methods 1265 if (this.resizeMethod == WebInspector.DataGrid.ResizeMethod.Last) {1265 if (this.resizeMethod === WebInspector.DataGrid.ResizeMethod.Last) { 1266 1266 rightCellIndex = this.resizerElements.length; 1267 } else if (this.resizeMethod == WebInspector.DataGrid.ResizeMethod.First) {1267 } else if (this.resizeMethod === WebInspector.DataGrid.ResizeMethod.First) { 1268 1268 leftEdgeOfPreviousColumn += firstRowCells[leftCellIndex].offsetWidth - firstRowCells[0].offsetWidth; 1269 1269 leftCellIndex = 0; -
trunk/Source/WebInspectorUI/UserInterface/Views/DatabaseContentView.js
r173431 r173433 134 134 if (error.message) 135 135 var message = error.message; 136 else if (error.code == 2)136 else if (error.code === 2) 137 137 var message = WebInspector.UIString("Database no longer has expected version."); 138 138 else -
trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSectionSimpleRow.js
r164543 r173433 53 53 54 54 var currentRange = currentSelection.getRangeAt(0); 55 if (!currentRange || currentRange.startContainer == currentRange.endContainer)55 if (!currentRange || currentRange.startContainer === currentRange.endContainer) 56 56 return; 57 57 -
trunk/Source/WebInspectorUI/UserInterface/Views/Slider.js
r164543 r173433 130 130 get _maxX() 131 131 { 132 if (this.__maxX == 0 && document.body.contains(this._element))132 if (this.__maxX === 0 && document.body.contains(this._element)) 133 133 this.__maxX = this._element.offsetWidth - Math.ceil(WebInspector.Slider.KnobWidth / 2); 134 134 -
trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
r173431 r173433 847 847 if (this._listItemNode) { 848 848 this._listItemNode.classList.add("expanded"); 849 if (this._childrenListNode && this._childrenListNode.parentNode != this._listItemNode.parentNode)849 if (this._childrenListNode && this._childrenListNode.parentNode !== this._listItemNode.parentNode) 850 850 this.parent._childrenListNode.insertBefore(this._childrenListNode, this._listItemNode.nextSibling); 851 851 }
Note:
See TracChangeset
for help on using the changeset viewer.