mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 01:34:25 +03:00
Enable content redraw request without hlcache_handle.
svn path=/trunk/netsurf/; revision=12518
This commit is contained in:
parent
a06bde0232
commit
6f215b1f02
@ -435,7 +435,7 @@ void content_mouse_action(hlcache_handle *h, struct browser_window *bw,
|
|||||||
/**
|
/**
|
||||||
* Request a redraw of an area of a content
|
* Request a redraw of an area of a content
|
||||||
*
|
*
|
||||||
* \param h Content handle
|
* \param h high-level cache handle
|
||||||
* \param x x co-ord of left edge
|
* \param x x co-ord of left edge
|
||||||
* \param y y co-ord of top edge
|
* \param y y co-ord of top edge
|
||||||
* \param width Width of rectangle
|
* \param width Width of rectangle
|
||||||
@ -444,7 +444,23 @@ void content_mouse_action(hlcache_handle *h, struct browser_window *bw,
|
|||||||
void content_request_redraw(struct hlcache_handle *h,
|
void content_request_redraw(struct hlcache_handle *h,
|
||||||
int x, int y, int width, int height)
|
int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
struct content *c = hlcache_handle_get_content(h);
|
content__request_redraw(hlcache_handle_get_content(h),
|
||||||
|
x, y, width, height);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request a redraw of an area of a content
|
||||||
|
*
|
||||||
|
* \param c Content
|
||||||
|
* \param x x co-ord of left edge
|
||||||
|
* \param y y co-ord of top edge
|
||||||
|
* \param width Width of rectangle
|
||||||
|
* \param height Height of rectangle
|
||||||
|
*/
|
||||||
|
void content__request_redraw(struct content *c,
|
||||||
|
int x, int y, int width, int height)
|
||||||
|
{
|
||||||
union content_msg_data data;
|
union content_msg_data data;
|
||||||
|
|
||||||
if (c == NULL)
|
if (c == NULL)
|
||||||
|
@ -154,6 +154,8 @@ void content_add_error(struct content *c, const char *token,
|
|||||||
|
|
||||||
void content__reformat(struct content *c, bool background,
|
void content__reformat(struct content *c, bool background,
|
||||||
int width, int height);
|
int width, int height);
|
||||||
|
void content__request_redraw(struct content *c,
|
||||||
|
int x, int y, int width, int height);
|
||||||
|
|
||||||
bool content__set_title(struct content *c, const char *title);
|
bool content__set_title(struct content *c, const char *title);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user