Fix 32-bit build.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Apr 2016 00:19:58 +0000 (00:19 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Apr 2016 00:19:58 +0000 (00:19 +0000)
* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController share:]):
(-[BrowserWindowController fetch:]):
(-[BrowserWindowController sharingService:transitionImageForShareItem:contentRect:]):

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

Tools/ChangeLog
Tools/MiniBrowser/mac/BrowserWindowController.m

index 19320a3..618d14c 100644 (file)
@@ -1,3 +1,12 @@
+2016-04-16  Sam Weinig  <sam@webkit.org>
+
+        Fix 32-bit build.
+
+        * MiniBrowser/mac/BrowserWindowController.m:
+        (-[BrowserWindowController share:]):
+        (-[BrowserWindowController fetch:]):
+        (-[BrowserWindowController sharingService:transitionImageForShareItem:contentRect:]):
+
 2016-04-15  Sam Weinig  <sam@webkit.org>
 
         Add support for NSSharingService to MiniBrowser, for no great reasons
index 6b31494..2a0c0ce 100644 (file)
@@ -77,7 +77,7 @@
 {
     NSSharingServicePicker *picker = [[NSSharingServicePicker alloc] initWithItems:@[ self.currentURL ]];
     picker.delegate = self;
-    [picker showRelativeToRect:CGRectZero ofView:sender preferredEdge:NSRectEdgeMinY];
+    [picker showRelativeToRect:NSZeroRect ofView:sender preferredEdge:NSRectEdgeMinY];
 }
 
 - (IBAction)fetch:(id)sender
@@ -227,7 +227,7 @@ static CGRect coreGraphicsScreenRectForAppKitScreenRect(NSRect rect)
 {
     NSRect contentFrame = [self.window convertRectToScreen:self.mainContentView.bounds];
 
-    CGRect frame = coreGraphicsScreenRectForAppKitScreenRect(NSRectToCGRect(contentFrame));
+    CGRect frame = coreGraphicsScreenRectForAppKitScreenRect(contentFrame);
     CGImageRef imageRef = CGWindowListCreateImage(frame, kCGWindowListOptionIncludingWindow, (CGWindowID)[self.window windowNumber], kCGWindowImageBoundsIgnoreFraming);
     
     if (!imageRef)