LibHTML: Rename LayoutStyle => ComputedStyle.

This commit is contained in:
Andreas Kling 2019-07-03 07:25:04 +02:00
parent c7cf6f00fc
commit 4b82ac3c8e
Notes: sideshowbarker 2024-07-19 13:24:10 +09:00
5 changed files with 17 additions and 17 deletions

View file

@ -0,0 +1,9 @@
#include <LibHTML/Layout/ComputedStyle.h>
ComputedStyle::ComputedStyle()
{
}
ComputedStyle::~ComputedStyle()
{
}

View file

@ -9,10 +9,10 @@ enum FontStyle {
Bold,
};
class LayoutStyle {
class ComputedStyle {
public:
LayoutStyle();
~LayoutStyle();
ComputedStyle();
~ComputedStyle();
Color text_color() const { return m_text_color; }
Color background_color() const { return m_background_color; }

View file

@ -2,7 +2,7 @@
#include <AK/NonnullRefPtr.h>
#include <AK/Vector.h>
#include <LibHTML/Layout/LayoutStyle.h>
#include <LibHTML/Layout/ComputedStyle.h>
#include <LibHTML/TreeNode.h>
#include <SharedGraphics/Rect.h>
@ -18,8 +18,8 @@ public:
Rect& rect() { return m_rect; }
void set_rect(const Rect& rect) { m_rect = rect; }
LayoutStyle& style() { return m_style; }
const LayoutStyle& style() const { return m_style; }
ComputedStyle& style() { return m_style; }
const ComputedStyle& style() const { return m_style; }
bool is_anonymous() const { return !m_node; }
const Node* node() const { return m_node; }
@ -53,6 +53,6 @@ private:
const Node* m_node { nullptr };
NonnullRefPtr<StyledNode> m_styled_node;
LayoutStyle m_style;
ComputedStyle m_style;
Rect m_rect;
};

View file

@ -1,9 +0,0 @@
#include <LibHTML/Layout/LayoutStyle.h>
LayoutStyle::LayoutStyle()
{
}
LayoutStyle::~LayoutStyle()
{
}

View file

@ -19,7 +19,7 @@ LIBHTML_OBJS = \
Layout/LayoutBlock.o \
Layout/LayoutInline.o \
Layout/LayoutDocument.o \
Layout/LayoutStyle.o \
Layout/ComputedStyle.o \
Frame.o \
Dump.o