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

Side by Side Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 413413003: DevTools: [Elements] Do not copy nodes if there is a non-collapsed selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 { 1210 {
1211 var treeOutline = this._treeOutlineForNode(node); 1211 var treeOutline = this._treeOutlineForNode(node);
1212 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node)); 1212 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node));
1213 }, 1213 },
1214 1214
1215 /** 1215 /**
1216 * @param {!Event} event 1216 * @param {!Event} event
1217 */ 1217 */
1218 handleCopyEvent: function(event) 1218 handleCopyEvent: function(event)
1219 { 1219 {
1220 if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("el ements-tree-outline"))
aandrey 2014/07/29 13:38:25 WebInspector.currentFocusElement() can return unde
1221 return;
1220 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); 1222 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode());
1221 if (treeOutline) 1223 if (treeOutline)
1222 treeOutline.handleCopyOrCutKeyboardEvent(false, event); 1224 treeOutline.handleCopyOrCutKeyboardEvent(false, event);
1223 }, 1225 },
1224 1226
1225 /** 1227 /**
1226 * @param {!Event} event 1228 * @param {!Event} event
1227 */ 1229 */
1228 handleCutEvent: function(event) 1230 handleCutEvent: function(event)
1229 { 1231 {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 /** 1534 /**
1533 * @suppressReceiverCheck 1535 * @suppressReceiverCheck
1534 * @this {Element} 1536 * @this {Element}
1535 */ 1537 */
1536 function parentElement() 1538 function parentElement()
1537 { 1539 {
1538 return this.parentElement; 1540 return this.parentElement;
1539 } 1541 }
1540 } 1542 }
1541 } 1543 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698