| Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| index 967a8360e1d6d8ca6063077ddd7daa8cd19dcbd5..0c1c928a14b1a7db8b8d7931d0d18f93f194cc22 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| @@ -1321,11 +1321,13 @@ WebInspector.ElementsTreeOutline.prototype = {
|
| {
|
| var visibleChildren = WebInspector.ElementsTreeElement.visibleShadowRoots(node);
|
|
|
| - if (node.importedDocument())
|
| - visibleChildren.push(node.importedDocument());
|
| + var importedDocument = node.importedDocument();
|
| + if (importedDocument)
|
| + visibleChildren.push(importedDocument);
|
|
|
| - if (node.templateContent())
|
| - visibleChildren.push(node.templateContent());
|
| + var templateContent = node.templateContent();
|
| + if (templateContent)
|
| + visibleChildren.push(templateContent);
|
|
|
| var beforePseudoElement = node.beforePseudoElement();
|
| if (beforePseudoElement)
|
|
|