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

LibWeb: Remove Node::m_font_size

This was only ever used in order to set the m_font_size for another
Node, so it can just go. :^)
This commit is contained in:
Sam Atkins 2022-01-18 16:58:12 +00:00 committed by Andreas Kling
parent e60d51b8eb
commit c8409cd58d
2 changed files with 0 additions and 22 deletions

View file

@ -146,8 +146,6 @@ public:
Gfx::FloatPoint box_type_agnostic_position() const;
float font_size() const;
enum class SelectionState {
None, // No selection
Start, // Selection starts in this Node
@ -204,7 +202,6 @@ public:
const Gfx::Font& font() const { return *m_font; }
float line_height() const { return m_line_height; }
float font_size() const { return m_font_size; }
Vector<CSS::BackgroundLayerData> const& background_layers() const { return computed_values().background_layers(); }
const CSS::ImageStyleValue* list_style_image() const { return m_list_style_image; }
@ -221,7 +218,6 @@ private:
CSS::ComputedValues m_computed_values;
RefPtr<Gfx::Font> m_font;
float m_line_height { 0 };
float m_font_size { 0 };
RefPtr<CSS::ImageStyleValue> m_list_style_image;
bool m_has_definite_height { false };
@ -255,13 +251,6 @@ inline const Gfx::Font& Node::font() const
return parent()->font();
}
inline float Node::font_size() const
{
if (m_has_style)
return static_cast<const NodeWithStyle*>(this)->font_size();
return parent()->font_size();
}
inline const CSS::ImmutableComputedValues& Node::computed_values() const
{
if (m_has_style)