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

LibHTML: Rename LayoutStyle => ComputedStyle.

This commit is contained in:
Andreas Kling 2019-07-03 07:25:04 +02:00
parent c7cf6f00fc
commit 4b82ac3c8e
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, Bold,
}; };
class LayoutStyle { class ComputedStyle {
public: public:
LayoutStyle(); ComputedStyle();
~LayoutStyle(); ~ComputedStyle();
Color text_color() const { return m_text_color; } Color text_color() const { return m_text_color; }
Color background_color() const { return m_background_color; } Color background_color() const { return m_background_color; }

View file

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