#include
#include
class LayoutReplaced : public LayoutNodeWithStyle {
public:
LayoutReplaced(const Element&, NonnullRefPtr);
virtual ~LayoutReplaced() override;
const Element& node() const { return to(*LayoutNode::node()); }
virtual bool is_replaced() const final { return true; }
private:
virtual const char* class_name() const override { return "LayoutReplaced"; }
virtual void split_into_lines(LayoutBlock& container) override;
};
template<>
inline bool is(const LayoutNode& node)
{
return node.is_replaced();
}