summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/NodeWrapper.h
blob: b7a24b94b7483518d66ac839c382a395a062d1ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <LibWeb/Bindings/Wrapper.h>

namespace Web {
namespace Bindings {

class NodeWrapper : public Wrapper {
public:
    explicit NodeWrapper(Node&);
    virtual ~NodeWrapper() override;

    Node& node() { return *m_node; }
    const Node& node() const { return *m_node; }

private:
    virtual const char* class_name() const override { return "Node"; }

    NonnullRefPtr<Node> m_node;
};

}
}