Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 part of html; | |
|
Jennifer Messerly
2013/07/19 01:33:43
add copyright here? :)
| |
| 2 | |
| 1 /** | 3 /** |
| 2 * Class representing a | 4 * Class representing a |
| 3 * [length measurement](https://developer.mozilla.org/en-US/docs/Web/CSS/length) | 5 * [length measurement](https://developer.mozilla.org/en-US/docs/Web/CSS/length) |
| 4 * in CSS. | 6 * in CSS. |
| 5 */ | 7 */ |
| 6 @Experimental() | 8 @Experimental() |
| 7 class Dimension { | 9 class Dimension { |
| 8 num _value; | 10 num _value; |
| 9 String _unit; | 11 String _unit; |
| 10 | 12 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 } | 74 } |
| 73 | 75 |
| 74 /** Print out the CSS String representation of this value. */ | 76 /** Print out the CSS String representation of this value. */ |
| 75 String toString() { | 77 String toString() { |
| 76 return '${_value}${_unit}'; | 78 return '${_value}${_unit}'; |
| 77 } | 79 } |
| 78 | 80 |
| 79 /** Return a unitless, numerical value of this CSS value. */ | 81 /** Return a unitless, numerical value of this CSS value. */ |
| 80 num get value => this._value; | 82 num get value => this._value; |
| 81 } | 83 } |
| OLD | NEW |