| 201 | } |
| 202 | |
| 203 | void ViewNodeRenderer::setCurrent(Ref<ViewNode> viewNode) { |
| 204 | if (_currentNodeAttributeChanged) { |
| 205 | _currentNodeAttributeChanged = false; |
| 206 | if (!_currentNode->cssNeedsUpdate()) { |
| 207 | // Only flush if we don't need to do a CSS pass, otherwise we will |
| 208 | // flush after the CSS pass. |
| 209 | _currentNode->getAttributesApplier().flush(_viewTransactionScope); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | _currentNode = std::move(viewNode); |
| 214 | } |
| 215 | |
| 216 | void ViewNodeRenderer::updateCSS() { |
| 217 | auto root = _viewNodeTree.getRootViewNode(); |
nothing calls this directly
no test coverage detected