| 210 | |
| 211 | const StringBox& AttributeHandler::getName() const { |
| 212 | return _name; |
| 213 | } |
| 214 | |
| 215 | AttributeId AttributeHandler::getId() const { |
| 216 | return _id; |
| 217 | } |
| 218 | |
| 219 | AttributeHandler AttributeHandler::withDelegate(const Ref<AttributeHandlerDelegate>& delegate) const { |
| 220 | AttributeHandler handler(_id, _name, delegate, _compositeAttribute, _requiresView, _shouldInvalidateLayoutOnChange); |
| 221 | |
| 222 | if (_preprocessorCache != nullptr) { |
| 223 | handler.setEnablePreprocessorCache(true); |
| 224 | } |
| 225 | |
| 226 | if (_shouldReevaluateOnColorPaletteChange) { |
| 227 | handler.setShouldReevaluateOnColorPaletteChange(true); |
| 228 | } |
| 229 | |
| 230 | handler._preprocessors = _preprocessors; |
| 231 | handler._postprocessors = _postprocessors; |
| 232 | if (!_preprocessingTrivial) { |
no test coverage detected