Changeset 50303 in webkit
- Timestamp:
- Oct 29, 2009 2:59:33 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r50301 r50303 1 2009-10-29 Timothy Hatcher <timothy@apple.com> 2 3 Fix tabbing through element attributes in the Web Insector. 4 5 https://bugs.webkit.org/show_bug.cgi?id=30429 6 7 Reviewed by Pavel Feldman. 8 9 * inspector/front-end/ElementsTreeOutline.js: 10 (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted): Don't call _updateTitle, 11 it is called for us when removeAttribute succeeds in the back-end. 12 (WebInspector.ElementsTreeElement.prototype._textNodeEditingCommitted): Ditto except for nodeValue. 13 (WebInspector.ElementsTreeElement.prototype._editingCancelled): Don't call _updateTitle, editing code reverts. 14 (WebInspector.ElementsTreeElement.prototype._updateTitle): Return early if we are editing. 15 1 16 2009-10-29 Dan Bernstein <mitz@apple.com> 2 17 -
trunk/WebCore/inspector/front-end/ElementsTreeOutline.js
r50163 r50303 732 732 if (!parseElement.hasAttributes()) { 733 733 this.representedObject.removeAttribute(attributeName); 734 this._updateTitle();735 734 moveToNextAttributeIfNeeded.call(this); 736 735 return; … … 749 748 this.representedObject.removeAttribute(attributeName); 750 749 751 this._updateTitle();752 753 750 this.treeOutline.focusedNodeChanged(true); 754 751 … … 769 766 770 767 textNode.nodeValue = newText; 771 this._updateTitle(); 768 769 // No need to call _updateTitle here, it will be called after the nodeValue is committed. 772 770 }, 773 771 … … 776 774 delete this._editing; 777 775 778 this._updateTitle();776 // No need to call _updateTitle here, the editing code will revert to the original text. 779 777 }, 780 778 781 779 _updateTitle: function() 782 780 { 781 // If we are editing, return early to prevent canceling the edit. 782 // After editing is committed _updateTitle will be called. 783 if (this._editing) 784 return; 785 783 786 var title = this._nodeTitleInfo(this.representedObject, this.hasChildren, WebInspector.linkifyURL).title; 784 787 this.title = "<span class=\"highlight\">" + title + "</span>";
Note: See TracChangeset
for help on using the changeset viewer.