diff options
Diffstat (limited to 'WebKit/mac/WebView/WebPDFRepresentation.mm')
| -rw-r--r-- | WebKit/mac/WebView/WebPDFRepresentation.mm | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/WebKit/mac/WebView/WebPDFRepresentation.mm b/WebKit/mac/WebView/WebPDFRepresentation.mm index 924bda8..36449f3 100644 --- a/WebKit/mac/WebView/WebPDFRepresentation.mm +++ b/WebKit/mac/WebView/WebPDFRepresentation.mm @@ -70,16 +70,6 @@ return PDFDocumentClass; } -+ (void)initialize -{ - if (self != [WebPDFRepresentation class]) - return; - - Class pdfDocumentClass = [self PDFDocumentClass]; - if (pdfDocumentClass) - addWebPDFDocumentExtras(pdfDocumentClass); -} - - (void)setDataSource:(WebDataSource *)dataSource; { } @@ -136,7 +126,7 @@ PDFDocument *doc = [[[[self class] PDFDocumentClass] alloc] initWithData:data]; [view setPDFDocument:doc]; - NSArray *scripts = [doc _web_allScripts]; + NSArray *scripts = allScriptsInPDFDocument(doc); [doc release]; doc = nil; |
