1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 15:35:09 +00:00

LibHTML: Add the outline of a CSS stylesheet object graph.

This commit is contained in:
Andreas Kling 2019-06-20 23:25:25 +02:00
parent 2e2b97dc8a
commit d99b1a9ea0
11 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#pragma once
#include <AK/AKString.h>
#include <LibHTML/CSS/StyleValue.h>
class StyleDeclaration {
public:
StyleDeclaration();
~StyleDeclaration();
const String& property_name() const { return m_property_name; }
const StyleValue& value() const { return *m_value; }
public:
String m_property_name;
RetainPtr<StyleValue> m_value;
};