mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Add Layout::Node::is_root_element()
This returns true if the layout node corresponds to the <html> element.
This commit is contained in:
parent
cc14b5a6d7
commit
11256de366
2 changed files with 10 additions and 0 deletions
|
@ -91,6 +91,8 @@ public:
|
|||
const InitialContainingBlockBox& root() const;
|
||||
InitialContainingBlockBox& root();
|
||||
|
||||
bool is_root_element() const;
|
||||
|
||||
virtual const char* class_name() const = 0;
|
||||
virtual bool is_initial_containing_block() const { return false; }
|
||||
virtual bool is_text() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue