mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Port CSSStyleDeclaration from DeprecatedString to String
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 23:05:02 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/af7df1dbbf Pull-request: https://github.com/SerenityOS/serenity/pull/22057 Reviewed-by: https://github.com/trflynn89
@@ -567,14 +567,14 @@ WebIDL::ExceptionOr<String> ResolvedCSSStyleDeclaration::remove_property(Propert
|
||||
return WebIDL::NoModificationAllowedError::create(realm(), "Cannot remove properties from result of getComputedStyle()"_fly_string);
|
||||
}
|
||||
|
||||
DeprecatedString ResolvedCSSStyleDeclaration::serialized() const
|
||||
String ResolvedCSSStyleDeclaration::serialized() const
|
||||
{
|
||||
// https://www.w3.org/TR/cssom/#dom-cssstyledeclaration-csstext
|
||||
// If the computed flag is set, then return the empty string.
|
||||
|
||||
// NOTE: ResolvedCSSStyleDeclaration is something you would only get from window.getComputedStyle(),
|
||||
// which returns what the spec calls "resolved style". The "computed flag" is always set here.
|
||||
return DeprecatedString::empty();
|
||||
return String {};
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-csstext
|
||||
|
||||
Reference in New Issue
Block a user