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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |