mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Move "element sibling" getters to NonDocumentTypeChildNode
Here's another CRTP mixin since that's the best we can do with C++. This prepares exposing these via IDL on Element and CharacterData.
This commit is contained in:
@@ -30,13 +30,17 @@
|
||||
#include <AK/String.h>
|
||||
#include <LibWeb/DOM/Attribute.h>
|
||||
#include <LibWeb/DOM/AttributeNames.h>
|
||||
#include <LibWeb/DOM/NonDocumentTypeChildNode.h>
|
||||
#include <LibWeb/DOM/ParentNode.h>
|
||||
#include <LibWeb/DOM/TagNames.h>
|
||||
#include <LibWeb/Layout/LayoutNode.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
class Element : public ParentNode {
|
||||
class Element
|
||||
: public ParentNode
|
||||
, public NonDocumentTypeChildNode<Element> {
|
||||
|
||||
public:
|
||||
using WrapperType = Bindings::ElementWrapper;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user