Changeset 116305 in webkit
- Timestamp:
- May 7, 2012 6:38:40 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116298 r116305 1 2012-05-07 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: [TextPrompt] Event listeners and CSS style are not removed on detachment 4 https://bugs.webkit.org/show_bug.cgi?id=85789 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/front-end/TextPrompt.js: 9 (WebInspector.TextPrompt.prototype._attachInternal): 10 (WebInspector.TextPrompt.prototype.detach): 11 1 12 2012-05-07 Csaba Osztrogonác <ossy@webkit.org> 2 13 -
trunk/Source/WebCore/inspector/front-end/TextPrompt.js
r114880 r116305 113 113 this._element.addStyleClass("text-prompt"); 114 114 this._element.addEventListener("keydown", this._boundOnKeyDown, false); 115 this._element.addEventListener("selectstart", this._ selectStart.bind(this), false);115 this._element.addEventListener("selectstart", this._boundSelectStart, false); 116 116 117 117 if (typeof this._suggestBoxClassName === "string") … … 126 126 this.proxyElement.parentElement.insertBefore(this._element, this.proxyElement); 127 127 this.proxyElement.parentElement.removeChild(this.proxyElement); 128 this._element.removeStyleClass("text-prompt"); 129 this._element.removeEventListener("keydown", this._boundOnKeyDown, false); 130 this._element.removeEventListener("selectstart", this._boundSelectStart, false); 128 131 delete this._proxyElement; 129 132 WebInspector.restoreFocusFromElement(this._element);
Note: See TracChangeset
for help on using the changeset viewer.