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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2656823004: DevTools: Move checkbox title element into Shadow DOM (Closed)
Patch Set: Created 3 years, 11 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/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index ef8aed6389eba681045fa65787b2f186f404147a..1eb71fd112d213160081d893022540bfe26f5207 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1287,7 +1287,7 @@ UI.createCheckboxLabel = function(title, checked, subtitle) {
var element = createElement('label', 'dt-checkbox');
element.checkboxElement.checked = !!checked;
if (title !== undefined) {
- element.textElement = element.createChild('div', 'dt-checkbox-text');
+ element.textElement = element.shadowRoot.createChild('div', 'dt-checkbox-text');
element.textElement.textContent = title;
if (subtitle !== undefined) {
element.subtitleElement = element.textElement.createChild('div', 'dt-checkbox-subtitle');

Powered by Google App Engine
This is Rietveld 408576698