Title: [198799] trunk/Source/WebKit2
Revision
198799
Author
[email protected]
Date
2016-03-29 14:06:56 -0700 (Tue, 29 Mar 2016)

Log Message

Unreviewed build fix after r198792.

* UIProcess/Cocoa/WebAutomationSessionCocoa.mm:
(WebKit::WebAutomationSession::platformSimulateMouseInteraction):
We (still) can't use lightweight generics in Objective-C code.
Also, use RetainPtr instead of new, since this is not ARC code.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (198798 => 198799)


--- trunk/Source/WebKit2/ChangeLog	2016-03-29 21:04:21 UTC (rev 198798)
+++ trunk/Source/WebKit2/ChangeLog	2016-03-29 21:06:56 UTC (rev 198799)
@@ -1,3 +1,12 @@
+2016-03-29  Brian Burg  <[email protected]>
+
+        Unreviewed build fix after r198792.
+
+        * UIProcess/Cocoa/WebAutomationSessionCocoa.mm:
+        (WebKit::WebAutomationSession::platformSimulateMouseInteraction):
+        We (still) can't use lightweight generics in Objective-C code.
+        Also, use RetainPtr instead of new, since this is not ARC code.
+
 2016-03-29  Alex Christensen  <[email protected]>
 
         Fix CMake build after r198792.

Modified: trunk/Source/WebKit2/UIProcess/Cocoa/WebAutomationSessionCocoa.mm (198798 => 198799)


--- trunk/Source/WebKit2/UIProcess/Cocoa/WebAutomationSessionCocoa.mm	2016-03-29 21:04:21 UTC (rev 198798)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/WebAutomationSessionCocoa.mm	2016-03-29 21:06:56 UTC (rev 198799)
@@ -100,7 +100,7 @@
         break;
     }
 
-    NSMutableArray<NSEvent *> *eventsToBeSent = [NSMutableArray new];
+    auto eventsToBeSent = adoptNS([[NSMutableArray alloc] init]);
 
     switch (interaction) {
     case Inspector::Protocol::Automation::MouseInteraction::Move:
@@ -130,7 +130,7 @@
         [eventsToBeSent addObject:[NSEvent mouseEventWithType:upEventType location:windowPosition modifierFlags:modifiers timestamp:timestamp windowNumber:windowNumber context:nil eventNumber:0 clickCount:2 pressure:0.0f]];
     }
 
-    sendSynthesizedEventsToPage(page, eventsToBeSent);
+    sendSynthesizedEventsToPage(page, eventsToBeSent.get());
 }
 
 #endif // USE(APPKIT)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to