Title: [222624] trunk/Source/WebKit
- Revision
- 222624
- Author
- [email protected]
- Date
- 2017-09-28 12:35:10 -0700 (Thu, 28 Sep 2017)
Log Message
Revise deployment target macros from r222620
Rubber-stamped by Wenson Hsieh.
* WebProcess/Plugins/PDF/PDFLayerControllerSPI.h:
* WebProcess/Plugins/PDF/PDFPlugin.mm:
(WebKit::PDFPlugin::pdfDocumentDidLoad):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (222623 => 222624)
--- trunk/Source/WebKit/ChangeLog 2017-09-28 19:22:47 UTC (rev 222623)
+++ trunk/Source/WebKit/ChangeLog 2017-09-28 19:35:10 UTC (rev 222624)
@@ -1,3 +1,13 @@
+2017-09-28 Timothy Horton <[email protected]>
+
+ Revise deployment target macros from r222620
+
+ Rubber-stamped by Wenson Hsieh.
+
+ * WebProcess/Plugins/PDF/PDFLayerControllerSPI.h:
+ * WebProcess/Plugins/PDF/PDFPlugin.mm:
+ (WebKit::PDFPlugin::pdfDocumentDidLoad):
+
2017-09-28 Aishwarya Nirmal <[email protected]>
Request for PDF URL targets for specific pages, sections, etc.
Modified: trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFLayerControllerSPI.h (222623 => 222624)
--- trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFLayerControllerSPI.h 2017-09-28 19:22:47 UTC (rev 222623)
+++ trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFLayerControllerSPI.h 2017-09-28 19:35:10 UTC (rev 222624)
@@ -68,9 +68,7 @@
@property (retain) CALayer *parentLayer;
@property (retain) PDFDocument *document;
@property (retain) id<PDFLayerControllerDelegate> delegate;
-#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101304
@property (nonatomic, strong) NSString *URLFragment;
-#endif
- (void)setFrameSize:(CGSize)size;
Modified: trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm (222623 => 222624)
--- trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm 2017-09-28 19:22:47 UTC (rev 222623)
+++ trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm 2017-09-28 19:35:10 UTC (rev 222624)
@@ -1033,9 +1033,11 @@
if ([document isLocked])
createPasswordEntryForm();
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101304
- String pdfURLFragment = webFrame()->url().fragmentIdentifier();
- [m_pdfLayerController setURLFragment:pdfURLFragment];
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
+ if ([m_pdfLayerController respondsToSelector:@selector(setURLFragment:)]) {
+ String pdfURLFragment = webFrame()->url().fragmentIdentifier();
+ [m_pdfLayerController setURLFragment:pdfURLFragment];
+ }
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes