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

Unified Diff: tracing/tracing/ui/base/chart_base_2d.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/chart_base_2d.html
diff --git a/tracing/tracing/ui/base/chart_base_2d.html b/tracing/tracing/ui/base/chart_base_2d.html
index 5e32e3b95d516626f049096402066625d52e7041..a68efda1ce0f5427279185929e0e21bf79947a89 100644
--- a/tracing/tracing/ui/base/chart_base_2d.html
+++ b/tracing/tracing/ui/base/chart_base_2d.html
@@ -32,7 +32,7 @@ tr.exportTo('tr.ui.b', function() {
decorate: function() {
ChartBase.prototype.decorate.call(this);
- this.classList.add('chart-base-2d');
+ Polymer.dom(this).classList.add('chart-base-2d');
this.xScale_ = d3.scale.linear();
this.yScale_ = d3.scale.linear();
this.isYLogScale_ = false;
@@ -352,7 +352,7 @@ tr.exportTo('tr.ui.b', function() {
mouseEvent.stopPropagation();
var dataEvent = new tr.b.Event('item-mousedown');
dataEvent.button = mouseEvent.button;
- this.classList.add('updating-brushing-state');
+ Polymer.dom(this).classList.add('updating-brushing-state');
this.prepareDataEvent_(mouseEvent, dataEvent);
this.dispatchEvent(dataEvent);
},
@@ -375,7 +375,7 @@ tr.exportTo('tr.ui.b', function() {
dataEvent.button = button;
this.prepareDataEvent_(mouseEvent, dataEvent);
this.dispatchEvent(dataEvent);
- this.classList.remove('updating-brushing-state');
+ Polymer.dom(this).classList.remove('updating-brushing-state');
}
};
« no previous file with comments | « tracing/tracing/ui/base/chart_base.html ('k') | tracing/tracing/ui/base/container_that_decorates_its_children.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698