Unreviewed build fix after r242378
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Mar 2019 22:36:14 +0000 (22:36 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Mar 2019 22:36:14 +0000 (22:36 +0000)
* UIProcess/ios/EditableImageController.mm:
(WebKit::EditableImageController::associateWithAttachment):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/EditableImageController.mm

index c8b5e77..694ee62 100644 (file)
@@ -1,5 +1,12 @@
 2019-03-04  Brent Fulgham  <bfulgham@apple.com>
 
+        Unreviewed build fix after r242378
+
+        * UIProcess/ios/EditableImageController.mm:
+        (WebKit::EditableImageController::associateWithAttachment):
+
+2019-03-04  Brent Fulgham  <bfulgham@apple.com>
+
         Check contextIDs when handling WebContent messages
         https://bugs.webkit.org/show_bug.cgi?id=195289
         <rdar://problem/48475870>
index d9376b5..c23411c 100644 (file)
@@ -38,7 +38,7 @@
 #import <WebCore/GraphicsLayer.h>
 #import <wtf/RetainPtr.h>
 
-#define MESSAGE_CHECK_VIEWID(embeddedViewID) MESSAGE_CHECK_BASE(m_editableImages.isValidKey(embeddedViewID), connection())
+#define MESSAGE_CHECK_VIEWID(embeddedViewID) MESSAGE_CHECK_BASE(m_editableImages.isValidKey(embeddedViewID), m_webPageProxy->process().connection())
 
 namespace WebKit {
 
@@ -87,11 +87,11 @@ void EditableImageController::didDestroyEditableImage(WebCore::GraphicsLayer::Em
 
 void EditableImageController::associateWithAttachment(WebCore::GraphicsLayer::EmbeddedViewID embeddedViewID, const String& attachmentID)
 {
-    MESSAGE_CHECK_VIEWID(embeddedViewID);
     if (!m_webPageProxy)
         return;
     auto& page = *m_webPageProxy;
 
+    MESSAGE_CHECK_VIEWID(embeddedViewID);
     page.registerAttachmentIdentifier(attachmentID);
     auto& attachment = *page.attachmentForIdentifier(attachmentID);