-
andersca authored
2006-05-09 Anders Carlsson <acarlsson@apple.com> Reviewed by Darin. http://bugzilla.opendarwin.org/show_bug.cgi?id=8808 WebCore should handle text files * WebCore.xcodeproj/project.pbxproj: Add TextDocument.cpp and TextDocument.h * bridge/mac/WebCoreFrameBridge.mm: (+[WebCoreFrameBridge supportedMIMETypes]): Add text types here. * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createTextDocument): (WebCore::DOMImplementation::isTextMIMEType): * dom/DOMImplementation.h: New functions for creating a TextDocument and determining if a mime type is a text MIME type. * loader/TextDocument.cpp: Added. (WebCore::TextTokenizer::TextTokenizer): (WebCore::TextTokenizer::write): (WebCore::TextTokenizer::finish): (WebCore::TextTokenizer::isWaitingForScripts): Special tokenizer which will put text inside a <pre> tag in a document. (WebCore::TextDocument::TextDocument): (WebCore::TextDocument::createTokenizer): Create a TextTokenizer. * loader/TextDocument.h: Added. * page/Frame.cpp: (WebCore::Frame::begin): Create a TextDocument if the MIME type is of type text. WebKit: 2006-05-09 Anders Carlsson <acarlsson@apple.com> Reviewed by Darin. http://bugzilla.opendarwin.org/show_bug.cgi?id=8808 WebCore should handle text files * WebKit.exp: Remove WebTextView. * WebKit.xcodeproj/project.pbxproj: Get rid of WebTextView and WebTextRepresentation. * WebView/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]): * WebView/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]): * WebView/WebHTMLView.m: The text MIME types are now handled by WebHTMLView. (+[WebHTMLView unsupportedTextMIMETypes]): New function, moved here from WebTextView. * WebView/WebHTMLViewPrivate.h: * WebView/WebTextRepresentation.h: Removed. * WebView/WebTextRepresentation.m: Removed. * WebView/WebTextView.h: Removed. * WebView/WebTextView.m: Removed. * WebView/WebView.m: (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): Now special-case WebHTMLView instead of WebTextView for MIME types that shouldn't be shown. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ba588c87