
There's no need to pass the StyleResolver to this function. Nodes that need it can just get it from the document.
17 lines
458 B
C++
17 lines
458 B
C++
#pragma once
|
|
|
|
#include <LibHTML/DOM/HTMLElement.h>
|
|
|
|
class HTMLBRElement final : public HTMLElement {
|
|
public:
|
|
HTMLBRElement(Document&, const String& tag_name);
|
|
virtual ~HTMLBRElement() override;
|
|
|
|
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
|
};
|
|
|
|
template<>
|
|
inline bool is<HTMLBRElement>(const Node& node)
|
|
{
|
|
return is<Element>(node) && to<Element>(node).tag_name().to_lowercase() == "br";
|
|
}
|