Changeset 176166 in webkit
- Timestamp:
- Nov 16, 2014, 5:57:26 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
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
-
trunk/Source/WebCore/ChangeLog
r176165 r176166 1 2014-11-16 Tim Horton <timothy_horton@apple.com> 2 3 Use TextIndicator instead of the built in Lookup highlight 4 https://bugs.webkit.org/show_bug.cgi?id=138775 5 <rdar://problem/18953982> 6 7 Follow-up to r176164. 8 9 * platform/spi/mac/LookupSPI.h: 10 (WebCore::canDisableLookupIndicator): Deleted. 11 Remove canDisableLookupIndicator. 12 1 13 2014-11-16 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebCore/platform/spi/mac/LookupSPI.h
r176164 r176166 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 -
trunk/Source/WebKit2/ChangeLog
r176164 r176166 1 2014-11-16 Tim Horton <timothy_horton@apple.com> 2 3 Use TextIndicator instead of the built in Lookup highlight 4 https://bugs.webkit.org/show_bug.cgi?id=138775 5 <rdar://problem/18953982> 6 7 Follow-up to r176164. 8 9 * UIProcess/API/mac/WKView.mm: 10 (-[WKView dealloc]): 11 (-[WKView initWithFrame:context:configuration:webView:]): 12 * UIProcess/mac/PageClientImpl.mm: 13 (WebKit::PageClientImpl::didPerformDictionaryLookup): 14 Include the softlinking macros directly in the files they're used 15 in, as they're supposed to be used. 16 1 17 2014-11-16 Tim Horton <timothy_horton@apple.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r176164 r176166 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 -
trunk/Source/WebKit2/UIProcess/mac/PageClientImpl.mm
r176164 r176166 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.