paint toggling fix cleanup

This commit is contained in:
gellert 2016-08-01 01:01:55 +02:00
parent aac5fb0377
commit 8e1214fc3a

View file

@ -492,7 +492,7 @@ void OffScreenRenderWidgetHostView::Focus() {
}
bool OffScreenRenderWidgetHostView::HasFocus() const {
return true;
return false;
}
bool OffScreenRenderWidgetHostView::IsSurfaceAvailableForCopy() const {
@ -554,9 +554,6 @@ void OffScreenRenderWidgetHostView::OnSwapCompositorFrame(
TRACE_EVENT0("electron",
"OffScreenRenderWidgetHostView::OnSwapCompositorFrame");
// if (!painting_)
// return;
if (frame->metadata.root_scroll_offset != last_scroll_offset_) {
last_scroll_offset_ = frame->metadata.root_scroll_offset;
}