Changeset 238497 in webkit
- Timestamp:
- Nov 26, 2018, 9:11:48 AM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/WebPage.cpp (modified) (3 diffs)
-
WebProcess/WebPage/WebPage.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238490 r238497 1 2018-11-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Unreviewed, fix the internal 32-bit macOS 10.13 build after r238471 4 5 r238471 added an `#include WebPageMessages.h` in `WebPage.h`, which causes the 32-bit macOS build using an 6 internal macOS SDK ≤ 10.13 to fail. To address this, move the `#include` back under `PLATFORM(IOS_FAMILY)` by 7 changing the parameters of `WebPage::removeDataDetectedLinks` and `WebPage::detectDataInAllFrames` to completion 8 handlers rather than async IPC replies. 9 10 * WebProcess/WebPage/WebPage.cpp: 11 (WebKit::WebPage::removeDataDetectedLinks): 12 (WebKit::WebPage::detectDataInAllFrames): 13 * WebProcess/WebPage/WebPage.h: 14 1 15 2018-11-26 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r238490 r238497 3404 3404 } 3405 3405 3406 void WebPage::removeDataDetectedLinks( Messages::WebPage::RemoveDataDetectedLinks::AsyncReply&& reply)3406 void WebPage::removeDataDetectedLinks(CompletionHandler<void(const DataDetectionResult&)>&& completionHandler) 3407 3407 { 3408 3408 for (auto frame = makeRefPtr(&m_page->mainFrame()); frame; frame = frame->tree().traverseNext()) { … … 3414 3414 frame->setDataDetectionResults(nullptr); 3415 3415 } 3416 reply({ m_page->mainFrame().dataDetectionResults() });3417 } 3418 3419 void WebPage::detectDataInAllFrames(uint64_t types, Messages::WebPage::DetectDataInAllFrames::AsyncReply&& reply)3416 completionHandler({ m_page->mainFrame().dataDetectionResults() }); 3417 } 3418 3419 void WebPage::detectDataInAllFrames(uint64_t types, CompletionHandler<void(const DataDetectionResult&)>&& completionHandler) 3420 3420 { 3421 3421 auto dataDetectorTypes = static_cast<WebCore::DataDetectorTypes>(types); … … 3428 3428 frame->setDataDetectionResults(DataDetection::detectContentInRange(range, dataDetectorTypes, m_dataDetectionContext.get())); 3429 3429 } 3430 reply({ m_page->mainFrame().dataDetectionResults() });3430 completionHandler({ m_page->mainFrame().dataDetectionResults() }); 3431 3431 } 3432 3432 -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.h
r238490 r238497 49 49 #include "UserData.h" 50 50 #include "WebBackForwardListProxy.h" 51 #include "WebPageMessages.h"52 51 #include "WebURLSchemeHandler.h" 53 52 #include "WebUserContentController.h" … … 94 93 #if PLATFORM(IOS_FAMILY) 95 94 #include "GestureTypes.h" 95 #include "WebPageMessages.h" 96 96 #include <WebCore/IntPointHash.h> 97 97 #include <WebCore/ViewportConfiguration.h> … … 241 241 struct AssistedNodeInformation; 242 242 struct AttributedString; 243 struct DataDetectionResult; 243 244 struct BackForwardListItemState; 244 245 struct EditorState; … … 1007 1008 #if ENABLE(DATA_DETECTION) 1008 1009 void setDataDetectionResults(NSArray *); 1009 void detectDataInAllFrames(uint64_t, Messages::WebPage::DetectDataInAllFrames::AsyncReply&&);1010 void removeDataDetectedLinks( Messages::WebPage::RemoveDataDetectedLinks::AsyncReply&&);1010 void detectDataInAllFrames(uint64_t, CompletionHandler<void(const DataDetectionResult&)>&&); 1011 void removeDataDetectedLinks(CompletionHandler<void(const DataDetectionResult&)>&&); 1011 1012 #endif 1012 1013
Note:
See TracChangeset
for help on using the changeset viewer.