| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 if (treeOutline) | 752 if (treeOutline) |
| 753 treeOutline.handlePasteKeyboardEvent(event); | 753 treeOutline.handlePasteKeyboardEvent(event); |
| 754 }, | 754 }, |
| 755 | 755 |
| 756 /** | 756 /** |
| 757 * @param {!WebInspector.DOMNode} node | 757 * @param {!WebInspector.DOMNode} node |
| 758 * @return {!WebInspector.DOMNode} | 758 * @return {!WebInspector.DOMNode} |
| 759 */ | 759 */ |
| 760 _leaveUserAgentShadowDOM: function(node) | 760 _leaveUserAgentShadowDOM: function(node) |
| 761 { | 761 { |
| 762 var userAgentShadowRoot = node.ancestorUserAgentShadowRoot(); | 762 var closedShadowRoot = node.ancestorClosedShadowRoot(); |
| 763 return userAgentShadowRoot ? /** @type {!WebInspector.DOMNode} */ (userA
gentShadowRoot.parentNode) : node; | 763 return closedShadowRoot ? /** @type {!WebInspector.DOMNode} */ (closedSh
adowRoot.parentNode) : node; |
| 764 }, | 764 }, |
| 765 | 765 |
| 766 /** | 766 /** |
| 767 * @param {!WebInspector.DOMNode} node | 767 * @param {!WebInspector.DOMNode} node |
| 768 */ | 768 */ |
| 769 revealAndSelectNode: function(node) | 769 revealAndSelectNode: function(node) |
| 770 { | 770 { |
| 771 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.enabled()) { | 771 if (WebInspector.inspectElementModeController && WebInspector.inspectEle
mentModeController.enabled()) { |
| 772 InspectorFrontendHost.bringToFront(); | 772 InspectorFrontendHost.bringToFront(); |
| 773 WebInspector.inspectElementModeController.disable(); | 773 WebInspector.inspectElementModeController.disable(); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 WebInspector.ElementsPanelFactory.prototype = { | 1072 WebInspector.ElementsPanelFactory.prototype = { |
| 1073 /** | 1073 /** |
| 1074 * @override | 1074 * @override |
| 1075 * @return {!WebInspector.Panel} | 1075 * @return {!WebInspector.Panel} |
| 1076 */ | 1076 */ |
| 1077 createPanel: function() | 1077 createPanel: function() |
| 1078 { | 1078 { |
| 1079 return WebInspector.ElementsPanel.instance(); | 1079 return WebInspector.ElementsPanel.instance(); |
| 1080 } | 1080 } |
| 1081 } | 1081 } |
| OLD | NEW |