From 5a500827b87bc34bb346153dc5f7e326e4ab72e7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 19 Sep 2022 16:28:11 +0200 Subject: [PATCH] LibWeb: Move HistoryHandlingBehavior enum to its own header This avoids a header cycle in a subsequent patch. --- .../LibWeb/HTML/HistoryHandlingBehavior.h | 19 +++++++++++++++++++ .../Libraries/LibWeb/HTML/NavigationParams.h | 9 +-------- 2 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h diff --git a/Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h b/Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h new file mode 100644 index 00000000000..5c201854c41 --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022, Andreas Kling + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +namespace Web::HTML { + +// https://html.spec.whatwg.org/multipage/browsing-the-web.html#history-handling-behavior +enum class HistoryHandlingBehavior { + Default, + EntryUpdate, + Reload, + Replace, +}; + +} diff --git a/Userland/Libraries/LibWeb/HTML/NavigationParams.h b/Userland/Libraries/LibWeb/HTML/NavigationParams.h index 98b8e0e7a78..444ec306b03 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationParams.h +++ b/Userland/Libraries/LibWeb/HTML/NavigationParams.h @@ -10,20 +10,13 @@ #include #include #include +#include #include #include #include namespace Web::HTML { -// https://html.spec.whatwg.org/multipage/browsing-the-web.html#history-handling-behavior -enum class HistoryHandlingBehavior { - Default, - EntryUpdate, - Reload, - Replace, -}; - // https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params struct NavigationParams { // a navigation id