mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
ResourceFetchTimings are set throughout the methods in http_loader.rs. These methods are already very complicated, so having multiple times `context.timings.lock().set_attribute()` can be quite distracting to understanding. This introduces ResourceFetchTimingsContainer structure which has the lock inside and allows setting multiple attributes to clean up the code in http_loader. Testing: This is a refactor and does not change functionality. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>