[haiku-webkit-commits] r399 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Wed, 07 Apr 2010 12:58:22 +0000

Author: stippi
Date: Wed Apr  7 12:58:22 2010
New Revision: 399
URL: http://mmlr.dyndns.org/changeset/399

Log:
Simplify the code.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Wed Apr  7 
12:46:39 2010        (r398)
+++ webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Wed Apr  7 
12:58:22 2010        (r399)
@@ -1228,12 +1228,9 @@
 
        SetCurrentWebView(webView);
 
-       if (webView)
+       if (webView) {
                _UpdateTitle(webView->MainFrameTitle());
-       else
-               _UpdateTitle("");
 
-       if (webView) {
                PageUserData* userData = static_cast<PageUserData*>(
                        webView->GetUserData());
                if (userData && userData->FocusedView() != NULL)
@@ -1245,7 +1242,8 @@
                // Trigger update of the interface to the new page, by 
requesting
                // to resend all notifications.
                webView->WebPage()->ResendNotifications();
-       }
+       } else
+               _UpdateTitle("");
 }
 
 

Other related posts:

  • » [haiku-webkit-commits] r399 - webkit/trunk/WebKit/haiku/WebPositive - webkit