Title: [204955] trunk/Tools
Revision
204955
Author
[email protected]
Date
2016-08-24 23:25:04 -0700 (Wed, 24 Aug 2016)

Log Message

Fix iOS DRT build.

* DumpRenderTree/ios/UIScriptControllerIOS.mm:
(WTR::UIScriptController::zoomToScale):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (204954 => 204955)


--- trunk/Tools/ChangeLog	2016-08-25 06:07:44 UTC (rev 204954)
+++ trunk/Tools/ChangeLog	2016-08-25 06:25:04 UTC (rev 204955)
@@ -1,5 +1,12 @@
 2016-08-24  Simon Fraser  <[email protected]>
 
+        Fix iOS DRT build.
+
+        * DumpRenderTree/ios/UIScriptControllerIOS.mm:
+        (WTR::UIScriptController::zoomToScale):
+
+2016-08-24  Simon Fraser  <[email protected]>
+
         [iOS DRT] Hook up uiController.zoomToScale() for DRT
         https://bugs.webkit.org/show_bug.cgi?id=161173
 

Modified: trunk/Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm (204954 => 204955)


--- trunk/Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm	2016-08-25 06:07:44 UTC (rev 204954)
+++ trunk/Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm	2016-08-25 06:25:04 UTC (rev 204955)
@@ -52,13 +52,13 @@
 void UIScriptController::zoomToScale(double scale, JSValueRef callback)
 {
     RefPtr<UIScriptController> protectedThis(this);
-    unsigned callbackID = strongThis->context()->prepareForAsyncTask(callback, CallbackTypeNonPersistent);
+    unsigned callbackID = protectedThis->context()->prepareForAsyncTask(callback, CallbackTypeNonPersistent);
 
     dispatch_async(dispatch_get_main_queue(), ^{
         [gWebScrollView zoomToScale:scale animated:YES completionHandler:^{
-            if (!strongThis->context())
+            if (!protectedThis->context())
                 return;
-            strongThis->context()->asyncTaskComplete(callbackID);
+            protectedThis->context()->asyncTaskComplete(callbackID);
         }];
     });
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to