commit ace1637cbf7777cb77dfc421e0c27c8fd9ca44ad
parent a1bad64aaad057f57d64116b306d84c0bbddfef1
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:
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);