1. 30 Nov, 2007 1 commit
  2. 19 Jul, 2007 1 commit
    • darin's avatar
      Reviewed by Alexey. · f867690b
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=14666
                remove unused xxx-encodings.txt for all platforms other than Mac
      
              * platform/gdk/gdk-encodings.txt: Removed.
              * platform/win/win-encodings.txt: Removed.
              * platform/wx/wx-encodings.txt: Removed.
      
              * platform/character-sets.txt: Moved into mac subdirectory since it's only used for Mac; at some
              point I hope to remove it completely.
              * platform/make-charset-table.pl: Ditto.
              * platform/mac/character-sets.txt: Copied from platform/character-sets.txt.
              * platform/mac/make-charset-table.pl: Copied from platform/make-charset-table.pl.
      
              * DerivedSources.make: Moved CharsetData.cpp into the MACOS section.
              Changed the build rule to use Mac-specific paths for everything and got rid of
              make variables.
      
              * WebCore.vcproj/build-generated-files.sh: Removed code to set ENCODINGS_FILE and ENCODINGS_PREFIX.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * make-generated-sources.sh: Ditto.
      
              * Projects/gdk/webcore-gdk.bkl: Removed code to pass gdk-encodings.txt to make-generated-sources.sh.
              * Projects/wx/webcore-wx.bkl: Ditto, but for wx-encodings.txt.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f867690b
  3. 27 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 4235891a
      mjs authored
              - platformize KWQTextCodec
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7487
              
              I renamed QTextCodec to TextEncoding and QTextDecoder to
              StreamingTextDecoder. I also made a bunch of other changes to make
              the API more sensible.
              
              * ForwardingHeaders/qtextcodec.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge textEncoding]):
              (+[WebCoreFrameBridge stringWithData:textEncoding:]):
              (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::completeURL):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty):
              (KJS::DOMDocument::putValueProperty):
              * khtml/html/FormDataList.cpp:
              (DOM::FormDataList::FormDataList):
              (DOM::FormDataList::appendString):
              * khtml/html/FormDataList.h:
              * khtml/html/HTMLFormElementImpl.cpp:
              (WebCore::HTMLFormElementImpl::HTMLFormElementImpl):
              (WebCore::HTMLFormElementImpl::formData):
              * khtml/html/htmltokenizer.cpp:
              * khtml/misc/decoder.cpp:
              (Decoder::Decoder):
              (Decoder::setEncodingName):
              (Decoder::encodingName):
              (Decoder::decode):
              * khtml/misc/decoder.h:
              (khtml::Decoder::):
              (khtml::Decoder::visuallyOrdered):
              (khtml::Decoder::encoding):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::XSLTProcessorImpl::createDocumentFromSource):
              * kwq/KWQCharsets.cpp: Removed.
              * kwq/KWQCharsets.h: Removed.
              * kwq/KWQTextCodec.cpp: Removed.
              * kwq/KWQTextCodec.h: Removed.
              * kwq/WebCoreTextDecoder.h:
              * kwq/WebCoreTextDecoder.mm:
              * kwq/can-convert.mm: Removed.
              * kwq/character-sets.txt: Removed.
              * kwq/mac-encodings.txt: Removed.
              * kwq/make-charset-table.pl: Removed.
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
              (WebCore::CachedCSSStyleSheet::setCharset):
              (WebCore::CachedCSSStyleSheet::data):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::CachedScript):
              (WebCore::CachedScript::setCharset):
              (WebCore::CachedScript::data):
              * loader/CachedScript.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::setCharset):
              * page/Frame.cpp:
              (WebCore::Frame::write):
              (WebCore::Frame::gotoAnchor):
              (WebCore::Frame::encoding):
              (WebCore::Frame::backslashAsCurrencySymbol):
              * platform/CharsetNames.cpp: Added.
              (KXMLCore::):
              (WebCore::EncodingHash::equal):
              (WebCore::EncodingHash::hash):
              (WebCore::buildDictionaries):
              (WebCore::textEncodingIDFromCharsetName):
              (WebCore::charsetNameFromTextEncodingID):
              * platform/CharsetNames.h: Added.
              * platform/KURL.cpp:
              (KURL::KURL):
              (KURL::decode_string):
              (encodeRelativeString):
              * platform/KURL.h:
              * platform/QString.cpp:
              (QString::fromUtf8):
              * platform/StreamingTextDecoder.cpp: Added.
              (WebCore::StreamingTextDecoder::StreamingTextDecoder):
              (WebCore::StreamingTextDecoder::convertLatin1):
              (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
              (WebCore::StreamingTextDecoder::convertUTF16):
              (WebCore::effectiveEncoding):
              (WebCore::StreamingTextDecoder::createICUConverter):
              (WebCore::unwanted):
              (WebCore::StreamingTextDecoder::appendOmittingUnwanted):
              (WebCore::StreamingTextDecoder::convertUsingICU):
              (WebCore::StreamingTextDecoder::convert):
              (WebCore::StreamingTextDecoder::toUnicode):
              * platform/StreamingTextDecoder.h: Added.
              (WebCore::StreamingTextDecoder::convert):
              * platform/TextEncoding.cpp: Added.
              (WebCore::TextEncoding::TextEncoding):
              (WebCore::TextEncoding::name):
              (WebCore::effectiveEncoding):
              (WebCore::TextEncoding::backslashAsCurrencySymbol):
              (WebCore::TextEncoding::toUnicode):
              * platform/TextEncoding.h: Added.
              (WebCore::):
              (WebCore::TextEncoding::):
              (WebCore::TextEncoding::TextEncoding):
              (WebCore::TextEncoding::isValid):
              (WebCore::TextEncoding::usesVisualOrdering):
              (WebCore::TextEncoding::isJapanese):
              (WebCore::TextEncoding::encodingID):
              (WebCore::TextEncoding::flags):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/character-sets.txt: Added.
              * platform/mac/ExtraCFEncodings.h: Added.
              * platform/mac/QStringMac.mm:
              * platform/mac/TextEncodingMac.cpp: Added.
              (WebCore::effectiveEncoding):
              (WebCore::TextEncoding::fromUnicode):
              * platform/mac/can-convert.mm: Added.
              * platform/mac/mac-encodings.txt: Added.
              * platform/make-charset-table.pl: Added.
              * platform/win/win-encodings.txt: Added.
              * rendering/render_object.cpp:
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::slotData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4235891a
  4. 25 Feb, 2005 1 commit
  5. 12 Oct, 2003 1 commit
  6. 06 Dec, 2002 1 commit
  7. 06 Sep, 2002 1 commit
    • darin's avatar
      WebCore: · 1240e8be
      darin authored
              * kwq/WebCoreResourceLoader.h:
      	Define WebCoreResourceHandle protocol.
      
              * kwq/kio/jobclasses.h:
              * kwq/KWQKjobclasses.mm:
              * kwq/KWQLoaderImpl.mm: (KWQServeRequest):
              * kwq/WebCoreBridge.h:
      	Use WebCoreResourceHandle instead of WebResourceHandle.
      
              * kwq/KWQString.mm: (QString::fill): Fix case where the new string
      	is going to be empty, but the old string was not. Before, it leaked
      	a handle.
      
              * kwq/character-sets.txt: Updated to 2002-06-14 version from 2001-08-23 version.
              * kwq/mac-encodings.txt: Updated encoding names to include ones gleaned from
      	the I18N-Charset-1.17 Perl module.
      
              * kwq/KWQCharsets.mm: Formatting tweaks.
      
      WebKit:
      
      	Almost weaned WebKit entirely from the handleDidBeginLoading and handleDidCancelLoading
      	loading callbacks. We are planning to remove both of them.
      
              * Plugins.subproj/WebPluginStream.m:
              (-[WebNetscapePluginStream startLoad]): Call _didStartLoading here so we don't need
      	to rely on handleDidBeginLoading any more.
              (-[WebNetscapePluginStream stop]): Call cancel here so we don't need to rely on
      	handleDidCancelLoading any more.
              (-[WebNetscapePluginStream handleDidBeginLoading:]): Empty out.
              (-[WebNetscapePluginStream handleDidFinishLoading:]): Nil out resource here.
              (-[WebNetscapePluginStream handleDidCancelLoading:]): Empty out.
              (-[WebNetscapePluginStream cancel]): Put cancel code here.
              (-[WebNetscapePluginStream handleDidFailLoading:withError:]): Nil out resource here.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge startLoadingResource:withURL:]): Change to use WebCoreResourceHandle.
      
              * WebCoreSupport.subproj/WebSubresourceClient.h: Change to use WebCoreResourceHandle.
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (-[WebSubresourceClient dealloc]): Release handle too, now that we have it.
              (-[WebSubresourceClient receivedProgressWithComplete:]): Moved up here and removed handle
      	parameter.
              (+[WebSubresourceClient startLoadingResource:withURL:dataSource:]): Do work here so
      	we don't need to rely on handleDidBeginLoading any more.
              (-[WebSubresourceClient receivedError:]): Removed handle parameter.
              (-[WebSubresourceClient handleWillUseUserAgent:forURL:]):
              (-[WebSubresourceClient handleDidBeginLoading:]): Emptied out.
              (-[WebSubresourceClient handleDidCancelLoading:]): Updated, still needs to be emptied out.
              (-[WebSubresourceClient handleDidFinishLoading:]): Nil out handle.
              (-[WebSubresourceClient handleDidFailLoading:withError:]): Nil out handle.
              (-[WebSubresourceClient cancel]): New method, used by WebCore.
      
              * WebCoreSupport.subproj/WebTextRenderer.m:
              (-[WebTextRenderer widthForCharacters:length:]): Moved up in the file to fix build failure.
      
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _startLoading:]): Call didStartLoadingWithURL so we don't have to
      	rely on handleDidBeginLoading.
              (-[WebDataSource _stopLoading]): Call didCancelWithHandle so we don't have to rely
      	on handleDidCancelLoading.
      
              * WebView.subproj/WebMainResourceClient.h: Add didStartLoadingWithURL and
      	didCancelWithHandle to the public methods.
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient initWithDataSource:]):
              (-[WebMainResourceClient handleDidBeginLoading:]): Empty out.
              (-[WebMainResourceClient didCancelWithHandle:]): Move the bulk of handleDidCancelLoading here.
              (-[WebMainResourceClient handleDidCancelLoading:]): Empty out.
      
              * WebView.subproj/WebHTMLView.m: (-[WebHTMLView mouseDragged:]): Move the mouse up a little
      	bit so it's "on" the dragged area, but not over the text.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1240e8be
  8. 13 Aug, 2002 2 commits
    • darin's avatar
      Character set handling improvements. In total, this adds 92 new character encoding · 15830392
      darin authored
      	names to the list we know how to handle (299, up from 207), so it probably makes
      	some pages work that didn't work before. It probably also adds character encoding
      	names that are never used in practice.
      
              * kwq/character-sets.txt: Took out all but one of our changes. We now handle aliases
      	that are not in this file by adding them to mac-encodings.txt.
              * kwq/mac-encodings.txt: Added. Lists CFStringEncoding values and IANA names for them.
      	We keep this file small by using the aliasing in character-sets.txt, and we also continue
      	to get MIB numbers from character-sets.txt.
              * kwq/make-charset-table.pl: Rewrote to read from new format mac-encodings.txt file, and
      	check for new kinds of errors.
      
              * kwq/.cvsignore: Don't ignore the make-mac-encodings files any more, since we
      	don't compile that any more.
              * kwq/Makefile.am: Remove rules for compiling and running make-mac-encodings.
      	* kwq/make-mac-encodings.c: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15830392
    • darin's avatar
      - fixed 3023439 -- support for windows-874 charset for thai · 81dc6ae8
      darin authored
              * kwq/character-sets.txt: Added cp874 and windows-874.
              * kwq/make-charset-table.pl: Fix bug where it would right out a bad MIB enum for
      	the many Macintosh character sets without associated MIB numbers.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81dc6ae8
  9. 01 Aug, 2002 1 commit
  10. 29 Jul, 2002 1 commit
    • darin's avatar
      top level: · 04ad623d
      darin authored
              * Tests/kde/kurl-test.cpp: (operator<<):
              * Tests/qt/qregexp-test.cpp: (operator<<):
              * Tests/qt/qstring-test.cpp: (operator<<):
              * Tests/qt/qstringlist-test.cpp: (operator<<):
      	Added output streaming so the tests work even without the implicit
      	conversion of QString to const char *.
      
      WebCore:
      
      	- fixed 3010875 -- Find only works for latin characters
      	- dealt with part of 2948387 -- stop button flashes to "go" twice while loading citibank.com
      
              * force-clean-timestamp: Make everyone do a make clean because dependencies won't do
      	the right thing.
      
              * khtml/khtml_part.h:
              * khtml/khtml_part.cpp: (KHTMLPart::slotRedirect): Changed the APPLE_CHANGES ifdefs around
      	in this function so we can start using it again.
      	(KHTMLPart::jumpToSelection): Removed. The bridge goes straight to the impl.
      
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge jumpToSelection]): Go straight to the impl.
      
              * WebCore-tests.exp: One new export needed for tests with change to qstring.h.
      
              * kwq/qt/qevent.h:
              * kwq/KWQEvent.mm: Removed unused stuff.
      
              * kwq/KWQKHTMLPartImpl.h: Removed redirectURL(); we now use KHTMLPart::slotRedirect().
      
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::write): Call latin1() explicitly in here for m_documentSource. It was being
      	done implicitly before.
              (KWQKHTMLPartImpl::scheduleRedirection): Get rid of 1-second minimum delay for meta refresh.
              (KWQKHTMLPartImpl::timerEvent): Call KHTMLPart::slotRedirect() instead of redirectURL(), because
      	they were identical, so we don't need our own copy.
      
              * kwq/kdeui/kmessagebox.h:
              * kwq/KWQKMessageBox.mm: (KMessageBox::questionYesNo): Added dontAskAgain string parameter.
      	Before, it was being turned into a bool!
      
              * kwq/KWQKProtocolManager.mm: Tweak and add FIXME.
      
              * kwq/qt/qstring.h: Remove implicit conversion to const char *, which causes only pain.
              * kwq/KWQString.mm:
              (QString::find): Add caseSensitive parameter to the QString overload of this.
              (QString::contains): Add a QString version of this.
      
              * kwq/character-sets.txt: Add the MIB number for ISO-10646-J-1.
              * kwq/make-charset-table.pl: Remove special case for ISO-10646-J-1 MIB number.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04ad623d
  11. 10 Jul, 2002 1 commit
  12. 13 Dec, 2001 1 commit
    • mjs's avatar
      WebCore changes: · e8e12995
      mjs authored
      	Changes for international character set support. Still needs work,
      	but no worse than before. amazon.co.jp renders almost correctly.
      
      	* src/kwq/KWQCharsets.h, src/kwq/KWQCharsets.mm:
      	(KWQCFStringEncodingFromIANACharsetName,
      	KWQCFStringEncodingFromMIB, KWQCFStringEncodingToIANACharsetName,
      	KWQCFStringEncodingToMIB): New functions that translate between
      	the Qt concept of charaxcter sets and the
      	(buildDictionaries): static helper function for the above.
      	* src/kwq/KWQtextcodec.mm: (codecForCFStringEncoding,
      	QTextCodec::codecForMib), QTextCodec::codecForName,
      	QTextCodec::codecForLocale, QTextCodec::name,QTextCodec::mibEnum):
      	Implement for real.
      	* src/kwq/KWQKCharsets.mm: (KCharsets::codecForName,
      	KCharsets::charsetForEncoding, KCharsets::charsetForEncoding):
      	Implement for real.
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::slotData): Get encoding
      	from headers if present.
      	(encodingFromContentType): Helper function for the above.
      	(KHTMLPart::begin): Reinitialize decoder for every page.
      	(KHTMLPart::write): Minor bug fix.
      	(KHTMLPart::setEncoding): Implement.
      	(KHTMLPart::khtmlMouseMoveEvent,
      	KHTMLPart::khtmlMouseReleaseEvent, KHTMLPart::checkCompleted):
      	Simplify ifdefs to make prepare-ChangeLog happy.
      	* src/kwq/qt/qstring.h, src/kwq/KWQString.mm:
      	(QString::fromCFString): New convenience method to create a
      	QString from an immutable CFString by copying,
      	* src/kwq/character-sets.txt: IANA document describing character
      	sets.
      	* src/kwq/make-charset-table.pl, src/kwq/make-mac-encodings.c:
      	Helper programs to construct charset tables from IANA document.
      	* src/kwq/Makefile.in: Update to handle the autogenerated code.
      	* src/kwq/.cvsignore: Ignore new autogenerated files.
      
      	* src/kdelibs/khtml/misc/decoder.cpp: (Decoder::decode): Fix
      	decoding when the encoding is specified in the http headers (which
      	seems like it could never have worked in KDE).
      
      	* include/WCBackForwardList.h, include/WCURICache.h,
      	include/WCURICacheData.h, include/WCURIEntry.h: Fix prototypes of
      	C functions with no arguments to use (void), not (), to avoid
      	warnings in WebKit.
      
      WebKit changes:
      
      	Warning fixes and support to pass the http headers along with
      	cache data items
      
      	* Cache.subproj/NSURICacheData.h, Cache.subproj/NSURICacheData.m:
      	(+[NSURICacheData
      	dataWithURL:status:error:headers:data:size:notificationString:userData:],
      	-[NSURICacheData
      	initWithURL:status:error:headers:data:size:notificationString:userData:]),
      	-[NSURICacheData dealloc], -[NSURICacheData error],
      	-[NSURICacheData headers]:
      	NSURICacheData now carries a copy of the response headers
      	dictionary.
      	* Cache.subproj/NSURICache.m: include "WCURICache.h" to fix warnings.
      	(-[NSURICache requestWithURL:requestor:userData:]):
      	Handle headers in CacheData.
      	* Cache.subproj/NSURILoad.h, Cache.subproj/NSURILoad.m:
      	(-[NSURILoad __NSURILoadReadStreamCallback:event:data:],
      	-[NSURILoad headers], -[NSURILoad dealloc], -[NSURILoad done]):
      	An NSURILoad object now carries the response headers associated
      	with its connection, if any.
      
      	* History.subproj/WKBackForwardList.m: include WCBackForwardList.h
      	to fix warning.
      	* History.subproj/WKURIEntry.m: include WCURIEntry.h to fix
      	warning.
      	* Misc.subproj/WebKitDebug.h: Use (void) for C prototypes, not ().
      	* WebView.subproj/NSWebPageDataSource.mm: (+[NSWebPageDataSource
      	initialize]): Remove unused variable to fix warning.
      	* WebKit.pbproj/project.pbxproj: Enable many warning flags and -Werror
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8e12995