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

Side by Side Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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) 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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/devtools/front_end/elements/ElementsTreeElement.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698