diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/Paintable.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/Paintable.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/Paintable.h b/Userland/Libraries/LibWeb/Painting/Paintable.h index 3140c68c26..75c471d684 100644 --- a/Userland/Libraries/LibWeb/Painting/Paintable.h +++ b/Userland/Libraries/LibWeb/Painting/Paintable.h @@ -32,6 +32,9 @@ struct HitTestResult { After, }; InternalPosition internal_position { None }; + + DOM::Node* dom_node(); + DOM::Node const* dom_node() const; }; enum class HitTestType { @@ -96,4 +99,14 @@ private: Optional<Layout::BlockContainer*> mutable m_containing_block; }; +inline DOM::Node* HitTestResult::dom_node() +{ + return paintable->layout_node().dom_node(); +} + +inline DOM::Node const* HitTestResult::dom_node() const +{ + return paintable->layout_node().dom_node(); +} + } |