(cm)
| 2942 | } |
| 2943 | |
| 2944 | function estimateLineHeights(cm) { |
| 2945 | var doc = cm.doc, est = estimateHeight(cm); |
| 2946 | doc.iter(function (line) { |
| 2947 | var estHeight = est(line); |
| 2948 | if (estHeight != line.height) { updateLineHeight(line, estHeight); } |
| 2949 | }); |
| 2950 | } |
| 2951 | |
| 2952 | // Given a mouse event, find the corresponding position. If liberal |
| 2953 | // is false, it checks whether a gutter or scrollbar was clicked, |
no test coverage detected