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

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

Issue 1309403002: Show closed/open shadow root in inspector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test expectation for breadcrumb Created 5 years, 4 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
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 { 84 {
85 var roots = node.shadowRoots(); 85 var roots = node.shadowRoots();
86 if (roots.length && !WebInspector.moduleSetting("showUAShadowDOM").get()) 86 if (roots.length && !WebInspector.moduleSetting("showUAShadowDOM").get())
87 roots = roots.filter(filter); 87 roots = roots.filter(filter);
88 88
89 /** 89 /**
90 * @param {!WebInspector.DOMNode} root 90 * @param {!WebInspector.DOMNode} root
91 */ 91 */
92 function filter(root) 92 function filter(root)
93 { 93 {
94 return root.shadowRootType() === WebInspector.DOMNode.ShadowRootTypes.Au thor; 94 return root.shadowRootType() !== WebInspector.DOMNode.ShadowRootTypes.Us erAgent;
95 } 95 }
96 return roots; 96 return roots;
97 } 97 }
98 98
99 /** 99 /**
100 * @param {!WebInspector.DOMNode} node 100 * @param {!WebInspector.DOMNode} node
101 * @return {boolean} 101 * @return {boolean}
102 */ 102 */
103 WebInspector.ElementsTreeElement.canShowInlineText = function(node) 103 WebInspector.ElementsTreeElement.canShowInlineText = function(node)
104 { 104 {
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 1580
1581 if (object) 1581 if (object)
1582 object.callFunction(scrollIntoView); 1582 object.callFunction(scrollIntoView);
1583 } 1583 }
1584 1584
1585 this._node.resolveToObject("", scrollIntoViewCallback); 1585 this._node.resolveToObject("", scrollIntoViewCallback);
1586 }, 1586 },
1587 1587
1588 __proto__: TreeElement.prototype 1588 __proto__: TreeElement.prototype
1589 } 1589 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698