talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 44a873753d09c1c9e59af28161922837ff9e6a57
parent bc7f670ba9ea99314a53cf99592842c92c30e606
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 10 Apr 2019 21:12:57 +0200

Add a getter for litehtml::document's m_over_element member

This allows us to avoid some expensive GDK calls in
lh_widget::set_cursor().

(cherry picked from commit 7c6693d7085636df23c44d1b40895f0e43c1f166)

Diffstat:
Msrc/plugins/litehtml_viewer/litehtml/document.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/plugins/litehtml_viewer/litehtml/document.h b/src/plugins/litehtml_viewer/litehtml/document.h @@ -89,6 +89,7 @@ namespace litehtml bool on_mouse_leave(position::vector& redraw_boxes); litehtml::element::ptr create_element(const tchar_t* tag_name, const string_map& attributes); element::ptr root(); + const element::ptr over_element() const; void get_fixed_boxes(position::vector& fixed_boxes); void add_fixed_box(const position& pos); void add_media_list(media_query_list::ptr list); @@ -118,6 +119,10 @@ namespace litehtml { return m_root; } + inline const element::ptr document::over_element() const + { + return m_over_element; + } inline void document::add_tabular(const element::ptr& el) { m_tabular_elements.push_back(el);