Grid and flex inspector payloads are only consumed by DevTools, but layout currently builds them for every page. Gate that collection on an active DevTools client so ordinary browsing avoids the extra CPU work and retained memory. DevTools may connect after the page has already completed layout, so force one catch-up layout pass when the first DevTools client attaches. After that, normal relayouts keep the data fresh until DevTools disconnects. Inspection requests only flush dirty layout instead of forcing repeated collection passes. When DevTools detaches, clear the stored inspection data and overlays. |
||
|---|---|---|
| .. | ||
| Compositor | ||
| ImageDecoder | ||
| RequestServer | ||
| WebContent | ||
| WebDriver | ||
| WebWorker | ||
| CMakeLists.txt | ||