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

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

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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/event_presenter.html ('k') | tracing/tracing/ui/base/file.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/fast_rect_renderer.html
diff --git a/tracing/tracing/ui/base/fast_rect_renderer.html b/tracing/tracing/ui/base/fast_rect_renderer.html
index 55ed99ead53dc20a8d45ac494eae9141359672ed..9f386229a1c9972c4a7bacb32698799a5d2f780f 100644
--- a/tracing/tracing/ui/base/fast_rect_renderer.html
+++ b/tracing/tracing/ui/base/fast_rect_renderer.html
@@ -67,8 +67,9 @@ tr.exportTo('tr.ui.b', function() {
*/
setYandH: function(y, h) {
if (this.y_ === y &&
- this.h_ === h)
+ this.h_ === h) {
return;
+ }
this.flush();
this.y_ = y;
this.h_ = h;
@@ -85,8 +86,9 @@ tr.exportTo('tr.ui.b', function() {
fillRect: function(x, w, colorId, alpha) {
var r = x + w;
if (w < this.minRectSize_) {
- if (r - this.mergeStartX_ > this.maxMergeDist_)
+ if (r - this.mergeStartX_ > this.maxMergeDist_) {
this.flush();
+ }
if (!this.merging_) {
this.merging_ = true;
this.mergeStartX_ = x;
@@ -103,8 +105,9 @@ tr.exportTo('tr.ui.b', function() {
}
}
} else {
- if (this.merging_)
+ if (this.merging_) {
this.flush();
+ }
this.ctx_.fillStyle = this.pallette_[colorId];
this.ctx_.globalAlpha = alpha;
this.ctx_.fillRect(x, this.y_, w, this.h_);
« no previous file with comments | « tracing/tracing/ui/base/event_presenter.html ('k') | tracing/tracing/ui/base/file.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698