|
8 | 8 | // |---(STLineHighlightView | SelectionHighlightView)
|
9 | 9 | // |---contentView
|
10 | 10 | // |---(STInsertionPointView | STTextLayoutFragmentView)
|
11 |
| -// |---decorationView |
12 | 11 | // |---gutterView
|
13 | 12 | //
|
14 | 13 | //
|
@@ -434,9 +433,6 @@ import AVFoundation
|
434 | 433 | /// Selection highlight content view.
|
435 | 434 | internal let selectionView: STSelectionView
|
436 | 435 |
|
437 |
| - /// Layout fragments decoration, custom rendering attributes |
438 |
| - internal let decorationView: STDecorationView |
439 |
| - |
440 | 436 | internal var fragmentViewMap: NSMapTable<NSTextLayoutFragment, STTextLayoutFragmentView>
|
441 | 437 | private var usageBoundsForTextContainerObserver: NSKeyValueObservation?
|
442 | 438 |
|
@@ -586,7 +582,6 @@ import AVFoundation
|
586 | 582 |
|
587 | 583 | contentView = STContentView()
|
588 | 584 | selectionView = STSelectionView()
|
589 |
| - decorationView = STDecorationView(textLayoutManager: textLayoutManager) |
590 | 585 |
|
591 | 586 | allowsUndo = true
|
592 | 587 | _undoManager = CoalescingUndoManager()
|
@@ -625,7 +620,6 @@ import AVFoundation
|
625 | 620 |
|
626 | 621 | addSubview(selectionView)
|
627 | 622 | addSubview(contentView)
|
628 |
| - addSubview(decorationView) |
629 | 623 |
|
630 | 624 | do {
|
631 | 625 | let recognizer = DragSelectedTextGestureRecognizer(target: self, action: #selector(_dragSelectedTextGestureRecognizer(gestureRecognizer:)))
|
@@ -760,7 +754,7 @@ import AVFoundation
|
760 | 754 | // and ignore utility subviews that should remain transparent
|
761 | 755 | // for interaction.
|
762 | 756 | if let view = result, view != self,
|
763 |
| - (view.isDescendant(of: contentView) || view.isDescendant(of: selectionView) || view.isDescendant(of: decorationView)) |
| 757 | + (view.isDescendant(of: contentView) || view.isDescendant(of: selectionView)) |
764 | 758 | {
|
765 | 759 | return self
|
766 | 760 | }
|
@@ -1211,7 +1205,6 @@ import AVFoundation
|
1211 | 1205 | if !contentFrame.isAlmostEqual(to: contentView.frame) {
|
1212 | 1206 | contentView.frame = contentFrame
|
1213 | 1207 | selectionView.frame = contentFrame
|
1214 |
| - decorationView.frame = contentFrame |
1215 | 1208 | }
|
1216 | 1209 |
|
1217 | 1210 | _configureTextContainerSize()
|
|
0 commit comments