(newProps)
| 3896 | } |
| 3897 | |
| 3898 | update (newProps) { |
| 3899 | if (this.props.lineDecoration !== newProps.lineDecoration) { |
| 3900 | this.props.lineDecoration = newProps.lineDecoration |
| 3901 | this.element.className = this.buildClassName() |
| 3902 | } |
| 3903 | |
| 3904 | if (this.props.screenRow !== newProps.screenRow) { |
| 3905 | this.props.screenRow = newProps.screenRow |
| 3906 | this.element.dataset.screenRow = newProps.screenRow |
| 3907 | } |
| 3908 | |
| 3909 | if (!textDecorationsEqual(this.props.textDecorations, newProps.textDecorations)) { |
| 3910 | this.props.textDecorations = newProps.textDecorations |
| 3911 | this.element.firstChild.remove() |
| 3912 | this.appendContents() |
| 3913 | } |
| 3914 | } |
| 3915 | |
| 3916 | destroy () { |
| 3917 | const {nodePool, lineComponentsByScreenLineId, screenLine} = this.props |
no test coverage detected