Changeset 41151 in webkit
- Timestamp:
- Feb 23, 2009 11:52:52 AM (15 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.cpp
r40818 r41151 65 65 #include "WindowFeatures.h" 66 66 #include "LocalizedStrings.h" 67 #include "Cache.h" 67 68 #include "runtime/InitializeThreading.h" 68 69 … … 430 431 } 431 432 433 #ifndef NDEBUG 434 void QWebPagePrivate::_q_cleanupLeakMessages() 435 { 436 // Need this to make leak messages accurate. 437 cache()->setCapacities(0, 0, 0); 438 } 439 #endif 440 432 441 void QWebPagePrivate::updateAction(QWebPage::WebAction action) 433 442 { … … 1252 1261 1253 1262 connect(this, SIGNAL(loadProgress(int)), this, SLOT(_q_onLoadProgressChanged(int))); 1263 #ifndef NDEBUG 1264 connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), this, SLOT(_q_cleanupLeakMessages())); 1265 #endif 1254 1266 } 1255 1267 -
trunk/WebKit/qt/Api/qwebpage.h
r40228 r41151 326 326 Q_PRIVATE_SLOT(d, void _q_onLoadProgressChanged(int)) 327 327 Q_PRIVATE_SLOT(d, void _q_webActionTriggered(bool checked)) 328 #ifndef NDEBUG 329 Q_PRIVATE_SLOT(d, void _q_cleanupLeakMessages()) 330 #endif 328 331 QWebPagePrivate *d; 329 332 -
trunk/WebKit/qt/Api/qwebpage_p.h
r40027 r41151 80 80 void _q_onLoadProgressChanged(int); 81 81 void _q_webActionTriggered(bool checked); 82 #ifndef NDEBUG 83 void _q_cleanupLeakMessages(); 84 #endif 82 85 void updateAction(QWebPage::WebAction action); 83 86 void updateNavigationActions(); -
trunk/WebKit/qt/ChangeLog
r41147 r41151 1 2009-02-23 Adam Treat <adam.treat@torchmobile.com> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=24094 6 Make sure to empty the cache on exit to get rid of superfluous leak messages 7 for CachedResource's in order to keep the leak messages accurate. This 8 is analagous to what the Mac port is doing on application exit when all 9 WebView's have been closed. 10 11 * Api/qwebpage.cpp: 12 (QWebPagePrivate::_q_cleanupLeakMessages): 13 (QWebPage::QWebPage): 14 * Api/qwebpage.h: 15 * Api/qwebpage_p.h: 16 1 17 2009-02-23 Thiago Macieira <thiago.macieira@nokia.com> 2 18
Note: See TracChangeset
for help on using the changeset viewer.