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

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

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 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/chart_base_2d.html ('k') | tracing/tracing/ui/tracks/rect_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/quad_stack_view.html
diff --git a/tracing/tracing/ui/base/quad_stack_view.html b/tracing/tracing/ui/base/quad_stack_view.html
index bb43d8bbce724178ddb361354f1082725b25f556..c98ddd9f4c741aac1df1a761b600cef2831d7989 100644
--- a/tracing/tracing/ui/base/quad_stack_view.html
+++ b/tracing/tracing/ui/base/quad_stack_view.html
@@ -108,17 +108,17 @@ tr.exportTo('tr.ui.b', function() {
tmpT2[0] -= tmpT0[0];
tmpT2[1] -= tmpT0[1];
- var det = 1 / (tmpT1[0] * tmpT2[1] - tmpT2[0] * tmpT1[1]),
+ var det = 1 / (tmpT1[0] * tmpT2[1] - tmpT2[0] * tmpT1[1]);
- // linear transformation
- a = (tmpT2[1] * tmpP1[0] - tmpT1[1] * tmpP2[0]) * det,
- b = (tmpT2[1] * tmpP1[1] - tmpT1[1] * tmpP2[1]) * det,
- c = (tmpT1[0] * tmpP2[0] - tmpT2[0] * tmpP1[0]) * det,
- d = (tmpT1[0] * tmpP2[1] - tmpT2[0] * tmpP1[1]) * det,
+ // linear transformation
+ var a = (tmpT2[1] * tmpP1[0] - tmpT1[1] * tmpP2[0]) * det;
+ var b = (tmpT2[1] * tmpP1[1] - tmpT1[1] * tmpP2[1]) * det;
+ var c = (tmpT1[0] * tmpP2[0] - tmpT2[0] * tmpP1[0]) * det;
+ var d = (tmpT1[0] * tmpP2[1] - tmpT2[0] * tmpP1[1]) * det;
- // translation
- e = tmpP0[0] - a * tmpT0[0] - c * tmpT0[1],
- f = tmpP0[1] - b * tmpT0[0] - d * tmpT0[1];
+ // translation
+ var e = tmpP0[0] - a * tmpT0[0] - c * tmpT0[1];
+ var f = tmpP0[1] - b * tmpT0[0] - d * tmpT0[1];
ctx.save();
ctx.transform(a, b, c, d, e, f);
« no previous file with comments | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/tracks/rect_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698