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

Side by Side Diff: Source/devtools/front_end/ConsoleView.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, 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 * @return {!Element} 135 * @return {!Element}
136 */ 136 */
137 defaultFocusedElement: function() 137 defaultFocusedElement: function()
138 { 138 {
139 return this.promptElement 139 return this.promptElement
140 }, 140 },
141 141
142 _onFiltersToggled: function(event) 142 _onFiltersToggled: function(event)
143 { 143 {
144 var toggled = /** @type {boolean} */ (event.data); 144 var toggled = /** @type {boolean} */ (event.data);
145 this._filtersContainer.enableStyleClass("hidden", !toggled); 145 this._filtersContainer.classList.toggle("hidden", !toggled);
146 }, 146 },
147 147
148 /** 148 /**
149 * @param {!WebInspector.Event} event 149 * @param {!WebInspector.Event} event
150 */ 150 */
151 _frameAdded: function(event) 151 _frameAdded: function(event)
152 { 152 {
153 var contextList = /** @type {!WebInspector.FrameExecutionContextList} */ (event.data); 153 var contextList = /** @type {!WebInspector.FrameExecutionContextList} */ (event.data);
154 this._addFrame(contextList); 154 this._addFrame(contextList);
155 }, 155 },
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 node.group.wasShown(); 1142 node.group.wasShown();
1143 node = node.nextSibling; 1143 node = node.nextSibling;
1144 } 1144 }
1145 } 1145 }
1146 } 1146 }
1147 1147
1148 /** 1148 /**
1149 * @type {!WebInspector.ConsoleView} 1149 * @type {!WebInspector.ConsoleView}
1150 */ 1150 */
1151 WebInspector.consoleView; 1151 WebInspector.consoleView;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/CodeMirrorTextEditor.js ('k') | Source/devtools/front_end/DOMExtension.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698