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

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 659403006: DevTools: do not consider ? a shortcut while editing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 function messageAdded(event) 384 function messageAdded(event)
385 { 385 {
386 var message = /** @type {!WebInspector.Console.Message} */ (event.da ta); 386 var message = /** @type {!WebInspector.Console.Message} */ (event.da ta);
387 if (message.show) 387 if (message.show)
388 WebInspector.console.show(); 388 WebInspector.console.show();
389 } 389 }
390 }, 390 },
391 391
392 _documentClick: function(event) 392 _documentClick: function(event)
393 { 393 {
394 var target = event.deepElementFromPoint(); 394 var target = event.target;
395 if (target.shadowRoot)
396 target = event.deepElementFromPoint();
397 if (!target)
398 return;
399
395 var anchor = target.enclosingNodeOrSelfWithNodeName("a"); 400 var anchor = target.enclosingNodeOrSelfWithNodeName("a");
396 if (!anchor || !anchor.href) 401 if (!anchor || !anchor.href)
397 return; 402 return;
398 403
399 // Prevent the link from navigating, since we don't do any navigation by following links normally. 404 // Prevent the link from navigating, since we don't do any navigation by following links normally.
400 event.consume(true); 405 event.consume(true);
401 406
402 if (anchor.preventFollow) 407 if (anchor.preventFollow)
403 return; 408 return;
404 409
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 /** 893 /**
889 * @param {!WebInspector.Event} event 894 * @param {!WebInspector.Event} event
890 */ 895 */
891 _inspectNode: function(event) 896 _inspectNode: function(event)
892 { 897 {
893 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 898 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
894 } 899 }
895 } 900 }
896 901
897 new WebInspector.Main(); 902 new WebInspector.Main();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsTreeOutline.js ('k') | Source/devtools/front_end/resources/ResourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698