mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:55:08 +00:00

This patch adds parsing of <img> into HTMLImageElement objects. It also adds LayoutImage and its parent class LayoutReplaced, which is going to represent CSS "replaced elements."
12 lines
330 B
C++
12 lines
330 B
C++
#include <LibHTML/DOM/Element.h>
|
|
#include <LibHTML/Layout/LayoutNode.h>
|
|
|
|
class LayoutReplaced : public LayoutNode {
|
|
public:
|
|
LayoutReplaced(const Element&, NonnullRefPtr<StyleProperties>);
|
|
virtual ~LayoutReplaced();
|
|
|
|
const Element& node() const { return static_cast<const Element&>(*LayoutNode::node()); }
|
|
|
|
private:
|
|
};
|