summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLElement.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-04-15 20:48:55 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-15 20:22:08 +0200
commit815934a95dc7f3bc540a6c66988073d0dddfb87e (patch)
tree58dc5ba490f975eb7f26f5b57d9372ded08f8436 /Userland/Libraries/LibWeb/HTML/HTMLElement.h
parentc5769a7033b1acd5ff18f4fbb11f582809f77d47 (diff)
downloadserenity-815934a95dc7f3bc540a6c66988073d0dddfb87e.zip
LibWeb: Expose the HTMLElement::{offsetLeft, offsetTop} attributes
These describe the border box of an element relative to their parent.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLElement.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.h b/Userland/Libraries/LibWeb/HTML/HTMLElement.h
index f498d6c781..b35e579217 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.h
@@ -50,6 +50,9 @@ public:
String inner_text();
void set_inner_text(StringView);
+ unsigned offset_top() const;
+ unsigned offset_left() const;
+
bool cannot_navigate() const;
protected: