1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibWeb: Make LineBoxFragment store non-const Layout::Node&

This is more honest, since we actually const_cast these layout nodes
during inline layout anyway.
This commit is contained in:
Andreas Kling 2020-12-04 15:46:58 +01:00
parent 6a83475ec5
commit 88ca932fac
4 changed files with 8 additions and 8 deletions

View file

@ -38,7 +38,7 @@ public:
float width() const { return m_width; }
void add_fragment(const Node& layout_node, int start, int length, int width, int height, LineBoxFragment::Type = LineBoxFragment::Type::Normal);
void add_fragment(Node& layout_node, int start, int length, int width, int height, LineBoxFragment::Type = LineBoxFragment::Type::Normal);
const NonnullOwnPtrVector<LineBoxFragment>& fragments() const { return m_fragments; }
NonnullOwnPtrVector<LineBoxFragment>& fragments() { return m_fragments; }