Try to make the 32-bit Mac build happy.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Oct 2013 05:19:07 +0000 (05:19 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Oct 2013 05:19:07 +0000 (05:19 +0000)
* UIProcess/API/mac/WKBrowsingContextController.mm:
(setUpPageLoaderClient):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157777 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm

index b550a42..b69bc09 100644 (file)
@@ -1,5 +1,12 @@
 2013-10-21  Dan Bernstein  <mitz@apple.com>
 
+        Try to make the 32-bit Mac build happy.
+
+        * UIProcess/API/mac/WKBrowsingContextController.mm:
+        (setUpPageLoaderClient):
+
+2013-10-21  Dan Bernstein  <mitz@apple.com>
+
         [Cocoa] Add load delegate method for didChangeBackForwardList
         https://bugs.webkit.org/show_bug.cgi?id=123136
 
index 6a558d7..38e213f 100644 (file)
@@ -490,6 +490,7 @@ static void didFinishProgress(WKPageRef page, const void* clientInfo)
         [browsingContext.loadDelegate browsingContextControllerDidFinishProgress:browsingContext];
 }
 
+#if WK_API_ENABLED
 static void didChangeBackForwardList(WKPageRef page, WKBackForwardListItemRef addedItem, WKArrayRef removedItems, const void *clientInfo)
 {
     WKBrowsingContextController *browsingContext = (WKBrowsingContextController *)clientInfo;
@@ -502,6 +503,7 @@ static void didChangeBackForwardList(WKPageRef page, WKBackForwardListItemRef ad
     [added release];
     [removed release];
 }
+#endif // WK_API_ENABLED
 
 static void setUpPageLoaderClient(WKBrowsingContextController *browsingContext, WKPageRef pageRef)
 {
@@ -521,7 +523,9 @@ static void setUpPageLoaderClient(WKBrowsingContextController *browsingContext,
     loaderClient.didChangeProgress = didChangeProgress;
     loaderClient.didFinishProgress = didFinishProgress;
 
+#if WK_API_ENABLED
     loaderClient.didChangeBackForwardList = didChangeBackForwardList;
+#endif
 
     WKPageSetPageLoaderClient(pageRef, &loaderClient);
 }