Changeset 155532 in webkit


Ignore:
Timestamp:
Sep 11, 2013 8:55:13 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r155527 r155532  
     12013-09-11  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r154899.
     4        http://trac.webkit.org/changeset/154899
     5        https://bugs.webkit.org/show_bug.cgi?id=121162
     6
     7        It didn't fix the problem and broke other unit tests
     8        (Requested by KaL on #webkit).
     9
     10        * UIProcess/API/gtk/tests/WebViewTest.cpp:
     11        (WebViewTest::resizeView):
     12
    1132013-09-11  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.cpp

    r154899 r155532  
    202202void WebViewTest::resizeView(int width, int height)
    203203{
    204     gtk_window_resize(GTK_WINDOW(m_parentWindow), width, height);
    205 
    206     while (gtk_events_pending())
    207         gtk_main_iteration();
     204    GtkAllocation allocation;
     205    gtk_widget_get_allocation(GTK_WIDGET(m_webView), &allocation);
     206    if (width != -1)
     207        allocation.width = width;
     208    if (height != -1)
     209        allocation.height = height;
     210    gtk_widget_size_allocate(GTK_WIDGET(m_webView), &allocation);
    208211}
    209212
Note: See TracChangeset for help on using the changeset viewer.