[haiku-webkit-commits] r429 - webkit/trunk/WebKit/haiku/API

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 01:31:44 +0000

Author: stippi
Date: Tue Apr 20 01:31:43 2010
New Revision: 429
URL: http://mmlr.dyndns.org/changeset/429

Log:
Set the name after having appended the child in the tree, as the Gtk port does.

Modified:
   webkit/trunk/WebKit/haiku/API/WebFrame.cpp

Modified: webkit/trunk/WebKit/haiku/API/WebFrame.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/API/WebFrame.cpp  Tue Apr 20 01:30:35 2010        
(r428)
+++ webkit/trunk/WebKit/haiku/API/WebFrame.cpp  Tue Apr 20 01:31:43 2010        
(r429)
@@ -39,16 +39,17 @@
 #include "HTMLFrameOwnerElement.h"
 #include "KURL.h"
 #include "Page.h"
+#include "PlatformString.h"
 #include "RenderObject.h"
 #include "RenderTreeAsText.h"
 #include "RenderView.h"
 #include "WebFramePrivate.h"
 #include "WebPage.h"
 #include "markup.h"
-#include "wtf/RefPtr.h"
-#include "wtf/Vector.h"
+#include <wtf/RefPtr.h>
+#include <wtf/Vector.h>
 #include <Entry.h>
-#include <String.h>
+#include <support/String.h>
 
 static const float kMinimumZoomFactorMultiplier = 0.5;
 static const float kMaximumZoomFactorMultiplier = 3;
@@ -68,10 +69,10 @@
     // We don't keep the reference to the Frame, see WebFramePrivate.h.
     fData->frame = frame.get();
 
-    fData->frame->tree()->setName(fData->name);
     if (parentFrame)
         parentFrame->Frame()->tree()->appendChild(fData->frame);
 
+    fData->frame->tree()->setName(fData->name);
     fData->frame->init();
 }
 

Other related posts:

  • » [haiku-webkit-commits] r429 - webkit/trunk/WebKit/haiku/API - webkit