1. 06 May, 2002 5 commits
    • darin's avatar
      i * Makefile.am: Generate the PFE precompiled headers to be used · ad4bde3d
      darin authored
      	by automake compiles. Currently these don't have any dependency
      	tracking, but I'm sure Maciej can fix that if he wants to.
      
      	* configure.in: Go from "xNDEBUG" to "NDEBUG" now that precompiled
      	headers aren't in the way. Pass in the --load-pch option to all the
      	various compiles so they get the precompiled headers.
      
      	* Tests/libiftest/Makefile.am: Generate a top_srcdir.h file rather
      	than passing it in on the command line. This works around a PFE bug
      	with -D, Radar 2921026.
      	* Tests/libiftest/IFTestDirectory.c: Use top_srcdir.h.
      	* Tests/libiftest/.cvsignore: Ignore top_srcdir.h.
      
      	* Tests/qt/qpoint-test.cpp: (main): Take out an unused variable and
      	all the USING_BORROWED_QPOINT code.
      
      	* Tools/Makefile.am: Don't built the HotSpots directory for now, since
      	it runs into a PFE bug and we usually use the application version now.
      
      	* Tools/Scripts/check-non-ASCII: Skip preprocessor directives.
      	* Tools/Scripts/cvs-abandon: Tweak.
      
      JavaScriptCore:
      
      	* JavaScriptCorePrefix.h: Added.
      	* JavaScriptCore.pbproj/project.pbxproj: Use PFE precompiling.
      	Also switch from xNDEBUG to NDEBUG.
      
      WebFoundation:
      
      	Reviewed by Ken Kocienda:
      
      	* WebFoundationPrefix.h: Added.
      	* WebFoundation.pbproj/project.pbxproj: Use PFE precompiling.
      	Also switch from xNDEBUG to NDEBUG.
      
      	* AuthenticationManager.subproj/IFAuthenticationManager.m:
      	* CookieManager.subproj/IFCookie.m:
      	* Misc.subproj/IFNSStringExtensions.m:
      	* Misc.subproj/WebFoundationDebug.m:
      	Add undefs to work around PFE problem with inline functions, Radar 2920554.
      
      	* CacheLoader.subproj/IFHTTPURLProtocolHandler.m:
      	Fix include to work with normal Project Builder way of dealing with frameworks.
      	Switch from xNDEBUG to NDEBUG.
      
      	* CacheLoader.subproj/IFURLLoad.m:
      	* CookieManager.subproj/IFCookie.m:
      	* Database.subproj/IFURLFileDatabase.m:
      	* Misc.subproj/IFError.m:
      	* Misc.subproj/IFMonitor.h:
      	* Misc.subproj/IFMonitor.m:
      	* Misc.subproj/IFRecursiveReadWriteLock.h:
      	Use import instead of include.
      
      	* Misc.subproj/IFCFNetworkExtensions.m: Added.
      	* Misc.subproj/IFCFRunLoopExtensions.m: Added.
      	* Misc.subproj/IFCFNetworkExtensions.c: Removed.
      	* Misc.subproj/IFCFRunLoopExtensions.c: Removed.
      	Renamed so we could share the Objective-C precompile. No need to compile this code
      	as plain C, even though it doesn't use any Objective-C features.
      
      	* Misc.subproj/WebFoundationDebug.h: Get rid of format attribute because of bug
      	2920557. Switch from xNDEBUG to NDEBUG.
      
      WebCore:
      
      	* WebCorePrefix.h: Added.
      
      	* .cvsignore: Ignore the .pfe files in this directory.
      
      	* khtml/dom/dom_doc.cpp:
      	* khtml/dom/dom_text.cpp:
      	Added namespace directives as a clean workaround for a conflict
      	with the struct named Comment in <Carbon/AIFF.h>
      
      	* kwq/KWQFont.mm:
      	* kwq/KWQFontMetrics.mm:
      	* kwq/KWQKGlobal.mm:
      	* kwq/KWQListImpl.mm:
      	* kwq/KWQPtrDictImpl.h:
      	* kwq/KWQVectorImpl.mm:
      	* kwq/kwqdebug.h:
      	* kwq/qt/qcolor.h:
      	* kwq/qt/qcombobox.h:
      	* kwq/qt/qregion.h:
      	* kwq/qt/qstring.h:
      	* kwq/qt/qwidget.h:
      	Remove old workaround for conflicts with Fixed, Rect, and Boolean.
      	It does not good with a precompiled header anyway, and there is a
      	more elegant small fix in the KDE code itself.
      
      	* kwq/qt/qpoint.h:
      	* kwq/KWQPointArray.mm: (QPointArray::setPoints):
      	Work around bug with va_arg and PFE by not using varargs here.
      
      	* kwq/KWQRect.mm: (QRect::unite): (QRect::operator&):
      	Use std::min and std::max instead of defining our own MIN and MAX, which
      	conflict with something in one of the headers we are precompiling (error
      	message did not make it clear which).
      
      	* kwq/KWQView.mm: (-[KWQHTMLView layout]), (-[KWQHTMLView drawRect:]):
      	Switch from xNDEBUG to NDEBUG.
      
      	* kwq/Makefile.am: Remove stuff for getting at the header inside the
      	ApplicationServices and QD frameworks, since that code is now in WebKit.
      
      	* kwq/kwqdebug.h: Get rid of format attribute because of bug 2920557.
      	Switch from xNDEBUG to NDEBUG.
      
      	* kwq/kwqdebug.mm: Switch from xNDEBUG to NDEBUG.
      
      	* kwq/qt/qstring.h: Define QT_VERSION in here instead of on the command
      	line to work around a PFE bug with -D, Radar 2921026.
      
      WebKit:
      
      	* WebKitPrefix.h: Added.
      	* WebKit.pbproj/project.pbxproj: Use PFE precompiling.
      	Also switch from xNDEBUG to NDEBUG.
      
      	* Misc.subproj/WebKitDebug.h: Get rid of format attribute because of bug
      	2920557. Switch from xNDEBUG to NDEBUG.
      
      	* Misc.subproj/WebKitDebug.m:
      	Add undef to work around PFE problem with inline functions, Radar 2920554.
      
      	* Plugins.subproj/IFPluginView.mm: Changed how we work around the bug in
      	the CGS defines.
      
      	* WebCoreSupport.subproj/IFCachedTextRenderer.h: Change include of the
      	private QD header to use the form that works with more-normal way of
      	getting at the private bits of frameworks.
      
      	* WebCoreSupport.subproj/IFCachedTextRenderer.m: Use the header
      	<CoreGraphics/CoreGraphicsPrivate.h> instead of <CoreGraphics/CGFontPrivate.h>.
      
      	* Misc.subproj/IFCache.mm:
      	* WebView.subproj/IFLoadProgress.mm:
      	* WebView.subproj/IFWebFrame.mm:
      	* WebView.subproj/IFWebFramePrivate.mm:
      	* WebView.subproj/IFWebView.mm:
      	Changed includes to imports.
      
      WebBrowser:
      
      	* WebBrowserPrefix.h: Added.
      	* WebBrowser.pbproj/project.pbxproj: Use PFE precompiling.
      	Also switch from xNDEBUG to NDEBUG.
      
      	* Debug/CacheController.m: Renamed to make it Objective C rather
      	than Objective C++.
      	* Debug/CacheController.mm: Removed.
      
      	* main.m: Use the real __CFA2UC. Use import instead of include.
      	* ___CFA2UC.c: Remove our copy.
      
      	* Debug/DOMTree.mm:
      	* Debug/RenderTree.mm:
      	* Preferences.subproj/ActiveContentPreferences.h:
      	* Preferences.subproj/AppearancePreferences.h:
      	* Preferences.subproj/GeneralPreferences.h:
      	* Preferences.subproj/SecurityPreferences.h:
      	* Preferences.subproj/TextPreferences.h:
      	* Preferences.subproj/WBPreferences.h:
      	* Test/PageLoadTestLogger.m:
      	Use import instead of include.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad4bde3d
    • cblu's avatar
      Made start and stop work cleaner. · df2e09f0
      cblu authored
              Now observe defaults changes so that plug-ins
              are disabled or enabled immediately (2871725).
      
              * Plugins.subproj/IFPluginNullEventSender.m:
              (-[IFPluginNullEventSender sendNullEvents]):
              * Plugins.subproj/IFPluginView.h:
              * Plugins.subproj/IFPluginView.mm:
              (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
              (-[IFPluginView start]):
              (-[IFPluginView stop]):
              (-[IFPluginView drawRect:]):
              (-[IFPluginView windowWillClose:]):
              (-[IFPluginView defaultsHaveChanged:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df2e09f0
    • rjw's avatar
      Fixed width measurement regression. We lost the final ROUND_TO_INT · 36c08475
      rjw authored
              in the width measurement funtion after the move from WebCore.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36c08475
    • rjw's avatar
      Changes to support dhmtl. · e894e944
      rjw authored
              Changes to support targeting (regression after 3.0 merge).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e894e944
    • sullivan's avatar
      * Resources/url_icon.tiff: New bookmarks/history icon, looks · 848c3bab
      sullivan authored
      	more like the springy @ sign as seen from above, less like text.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      848c3bab
  2. 03 May, 2002 7 commits
    • darin's avatar
      * khtml/css/cssstyleselector.cpp: · 6ebeb4d0
      darin authored
      	* khtml/dom/css_value.cpp:
      	* khtml/xml/dom_stringimpl.cpp:
      	Put in some namespace-related statements to more-elegantly work around the
      	conflicts between Macintosh and khtml identifiers.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ebeb4d0
    • sullivan's avatar
      Along with small corresponding WebBrowser change, · 3ae8c46b
      sullivan authored
      	fixed 2919172 (Bookmarks aren't saved between sessions).
      
      	* Bookmarks.subproj/IFBookmark_Private.h: Declarations for new private methods.
      	* Bookmarks.subproj/IFBookmark.m:
      	(-[IFBookmark _numberOfDescendants]): New private method, counts deep; used
      	only for debugging messages at this time.
      	(-[IFBookmark _initFromDictionaryRepresentation:withGroup:]):
      	(-[IFBookmark _dictionaryRepresentation]): New private methods used to save/load
      	bookmarks. Stub	implementations; subclasses must implement.
      
      	* Bookmarks.subproj/IFBookmarkLeaf.m:
      	(-[IFBookmarkLeaf _initFromDictionaryRepresentation:withGroup:]):
      	(-[IFBookmarkLeaf _dictionaryRepresentation]): New methods.
      
      	* Bookmarks.subproj/IFBookmarkList.m:
      	(-[IFBookmarkList _initFromDictionaryRepresentation:withGroup:]):
      	(-[IFBookmarkList _dictionaryRepresentation]):
      	(-[IFBookmarkList _numberOfDescendants]):
      	New methods.
      	(-[IFBookmarkList _setGroup:]): Recurse on children.
      
      	* Bookmarks.subproj/IFBookmarkGroup.h: New _loading instance variable.
      
      	* Bookmarks.subproj/IFBookmarkGroup.m:
      	(-[IFBookmarkGroup _setTopBookmark:]): Renamed from _resetTopBookmark,
      	now has potentially non-nil argument.
      	(-[IFBookmarkGroup initWithFile:]),
      	(-[IFBookmarkGroup removeBookmark:]): Updated for name change.
      	(-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
      	Don't send notifications while loading bookmarks from disk.
      	(-[IFBookmarkGroup _loadBookmarkGroupGuts]),
      	(-[IFBookmarkGroup loadBookmarkGroup]),
      	(-[IFBookmarkGroup _saveBookmarkGroupGuts]),
      	(-[IFBookmarkGroup saveBookmarkGroup]): New methods, load/save bookmarks
      	and report timings.
      
      	* History.subproj/IFURIEntry.m:
      	(-[IFURIEntry dictionaryRepresentation]),
      	(-[IFURIEntry initFromDictionaryRepresentation:]): Handle nil URL
      	case, which bookmarks run into.
      
      	* WebKit.pbproj/project.pbxproj: version wars
      
      	* AppController.m:
      	(-[AppController applicationWillTerminate:]):
      	Save bookmarks at quit time.
      
      	* WebBrowser.pbproj/project.pbxproj: version wars
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ae8c46b
    • darin's avatar
      * WebCoreSupport.subproj/IFCachedTextRenderer.m: Remove some of the unused code. · eb27cdb8
      darin authored
      	I was going to wait and let Richard do it next week, but I was unable to control
      	my urge to hack on it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb27cdb8
    • darin's avatar
      * Resources/url_icon.tiff: Improved icon. Could be better. · 523e233c
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      523e233c
    • darin's avatar
      Revert icon, oops. · 20c23938
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20c23938
    • darin's avatar
      WebCore: · 458becea
      darin authored
      	* kwq/IFTextRenderer.h: Added.
      	* kwq/IFTextRendererFactory.h: Added.
      	* kwq/IFTextRendererFactory.m: Added.
      	These three are the new API for supplying text rendering machinery for WebCore.
      	The implementation is in WebKit. Later we might want to flesh out the default
      	implementation in WebCore so that it works OK by itself.
      
      	* khtml/rendering/font.cpp: (Font::width): Function is now "width" without
      	an underscore. We don't really need to hide the overload we added in this
      	case.
      
      	* kwq/qt/qfont.h: Simplify a lot. Doesn't hold an NSFont any more.
      	* kwq/KWQFont.mm:
      	(QFont::QFont): Eliminated the concept of "default font". Also, a QFont no
      	longer holds an NSFont object. That's handled inside IFTextRenderer machinery.
      	(QFont::~QFont): Simplify since we don't have an NSFont.
      	(QFont::setFamily): Simplify since we don't have an NSFont.
      	(QFont::setPixelSize): Simplify since we don't have an NSFont.
      	(QFont::setPixelSizeFloat): Simplify since we don't have an NSFont.
      	(QFont::setWeight): Simplify since we don't have an NSFont.
      	(QFont::weight): Fix a bug where it would return Normal for a QFont that was
      	both bold and italic.
      	(QFont::setItalic): Simplify since we don't have an NSFont.
      	(QFont::italic): Simplify since we have real "bool".
      	(QFont::bold): Simplify since we have real "bool".
      	(QFont::operator=): Simplify since we don't have an NSFont.
      	(QFont::operator==): Rewrite since we don't have an NSFont.
      
      	* kwq/qt/qfontmetrics.h: Simplify a little. The _width() method is now just an
      	overload of the width() method. The main change was removing the include of Cocoa.h.
      	* kwq/KWQFontMetrics.mm:
      	Move most of the code out of here into WebKit.
      	(QFontMetrics::ascent): Get it from the renderer.
      	(QFontMetrics::descent): Get it from the renderer.
      	(QFontMetrics::lineSpacing): Get it from the renderer.
      	(QFontMetrics::width): Get it from the renderer.
      	(QFontMetrics::boundingRect): Combine width and height that came from the renderer.
      	(QFontMetrics::size): Combine width and height that came from the renderer.
      
      	* kwq/Makefile.am: Add IFTextRendererFactory.m, remove KWQTextStorage.mm and KWQTextContainer.mm.
      	* kwq/KWQMetrics.h: Removed.
      	* kwq/KWQTextContainer.h: Removed.
      	* kwq/KWQTextContainer.mm: Removed.
      	* kwq/KWQTextStorage.h: Removed.
      	* kwq/KWQTextStorage.mm: Removed.
      
      	* kwq/KWQPainter.mm:
      	Move most of the code out of here into WebKit.
      	(QPainter::drawText): Call the renderer to do it.
      	(QPainter::drawUnderlineForText): Call the renderer to do it.
      
      	* libwebcore.exp: Export the IFTextRendererFactory class.
      
      WebKit:
      
      	* Misc.subproj/WebKitDebug.h: Add WEBKIT_LOG_MEMUSAGE, WEBKIT_LOG_FONTCACHE, and
      	WEBKIT_LOG_FONTCACHECHARMISS for font code moved here from WebCore.
      
      	* Resources/url_icon.tiff: New URL icon?
      
      	* WebCoreSupport.subproj/IFCachedTextRenderer.h: Added.
      	* WebCoreSupport.subproj/IFCachedTextRenderer.m: Added.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Added.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Added.
      	This has code moved here from WebCore.
      
      	* WebKit.pbproj/project.pbxproj: Add the new source files.
      
      	* Bookmarks.subproj/IFBookmarkLeaf.m:
      	(-[IFBookmarkLeaf setURLString:]): Use copy instead of initWithString.
      	* Bookmarks.subproj/IFBookmarkList.m:
      	(-[IFBookmarkList initWithTitle:image:group:]): Use copy instead of stringWithString.
      	(-[IFBookmarkList setTitle:]): Use copy instead of stringWithString.
      	* WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
      	Use mutableCopy instead of stringWithString.
      	* WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]): Use copy instead
      	of stringWithString.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      458becea
    • darin's avatar
      * AuthenticationManager.subproj/IFAuthenticationRequest.m: · 86391a46
      darin authored
      	(-[IFAuthenticationRequest initWithURL:realm:username:passwordSentInClear:previousFailures:callback:]):
      	* AuthenticationManager.subproj/IFAuthenticationResult.m:
      	(-[IFAuthenticationResult initWithUsername:password:]):
      	* Database.subproj/IFDatabase.m:
      	(-[IFDatabase initWithPath:]):
      	Simplify code by using [copy] instead of [NSString initWithString:].
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86391a46
  3. 02 May, 2002 3 commits
    • sullivan's avatar
      * Bookmarks.subproj/IFBookmark.h: · b92696c5
      sullivan authored
      	* Bookmarks.subproj/IFBookmark.m:
      	(-[IFBookmark setTitle:]):
      	(-[IFBookmark setImage:]):
      	(-[IFBookmark setURLString:]):
      	(-[IFBookmark insertChild:atIndex:]):
      	(-[IFBookmark removeChild:]):
      	(-[IFBookmark _parent]):
      	(-[IFBookmark _group]):
      	* Bookmarks.subproj/IFBookmarkGroup.h:
      	* Bookmarks.subproj/IFBookmarkGroup.m:
      	(-[IFBookmarkGroup _resetTopBookmark]):
      	(-[IFBookmarkGroup _bookmarkDidChange:]):
      	(-[IFBookmarkGroup _bookmarkChildrenDidChange:]):
      	(-[IFBookmarkGroup removeBookmark:]):
      	(-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
      	* Bookmarks.subproj/IFBookmarkLeaf.m:
      	(-[IFBookmarkLeaf setTitle:]):
      	(-[IFBookmarkLeaf setImage:]):
      	(-[IFBookmarkLeaf setURLString:]):
      	* Bookmarks.subproj/IFBookmarkList.m:
      	(-[IFBookmarkList setTitle:]):
      	(-[IFBookmarkList setImage:]):
      	(-[IFBookmarkList removeChild:]):
      	(-[IFBookmarkList insertChild:atIndex:]):
      	* Bookmarks.subproj/IFBookmark_Private.h:
      	Made _parent and _group private; made setTitle, setImage, setURLString,
      	insertChild:atIndex:, and removeChild: public.
      
      	* Bookmarks.subproj/IFBookmarkGroup_Private.h: Added.
      	* WebKit.pbproj/project.pbxproj: Changed for new file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b92696c5
    • sullivan's avatar
      Implemented removing the root node bookmark (i.e., · 9c7f4729
      sullivan authored
      	removing all bookmarks with one call).
      
      	* Bookmarks.subproj/IFBookmarkGroup.m:
      	(-[IFBookmarkGroup _resetTopBookmark]): New method, releases
      	old topBookmark and creates new one.
      	(-[IFBookmarkGroup initWithFile:]): Call _resetTopBookmark.
      	(-[IFBookmarkGroup removeBookmark:]): If the bookmark being
      	removed is the top one, call _resetTopBookmark.
      
      	Added "Erase All Bookmarks" menu item to Debug menu, which will be
      	handy in the interim between making bookmarks persistent and making
      	them organizable (they are neither yet).
      
      	Along the way, made DebugUtilities be a shared instance instead of
      	a collection of class methods, to make some innards easier to
      	implement.
      
      	* Debug/DebugUtilities.h: new class method sharedDebugUtilities;
      	changed other class methods to instance methods; made _debugMenu
      	an instance variable.
      
      	* Debug/DebugUtilities.m:
      	(-[DebugUtilities dealloc]): release _debugMenu.
      	(+[DebugUtilities sharedDebugUtilities]): New method.
      	(-[DebugUtilities addDebugBookmarkToMenu:forURL:keyEquivalent:]):
      	(-[DebugUtilities pathForDebugBookmarks]):
      	(-[DebugUtilities loadDebugBookmarks]):
      	(-[DebugUtilities conditionallyDisplayPageLoadTestWindow]):
      	Changed class methods to instance methods. Also updated private
      	AppController method name that had changed, causing the debug
      	bookmarks to become disabled with my last checkin.
      	(-[DebugUtilities eraseAllBookmarks:]): New method.
      	(-[DebugUtilities createDebugMenu]): Add "Erase All Bookmarks"
      	menu item, with -eraseAllBookmarks as callback.
      
      	* AppController.m:
      	(-[AppController awakeFromNib]): use sharedDebugUtilities where a
      	class method used to work.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c7f4729
    • sullivan's avatar
      Some more implementation of bookmarks code, enough to support · 8d818a72
      sullivan authored
      	adding bookmarks to the Bookmarks menu (but not yet enough to
      	support persistent bookmarks).
      
      	* Bookmarks.subproj/IFBookmark_Private.h:
      	* Bookmarks.subproj/IFBookmark.h:
      	* Bookmarks.subproj/IFBookmark.m:
      	(-[IFBookmark numberOfChildren]): New public method, stub implementation.
      	(-[IFBookmark _removeChild:]): New private method, stub implementation.
      
      	* Bookmarks.subproj/IFBookmarkGroup.h:
      	* Bookmarks.subproj/IFBookmarkGroup.m:
      	(-[IFBookmarkGroup _sendBookmarkGroupChangedNotification]):
      	(-[IFBookmarkGroup removeBookmark:]):
      	(-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
      	(-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
      	(-[IFBookmarkGroup updateBookmark:title:image:URLString:]):
      	Changed "URL" to "URLString" in several places, added a "with"
      	to some parameter names; added addNewBookmarkToBookmark public
      	method; added notification that's sent when bookmarks are added or removed.
      
      	* Bookmarks.subproj/IFBookmarkLeaf.h:
      	* Bookmarks.subproj/IFBookmarkLeaf.m:
      	(-[IFBookmarkLeaf initWithURLString:title:image:group:]):
      	Added image parameter.
      
      	* Bookmarks.subproj/IFBookmarkList.m:
      	(-[IFBookmarkList numberOfChildren]): New method.
      	(-[IFBookmarkList _removeChild:]): Implemented.
      
      	Fixed 2917086 (Add Bookmark is not yet implemented). You
      	can now add bookmarks to the Bookmarks menu, and they work.
      	However, they aren't yet persistent, and there's only a flat
      	list that you can't yet reorder.
      
      	* AppController.h: Added instance variables for bookmarks stuff;
      	added +standardBookmarks method.
      
      	* AppController.m:
      	(-[AppController awakeFromNib]): Move history notification setup from
      	here to -webHistory; added call to _updateBookmarksInMenu, and FIXME
      	about doing this lazily eventually.
      	(-[AppController dealloc]): release bookmarks.
      	(-[AppController webHistory]): Moved history notification setup to here.
      	(-[AppController menuTitleForURL:withTitle:]): Improved assert.
      
      	(-[AppController _setUpStringTruncator]):
      	(-[AppController _historyFilePath]):
      	(-[AppController _receivedHistoryChangedNotification:]):
      	(-[AppController _insertHistoryEntry:intoMenu:atIndex:]):
      	(-[AppController _insertItemsForDate:intoMenu:atIndex:withRunningTotal:limit:]):
      	(-[AppController _insertSubmenu:forDate:atIndex:]):
      	(-[AppController _takeLocationFromHistoryEntry:]):
      	(-[AppController _addHistoryToMenu]):
      	(-[AppController _updateHistoryInMenu]):
      	Added leading underscores to private methods, updated callers.
      
      	(-[AppController _standardBookmarksFilePath]):
      	(-[AppController _removeBookmarksFromMenu]):
      	(-[AppController _takeLocationFromBookmark:]):
      	(-[AppController _insertBookmark:intoMenu:atIndex:]):
      	(-[AppController _addBookmarksToMenu]):
      	(-[AppController _updateBookmarksInMenu]):
      	(-[AppController _receivedBookmarksChangedNotification:]):
      	(-[AppController standardBookmarks]): New methods.
      
      	* BrowserDocument.h:
      	* BrowserDocument.m:
      	(-[BrowserDocument addBookmark:]): New method; accessed from menu item.
      	(-[BrowserDocument validateUserInterfaceItem:]): Enable Add Bookmark
      	menu item only when there's a currentURL.
      
      	* English.lproj/MainMenu.nib: Wire up some bookmark-related stuff.
      
      	* WebBrowser.pbproj/project.pbxproj: Version wars?
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d818a72
  4. 30 Apr, 2002 1 commit
    • sullivan's avatar
      Fixed silly bug Darin noticed by inspection where I was · 7f29517c
      sullivan authored
      	doing string == @"" instead of [string length] == 0.
      
      	* BrowserWindow.m:
      	(-[BrowserWindow setStatus:]):
      
      	Added initial set of files/API and some of the code for
      	bookmarks support. Nobody calls it yet, but it compiles.
      	I wanted to get this in before I ran into project file
      	merge conflicts.
      
      	* Bookmarks.subproj/IFBookmark.h: Added.
      	* Bookmarks.subproj/IFBookmark_Private.h: Added.
      	* Bookmarks.subproj/IFBookmark.m: Added.
      	(-[IFBookmark dealloc]):
      	(-[IFBookmark title]):
      	(-[IFBookmark _setTitle:]):
      	(-[IFBookmark image]):
      	(-[IFBookmark _setImage:]):
      	(-[IFBookmark isLeaf]):
      	(-[IFBookmark URLString]):
      	(-[IFBookmark _setURLString:]):
      	(-[IFBookmark children]):
      	(-[IFBookmark _insertChild:atIndex:]):
      	(-[IFBookmark parent]):
      	(-[IFBookmark _setParent:]):
      	(-[IFBookmark group]):
      	(-[IFBookmark _setGroup:]):
      	* Bookmarks.subproj/IFBookmarkGroup.h: Added.
      	* Bookmarks.subproj/IFBookmarkGroup.m: Added.
      	(+[IFBookmarkGroup bookmarkGroupWithFile:]):
      	(-[IFBookmarkGroup initWithFile:]):
      	(-[IFBookmarkGroup dealloc]):
      	(-[IFBookmarkGroup topBookmark]):
      	(-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
      	(-[IFBookmarkGroup removeBookmark:]):
      	(-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:title:image:URL:isLeaf:]):
      	(-[IFBookmarkGroup updateBookmark:title:image:URL:]):
      	(-[IFBookmarkGroup file]):
      	(-[IFBookmarkGroup loadBookmarkGroup]):
      	(-[IFBookmarkGroup saveBookmarkGroup]):
      	* Bookmarks.subproj/IFBookmarkLeaf.h: Added.
      	* Bookmarks.subproj/IFBookmarkLeaf.m: Added.
      	(-[IFBookmarkLeaf dealloc]):
      	(-[IFBookmarkLeaf title]):
      	(-[IFBookmarkLeaf _setTitle:]):
      	(-[IFBookmarkLeaf image]):
      	(-[IFBookmarkLeaf _setImage:]):
      	(-[IFBookmarkLeaf isLeaf]):
      	(-[IFBookmarkLeaf URLString]):
      	(-[IFBookmarkLeaf _setURLString:]):
      	* Bookmarks.subproj/IFBookmarkList.h: Added.
      	* Bookmarks.subproj/IFBookmarkList.m: Added.
      	(-[IFBookmarkList initWithTitle:image:group:]):
      	(-[IFBookmarkList dealloc]):
      	(-[IFBookmarkList title]):
      	(-[IFBookmarkList _setTitle:]):
      	(-[IFBookmarkList image]):
      	(-[IFBookmarkList _setImage:]):
      	(-[IFBookmarkList isLeaf]):
      	(-[IFBookmarkList children]):
      	(-[IFBookmarkList _insertChild:atIndex:]):
      
      	* WebKit.pbproj/project.pbxproj: Updated for new files.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f29517c
  5. 29 Apr, 2002 2 commits
  6. 26 Apr, 2002 3 commits
    • darin's avatar
      * kwq/make-mac-encodings.c: (main): One more place that needed a workaround · 9ab8fab8
      darin authored
      	for Radar 2912404 (kCFStringEncodingInvalidId is negative even though
      	CFStringEncoding is unsigned).
      
      	* kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]): Do this
      	ourselves so we don't rely on WebFoundation.
      	* kwq/Makefile.am: Don't do a -I for WebFoundation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ab8fab8
    • darin's avatar
      Check in some old changes from my TiBook so I can trash the source tree. · 2942d936
      darin authored
      	Pay no attention to the man who is not supposed to be working.
      
      	* Tools/Scripts/find-unused-symbols: Added. Only partly done.
      	* configure.in: Some small tweaks.
      
      WebCore:
      
      	Pay no attention to the man who is not supposed to be working.
      
      	* khtml/Makefile.am:
      	* khtml/css/Makefile.am:
      	* khtml/ecma/Makefile.am:
      	* khtml/html/Makefile.am:
      	* khtml/java/Makefile.am:
      	* khtml/misc/Makefile.am:
      	* khtml/rendering/Makefile.am:
      	* khtml/xml/Makefile.am:
      	Don't generate empty .moc files or khtmldata.h; there's no reason
      	not to just check them in instead. Also tweak a few build rules to
      	use automatic make variables.
      
      	* khtml/ecma/kjs_window.moc: Added.
      	* khtml/html/html_documentimpl.moc: Added.
      	* khtml/html/htmltokenizer.moc: Added.
      	* khtml/java/kjavaapplet.moc: Added.
      	* khtml/java/kjavaappletcontext.moc: Added.
      	* khtml/java/kjavaappletserver.moc: Added.
      	* khtml/java/kjavaappletwidget.moc: Added.
      	* khtml/java/kjavadownloader.moc: Added.
      	* khtml/java/kjavaprocess.moc: Added.
      	* khtml/khtmlview.moc: Added.
      	* khtml/misc/khtmldata.h: Added.
      	* khtml/rendering/render_form.moc: Added.
      	* khtml/rendering/render_frames.moc: Added.
      	* khtml/rendering/render_replaced.moc: Added.
      	* khtml/xml/dom_docimpl.moc: Added.
      	* khtml/xml/xml_tokenizer.moc: Added.
      
      	* kwq/kwqdebug.mm: Make some globals private.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2942d936
    • mjs's avatar
      WebFoundation: · 8f8cfc8c
      mjs authored
      	Reviewed by: Darin Adler
      
      	Changes to authentication to allow the IFAuthenticationHandler
      	protocol to be asynchronous, so it's cancellable and suitable for
      	use by sheets. Fixes the following Radar bugs:
      
      	2874727 - IFAuthenticationHandler protocol is unsuitable for
      	clients that want to prompt using a sheet
      	2874730 - IFAuthenticationHandler protocol does not allow for cancellation
      	2876170 - Authentication handling blocks a loader thread indefinitely
      
      	In addition there is a lot of assorted code cleanup.
      
      	* AuthenticationManager.subproj/IFAuthenticationHandler.h:
      	* AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.h:
      	* AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.m:
      	(-[IFAuthenticationDispatchState dealloc]):
      	(dispatchStartAuthentication):
      	(dispatchCancelAuthentication):
      	(dispatchAuthenticationDone):
      	(dispatchAuthenticationHandlerBusy):
      	(-[IFAuthenticationHandlerDispatcher _dispatchStartAuthentication:]):
      	(-[IFAuthenticationHandlerDispatcher IFAuthenticationRequest:authenticationDone:]):
      	(-[IFAuthenticationHandlerDispatcher IFAuthenticationRequestAuthenticationHandlerBusy:]):
      	(-[IFAuthenticationHandlerDispatcher _dispatchCancelAuthentication:]):
      	(-[IFAuthenticationHandlerDispatcher _dispatchAuthenticationDone:]):
      	(-[IFAuthenticationHandlerDispatcher _dispatchAuthenticationHandlerBusy:]):
      	(-[IFAuthenticationHandlerDispatcher initWithAuthenticationHandler:]):
      	(-[IFAuthenticationHandlerDispatcher dealloc]):
      	(-[IFAuthenticationHandlerDispatcher hasHandler:]):
      	(-[IFAuthenticationHandlerDispatcher startAuthentication:]):
      	(-[IFAuthenticationHandlerDispatcher cancelAuthentication:]):
      	* AuthenticationManager.subproj/IFAuthenticationManager.m:
      	(-[IFAuthenticationRequestState initWithHandlersCopy:index:httpRequest:authenticationRequest:callback:context:]):
      	(-[IFAuthenticationRequestState dealloc]):
      	(-[IFAuthenticationManagerPrivate init]):
      	(-[IFAuthenticationManagerPrivate dealloc]):
      	(-[IFAuthenticationManager _invokeHandlersWithURL:realm:forRequest:withCallback:context:]):
      	(-[IFAuthenticationManager _tryRequest:]):
      	(-[IFAuthenticationManager IFAuthenticationRequest:authenticationDone:]):
      	(-[IFAuthenticationManager _addCredentialsToInitialHTTPRequest:]):
      	(-[IFAuthenticationManager _addCredentialsToRetryHTTPRequest:afterFailureResponse:withCallback:context:]):
      	(-[IFAuthenticationManager _cancelAddCredentialsToRetryHTTPRequest:]):
      	* AuthenticationManager.subproj/IFAuthenticationManagerCallback.h:
      	* AuthenticationManager.subproj/IFAuthenticationRequest.m:
      	(-[IFAuthenticationRequest _authenticationHandlerBusy]):
      	(-[IFAuthenticationRequest authenticationDone:]):
      	* AuthenticationManager.subproj/IFAuthenticationRequestPrivate.h:
              * WebFoundation.pbproj/project.pbxproj: Added new files to the build.
      
      	* Misc.subproj/IFCFRunLoopExtensions.h, Misc.subproj/IFCFRunLoopExtensions.c: 	Added.
      	(IFCallFromCFRunLoop): New convenience wrapper for a one-shot run loop
              callback.
      	(IFCallFromRunLoopCFRunLoopTimerCallBack): Helper function for the above.
      	(IFCallFromCFRunLoopContextRetain): Likewise.
      	(IFCallFromCFRunLoopContextRelease): Likewise.
      	(IFCallFromCFRunLoopContextCopyDescription): Likewise.
      
      	* Misc.subproj/IFNSDictionaryExtensions.h,Misc.subproj/IFNSDictionaryExtensions.m:
      	(-[NSMutableDictionary _IF_setObject:forUncopiedKey:]): New helper function to put
              things in dictionaries without copying the key.
      
      WebBrowser:
      	* AuthenticationHandler.h, AuthenticationHandler.m: Changed to
      	conform to new improved IFAuthenticationHandler protocol.
      
      	(-[AuthenticationHandler init]):
      	(-[AuthenticationHandler readyToStartAuthentication:]):
      	(-[AuthenticationHandler startAuthentication:]):
      	(-[AuthenticationHandler cancelAuthentication:]):
      	(-[AuthenticationHandler showAuthenticationPanel]):
      
      	* WebBrowser.pbproj/project.pbxproj: I touched it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f8cfc8c
  7. 25 Apr, 2002 7 commits
    • darin's avatar
      * History.subproj/IFWebHistoryPrivate.m: · 9fbe9689
      darin authored
      	(-[IFWebHistoryPrivate _loadHistoryGuts:]): Use NSDictionary instead
      	of NSObject to avoid a cast.
      
      	* WebView.subproj/IFLocationChangeHandler.h: Add NSObject as a required
      	protocol so we can retain and release.
      	* WebView.subproj/IFWebController.h: Add NSObject as a required protocol
      	so we can retain and release.
      
      	* WebView.subproj/IFWebDataSourcePrivate.mm:
      	(-[IFWebDataSourcePrivate dealloc]):
      	(-[IFWebDataSource _setLoading:]):
      	(-[IFWebDataSource _setController:]):
      	(-[IFWebDataSource _setLocationChangeHandler:]):
      	* WebView.subproj/IFWebViewPrivate.mm:
      	(-[IFWebViewPrivate dealloc]):
      	Removed NSObject * casts that were used to work around the problem fixed above.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9fbe9689
    • darin's avatar
      * kwq/KWQMetrics.h: Add NSObject to required protocols for · bec5d7fb
      darin authored
      	the KWQLayoutFragment protocol so we can retain and release.
      
      	* kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
      	Removed a cast to NSObject * that worked around the lack of the above.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bec5d7fb
    • cblu's avatar
      * MIME.subproj/IFDownloadHandler.h: · 8ef34f2f
      cblu authored
              * MIME.subproj/IFDownloadHandler.mm:
              (+[IFDownloadHandler launchURL:]):
      
              Added the above method as a way to universally launch an URL
              within WebKit
      
              * WebView.subproj/IFBaseWebController.mm:
              (-[IFBaseWebController URLPolicyForURL:]):
      
              We handle http, https and file URL's
      
              * WebView.subproj/IFWebDataSource.mm:
              (-[IFWebDataSource initWithURL:]):
              (-[IFWebDataSource startLoading:]):
      
              The IFURLHandle is now lazilly allocated.
      
              * WebView.subproj/IFWebFrame.mm:
              (-[IFWebFrame setProvisionalDataSource:]):
      
              We only load a data source if the URL policy is IFURLPolicyUseContentPolicy
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ef34f2f
    • rjw's avatar
      Fixed problem with errors potentially being reported on · 181f1b6f
      rjw authored
              wrong data source by moving collected errors from frame
              to datasource.
      
              Little changes in preparation for events.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      181f1b6f
    • darin's avatar
      Add a workaround for Radar 2912404 (kCFStringEncodingInvalidId is negative even · 742dd7ee
      darin authored
      	though CFStringEncoding is unsigned)
      
      	* kwq/KWQCharsets.mm:
      	(KWQCFStringEncodingFromIANACharsetName):
      	(KWQCFStringEncodingFromMIB):
      	* kwq/KWQtextcodec.mm:
      	(QTextCodec::codecForMib):
      	(QTextCodec::codecForName):
      	* kwq/make-charset-table.pl:
      	Add casts to (CFStringEncoding) wherever we use kCFStringEncodingInvalidId.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      742dd7ee
    • darin's avatar
      WebCore: · 366d0866
      darin authored
      	Rework plugin code to prepare to move more of it into WebKit.
      
      	* khtml/rendering/render_applet.cpp:
      	(RenderApplet::RenderApplet): Create a widget for the applet using
      	the new simpler API.
      
      	* kwq/kdecore/kconfig.h:
      	* kwq/KWQKConfigBase.mm: Eliminate KConfigBase.
      	Set things up so we are poised to handle the other non-plugin
      	config keys easily in the future.
      
      	* kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject): Use the new simpler
      	IFPluginWidgetCreate API instead of the older WCPluginWidget one.
      
      	* kwq/qt/qstring.h: Add simpler conversions to/from NSString.
      	* kwq/KWQString.mm: (QString::fromNSString): New.
      
      	* kwq/WCPluginWidget.h: Made this API simpler both for the C++
      	side and the Objective-C side. There's now no class, and only one
      	function that needs to be supplied (normally by WebKit).
      	* kwq/WCJavaAppletWidget.h: Same thing for the Java case.
      
      	* kwq/WCJavaAppletWidget.mm:
      	(IFSetJavaAppletViewCreationFunction): New.
      	(IFJavaAppletWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      	* kwq/WCPluginWidget.mm:
      	(IFSetPluginViewCreationFunction): New.
      	(IFPluginWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      
      	* libwebcore.exp: Update for new function names.
      
      WebKit:
      
      	Rework plugin code to prepare to move more of here from WebCore.
      
      	* Plugins.subproj/IFPluginView.mm:
      	(IFPluginViewCreate): New. Does all the work of creating an NSView
      	for a plug-in, including stuff previously done in WebCore.
      	(IFJavaAppletViewCreate): Same as above, for Java applets.
      	(+[IFPluginView load]): Set up the function pointers using the new
      	improved WebCore API.
      
      	* Plugins.subproj/IFNullPluginView.mm:
      	(-[IFNullPluginView load]): Remove this setup because now there's
      	no separate call to set up a null plug-in.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      366d0866
    • sullivan's avatar
      Fixed 2911915 (Exception in -[IFWebView mouseMoved]) · db94bcf5
      sullivan authored
      	* WebView.subproj/IFWebView.mm:
      	(-[IFWebView mouseDown:]): Changed "mouseUp" to "mouseDown"
      	in exception message.
      
      	(-[IFWebView mouseMoved:]): Removed bogus event-type checking
      	that caused this method to (always?) throw an exception when
      	invoked.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db94bcf5
  8. 24 Apr, 2002 4 commits
    • cblu's avatar
      Renamed [IFWebDataSource frame] to [IFWebDataSource webFrame] · 72c37f02
      cblu authored
              Labyrinth/WebBrowser/ChangeLog
              Labyrinth/WebBrowser/FrameProgressEntry.m
              Labyrinth/WebBrowser/IFWebFrameAdditions.m
              Labyrinth/WebBrowser/LoadProgressMonitor.m
              Labyrinth/WebBrowser/LocationChangeHandler.m
              Labyrinth/WebBrowser/WebController.m
              Labyrinth/WebBrowser/WebBrowser.pbproj/project.pbxproj
              Labyrinth/WebCore/ChangeLog
              Labyrinth/WebCore/kwq/KWQKHTMLPart.mm
              Labyrinth/WebCore/kwq/external.h Labyrinth/WebKit/ChangeLog
              Labyrinth/WebKit/WebKit.pbproj/project.pbxproj
              Labyrinth/WebKit/WebView.subproj/IFBaseWebControllerPrivate.mm
              Labyrinth/WebKit/WebView.subproj/IFMainURLHandleClient.mm
              Labyrinth/WebKit/WebView.subproj/IFWebDataSource.h
              Labyrinth/WebKit/WebView.subproj/IFWebDataSource.mm
              Labyrinth/WebKit/WebView.subproj/IFWebDataSourcePrivate.mm
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72c37f02
    • rjw's avatar
      Changed ordering of messages so activity viewer doesn't get -1 bytesSoFar · 452d45d3
      rjw authored
              for cancelled messages.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      452d45d3
    • sheridan's avatar
      added release markers to the changelogs · d06155f5
      sheridan authored
      "Alexander 0.3c2 (v1)"
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d06155f5
    • darin's avatar
      Get rid of all NEED_BOGUS_XXX. · 90df6562
      darin authored
      	* khtml/java/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS and
      	-DNEED_BOGUS_X_DEFINES.
      	* khtml/rendering/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES.
      	* khtml/xml/Makefile.am: Remove -DNEED_BOGUS_TEXTSTREAMS.
      	* kwq/Makefile.am: Remove -DNEED_BOGUS_X_DEFINES and KWQKJavaEmbed.mm.
      	* kwq/KWQKJavaEmbed.mm: Removed.
      
      	* kwq/KWQDef.h: Remove XEvent define (inside NEED_BOGUS_X_DEFINES).
      
      	* kwq/qt/qtextstream.h: Don't look at NEED_BOGUS_TEXTSTREAMS.
      	* kwq/KWQtextstream.mm: Don't look at NEED_BOGUS_TEXTSTREAMS.
      
      	* khtml/java/javaembed.h: Made this just a QWidget typedef for now.
      	* khtml/java/kjavaappletwidget.cpp: ifdef out the unused setWindow function.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90df6562
  9. 23 Apr, 2002 5 commits
    • darin's avatar
      * khtml/css/css_valueimpl.cpp: · f552cb6c
      darin authored
              (CSSPrimitiveValueImpl::computeLengthFloat):
              * khtml/css/cssstyleselector.cpp:
              (CSSStyleSelector::computeFontSizes):
              Remove our 72/96 dpi changes. They weren't doing much good.
              But this doesn't fix all the 72/96 dpi issues. It's just the start.
      
              * kwq/khtml/khtml_settings.h:
              * kwq/KWQKHTMLSettings.mm:
              Remove some unused stuff: charset(), setCharset(), availableFamilies(),
              fontSizes(), SCREEN_RESOLUTION.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f552cb6c
    • cblu's avatar
      WebKit: · 1e2cf4f2
      cblu authored
              * WebKit.pbproj/project.pbxproj:
      
              Took IFDownloadHandler.h out of the public headers.
      
              * WebView.subproj/IFLocationChangeHandler.h:
      
              Removed deprecated methods.
      
              * WebView.subproj/IFWebFrame.mm:
              (-[IFWebFrame setProvisionalDataSource:]):
      
              Don't call locationChangeStarted anymore.
      
      WebBrowser:
              * LocationChangeHandler.m:
      
              Removed locationChangeStarted and downloadingWithHandler as they are
              deprecated.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e2cf4f2
    • cblu's avatar
      * MIME.subproj/IFDownloadHandler.h: · 0ef249b6
      cblu authored
              * MIME.subproj/IFDownloadHandler.m: Removed.
              * MIME.subproj/IFDownloadHandler.mm: Added.
              (-[IFDownloadHandler initWithDataSource:]):
              (-[IFDownloadHandler dealloc]):
              * MIME.subproj/IFDownloadHandlerPrivate.h: Removed.
              * MIME.subproj/IFDownloadHandlerPrivate.m: Removed.
      
              Made IFDownloadHandler a private class that retains the data source
              and saves the data to disk.
      
              * WebKit.pbproj/project.pbxproj:
      
              Removed IFDownloadHandlerPrivate
      
              * WebView.subproj/IFBaseWebControllerPrivate.mm:
              (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
      
              Only send locationChangeCommitted if its shown inline.
      
              * WebView.subproj/IFMainURLHandleClient.mm:
              (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
      
              Save data with IFDownloadHandler
      
              (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
      
              If its a download, set the provisionalDataSource on the frame to nil.
      
              * WebView.subproj/IFWebDataSource.h:
              * WebView.subproj/IFWebDataSource.mm:
              (-[IFWebDataSource webFrame]):
              (-[IFWebDataSource pageTitle]):
              (-[IFWebDataSource contentPolicy]):
      
              Added some accessor methods. Spelling fix pageTitle.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ef249b6
    • kocienda's avatar
      2002-04-23 Kenneth Kocienda <kocienda@apple.com> · fbe7d279
      kocienda authored
      	Reviewed by: Darin Adler
      
              Fix for Radar 2908403 (Fix names in WebFoundation extensions code)
      
              Extensions code in WebFoundation now is in its own namespace.
              Where we have added categories to existing Foundation and AppKit
              classes, the categories begin with the IF prefix. All method names
              begin with the _IF_ prefix.
      
              The files here were changed to use the new names.
      
              In addition, private methods on publicly WebFoundation classes
              now have an underscopre prepended to their names.
      
              * Tests/CookieManager/wkcookiemanager-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsarrayextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnscalendardateextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsobjectextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsstringextensions-test.m:
              (main)
              * Tests/WebFoundation-Misc/ifnsthreadextensions-test.m:
              (-[ThreadTest run:]):
              (main)
              * Tools/HotSpots/hotspots.m:
              (ProcessLine)
              (SortByValueInDictionary):
              (DumpTables)
              (PrintCallGraphForFrame):
              * Tools/wftool/main.m:
              (main)
      
              * WebCore/kwq/KWQTextArea.mm:
              (-[KWQTextArea paragraphs])
      
              * WebBrowser/AppController.m:
              (-[AppController _addHistoryToMenu])
              * WebBrowser/BrowserWindow.m:
              (-[BrowserWindow controlTextDidEndEditing:])
              * WebBrowser/GlobalHistory.m:
              (-[GlobalHistory outlineView:objectValueForTableColumn:byItem:])
              (-[GlobalHistory expandToday])
      
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationHandlerDispatcher.m:
              (-[IFAuthenticationHandlerDispatcher checkIfReadyToStartAuthentication:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationManager.m:
              (-[IFAuthenticationManager removeAuthenticationHandler:]):
              (IFNSURLRemoveAnythingAfterPath):
              (IFNSURLCanonicalRoot):
              (AddAuthenticationHeader):
              (-[IFAuthenticationManager _invokeHandlersWithURL:realm:forRequest:withCallback:context:]):
              (-[IFAuthenticationManager _tryRequest:]):
              (-[IFAuthenticationManager _retryWaitingRequests]):
              (-[IFAuthenticationManager IFAuthenticationRequest:authenticationDone:]):
              (-[IFAuthenticationManager _addCredentialsToInitialHTTPRequest:]):
              (-[IFAuthenticationManager _checkForAuthenticationFailureInHTTPResponse:withURL:]):
              (-[IFAuthenticationManager _addCredentialsToRetryHTTPRequest:afterFailureResponse:withCallback:context:]):
              (-[IFAuthenticationManager _cancelAddCredentialsToRetryHTTPRequest:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationManagerPrivate.h:
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationRequest.m:
              (-[IFAuthenticationRequest _readyToStartAuthenticationDone:]):
              * WebFoundation/AuthenticationManager.subproj/IFAuthenticationRequestPrivate.h:
              * WebFoundation/CacheLoader.subproj/IFFileURLHandle.m:
              (+[IFFileURLHandle canInitWithURL:]):
              (-[IFFileURLHandle contentLength]):
              * WebFoundation/CacheLoader.subproj/IFFileURLProtocolHandler.m:
              (+[IFFileURLProtocolHandler canInitWithURL:]):
              * WebFoundation/CacheLoader.subproj/IFHTTPURLHandle.m:
              (+[IFHTTPURLHandle canInitWithURL:]):
              (-[IFHTTPURLHandle setResponseHeaders:]):
              * WebFoundation/CacheLoader.subproj/IFHTTPURLProtocolHandler.m:
              (+[IFHTTPURLProtocolHandler canInitWithURL:]):
              (-[IFHTTPURLProtocolHandler endLoadInBackground]):
              (-[IFHTTPURLProtocolHandler dealloc]):
              (-[IFHTTPURLProtocolHandler requestURL]):
              (-[IFHTTPURLProtocolHandler addIfModifiedSinceHeader:]):
              (-[IFHTTPURLProtocolHandler addCookieHeaders:]):
              (-[IFHTTPURLProtocolHandler addAuthenticationHeaders:andCall:]):
              (-[IFHTTPURLProtocolHandler addRequestMessageBody:]):
              (-[IFHTTPURLProtocolHandler performHTTPHeaderRead:]):
              (-[IFHTTPURLProtocolHandler setRedirectedURL:]):
              (-[IFHTTPURLProtocolHandler cacheObjectIsValid:]):
              (-[IFHTTPURLProtocolHandler cacheObjectRequiresRevalidation:]):
              (-[IFHTTPURLProtocolHandler shouldCacheResourceData]):
              (-[IFHTTPURLProtocolHandler parseCacheControlAttributes:]):
              * WebFoundation/CacheLoader.subproj/IFURLHandle.m:
              (_sendCallbacks):
              (-[IFURLHandleInstanceVariables initWithHandle:]):
              (-[IFURLHandle cancelLoadInBackground]):
              (+[IFURLHandle initialize]):
              (-[IFURLHandle _submittedAttributes]):
              (-[IFURLHandle _setAttribute:forKey:]):
              (-[IFURLHandle _setContentLength:]):
              (-[IFURLHandle _loadType]):
              (-[IFURLHandle _backgroundLoadDidBegin]):
              (-[IFURLHandle _backgroundLoadDidBegin:]):
              (-[IFURLHandle _didLoadData:]):
              (-[IFURLHandle _backgroundLoadComplete]):
              (-[IFURLHandle _backgroundLoadFailedWithResultCode:]):
              (-[IFURLHandle _didRedirectToURL:]):
              (+[IFURLHandle _registerDefaults]):
              (-[IFURLHandle _cacheable]):
              (-[IFURLHandle _setCacheable:]):
              (-[IFURLHandle _setStatusCode:]):
              (-[IFURLHandle _setResultCode:]):
              (-[IFURLHandle _setFinalURL:]):
              (-[IFURLHandle _postCallback:]):
              (-[IFURLHandle _sendCallbacks]):
              (-[IFURLHandle _notifyClientsDidBeginLoading]):
              (-[IFURLHandle _notifyClientsDidCancelLoading]):
              (-[IFURLHandle _notifyClientsDataDidBecomeAvailable]):
              (-[IFURLHandle _notifyClientsDidFinishLoading]):
              (-[IFURLHandle _notifyClientsDidFailLoading]):
              (-[IFURLHandle _notifyClientsDidRedirectToURL]):
              * WebFoundation/CacheLoader.subproj/IFURLHandleC.m:
              (IFURLHandleBackgroundLoadDidBegin):
              (IFURLHandleBackgroundLoadComplete):
              (IFURLHandleBackgroundLoadFailedWithResultCode):
              (IFURLHandleDidRedirectToURL):
              * WebFoundation/CacheLoader.subproj/IFURLHandlePrivate.h:
              * WebFoundation/CacheLoader.subproj/IFURLLoad.m:
              (-[IFURLLoad doubleAttributeForKey:]):
              (-[IFURLLoad updateHandles]):
              (-[IFURLLoad succeeded]):
              (-[IFURLLoad failedWithResultCode:]):
              (+[IFURLLoad initialize]):
              (-[IFURLLoad didBeginLoading:]):
              * WebFoundation/CacheLoader.subproj/IFURLLoadManager.m:
              (-[IFURLLoadManager initWithDefaultStack]):
              (-[IFURLLoadManager requestWithURLHandle:]):
              (-[IFURLLoadManager _syncCachesNotification:]):
              * WebFoundation/CookieManager.subproj/IFCookie.m:
              (setDefaultsFromOriginURL):
              (setDomain):
              (-[IFCookie _cookieToV0HeaderSegment]):
              (+[IFCookie requestHeadersFromCookieArray:]):
              (+[IFCookie cookieWithV0Spec:forURL:]):
              (+[IFCookie cookieArrayFromResponseHeaders:forURL:]):
              (-[IFCookie compareForHeaderOrder:]):
              * WebFoundation/CookieManager.subproj/IFCookieManager.m:
              (-[IFCookieManager cookieRequestHeadersForURL:]):
              (-[IFCookieManager _cookieRequestHeadersForURL:withExtraCookies:]):
              (-[IFCookieManager description]):
              * WebFoundation/CookieManager.subproj/IFCookieManagerPrivate.h:
              * WebFoundation/Database.subproj/IFURLFileDatabase.m:
              (-[IFURLFileDatabase removeAllObjects]):
              (-[IFURLFileDatabase performSetObject:forKey:]):
              (-[IFURLFileDatabase open]):
              * WebFoundation/Misc.subproj/IFMultipartForm.m:
              (-[IFMultipartForm encodeMultipartForm]):
              * WebFoundation/Misc.subproj/IFNSArrayExtensions.h:
              * WebFoundation/Misc.subproj/IFNSArrayExtensions.m:
              (-[NSArray _IF_mappedArrayWithSelector:]):
              (-[NSArray _IF_mappedArrayWithFunction:context:]):
              (-[NSArray _IF_filteredArrayWithSelector:]):
              (-[NSArray _IF_arrayByRemovingIfSelector:]):
              (-[NSArray _IF_filteredArrayWithSelector:withObject:]):
              (-[NSArray _IF_doesEveryElementSatisfyPredicate:]):
              (-[NSArray _IF_indexOfObjectSatisfyingPredicate:withObject:]):
              (-[NSArray _IF_encodeWWWFormURLData]):
              * WebFoundation/Misc.subproj/IFNSCalendarDateExtensions.h:
              * WebFoundation/Misc.subproj/IFNSCalendarDateExtensions.m:
              (-[NSCalendarDate _IF_compareDay:]):
              (-[NSCalendarDate _IF_isToday]):
              * WebFoundation/Misc.subproj/IFNSDictionaryExtensions.h:
              * WebFoundation/Misc.subproj/IFNSDictionaryExtensions.m:
              (-[NSDictionary _IF_doubleForKey:]):
              (-[NSDictionary _IF_floatForKey:]):
              (-[NSDictionary _IF_unsignedLongForKey:]):
              (-[NSDictionary _IF_longForKey:]):
              (-[NSDictionary _IF_unsignedIntForKey:]):
              (-[NSDictionary _IF_intForKey:]):
              (-[NSDictionary _IF_unsignedShortForKey:]):
              (-[NSDictionary _IF_shortForKey:]):
              (-[NSDictionary _IF_boolForKey:]):
              (-[NSDictionary _IF_encodeWWWFormURLData]):
              (-[NSMutableDictionary _IF_setDouble:forKey:]):
              (-[NSMutableDictionary _IF_setFloat:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedLong:forKey:]):
              (-[NSMutableDictionary _IF_setLong:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedInt:forKey:]):
              (-[NSMutableDictionary _IF_setInt:forKey:]):
              (-[NSMutableDictionary _IF_setUnsignedShort:forKey:]):
              (-[NSMutableDictionary _IF_setShort:forKey:]):
              (-[NSMutableDictionary _IF_setBool:forKey:]):
              * WebFoundation/Misc.subproj/IFNSFileManagerExtensions.h:
              * WebFoundation/Misc.subproj/IFNSFileManagerExtensions.m:
              (-[NSFileManager _IF_createDirectoryAtPathWithIntermediateDirectories:attributes:]):
              (-[NSFileManager _IF_createFileAtPathWithIntermediateDirectories:contents:attributes:directoryAttributes:]):
              (-[NSFileManager _IF_createIntermediateDirectoriesForPath:attributes:]):
              (-[NSFileManager _IF_fileExistsAtPath:isDirectory:traverseLink:]):
              (-[NSFileManager _performRemoveFileAtPath:]):
              (-[NSFileManager _IF_backgroundRemoveFileAtPath:]):
              * WebFoundation/Misc.subproj/IFNSMutableDataExtensions.h:
              * WebFoundation/Misc.subproj/IFNSMutableDataExtensions.m:
              (-[NSMutableData _IF_appendFormat:]):
              (-[NSMutableData _IF_appendEncodedString:format:arguments:]):
              (-[NSMutableData _IF_appendEncodedString:format:]):
              * WebFoundation/Misc.subproj/IFNSObjectExtensions.h:
              * WebFoundation/Misc.subproj/IFNSObjectExtensions.m:
              (-[NSObject _IF_performBooleanSelector:]):
              (-[NSObject _IF_performBooleanSelector:withObject:]):
              (-[NSObject _IF_encodeWWWFormURLData]):
              * WebFoundation/Misc.subproj/IFNSStringExtensions.h:
              * WebFoundation/Misc.subproj/IFNSStringExtensions.m:
              (-[NSString _IF_isCaseInsensitiveEqualToString:]):
              (-[NSString _IF_hasCaseInsensitiveSuffix:]):
              (-[NSString _IF_countOfString:]):
              (-[NSString _IF_looksLikeDomainName]):
              (-[NSString _IF_looksLikeIPAddress]):
              (-[NSString _IF_domainMatches:]):
              (-[NSString _IF_splitAtNonDateCommas]):
              (-[NSString _IF_parseAsKeyValuePair]):
              (-[NSString _IF_parseAsKeyValuePairHandleQuotes:]):
              (-[NSString _IF_stringByTrimmingWhitespace]):
              (-[NSString _IF_hasSubstring:atIndex:]):
              (-[NSString _IF_encodeStringBase64]):
              (-[NSString _IF_encodeWWWFormURLData]):
              (-[NSString _IF_encodeWWWFormURLData:]):
              (-[NSString _IF_mimeTypeFromContentTypeHeader]):
              (-[NSString _IF_characterSetFromContentTypeHeader]):
              * WebFoundation/Misc.subproj/IFNSThreadExtensions.h:
              * WebFoundation/Misc.subproj/IFNSThreadExtensions.m:
              (+[NSThread _joinableThreadBody:]):
              (+[NSThread _IF_createJoinableThreadWithSelector:toTarget:withObject:]):
              (+[NSThread _IF_joinThread:]):
              (+[NSThread _IF_sleep:]):
              * WebFoundation/Misc.subproj/IFNSURLExtensions.h:
              * WebFoundation/Misc.subproj/IFNSURLExtensions.m:
              (+[NSURL _IF_URLWithScheme:user:password:host:port:path:parameter:query:fragment:]):
      
              * WebKit/History.subproj/IFWebHistoryPrivate.m:
              (-[IFWebHistoryPrivate findIndex:forDay:]):
              (-[IFWebHistoryPrivate arrayRepresentation]):
              (-[IFWebHistoryPrivate _loadHistoryGuts:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbe7d279
    • kocienda's avatar
      2002-04-23 Kenneth Kocienda <kocienda@apple.com> · 20b0ea1d
      kocienda authored
              * kwq/KWQPixmap.mm:
              (QPixmap::QPixmap): Fixed unneeded leak of an NSImage in
              the case where we are still covering for a double-release
              bug in AppKit. No need to add insult to injury. :)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20b0ea1d
  10. 22 Apr, 2002 3 commits
    • darin's avatar
      Fix width of non-breaking spaces. There's code to hack this · 9afc49bb
      darin authored
      	at the KDE level for fonts that don't have non-breaking space
      	characters, but we need it even for fonts that do.
      
      	Not sure why this worked better on Puma, but now it's fine on
      	both Puma and Jaguar.
      
      	* kwq/KWQFontMetrics.mm:
      	(ConvertCharactersToGlyphs): New. Turns non-breaking spaces into
      	normal spaces if needed.
      	(-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
      	(-[KWQLayoutInfo _initializeCaches]), (_rectForString): Change to
      	call ConvertCharactersToGlyphs instead of ATSUConvertCharToGlyphs.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9afc49bb
    • cblu's avatar
      WebFoundation: · 1dfa39a0
      cblu authored
              * Misc.subproj/IFError.h:
              * Misc.subproj/IFError.m:
              (+[IFError initialize]):
      
              Removed old WebKit errors, added IFCantShowMIMEType.
      
      WebKit:
              * WebView.subproj/IFMainURLHandleClient.mm:
              (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
      
              Send an IFError when we're asked to show content we can't handle.
      
              * WebView.subproj/IFWebDataSourcePrivate.mm:
      
              Cleaning
      
      WebBrowser:
              * LocationChangeHandler.m:
              (-[LocationChangeHandler requestContentPolicyForMIMEType:]):
      
              Cleaned this up a little.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dfa39a0
    • cblu's avatar
      WebBrowser: · 5ae52af9
      cblu authored
              * LocationChangeHandler.m:
              (-[LocationChangeHandler requestContentPolicyForMIMEType:]):
      
              A nil type means that this is a file URL.
      
      WebKit:
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/IFBaseWebController.mm:
              (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
              * WebView.subproj/IFWebDataSourcePrivate.h:
              * WebView.subproj/IFWebDataSourcePrivate.mm:
      
              Fixed frames which I broke in the previous commit. We now set the content policy
              on all child frames instead of just the main frame.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ae52af9