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

LibWeb: Fix pointer-events check in hit_test

This commit is contained in:
Aliaksandr Kalenik 2022-10-20 01:43:31 +03:00 committed by Andreas Kling
parent ebd93c8d57
commit 66e424a084
2 changed files with 8 additions and 10 deletions

View file

@ -117,6 +117,8 @@ public:
auto const& computed_values() const { return m_layout_node.computed_values(); }
bool visible_for_hit_testing() const { return computed_values().pointer_events() != CSS::PointerEvents::None; }
HTML::BrowsingContext const& browsing_context() const { return m_layout_node.browsing_context(); }
HTML::BrowsingContext& browsing_context() { return layout_node().browsing_context(); }