mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Return String from CSSStyleRule::selector_text()
This commit is contained in:
parent
374b6cdffd
commit
d344c50663
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/AtkinsSJ
Commit: d344c50663
Pull-request: https://github.com/SerenityOS/serenity/pull/22115
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/DeprecatedString.h>
|
#include <AK/String.h>
|
||||||
#include <LibJS/Heap/GCPtr.h>
|
#include <LibJS/Heap/GCPtr.h>
|
||||||
#include <LibWeb/Bindings/PlatformObject.h>
|
#include <LibWeb/Bindings/PlatformObject.h>
|
||||||
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
#include <LibWeb/CSS/CSSStyleDeclaration.h>
|
||||||
|
|
|
@ -89,10 +89,10 @@ String CSSStyleRule::serialized() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext
|
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext
|
||||||
DeprecatedString CSSStyleRule::selector_text() const
|
String CSSStyleRule::selector_text() const
|
||||||
{
|
{
|
||||||
// The selectorText attribute, on getting, must return the result of serializing the associated group of selectors.
|
// The selectorText attribute, on getting, must return the result of serializing the associated group of selectors.
|
||||||
return serialize_a_group_of_selectors(selectors()).to_deprecated_string();
|
return serialize_a_group_of_selectors(selectors());
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext
|
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext
|
||||||
|
|
|
@ -28,7 +28,7 @@ public:
|
||||||
|
|
||||||
virtual Type type() const override { return Type::Style; }
|
virtual Type type() const override { return Type::Style; }
|
||||||
|
|
||||||
DeprecatedString selector_text() const;
|
String selector_text() const;
|
||||||
void set_selector_text(StringView);
|
void set_selector_text(StringView);
|
||||||
|
|
||||||
CSSStyleDeclaration* style();
|
CSSStyleDeclaration* style();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue