1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:55:08 +00:00

LibHTML: Start fleshing out a StyleResolver class.

This will be responsible for matching selectors and creating LayoutStyle
objects for the document and its elements.
This commit is contained in:
Andreas Kling 2019-06-27 17:47:59 +02:00
parent 2282e89d3f
commit 2b4eea5a50
4 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#include <LibHTML/CSS/StyleResolver.h>
#include <LibHTML/CSS/StyleSheet.h>
StyleResolver::StyleResolver(Document& document)
: m_document(document)
{
}
StyleResolver::~StyleResolver()
{
}
OwnPtr<LayoutStyle> StyleResolver::resolve_document_style(const Document& document)
{
UNUSED_PARAM(document);
return nullptr;
}
OwnPtr<LayoutStyle> StyleResolver::resolve_element_style(const Element& element)
{
UNUSED_PARAM(element);
return nullptr;
}