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

Unified Diff: tracing/tracing/extras/chrome/cc/region.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/extras/chrome/cc/raster_task.html ('k') | tracing/tracing/extras/chrome/cc/tile.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/chrome/cc/region.html
diff --git a/tracing/tracing/extras/chrome/cc/region.html b/tracing/tracing/extras/chrome/cc/region.html
index e9b986c90eeb0c216bb289fc33d5e5e771d99a67..dd86a71b1d125164ededada83c16da955ac510a1 100644
--- a/tracing/tracing/extras/chrome/cc/region.html
+++ b/tracing/tracing/extras/chrome/cc/region.html
@@ -18,8 +18,9 @@ tr.exportTo('tr.e.cc', function() {
}
Region.fromArray = function(array) {
- if (array.length % 4 !== 0)
+ if (array.length % 4 !== 0) {
throw new Error('Array must consist be a multiple of 4 in length');
+ }
var r = new Region();
for (var i = 0; i < array.length; i += 4) {
@@ -34,8 +35,7 @@ tr.exportTo('tr.e.cc', function() {
* returns Region.fromArray(array).
*/
Region.fromArrayOrUndefined = function(array) {
- if (array === undefined)
- return new Region();
+ if (array === undefined) return new Region();
return Region.fromArray(array);
};
@@ -44,8 +44,7 @@ tr.exportTo('tr.e.cc', function() {
rectIntersects: function(r) {
for (var i = 0; i < this.rects.length; i++) {
- if (this.rects[i].intersects(r))
- return true;
+ if (this.rects[i].intersects(r)) return true;
}
return false;
},
« no previous file with comments | « tracing/tracing/extras/chrome/cc/raster_task.html ('k') | tracing/tracing/extras/chrome/cc/tile.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698