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

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

Issue 2519213002: [DevTools] Remove preventFollow and special checks for links throughout frontend. (Closed)
Patch Set: Created 4 years 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
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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 var targetElement = event.deepElementFromPoint(); 1247 var targetElement = event.deepElementFromPoint();
1248 if (targetElement && !targetElement.isComponentSelectionCollapsed()) 1248 if (targetElement && !targetElement.isComponentSelectionCollapsed())
1249 return; 1249 return;
1250 1250
1251 if (!event.target.isComponentSelectionCollapsed()) 1251 if (!event.target.isComponentSelectionCollapsed())
1252 return; 1252 return;
1253 1253
1254 if (this._checkWillCancelEditing()) 1254 if (this._checkWillCancelEditing())
1255 return; 1255 return;
1256 1256
1257 if (event.target.enclosingNodeOrSelfWithNodeName('a'))
1258 return;
1259
1260 if (event.target.classList.contains('header') || this.element.classList.cont ains('read-only') || 1257 if (event.target.classList.contains('header') || this.element.classList.cont ains('read-only') ||
1261 event.target.enclosingNodeOrSelfWithClass('media')) { 1258 event.target.enclosingNodeOrSelfWithClass('media')) {
1262 event.consume(); 1259 event.consume();
1263 return; 1260 return;
1264 } 1261 }
1265 this.addNewBlankProperty().startEditing(); 1262 this.addNewBlankProperty().startEditing();
1266 event.consume(true); 1263 event.consume(true);
1267 } 1264 }
1268 1265
1269 /** 1266 /**
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 } 3056 }
3060 3057
3061 /** 3058 /**
3062 * @override 3059 * @override
3063 * @return {!UI.ToolbarItem} 3060 * @return {!UI.ToolbarItem}
3064 */ 3061 */
3065 item() { 3062 item() {
3066 return this._button; 3063 return this._button;
3067 } 3064 }
3068 }; 3065 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698