| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(); |
| OLD | NEW |