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

Side by Side 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, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 /** 1149 /**
1150 * @return {boolean} 1150 * @return {boolean}
1151 */ 1151 */
1152 _updateFilter: function() 1152 _updateFilter: function()
1153 { 1153 {
1154 var hasMatchingChild = false; 1154 var hasMatchingChild = false;
1155 for (var child of this.propertiesTreeOutline.rootElement().children()) 1155 for (var child of this.propertiesTreeOutline.rootElement().children())
1156 hasMatchingChild |= child._updateFilter(); 1156 hasMatchingChild |= child._updateFilter();
1157 1157
1158 var regex = this._parentPane.filterRegex(); 1158 var regex = this._parentPane.filterRegex();
1159 var hideRule = !hasMatchingChild && regex && !regex.test(this.element.te xtContent); 1159 var hideRule = !hasMatchingChild && !!regex && !regex.test(this.element. textContent);
1160 this.element.classList.toggle("hidden", hideRule); 1160 this.element.classList.toggle("hidden", hideRule);
1161 if (!hideRule && this._style.parentRule) 1161 if (!hideRule && this._style.parentRule)
1162 this._markSelectorHighlights(); 1162 this._markSelectorHighlights();
1163 return !hideRule; 1163 return !hideRule;
1164 }, 1164 },
1165 1165
1166 _markSelectorMatches: function() 1166 _markSelectorMatches: function()
1167 { 1167 {
1168 var rule = this._style.parentRule; 1168 var rule = this._style.parentRule;
1169 if (!rule) 1169 if (!rule)
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha nged); 3084 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, onNodeCha nged);
3085 onNodeChanged(); 3085 onNodeChanged();
3086 return button; 3086 return button;
3087 3087
3088 function onNodeChanged() 3088 function onNodeChanged()
3089 { 3089 {
3090 var node = WebInspector.context.flavor(WebInspector.DOMNode); 3090 var node = WebInspector.context.flavor(WebInspector.DOMNode);
3091 button.setEnabled(!!node); 3091 button.setEnabled(!!node);
3092 } 3092 }
3093 } 3093 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698