mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
We added these methods to propagate OOM errors at process startup, but we longer fret about these tiny OOM failures. Requiring that these init methods be called prohibits using these strings in processes that have not set up a MainThreadVM. So let's just remove them and initialize the strings in a sane manner. In doing so, this also standardizes how we initialize strings whose C++ variable name differs from their string value. Instead of special-casing these strings, we just include their string value in the x-macro list.
16 lines
417 B
C++
16 lines
417 B
C++
/*
|
|
* Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/HTML/CustomElements/CustomElementReactionNames.h>
|
|
|
|
namespace Web::HTML::CustomElementReactionNames {
|
|
|
|
#define __ENUMERATE_CUSTOM_ELEMENT_REACTION_NAME(name) \
|
|
FlyString name = #name##_fly_string;
|
|
ENUMERATE_CUSTOM_ELEMENT_REACTION_NAMES
|
|
#undef __ENUMERATE_CUSTOM_ELEMENT_REACTION_NAME
|
|
|
|
}
|