1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +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:
Andreas Kling 2022-03-22 18:34:02 +01:00
parent 150e6a59c0
commit 74927fd218
4 changed files with 18 additions and 25 deletions

View file

@ -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; }