Changeset 99243 in webkit


Ignore:
Timestamp:
Nov 3, 2011, 4:17:44 PM (14 years ago)
Author:
andersca@apple.com
Message:

Move plug-in size and backing store checks to PluginProxy::updateBackingStore
https://bugs.webkit.org/show_bug.cgi?id=71508

Reviewed by Darin Adler.

  • WebProcess/Plugins/PluginProxy.cpp:

(WebKit::PluginProxy::geometryDidChange):
Remove code to send back an empty backing store if the plug-in size is empty
or doesn't need a backing store. This check is now done...

(WebKit::PluginProxy::updateBackingStore):
...here.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r99242 r99243  
     12011-11-03  Anders Carlsson  <andersca@apple.com>
     2
     3        Move plug-in size and backing store checks to PluginProxy::updateBackingStore
     4        https://bugs.webkit.org/show_bug.cgi?id=71508
     5
     6        Reviewed by Darin Adler.
     7
     8        * WebProcess/Plugins/PluginProxy.cpp:
     9        (WebKit::PluginProxy::geometryDidChange):
     10        Remove code to send back an empty backing store if the plug-in size is empty
     11        or doesn't need a backing store. This check is now done...
     12
     13        (WebKit::PluginProxy::updateBackingStore):
     14        ...here.
     15
    1162011-11-03  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.cpp

    r99242 r99243  
    176176    ASSERT(m_isStarted);
    177177
    178     if (m_pluginSize.isEmpty() || !needsBackingStore()) {
    179         ShareableBitmap::Handle pluginBackingStoreHandle;
    180         m_connection->connection()->send(Messages::PluginControllerProxy::GeometryDidChange(m_pluginSize, m_clipRect, m_pluginToRootViewTransform, contentsScaleFactor(), pluginBackingStoreHandle), m_pluginInstanceID, CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply);
    181         return;
    182     }
    183 
    184178    ShareableBitmap::Handle pluginBackingStoreHandle;
    185179
     
    443437bool PluginProxy::updateBackingStore()
    444438{
     439    if (m_pluginSize.isEmpty() || !needsBackingStore())
     440        return false;
     441
    445442    IntSize backingStoreSize = m_pluginSize;
    446443    backingStoreSize.scale(contentsScaleFactor());
Note: See TracChangeset for help on using the changeset viewer.