CefBrowserHost::Invalidate doesn't do anything

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CefBrowserHost::Invalidate doesn't do anything

Postby hien » Mon Nov 24, 2014 9:56 pm

I am calling CefBrowserHost::Invalidate by calling
Code: Select all
browser->GetHost()->Invalidate(PaintElementType::PET_VIEW)
. I am expecting an OnPaint() event to get triggered within a short amount of time, but I am not getting anything. I took a look at the official documentation and it seems like the function prototype documented is
Code: Select all
Invalidate( const CefRect& dirtyRect, CefBrowserHost::PaintElementType type )
. I am seeing something different in cef_browser.h. Am I doing something wrong? I am using OSR. Thanks
hien
Newbie
 
Posts: 9
Joined: Mon Nov 03, 2014 9:38 pm

Re: CefBrowserHost::Invalidate doesn't do anything

Postby magreenblatt » Mon Nov 24, 2014 10:18 pm

What CEF version and OS?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefBrowserHost::Invalidate doesn't do anything

Postby hien » Tue Nov 25, 2014 12:02 am

CEF 2171.1902 Linux 64
hien
Newbie
 
Posts: 9
Joined: Mon Nov 03, 2014 9:38 pm

Re: CefBrowserHost::Invalidate doesn't do anything

Postby magreenblatt » Tue Nov 25, 2014 12:07 am

Does OnPaint get called while the page is loading?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefBrowserHost::Invalidate doesn't do anything

Postby hien » Tue Nov 25, 2014 12:08 am

Yes, it does.
hien
Newbie
 
Posts: 9
Joined: Mon Nov 03, 2014 9:38 pm

Re: CefBrowserHost::Invalidate doesn't do anything

Postby magreenblatt » Tue Nov 25, 2014 12:05 pm

Sounds like a bug. Please test with version 2171.1911 or newer (which includes a fix for https://code.google.com/p/chromiumembed ... il?id=1437) and file an issue if the problem still occurs.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 63 guests