mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Removing Invalidate call from inside OnIsVisibleChanged, instead making it a method so it can be called from other place if necessary
This commit is contained in:
@@ -509,9 +509,6 @@ namespace CefSharp.Wpf
|
||||
|
||||
var isVisible = (bool)args.NewValue;
|
||||
managedCefBrowserAdapter.WasHidden(!isVisible);
|
||||
|
||||
if (isVisible)
|
||||
managedCefBrowserAdapter.Invalidate(PaintElementType.View);
|
||||
}
|
||||
|
||||
private static void OnApplicationExit(object sender, ExitEventArgs e)
|
||||
@@ -1291,5 +1288,13 @@ namespace CefSharp.Wpf
|
||||
managedCefBrowserAdapter.AddWordToDictionary(word);
|
||||
}
|
||||
|
||||
// Invalidate the view. The browser will call CefRenderHandler::OnPaint
|
||||
// asynchronously. This method is only used when window rendering is
|
||||
// disabled.
|
||||
public void Invalidate(PaintElementType type)
|
||||
{
|
||||
managedCefBrowserAdapter.Invalidate(type);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user