diff options
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 17 | ||||
-rw-r--r-- | UICaboodle/UCPlatform.h | 3 |
2 files changed, 11 insertions, 9 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index bd2c236..30d8371 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -10,6 +10,8 @@ extern NSString * const kCAFilterNearest; #include "substrate.h" +#define ForSaurik 1 + static CFArrayRef (*$GSSystemCopyCapability)(CFStringRef); static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); @@ -214,7 +216,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize( #endif #define ShowInternals 0 -#define LogBrowser 0 +#define LogBrowser 1 #define lprintf(args...) fprintf(stderr, args) @@ -968,8 +970,8 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize( } - (void) webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame { - if ([loading_ count] == 0) - [self retain]; + /*if ([loading_ count] == 0) + [self retain];*/ [loading_ addObject:[NSValue valueWithNonretainedObject:frame]]; if ([frame parentFrame] == nil) { @@ -1033,8 +1035,8 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize( - (void) _finishLoading { size_t count([loading_ count]); - if (count == 0) - [self autorelease]; + /*if (count == 0) + [self autorelease];*/ if (reloading_ || count != 0) return; if (finish_ != nil) @@ -1125,8 +1127,9 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize( } - (void) _didFailWithError:(NSError *)error forFrame:(WebFrame *)frame { - if ([frame parentFrame] == nil) - [self autorelease]; + _trace(); + /*if ([frame parentFrame] == nil) + [self autorelease];*/ [loading_ removeObject:[NSValue valueWithNonretainedObject:frame]]; [self _finishLoading]; diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 0940406..9e95703 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -45,5 +45,4 @@ while (false) #define _packed \ __attribute__((packed)) -//#define _finline __attribute__((force_inline)) -#define _finline inline +#define _finline inline __attribute__((always_inline)) |