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:
parent
97dde51a9b
commit
0bbf7a1b54
4 changed files with 21 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue