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

LibWeb: Refactor should_skip_anonymous_text_runs

This same function was being copied in the {Flex,Grid}FormattingContext,
so unify them in the parent FormattingContext.
This commit is contained in:
Tom 2022-12-28 10:11:54 +01:00 committed by Andreas Kling
parent 97dde51a9b
commit 0bbf7a1b54
4 changed files with 21 additions and 29 deletions

View file

@ -81,6 +81,7 @@ public:
virtual void determine_height_of_child(Box const&, AvailableSpace const&) { }
virtual Gfx::FloatPoint calculate_static_position(Box const&) const;
bool can_skip_is_anonymous_text_run(Box&);
protected:
FormattingContext(Type, LayoutState&, Box const&, FormattingContext* parent = nullptr);