mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb: Start adding support for the <iframe> element! :^)
This patch introduces a bunch of things: - Subframes (Web::Frame::create_subframe()) - HTMLIFrameElement (loads and owns the hosted Web::Frame) - LayoutFrame (layout and rendering of the hosted frame) There's still a huge number of things missing, like scrolling, overflow handling, event handling, scripting, etc. But we can make a little iframe in a document and it actually renders another document there. I think that's pretty cool! :^)
This commit is contained in:
parent
f2aa21ebc4
commit
422bbe98a5
13 changed files with 321 additions and 0 deletions
|
@ -60,6 +60,7 @@ public:
|
|||
|
||||
bool is_anonymous() const { return !m_node; }
|
||||
const Node* node() const { return m_node; }
|
||||
Node* node() { return const_cast<Node*>(m_node); }
|
||||
|
||||
Document& document();
|
||||
const Document& document() const;
|
||||
|
@ -87,6 +88,7 @@ public:
|
|||
virtual bool is_block() const { return false; }
|
||||
virtual bool is_replaced() const { return false; }
|
||||
virtual bool is_widget() const { return false; }
|
||||
virtual bool is_frame() const { return false; }
|
||||
virtual bool is_image() const { return false; }
|
||||
virtual bool is_canvas() const { return false; }
|
||||
virtual bool is_box() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue