mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibDevTools+LibWebView: Port DevTools to String
This commit is contained in:
parent
9879ac0893
commit
4791ec35bf
Notes:
github-actions[bot]
2025-02-21 00:29:06 +00:00
Author: https://github.com/trflynn89
Commit: 4791ec35bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
35 changed files with 99 additions and 98 deletions
|
@ -12,12 +12,12 @@
|
|||
|
||||
namespace DevTools {
|
||||
|
||||
NonnullRefPtr<CSSPropertiesActor> CSSPropertiesActor::create(DevToolsServer& devtools, ByteString name)
|
||||
NonnullRefPtr<CSSPropertiesActor> CSSPropertiesActor::create(DevToolsServer& devtools, String name)
|
||||
{
|
||||
return adopt_ref(*new CSSPropertiesActor(devtools, move(name)));
|
||||
}
|
||||
|
||||
CSSPropertiesActor::CSSPropertiesActor(DevToolsServer& devtools, ByteString name)
|
||||
CSSPropertiesActor::CSSPropertiesActor(DevToolsServer& devtools, String name)
|
||||
: Actor(devtools, move(name))
|
||||
{
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ void CSSPropertiesActor::handle_message(StringView type, JsonObject const&)
|
|||
|
||||
for (auto const& css_property : css_property_list) {
|
||||
JsonArray subproperties;
|
||||
subproperties.must_append(MUST(String::from_byte_string(css_property.name)));
|
||||
subproperties.must_append(css_property.name);
|
||||
|
||||
JsonObject property;
|
||||
property.set("isInherited"sv, css_property.is_inherited);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue