1. 30 Aug, 2002 7 commits
    • kocienda's avatar
      WebFoundation: · e5f72416
      kocienda authored
      	Failed to remove debugging spam before my last checkin. Sorry.
      
              * CacheLoader.subproj/WebResourceHandle.m:
              (-[WebResourceHandle contentType])
              * CacheLoader.subproj/WebResourceLoadManager.m:
              (-[WebResourceLoadManager requestWithURLHandle:])
              * Misc.subproj/WebFileTypeMappings.m:
              (-[WebFileTypeMappings MIMETypeForExtension:])
      
      WebKit:
      
      	Failed to remove debugging spam before my last checkin. Sorry.
      
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebControllerPrivate.m:
              (+[WebController _MIMETypeForFile:])
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5f72416
    • kocienda's avatar
      WebFoundation: · ac92273a
      kocienda authored
      	Begin to refactor WebFoundation in preparation for some planned API changes.
      	This change removes all WebResourceHandle subclasses, pushing the functionality
      	that was contained in those classes to the corresponding WebProtocolHandler
      	subclasses. To make this work, I also did a small amount of mime type cleanup, and
      	as a bonus, I (unintentionally) managed to fix these two bugs:
      
      	Radar 3034795 (README fiel displays as HTML even though it's plain text)
      	Radar 3035320 (iana.org character sets page displays as HTML even though it's MIME type text/plain)
      
      	Bonus! :-)
      
      	Removed:
      
      	* CacheLoader.subproj/WebAboutResource.h
      	* CacheLoader.subproj/WebAboutResource.m
      	* CacheLoader.subproj/WebFileResourceHandle.h
      	* CacheLoader.subproj/WebFileResourceHandle.m
      	* CacheLoader.subproj/WebHTTPResourceHandle.h
      	* CacheLoader.subproj/WebHTTPResourceHandle.m
      
      WebKit:
      
              * WebView.subproj/WebControllerPrivate.m:
              (+[WebController _MIMETypeForFile:]): Small tweak to account for change
      	in behavior of a WebFoundation method upon which this method depends.
      	The WebFoundation now returns nil when it cannot find a suitable mime
      	type rather than returning a default. This function now checks for a nil
      	return value and sets @"application/octet-stream" in that case.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac92273a
    • rjw's avatar
      Force clean for decoder.h buffer class change. · 54c87c1a
      rjw authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54c87c1a
    • rjw's avatar
      Removed debugging log. · f330c5da
      rjw authored
              * kwq/KWQString.mm:
              (QString::fromStringWithEncoding):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f330c5da
    • rjw's avatar
      Made decoder more robust wrt nulls in content. Changed use · 0b46dc74
      rjw authored
              of QCString to null safe QString rather than modify
              content.
      
              * khtml/misc/decoder.cpp:
              (Decoder::decode):
              (Decoder::flush):
              * khtml/misc/decoder.h:
              * kwq/KWQString.mm:
              (QString::fromStringWithEncoding):
      
              Change link dragging behavior.  Drags URL, not URL contents.
              Still need to generate better image for dragging, will copy OmniWeb
              and drag link text.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDragged:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b46dc74
    • darin's avatar
      - fixed 3027407 -- Console error refers to closed bug · a44cf409
      darin authored
              * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::bridgeForFrameName):
      	Update bug number from 2959902 to 2942073.
      
      	- fixed 3027532 -- can't tab into or out of textareas
      
              * kwq/KWQTextArea.h: Add setFont:.
              * kwq/KWQTextArea.mm:
              (-[KWQTextArea _createTextView]): Make a KWQTextAreaTextView.
              (-[KWQTextArea textDidChange:]): Send text changed messages when the text
      	is changed, not when done editing. I did this for KWQNSTextField a while ago;
      	it's tragic that AppKit leads us to have two separate classes for these nearly
      	identical purposes.
              (-[KWQTextArea setFont:]): Call setFont on the text view.
              (-[KWQTextArea becomeFirstResponder]): Call makeFirstResponder on the text view.
              (-[KWQTextArea nextKeyView]): Do that voodoo, just like KWQNSTextField.
              (-[KWQTextArea previousKeyView]): Ditto.
              (-[KWQTextArea nextValidKeyView]): Ditto.
              (-[KWQTextArea previousValidKeyView]): Ditto.
              (-[KWQTextAreaTextView insertTab:]): Select the next key view. We don't get this
      	automatically because this is not a field editor. But being a field editor leads
      	to other unwanted behavior.
              (-[KWQTextAreaTextView insertBacktab:]): Ditto.
              (-[KWQTextAreaTextView becomeFirstResponder]): Select all on entry.
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]): Don't draw insertion point
      	when we are not the first responder.
              (-[KWQTextAreaTextView selectedTextAttributes]): Don't draw the selection when
      	we are not the first responder.
      
              * kwq/qt/qtextedit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setFont): Call -[KWQTextArea setFont:].
              (QTextEdit::focusPolicy): Always return TabFocus, because the top level widget
      	is not an NSControl so QWidget::focusPolicy does not suffice.
      
              * kwq/qt/qwidget.h: Make focusPolicy virtual.
      
              * kwq/qt/qfont.h:
              * kwq/KWQFont.mm: (QFont::getNSFont): Add this helper function
      	so we don't have to repeat this in multiple places.
      
              * kwq/KWQLineEdit.mm: (QLineEdit::setFont): Use QFont::getNSFont.
      
              * force-clean-timestamp: For you poor bastards who aren't using the new
      	Project Builder yet.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a44cf409
    • darin's avatar
      JavaScriptCore: · 17f5929c
      darin authored
              * JavaScriptCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebFoundation:
      
              * WebFoundation.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebCore:
      
              * WebCore.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebKit:
      
              * WebKit.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      WebBrowser:
      
              * WebBrowser.pbproj/project.pbxproj: Allowed the new Project Builder to put in
      	encodings for each file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17f5929c
  2. 29 Aug, 2002 3 commits
    • hyatt's avatar
      Begin connecting the layer system. The root box and the <html> · 130a831d
      hyatt authored
      	box now construct layers for themselves.  Those layers are
      	connected in a layer tree properly and they correctly update
      	their positions.
      
      	Implemented all the code for layer construction and for keeping
      	the layer tree in sync with the render object tree.
      
      	The goal is to get the layer tree fully constructed and correct
      	(with lots of testing) before actually switching over to it for
      	painting.
      
      	This change requires a clean of WebCore.
      
              * force-clean-timestamp:
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              (RenderBox::~RenderBox):
              (RenderBox::setPos):
              (RenderBox::positionChildLayers):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::~RenderContainer):
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              * khtml/rendering/render_container.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::RenderHtml):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::updateLayerPosition):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::RenderRoot):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      130a831d
    • sheridan's avatar
      Alex-21 versions & markers · 34ead614
      sheridan authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34ead614
    • hyatt's avatar
      Implement the flattening algorithm that walks the layer · 1fc4d49f
      hyatt authored
      	hierarchy and produces the correct layer list for back
      	to front painting.  (Still under construction.  Not used yet.)
      
              * khtml/rendering/render_layer.cpp:
              (sortByZOrder):
              (RenderLayer::RenderZTreeNode::constructLayerList):
              * khtml/rendering/render_layer.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fc4d49f
  3. 28 Aug, 2002 10 commits
  4. 27 Aug, 2002 6 commits
    • darin's avatar
      * force-clean-timestamp: Dave's changes require a full build. I found out the · 5b4129d2
      darin authored
      	hard way, by debugging for a while.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b4129d2
    • rjw's avatar
      i · 510de805
      rjw authored
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView mouseDown:]):
              (-[WebHTMLView mouseDragged:]):
              (-[WebHTMLView mouseMovedNotification:]):
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebHTMLViewPrivate.m:
      
              Fixed active link style.  Cleaned up and fixed drag initiation
              for links and images.  Dotted lines not drawing correcly, but
              other styles are applied correctly.
      
              * WebKit.exp:
              * History.subproj/WebHistory.h:
              * History.subproj/WebHistory.m:
      
              Added some constants.
      
              * WebCoreSupport.subproj/WebTextRendererFactory.m:
      
              Code to change CG caching policy.  Not enabled until
              we receive a root from CG team.
      
              * kwq/WebCoreBridge.h:
      
              Fixed constants to conform to WebKit.  These need to be shared.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      510de805
    • hyatt's avatar
      Change relative positioned blocks so that they are treated as special objects and · 8dc5fa9f
      hyatt authored
      	painted last along with absolutely positioned blocks and floaters.  Note that the
      	entire special object system is fundamentally flawed, and it needs to be replaced
      	with a real layering subsystem.
      
      	This checkin at least gets relatively positioned divs painting correctly some of
      	the time (in the cases where the containing blocks of absolute and relative positioned
      	divs happen to be the same).  It does not, however, deal with the problem of ensuring
      	correct stacking of positioned elements with different containing blocks.
      
      	render_layer.h and .cpp include a new implementation (not used yet, just the beginnings)
      	of a layering subsystem that I am going to be working on over the next few days
      	that will eventually be responsible for handling event dispatching and painting and that
      	will also understand how to deal with form controls and other objects that have Cocoa
      	views.
      
              * WebCore.pbproj/project.pbxproj:
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::printObject):
              (RenderFlow::printSpecialObjects):
              (RenderFlow::layoutSpecialObjects):
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::insertSpecialObject):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_layer.cpp: Added.
              (RenderLayer::RenderLayer):
              (RenderLayer::~RenderLayer):
              (RenderLayer::addChild):
              (RenderLayer::removeChild):
              * khtml/rendering/render_layer.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8dc5fa9f
    • darin's avatar
      - fixed 3031952 -- null-dereference in dispatchToUInt32 closing window · 7a0cc4de
      darin authored
              * khtml/ecma/kjs_window.cpp: (History::getValueProperty):
      	Use Undefined(), not Value() for an error result. Value() is pure evil.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a0cc4de
    • darin's avatar
      - fixed 3021018 -- Crash selecting from popup just after choosing radio button · e9782320
      darin authored
              * kwq/KWQComboBox.mm:
              (QComboBox::QComboBox): Pass the widget in when creating the cell.
              (-[KWQPopUpButtonCell initWithWidget:]): Store a widget pointer.
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]): Get to the bridge
      	and tell it to defer loading while we track the mouse.
      
              * kwq/KWQKHTMLPartImpl.h: Add bridgeForWidget.
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::nextKeyViewForWidget): Use nodeForWidget and partForNode.
              (KWQKHTMLPartImpl::bridgeForWidget): Added. Use nodeForWidget and partForNode.
              (KWQKHTMLPartImpl::partForNode): Move code here from nextKeyViewForWidget.
              (KWQKHTMLPartImpl::nodeForWidget): Move code here from nextKeyViewForWidget.
      
              * kwq/WebCoreBridge.h: Add defersLoading and setDefersLoading. Both are already
      	in WebKit.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9782320
    • darin's avatar
      - fixed 3031583 -- directory.apple.com now gives "unsupported" redirect · 17fd8f40
      darin authored
              * WebView.subproj/WebDataSource.m: (-[WebDataSource initWithURL:attributes:flags:]):
      	Don't create the resource handle here. It's a bit too early.
              * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _startLoading:]):
      	Create the resource handle here, now that we have a controller to get a user agent from.
      
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient handleWillUseUserAgent:forURL:]): Add an assert that will catch
      	any future problems of this kind.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge defersLoading]): Added. New call for use in WebCore.
              (-[WebBridge setDefersLoading:]): Added. New call for use in WebCore.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17fd8f40
  5. 26 Aug, 2002 6 commits
    • hyatt's avatar
      Fix for 3026006. Ensure that TABLES inside <div>s with align="right" · 2a24c185
      hyatt authored
      	are properly positioned.  <div align="right"> was completely
      	unimplemented.  This patch implements it for the common cases
      	(nested divs, tables within divs, and paragraphs).
      
              * khtml/css/html4.css:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a24c185
    • darin's avatar
      Add machinery for deferring callbacks. Not used yet. · ff48f350
      darin authored
              * WebView.subproj/WebControllerPrivate.h: Add methods.
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebController _defersCallbacks]): Returns old state.
              (-[WebController _setDefersCallbacks:]): Changes state and calls _defersCallbacksChanged
      	on the main frame.
      
              * WebView.subproj/WebFramePrivate.h: Add _defersCallbacksChanged.
              * WebView.subproj/WebFramePrivate.m: (-[WebFrame _defersCallbacksChanged]):
      	Calls _defersCallbacksChanged on both data sources.
      
              * WebView.subproj/WebDataSourcePrivate.h: Add _defersCallbacksChanged.
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _setController:]): Call _defersCallbacksChanged if changing the controller
      	changes the state.
              (-[WebDataSource _addResourceHandle:]): Call setDefersCallbacks:YES on the new handle if
      	we are already attached to a controller that defers callbacks.
              (-[WebDataSource _defersCallbacksChanged]): Call setDefersCallbacks on all the handles, and
      	call _defersCallbacksChanged on the child frames as well.
      
              * WebView.subproj/WebDataSource.m: (-[WebDataSource controller]):
      	We need to know about all controller changes, so it's unacceptable to consult our
      	parent about the controller. But we already do know about it and this code was unnecessary.
      	Leave the old code around as an assert only.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff48f350
    • darin's avatar
      * khtml/rendering/render_list.cpp: · 4febf6d5
      darin authored
      	Make file match the original KDE more closely (no substantive change).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4febf6d5
    • rjw's avatar
      WebBrowser: · ff141680
      rjw authored
              * History.subproj/WebHistory.h:
              * History.subproj/WebHistory.m:
              (+[WebHistory webHistoryWithFile:]):
              Stage 1, set the shared history instance.  This'll move to
              WebKit soon.
      
              * WebView.subproj/WebView.m:
              (-[WebView setFrame:]):
              Only force display if in live resize.
      
      WebKit
              Fixed for 2883623 (visited links only).  Will change
              w/ stage 2 of history move to webkit.
      
              * GlobalHistory.m:
              (-[GlobalHistory awakeFromNib]):
      
      WebCore:
      
              * WebCore.exp:
      
              Added WebCoreHistory
      
              * WebCore.pbproj/project.pbxproj:
      
              Added WebCoreHistory
      
              * kwq/KWQKHistoryProvider.mm:
              Use WebCoreHistory to determine visited link.
      
              * kwq/WebCoreHistory.h: Added.
              * kwq/WebCoreHistory.m: Added.
      
              Stage 1.  Use WebKit's WebHistory.  Writing
              of history and initialization still handled
              by Alex until stage 2.
      
              (+[WebCoreHistory setSharedHistory:]):
              (+[WebCoreHistory sharedHistory]):
              (-[WebCoreHistory containsURL:]):
      
              * kwq/KWQString.mm:
              (QString::compare):
      
              Optimization, use strcmp when both src and dst have valid ascii.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff141680
    • hyatt's avatar
      - Patch drawText to understand right-aligned drawing. · fb9df4c8
      hyatt authored
      	- Fixed <ul> bullets so that they position properly.
      	- Fixed bugs with horizontal and vertical positioning of
      	  <ol> bullets.
      
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::printObject):
              * kwq/KWQPainter.mm:
              (QPainter::drawText):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb9df4c8
    • sullivan's avatar
      WebKit: · 6955e345
      sullivan authored
      	- fixed bug where dragging a separator in the Bookmarks window
      	would hit an assertion.
      
              * Bookmarks.subproj/WebBookmarkSeparator.m:
              (-[WebBookmarkSeparator initWithGroup:]): Removed obsolete
      	assertion that group is not nil.
              * Bookmarks.subproj/WebBookmarkLeaf.m:
              (-[WebBookmarkLeaf initWithTitle:group:]):
      	Removed a similar obsolete assertion here.
              * Bookmarks.subproj/WebBookmarkList.m:
              (-[WebBookmarkList initWithTitle:group:]):
      	Removed a similar obsolete assertion here.
      
      WebBrowser:
      
      	- fixed bug where new separator would not be scrolled
      	into view if necessary.
      
              * BookmarksController.m:
              (-[BookmarksController _focusOnNewlyCreatedBookmark:]):
      	Scroll to reveal new item.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6955e345
  6. 25 Aug, 2002 1 commit
    • darin's avatar
      - fixed 3032072 -- Crash on reload in DOM::DocumentImpl::~DocumentImpl [unified]() · ca9d1cdd
      darin authored
      	This was a tough one to debug.
      	Turned out to be a subtle bug in our new QConstString implementation.
      
              * kwq/KWQString.mm:
              (QStringData::makeAscii): Don't invalidate the Unicode buffer unless the ASCII
      	buffer is taking over the internal buffer from the Unicode. In other cases, it's
      	important not to invalidate the Unicode because it can result in the Unicode being
      	freed and re-created when unicode() is called, which is disastrous in the QConstString
      	case because we can't free the Unicode.
              (QStringData::makeUnicode): Make the corresponding change for ASCII too. In this
      	case, it's just an optimization, not a bug fix.
              (QString::insert), (QString::remove), (QString::fill), (QString::operator+=):
      	Mark the other string invalid whenever we modify either the ASCII or the Unicode
      	string. This was handled correctly for some operations before, but not all, and it
      	now matters because makeAscii and makeUnicode will now allow this state.
      
      	Fixed a separate QString problem; I think I may have introduced this one.
      
              * kwq/KWQString.mm:
              (QString::getNSString): Since by ASCII, we actually mean ISO Latin 1, we can't use
      	[NSString stringWithCString:]. Use CFStringCreateWithCString instead, pass
      	CFStringCreateWithCString as the encoding, and use autorelease. We shouldn't really
      	use the term ASCII in this class for the 8-bit-per-character buffer. Something more
      	like Latin1 would be a more accurate way to refer to it. Maybe I'll do that renaming
      	after talking to Richard about it on Monday.
      
      	Fixed a small storage leak.
      
              * khtml/css/css_valueimpl.cpp: (CSSPrimitiveValueImpl::cleanup): Added braces to
      	fix obviously-incorrect if/else grouping.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca9d1cdd
  7. 23 Aug, 2002 5 commits
    • darin's avatar
      WebKit: · 598f25f2
      darin authored
              * WebView.subproj/WebFrame.m: (-[WebFrame reset]): Remove unneeded call to _reset.
      
              * WebView.subproj/WebFramePrivate.m: (-[WebFrame _setDataSource:]): Add code that
      	removes the KHTML stuff from the frame when switching to another type of view.
      	It would be better to do this at some other level, but without this code, we end
      	up leaving the entire KHTMLView behind when we switch to a non-HTML page.
      
      WebBrowser:
      
      	Debugging tool to make it easy to reproduce problems like 3021018, where
      	a page transition happens while you are holding a menu down.
      
              * Debug/DebugUtilities.m:
              (-[DebugUtilities createDebugMenu]): Add "Go to about:blank Soon menu item".
              (-[BrowserDocument goToAboutBlankSoon:]): Implementation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      598f25f2
    • darin's avatar
      Got the kurl-test in the Tests directory working again. · 8c6ffe7d
      darin authored
              * kwq/KWQKURL.mm: (KURL::KURL): Fixed problem where relative path resolution code
      	for "../" could eat up the host name too, treating it as part of the path.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c6ffe7d
    • darin's avatar
      - fixed 3032058 -- Links on local developer doc pages all broken (all local files?) · e9604b12
      darin authored
              * kwq/KWQKURL.mm: (KURL::getNSURL): Re-added a workaround for CFURL bug 2908969.
      	We have to hack to make NSURL take "file:/" URLs.
      
              * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::nextKeyViewInFrame): Add a nil check.
      	I ran into this because my frame failed to load.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9604b12
    • mjs's avatar
      A few more KURL changes that reduce it down to background noise · 486188ee
      mjs authored
      	level.
      
      	For me this gave another 1-2% improvement on cvs-base.
      
              * kwq/kdecore/kurl.h:
              * kwq/KWQKURL.mm:
              (KURL::KURL): In the relative constructor, do all work in a char
      	array for the relative path case, and leave it up to ::parse to
      	create a QString.
              (KURL::parse): Do all work in a char array, only creating a
      	QString at the end if needed. Also, take an optional pointer to
      	the QString that the char * was created from, and if the final
      	processed URL is the same as the original, assign the original
      	instead of creating a new QString.
              (KURL::setProtocol): Adjust for prase() interface change.
              (KURL::setHost): Likewise.
              (KURL::setPort): Likewise.
              (KURL::setRef): Likewise.
              (KURL::setQuery): Likewise.
              (KURL::setPath): Likewise.
              (appendEscapingBadChars): Instead of taking and returning
      	a QString like the old escapeBadChars, copy from and write into
      	existing C string buffers.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      486188ee
    • darin's avatar
      * force-clean-timestamp: Without this, I crash on startup. · 7c4650bc
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c4650bc
  8. 22 Aug, 2002 2 commits
    • mjs's avatar
      top level: · 801d972b
      mjs authored
      	Fix test results to no longer reflect KURL or CFURL oddities that
      	we are not emulating.
      
              * Tests/kde/kurl-test.chk:
              * Tests/kde/kurl-test.cpp:
              (testURL): Replay mistaken n with \n.
      
      WebCore:
      
      	Brand new KURL implementation which avoids CFURL, CFString, and
      	all that other allocation-happy goodness and instead does as much
      	work as possible with raw ASCII buffers.
      
      	For me this gave a ~5% performance improvement on cvs-base.
      
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::hasPath):
              (KURL::protocol):
              (KURL::host):
              (KURL::port):
              (KURL::pass):
              (KURL::user):
              (KURL::ref):
              (KURL::query):
              (KURL::path):
              (KURL::setProtocol):
              (KURL::setHost):
              (KURL::setPort):
              (KURL::setRef):
              (KURL::setQuery):
              (KURL::setPath):
              (KURL::prettyURL):
              (KURL::decode_string):
              (escapeBadChars):
              (KURL::parse):
              (KURL::getNSURL):
              * kwq/kdecore/kurl.h:
              * khtml/khtml_part.cpp:
              (KHTMLPart::end): Don't call KURL::clearCaches() any more.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      801d972b
    • darin's avatar
      * kwq/KWQButton.mm: (QButton::~QButton): Disconnect the view · 5c0d1e03
      darin authored
      	from the widget by doing setTarget:nil.
              * kwq/KWQComboBox.mm: (QComboBox::~QComboBox): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c0d1e03