mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibHTML: Add a simple <style> element for inline CSS
This commit is contained in:
17
Libraries/LibHTML/DOM/HTMLStyleElement.h
Normal file
17
Libraries/LibHTML/DOM/HTMLStyleElement.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibHTML/DOM/HTMLElement.h>
|
||||
|
||||
class StyleSheet;
|
||||
|
||||
class HTMLStyleElement : public HTMLElement {
|
||||
public:
|
||||
HTMLStyleElement(Document&, const String& tag_name);
|
||||
virtual ~HTMLStyleElement() override;
|
||||
|
||||
virtual void inserted_into(Node&) override;
|
||||
virtual void removed_from(Node&) override;
|
||||
|
||||
private:
|
||||
RefPtr<StyleSheet> m_stylesheet;
|
||||
};
|
||||
Reference in New Issue
Block a user