mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Use modern namespaces and fix clang-format comments in tag names
This commit is contained in:
parent
52a847a0eb
commit
efaf03e986
Notes:
sideshowbarker
2024-07-19 01:48:49 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/efaf03e9863 Pull-request: https://github.com/SerenityOS/serenity/pull/3748
4 changed files with 6 additions and 14 deletions
|
@ -26,9 +26,7 @@
|
|||
|
||||
#include <LibWeb/DOM/TagNames.h>
|
||||
|
||||
namespace Web {
|
||||
namespace HTML {
|
||||
namespace TagNames {
|
||||
namespace Web::HTML::TagNames {
|
||||
|
||||
#define __ENUMERATE_HTML_TAG(name) FlyString name;
|
||||
ENUMERATE_HTML_TAGS
|
||||
|
@ -37,7 +35,7 @@ ENUMERATE_HTML_TAGS
|
|||
// clang-format off
|
||||
// FIXME: clang-format gets confused here. Why?
|
||||
[[gnu::constructor]] static void initialize()
|
||||
// clang-format off
|
||||
// clang-format on
|
||||
{
|
||||
static bool s_initialized = false;
|
||||
if (s_initialized)
|
||||
|
@ -54,5 +52,3 @@ ENUMERATE_HTML_TAGS
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,9 +28,7 @@
|
|||
|
||||
#include <AK/FlyString.h>
|
||||
|
||||
namespace Web {
|
||||
namespace HTML {
|
||||
namespace TagNames {
|
||||
namespace Web::HTML::TagNames {
|
||||
|
||||
#define ENUMERATE_HTML_TAGS \
|
||||
__ENUMERATE_HTML_TAG(a) \
|
||||
|
@ -178,5 +176,3 @@ ENUMERATE_HTML_TAGS
|
|||
#undef __ENUMERATE_HTML_TAG
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ ENUMERATE_SVG_TAGS
|
|||
// clang-format off
|
||||
// FIXME: clang-format gets confused here. Why?
|
||||
[[gnu::constructor]] static void initialize()
|
||||
// clang-format off
|
||||
// clang-format on
|
||||
{
|
||||
static bool s_initialized = false;
|
||||
if (s_initialized)
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
namespace Web::SVG::TagNames {
|
||||
|
||||
#define ENUMERATE_SVG_GRAPHICS_TAGS \
|
||||
__ENUMERATE_SVG_TAG(svg) \
|
||||
__ENUMERATE_SVG_TAG(path)
|
||||
__ENUMERATE_SVG_TAG(path) \
|
||||
__ENUMERATE_SVG_TAG(svg)
|
||||
|
||||
#define ENUMERATE_SVG_TAGS \
|
||||
ENUMERATE_SVG_GRAPHICS_TAGS
|
||||
|
|
Loading…
Reference in a new issue