LibHTML: Rename LayoutStyle => ComputedStyle.
This commit is contained in:
parent
c7cf6f00fc
commit
4b82ac3c8e
Notes:
sideshowbarker
2024-07-19 13:24:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4b82ac3c8ed
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,
|
||||
};
|
||||
|
||||
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; }
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#include <LibHTML/Layout/LayoutStyle.h>
|
||||
|
||||
LayoutStyle::LayoutStyle()
|
||||
{
|
||||
}
|
||||
|
||||
LayoutStyle::~LayoutStyle()
|
||||
{
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue