1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 05:45:07 +00:00

LibHTML: Implement enough of the CSS parser to parse the default stylesheet.

This commit is contained in:
Andreas Kling 2019-06-22 21:48:21 +02:00
parent 7e1cb86da7
commit 4573eb226e
3 changed files with 71 additions and 5 deletions

View file

@ -0,0 +1,15 @@
#include "StyleValue.h"
StyleValue::StyleValue(Type type)
: m_type(type)
{
}
StyleValue::~StyleValue()
{
}
NonnullRefPtr<StyleValue> StyleValue::parse(const StringView& str)
{
return adopt(*new PrimitiveStyleValue(str));
}