(doc, line)
| 6603 | // are part of a visual line that starts with another line, or when |
| 6604 | // they are entirely covered by collapsed, non-widget span. |
| 6605 | function lineIsHidden(doc, line) { |
| 6606 | var sps = sawCollapsedSpans && line.markedSpans; |
| 6607 | if (sps) for (var sp, i = 0; i < sps.length; ++i) { |
| 6608 | sp = sps[i]; |
| 6609 | if (!sp.marker.collapsed) continue; |
| 6610 | if (sp.from == null) return true; |
| 6611 | if (sp.marker.widgetNode) continue; |
| 6612 | if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) |
| 6613 | return true; |
| 6614 | } |
| 6615 | } |
| 6616 | function lineIsHiddenInner(doc, line, span) { |
| 6617 | if (span.to == null) { |
| 6618 | var end = span.marker.find(1, true); |
no test coverage detected