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

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

Issue 2776263006: [DevTools] Migrate checkbox label to a proper web component (Closed)
Patch Set: Created 3 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 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 cda86e624771937f7a75e4b13cac86895e5df1b2..7471797d9d85c003df15c833fd98a3ad208c7a4e 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js
@@ -30,7 +30,7 @@ Elements.ElementStatePaneWidget = class extends UI.Widget {
*/
function createCheckbox(state) {
var td = createElement('td');
- var label = UI.createCheckboxLabel(':' + state);
+ var label = UI.CheckboxLabel.create(':' + state);
var input = label.checkboxElement;
input.state = state;
input.addEventListener('click', clickListener, false);

Powered by Google App Engine
This is Rietveld 408576698