mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 01:55:08 +00:00
LibWeb: Port CSSStyleDeclaration from DeprecatedString to String
This commit is contained in:
parent
fbc4370c44
commit
f5efe9bb63
5 changed files with 21 additions and 21 deletions
|
@ -72,7 +72,7 @@ size_t ResolvedCSSStyleDeclaration::length() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
DeprecatedString ResolvedCSSStyleDeclaration::item(size_t index) const
|
||||
String ResolvedCSSStyleDeclaration::item(size_t index) const
|
||||
{
|
||||
(void)index;
|
||||
return {};
|
||||
|
@ -944,7 +944,7 @@ WebIDL::ExceptionOr<void> ResolvedCSSStyleDeclaration::set_property(PropertyID,
|
|||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-removeproperty
|
||||
WebIDL::ExceptionOr<DeprecatedString> ResolvedCSSStyleDeclaration::remove_property(PropertyID)
|
||||
WebIDL::ExceptionOr<String> ResolvedCSSStyleDeclaration::remove_property(PropertyID)
|
||||
{
|
||||
// 1. If the computed flag is set, then throw a NoModificationAllowedError exception.
|
||||
return WebIDL::NoModificationAllowedError::create(realm(), "Cannot remove properties from result of getComputedStyle()"_fly_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue