Unreviewed, fix the Windows build after r223031
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2017 17:27:15 +0000 (17:27 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2017 17:27:15 +0000 (17:27 +0000)
Speculative build fix; no change in behavior.

* page/EventHandler.h:
(WebCore::EventHandler::DragTargetResponse::DragTargetResponse):

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

Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.h

index 72abb4739607ec8a0565556cc611172f0324c562..815f553e65c394ce210c586b7b97e29a2e8d6b55 100644 (file)
@@ -1,3 +1,12 @@
+2017-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, fix the Windows build after r223031
+
+        Speculative build fix; no change in behavior.
+
+        * page/EventHandler.h:
+        (WebCore::EventHandler::DragTargetResponse::DragTargetResponse):
+
 2017-10-09  Alex Christensen  <achristensen@webkit.org>
 
         Reduce includes in Document.h
 2017-10-09  Alex Christensen  <achristensen@webkit.org>
 
         Reduce includes in Document.h
index 62a6b6745bf2ce6006abdac3f57d7eb50ffcd151..c801198ea274f6dbd6312eb7eb8e5b576f7ee875 100644 (file)
@@ -157,6 +157,13 @@ public:
 
 #if ENABLE(DRAG_SUPPORT)
     struct DragTargetResponse {
 
 #if ENABLE(DRAG_SUPPORT)
     struct DragTargetResponse {
+#if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)
+        DragTargetResponse(bool accept, std::optional<DragOperation> operation)
+            : accept(accept)
+            , operation(operation)
+        {
+        }
+#endif
         bool accept { false };
         std::optional<DragOperation> operation;
     };
         bool accept { false };
         std::optional<DragOperation> operation;
     };