(linkMarker, matchingCharCount)
| 765 | |
| 766 | // Shows the marker, highlighting matchingCharCount characters. |
| 767 | showMarker(linkMarker, matchingCharCount) { |
| 768 | if (!linkMarker.isLocalMarker()) return; |
| 769 | |
| 770 | linkMarker.element.style.display = ""; |
| 771 | for (let j = 0, end = linkMarker.element.childNodes.length; j < end; j++) { |
| 772 | if (j < matchingCharCount) { |
| 773 | linkMarker.element.childNodes[j].classList.add("matchingCharacter"); |
| 774 | } else { |
| 775 | linkMarker.element.childNodes[j].classList.remove("matchingCharacter"); |
| 776 | } |
| 777 | } |
| 778 | } |
| 779 | |
| 780 | hideMarker(marker) { |
| 781 | if (marker.isLocalMarker()) { |
no test coverage detected