mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
paint toggling fix cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user