⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 126846 in webkit


Ignore:
Timestamp:
Aug 27, 2012, 11:33:34 PM (14 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Memory cache should be cleared in between test runs
https://bugs.webkit.org/show_bug.cgi?id=95105

Reviewed by Martin Robinson.

Source/WebKit/gtk:

Add a DumpRenderTreeSupportGtk helper method that clears the
memory cache when called.

  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp:

(DumpRenderTreeSupportGtk::clearMemoryCache):

  • WebCoreSupport/DumpRenderTreeSupportGtk.h:

(DumpRenderTreeSupportGtk):

Tools:

Call the new DumpRenderTreeSupportGtk helper method after every test
to clear the memory cache.

  • DumpRenderTree/gtk/DumpRenderTree.cpp:

(runTest):

Location:
trunk
Files:
5 edited

Legend:

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

    r126837 r126846  
     12012-08-27  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [GTK] Memory cache should be cleared in between test runs
     4        https://bugs.webkit.org/show_bug.cgi?id=95105
     5
     6        Reviewed by Martin Robinson.
     7
     8        Add a DumpRenderTreeSupportGtk helper method that clears the
     9        memory cache when called.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
     12        (DumpRenderTreeSupportGtk::clearMemoryCache):
     13        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
     14        (DumpRenderTreeSupportGtk):
     15
    1162012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp

    r125615 r126846  
    5151#include "JSNodeList.h"
    5252#include "JSValue.h"
     53#include "MemoryCache.h"
    5354#include "MutationObserver.h"
    5455#include "NodeList.h"
     
    868869        coreFrame->view()->resetTrackedRepaints();
    869870}
     871
     872void DumpRenderTreeSupportGtk::clearMemoryCache()
     873{
     874    memoryCache()->evictResources();
     875}
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h

    r123711 r126846  
    131131    static void resetTrackedRepaints(WebKitWebFrame*);
    132132
     133    static void clearMemoryCache();
     134
    133135private:
    134136    static bool s_drtRun;
  • trunk/Tools/ChangeLog

    r126837 r126846  
     12012-08-27  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [GTK] Memory cache should be cleared in between test runs
     4        https://bugs.webkit.org/show_bug.cgi?id=95105
     5
     6        Reviewed by Martin Robinson.
     7
     8        Call the new DumpRenderTreeSupportGtk helper method after every test
     9        to clear the memory cache.
     10
     11        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     12        (runTest):
     13
    1142012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r126229 r126846  
    770770
    771771    WebCoreTestSupport::resetInternalsObject(webkit_web_frame_get_global_context(mainFrame));
     772    DumpRenderTreeSupportGtk::clearMemoryCache();
    772773
    773774    // A blank load seems to be necessary to reset state after certain tests.
Note: See TracChangeset for help on using the changeset viewer.