mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Switch to using AK::is and AK::downcast
This commit is contained in:
parent
fe6474e692
commit
71556e39a4
Notes:
sideshowbarker
2024-07-19 04:36:12 +09:00
Author: https://github.com/awesomekling
Commit: 71556e39a4
73 changed files with 249 additions and 433 deletions
|
@ -28,19 +28,11 @@
|
|||
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/TypeCasts.h>
|
||||
#include <AK/Weakable.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
// FIXME: I wish I didn't have to forward declare these, but I can't seem to avoid
|
||||
// it if I still want to have for_each_in_subtree_of_type<U> inline here.
|
||||
class Node;
|
||||
class LayoutNode;
|
||||
template<typename T>
|
||||
bool is(const Node&);
|
||||
template<typename T>
|
||||
bool is(const LayoutNode&);
|
||||
|
||||
template<typename T>
|
||||
class TreeNode : public Weakable<T> {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue