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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2609243002: DevTools: Preserve the selection across shadow DOM in StylesSideBar (Closed)
Patch Set: merge Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 return; 1234 return;
1235 1235
1236 var targetElement = event.deepElementFromPoint(); 1236 var targetElement = event.deepElementFromPoint();
1237 if (targetElement && !targetElement.isComponentSelectionCollapsed()) 1237 if (targetElement && !targetElement.isComponentSelectionCollapsed())
1238 return; 1238 return;
1239 1239
1240 if (!event.target.isComponentSelectionCollapsed()) 1240 if (!event.target.isComponentSelectionCollapsed())
1241 return; 1241 return;
1242 1242
1243 if (this.propertiesTreeOutline.element.shadowRoot.firstChild && 1243 if (this.propertiesTreeOutline.element.shadowRoot.firstChild &&
1244 this.propertiesTreeOutline.element.shadowRoot.firstChild.isComponentSele ctionCollapsed()) 1244 !this.propertiesTreeOutline.element.shadowRoot.firstChild.isComponentSel ectionCollapsed())
1245 return; 1245 return;
1246 1246
1247 if (this._checkWillCancelEditing()) 1247 if (this._checkWillCancelEditing())
1248 return; 1248 return;
1249 1249
1250 if (event.target.classList.contains('header') || this.element.classList.cont ains('read-only') || 1250 if (event.target.classList.contains('header') || this.element.classList.cont ains('read-only') ||
1251 event.target.enclosingNodeOrSelfWithClass('media')) { 1251 event.target.enclosingNodeOrSelfWithClass('media')) {
1252 event.consume(); 1252 event.consume();
1253 return; 1253 return;
1254 } 1254 }
(...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 } 3080 }
3081 3081
3082 /** 3082 /**
3083 * @override 3083 * @override
3084 * @return {!UI.ToolbarItem} 3084 * @return {!UI.ToolbarItem}
3085 */ 3085 */
3086 item() { 3086 item() {
3087 return this._button; 3087 return this._button;
3088 } 3088 }
3089 }; 3089 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698