| OLD | NEW |
| 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 if (treeOutline) | 861 if (treeOutline) |
| 862 treeOutline.handlePasteKeyboardEvent(event); | 862 treeOutline.handlePasteKeyboardEvent(event); |
| 863 }, | 863 }, |
| 864 | 864 |
| 865 /** | 865 /** |
| 866 * @param {!WebInspector.DOMNode} node | 866 * @param {!WebInspector.DOMNode} node |
| 867 * @return {!WebInspector.DOMNode} | 867 * @return {!WebInspector.DOMNode} |
| 868 */ | 868 */ |
| 869 _leaveUserAgentShadowDOM: function(node) | 869 _leaveUserAgentShadowDOM: function(node) |
| 870 { | 870 { |
| 871 var userAgentShadowRoot = node.ancestorUserAgentShadowRoot(); | 871 var userAgentShadowRoot; |
| 872 return userAgentShadowRoot ? /** @type {!WebInspector.DOMNode} */ (userA
gentShadowRoot.parentNode) : node; | 872 while ((userAgentShadowRoot = node.ancestorUserAgentShadowRoot()) && use
rAgentShadowRoot.parentNode) |
| 873 node = userAgentShadowRoot.parentNode; |
| 874 return node; |
| 873 }, | 875 }, |
| 874 | 876 |
| 875 /** | 877 /** |
| 876 * @param {!WebInspector.DOMNode} node | 878 * @param {!WebInspector.DOMNode} node |
| 877 */ | 879 */ |
| 878 revealAndSelectNode: function(node) | 880 revealAndSelectNode: function(node) |
| 879 { | 881 { |
| 880 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.isInInspectElementMode()) | 882 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.isInInspectElementMode()) |
| 881 WebInspector.inspectElementModeController.stopInspection(); | 883 WebInspector.inspectElementModeController.stopInspection(); |
| 882 | 884 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 */ | 1289 */ |
| 1288 wasShown: function() | 1290 wasShown: function() |
| 1289 { | 1291 { |
| 1290 this._toolbarItem.setToggled(true); | 1292 this._toolbarItem.setToggled(true); |
| 1291 this._nodeChanged(); | 1293 this._nodeChanged(); |
| 1292 WebInspector.ThrottledWidget.prototype.wasShown.call(this); | 1294 WebInspector.ThrottledWidget.prototype.wasShown.call(this); |
| 1293 }, | 1295 }, |
| 1294 | 1296 |
| 1295 __proto__: WebInspector.ThrottledWidget.prototype | 1297 __proto__: WebInspector.ThrottledWidget.prototype |
| 1296 } | 1298 } |
| OLD | NEW |