Unreviewed, try to fix the 32-bit macOS build
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2018 06:49:35 +0000 (06:49 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2018 06:49:35 +0000 (06:49 +0000)
* WebProcess/Plugins/PDF/PDFPlugin.mm:
(WebKit::PDFPlugin::showDefinitionForAttributedString):

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

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm

index 904f26e..8c30e4c 100644 (file)
@@ -1,3 +1,10 @@
+2018-11-08  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, try to fix the 32-bit macOS build
+
+        * WebProcess/Plugins/PDF/PDFPlugin.mm:
+        (WebKit::PDFPlugin::showDefinitionForAttributedString):
+
 2018-11-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
 
         Add an SPI to allow WebView clients to add additional supported image formats
index 4dbec0e..f79271d 100644 (file)
@@ -1875,7 +1875,7 @@ void PDFPlugin::showDefinitionForAttributedString(NSAttributedString *string, CG
     
     
     NSRect rangeRect;
-    rangeRect.origin = point;
+    rangeRect.origin = NSMakePoint(point.x, point.y);
     CGFloat scaleFactor = PDFPlugin::scaleFactor();
 
     rangeRect.size.height = string.size.height * scaleFactor;