mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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
|
@ -340,7 +340,7 @@ Vector<DevTools::TabDescription> Application::tab_list() const
|
|||
Vector<DevTools::TabDescription> tabs;
|
||||
|
||||
ViewImplementation::for_each_view([&](ViewImplementation& view) {
|
||||
tabs.empend(view.view_id(), view.title(), view.url().to_byte_string());
|
||||
tabs.empend(view.view_id(), MUST(String::from_byte_string(view.title())), view.url().to_string());
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
||||
|
@ -355,7 +355,7 @@ Vector<DevTools::CSSProperty> Application::css_property_list() const
|
|||
auto property_id = static_cast<Web::CSS::PropertyID>(i);
|
||||
|
||||
DevTools::CSSProperty property;
|
||||
property.name = Web::CSS::string_from_property_id(property_id).to_string().to_byte_string();
|
||||
property.name = Web::CSS::string_from_property_id(property_id).to_string();
|
||||
property.is_inherited = Web::CSS::is_inherited_property(property_id);
|
||||
property_list.append(move(property));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue