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

Unified Diff: Source/devtools/front_end/elements/ElementsTreeOutline.js

Issue 397303002: DevTools: [Elements] Implement shortcut-based node cut-copy-pasting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add visual feedback for nodes in the clipboard Created 6 years, 5 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: Source/devtools/front_end/elements/ElementsTreeOutline.js
diff --git a/Source/devtools/front_end/elements/ElementsTreeOutline.js b/Source/devtools/front_end/elements/ElementsTreeOutline.js
index 9cc824b7538c809813e0b79de20e8689cc68ab22..a7718901fe4d8859101f9d9268b86280c7c14ee9 100644
--- a/Source/devtools/front_end/elements/ElementsTreeOutline.js
+++ b/Source/devtools/front_end/elements/ElementsTreeOutline.js
@@ -350,6 +350,8 @@ WebInspector.ElementsTreeOutline.prototype = {
if (this._suppressRevealAndSelect)
return;
+ this._updateModifiedNodes();
+
if (!this._includeRootDOMNode && node === this.rootDOMNode && this.rootDOMNode)
node = this.rootDOMNode.firstChild;
if (!node)
@@ -920,6 +922,17 @@ WebInspector.ElementsTreeElement.prototype = {
}
},
+ /**
+ * @param {boolean} inClipboard
+ */
+ setInClipboard: function(inClipboard)
+ {
+ if (this._inClipboard === inClipboard)
+ return;
+ this._inClipboard = inClipboard;
+ this.listItemElement.classList.toggle("in-clipboard", inClipboard);
+ },
+
get hovered()
{
return this._hovered;

Powered by Google App Engine
This is Rietveld 408576698