mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
LibHTML: More work on the CSS object model.
This commit is contained in:
parent
d343fb2429
commit
02e02ca3a5
6 changed files with 41 additions and 12 deletions
|
@ -4,12 +4,18 @@
|
|||
#include <LibHTML/CSS/Selector.h>
|
||||
#include <LibHTML/CSS/StyleDeclaration.h>
|
||||
|
||||
class StyleRule {
|
||||
class StyleRule : public RefCounted<StyleRule> {
|
||||
public:
|
||||
StyleRule();
|
||||
NonnullRefPtr<StyleRule> create(Vector<Selector>&& selectors, Vector<NonnullRefPtr<StyleDeclaration>>&& declarations)
|
||||
{
|
||||
return adopt(*new StyleRule(move(selectors), move(declarations)));
|
||||
}
|
||||
|
||||
~StyleRule();
|
||||
|
||||
private:
|
||||
StyleRule(Vector<Selector>&&, Vector<NonnullRefPtr<StyleDeclaration>>&&);
|
||||
|
||||
Vector<Selector> m_selectors;
|
||||
Vector<StyleDeclaration> m_declarations;
|
||||
Vector<NonnullRefPtr<StyleDeclaration>> m_declarations;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue