Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js

Issue 2778873003: DevTools: Convert TextEditor from Interface to Abstract class (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
index d5492c6ad3d960b075018923be879930be00870b..b7d7576edc8af9331bc0d67f45b121054f9c12c9 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
@@ -777,11 +777,11 @@ Elements.ElementsTreeElement = class extends UI.TreeElement {
{commit: commit.bind(this), cancel: dispose.bind(this), editor: editor, resize: resize.bind(this)};
resize.call(this);
- editor.widget().show(this._htmlEditElement);
+ editor.show(this._htmlEditElement);
editor.setText(initialValue);
- editor.widget().focus();
- editor.widget().element.addEventListener('blur', this._editing.commit, true);
- editor.widget().element.addEventListener('keydown', keydown.bind(this), true);
+ editor.focus();
+ editor.element.addEventListener('blur', this._editing.commit, true);
+ editor.element.addEventListener('keydown', keydown.bind(this), true);
this.treeOutline.setMultilineEditing(this._editing);
}
@@ -806,8 +806,8 @@ Elements.ElementsTreeElement = class extends UI.TreeElement {
* @this {Elements.ElementsTreeElement}
*/
function dispose() {
- this._editing.editor.widget().element.removeEventListener('blur', this._editing.commit, true);
- this._editing.editor.widget().detach();
+ this._editing.editor.element.removeEventListener('blur', this._editing.commit, true);
+ this._editing.editor.detach();
delete this._editing;
this.listItemElement.classList.remove('editing-as-html');

Powered by Google App Engine
This is Rietveld 408576698