summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/ConnectionFromClient.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-10 10:21:03 -0500
committerLinus Groh <mail@linusgroh.de>2022-11-10 17:02:11 +0000
commit5d32fd7026c43c72ed3b96634a2d0d66cf2caa37 (patch)
tree175179a6484ee2408927bad37d544392c514cad0 /Userland/Services/WebContent/ConnectionFromClient.cpp
parent06f1b8825c51e26a8732687a30d80c26769458a1 (diff)
downloadserenity-5d32fd7026c43c72ed3b96634a2d0d66cf2caa37.zip
Browser+WebContent+WebDriver: Move Get Element Text to WebContent
Diffstat (limited to 'Userland/Services/WebContent/ConnectionFromClient.cpp')
-rw-r--r--Userland/Services/WebContent/ConnectionFromClient.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp
index b122df7edc..89f6690211 100644
--- a/Userland/Services/WebContent/ConnectionFromClient.cpp
+++ b/Userland/Services/WebContent/ConnectionFromClient.cpp
@@ -494,15 +494,6 @@ void ConnectionFromClient::scroll_element_into_view(i32 element_id)
element->scroll_into_view(options);
}
-Messages::WebContentServer::GetElementTextResponse ConnectionFromClient::get_element_text(i32 element_id)
-{
- auto element = find_element_by_id(element_id);
- if (!element.has_value())
- return { "" };
-
- return { element->layout_node()->dom_node()->text_content() };
-}
-
Messages::WebContentServer::GetElementTagNameResponse ConnectionFromClient::get_element_tag_name(i32 element_id)
{
auto element = find_element_by_id(element_id);