Changeset 176284 in webkit
- Timestamp:
- Nov 18, 2014, 2:10:57 PM (12 years ago)
- Location:
- branches/safari-600.3-branch/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/mac/SoftLinking.h (modified) (4 diffs)
-
WebCore/platform/spi/mac/LookupSPI.h (modified) (1 diff)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/UIProcess/API/mac/WKView.mm (modified) (3 diffs)
-
WebKit2/UIProcess/mac/PageClientImpl.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-600.3-branch/Source/WebCore/ChangeLog
r176281 r176284 1 2014-11-18 Dana Burkart <dburkart@apple.com> 2 3 Merge r176166. rdar://problem/18953982 4 5 2014-11-16 Tim Horton <timothy_horton@apple.com> 6 7 Use TextIndicator instead of the built in Lookup highlight 8 https://bugs.webkit.org/show_bug.cgi?id=138775 9 <rdar://problem/18953982> 10 11 Follow-up to r176164. 12 13 * platform/spi/mac/LookupSPI.h: 14 (WebCore::canDisableLookupIndicator): Deleted. 15 Remove canDisableLookupIndicator. 16 1 17 2014-11-18 Dana Burkart <dburkart@apple.com> 2 18 -
branches/safari-600.3-branch/Source/WebCore/platform/mac/SoftLinking.h
r165676 r176284 111 111 } 112 112 113 #if PLATFORM(IOS)114 113 #define SOFT_LINK_MAY_FAIL(framework, functionName, resultType, parameterDeclarations, parameterNames) \ 115 114 static resultType (*softLink##functionName) parameterDeclarations = 0; \ … … 133 132 return softLink##functionName parameterNames; \ 134 133 } 135 #endif136 134 137 135 /* callingConvention is unused on Mac but is here to keep the macro prototype the same between Mac and Windows. */ … … 239 237 } 240 238 241 #if PLATFORM(IOS)242 239 #define SOFT_LINK_CONSTANT_MAY_FAIL(framework, name, type) \ 243 240 static bool init##name(); \ … … 266 263 return true; \ 267 264 } 268 #endif -
branches/safari-600.3-branch/Source/WebCore/platform/spi/mac/LookupSPI.h
r176281 r176284 32 32 SOFT_LINK_CLASS_OPTIONAL(Lookup, LULookupDefinitionModule) 33 33 34 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUTermOptionDisableSearchTermIndicator, NSString *)35 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUNotificationPopoverWillClose, NSString *)36 37 namespace WebCore {38 inline bool canDisableLookupIndicator()39 {40 return canLoadLUTermOptionDisableSearchTermIndicator() && canLoadLUNotificationPopoverWillClose();41 }42 };43 44 34 #if USE(APPLE_INTERNAL_SDK) 45 35 -
branches/safari-600.3-branch/Source/WebKit2/ChangeLog
r176281 r176284 1 2014-11-18 Dana Burkart <dburkart@apple.com> 2 3 Merge r176166. rdar://problem/18953982 4 5 2014-11-16 Tim Horton <timothy_horton@apple.com> 6 7 Use TextIndicator instead of the built in Lookup highlight 8 https://bugs.webkit.org/show_bug.cgi?id=138775 9 <rdar://problem/18953982> 10 11 Follow-up to r176164. 12 13 * UIProcess/API/mac/WKView.mm: 14 (-[WKView dealloc]): 15 (-[WKView initWithFrame:context:configuration:webView:]): 16 * UIProcess/mac/PageClientImpl.mm: 17 (WebKit::PageClientImpl::didPerformDictionaryLookup): 18 Include the softlinking macros directly in the files they're used 19 in, as they're supposed to be used. 20 1 21 2014-11-18 Dana Burkart <dburkart@apple.com> 2 22 -
branches/safari-600.3-branch/Source/WebKit2/UIProcess/API/mac/WKView.mm
r176281 r176284 143 143 }; 144 144 145 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUNotificationPopoverWillClose, NSString *) 146 145 147 using namespace WebKit; 146 148 using namespace WebCore; … … 327 329 [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationWillTerminateNotification object:NSApp]; 328 330 329 if (can DisableLookupIndicator())331 if (canLoadLUNotificationPopoverWillClose()) 330 332 [[NSNotificationCenter defaultCenter] removeObserver:self name:getLUNotificationPopoverWillClose() object:nil]; 331 333 … … 3575 3577 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_applicationWillTerminate:) name:NSApplicationWillTerminateNotification object:NSApp]; 3576 3578 3577 if (can DisableLookupIndicator())3579 if (canLoadLUNotificationPopoverWillClose()) 3578 3580 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil]; 3579 3581 -
branches/safari-600.3-branch/Source/WebKit2/UIProcess/mac/PageClientImpl.mm
r176281 r176284 81 81 #endif 82 82 83 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUTermOptionDisableSearchTermIndicator, NSString *) 84 83 85 using namespace WebCore; 84 86 using namespace WebKit; … … 544 546 RetainPtr<NSMutableDictionary> mutableOptions = adoptNS([(NSDictionary *)dictionaryPopupInfo.options.get() mutableCopy]); 545 547 546 if (can DisableLookupIndicator() && dictionaryPopupInfo.textIndicator.contentImage) {548 if (canLoadLUTermOptionDisableSearchTermIndicator() && dictionaryPopupInfo.textIndicator.contentImage) { 547 549 // Run the animations serially because attaching another subwindow breaks the bounce animation. 548 550 // We could consider making the bounce NSAnimationNonblockingThreaded instead, which seems
Note:
See TracChangeset
for help on using the changeset viewer.