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

Unified Diff: tracing/tracing/ui/base/table.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 8 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
« no previous file with comments | « tracing/tracing/ui/base/tab_view_test.html ('k') | tracing/tracing/ui/base/table_header_cell.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/table.html
diff --git a/tracing/tracing/ui/base/table.html b/tracing/tracing/ui/base/table.html
index d0e2405b69181d284a7c82f50935814b92f9912e..8202bbaa0ab90e29cd778da415999fd364ba7dd5 100644
--- a/tracing/tracing/ui/base/table.html
+++ b/tracing/tracing/ui/base/table.html
@@ -484,7 +484,7 @@ tr.exportTo('tr.ui.b', function() {
headerCell.sideContent = UNSORTED_ARROW;
}
- td.appendChild(headerCell);
+ Polymer.dom(td).appendChild(headerCell);
this.headerCells_.push(headerCell);
}
},
@@ -666,7 +666,8 @@ tr.exportTo('tr.ui.b', function() {
}
if (value !== undefined)
- td.appendChild(tr.ui.b.asHTMLOrTextNode(value, this.ownerDocument));
+ Polymer.dom(td).appendChild(
+ tr.ui.b.asHTMLOrTextNode(value, this.ownerDocument));
i += colSpan;
}
@@ -793,13 +794,13 @@ tr.exportTo('tr.ui.b', function() {
undefined, undefined);
if (this.tableRows_.length === 0 && this.emptyValue_ !== undefined) {
var trElement = this.ownerDocument.createElement('tr');
- this.$.body.appendChild(trElement);
+ Polymer.dom(this.$.body).appendChild(trElement);
trElement.classList.add('empty-row');
var td = this.ownerDocument.createElement('td');
- trElement.appendChild(td);
+ Polymer.dom(trElement).appendChild(td);
td.colSpan = this.tableColumns_.length;
var emptyValue = this.emptyValue_;
- td.appendChild(
+ Polymer.dom(td).appendChild(
tr.ui.b.asHTMLOrTextNode(emptyValue, this.ownerDocument));
}
this.bodyDirty_ = false;
@@ -825,7 +826,7 @@ tr.exportTo('tr.ui.b', function() {
appendNewElement_: function(parent, tagName) {
var element = parent.ownerDocument.createElement(tagName);
- parent.appendChild(element);
+ Polymer.dom(parent).appendChild(element);
return element;
},
@@ -1402,7 +1403,7 @@ Polymer({
this.cellTitle_, this.ownerDocument);
this.$.title.innerText = '';
- this.$.title.appendChild(titleNode);
+ Polymer.dom(this.$.title).appendChild(titleNode);
},
get cellTitle() {
« no previous file with comments | « tracing/tracing/ui/base/tab_view_test.html ('k') | tracing/tracing/ui/base/table_header_cell.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698