diff --git a/Userland/Libraries/LibWeb/DOM/Range.cpp b/Userland/Libraries/LibWeb/DOM/Range.cpp index f8f47f5d3c..29a6566e66 100644 --- a/Userland/Libraries/LibWeb/DOM/Range.cpp +++ b/Userland/Libraries/LibWeb/DOM/Range.cpp @@ -78,14 +78,8 @@ Node const& Range::root() const return m_start_container->root(); } -enum class RelativeBoundaryPointPosition { - Equal, - Before, - After, -}; - // https://dom.spec.whatwg.org/#concept-range-bp-position -static RelativeBoundaryPointPosition position_of_boundary_point_relative_to_other_boundary_point(Node const& node_a, u32 offset_a, Node const& node_b, u32 offset_b) +RelativeBoundaryPointPosition position_of_boundary_point_relative_to_other_boundary_point(Node const& node_a, u32 offset_a, Node const& node_b, u32 offset_b) { // 1. Assert: nodeA and nodeB have the same root. VERIFY(&node_a.root() == &node_b.root()); diff --git a/Userland/Libraries/LibWeb/DOM/Range.h b/Userland/Libraries/LibWeb/DOM/Range.h index 2303ab4d15..3383fa589d 100644 --- a/Userland/Libraries/LibWeb/DOM/Range.h +++ b/Userland/Libraries/LibWeb/DOM/Range.h @@ -12,6 +12,15 @@ namespace Web::DOM { +enum class RelativeBoundaryPointPosition { + Equal, + Before, + After, +}; + +// https://dom.spec.whatwg.org/#concept-range-bp-position +RelativeBoundaryPointPosition position_of_boundary_point_relative_to_other_boundary_point(Node const& node_a, u32 offset_a, Node const& node_b, u32 offset_b); + class Range final : public AbstractRange { WEB_PLATFORM_OBJECT(Range, AbstractRange);