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

Unified Diff: tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html

Issue 1967613003: Migrate child element manipulation, innerHTML, classList, attributes, (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: white space fix. Created 4 years, 7 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: tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html b/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
index e27e8510afd593d98fd78f84d890f4a2d515256b..1406b9e1f75a20cfedb4772a0f598b75b5181b00 100644
--- a/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_thread_time_slice_sub_view.html
@@ -114,7 +114,7 @@ Polymer({
var timeSlice = selection[0];
var thread = timeSlice.thread;
- var shadowRoot = this.shadowRoot;
+ var shadowRoot = Polymer.dom(this.root);
shadowRoot.querySelector('#state').textContent = timeSlice.title;
var stateColor = tr.b.ColorScheme.colorsAsStrings[timeSlice.colorId];
shadowRoot.querySelector('#state').style.backgroundColor = stateColor;
@@ -133,7 +133,7 @@ Polymer({
onCpuEl.textContent = '';
var runningInsteadEl = shadowRoot.querySelector('#running-instead');
if (timeSlice.cpuOnWhichThreadWasRunning) {
- runningInsteadEl.parentElement.removeChild(runningInsteadEl);
+ Polymer.dom(runningInsteadEl.parentElement).removeChild(runningInsteadEl);
var cpuLink = document.createElement('tr-ui-a-analysis-link');
cpuLink.selection = new tr.model.EventSet(
@@ -142,7 +142,7 @@ Polymer({
timeSlice.cpuOnWhichThreadWasRunning.userFriendlyName;
Polymer.dom(onCpuEl).appendChild(cpuLink);
} else {
- onCpuEl.parentElement.removeChild(onCpuEl);
+ Polymer.dom(onCpuEl.parentElement).removeChild(onCpuEl);
var cpuSliceThatTookCpu = timeSlice.getCpuSliceThatTookCpu();
if (cpuSliceThatTookCpu) {
@@ -154,7 +154,8 @@ Polymer({
cpuLink.textContent = cpuSliceThatTookCpu.title;
Polymer.dom(runningInsteadEl).appendChild(cpuLink);
} else {
- runningInsteadEl.parentElement.removeChild(runningInsteadEl);
+ Polymer.dom(runningInsteadEl.parentElement).removeChild(
+ runningInsteadEl);
}
}

Powered by Google App Engine
This is Rietveld 408576698