Unreviewed, rolling out r154899.

http://trac.webkit.org/changeset/154899
https://bugs.webkit.org/show_bug.cgi?id=121162

It didn't fix the problem and broke other unit tests
(Requested by KaL on #webkit).

* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::resizeView):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 840349ae
2013-09-11 Commit Queue <commit-queue@webkit.org>
Unreviewed, rolling out r154899.
http://trac.webkit.org/changeset/154899
https://bugs.webkit.org/show_bug.cgi?id=121162
It didn't fix the problem and broke other unit tests
(Requested by KaL on #webkit).
* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::resizeView):
2013-09-11 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
WTF::OwnPtr should behave similarly with the rest of WTF smart pointers
......
......@@ -201,10 +201,13 @@ void WebViewTest::showInWindowAndWaitUntilMapped(GtkWindowType windowType)
void WebViewTest::resizeView(int width, int height)
{
gtk_window_resize(GTK_WINDOW(m_parentWindow), width, height);
while (gtk_events_pending())
gtk_main_iteration();
GtkAllocation allocation;
gtk_widget_get_allocation(GTK_WIDGET(m_webView), &allocation);
if (width != -1)
allocation.width = width;
if (height != -1)
allocation.height = height;
gtk_widget_size_allocate(GTK_WIDGET(m_webView), &allocation);
}
void WebViewTest::selectAll()
......
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