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

Unified Diff: Source/devtools/front_end/SearchableView.js

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 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
« no previous file with comments | « Source/devtools/front_end/ScriptFormatterEditorAction.js ('k') | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/SearchableView.js
diff --git a/Source/devtools/front_end/SearchableView.js b/Source/devtools/front_end/SearchableView.js
index a3e9816e40b276d766bb76e27ccc0c8df1043ea7..53b4fdd27bca086e12223a670cb8850c682bfb1e 100644
--- a/Source/devtools/front_end/SearchableView.js
+++ b/Source/devtools/front_end/SearchableView.js
@@ -244,7 +244,7 @@ WebInspector.SearchableView.prototype = {
_toggleSearchBar: function(toggled)
{
- this._footerElementContainer.enableStyleClass("hidden", !toggled);
+ this._footerElementContainer.classList.toggle("hidden", !toggled);
this.doResize();
},
@@ -363,7 +363,7 @@ WebInspector.SearchableView.prototype = {
_updateReplaceVisibility: function()
{
- this._replaceElement.enableStyleClass("hidden", !this._replaceable);
+ this._replaceElement.classList.toggle("hidden", !this._replaceable);
if (!this._replaceable) {
this._replaceCheckboxElement.checked = false;
this._updateSecondRowVisibility();
« no previous file with comments | « Source/devtools/front_end/ScriptFormatterEditorAction.js ('k') | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698