Don't get content when its not needed.

This commit is contained in:
Michael Drake 2014-10-25 14:58:37 +01:00
parent 76a6f4d39f
commit 423ead2f77
1 changed files with 1 additions and 3 deletions

View File

@ -679,7 +679,6 @@ void nsbeos_dispatch_event(BMessage *message)
void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
{
BRect updateRect;
hlcache_handle *c;
float scale = g->scale;
struct rect clip;
@ -701,8 +700,7 @@ void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
if (message->FindRect("rect", &updateRect) < B_OK)
return;
c = g->bw->current_content;
if (c == NULL)
if (browser_window_has_content(g->bw) == false)
return;
if (!view->LockLooper())