Reviewed by Anders.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Jun 2006 00:20:12 +0000 (00:20 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Jun 2006 00:20:12 +0000 (00:20 +0000)
        - fix Frame leak on layout tests

        * WebCoreSupport/WebPageBridge.m:
        (-[WebPageBridge outerView]): Return WebFrameView for main frame instead
        of WebView to avoid reference cycle between WebView and Page.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15089 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebCoreSupport/WebPageBridge.m

index fa8c8b128df0d1776a963186adab8195517d176d..18dd0f492fe46955f2dc5b790fe168ff0fe060e5 100644 (file)
@@ -1,3 +1,13 @@
+2006-06-28  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders.
+        
+        - fix Frame leak on layout tests
+
+        * WebCoreSupport/WebPageBridge.m:
+        (-[WebPageBridge outerView]): Return WebFrameView for main frame instead
+        of WebView to avoid reference cycle between WebView and Page.
+
 2006-06-28  Timothy Hatcher  <timothy@apple.com>
 
         Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
index 226668c8dcde528ff80a673df525b06d7950300d..d20caff7d719fa12e4a3a8c12b1ae290af55db68 100644 (file)
@@ -29,6 +29,7 @@
 #import "WebPageBridge.h"
 
 #import "WebFrameBridge.h"
+#import "WebFrameView.h"
 #import "WebView.h"
 #import "WebViewInternal.h"
 #import <JavaScriptCore/Assertions.h>
@@ -55,7 +56,7 @@
 
 - (NSView *)outerView
 {
-    return _webView;
+    return [[_webView mainFrame] frameView];
 }
 
 - (void)setWindowFrame:(NSRect)frameRect