Changeset 49386 in webkit


Ignore:
Timestamp:
Oct 9, 2009 4:32:57 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-09 Girish Ramakrishnan <Girish Ramakrishnan>

Reviewed by Simon Hausmann.

[Qt] Windowless Plugins : Create Pixmap only when size changes.

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

  • plugins/qt/PluginViewQt.cpp: (WebCore::PluginView::updatePluginWidget):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49385 r49386  
     12009-10-09  Girish Ramakrishnan  <girish@forwardbias.in>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Windowless Plugins : Create Pixmap only when size changes.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=30214
     8
     9        * plugins/qt/PluginViewQt.cpp:
     10        (WebCore::PluginView::updatePluginWidget):
     11
    1122009-10-08  Jon Honeycutt  <jhoneycutt@apple.com>
    213
  • trunk/WebCore/plugins/qt/PluginViewQt.cpp

    r49300 r49386  
    108108        return;
    109109
    110     if (m_drawable)
    111         XFreePixmap(QX11Info::display(), m_drawable);
    112 
    113     if (!m_isWindowed) {
     110    if (!m_isWindowed && m_windowRect.size() != oldWindowRect.size()) {
     111        if (m_drawable)
     112            XFreePixmap(QX11Info::display(), m_drawable);
     113
    114114        m_drawable = XCreatePixmap(QX11Info::display(), QX11Info::appRootWindow(), m_windowRect.width(), m_windowRect.height(),
    115115                                   ((NPSetWindowCallbackStruct*)m_npWindow.ws_info)->depth);
Note: See TracChangeset for help on using the changeset viewer.