Reviewed by Maciej.
[WebKit-https.git] / WebKit / WebView / WebFrameView.m
index d647fc641d5cdabf8b7b9ac427dc7f68d1afead6..3ed690a4d57e550224a31d69a59b9be4104d0d86 100644 (file)
@@ -874,6 +874,22 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class class,
     return [NSPrintOperation printOperationWithView:documentView printInfo:printInfo];
 }
 
+- (BOOL)documentViewShouldHandlePrint
+{
+    NSView *documentView = [[self _scrollView] documentView];
+    if (documentView && [documentView respondsToSelector:@selector(documentViewShouldHandlePrint)])
+        return [(id)documentView documentViewShouldHandlePrint];
+    
+    return NO;
+}
+
+- (void)printDocumentView
+{
+    NSView *documentView = [[self _scrollView] documentView];
+    if (documentView && [documentView respondsToSelector:@selector(printDocumentView)])
+        return [(id)documentView printDocumentView];
+}
+
 - (float)_area
 {
     NSRect frame = [self frame];