mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Switch to using AK::is and AK::downcast
This commit is contained in:
parent
fe6474e692
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