Changeset 185742 in webkit


Ignore:
Timestamp:
Jun 19, 2015 1:22:09 AM (9 years ago)
Author:
Csaba Osztrogonác
Message:

[WK2] Fix unused-private-field warning in WebProcess/Plugins/PluginView.<h|cpp>
https://bugs.webkit.org/show_bug.cgi?id=145252

Reviewed by Tim Horton.

Source/WebKit2:

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::PluginView): Added the necessary ifdef guard.

  • WebProcess/Plugins/PluginView.h: Added the necessary ifdef guard.
  • WebProcess/WebPage/WebPage.h: Moved the definition of ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC to WTF.

Source/WTF:

  • wtf/FeatureDefines.h: Moved the definition of ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC

here from Source/WebKit2/WebProcess/WebPage/WebPage.h

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r185663 r185742  
     12015-06-19  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        [WK2] Fix unused-private-field warning in WebProcess/Plugins/PluginView.<h|cpp>
     4        https://bugs.webkit.org/show_bug.cgi?id=145252
     5
     6        Reviewed by Tim Horton.
     7
     8        * wtf/FeatureDefines.h: Moved the definition of ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC
     9        here from Source/WebKit2/WebProcess/WebPage/WebPage.h
     10
    1112015-06-17  Andreas Kling  <akling@apple.com>
    212
  • trunk/Source/WTF/wtf/FeatureDefines.h

    r184928 r185742  
    167167#endif
    168168
     169#if !defined(ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
     170#define ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC 1
     171#endif
     172
    169173#endif /* PLATFORM(IOS) */
    170174
     
    245249#if !defined(ENABLE_FILE_REPLACEMENT)
    246250#define ENABLE_FILE_REPLACEMENT 1
     251#endif
     252
     253#if !defined(ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
     254#define ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC 1
    247255#endif
    248256
  • trunk/Source/WebKit2/ChangeLog

    r185736 r185742  
     12015-06-19  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        [WK2] Fix unused-private-field warning in WebProcess/Plugins/PluginView.<h|cpp>
     4        https://bugs.webkit.org/show_bug.cgi?id=145252
     5
     6        Reviewed by Tim Horton.
     7
     8        * WebProcess/Plugins/PluginView.cpp:
     9        (WebKit::PluginView::PluginView): Added the necessary ifdef guard.
     10        * WebProcess/Plugins/PluginView.h: Added the necessary ifdef guard.
     11        * WebProcess/WebPage/WebPage.h: Moved the definition of ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC to WTF.
     12
    1132015-06-18  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp

    r185677 r185742  
    288288    , m_isBeingDestroyed(false)
    289289    , m_pluginProcessHasCrashed(false)
     290#if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
    290291    , m_didPlugInStartOffScreen(false)
     292#endif
    291293    , m_pendingURLRequestsTimer(RunLoop::main(), this, &PluginView::pendingURLRequestsTimerFired)
    292294#if ENABLE(NETSCAPE_PLUGIN_API)
     
    295297    , m_manualStreamState(StreamStateInitial)
    296298    , m_pluginSnapshotTimer(*this, &PluginView::pluginSnapshotTimerFired, pluginSnapshotTimerDelay)
     299#if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC) || PLATFORM(COCOA)
    297300    , m_countSnapshotRetries(0)
     301#endif
    298302    , m_didReceiveUserInteraction(false)
    299303    , m_pageScaleFactor(1)
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginView.h

    r185677 r185742  
    245245    WebPage* m_webPage;
    246246    Plugin::Parameters m_parameters;
    247    
     247
    248248    bool m_isInitialized;
    249249    bool m_isWaitingForSynchronousInitialization;
     
    251251    bool m_isBeingDestroyed;
    252252    bool m_pluginProcessHasCrashed;
     253
     254#if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
    253255    bool m_didPlugInStartOffScreen;
     256#endif
    254257
    255258    // Pending URLRequests that the plug-in has made.
     
    282285    WebCore::ResourceError m_manualStreamError;
    283286    RefPtr<WebCore::SharedBuffer> m_manualStreamData;
    284    
     287
    285288    // This snapshot is used to avoid side effects should the plugin run JS during painting.
    286289    RefPtr<ShareableBitmap> m_transientPaintingSnapshot;
    287290    // This timer is used when plugin snapshotting is enabled, to capture a plugin placeholder.
    288291    WebCore::DeferrableOneShotTimer m_pluginSnapshotTimer;
     292#if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC) || PLATFORM(COCOA)
    289293    unsigned m_countSnapshotRetries;
     294#endif
    290295    bool m_didReceiveUserInteraction;
    291296
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h

    r185563 r185742  
    105105OBJC_CLASS NSObject;
    106106OBJC_CLASS WKAccessibilityWebPageObject;
    107 
    108 #define ENABLE_PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC 1
    109107#endif
    110108
Note: See TracChangeset for help on using the changeset viewer.