| 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;
|
| },
|
|
|