AK: Use AK namespace for ValueComparingRefPtr

These were moved in 0f04c6d but the namespace remained the same. We also
now forward declare these in `AK/Forward.h` rather than
`LibWeb/Forward.h` (or not at all in the case of `ValueComparingRefPtr`)
This commit is contained in:
Callum Law
2026-02-17 20:37:27 +13:00
committed by Sam Atkins
parent a18722093d
commit 4f3303b12f
Notes: github-actions[bot] 2026-02-20 22:04:33 +00:00
5 changed files with 11 additions and 5 deletions

View File

@@ -152,6 +152,12 @@ class RefPtr;
template<typename T, typename TDeleter = DefaultDelete<T>>
class OwnPtr;
template<typename T>
struct ValueComparingNonnullRefPtr;
template<typename T>
struct ValueComparingRefPtr;
template<typename T>
class WeakPtr;
@@ -227,6 +233,8 @@ using AK::Utf32CodePointIterator;
using AK::Utf32View;
using AK::Utf8CodePointIterator;
using AK::Utf8View;
using AK::ValueComparingNonnullRefPtr;
using AK::ValueComparingRefPtr;
using AK::Vector;
#endif

View File

@@ -8,7 +8,7 @@
#include <AK/RefPtr.h>
namespace Web::CSS {
namespace AK {
template<typename T>
struct ValueComparingNonnullRefPtr : public NonnullRefPtr<T> {