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

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

Issue 2482593003: DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css (Closed)
Patch Set: kill ToolbarToggle.setActive() Created 4 years, 1 month 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/ElementStatePaneWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js
index 0e316000f1e0671457f8b1023eb17e219705dc3a..8b3d3ee81f7265015fd8bc0c1ed3b15929d0cd88 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js
@@ -107,7 +107,8 @@ WebInspector.ElementStatePaneWidget = class extends WebInspector.Widget {
WebInspector.ElementStatePaneWidget.ButtonProvider = class {
constructor() {
this._button = new WebInspector.ToolbarToggle(
- WebInspector.UIString('Toggle Element State'), '', WebInspector.UIString(':hov'));
+ WebInspector.UIString('Toggle Element State'), '');
+ this._button.setText(WebInspector.UIString(':hov'));
this._button.addEventListener('click', this._clicked, this);
this._button.element.classList.add('monospace');
this._view = new WebInspector.ElementStatePaneWidget();

Powered by Google App Engine
This is Rietveld 408576698