mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:07:45 +00:00
LibWeb: Split Paintable into Paintable and PaintableBox
To prepare for paintable inline content, we take the basic painting functionality and hoist it into a base class.
This commit is contained in:
parent
0500dbc3f6
commit
053766d79c
34 changed files with 133 additions and 95 deletions
|
@ -54,6 +54,11 @@ public:
|
|||
const DOM::Node* dom_node() const { return m_dom_node; }
|
||||
DOM::Node* dom_node() { return m_dom_node; }
|
||||
|
||||
Painting::Paintable const* paintable() const { return m_paintable; }
|
||||
void set_paintable(OwnPtr<Painting::Paintable>);
|
||||
|
||||
virtual OwnPtr<Painting::Paintable> create_paintable() const;
|
||||
|
||||
DOM::Document& document() { return m_document; }
|
||||
const DOM::Document& document() const { return m_document; }
|
||||
|
||||
|
@ -219,6 +224,7 @@ private:
|
|||
|
||||
NonnullRefPtr<DOM::Document> m_document;
|
||||
RefPtr<DOM::Node> m_dom_node;
|
||||
OwnPtr<Painting::Paintable> m_paintable;
|
||||
|
||||
bool m_inline { false };
|
||||
bool m_has_style { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue