Changeset 128996 in webkit


Ignore:
Timestamp:
Sep 19, 2012 7:00:50 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] REGRESSION(r128907): it broke several WebKit2 API tests
https://bugs.webkit.org/show_bug.cgi?id=97092

Reviewed by Martin Robinson.

Calling resizeLater() from the constructor of
RedirectedXCompositeWindow can cause the callback to be called
later by the main loop after the RedirectedXCompositeWindow object
has been destroyed. Instead of calling resizeLater(), initialize
the usable size to the given initial size.

  • platform/gtk/RedirectedXCompositeWindow.cpp:

(WebCore::RedirectedXCompositeWindow::RedirectedXCompositeWindow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128994 r128996  
     12012-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] REGRESSION(r128907): it broke several WebKit2 API tests
     4        https://bugs.webkit.org/show_bug.cgi?id=97092
     5
     6        Reviewed by Martin Robinson.
     7
     8        Calling resizeLater() from the constructor of
     9        RedirectedXCompositeWindow can cause the callback to be called
     10        later by the main loop after the RedirectedXCompositeWindow object
     11        has been destroyed. Instead of calling resizeLater(), initialize
     12        the usable size to the given initial size.
     13
     14        * platform/gtk/RedirectedXCompositeWindow.cpp:
     15        (WebCore::RedirectedXCompositeWindow::RedirectedXCompositeWindow):
     16
    1172012-09-19  Vsevolod Vlasov  <vsevik@chromium.org>
    218
  • trunk/Source/WebCore/platform/gtk/RedirectedXCompositeWindow.cpp

    r128907 r128996  
    4545
    4646RedirectedXCompositeWindow::RedirectedXCompositeWindow(const IntSize& size)
    47     : m_window(0)
     47    : m_usableSize(size)
     48    , m_window(0)
    4849    , m_parentWindow(0)
    4950    , m_pixmap(0)
     
    9293
    9394    resize(size);
    94     resizeLater(); // Force update of the usable area.
    9595}
    9696
Note: See TracChangeset for help on using the changeset viewer.