| 283 | } |
| 284 | |
| 285 | void TextLayer::setAttributedText(const Valdi::Ref<AttributedText>& attributedText) { |
| 286 | if (_attributedText != attributedText) { |
| 287 | _attributedText = attributedText; |
| 288 | _text = Valdi::StringBox(); |
| 289 | |
| 290 | setNeedsTextLayout(); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | const Valdi::Ref<AttributedText>& TextLayer::getAttributedText() const { |