Changeset 415

Show
Ignore:
Timestamp:
07/24/08 17:18:59 (4 months ago)
Author:
odole
Message:

BAL:

2008-07-24 Olivier DOLE <odole@pleyo.com>

Reviewed by Sebastien Roret.
Re-enable some code in platformDestroy

  • WKAL/Concretizations/Fonts/Freetype/BCSimpleFontDataFreetype.cpp:
    (WKAL::SimpleFontData::platformDestroy):

WebKit:

2008-07-24 Olivier DOLE <odole@pleyo.com>

Reviewed by Sebastien Roret.
Fix cachedPage leak.
Compute memSize available in setCacheModel().

  • OrigynWebBrowser/Api/WebView.cpp:
    (WebView::setCacheModel):
    (WebView::close):
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/ChangeLogOWB

    r411 r415  
     12008-07-24  Olivier DOLE  <odole@pleyo.com> 
     2 
     3        Reviewed by Sebastien Roret. 
     4        Re-enable some code in platformDestroy 
     5 
     6        * WKAL/Concretizations/Fonts/Freetype/BCSimpleFontDataFreetype.cpp: 
     7        (WKAL::SimpleFontData::platformDestroy): 
     8 
    192008-07-22  Olivier DOLE  <odole@pleyo.com> 
    210 
  • trunk/BAL/WKAL/Concretizations/Fonts/Freetype/BCSimpleFontDataFreetype.cpp

    r414 r415  
    6464void SimpleFontData::platformDestroy() 
    6565{ 
    66     /*if (m_font.m_pattern && ((FcPattern*)-1 != m_font.m_pattern)) { 
     66    if (m_font.m_pattern && ((FcPattern*)-1 != m_font.m_pattern)) { 
    6767        FcPatternDestroy(m_font.m_pattern); 
    6868        m_font.m_pattern = 0; 
    69     }*/ 
     69    } 
    7070    if (m_smallCapsFontData) 
    7171        delete m_smallCapsFontData; 
  • trunk/WebKit/ChangeLogOWB

    r413 r415  
     12008-07-24  Olivier DOLE  <odole@pleyo.com> 
     2 
     3        Reviewed by Sebastien Roret. 
     4        Fix cachedPage leak. 
     5        Compute memSize available in setCacheModel(). 
     6 
     7        * OrigynWebBrowser/Api/WebView.cpp: 
     8        (WebView::setCacheModel): 
     9        (WebView::close): 
     10 
    1112008-07-23  Olivier DOLE  <odole@pleyo.com> 
    212 
  • trunk/WebKit/OrigynWebBrowser/Api/WebView.cpp

    r412 r415  
    105105#include DEEPSEE_INCLUDE 
    106106 
     107#include <sys/sysinfo.h> 
     108 
    107109#if PLATFORM(AMIGAOS4) 
    108110#include <intuition/intuition.h> 
     
    301303        return; 
    302304 
    303         //TODO : Calcul the next values 
     305    //TODO : Calcul the next values 
    304306    unsigned long long memSize = 256; 
    305307    unsigned long long diskFreeSize = 4096; 
     308     
     309#if !PLATFORM(AMIGAOS4) 
     310    struct sysinfo info; 
     311    memset(&info, 0, sizeof(info)); 
     312    if (sysinfo(&info) == 0) 
     313        memSize = info.totalram * info.mem_unit / (1024 * 1024); 
     314#endif 
    306315 
    307316    unsigned cacheTotalCapacity = 0; 
     
    462471    m_didClose = true; 
    463472 
     473    //Purge page cache 
     474    //The easiest way to do that is to disable page cache 
     475    if (m_preferences->usesPageCache()) 
     476        m_page->settings()->setUsesPageCache(false); 
     477     
    464478    removeFromAllWebViewsSet(); 
    465479