Commit 058b2a95 authored by alp@webkit.org's avatar alp@webkit.org
Browse files

2008-11-03 Alp Toker <alp@nuanti.com>

        Reviewed by Holger Freyther.

        Deprecate flawed webkit_web_frame_new() function. This would never
        have worked properly when used outside WebCore since Frame::create()
        can only be called without an owner element once in the lifetime of a
        Page and would result in assertions, leaks and an unusable WebView
        instance.

        Frame creation may be exposed in API some time later via the DOM
        binding but probably not in the WebKit GTK+ core API.

        * webkit/webkitwebframe.cpp:
        * webkit/webkitwebframe.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 75ab3a5a
2008-11-03 Alp Toker <alp@nuanti.com>
Reviewed by Holger Freyther.
Deprecate flawed webkit_web_frame_new() function. This would never
have worked properly when used outside WebCore since Frame::create()
can only be called without an owner element once in the lifetime of a
Page and would result in assertions, leaks and an unusable WebView
instance.
Frame creation may be exposed in API some time later via the DOM
binding but probably not in the WebKit GTK+ core API.
* webkit/webkitwebframe.cpp:
* webkit/webkitwebframe.h:
2008-11-03 Alp Toker <alp@nuanti.com>
Reviewed by Holger Freyther.
......
......@@ -211,6 +211,9 @@ static void webkit_web_frame_init(WebKitWebFrame* frame)
* Creates a new #WebKitWebFrame initialized with a controlling #WebKitWebView.
*
* Returns: a new #WebKitWebFrame
*
* Deprecated: 1.0.2: #WebKitWebFrame can only be used to inspect existing
* frames.
**/
WebKitWebFrame* webkit_web_frame_new(WebKitWebView* webView)
{
......
......@@ -58,8 +58,10 @@ struct _WebKitWebFrameClass {
WEBKIT_API GType
webkit_web_frame_get_type (void);
#ifndef WEBKIT_DISABLE_DEPRECATED
WEBKIT_API WebKitWebFrame *
webkit_web_frame_new (WebKitWebView *web_view);
#endif
WEBKIT_API WebKitWebView *
webkit_web_frame_get_web_view (WebKitWebFrame *frame);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment