[Webkit-unassigned] [Bug 71109] [GTK] Add methods to get/set the settings of a web view to WebKit2 GTK+ API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 28 09:26:51 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=71109


Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #112848|review?                     |review+
               Flag|                            |




--- Comment #3 from Martin Robinson <mrobinson at webkit.org>  2011-10-28 09:26:51 PST ---
(From update of attachment 112848)
View in context: https://bugs.webkit.org/attachment.cgi?id=112848&action=review

> Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp:617
> + * Sets the #WebKitSettings to be applied to @web_view. The
> + * existing #WebKitSettings of @web_view will be replaced by
> + * @settings. The same #WebKitSettings object can be shared
> + * by multiple #WebKitWebView<!-- -->s.

Might want to note that the settings on the WebView are updated immediately.

> Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp:638
> + * #WebKitSettings will be returned. This method always return

return -> returns

> Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp:645
> + * @web_view settings and update it directly. Take into account that
> + * #WebKitSettings objects can be shared by multiple

I'd just remove "Take into account that" here.

> Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitWebView.cpp:70
> +    GRefPtr<GtkWidget> webView2 = webkit_web_view_new();
> +    test->assertObjectIsDeletedWhenTestFinishes(G_OBJECT(webView2.get()));
> +    webkit_web_view_set_settings(WEBKIT_WEB_VIEW(webView2.get()), settings);
> +    g_assert(webkit_web_view_get_settings(WEBKIT_WEB_VIEW(webView2.get())) == settings);
> +

Might want to add an assertion here that the default settings object on webView2 is different than the one from test->m_webView.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list