Title: [110912] trunk/Source/WebKit2
- Revision
- 110912
- Author
- [email protected]
- Date
- 2012-03-15 16:54:47 -0700 (Thu, 15 Mar 2012)
Log Message
Try to fix the Snow Leopard build.
* UIProcess/API/mac/PDFViewController.mm:
(WebKit::PDFViewController::pdfKitBundle):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (110911 => 110912)
--- trunk/Source/WebKit2/ChangeLog 2012-03-15 23:54:12 UTC (rev 110911)
+++ trunk/Source/WebKit2/ChangeLog 2012-03-15 23:54:47 UTC (rev 110912)
@@ -1,3 +1,10 @@
+2012-03-15 Anders Carlsson <[email protected]>
+
+ Try to fix the Snow Leopard build.
+
+ * UIProcess/API/mac/PDFViewController.mm:
+ (WebKit::PDFViewController::pdfKitBundle):
+
2012-03-07 Jon Lee <[email protected]>
Move NotificationContents into Notification
Modified: trunk/Source/WebKit2/UIProcess/API/mac/PDFViewController.mm (110911 => 110912)
--- trunk/Source/WebKit2/UIProcess/API/mac/PDFViewController.mm 2012-03-15 23:54:12 UTC (rev 110911)
+++ trunk/Source/WebKit2/UIProcess/API/mac/PDFViewController.mm 2012-03-15 23:54:47 UTC (rev 110912)
@@ -504,6 +504,7 @@
return true;
}
+#ifndef BUILDING_ON_SNOW_LEOPARD
static IMP oldPDFViewScrollView_scrollWheel;
static WKPDFView *findEnclosingWKPDFView(NSView *view)
@@ -538,7 +539,8 @@
oldPDFViewScrollView_scrollWheel(self, _cmd, wheelEvent);
}
-
+#endif
+
NSBundle* PDFViewController::pdfKitBundle()
{
static NSBundle *pdfKitBundle;
@@ -555,10 +557,12 @@
if (![pdfKitBundle load])
LOG_ERROR("Couldn't load PDFKit.framework");
+#ifndef BUILDING_ON_SNOW_LEOPARD
if (Class pdfViewScrollViewClass = [pdfKitBundle classNamed:@"PDFViewScrollView"]) {
if (Method scrollWheel = class_getInstanceMethod(pdfViewScrollViewClass, @selector(scrollWheel:)))
oldPDFViewScrollView_scrollWheel = method_setImplementation(scrollWheel, reinterpret_cast<IMP>(PDFViewScrollView_scrollWheel));
}
+#endif
return pdfKitBundle;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes