frontends should not call the reformat API directly

The reformat API locking semantics are challenging to understand,
efectiveky browser_window_reformat should never be called by frontend
code directly except explicitly on the reformat callback. Otherwise
the content may already be locked and the system winds up asserting.
This commit is contained in:
Vincent Sanders 2016-03-16 21:07:14 +00:00
parent 06c84a26e9
commit 69d9d5dd22

View File

@ -208,7 +208,7 @@ nsws_drawable_hscroll(struct gui_window *gw, HWND hwnd, WPARAM wparam)
static LRESULT static LRESULT
nsws_drawable_resize(struct gui_window *gw) nsws_drawable_resize(struct gui_window *gw)
{ {
browser_window_reformat(gw->bw, false, gw->width, gw->height); browser_window_schedule_reformat(gw->bw);
return 0; return 0;
} }