| 204 | } |
| 205 | |
| 206 | int ContractionState::ContractedNext(int lineDocStart) const { |
| 207 | if (OneToOne()) { |
| 208 | return -1; |
| 209 | } else { |
| 210 | Check(); |
| 211 | if (!expanded->ValueAt(lineDocStart)) { |
| 212 | return lineDocStart; |
| 213 | } else { |
| 214 | int lineDocNextChange = expanded->EndRun(lineDocStart); |
| 215 | if (lineDocNextChange < LinesInDoc()) |
| 216 | return lineDocNextChange; |
| 217 | else |
| 218 | return -1; |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | int ContractionState::GetHeight(int lineDoc) const { |
| 224 | if (OneToOne()) { |
no test coverage detected