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

Unified Diff: tracing/tracing/extras/chrome/cc/tile.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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
Index: tracing/tracing/extras/chrome/cc/tile.html
diff --git a/tracing/tracing/extras/chrome/cc/tile.html b/tracing/tracing/extras/chrome/cc/tile.html
index e325aef044240ab8e845d2143028c6287bfab43a..c0d4232422e8210702b78db54c9747aeba77ee67 100644
--- a/tracing/tracing/extras/chrome/cc/tile.html
+++ b/tracing/tracing/extras/chrome/cc/tile.html
@@ -52,28 +52,31 @@ tr.exportTo('tr.e.cc', function() {
// This check is for backward compatability. It can probably
// be removed once we're confident that most traces contain
// content_rect.
- if (this.contentRect)
+ if (this.contentRect) {
this.layerRect = this.contentRect.scale(1.0 / this.contentsScale);
+ }
- if (this.isSolidColor)
+ if (this.isSolidColor) {
this.type_ = tr.e.cc.tileTypes.solidColor;
- else if (!this.hasResource)
+ } else if (!this.hasResource) {
this.type_ = tr.e.cc.tileTypes.missing;
- else if (this.resolution === 'HIGH_RESOLUTION')
+ } else if (this.resolution === 'HIGH_RESOLUTION') {
this.type_ = tr.e.cc.tileTypes.highRes;
- else if (this.resolution === 'LOW_RESOLUTION')
+ } else if (this.resolution === 'LOW_RESOLUTION') {
this.type_ = tr.e.cc.tileTypes.lowRes;
- else
+ } else {
this.type_ = tr.e.cc.tileTypes.unknown;
+ }
},
getTypeForLayer: function(layer) {
var type = this.type_;
if (type === tr.e.cc.tileTypes.unknown) {
- if (this.contentsScale < layer.idealContentsScale)
+ if (this.contentsScale < layer.idealContentsScale) {
type = tr.e.cc.tileTypes.extraLowRes;
- else if (this.contentsScale > layer.idealContentsScale)
+ } else if (this.contentsScale > layer.idealContentsScale) {
type = tr.e.cc.tileTypes.extraHighRes;
+ }
}
return type;
}

Powered by Google App Engine
This is Rietveld 408576698