mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibWeb: Implement CSSStyleDeclaration.cssText
This commit is contained in:
parent
8066a67da2
commit
c247fefee7
5 changed files with 65 additions and 7 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
String get_property_priority(StringView property) const;
|
||||
|
||||
String css_text() const;
|
||||
void set_css_text(StringView);
|
||||
virtual WebIDL::ExceptionOr<void> set_css_text(StringView) = 0;
|
||||
|
||||
virtual String serialized() const = 0;
|
||||
|
||||
|
@ -81,12 +81,16 @@ public:
|
|||
size_t custom_property_count() const { return m_custom_properties.size(); }
|
||||
|
||||
virtual String serialized() const final override;
|
||||
virtual WebIDL::ExceptionOr<void> set_css_text(StringView) override;
|
||||
|
||||
protected:
|
||||
PropertyOwningCSSStyleDeclaration(JS::Realm&, Vector<StyleProperty>, HashMap<String, StyleProperty>);
|
||||
|
||||
virtual void update_style_attribute() { }
|
||||
|
||||
void empty_the_declarations();
|
||||
void set_the_declarations(Vector<StyleProperty> properties, HashMap<String, StyleProperty> custom_properties);
|
||||
|
||||
private:
|
||||
bool set_a_css_declaration(PropertyID, NonnullRefPtr<StyleValue>, Important);
|
||||
|
||||
|
@ -107,6 +111,8 @@ public:
|
|||
|
||||
bool is_updating() const { return m_updating; }
|
||||
|
||||
virtual WebIDL::ExceptionOr<void> set_css_text(StringView) override;
|
||||
|
||||
private:
|
||||
ElementInlineCSSStyleDeclaration(DOM::Element&, Vector<StyleProperty> properties, HashMap<String, StyleProperty> custom_properties);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue