From 01a3f72d3918854141269badf9f00d9348aa8410 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 19 Jul 2022 12:06:03 +0100 Subject: [PATCH] LibWeb: Make PaintableBox private members private These are all `m_` prefixed and only used by PaintableBox itself. --- Userland/Libraries/LibWeb/Painting/PaintableBox.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.h b/Userland/Libraries/LibWeb/Painting/PaintableBox.h index d2c1e2503b..ce52126ad9 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.h +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.h @@ -30,13 +30,6 @@ public: Gfx::FloatRect scrollable_overflow_rect; Gfx::FloatPoint scroll_offset; }; - Optional m_overflow_data; - - Gfx::FloatPoint m_offset; - Gfx::FloatSize m_content_size; - - // Some boxes hang off of line box fragments. (inline-block, inline-table, replaced, etc) - Optional m_containing_line_box_fragment; Gfx::FloatRect absolute_rect() const; Gfx::FloatPoint effective_offset() const; @@ -133,6 +126,14 @@ protected: Painting::BorderRadiiData normalized_border_radii_data() const; private: + Optional m_overflow_data; + + Gfx::FloatPoint m_offset; + Gfx::FloatSize m_content_size; + + // Some boxes hang off of line box fragments. (inline-block, inline-table, replaced, etc) + Optional m_containing_line_box_fragment; + OwnPtr m_stacking_context; Optional mutable m_absolute_rect;