1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Rename Layout::Node::is_block_box() => is_block_container()

This commit is contained in:
Andreas Kling 2021-10-06 20:07:13 +02:00
parent fa45b905bf
commit d9e0fd8823
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ public:
void set_scroll_offset(const Gfx::FloatPoint&);
private:
virtual bool is_block_box() const final { return true; }
virtual bool is_block_container() const final { return true; }
virtual bool wants_mouse_events() const override { return false; }
virtual bool handle_mousewheel(Badge<EventHandler>, const Gfx::IntPoint&, unsigned buttons, unsigned modifiers, int wheel_delta) override;
@ -49,7 +49,7 @@ private:
};
template<>
inline bool Node::fast_is<BlockContainer>() const { return is_block_box(); }
inline bool Node::fast_is<BlockContainer>() const { return is_block_container(); }
template<typename Callback>
void BlockContainer::for_each_fragment(Callback callback)

View file

@ -98,7 +98,7 @@ public:
// 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_box() const { return false; }
virtual bool is_block_container() const { return false; }
virtual bool is_text_node() const { return false; }
virtual bool is_initial_containing_block_box() const { return false; }