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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js

Issue 1761243002: [DevTools] Fix compile errors before closure compiler roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prepare-bindings-module
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698