LibHTML: Rename "style_properties" to "style" everywhere

This commit is contained in:
Andreas Kling 2019-10-07 09:23:53 +02:00
commit 15f3e64862
Notes: sideshowbarker 2024-07-19 11:46:09 +09:00
12 changed files with 53 additions and 53 deletions

View file

@ -27,8 +27,8 @@ public:
Rect& rect() { return m_rect; }
void set_rect(const Rect& rect) { m_rect = rect; }
BoxModelMetrics& box_model() { return m_style; }
const BoxModelMetrics& box_model() const { return m_style; }
BoxModelMetrics& box_model() { return m_box_metrics; }
const BoxModelMetrics& box_model() const { return m_box_metrics; }
virtual HitTestResult hit_test(const Point&) const;
@ -68,8 +68,8 @@ public:
const StyleProperties& style() const
{
if (m_style_properties)
return *m_style_properties;
if (m_style)
return *m_style;
return parent()->style();
}
@ -84,8 +84,8 @@ protected:
private:
const Node* m_node { nullptr };
RefPtr<StyleProperties> m_style_properties;
BoxModelMetrics m_style;
RefPtr<StyleProperties> m_style;
BoxModelMetrics m_box_metrics;
Rect m_rect;
bool m_inline { false };
};