mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
This commit is contained in:
parent
2eacc7aec1
commit
f3db548a3d
Notes:
sideshowbarker
2024-07-17 01:52:39 +09:00
Author: https://github.com/trflynn89
Commit: f3db548a3d
Pull-request: https://github.com/SerenityOS/serenity/pull/16926
316 changed files with 1177 additions and 1177 deletions
|
@ -17,7 +17,7 @@ namespace Web::DOM {
|
|||
template<typename NodeType>
|
||||
class NonElementParentNode {
|
||||
public:
|
||||
JS::GCPtr<Element> get_element_by_id(FlyString const& id) const
|
||||
JS::GCPtr<Element> get_element_by_id(DeprecatedFlyString const& id) const
|
||||
{
|
||||
JS::GCPtr<Element> found_element;
|
||||
static_cast<NodeType const*>(this)->template for_each_in_inclusive_subtree_of_type<Element>([&](auto& element) {
|
||||
|
@ -29,7 +29,7 @@ public:
|
|||
});
|
||||
return found_element;
|
||||
}
|
||||
JS::GCPtr<Element> get_element_by_id(FlyString const& id)
|
||||
JS::GCPtr<Element> get_element_by_id(DeprecatedFlyString const& id)
|
||||
{
|
||||
return const_cast<NonElementParentNode const*>(this)->get_element_by_id(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue