1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:07:34 +00:00

Browser+WebContent+WebDriver: Move Get Element Rect to WebContent

This commit is contained in:
Timothy Flynn 2022-11-10 10:33:29 -05:00 committed by Linus Groh
parent 9dd62228c8
commit 30d6a73d0e
16 changed files with 65 additions and 79 deletions

View file

@ -525,15 +525,6 @@ static Gfx::IntRect calculate_absolute_rect_of_element(Web::Page const& page, We
};
}
Messages::WebContentServer::GetElementRectResponse ConnectionFromClient::get_element_rect(i32 element_id)
{
auto element = find_element_by_id(element_id);
if (!element.has_value())
return { {} };
return { calculate_absolute_rect_of_element(page(), *element) };
}
Messages::WebContentServer::IsElementEnabledResponse ConnectionFromClient::is_element_enabled(i32 element_id)
{
auto element = find_element_by_id(element_id);