mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
25 lines
531 B
C++
25 lines
531 B
C++
#include <LibHTML/CSS/StyledNode.h>
|
|
|
|
StyledNode::StyledNode(const Node* node)
|
|
: m_node(node)
|
|
{
|
|
}
|
|
|
|
StyledNode::~StyledNode()
|
|
{
|
|
}
|
|
|
|
Display StyledNode::display() const
|
|
{
|
|
auto it = m_property_values.find("display");
|
|
if (it == m_property_values.end())
|
|
return Display::Inline;
|
|
auto value = it->value->to_string();
|
|
if (value == "none")
|
|
return Display::None;
|
|
if (value == "block")
|
|
return Display::Block;
|
|
if (value == "inline")
|
|
return Display::Inline;
|
|
ASSERT_NOT_REACHED();
|
|
}
|