Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <therzok@gmail.com>2017-04-23 17:55:15 +0300
committerMarius Ungureanu <therzok@gmail.com>2017-04-23 17:55:15 +0300
commit0b97065f669b691b771082c582544d0b384447b7 (patch)
treebfe2327d2aaf1e51f11cc0c0f5eaecb11d367e2c /Xwt.Gtk.Mac
parentfc1bfee92ab50fc6ab2b486fcfa467a9dfe20ecc (diff)
[Perf] Avoid allocating delegates where method groups are applicable.
Diffstat (limited to 'Xwt.Gtk.Mac')
-rw-r--r--Xwt.Gtk.Mac/WebViewBackend.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/Xwt.Gtk.Mac/WebViewBackend.cs b/Xwt.Gtk.Mac/WebViewBackend.cs
index ecae1983..d65a4a19 100644
--- a/Xwt.Gtk.Mac/WebViewBackend.cs
+++ b/Xwt.Gtk.Mac/WebViewBackend.cs
@@ -199,25 +199,19 @@ namespace Xwt.Gtk.Mac
void HandleLoadStarted (object o, EventArgs args)
{
- ApplicationContext.InvokeUserCode (delegate {
- EventSink.OnLoading ();
- });
+ ApplicationContext.InvokeUserCode (EventSink.OnLoading);
}
void HandleLoadFinished (object o, EventArgs args)
{
SetCustomCss ();
- ApplicationContext.InvokeUserCode (delegate {
- EventSink.OnLoaded ();
- });
+ ApplicationContext.InvokeUserCode (EventSink.OnLoaded);
}
void HandleTitleChanged (object sender, WebKit.WebFrameTitleEventArgs e)
{
- ApplicationContext.InvokeUserCode (delegate {
- EventSink.OnTitleChanged ();
- });
+ ApplicationContext.InvokeUserCode (EventSink.OnTitleChanged);
}
void SetCustomCss ()