Changeset 87962 in webkit


Ignore:
Timestamp:
Jun 2, 2011 4:02:28 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-06-02 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Need a way to install the memory pressure handler without initializing WebKit1
https://bugs.webkit.org/show_bug.cgi?id=61975

Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
-[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
but we'd like to be able to install a memory pressure handler without creating a WebView or even
calling any WebView method since that will call +[WebView initialize].

  • WebKit.exp:
  • WebView/WebView.mm: (WebInstallMemoryPressureHandler):
  • WebView/WebViewPrivate.h:
Location:
trunk/Source/WebKit/mac
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r87580 r87962  
     12011-06-02  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Need a way to install the memory pressure handler without initializing WebKit1
     6        https://bugs.webkit.org/show_bug.cgi?id=61975
     7
     8        Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
     9        -[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
     10        but we'd like to be able to install a memory pressure handler without creating a WebView or even
     11        calling any WebView method since that will call +[WebView initialize].
     12
     13        * WebKit.exp:
     14        * WebView/WebView.mm:
     15        (WebInstallMemoryPressureHandler):
     16        * WebView/WebViewPrivate.h:
     17
    1182011-05-27  Stephanie Lewis  <slewis@apple.com>
    219
  • trunk/Source/WebKit/mac/WebKit.exp

    r80892 r87962  
    9797_WebIconSmallSize
    9898_WebInitForCarbon
     99_WebInstallMemoryPressureHandler
    99100_WebKitErrorDomain
    100101_WebKitErrorMIMETypeKey
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r87329 r87962  
    63946394@end
    63956395
     6396void WebInstallMemoryPressureHandler(void)
     6397{
     6398    memoryPressureHandler().install();
     6399}
     6400
    63966401#ifdef BUILDING_ON_LEOPARD
    63976402
  • trunk/Source/WebKit/mac/WebView/WebViewPrivate.h

    r85036 r87962  
    727727@end
    728728
     729#ifdef __cplusplus
     730extern "C" {
     731#endif
     732
     733// This is a C function to avoid calling +[WebView initialize].
     734void WebInstallMemoryPressureHandler(void);
     735
     736#ifdef __cplusplus
     737}
     738#endif
     739
    729740#undef WebNSInteger
    730741#undef WebNSUInteger
Note: See TracChangeset for help on using the changeset viewer.