|
Lines 32-38
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec1
|
| 32 |
#import "WebKitLogging.h" |
32 |
#import "WebKitLogging.h" |
| 33 |
#import "WebView.h" |
33 |
#import "WebView.h" |
| 34 |
#import "WebViewData.h" |
34 |
#import "WebViewData.h" |
| 35 |
#import <wtf/ObjcRuntimeExtras.h> |
35 |
#import <wtf/ObjCRuntimeExtras.h> |
| 36 |
|
36 |
|
| 37 |
#if PLATFORM(IOS_FAMILY) |
37 |
#if PLATFORM(IOS_FAMILY) |
| 38 |
#import "WebViewInternal.h" |
38 |
#import "WebViewInternal.h" |
|
Lines 92-98
static inline id CallDelegate(WebView *self, id delegate, SEL selector)
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec2
|
| 92 |
if (!delegate || ![delegate respondsToSelector:selector]) |
92 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 93 |
return nil; |
93 |
return nil; |
| 94 |
@try { |
94 |
@try { |
| 95 |
return wtfObjcMsgSend<id>(delegate, selector, self); |
95 |
return wtfObjCMsgSend<id>(delegate, selector, self); |
| 96 |
} @catch(id exception) { |
96 |
} @catch(id exception) { |
| 97 |
ReportDiscardedDelegateException(selector, exception); |
97 |
ReportDiscardedDelegateException(selector, exception); |
| 98 |
} |
98 |
} |
|
Lines 125-131
static inline id CallDelegate(WebView *self, id delegate, SEL selector, id objec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec3
|
| 125 |
if (!delegate || ![delegate respondsToSelector:selector]) |
125 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 126 |
return nil; |
126 |
return nil; |
| 127 |
@try { |
127 |
@try { |
| 128 |
return wtfObjcMsgSend<id>(delegate, selector, self, object); |
128 |
return wtfObjCMsgSend<id>(delegate, selector, self, object); |
| 129 |
} @catch(id exception) { |
129 |
} @catch(id exception) { |
| 130 |
ReportDiscardedDelegateException(selector, exception); |
130 |
ReportDiscardedDelegateException(selector, exception); |
| 131 |
} |
131 |
} |
|
Lines 159-165
static inline id CallDelegate(WebView *self, id delegate, SEL selector, NSRect r
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec4
|
| 159 |
if (!delegate || ![delegate respondsToSelector:selector]) |
159 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 160 |
return nil; |
160 |
return nil; |
| 161 |
@try { |
161 |
@try { |
| 162 |
return wtfObjcMsgSend<id>(delegate, selector, self, rect); |
162 |
return wtfObjCMsgSend<id>(delegate, selector, self, rect); |
| 163 |
} @catch(id exception) { |
163 |
} @catch(id exception) { |
| 164 |
ReportDiscardedDelegateException(selector, exception); |
164 |
ReportDiscardedDelegateException(selector, exception); |
| 165 |
} |
165 |
} |
|
Lines 193-199
static inline id CallDelegate(WebView *self, id delegate, SEL selector, id objec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec5
|
| 193 |
if (!delegate || ![delegate respondsToSelector:selector]) |
193 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 194 |
return nil; |
194 |
return nil; |
| 195 |
@try { |
195 |
@try { |
| 196 |
return wtfObjcMsgSend<id>(delegate, selector, self, object1, object2); |
196 |
return wtfObjCMsgSend<id>(delegate, selector, self, object1, object2); |
| 197 |
} @catch(id exception) { |
197 |
} @catch(id exception) { |
| 198 |
ReportDiscardedDelegateException(selector, exception); |
198 |
ReportDiscardedDelegateException(selector, exception); |
| 199 |
} |
199 |
} |
|
Lines 228-234
static inline id CallDelegate(WebView *self, id delegate, SEL selector, id objec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec6
|
| 228 |
if (!delegate || ![delegate respondsToSelector:selector]) |
228 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 229 |
return nil; |
229 |
return nil; |
| 230 |
@try { |
230 |
@try { |
| 231 |
return wtfObjcMsgSend<id>(delegate, selector, self, object, boolean); |
231 |
return wtfObjCMsgSend<id>(delegate, selector, self, object, boolean); |
| 232 |
} @catch(id exception) { |
232 |
} @catch(id exception) { |
| 233 |
ReportDiscardedDelegateException(selector, exception); |
233 |
ReportDiscardedDelegateException(selector, exception); |
| 234 |
} |
234 |
} |
|
Lines 263-269
static inline id CallDelegate(WebView *self, id delegate, SEL selector, id objec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec7
|
| 263 |
if (!delegate || ![delegate respondsToSelector:selector]) |
263 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 264 |
return nil; |
264 |
return nil; |
| 265 |
@try { |
265 |
@try { |
| 266 |
return wtfObjcMsgSend<id>(delegate, selector, self, object1, object2, object3); |
266 |
return wtfObjCMsgSend<id>(delegate, selector, self, object1, object2, object3); |
| 267 |
} @catch(id exception) { |
267 |
} @catch(id exception) { |
| 268 |
ReportDiscardedDelegateException(selector, exception); |
268 |
ReportDiscardedDelegateException(selector, exception); |
| 269 |
} |
269 |
} |
|
Lines 299-305
static inline id CallDelegate(WebView *self, id delegate, SEL selector, id objec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec8
|
| 299 |
if (!delegate || ![delegate respondsToSelector:selector]) |
299 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 300 |
return nil; |
300 |
return nil; |
| 301 |
@try { |
301 |
@try { |
| 302 |
return wtfObjcMsgSend<id>(delegate, selector, self, object, integer); |
302 |
return wtfObjCMsgSend<id>(delegate, selector, self, object, integer); |
| 303 |
} @catch(id exception) { |
303 |
} @catch(id exception) { |
| 304 |
ReportDiscardedDelegateException(selector, exception); |
304 |
ReportDiscardedDelegateException(selector, exception); |
| 305 |
} |
305 |
} |
|
Lines 364-370
static inline BOOL CallDelegateReturningBoolean(BOOL result, WebView *self, id d
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec9
|
| 364 |
if (!delegate || ![delegate respondsToSelector:selector]) |
364 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 365 |
return result; |
365 |
return result; |
| 366 |
@try { |
366 |
@try { |
| 367 |
return wtfObjcMsgSend<BOOL>(delegate, selector, self); |
367 |
return wtfObjCMsgSend<BOOL>(delegate, selector, self); |
| 368 |
} @catch(id exception) { |
368 |
} @catch(id exception) { |
| 369 |
ReportDiscardedDelegateException(selector, exception); |
369 |
ReportDiscardedDelegateException(selector, exception); |
| 370 |
} |
370 |
} |
|
Lines 394-400
static inline BOOL CallDelegateReturningBoolean(BOOL result, WebView *self, id d
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec10
|
| 394 |
if (!delegate || ![delegate respondsToSelector:selector]) |
394 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 395 |
return result; |
395 |
return result; |
| 396 |
@try { |
396 |
@try { |
| 397 |
return wtfObjcMsgSend<BOOL>(delegate, selector, self, object); |
397 |
return wtfObjCMsgSend<BOOL>(delegate, selector, self, object); |
| 398 |
} @catch(id exception) { |
398 |
} @catch(id exception) { |
| 399 |
ReportDiscardedDelegateException(selector, exception); |
399 |
ReportDiscardedDelegateException(selector, exception); |
| 400 |
} |
400 |
} |
|
Lines 425-431
static inline BOOL CallDelegateReturningBoolean(BOOL result, WebView *self, id d
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec11
|
| 425 |
if (!delegate || ![delegate respondsToSelector:selector]) |
425 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 426 |
return result; |
426 |
return result; |
| 427 |
@try { |
427 |
@try { |
| 428 |
return wtfObjcMsgSend<BOOL>(delegate, selector, self, object, boolean); |
428 |
return wtfObjCMsgSend<BOOL>(delegate, selector, self, object, boolean); |
| 429 |
} @catch(id exception) { |
429 |
} @catch(id exception) { |
| 430 |
ReportDiscardedDelegateException(selector, exception); |
430 |
ReportDiscardedDelegateException(selector, exception); |
| 431 |
} |
431 |
} |
|
Lines 456-462
static inline BOOL CallDelegateReturningBoolean(BOOL result, WebView *self, id d
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec12
|
| 456 |
if (!delegate || ![delegate respondsToSelector:selector]) |
456 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 457 |
return result; |
457 |
return result; |
| 458 |
@try { |
458 |
@try { |
| 459 |
return wtfObjcMsgSend<BOOL>(delegate, selector, self, object, boolean, object2); |
459 |
return wtfObjCMsgSend<BOOL>(delegate, selector, self, object, boolean, object2); |
| 460 |
} @catch(id exception) { |
460 |
} @catch(id exception) { |
| 461 |
ReportDiscardedDelegateException(selector, exception); |
461 |
ReportDiscardedDelegateException(selector, exception); |
| 462 |
} |
462 |
} |
|
Lines 469-475
static inline BOOL CallDelegateReturningBoolean(BOOL result, WebView *self, id d
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec13
|
| 469 |
if (!delegate || ![delegate respondsToSelector:selector]) |
469 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 470 |
return result; |
470 |
return result; |
| 471 |
@try { |
471 |
@try { |
| 472 |
return wtfObjcMsgSend<BOOL>(delegate, selector, self, object1, object2); |
472 |
return wtfObjCMsgSend<BOOL>(delegate, selector, self, object1, object2); |
| 473 |
} @catch(id exception) { |
473 |
} @catch(id exception) { |
| 474 |
ReportDiscardedDelegateException(selector, exception); |
474 |
ReportDiscardedDelegateException(selector, exception); |
| 475 |
} |
475 |
} |
|
Lines 1288-1294
id CallFrameLoadDelegateInWebThread(IMP implementation, WebView *self, SEL selec
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec14
|
| 1288 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1) |
1288 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1) |
| 1289 |
{ |
1289 |
{ |
| 1290 |
@try { |
1290 |
@try { |
| 1291 |
return wtfObjcMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1); |
1291 |
return wtfObjCMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1); |
| 1292 |
} @catch(id exception) { |
1292 |
} @catch(id exception) { |
| 1293 |
ReportDiscardedDelegateException(selector, exception); |
1293 |
ReportDiscardedDelegateException(selector, exception); |
| 1294 |
} |
1294 |
} |
|
Lines 1298-1304
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, W
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec15
|
| 1298 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1, id object2) |
1298 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1, id object2) |
| 1299 |
{ |
1299 |
{ |
| 1300 |
@try { |
1300 |
@try { |
| 1301 |
return wtfObjcMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1, object2); |
1301 |
return wtfObjCMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1, object2); |
| 1302 |
} @catch(id exception) { |
1302 |
} @catch(id exception) { |
| 1303 |
ReportDiscardedDelegateException(selector, exception); |
1303 |
ReportDiscardedDelegateException(selector, exception); |
| 1304 |
} |
1304 |
} |
|
Lines 1308-1314
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, W
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec16
|
| 1308 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1, id object2, id object3) |
1308 |
BOOL CallResourceLoadDelegateReturningBoolean(BOOL result, IMP implementation, WebView *self, SEL selector, id object1, id object2, id object3) |
| 1309 |
{ |
1309 |
{ |
| 1310 |
@try { |
1310 |
@try { |
| 1311 |
return wtfObjcMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1, object2, object3); |
1311 |
return wtfObjCMsgSend<BOOL>(self->_private->resourceProgressDelegate, selector, self, object1, object2, object3); |
| 1312 |
} @catch(id exception) { |
1312 |
} @catch(id exception) { |
| 1313 |
ReportDiscardedDelegateException(selector, exception); |
1313 |
ReportDiscardedDelegateException(selector, exception); |
| 1314 |
} |
1314 |
} |
|
Lines 1380-1386
id CallFormDelegate(WebView *self, SEL selector, id object1, id object2)
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec17
|
| 1380 |
if (!delegate || ![delegate respondsToSelector:selector]) |
1380 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 1381 |
return nil; |
1381 |
return nil; |
| 1382 |
@try { |
1382 |
@try { |
| 1383 |
return wtfObjcMsgSend<id>(delegate, selector, object1, object2); |
1383 |
return wtfObjCMsgSend<id>(delegate, selector, object1, object2); |
| 1384 |
} @catch(id exception) { |
1384 |
} @catch(id exception) { |
| 1385 |
ReportDiscardedDelegateException(selector, exception); |
1385 |
ReportDiscardedDelegateException(selector, exception); |
| 1386 |
} |
1386 |
} |
|
Lines 1416-1422
id CallFormDelegate(WebView *self, SEL selector, id object1, id object2, id obje
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec18
|
| 1416 |
if (!delegate || ![delegate respondsToSelector:selector]) |
1416 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 1417 |
return nil; |
1417 |
return nil; |
| 1418 |
@try { |
1418 |
@try { |
| 1419 |
return wtfObjcMsgSend<id>(delegate, selector, object1, object2, object3); |
1419 |
return wtfObjCMsgSend<id>(delegate, selector, object1, object2, object3); |
| 1420 |
} @catch(id exception) { |
1420 |
} @catch(id exception) { |
| 1421 |
ReportDiscardedDelegateException(selector, exception); |
1421 |
ReportDiscardedDelegateException(selector, exception); |
| 1422 |
} |
1422 |
} |
|
Lines 1453-1459
id CallFormDelegate(WebView *self, SEL selector, id object1, id object2, id obje
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec19
|
| 1453 |
if (!delegate || ![delegate respondsToSelector:selector]) |
1453 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 1454 |
return nil; |
1454 |
return nil; |
| 1455 |
@try { |
1455 |
@try { |
| 1456 |
return wtfObjcMsgSend<id>(delegate, selector, object1, object2, object3, object4, object5); |
1456 |
return wtfObjCMsgSend<id>(delegate, selector, object1, object2, object3, object4, object5); |
| 1457 |
} @catch(id exception) { |
1457 |
} @catch(id exception) { |
| 1458 |
ReportDiscardedDelegateException(selector, exception); |
1458 |
ReportDiscardedDelegateException(selector, exception); |
| 1459 |
} |
1459 |
} |
|
Lines 1492-1498
BOOL CallFormDelegateReturningBoolean(BOOL result, WebView *self, SEL selector,
a/Source/WebKitLegacy/mac/WebView/WebDelegateImplementationCaching.mm_sec20
|
| 1492 |
if (!delegate || ![delegate respondsToSelector:selector]) |
1492 |
if (!delegate || ![delegate respondsToSelector:selector]) |
| 1493 |
return result; |
1493 |
return result; |
| 1494 |
@try { |
1494 |
@try { |
| 1495 |
return wtfObjcMsgSend<BOOL>(delegate, selector, object1, selectorArg, object2); |
1495 |
return wtfObjCMsgSend<BOOL>(delegate, selector, object1, selectorArg, object2); |
| 1496 |
} @catch(id exception) { |
1496 |
} @catch(id exception) { |
| 1497 |
ReportDiscardedDelegateException(selector, exception); |
1497 |
ReportDiscardedDelegateException(selector, exception); |
| 1498 |
} |
1498 |
} |