| 65 | _nodes_needing_layout.clear(); |
| 66 | } |
| 67 | void BuildOwner::flush_paint() |
| 68 | { |
| 69 | _nodes_needing_paint.sort( |
| 70 | +[](RenderObject* a, RenderObject* b) { |
| 71 | return a->depth() < b->depth(); |
| 72 | }); |
| 73 | |
| 74 | for (auto node : _nodes_needing_paint) |
| 75 | { |
| 76 | if (node->needs_paint()) |
| 77 | { |
| 78 | PaintingContext::repaint_composited_child(node); |
| 79 | } |
| 80 | else |
| 81 | { |
| 82 | PaintingContext::update_layer_properties(node); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | _nodes_needing_paint.clear(); |
| 87 | } |
| 88 | |
| 89 | // register |
| 90 | void BuildOwner::register_native_window(NotNull<RenderNativeWindowElement*> native_window) |