diff --git a/LibHTML/Layout/ComputedStyle.cpp b/LibHTML/Layout/ComputedStyle.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2716ff6463a4806941cd2ed5842256146a626672 --- /dev/null +++ b/LibHTML/Layout/ComputedStyle.cpp @@ -0,0 +1,9 @@ +#include + +ComputedStyle::ComputedStyle() +{ +} + +ComputedStyle::~ComputedStyle() +{ +} diff --git a/LibHTML/Layout/LayoutStyle.h b/LibHTML/Layout/ComputedStyle.h similarity index 94% rename from LibHTML/Layout/LayoutStyle.h rename to LibHTML/Layout/ComputedStyle.h index ddee1736ad19e7c9f812cfff206fb7c5b98ce1bc..af339fecd65d49585b89ca4848094d091a6ccf9d 100644 --- a/LibHTML/Layout/LayoutStyle.h +++ b/LibHTML/Layout/ComputedStyle.h @@ -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; } diff --git a/LibHTML/Layout/LayoutNode.h b/LibHTML/Layout/LayoutNode.h index d049d379132ac6813f66baf8534976eae7b6df40..b30b26e025a1bb03140a75a73f5ff885f3a5b960 100644 --- a/LibHTML/Layout/LayoutNode.h +++ b/LibHTML/Layout/LayoutNode.h @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include @@ -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 m_styled_node; - LayoutStyle m_style; + ComputedStyle m_style; Rect m_rect; }; diff --git a/LibHTML/Layout/LayoutStyle.cpp b/LibHTML/Layout/LayoutStyle.cpp deleted file mode 100644 index 13b0c94b00d589b1391d3c71ece228d09674b24f..0000000000000000000000000000000000000000 --- a/LibHTML/Layout/LayoutStyle.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include - -LayoutStyle::LayoutStyle() -{ -} - -LayoutStyle::~LayoutStyle() -{ -} diff --git a/LibHTML/Makefile.shared b/LibHTML/Makefile.shared index df6e17befc806a17512b5bc562b345ed64e8a6bc..e93ccf54c7b48fbbe5831b2b413ae34c83933c56 100644 --- a/LibHTML/Makefile.shared +++ b/LibHTML/Makefile.shared @@ -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