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:
parent
c7cf6f00fc
commit
4b82ac3c8e
5 changed files with 17 additions and 17 deletions
9
LibHTML/Layout/ComputedStyle.cpp
Normal file
9
LibHTML/Layout/ComputedStyle.cpp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#include <LibHTML/Layout/ComputedStyle.h>
|
||||||
|
|
||||||
|
ComputedStyle::ComputedStyle()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
ComputedStyle::~ComputedStyle()
|
||||||
|
{
|
||||||
|
}
|
|
@ -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; }
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#include <LibHTML/Layout/LayoutStyle.h>
|
|
||||||
|
|
||||||
LayoutStyle::LayoutStyle()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
LayoutStyle::~LayoutStyle()
|
|
||||||
{
|
|
||||||
}
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue