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

Unified Diff: tracing/tracing/ui/base/hotkey_controller.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/base/hotkey_controller.html
diff --git a/tracing/tracing/ui/base/hotkey_controller.html b/tracing/tracing/ui/base/hotkey_controller.html
index 91db9cd47ab33cff23029f3a4f1a5aefca78ed3d..db5f12d696dc0d7c72822172e7136bd3fd3bdf8e 100644
--- a/tracing/tracing/ui/base/hotkey_controller.html
+++ b/tracing/tracing/ui/base/hotkey_controller.html
@@ -44,7 +44,7 @@ Polymer({
if (host.parentElement)
parentElement = host.parentElement;
else
- parentElement = host.parentNode.host;
+ parentElement = Polymer.dom(host).parentNode.host;
var parentController = tr.b.getHotkeyControllerForElement(
parentElement);
@@ -204,8 +204,8 @@ Polymer({
return this.parentElement;
var node = this;
- while (node.parentNode) {
- node = node.parentNode;
+ while (Polymer.dom(node).parentNode) {
+ node = Polymer.dom(node).parentNode;
}
return node.host;
}
@@ -284,8 +284,8 @@ tr.exportTo('tr.b', function() {
function findHost(initialNode) {
var node = initialNode;
- while (node.parentNode) {
- node = node.parentNode;
+ while (Polymer.dom(node).parentNode) {
+ node = Polymer.dom(node).parentNode;
}
return node.host;
}
« no previous file with comments | « tracing/tracing/ui/base/grouping_table_groupby_picker.html ('k') | tracing/tracing/ui/base/hotkey_controller_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698