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

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

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes 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
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 2c5979b446233ee87dc74d2a5dd1c6b8473b8716..889734f745c66f4d2606552a63b26c10bbae4fd1 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);
@@ -205,8 +205,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;
}
@@ -285,8 +285,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