| 46 | _dirty_elements.clear(); |
| 47 | } |
| 48 | void BuildOwner::flush_layout() |
| 49 | { |
| 50 | _nodes_needing_layout.sort( |
| 51 | +[](RenderObject* a, RenderObject* b) { |
| 52 | return a->depth() < b->depth(); |
| 53 | }); |
| 54 | |
| 55 | for (auto node : _nodes_needing_layout) |
| 56 | { |
| 57 | if (node->needs_layout() && node->owner() == this) |
| 58 | { |
| 59 | node->perform_layout(); |
| 60 | node->_needs_layout = false; |
| 61 | node->mark_needs_paint(); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | _nodes_needing_layout.clear(); |
| 66 | } |
| 67 | void BuildOwner::flush_paint() |
| 68 | { |
| 69 | _nodes_needing_paint.sort( |
no test coverage detected