Title: [250674] branches/safari-608-branch/Source
Revision
250674
Author
[email protected]
Date
2019-10-03 13:41:40 -0700 (Thu, 03 Oct 2019)

Log Message

Build fixes for r249855. rdar://problem/55927247

FrameIdentifier isn't a type on this branch yet, so just use uint64_t where necessary.

* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::handleClick):
* testing/Internals.cpp:
(WebCore::Internals::frameIdentifier const):

Source/WebKit:
* UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:

Modified Paths

Diff

Modified: branches/safari-608-branch/Source/WebCore/html/HTMLAnchorElement.cpp (250673 => 250674)


--- branches/safari-608-branch/Source/WebCore/html/HTMLAnchorElement.cpp	2019-10-03 20:08:24 UTC (rev 250673)
+++ branches/safari-608-branch/Source/WebCore/html/HTMLAnchorElement.cpp	2019-10-03 20:41:40 UTC (rev 250674)
@@ -481,7 +481,7 @@
     systemPreviewInfo.isPreview = isSystemPreviewLink() && RuntimeEnabledFeatures::sharedFeatures().systemPreviewEnabled();
 
     if (systemPreviewInfo.isPreview) {
-        systemPreviewInfo.globalFrameID.frameID = document().frame()->loader().client().frameID().valueOr(FrameIdentifier { });
+        systemPreviewInfo.globalFrameID.frameID = document().frame()->loader().client().frameID().valueOr(0);
         systemPreviewInfo.globalFrameID.pageID = document().frame()->loader().client().pageID().valueOr(PageIdentifier { });
         if (auto* child = firstElementChild())
             systemPreviewInfo.previewRect = child->boundsInRootViewSpace();

Modified: branches/safari-608-branch/Source/WebCore/testing/Internals.cpp (250673 => 250674)


--- branches/safari-608-branch/Source/WebCore/testing/Internals.cpp	2019-10-03 20:08:24 UTC (rev 250673)
+++ branches/safari-608-branch/Source/WebCore/testing/Internals.cpp	2019-10-03 20:41:40 UTC (rev 250674)
@@ -2465,7 +2465,7 @@
 uint64_t Internals::frameIdentifier(const Document& document) const
 {
     if (auto* page = document.page())
-        return page->mainFrame().loader().client().frameID().valueOr(FrameIdentifier { }).toUInt64();
+        return page->mainFrame().loader().client().frameID().valueOr(0);
     return 0;
 }
 

Modified: branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm (250673 => 250674)


--- branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm	2019-10-03 20:08:24 UTC (rev 250673)
+++ branches/safari-608-branch/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm	2019-10-03 20:41:40 UTC (rev 250674)
@@ -304,7 +304,7 @@
 
 void SystemPreviewController::triggerSystemPreviewActionWithTargetForTesting(uint64_t frameID, uint64_t pageID)
 {
-    m_systemPreviewInfo.globalFrameID.frameID = makeObjectIdentifier<WebCore::FrameIdentifierType>(frameID);
+    m_systemPreviewInfo.globalFrameID.frameID = frameID;
     m_systemPreviewInfo.globalFrameID.pageID = makeObjectIdentifier<WebCore::PageIdentifierType>(pageID);
     triggerSystemPreviewAction();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to