mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/CSS: Make CSSStyleValue::parse_a_css_style_value() public
Needed by StylePropertyMap.
This commit is contained in:
parent
2f3053bc64
commit
927ce89864
|
|
@ -29,6 +29,12 @@ public:
|
|||
static WebIDL::ExceptionOr<GC::Ref<CSSStyleValue>> parse(JS::VM&, FlyString const& property, String css_text);
|
||||
static WebIDL::ExceptionOr<GC::RootVector<GC::Ref<CSSStyleValue>>> parse_all(JS::VM&, FlyString const& property, String css_text);
|
||||
|
||||
enum class ParseMultiple : u8 {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
static WebIDL::ExceptionOr<Variant<GC::Ref<CSSStyleValue>, GC::RootVector<GC::Ref<CSSStyleValue>>>> parse_a_css_style_value(JS::VM&, FlyString property, String css_text, ParseMultiple);
|
||||
|
||||
virtual WebIDL::ExceptionOr<String> to_string() const;
|
||||
|
||||
protected:
|
||||
|
|
@ -38,12 +44,6 @@ protected:
|
|||
private:
|
||||
explicit CSSStyleValue(JS::Realm&, FlyString associated_property, NonnullRefPtr<StyleValue const> source_value);
|
||||
|
||||
enum class ParseMultiple : u8 {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
static WebIDL::ExceptionOr<Variant<GC::Ref<CSSStyleValue>, GC::RootVector<GC::Ref<CSSStyleValue>>>> parse_a_css_style_value(JS::VM&, FlyString property, String css_text, ParseMultiple);
|
||||
|
||||
// https://drafts.css-houdini.org/css-typed-om-1/#dom-cssstylevalue-associatedproperty-slot
|
||||
Optional<FlyString> m_associated_property;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user