diff options
author | Marius Ungureanu <therzok@gmail.com> | 2017-04-23 17:55:15 +0300 |
---|---|---|
committer | Marius Ungureanu <therzok@gmail.com> | 2017-04-23 17:55:15 +0300 |
commit | 0b97065f669b691b771082c582544d0b384447b7 (patch) | |
tree | bfe2327d2aaf1e51f11cc0c0f5eaecb11d367e2c /Xwt.Gtk.Mac | |
parent | fc1bfee92ab50fc6ab2b486fcfa467a9dfe20ecc (diff) |
[Perf] Avoid allocating delegates where method groups are applicable.
Diffstat (limited to 'Xwt.Gtk.Mac')
-rw-r--r-- | Xwt.Gtk.Mac/WebViewBackend.cs | 12 |
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 () |