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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 805853002: DevTools: Make labeled checkbox a web component (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index 9f1d620a40c7d2ed4604dcd8649070544fa62e71..146d8d3b6e2b5f2f95b136f2131436ca546ef1cd 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -949,14 +949,11 @@ WebInspector.StylesSidebarPane.prototype = {
function createCheckbox(state)
{
var td = createElement("td");
- var label = createElement("label");
- var input = createElement("input");
- input.type = "checkbox";
+ var label = createCheckboxLabel(":" + state);
+ var input = label.checkboxElement;
input.state = state;
input.addEventListener("click", clickListener.bind(this), false);
inputs.push(input);
- label.appendChild(input);
- label.createTextChild(":" + state);
td.appendChild(label);
return td;
}
« no previous file with comments | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | Source/devtools/front_end/elements/elementsPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698