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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.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/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index e8a61800be7a17010986138a5a37124a32a31a6c..56535fbe7bb4ea0b2894f2f4334a026837b4257a 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1156,7 +1156,7 @@ WebInspector.StylePropertiesSection.prototype = {
hasMatchingChild |= child._updateFilter();
var regex = this._parentPane.filterRegex();
- var hideRule = !hasMatchingChild && regex && !regex.test(this.element.textContent);
+ var hideRule = !hasMatchingChild && !!regex && !regex.test(this.element.textContent);
this.element.classList.toggle("hidden", hideRule);
if (!hideRule && this._style.parentRule)
this._markSelectorHighlights();

Powered by Google App Engine
This is Rietveld 408576698