| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <link rel="import" href="/tracing/base/base.html"> | 7 <link rel="import" href="/tracing/base/base.html"> |
| 8 <link rel="import" href="/tracing/base/math.html"> | 8 <link rel="import" href="/tracing/base/math/math.html"> |
| 9 <script> | 9 <script> |
| 10 'use strict'; | 10 'use strict'; |
| 11 | 11 |
| 12 tr.exportTo('tr.b', function() { | 12 tr.exportTo('tr.b.math', function() { |
| 13 /** | 13 /** |
| 14 * Tracks a 2D bounding box. | 14 * Tracks a 2D bounding box. |
| 15 * @constructor | 15 * @constructor |
| 16 */ | 16 */ |
| 17 function Rect() { | 17 function Rect() { |
| 18 this.x = 0; | 18 this.x = 0; |
| 19 this.y = 0; | 19 this.y = 0; |
| 20 this.width = 0; | 20 this.width = 0; |
| 21 this.height = 0; | 21 this.height = 0; |
| 22 } | 22 } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 (this.width === rect.width) && | 153 (this.width === rect.width) && |
| 154 (this.height === rect.height); | 154 (this.height === rect.height); |
| 155 } | 155 } |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 return { | 158 return { |
| 159 Rect, | 159 Rect, |
| 160 }; | 160 }; |
| 161 }); | 161 }); |
| 162 </script> | 162 </script> |
| OLD | NEW |