| 221 | } |
| 222 | |
| 223 | int ContractionState::GetHeight(int lineDoc) const { |
| 224 | if (OneToOne()) { |
| 225 | return 1; |
| 226 | } else { |
| 227 | return heights->ValueAt(lineDoc); |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | // Set the number of display lines needed for this line. |
| 232 | // Return true if this is a change. |