⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 238497 in webkit


Ignore:
Timestamp:
Nov 26, 2018, 9:11:48 AM (8 years ago)
Author:
Wenson Hsieh
Message:

Unreviewed, fix the internal 32-bit macOS 10.13 build after r238471

r238471 added an #include WebPageMessages.h in WebPage.h, which causes the 32-bit macOS build using an
internal macOS SDK ≤ 10.13 to fail. To address this, move the #include back under PLATFORM(IOS_FAMILY) by
changing the parameters of WebPage::removeDataDetectedLinks and WebPage::detectDataInAllFrames to completion
handlers rather than async IPC replies.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::removeDataDetectedLinks):
(WebKit::WebPage::detectDataInAllFrames):

  • WebProcess/WebPage/WebPage.h:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r238490 r238497  
     12018-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
    1152018-11-26  Antti Koivisto  <antti@apple.com>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r238490 r238497  
    34043404}
    34053405
    3406 void WebPage::removeDataDetectedLinks(Messages::WebPage::RemoveDataDetectedLinks::AsyncReply&& reply)
     3406void WebPage::removeDataDetectedLinks(CompletionHandler<void(const DataDetectionResult&)>&& completionHandler)
    34073407{
    34083408    for (auto frame = makeRefPtr(&m_page->mainFrame()); frame; frame = frame->tree().traverseNext()) {
     
    34143414        frame->setDataDetectionResults(nullptr);
    34153415    }
    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
     3419void WebPage::detectDataInAllFrames(uint64_t types, CompletionHandler<void(const DataDetectionResult&)>&& completionHandler)
    34203420{
    34213421    auto dataDetectorTypes = static_cast<WebCore::DataDetectorTypes>(types);
     
    34283428        frame->setDataDetectionResults(DataDetection::detectContentInRange(range, dataDetectorTypes, m_dataDetectionContext.get()));
    34293429    }
    3430     reply({ m_page->mainFrame().dataDetectionResults() });
     3430    completionHandler({ m_page->mainFrame().dataDetectionResults() });
    34313431}
    34323432
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.h

    r238490 r238497  
    4949#include "UserData.h"
    5050#include "WebBackForwardListProxy.h"
    51 #include "WebPageMessages.h"
    5251#include "WebURLSchemeHandler.h"
    5352#include "WebUserContentController.h"
     
    9493#if PLATFORM(IOS_FAMILY)
    9594#include "GestureTypes.h"
     95#include "WebPageMessages.h"
    9696#include <WebCore/IntPointHash.h>
    9797#include <WebCore/ViewportConfiguration.h>
     
    241241struct AssistedNodeInformation;
    242242struct AttributedString;
     243struct DataDetectionResult;
    243244struct BackForwardListItemState;
    244245struct EditorState;
     
    10071008#if ENABLE(DATA_DETECTION)
    10081009    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&)>&&);
    10111012#endif
    10121013
Note: See TracChangeset for help on using the changeset viewer.