[webkit-changes] cvs commit: WebKit/WebView.subproj WebFrame.m
Maciej
mjs at opensource.apple.com
Sat Jul 9 16:38:55 PDT 2005
mjs 05/07/09 16:38:54
Modified: . ChangeLog
WebView.subproj WebFrame.m
Log:
Reviewed by hyatt.
Replace int with unsigned, to avoid going into a huge loop when
back list count is 0.
* WebView.subproj/WebFrame.m:
(-[WebFrame _purgePageCache]):
Revision Changes Path
1.3217 +10 -0 WebKit/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebKit/ChangeLog,v
retrieving revision 1.3216
retrieving revision 1.3217
diff -u -r1.3216 -r1.3217
--- ChangeLog 9 Jul 2005 21:42:50 -0000 1.3216
+++ ChangeLog 9 Jul 2005 23:38:52 -0000 1.3217
@@ -1,5 +1,15 @@
2005-07-09 Maciej Stachowiak <mjs at apple.com>
+ Reviewed by hyatt.
+
+ Replace int with unsigned, to avoid going into a huge loop when
+ back list count is 0.
+
+ * WebView.subproj/WebFrame.m:
+ (-[WebFrame _purgePageCache]):
+
+2005-07-09 Maciej Stachowiak <mjs at apple.com>
+
- fixed broken Development build
* WebView.subproj/WebFrame.m:
1.237 +2 -2 WebKit/WebView.subproj/WebFrame.m
Index: WebFrame.m
===================================================================
RCS file: /cvs/root/WebKit/WebView.subproj/WebFrame.m,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -r1.236 -r1.237
--- WebFrame.m 9 Jul 2005 21:42:57 -0000 1.236
+++ WebFrame.m 9 Jul 2005 23:38:54 -0000 1.237
@@ -922,11 +922,11 @@
- (void)_purgePageCache
{
// This method implements the rule for purging the page cache.
- unsigned sizeLimit = [[[self webView] backForwardList] pageCacheSize];
+ int sizeLimit = [[[self webView] backForwardList] pageCacheSize];
WebBackForwardList *backForwardList = [[self webView] backForwardList];
NSArray *backList = [backForwardList backListWithLimit: 999999];
- unsigned i;
+ int i;
for (i = [backList count] - 1; i >= sizeLimit; i--){
WebHistoryItem *item = [backList objectAtIndex: i];
if ([item hasPageCache]){
More information about the webkit-changes
mailing list