1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

LibWeb: Specify snake case names for navigation timing entries too

This will be used by performance.measure to read the value of a given
entry in the NavigationTiming interface.
This commit is contained in:
Luke Wilde 2023-05-13 13:27:30 +01:00 committed by Andreas Kling
parent 404804db36
commit f62bcba56a
3 changed files with 27 additions and 27 deletions

View file

@ -8,7 +8,7 @@
namespace Web::NavigationTiming::EntryNames {
#define __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME(name) FlyString name;
#define __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME(name, _) FlyString name;
ENUMERATE_NAVIGATION_TIMING_ENTRY_NAMES
#undef __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME
@ -17,7 +17,7 @@ ErrorOr<void> initialize_strings()
static bool s_initialized = false;
VERIFY(!s_initialized);
#define __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME(name) \
#define __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME(name, _) \
name = TRY(#name##_fly_string);
ENUMERATE_NAVIGATION_TIMING_ENTRY_NAMES
#undef __ENUMERATE_NAVIGATION_TIMING_ENTRY_NAME