mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibWeb: Move Layout::Box::is_out_of_flow() to Layout::Node
I want to use this function in inline layout, where we're not just dealing with boxes.
This commit is contained in:
parent
150e6a59c0
commit
74927fd218
Notes:
sideshowbarker
2024-07-17 16:53:37 +09:00
Author: https://github.com/awesomekling
Commit: 74927fd218
4 changed files with 18 additions and 25 deletions
|
@ -74,6 +74,8 @@ public:
|
|||
|
||||
bool is_inline_block() const;
|
||||
|
||||
bool is_out_of_flow(FormattingContext const&) const;
|
||||
|
||||
// These are used to optimize hot is<T> variants for some classes where dynamic_cast is too slow.
|
||||
virtual bool is_box() const { return false; }
|
||||
virtual bool is_block_container() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue