(nodes)
| 3256 | } |
| 3257 | const range = selection.getRangeAt(0); |
| 3258 | if (!body.contains(range.commonAncestorContainer)) { |
| 3259 | hideReportAnnotationToolbar(); |
| 3260 | return; |
| 3261 | } |
| 3262 | state.reportAnnotationRange = range.cloneRange(); |
| 3263 | const rect = range.getBoundingClientRect(); |
| 3264 | if (!rect.width && !rect.height) { |
| 3265 | hideReportAnnotationToolbar(); |
| 3266 | return; |
| 3267 | } |
| 3268 | toolbar.classList.add("visible"); |
| 3269 | const toolbarRect = toolbar.getBoundingClientRect(); |
no test coverage detected