(textNode, startIndex, endIndex)
| 4285 | |
| 4286 | let rangeForMeasurement |
| 4287 | function clientRectForRange (textNode, startIndex, endIndex) { |
| 4288 | if (!rangeForMeasurement) rangeForMeasurement = document.createRange() |
| 4289 | rangeForMeasurement.setStart(textNode, startIndex) |
| 4290 | rangeForMeasurement.setEnd(textNode, endIndex) |
| 4291 | return rangeForMeasurement.getBoundingClientRect() |
| 4292 | } |
| 4293 | |
| 4294 | function textDecorationsEqual (oldDecorations, newDecorations) { |
| 4295 | if (!oldDecorations && newDecorations) return false |
no outgoing calls
no test coverage detected
searching dependent graphs…