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
  3. 27 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 4235891a
      mjs authored
              - platformize KWQTextCodec
              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:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/html/FormDataList.cpp:
              * khtml/html/FormDataList.h:
              * khtml/html/HTMLFormElementImpl.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/xslt_processorimpl.cpp:
              * 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:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedScript.cpp:
              * loader/CachedScript.h:
              * loader/CachedXSLStyleSheet.cpp:
              * page/Frame.cpp:
              * platform/CharsetNames.cpp: Added.
              * platform/CharsetNames.h: Added.
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/QString.cpp:
              * platform/StreamingTextDecoder.cpp: Added.
              * platform/StreamingTextDecoder.h: Added.
              * platform/TextEncoding.cpp: Added.
              * platform/TextEncoding.h: Added.
              * platform/character-sets.txt: Added.
              * platform/mac/ExtraCFEncodings.h: Added.
              * platform/mac/QStringMac.mm:
              * platform/mac/TextEncodingMac.cpp: Added.
              * 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:
              * xml/xmlhttprequest.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  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.
      	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
              (+[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
  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
    • 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
  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 *.
      	- 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
  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:
      	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::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
      	* 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 dealloc], -[NSURICacheData error],
      	-[NSURICacheData headers]:
      	NSURICacheData now carries a copy of the response headers
      	* 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
      	* 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