18 years agoWebKit:
sullivan [Mon, 29 Mar 2004 22:16:19 +0000 (22:16 +0000)]

        - some support for "Stealth Browsing"; add a preference that
        controls whether a history item is added when a page is visited.
        This is called "historyIsFrozen" for now, but I wouldn't be
        surprised to see this name change.

        Reviewed by Dave.

        * WebView.subproj/WebPreferencesPrivate.h:
        new historyIsFrozen, setHistoryIsFrozen: methods

        * WebView.subproj/WebPreferences.m:
        new WebKitHistoryIsFrozenPreferenceKey
        (+[WebPreferences initialize]):
        set initial value of WebKitHistoryIsFrozenPreferenceKey
        (-[WebPreferences setHistoryIsFrozen:]):
        set value of WebKitHistoryIsFrozenPreferenceKey
        (-[WebPreferences historyIsFrozen]):
        read value of WebKitHistoryIsFrozenPreferenceKey

        * WebView.subproj/WebFrame.m:
        (-[WebFrame _transitionToCommitted:]):
        don't add item to history if history is frozen


        A little progress on "Stealth Mode"

        Reviewed by Dave.

        * AppController.m:
        (-[AppController toggleStealthMode:]):
        replace use of StealthModePreferenceKey with new WebPreferences SPI call
        (-[AppController validateUserInterfaceItem:]):

        * PreferenceKeys.h:
        remove StealthModePreferenceKey

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6274 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoFix soft hyphen test.
hyatt [Mon, 29 Mar 2004 21:36:42 +0000 (21:36 +0000)]
Fix soft hyphen test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6273 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Followup fix. Handle the case where a hard line break occurs right after a soft...
hyatt [Mon, 29 Mar 2004 21:36:04 +0000 (21:36 +0000)]
Followup fix.  Handle the case where a hard line break occurs right after a soft hyphen.  In this
case we were losing a letter of the word in addition to not rendering the soft hyphen.

        Reviewed by kocienda

        * khtml/rendering/bidi.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6272 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoAdding soft hyphen layout test.
hyatt [Mon, 29 Mar 2004 20:09:48 +0000 (20:09 +0000)]
Adding soft hyphen layout test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6271 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3604154, support soft hyphens when rendering. This patch implements soft...
hyatt [Mon, 29 Mar 2004 20:07:45 +0000 (20:07 +0000)]
Fix for 3604154, support soft hyphens when rendering.  This patch implements soft hyphen support that
matches IE6 on Windows and Opera 7.  Soft hyphens that don't break lines end up getting collapsed away.
Only if the hyphen breaks a line does it render.

        Reviewed by kocienda

        * khtml/rendering/bidi.cpp:
        * khtml/rendering/render_text.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6270 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Made menu shortcuts work again when editing HTML
sullivan [Mon, 29 Mar 2004 16:38:26 +0000 (16:38 +0000)]
    Made menu shortcuts work again when editing HTML

        Reviewed by Darin.

        * khtml/xml/dom_elementimpl.cpp:
        Don't treat key events with command key down as
        editing events.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6269 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by John.
darin [Mon, 29 Mar 2004 16:17:22 +0000 (16:17 +0000)]
    Reviewed by John.

        - fixed <rdar://problem/3559178>: navigator.language always returns "en"

        * WebCoreSupport.subproj/WebViewFactory.m: (-[WebViewFactory defaultLanguageCode]):
        Call +[NSUserDefaults _web_preferredLanguageCode] rather than returning "en".

        * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6268 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by John.
darin [Mon, 29 Mar 2004 16:13:23 +0000 (16:13 +0000)]
    Reviewed by John.

        - fixed <rdar://problem/3602202>: "feed:uuid:...." links in Emerson content are being changed into "feed:uuuid:...."

        * kwq/KWQKURL.mm: (copyPathRemovingDots): Add special case for empty path. The old code had an
        assertion that explicitly allowed this case, but it copied a character from the src buffer,
        which was incorrect.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6267 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3600642, letter magnet demo doesn't update until mouse move. This patch...
hyatt [Sat, 27 Mar 2004 01:56:01 +0000 (01:56 +0000)]
Fix for 3600642, letter magnet demo doesn't update until mouse move.  This patch also fixes problems
with the animated text Gecko DOM demos on developer.netscape.com.  Make sure that timer callbacks via
setTimeout always updateRendering after executing the JS code.

        Reviewed by darin

        * khtml/ecma/kjs_window.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6266 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
sullivan [Fri, 26 Mar 2004 21:49:35 +0000 (21:49 +0000)]

        - fixed <rdar://problem/3576334>: Printing "empty" page gives print error,
        leaves browser window UI broken

        Reviewed by Dave.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView knowsPageRange:]):
        AppKit printing mechanism can't handle the case where you tell it there is
        nothing at all to print, so when we hit that case we give it a degenerate
        1-pixel rect to print. This prints a blank page (with correctly-placed
        header & footer if so configured), which matches other browsers' behavior for
        this page.

        * Plugins.subproj/npruntime.h:
        cvs keeps thinking I've removed a blank line from this auto-copied file.
        Richard said to just check it in to see if it stops doing this.


        fixed <rdar://problem/3603092>: "new folder" menu item is enabled but
        does nothing when current collection is history

        Reviewed by Dave.

        * BookmarksViewController.m:
        (-[BookmarksViewController newBookmarkFolder:]):
        If displayed contents can't accept new items, make a new collection
        even if outline view is focused.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6265 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago- change version number from 134 to 135u. the tree is open!
vicki [Fri, 26 Mar 2004 17:46:06 +0000 (17:46 +0000)]
- change version number from 134 to 135u.  the tree is open!

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago- Safari-134 stamp
vicki [Fri, 26 Mar 2004 17:42:41 +0000 (17:42 +0000)]
- Safari-134 stamp

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6262 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago - fixed the following bugs:
sullivan [Fri, 26 Mar 2004 14:22:51 +0000 (14:22 +0000)]
    - fixed the following bugs:

        <rdar://problem/3601630>: command-modified keypresses that would activate links are ignored by WebKit
        <rdar://problem/3601604>: WebActionModifierFlagsKey not set correctly for modified keypresses that activate links
        <rdar://problem/3544946>: cmd-return should open a link in a new tab

        Reviewed by Darin.

        * WebView.subproj/WebFrame.m:
        (-[WebFrame _actionInformationForNavigationType:event:originalURL:]):
        Pass modifier flags always, not just for mouse events. This fixes 3601604.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView performKeyEquivalent:]):
        Give the bridge a chance to intercept command-modified keypresses. This fixes 3601630.

        Together these two changes fix 3544946.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6261 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
hyatt [Fri, 26 Mar 2004 01:34:14 +0000 (01:34 +0000)]

Implement the rest of the search field.  Make it work with form submission.  Implement onscroll at
the document level.

        Reviewed by darin

        * khtml/html/html_formimpl.cpp:
        * khtml/rendering/render_form.cpp:
        * khtml/rendering/render_form.h:
        * kwq/KWQKHTMLPart.h:
        * kwq/KWQKHTMLPart.mm:
        * kwq/KWQLineEdit.h:
        * kwq/KWQLineEdit.mm:
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge sendScrollEvent]):
        * kwq/WebCoreViewFactory.h:


Implement the rest of the search field.

Implement onscroll at the document level.

        Reviewed by darin

        * English.lproj/Localizable.strings:
        * WebCoreSupport.subproj/WebBridge.m:
        * WebCoreSupport.subproj/WebViewFactory.m:
        (-[NSMenu addItemWithTitle:action:tag:]):
        (-[WebViewFactory submitButtonDefaultLabel]):
        (-[WebViewFactory cellMenuForSearchField]):
        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _frameOrBoundsChanged]):
        (-[WebHTMLView viewDidMoveToWindow]):
        * WebView.subproj/WebHTMLViewPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6260 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoOops, forget to commit this file.
rjw [Fri, 26 Mar 2004 01:32:51 +0000 (01:32 +0000)]
Oops, forget to commit this file.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6259 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Netscape plugin API header cleanup.
rjw [Thu, 25 Mar 2004 22:58:38 +0000 (22:58 +0000)]
Netscape plugin API header cleanup.

Replaced our hacked up version of npapi.h with the
"official SDK"  npapi.h.  Moved our changes to the new
npfunctions.h.  npfunctions.h really replaces what was defined in
the Netscape npupp.h header.  However, rather than use the "official SDK"
npupp.h I think the cleaner npfunctions.h is better. npupp.h actually
has a bunch of Mac classic specific stuff that is no longer needed.

Copied npruntime.h to WebKit using Ken's copy-o-matic mechanism.

Made npapi.h, npruntime.h, and npfunctions.h SPI.  With a bit
more consideration they will become API.  They will also eventually be made
available for other platforms/vendors are mozilla.org.

        Reviewed by Ken.

        * Plugins.subproj/WebBaseNetscapePluginStream.h:
        * Plugins.subproj/WebBaseNetscapePluginStream.m:
        (-[WebBaseNetscapePluginStream dealloc]):
        (-[WebBaseNetscapePluginStream startStreamWithURL:expectedContentLength:lastModifiedDate:MIMEType:]):
        * Plugins.subproj/WebBaseNetscapePluginView.h:
        * Plugins.subproj/WebNetscapePluginPackage.h:
        * Plugins.subproj/WebNetscapePluginPackage.m:
        (-[WebNetscapePluginPackage load]):
        * Plugins.subproj/npapi.h:
        * Plugins.subproj/npruntime.h: Added.
        * WebKit.pbproj/project.pbxproj:
        * copy-webcore-files-to-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6258 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3570700, crash in inlineBox::isDirty. Make sure line boxes null out parent...
hyatt [Thu, 25 Mar 2004 18:53:33 +0000 (18:53 +0000)]
Fix for 3570700, crash in inlineBox::isDirty.  Make sure line boxes null out parent pointers when those
parents get deleted.  r=john

Fix for .value not being settable on selects.  r=darin

        * khtml/html/html_formimpl.cpp:
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_line.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6257 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix by Kristin Webster, reviewed by me.
darin [Thu, 25 Mar 2004 17:52:19 +0000 (17:52 +0000)]
    Fix by Kristin Webster, reviewed by me.

        - fixed <rdar://problem/3582431>: HiDPI - Form elements not working when scaling factor != 1.0

        * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Pass nil for fromView
        rather than passing the top level view.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6256 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
darin [Wed, 24 Mar 2004 19:37:15 +0000 (19:37 +0000)]

        Reviewed by John.

        - fixed <rdar://problem/3566805>: REGRESSION: When the subject of mailto is 2 byte Safari failed to send mail address and subject to Mail.app

        * kwq/KWQKURL.mm: (KURL::findHostnamesInMailToURL): Update to handle hostnames that end just before
        a '?' since a '?' ends the entire part of the URL that can contain hostnames. Also change the logic so
        that the '?' will successfully end the search.


        Reviewed by John.

        - fixed <rdar://problem/3566805>: REGRESSION: When the subject of mailto is 2 byte Safari failed to send mail address and subject to Mail.app

        * Misc.subproj/WebNSURLExtras.m: (applyHostNameFunctionToMailToURLString): Update to handle hostnames
        that end just before a '?' since a '?' ends the entire part of the URL that can contain hostnames.
        Also change the logic so that the '?' will successfully end the search.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6255 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoTests:
darin [Wed, 24 Mar 2004 19:21:01 +0000 (19:21 +0000)]

        * TestURLs.h: Update comment to reflect change in behavior.
        * kde/kurl-relative-test.chk: Update results to reflect "compatibility" result.
        * kde/kurl-test.chk: Update results to reflect "compatibility" result.


        Reviewed by John.

        - fixed <rdar://problem/3599650>: main image missing due to incorrect relative URL resolution at www.brother.com

        * kwq/KWQKURL.mm: (KURL::KURL): Implement compatibility rule from the URI RFC.
        If a URL has a scheme, but does not start with the "/" character, and the scheme
        matches the base URL, then treat it as a relative URL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6254 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by me
kocienda [Wed, 24 Mar 2004 19:16:06 +0000 (19:16 +0000)]
    Reviewed by me

        * DOM.subproj/DOMHTML.h: Checking in copied over version of
modified file.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6253 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by me.
kocienda [Wed, 24 Mar 2004 18:31:58 +0000 (18:31 +0000)]
    Reviewed by me.

I neglected to check in these required changes when I landed previously.
This is what I get for trying to commit when I had other changes in
my tree.

        * khtml/dom/html_form.cpp:
        (HTMLSelectElement::add): Uses new-style call.
        * khtml/html/html_formimpl.cpp:
        (HTMLSelectElementImpl::add): Change the interface for this call to use
impl objects instead of API objects. This works around the fact that the
API object's constructor that takes an impl is protected.
        * khtml/html/html_formimpl.h: Uses new-style call.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6252 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Implemented the remainder of the HTML DOM API.
kocienda [Wed, 24 Mar 2004 16:23:00 +0000 (16:23 +0000)]
    Implemented the remainder of the HTML DOM API.

        Reviewed by Chris.

        * kwq/DOMHTML.h
        * kwq/HTMLDOM.mm

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6251 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3487207, implement onscroll DOM event for elements with overflow:auto/scroll...
hyatt [Wed, 24 Mar 2004 00:56:56 +0000 (00:56 +0000)]
Fix for 3487207, implement onscroll DOM event for elements with overflow:auto/scroll/hidden.  This does
not handle firing onscroll on the window when the document scrolls, nor does it handle firing onscroll
on textareas.  These are two separate bugs.

This patch finishes stubbing out the onscroll event and adds support for it to the DOM.  It also supports
the firing of the event when overflow blocks scroll.

        Reviewed by darin

        * khtml/ecma/kjs_dom.cpp:
        * khtml/ecma/kjs_dom.h:
        * khtml/ecma/kjs_dom.lut.h:
        * khtml/ecma/kjs_window.cpp:
        * khtml/ecma/kjs_window.h:
        * khtml/ecma/kjs_window.lut.h:
        * khtml/html/html_baseimpl.cpp:
        * khtml/html/html_elementimpl.cpp:
        * khtml/misc/htmlattrs.c:
        * khtml/misc/htmlattrs.h:
        * khtml/misc/htmlattrs.in:
        * khtml/rendering/render_layer.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6250 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Added implementation of KJS::Value <-> NP_Object conversion functions.
rjw [Tue, 23 Mar 2004 23:21:03 +0000 (23:21 +0000)]
Added implementation of KJS::Value <-> NP_Object conversion functions.
Augmented test program for 'C' bindings.
Added asserts and parameter checking to all public API.

        Reviewed by Ken.

        * JavaScriptCore.pbproj/project.pbxproj:
        * bindings/NP_jsobject.cpp:
        * bindings/NP_jsobject.h: Added.
        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:
        * bindings/c/c_instance.cpp:
        * bindings/c/c_utility.cpp:
        * bindings/c/c_utility.h:
        * bindings/test.js:
        * bindings/testC.js: Added.
        * bindings/testbindings.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6249 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3513627, HTML mail prints upside down occasionally. Change printing so...
hyatt [Tue, 23 Mar 2004 22:56:12 +0000 (22:56 +0000)]
Fix for 3513627, HTML mail prints upside down occasionally.  Change printing so that it never resizes the
        WebHTMLView when formatting for printing.  When computing page rects, instead of using the view's bounds,
        use the root layer's width instead.

        Reviewed by darin

        * khtml/khtmlview.cpp:
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6248 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3513627, HTML mail prints upside down occasionally. Change printing so...
hyatt [Tue, 23 Mar 2004 22:55:35 +0000 (22:55 +0000)]
Fix for 3513627, HTML mail prints upside down occasionally.  Change printing so that it never resizes the
WebHTMLView when formatting for printing.  When computing page rects, instead of using the view's bounds,
use the root layer's width instead.

        Reviewed by darin

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView knowsPageRange:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6247 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for crasher 3598204, previousKeyView was calling nextKeyView instead.
hyatt [Tue, 23 Mar 2004 21:05:38 +0000 (21:05 +0000)]
Fix for crasher 3598204, previousKeyView was calling nextKeyView instead.

        Reviewed by darin

        * kwq/KWQTextField.mm:
        (-[KWQTextField previousKeyView]):
        (-[KWQSecureTextField previousKeyView]):
        (-[KWQSearchField previousKeyView]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6246 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Vicki.
vicki [Tue, 23 Mar 2004 19:04:13 +0000 (19:04 +0000)]
    Reviewed by Vicki.

        - fixed deployment build

        * kwq/KWQLineEdit.mm: (QLineEdit::QLineEdit): Move view initializer inside
        block with exceptions blocked.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6245 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Wire up NSSearchField to WebCore. Add support for placeholder strings, autosaving...
hyatt [Tue, 23 Mar 2004 02:40:03 +0000 (02:40 +0000)]
Wire up NSSearchField to WebCore.  Add support for placeholder strings, autosaving of recent items, the ability to show/hide
the magnifying glass search button, the ability to specify the maximum number of results, the ability to specify an incremental
search or not, etc.  Added a DOM event that fires when the search field indicates that search results should be updated.

        Reviewed by darin

        * khtml/ecma/kjs_dom.cpp:
        * khtml/ecma/kjs_dom.h:
        * khtml/ecma/kjs_dom.lut.h:
        * khtml/ecma/kjs_window.cpp:
        * khtml/ecma/kjs_window.h:
        * khtml/ecma/kjs_window.lut.h:
        * khtml/html/html_formimpl.cpp:
        * khtml/html/html_formimpl.h:
        * khtml/misc/htmlattrs.c:
        * khtml/misc/htmlattrs.h:
        * khtml/misc/htmlattrs.in:
        * khtml/rendering/render_form.cpp:
        * khtml/rendering/render_form.h:
        * khtml/xml/dom2_eventsimpl.cpp:
        * khtml/xml/dom2_eventsimpl.h:
        * kwq/KWQLineEdit.h:
        * kwq/KWQLineEdit.mm:
        * kwq/KWQSlot.mm:
        * kwq/KWQTextField.mm:
        (-[KWQTextFieldController initWithTextField:QLineEdit:]):
        (-[KWQTextFieldController invalidate]):
        (-[KWQTextFieldController action:]):
        (-[KWQTextFieldController controlTextDidBeginEditing:]):
        (-[KWQTextFieldController controlTextDidEndEditing:]):
        (-[KWQTextFieldController controlTextDidChange:]):
        (-[KWQTextFieldController control:textShouldBeginEditing:]):
        (-[KWQTextFieldController control:textShouldEndEditing:]):
        (-[KWQTextFieldController control:didFailToFormatString:errorDescription:]):
        (-[KWQTextFieldController control:didFailToValidatePartialString:errorDescription:]):
        (-[KWQTextFieldController control:isValidObject:]):
        (-[KWQTextFieldController control:textView:doCommandBySelector:]):
        (-[KWQTextFieldController textChanged]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6244 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Factoring of form control code to enable sharing between three types of text fields...
hyatt [Tue, 23 Mar 2004 00:17:26 +0000 (00:17 +0000)]
Factoring of form control code to enable sharing between three types of text fields: normal, password, and
the new search field.  Also made search field creatable using <input type="search">.  There are still many
bugs with the field, but you can at least type in it and submit it with a form.

        Reviewed by darin

        * khtml/html/html_formimpl.cpp:
        * khtml/html/html_formimpl.h:
        * khtml/rendering/render_form.cpp:
        * kwq/KWQKLineEdit.h:
        * kwq/KWQLineEdit.h:
        * kwq/KWQLineEdit.mm:
        * kwq/KWQTextField.h:
        * kwq/KWQTextField.mm:
        (-[KWQTextFieldController initWithTextField:QLineEdit:]):
        (-[KWQTextFieldController action:]):
        (-[KWQTextFieldController dealloc]):
        (-[KWQTextFieldController widget]):
        (-[KWQTextFieldController setMaximumLength:]):
        (-[KWQTextFieldController controlTextDidBeginEditing:]):
        (-[KWQTextFieldController controlTextDidEndEditing:]):
        (-[KWQTextFieldController controlTextDidChange:]):
        (-[KWQTextFieldController control:textShouldBeginEditing:]):
        (-[KWQTextFieldController control:textShouldEndEditing:]):
        (-[KWQTextFieldController control:didFailToFormatString:errorDescription:]):
        (-[KWQTextFieldController control:didFailToValidatePartialString:errorDescription:]):
        (-[KWQTextFieldController control:isValidObject:]):
        (-[KWQTextFieldController control:textView:doCommandBySelector:]):
        (-[KWQTextFieldController textChanged]):
        (-[KWQTextFieldController setInDrawingMachinery:]):
        (-[KWQTextFieldController textView:shouldDrawInsertionPointInRect:color:turnedOn:]):
        (-[KWQTextFieldController textView:shouldHandleEvent:]):
        (-[KWQTextFieldController textView:didHandleEvent:]):
        (-[KWQTextFieldController setBaseWritingDirection:]):
        (-[KWQTextFieldController baseWritingDirection]):
        (-[KWQTextFieldController selectedRange]):
        (-[KWQTextFieldController setSelectedRange:]):
        (-[KWQTextFieldController setHasFocus:]):
        (-[KWQTextFieldController updateTextAttributes:]):
        (+[KWQTextField cellClass]):
        (-[KWQTextField initWithQLineEdit:]):
        (-[KWQTextField dealloc]):
        (-[KWQTextField controller]):
        (-[KWQTextField widget]):
        (-[KWQTextField selectText:]):
        (-[KWQTextField setStringValue:]):
        (-[KWQTextField nextKeyView]):
        (-[KWQTextField previousKeyView]):
        (-[KWQTextField nextValidKeyView]):
        (-[KWQTextField previousValidKeyView]):
        (-[KWQTextField acceptsFirstResponder]):
        (-[KWQTextField display]):
        (-[KWQTextField displayRectIgnoringOpacity:]):
        (-[KWQTextField textView:shouldDrawInsertionPointInRect:color:turnedOn:]):
        (-[KWQTextField textView:shouldHandleEvent:]):
        (-[KWQTextField textView:didHandleEvent:]):
        (-[KWQTextFieldCell editWithFrame:inView:editor:delegate:event:]):
        (-[KWQTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]):
        (-[KWQTextFieldCell _textAttributes]):
        (-[KWQSecureTextField initWithQLineEdit:]):
        (-[KWQSecureTextField dealloc]):
        (-[KWQSecureTextField controller]):
        (-[KWQSecureTextField widget]):
        (-[KWQSecureTextField setStringValue:]):
        (-[KWQSecureTextField nextKeyView]):
        (-[KWQSecureTextField previousKeyView]):
        (-[KWQSecureTextField acceptsFirstResponder]):
        (-[KWQSecureTextField display]):
        (-[KWQSecureTextField displayRectIgnoringOpacity:]):
        (-[KWQSecureTextField textView:shouldDrawInsertionPointInRect:color:turnedOn:]):
        (-[KWQSecureTextField textView:shouldHandleEvent:]):
        (-[KWQSecureTextField textView:didHandleEvent:]):
        (-[KWQSecureTextField selectText:]):
        (-[KWQSecureTextFieldCell editWithFrame:inView:editor:delegate:event:]):
        (-[KWQSecureTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]):
        (-[KWQSecureTextFieldCell _textAttributes]):
        (+[KWQSearchField cellClass]):
        (-[KWQSearchField initWithQLineEdit:]):
        (-[KWQSearchField dealloc]):
        (-[KWQSearchField controller]):
        (-[KWQSearchField widget]):
        (-[KWQSearchField selectText:]):
        (-[KWQSearchField setStringValue:]):
        (-[KWQSearchField nextKeyView]):
        (-[KWQSearchField previousKeyView]):
        (-[KWQSearchField nextValidKeyView]):
        (-[KWQSearchField previousValidKeyView]):
        (-[KWQSearchField acceptsFirstResponder]):
        (-[KWQSearchField display]):
        (-[KWQSearchField displayRectIgnoringOpacity:]):
        (-[KWQSearchField textView:shouldDrawInsertionPointInRect:color:turnedOn:]):
        (-[KWQSearchField textView:shouldHandleEvent:]):
        (-[KWQSearchField textView:didHandleEvent:]):
        (-[KWQSearchFieldCell editWithFrame:inView:editor:delegate:event:]):
        (-[KWQSearchFieldCell selectWithFrame:inView:editor:delegate:start:length:]):
        (-[KWQSearchFieldCell _textAttributes]):
        (-[KWQTextFieldFormatter init]):
        (-[KWQTextFieldFormatter setMaximumLength:]):
        (-[KWQTextFieldFormatter maximumLength]):
        (-[KWQTextFieldFormatter stringForObjectValue:]):
        (-[KWQTextFieldFormatter getObjectValue:forString:errorDescription:]):
        (-[KWQTextFieldFormatter isPartialStringValid:newEditingString:errorDescription:]):
        (-[KWQTextFieldFormatter attributedStringForObjectValue:withDefaultAttributes:]):
        (-[NSString _KWQ_truncateToNumComposedCharacterSequences:]):
        (-[NSTextField _KWQ_currentEditor]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6243 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agochanged version number from '133' to '134u'. The tree is open!
vicki [Fri, 19 Mar 2004 23:31:11 +0000 (23:31 +0000)]
changed version number from '133' to '134u'.  The tree is open!

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6242 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago- Safari-133 stamp
vicki [Fri, 19 Mar 2004 23:27:33 +0000 (23:27 +0000)]
- Safari-133 stamp

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6240 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Ken.
darin [Fri, 19 Mar 2004 16:40:43 +0000 (16:40 +0000)]
    Reviewed by Ken.

        - fixed problem with methods like setUTCHour

        * kjs/date_object.cpp: (DateProtoFuncImp::call): Fix conversion back to time_t to use the appropriate
        GMT vs. local time function based on the utc flag.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6239 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Ken.
darin [Fri, 19 Mar 2004 16:40:19 +0000 (16:40 +0000)]
    Reviewed by Ken.

        - fixed <rdar://problem/3583945>: crash when choosing a file to upload

        * kwq/KWQFileButton.mm:
        (-[KWQFileButtonAdapter dealloc]): Removed unneeded method.
        (-[KWQFileButtonAdapter filenameChanged:]): Check for nil.
        (-[KWQFileButtonAdapter focusChanged:]): Ditto.
        (-[KWQFileButtonAdapter clicked]): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6238 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Expose ageLimitDate so that the autocomplete code can access it.
hyatt [Wed, 17 Mar 2004 22:19:18 +0000 (22:19 +0000)]
Expose ageLimitDate so that the autocomplete code can access it.

        Reviewed by john

        * History.subproj/WebHistory.m:
        (-[WebHistory ageLimitDate]):
        * History.subproj/WebHistoryPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6237 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Added a context parameter (supplied by client) to result callbacks use by JavaScript...
rjw [Wed, 17 Mar 2004 21:33:25 +0000 (21:33 +0000)]
Added a context parameter (supplied by client) to result callbacks use by JavaScriptObject functions.  This was a change requested by Eric Carlson on the QT plugin team.

        Reviewed by Ken.

        * bindings/NP_jsobject.cpp:
        * bindings/NP_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6236 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed 3591667. Plugin view is added to view hierarchy before calling init.
rjw [Wed, 17 Mar 2004 21:06:32 +0000 (21:06 +0000)]
Fixed 3591667.  Plugin view is added to view hierarchy before calling init.

        Reviewed by Ken.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView addSubview:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6235 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by John.
darin [Wed, 17 Mar 2004 20:01:04 +0000 (20:01 +0000)]
    Reviewed by John.

        - fixed rdar://problem/3312803>: extra space in copied text (3g.co.uk)

        * khtml/khtml_part.cpp: (KHTMLPart::text): Explicitly set neededSpace to false after
        processing a line break. Doesn't really have an effect here, but matches the change
        to the styled text version.
        * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::attributedString): Same change in the styled
        text version.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6234 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by NOBODY (OOPS!).
darin [Wed, 17 Mar 2004 19:47:35 +0000 (19:47 +0000)]
    Reviewed by NOBODY (OOPS!).

        - fixed rdar://problem/3312803>: extra space in copied text (3g.co.uk)

        * khtml/khtml_part.cpp: (KHTMLPart::text): Explicitly set neededSpace to false after
        processing a line break. Doesn't really have an effect here, but matches the change
        to the styled text version.
        * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::attributedString): Same change in the styled
        text version.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6233 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
darin [Tue, 16 Mar 2004 19:55:07 +0000 (19:55 +0000)]

        Reviewed by Ken.

        - a little more DOM cleanup

        * kwq/DOM-CSS.mm: Added DOMCSSUnknownRule.
        * kwq/DOM.mm: Split category implementations out to match category interfaces.
        * kwq/DOMHTML.h: Removed lowSrc, not in DOM Level 2. Added a category for some
        extensions we'll want on DOMElement.
        * kwq/DOMInternal.h: Moved _documentImpl method here so it can be used from
        separate categories.
        * kwq/DOMRange.h: Changed DOMDocumentRange to a category from a protocol.
        * kwq/HTMLDOM.mm: Removed unneeded methods.

        * WebCore.pbproj/project.pbxproj: Sort DOM header files alphabetically.


        * DOM.subproj/DOMHTML.h: Updated from WebCore.
        * DOM.subproj/DOMRange.h: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6232 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed 3590169. Regression (crash) caused by the switch to MethodLists. Crash when...
rjw [Tue, 16 Mar 2004 19:40:45 +0000 (19:40 +0000)]
Fixed 3590169.  Regression (crash) caused by the switch to MethodLists.  Crash when attempting to invoke a method from JavaScript to Java that is not implemented.

        Reviewed by John.

        * bindings/jni/jni_class.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6231 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
darin [Tue, 16 Mar 2004 18:35:20 +0000 (18:35 +0000)]

        Reviewed by Ken.

        - update for new DOM namespacing and header organization

        * WebCore.pbproj/project.pbxproj:
        * kwq/DOM-CSS.h: Removed.
        * kwq/DOM-CSS.mm: Update for name changes.
        * kwq/DOM.h: Changed to include the other DOM headers.
        * kwq/DOM.mm: Update for name changes.
        * kwq/DOMCSS.h: Added.
        * kwq/DOMCore.h: Added.
        * kwq/DOMEvents.h: Added.
        * kwq/DOMHTML.h: Added.
        * kwq/DOMInternal.h: Update for name changes.
        * kwq/DOMRange.h: Added.
        * kwq/DOMStylesheets.h: Added.
        * kwq/DOMTraversal.h: Added.
        * kwq/DOMViews.h: Added.
        * kwq/HTMLDOM.h: Removed.
        * kwq/HTMLDOM.mm: Update for name changes; add some missing setters.


        Reviewed by Ken.

        - update for new DOM namespacing and header organization

        * DOM.subproj/DOM.h: Changed to include the other DOM headers.
        * DOM.subproj/DOMCSS.h: Added.
        * DOM.subproj/DOMCore.h: Added.
        * DOM.subproj/DOMEvents.h: Added.
        * DOM.subproj/DOMHTML.h: Added.
        * DOM.subproj/DOMRange.h: Added.
        * DOM.subproj/DOMStylesheets.h: Added.
        * DOM.subproj/DOMTraversal.h: Added.
        * DOM.subproj/DOMViews.h: Added.
        * WebKit.pbproj/project.pbxproj: Added new files.

        * WebView.subproj/WebDefaultEditingDelegate.m:
        (-[WebDefaultEditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]):
        (-[WebDefaultEditingDelegate webView:shouldChangeTypingStyle:toStyle:]):
        Change class names from CSS to DOMCSS.
        * WebView.subproj/WebViewPrivate.h: Ditto.

        * copy-webcore-files-to-webkit: Add new files.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6230 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Darin.
mjs [Tue, 16 Mar 2004 05:08:16 +0000 (05:08 +0000)]
    Reviewed by Darin.

- max out our iBench cheat. Don't even paint or lay out a quarter
of the pages.

        * khtml/xml/dom_docimpl.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6229 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed 3570854. Don't attempt to convert Null to strings. We
rjw [Mon, 15 Mar 2004 22:10:27 +0000 (22:10 +0000)]
Fixed 3570854.  Don't attempt to convert Null to strings.  We
were incorrectly converting to "Null".

Actually fixed by Scott Kovatch.

        Reviewed by Richard.

        * bindings/jni/jni_utility.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6228 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
kocienda [Mon, 15 Mar 2004 22:09:16 +0000 (22:09 +0000)]

        Reviewed by John

        Fix for this bug:

        <rdar://problem/3588717>: REGRESSION (125-131u): Tabbing to links and tabbing in bookmarks view no longer works

        Change some support methods which feed editing key events to
        WebKit. The real fix is on the WebKit side.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::editingKeyEvent): Call new -editingKeyDown:
        on WebCoreBridge, as described below.
        * kwq/WebCoreBridge.h: Changed -keyDown: to -editingKeyDown:
        since we want to tell WebView about editing key events
        in a way that does not interfere with other key down
        events the WebView processes. This is not necessary in the
        strictest sense, but it seems reasonable to keep the
        terminology clear.


        Reviewed by John

        Fix for this bug:

        <rdar://problem/3588717>: REGRESSION (125-131u): Tabbing to links and tabbing in bookmarks view no longer works

        WebView can't lay claim to -keyDown: just for editing events, as
        this gets in the way of tab processing. The solution is to give
        WebView a private method for processing editing key events fed to
        it from over the bridge, and leave -keyDown: unimplemented.

        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge editingKeyDown:]): Changed from -keyDown: to keep
        terminology consistent with renamed WebView -editingKeyDown: method.
        * WebView.subproj/WebView.m:
        (-[WebView editingKeyDown:]): Give WebView a method to handle
        editing key events in a way that does not interfere with other key down
        events it processes.
        * WebView.subproj/WebViewPrivate.h: Declare -editingKeyDown: method.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6227 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agochange version number from '132' to '133u'. the tree is open for business.
vicki [Mon, 15 Mar 2004 22:04:56 +0000 (22:04 +0000)]
change version number from '132' to '133u'.  the tree is open for business.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6226 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoSafari-132 stamp
vicki [Mon, 15 Mar 2004 22:00:37 +0000 (22:00 +0000)]
Safari-132 stamp

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6224 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
darin [Mon, 15 Mar 2004 18:37:51 +0000 (18:37 +0000)]
    * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6223 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Ken.
darin [Sat, 13 Mar 2004 01:04:54 +0000 (01:04 +0000)]
    Reviewed by Ken.

        - fixed <rdar://problem/3433887>: copied &nbsp; characters remain non-breaking spaces; other browsers give normal spaces

        * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _writeSelectionToPasteboard:]):
        Convert non-breaking spaces to the normal kind in the plain text part of the pasteboard.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6222 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Implemented ~25% of the HTML DOM API.
cblu [Fri, 12 Mar 2004 21:59:52 +0000 (21:59 +0000)]
Implemented ~25% of the HTML DOM API.

        Reviewed by kocienda.

        * kwq/DOM.mm:
        * kwq/DOMInternal.h:
        * kwq/HTMLDOM.h:
        * kwq/HTMLDOM.mm:
        (-[HTMLCollection _initWithCollectionImpl:]):
        (+[HTMLCollection _collectionWithImpl:]):
        (-[HTMLCollection _collectionImpl]):
        (-[HTMLCollection length]):
        (-[HTMLCollection item:]):
        (-[HTMLCollection namedItem:]):
        (-[HTMLElement _initWithElementImpl:]):
        (+[HTMLElement _elementWithImpl:]):
        (-[HTMLElement _HTMLElementImpl]):
        (-[HTMLElement idName]):
        (-[HTMLElement setIdName:]):
        (-[HTMLElement title]):
        (-[HTMLElement setTitle:]):
        (-[HTMLElement lang]):
        (-[HTMLElement setLang:]):
        (-[HTMLElement dir]):
        (-[HTMLElement setDir:]):
        (-[HTMLElement className]):
        (-[HTMLElement setClassName:]):
        (-[HTMLDocument _HTMLDocumentImpl]):
        (-[HTMLDocument title]):
        (-[HTMLDocument setTitle:]):
        (-[HTMLDocument referrer]):
        (-[HTMLDocument domain]):
        (-[HTMLDocument URL]):
        (-[HTMLDocument body]):
        (-[HTMLDocument images]):
        (-[HTMLDocument applets]):
        (-[HTMLDocument links]):
        (-[HTMLDocument forms]):
        (-[HTMLDocument anchors]):
        (-[HTMLDocument setBody:]):
        (-[HTMLDocument cookie]):
        (-[HTMLDocument setCookie:]):
        (-[HTMLDocument open]):
        (-[HTMLDocument close]):
        (-[HTMLDocument write:]):
        (-[HTMLDocument writeln:]):
        (-[HTMLDocument getElementById:]):
        (-[HTMLDocument getElementsByName:]):
        (-[HTMLHtmlElement _HTMLHtmlElementImpl]):
        (-[HTMLHtmlElement version]):
        (-[HTMLHtmlElement setVersion:]):
        (-[HTMLHeadElement _headElementImpl]):
        (-[HTMLHeadElement profile]):
        (-[HTMLHeadElement setProfile:]):
        (-[HTMLLinkElement _linkElementImpl]):
        (-[HTMLLinkElement disabled]):
        (-[HTMLLinkElement setDisabled:]):
        (-[HTMLLinkElement charset]):
        (-[HTMLLinkElement setCharset:]):
        (-[HTMLLinkElement href]):
        (-[HTMLLinkElement setHref:]):
        (-[HTMLLinkElement hreflang]):
        (-[HTMLLinkElement setHreflang:]):
        (-[HTMLLinkElement media]):
        (-[HTMLLinkElement setMedia:]):
        (-[HTMLLinkElement rel]):
        (-[HTMLLinkElement setRel:]):
        (-[HTMLLinkElement rev]):
        (-[HTMLLinkElement setRev:]):
        (-[HTMLLinkElement target]):
        (-[HTMLLinkElement setTarget:]):
        (-[HTMLLinkElement type]):
        (-[HTMLLinkElement setType:]):
        (-[HTMLTitleElement _titleElementImpl]):
        (-[HTMLTitleElement text]):
        (-[HTMLTitleElement setText:]):
        (-[HTMLMetaElement _metaElementImpl]):
        (-[HTMLMetaElement content]):
        (-[HTMLMetaElement setContent:]):
        (-[HTMLMetaElement httpEquiv]):
        (-[HTMLMetaElement setHttpEquiv:]):
        (-[HTMLMetaElement name]):
        (-[HTMLMetaElement setName:]):
        (-[HTMLMetaElement scheme]):
        (-[HTMLMetaElement setScheme:]):
        (-[HTMLBaseElement _baseElementImpl]):
        (-[HTMLBaseElement href]):
        (-[HTMLBaseElement setHref:]):
        (-[HTMLBaseElement target]):
        (-[HTMLBaseElement setTarget:]):
        (-[HTMLStyleElement _styleElementImpl]):
        (-[HTMLStyleElement disabled]):
        (-[HTMLStyleElement setDisabled:]):
        (-[HTMLStyleElement media]):
        (-[HTMLStyleElement setMedia:]):
        (-[HTMLStyleElement type]):
        (-[HTMLStyleElement setType:]):
        (-[HTMLBodyElement _bodyElementImpl]):
        (-[HTMLBodyElement aLink]):
        (-[HTMLBodyElement setALink:]):
        (-[HTMLBodyElement background]):
        (-[HTMLBodyElement setBackground:]):
        (-[HTMLBodyElement bgColor]):
        (-[HTMLBodyElement setBgColor:]):
        (-[HTMLBodyElement link]):
        (-[HTMLBodyElement setLink:]):
        (-[HTMLBodyElement text]):
        (-[HTMLBodyElement setText:]):
        (-[HTMLBodyElement vLink]):
        (-[HTMLBodyElement setVLink:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6221 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for problem when undoing the deletion of a word in edit mode.
hyatt [Fri, 12 Mar 2004 21:21:04 +0000 (21:21 +0000)]
Fix for problem when undoing the deletion of a word in edit mode.

        Reviewed by kocienda

        * khtml/rendering/render_text.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6220 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
kocienda [Fri, 12 Mar 2004 19:27:19 +0000 (19:27 +0000)]

        Reviewed by Chris

        * khtml/khtml_part.cpp:
        (KHTMLPart::handleMouseMoveEventSelection): Clear the selection's
        "modify bias" since the user clicked, and is therefore no longer
        extending the selection with arrow keys.
        * khtml/khtml_selection.cpp:
        (KHTMLSelection::KHTMLSelection): Add new m_modifyBiasSet flag.
        (KHTMLSelection::init): Set the flag to false by default.
        (KHTMLSelection::operator=): Copy over the value of the new m_modifyBiasSet flag.
        (KHTMLSelection::modify): Set the flag if extending the selection and set the
        base and extent nodes based on the movement direction requested.
        * khtml/khtml_selection.h:
        * kwq/WebCoreBridge.h: See below.
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge rangeByAlteringCurrentSelection:direction:granularity:]): This
        method is used by the WebKit side in response to requests to change the selection
        using the arrow keys. It used to be called rangeByModifyingRange:alteration:direction:granularity:
        but I changed it to this new format since I explicitly want to use the current selection, and
        not some arbitrarily passed in selection. This helps to maintain the "modify bias" correctly.
        (-[WebCoreBridge alterCurrentSelection:direction:granularity:]): New method. A command to alter
        the current selection as given. Again, applying the command to the current selection, rather
        than just setting the selection to a new one, helps to maintain the "modify bias" correctly.


        Reviewed by Chris

        * WebView.subproj/WebView.m:
        (-[WebView _alterCurrentSelection:direction:granularity:]): Changed name from
        _alterSelection:direction:granularity: to give a little extra clarity. Also, the
        body calls through to renamed rangeByAlteringCurrentSelection:direction:granularity:
        in WebCore.
        (-[WebView moveRight:]): Now calls renamed _alterCurrentSelection:direction:granularity:.
        (-[WebView moveRightAndModifySelection:]): Ditto.
        (-[WebView moveLeft:]): Ditto.
        (-[WebView moveLeftAndModifySelection:]): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6219 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago - fixed the following bugs:
sullivan [Fri, 12 Mar 2004 19:20:59 +0000 (19:20 +0000)]
    - fixed the following bugs:
        <rdar://problem/3584028>: Consider disallowing "View Source" for inline error pages
        <rdar://problem/3584029>: "View Source" for inline error pages shows URL of "about:blank"
        <rdar://problem/3584272>: Location field should be focused after a page-load error page is displayed
        <rdar://problem/3586611>: REGRESSION (128): After option-pressing b/f button, selecting a menu item downloads it
        - simplified some code

        Reviewed by Chris.

        * BrowserDocument.h:
        * BrowserDocument.m:
        removed goBack: and goForward:; all callers now use these methods on
        BrowserWindowController instead.
        (-[BrowserDocument goToItemInBackOrForwardMenu:]):
        renamed from goToItem: for clarity, now ignores the Option key to avoid
        downloading when the user pressed Option to see URLs in the menu
        (-[BrowserDocument _addItem:toMenu:]):
        updated for name change
        (-[BrowserDocument canViewSource]):
        new method, extracted from validateUserInterfaceItem. Now also returns NO
        if the current page is an error page.
        (-[BrowserDocument validateUserInterfaceItem:]):
        now calls extracted method
        (-[BrowserDocument viewSource:]):
        now bails out early if canViewSource returns NO
        * BrowserWindowController.m:
        (-[BrowserWindowController webFrameLoadCommitted:]):
        if we're showing an error page now, move focus to location field (rather
        than webview as in the normal case)

        * Test/PageLoadTestRunner.m:
        (-[PageLoadTestRunner goBack]):
        call through browserWindowController; this was the only remaining caller of
        -[BrowserDocument goBack:] or -[BrowserDocument goForward:]

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6218 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Workaround for 3585644. Force the window number of the
rjw [Fri, 12 Mar 2004 01:58:05 +0000 (01:58 +0000)]
Workaround for 3585644.  Force the window number of the
mouse moved event to be correct.

        Reviewed by Chris.

        * Carbon.subproj/CarbonWindowFrame.m:
        * Carbon.subproj/HIWebView.m:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6215 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Added stubs for the HTML DOM API.
cblu [Fri, 12 Mar 2004 01:56:03 +0000 (01:56 +0000)]
Added stubs for the HTML DOM API.

        Reviewed by rjw.

        * WebCore.pbproj/project.pbxproj:
        * kwq/HTMLDOM.h: Added.
        * kwq/HTMLDOM.mm: Added.
        (-[HTMLCollection length]):
        (-[HTMLCollection item:]):
        (-[HTMLCollection namedItem:]):
        (-[HTMLElement idName]):
        (-[HTMLElement setIdName:]):
        (-[HTMLElement title]):
        (-[HTMLElement setTitle:]):
        (-[HTMLElement lang]):
        (-[HTMLElement setLang:]):
        (-[HTMLElement dir]):
        (-[HTMLElement setDir:]):
        (-[HTMLElement className]):
        (-[HTMLElement setClassName:]):
        (-[HTMLDocument title]):
        (-[HTMLDocument setTitle:]):
        (-[HTMLDocument referrer]):
        (-[HTMLDocument domain]):
        (-[HTMLDocument URL]):
        (-[HTMLDocument body]):
        (-[HTMLDocument images]):
        (-[HTMLDocument applets]):
        (-[HTMLDocument links]):
        (-[HTMLDocument forms]):
        (-[HTMLDocument anchors]):
        (-[HTMLDocument setBody:]):
        (-[HTMLDocument cookie]):
        (-[HTMLDocument setCookie:]):
        (-[HTMLDocument open]):
        (-[HTMLDocument close]):
        (-[HTMLDocument write:]):
        (-[HTMLDocument writeln:]):
        (-[HTMLDocument getElementById:]):
        (-[HTMLDocument getElementsByName:]):
        (-[HTMLHtmlElement version]):
        (-[HTMLHtmlElement setVersion:]):
        (-[HTMLHeadElement profile]):
        (-[HTMLHeadElement setProfile:]):
        (-[HTMLLinkElement disabled]):
        (-[HTMLLinkElement setDisabled:]):
        (-[HTMLLinkElement charset]):
        (-[HTMLLinkElement setCharset:]):
        (-[HTMLLinkElement href]):
        (-[HTMLLinkElement setHref:]):
        (-[HTMLLinkElement hreflang]):
        (-[HTMLLinkElement setHreflang:]):
        (-[HTMLLinkElement media]):
        (-[HTMLLinkElement setMedia:]):
        (-[HTMLLinkElement rel]):
        (-[HTMLLinkElement setRrevel:]):
        (-[HTMLLinkElement rev]):
        (-[HTMLLinkElement setRev:]):
        (-[HTMLLinkElement target]):
        (-[HTMLLinkElement setTarget:]):
        (-[HTMLLinkElement type]):
        (-[HTMLLinkElement setType:]):
        (-[HTMLTitleElement text]):
        (-[HTMLTitleElement setText:]):
        (-[HTMLMetaElement content]):
        (-[HTMLMetaElement setContent:]):
        (-[HTMLMetaElement httpEquiv]):
        (-[HTMLMetaElement setHttpEquiv:]):
        (-[HTMLMetaElement name]):
        (-[HTMLMetaElement setName:]):
        (-[HTMLMetaElement scheme]):
        (-[HTMLMetaElement setScheme:]):
        (-[HTMLBaseElement href]):
        (-[HTMLBaseElement setHref:]):
        (-[HTMLBaseElement target]):
        (-[HTMLBaseElement setTarget:]):
        (-[HTMLStyleElement disabled]):
        (-[HTMLStyleElement setDisabled:]):
        (-[HTMLStyleElement media]):
        (-[HTMLStyleElement setMedia:]):
        (-[HTMLStyleElement type]):
        (-[HTMLStyleElement setType:]):
        (-[HTMLBodyElement aLink]):
        (-[HTMLBodyElement setALink:]):
        (-[HTMLBodyElement background]):
        (-[HTMLBodyElement setBackground:]):
        (-[HTMLBodyElement bgColor]):
        (-[HTMLBodyElement setBgColor:]):
        (-[HTMLBodyElement link]):
        (-[HTMLBodyElement setLink:]):
        (-[HTMLBodyElement text]):
        (-[HTMLBodyElement setText:]):
        (-[HTMLBodyElement vLink]):
        (-[HTMLBodyElement setVLink:]):
        (-[HTMLFormElement elements]):
        (-[HTMLFormElement length]):
        (-[HTMLFormElement name]):
        (-[HTMLFormElement setName:]):
        (-[HTMLFormElement acceptCharset]):
        (-[HTMLFormElement setAcceptCharset:]):
        (-[HTMLFormElement action]):
        (-[HTMLFormElement setAction:]):
        (-[HTMLFormElement enctype]):
        (-[HTMLFormElement setEnctype:]):
        (-[HTMLFormElement method]):
        (-[HTMLFormElement setMethod:]):
        (-[HTMLFormElement target]):
        (-[HTMLFormElement setTarget:]):
        (-[HTMLFormElement submit]):
        (-[HTMLFormElement reset]):
        (-[HTMLIsIndexElement form]):
        (-[HTMLIsIndexElement prompt]):
        (-[HTMLIsIndexElement setPrompt:]):
        (-[HTMLSelectElement type]):
        (-[HTMLSelectElement selectedIndex]):
        (-[HTMLSelectElement setSelectedIndex:]):
        (-[HTMLSelectElement value]):
        (-[HTMLSelectElement setValue:]):
        (-[HTMLSelectElement length]):
        (-[HTMLSelectElement form]):
        (-[HTMLSelectElement options]):
        (-[HTMLSelectElement disabled]):
        (-[HTMLSelectElement multiple]):
        (-[HTMLSelectElement name]):
        (-[HTMLSelectElement setName:]):
        (-[HTMLSelectElement size]):
        (-[HTMLSelectElement tabIndex]):
        (-[HTMLSelectElement add::]):
        (-[HTMLSelectElement remove:]):
        (-[HTMLSelectElement blur]):
        (-[HTMLSelectElement focus]):
        (-[HTMLOptGroupElement disabled]):
        (-[HTMLOptGroupElement setDisabled:]):
        (-[HTMLOptGroupElement label]):
        (-[HTMLOptGroupElement setLabel:]):
        (-[HTMLOptionElement form]):
        (-[HTMLOptionElement defaultSelected]):
        (-[HTMLOptionElement setDefaultSelected:]):
        (-[HTMLOptionElement text]):
        (-[HTMLOptionElement index]):
        (-[HTMLOptionElement setIndex:]):
        (-[HTMLOptionElement disabled]):
        (-[HTMLOptionElement setDisabled:]):
        (-[HTMLOptionElement label]):
        (-[HTMLOptionElement setLabel:]):
        (-[HTMLOptionElement selected]):
        (-[HTMLOptionElement value]):
        (-[HTMLOptionElement setValue:]):
        (-[HTMLInputElement defaultValue]):
        (-[HTMLInputElement setDefaultValue:]):
        (-[HTMLInputElement defaultChecked]):
        (-[HTMLInputElement setDefaultChecked:]):
        (-[HTMLInputElement form]):
        (-[HTMLInputElement accept]):
        (-[HTMLInputElement setAccept:]):
        (-[HTMLInputElement accessKey]):
        (-[HTMLInputElement setAccessKey:]):
        (-[HTMLInputElement align]):
        (-[HTMLInputElement setAlign:]):
        (-[HTMLInputElement alt]):
        (-[HTMLInputElement setAlt:]):
        (-[HTMLInputElement checked]):
        (-[HTMLInputElement setChecked:]):
        (-[HTMLInputElement disabled]):
        (-[HTMLInputElement setDisabled:]):
        (-[HTMLInputElement maxLength]):
        (-[HTMLInputElement setMaxLength:]):
        (-[HTMLInputElement name]):
        (-[HTMLInputElement setName:]):
        (-[HTMLInputElement readOnly]):
        (-[HTMLInputElement setReadOnly:]):
        (-[HTMLInputElement size]):
        (-[HTMLInputElement setSize:]):
        (-[HTMLInputElement src]):
        (-[HTMLInputElement setSrc:]):
        (-[HTMLInputElement tabIndex]):
        (-[HTMLInputElement setTabIndex:]):
        (-[HTMLInputElement type]):
        (-[HTMLInputElement useMap]):
        (-[HTMLInputElement setUseMap:]):
        (-[HTMLInputElement value]):
        (-[HTMLInputElement setValue:]):
        (-[HTMLInputElement blur]):
        (-[HTMLInputElement focus]):
        (-[HTMLInputElement select]):
        (-[HTMLInputElement click]):
        (-[HTMLTextAreaElement defaultValue]):
        (-[HTMLTextAreaElement setDefaultValue:]):
        (-[HTMLTextAreaElement form]):
        (-[HTMLTextAreaElement accessKey]):
        (-[HTMLTextAreaElement setAccessKey:]):
        (-[HTMLTextAreaElement cols]):
        (-[HTMLTextAreaElement setCols:]):
        (-[HTMLTextAreaElement disabled]):
        (-[HTMLTextAreaElement setDisabled:]):
        (-[HTMLTextAreaElement name]):
        (-[HTMLTextAreaElement setName:]):
        (-[HTMLTextAreaElement readOnly]):
        (-[HTMLTextAreaElement setReadOnly:]):
        (-[HTMLTextAreaElement rows]):
        (-[HTMLTextAreaElement setRows:]):
        (-[HTMLTextAreaElement tabIndex]):
        (-[HTMLTextAreaElement setTabIndex:]):
        (-[HTMLTextAreaElement type]):
        (-[HTMLTextAreaElement value]):
        (-[HTMLTextAreaElement setValue:]):
        (-[HTMLTextAreaElement blur]):
        (-[HTMLTextAreaElement focus]):
        (-[HTMLTextAreaElement select]):
        (-[HTMLButtonElement form]):
        (-[HTMLButtonElement accessKey]):
        (-[HTMLButtonElement setAccessKey:]):
        (-[HTMLButtonElement disabled]):
        (-[HTMLButtonElement setDisabled:]):
        (-[HTMLButtonElement name]):
        (-[HTMLButtonElement setName:]):
        (-[HTMLButtonElement tabIndex]):
        (-[HTMLButtonElement setTabIndex:]):
        (-[HTMLButtonElement type]):
        (-[HTMLButtonElement value]):
        (-[HTMLButtonElement setValue:]):
        (-[HTMLLabelElement form]):
        (-[HTMLLabelElement accessKey]):
        (-[HTMLLabelElement setAccessKey:]):
        (-[HTMLLabelElement htmlFor]):
        (-[HTMLLabelElement setHtmlFor:]):
        (-[HTMLFieldSetElement form]):
        (-[HTMLLegendElement form]):
        (-[HTMLLegendElement accessKey]):
        (-[HTMLLegendElement setAccessKey:]):
        (-[HTMLLegendElement align]):
        (-[HTMLLegendElement setAlign:]):
        (-[HTMLUListElement compact]):
        (-[HTMLUListElement setCompact:]):
        (-[HTMLUListElement type]):
        (-[HTMLUListElement setType:]):
        (-[HTMLOListElement compact]):
        (-[HTMLOListElement setCompact:]):
        (-[HTMLOListElement start]):
        (-[HTMLOListElement setStart:]):
        (-[HTMLOListElement type]):
        (-[HTMLOListElement setType:]):
        (-[HTMLDListElement compact]):
        (-[HTMLDListElement setCompact:]):
        (-[HTMLDirectoryElement compact]):
        (-[HTMLDirectoryElement setCompact:]):
        (-[HTMLMenuElement compact]):
        (-[HTMLMenuElement setCompact:]):
        (-[HTMLLIElement type]):
        (-[HTMLLIElement setType:]):
        (-[HTMLLIElement value]):
        (-[HTMLLIElement setValue:]):
        (-[HTMLBlockquoteElement cite]):
        (-[HTMLBlockquoteElement setCite:]):
        (-[HTMLDivElement align]):
        (-[HTMLDivElement setAlign:]):
        (-[HTMLParagraphElement align]):
        (-[HTMLParagraphElement setAlign:]):
        (-[HTMLHeadingElement align]):
        (-[HTMLHeadingElement setAlign:]):
        (-[HTMLQuoteElement cite]):
        (-[HTMLQuoteElement setCite:]):
        (-[HTMLPreElement width]):
        (-[HTMLPreElement setWidth:]):
        (-[HTMLBRElement clear]):
        (-[HTMLBRElement setClear:]):
        (-[HTMLBaseFontElement color]):
        (-[HTMLBaseFontElement setColor:]):
        (-[HTMLBaseFontElement face]):
        (-[HTMLBaseFontElement setFace:]):
        (-[HTMLBaseFontElement size]):
        (-[HTMLBaseFontElement setSize:]):
        (-[HTMLFontElement color]):
        (-[HTMLFontElement setColor:]):
        (-[HTMLFontElement face]):
        (-[HTMLFontElement setFace:]):
        (-[HTMLFontElement size]):
        (-[HTMLFontElement setSize:]):
        (-[HTMLHRElement align]):
        (-[HTMLHRElement setAlign:]):
        (-[HTMLHRElement noShade]):
        (-[HTMLHRElement setNoShade:]):
        (-[HTMLHRElement size]):
        (-[HTMLHRElement setSize:]):
        (-[HTMLHRElement width]):
        (-[HTMLHRElement setWidth:]):
        (-[HTMLModElement cite]):
        (-[HTMLModElement setCite:]):
        (-[HTMLModElement dateTime]):
        (-[HTMLModElement setDateTime:]):
        (-[HTMLAnchorElement accessKey]):
        (-[HTMLAnchorElement setAccessKey:]):
        (-[HTMLAnchorElement charset]):
        (-[HTMLAnchorElement setCharset:]):
        (-[HTMLAnchorElement coords]):
        (-[HTMLAnchorElement setCoords:]):
        (-[HTMLAnchorElement href]):
        (-[HTMLAnchorElement setHref:]):
        (-[HTMLAnchorElement hreflang]):
        (-[HTMLAnchorElement setHreflang:]):
        (-[HTMLAnchorElement name]):
        (-[HTMLAnchorElement setName:]):
        (-[HTMLAnchorElement rel]):
        (-[HTMLAnchorElement setRel:]):
        (-[HTMLAnchorElement rev]):
        (-[HTMLAnchorElement setRev:]):
        (-[HTMLAnchorElement shape]):
        (-[HTMLAnchorElement setShape:]):
        (-[HTMLAnchorElement tabIndex]):
        (-[HTMLAnchorElement setTabIndex:]):
        (-[HTMLAnchorElement target]):
        (-[HTMLAnchorElement setTarget:]):
        (-[HTMLAnchorElement type]):
        (-[HTMLAnchorElement setType:]):
        (-[HTMLAnchorElement blur]):
        (-[HTMLAnchorElement focus]):
        (-[HTMLImageElement lowSrc]):
        (-[HTMLImageElement setLowSrc:]):
        (-[HTMLImageElement name]):
        (-[HTMLImageElement setName:]):
        (-[HTMLImageElement align]):
        (-[HTMLImageElement setAlign:]):
        (-[HTMLImageElement alt]):
        (-[HTMLImageElement setAlt:]):
        (-[HTMLImageElement border]):
        (-[HTMLImageElement setBorder:]):
        (-[HTMLImageElement height]):
        (-[HTMLImageElement setHeight:]):
        (-[HTMLImageElement hspace]):
        (-[HTMLImageElement setHspace:]):
        (-[HTMLImageElement isMap]):
        (-[HTMLImageElement setIsMap:]):
        (-[HTMLImageElement longDesc]):
        (-[HTMLImageElement setLongDesc:]):
        (-[HTMLImageElement src]):
        (-[HTMLImageElement setSrc:]):
        (-[HTMLImageElement useMap]):
        (-[HTMLImageElement setUseMap:]):
        (-[HTMLImageElement vspace]):
        (-[HTMLImageElement setVspace:]):
        (-[HTMLImageElement width]):
        (-[HTMLImageElement setWidth:]):
        (-[HTMLObjectElement form]):
        (-[HTMLObjectElement code]):
        (-[HTMLObjectElement setCode:]):
        (-[HTMLObjectElement align]):
        (-[HTMLObjectElement setAlign:]):
        (-[HTMLObjectElement archive]):
        (-[HTMLObjectElement setArchive:]):
        (-[HTMLObjectElement border]):
        (-[HTMLObjectElement setBorder:]):
        (-[HTMLObjectElement codeBase]):
        (-[HTMLObjectElement setCodeBase:]):
        (-[HTMLObjectElement codeType]):
        (-[HTMLObjectElement setCodeType:]):
        (-[HTMLObjectElement data]):
        (-[HTMLObjectElement setData:]):
        (-[HTMLObjectElement declare]):
        (-[HTMLObjectElement setDeclare:]):
        (-[HTMLObjectElement height]):
        (-[HTMLObjectElement setHeight:]):
        (-[HTMLObjectElement hspace]):
        (-[HTMLObjectElement setHspace:]):
        (-[HTMLObjectElement name]):
        (-[HTMLObjectElement setName:]):
        (-[HTMLObjectElement standby]):
        (-[HTMLObjectElement setStandby:]):
        (-[HTMLObjectElement tabIndex]):
        (-[HTMLObjectElement setTabIndex:]):
        (-[HTMLObjectElement type]):
        (-[HTMLObjectElement setType:]):
        (-[HTMLObjectElement useMap]):
        (-[HTMLObjectElement setUseMap:]):
        (-[HTMLObjectElement vspace]):
        (-[HTMLObjectElement setVspace:]):
        (-[HTMLObjectElement width]):
        (-[HTMLObjectElement setWidth:]):
        (-[HTMLParamElement name]):
        (-[HTMLParamElement setName:]):
        (-[HTMLParamElement type]):
        (-[HTMLParamElement setType:]):
        (-[HTMLParamElement value]):
        (-[HTMLParamElement setValue:]):
        (-[HTMLParamElement valueType]):
        (-[HTMLParamElement setValueType:]):
        (-[HTMLAppletElement align]):
        (-[HTMLAppletElement setAlign:]):
        (-[HTMLAppletElement alt]):
        (-[HTMLAppletElement setAlt:]):
        (-[HTMLAppletElement archive]):
        (-[HTMLAppletElement setArchive:]):
        (-[HTMLAppletElement code]):
        (-[HTMLAppletElement setCode:]):
        (-[HTMLAppletElement codeBase]):
        (-[HTMLAppletElement setCodeBase:]):
        (-[HTMLAppletElement codeType]):
        (-[HTMLAppletElement setCodeType:]):
        (-[HTMLAppletElement height]):
        (-[HTMLAppletElement setHeight:]):
        (-[HTMLAppletElement hspace]):
        (-[HTMLAppletElement setHspace:]):
        (-[HTMLAppletElement name]):
        (-[HTMLAppletElement setName:]):
        (-[HTMLAppletElement object]):
        (-[HTMLAppletElement setObject:]):
        (-[HTMLAppletElement vspace]):
        (-[HTMLAppletElement setVspace:]):
        (-[HTMLAppletElement width]):
        (-[HTMLAppletElement setWidth:]):
        (-[HTMLMapElement areas]):
        (-[HTMLMapElement name]):
        (-[HTMLMapElement setName:]):
        (-[HTMLAreaElement accessKey]):
        (-[HTMLAreaElement setAccessKey:]):
        (-[HTMLAreaElement alt]):
        (-[HTMLAreaElement setAlt:]):
        (-[HTMLAreaElement coords]):
        (-[HTMLAreaElement setCoords:]):
        (-[HTMLAreaElement href]):
        (-[HTMLAreaElement setHref:]):
        (-[HTMLAreaElement noHref]):
        (-[HTMLAreaElement setNoHref:]):
        (-[HTMLAreaElement shape]):
        (-[HTMLAreaElement setShape:]):
        (-[HTMLAreaElement tabIndex]):
        (-[HTMLAreaElement setTabIndex:]):
        (-[HTMLAreaElement target]):
        (-[HTMLAreaElement setTarget:]):
        (-[HTMLScriptElement text]):
        (-[HTMLScriptElement setText:]):
        (-[HTMLScriptElement htmlFor]):
        (-[HTMLScriptElement setHtmlFor:]):
        (-[HTMLScriptElement event]):
        (-[HTMLScriptElement setEvent:]):
        (-[HTMLScriptElement charset]):
        (-[HTMLScriptElement setCharset:]):
        (-[HTMLScriptElement defer]):
        (-[HTMLScriptElement setDefer:]):
        (-[HTMLScriptElement src]):
        (-[HTMLScriptElement setSrc:]):
        (-[HTMLScriptElement type]):
        (-[HTMLScriptElement setType:]):
        (-[HTMLTableCaptionElement align]):
        (-[HTMLTableCaptionElement setAlign:]):
        (-[HTMLTableSectionElement align]):
        (-[HTMLTableSectionElement setAlign:]):
        (-[HTMLTableSectionElement ch]):
        (-[HTMLTableSectionElement setCh:]):
        (-[HTMLTableSectionElement chOff]):
        (-[HTMLTableSectionElement setChOff:]):
        (-[HTMLTableSectionElement vAlign]):
        (-[HTMLTableSectionElement setVAlign:]):
        (-[HTMLTableSectionElement rows]):
        (-[HTMLTableSectionElement insertRow:]):
        (-[HTMLTableSectionElement deleteRow:]):
        (-[HTMLTableElement caption]):
        (-[HTMLTableElement tHead]):
        (-[HTMLTableElement tFoot]):
        (-[HTMLTableElement rows]):
        (-[HTMLTableElement tBodies]):
        (-[HTMLTableElement align]):
        (-[HTMLTableElement setAlign:]):
        (-[HTMLTableElement bgColor]):
        (-[HTMLTableElement setBgColor:]):
        (-[HTMLTableElement border]):
        (-[HTMLTableElement setBorder:]):
        (-[HTMLTableElement cellPadding]):
        (-[HTMLTableElement setCellPadding:]):
        (-[HTMLTableElement cellSpacing]):
        (-[HTMLTableElement setCellSpacing:]):
        (-[HTMLTableElement frame]):
        (-[HTMLTableElement setFrame:]):
        (-[HTMLTableElement rules]):
        (-[HTMLTableElement setRules:]):
        (-[HTMLTableElement summary]):
        (-[HTMLTableElement setSummary:]):
        (-[HTMLTableElement width]):
        (-[HTMLTableElement setWidth:]):
        (-[HTMLTableElement createTHead]):
        (-[HTMLTableElement deleteTHead]):
        (-[HTMLTableElement createTFoot]):
        (-[HTMLTableElement deleteTFoot]):
        (-[HTMLTableElement createCaption]):
        (-[HTMLTableElement deleteCaption]):
        (-[HTMLTableElement deleteRow:]):
        (-[HTMLTableColElement align]):
        (-[HTMLTableColElement setAlign:]):
        (-[HTMLTableColElement ch]):
        (-[HTMLTableColElement setCh:]):
        (-[HTMLTableColElement chOff]):
        (-[HTMLTableColElement setChOff:]):
        (-[HTMLTableColElement span]):
        (-[HTMLTableColElement setSpan:]):
        (-[HTMLTableColElement vAlign]):
        (-[HTMLTableColElement setVAlign:]):
        (-[HTMLTableColElement width]):
        (-[HTMLTableColElement setWidth:]):
        (-[HTMLTableRowElement rowIndex]):
        (-[HTMLTableRowElement setRowIndex:]):
        (-[HTMLTableRowElement sectionRowIndex]):
        (-[HTMLTableRowElement setSectionRowIndex:]):
        (-[HTMLTableRowElement cells]):
        (-[HTMLTableRowElement setCells:]):
        (-[HTMLTableRowElement align]):
        (-[HTMLTableRowElement setAlign:]):
        (-[HTMLTableRowElement bgColor]):
        (-[HTMLTableRowElement setBgColor:]):
        (-[HTMLTableRowElement ch]):
        (-[HTMLTableRowElement setCh:]):
        (-[HTMLTableRowElement chOff]):
        (-[HTMLTableRowElement setChOff:]):
        (-[HTMLTableRowElement vAlign]):
        (-[HTMLTableRowElement setVAlign:]):
        (-[HTMLTableRowElement insertCell:]):
        (-[HTMLTableRowElement deleteCell:]):
        (-[HTMLTableCellElement cellIndex]):
        (-[HTMLTableCellElement setCellIndex:]):
        (-[HTMLTableCellElement abbr]):
        (-[HTMLTableCellElement setAbbr:]):
        (-[HTMLTableCellElement align]):
        (-[HTMLTableCellElement setAlign:]):
        (-[HTMLTableCellElement axis]):
        (-[HTMLTableCellElement setAxis:]):
        (-[HTMLTableCellElement bgColor]):
        (-[HTMLTableCellElement setBgColor:]):
        (-[HTMLTableCellElement ch]):
        (-[HTMLTableCellElement setCh:]):
        (-[HTMLTableCellElement chOff]):
        (-[HTMLTableCellElement setChOff:]):
        (-[HTMLTableCellElement colSpan]):
        (-[HTMLTableCellElement setColSpan:]):
        (-[HTMLTableCellElement headers]):
        (-[HTMLTableCellElement setHeaders:]):
        (-[HTMLTableCellElement height]):
        (-[HTMLTableCellElement setHeight:]):
        (-[HTMLTableCellElement noWrap]):
        (-[HTMLTableCellElement setNoWrap:]):
        (-[HTMLTableCellElement rowSpan]):
        (-[HTMLTableCellElement setRowSpan:]):
        (-[HTMLTableCellElement scope]):
        (-[HTMLTableCellElement setScope:]):
        (-[HTMLTableCellElement vAlign]):
        (-[HTMLTableCellElement setVAlign:]):
        (-[HTMLTableCellElement width]):
        (-[HTMLTableCellElement setWidth:]):
        (-[HTMLFrameSetElement cols]):
        (-[HTMLFrameSetElement setCols:]):
        (-[HTMLFrameSetElement rows]):
        (-[HTMLFrameSetElement setRows:]):
        (-[HTMLFrameElement frameBorder]):
        (-[HTMLFrameElement setFrameBorder:]):
        (-[HTMLFrameElement longDesc]):
        (-[HTMLFrameElement setLongDesc:]):
        (-[HTMLFrameElement marginHeight]):
        (-[HTMLFrameElement setMarginHeight:]):
        (-[HTMLFrameElement marginWidth]):
        (-[HTMLFrameElement setMarginWidth:]):
        (-[HTMLFrameElement name]):
        (-[HTMLFrameElement setName:]):
        (-[HTMLFrameElement noResize]):
        (-[HTMLFrameElement setNoResize:]):
        (-[HTMLFrameElement scrolling]):
        (-[HTMLFrameElement setScrolling:]):
        (-[HTMLFrameElement src]):
        (-[HTMLFrameElement setSrc:]):
        (-[HTMLIFrameElement align]):
        (-[HTMLIFrameElement setAlign:]):
        (-[HTMLIFrameElement frameBorder]):
        (-[HTMLIFrameElement setFrameBorder:]):
        (-[HTMLIFrameElement height]):
        (-[HTMLIFrameElement setHeight:]):
        (-[HTMLIFrameElement longDesc]):
        (-[HTMLIFrameElement setLongDesc:]):
        (-[HTMLIFrameElement marginHeight]):
        (-[HTMLIFrameElement setMarginHeight:]):
        (-[HTMLIFrameElement marginWidth]):
        (-[HTMLIFrameElement setMarginWidth:]):
        (-[HTMLIFrameElement name]):
        (-[HTMLIFrameElement setName:]):
        (-[HTMLIFrameElement scrolling]):
        (-[HTMLIFrameElement setScrolling:]):
        (-[HTMLIFrameElement src]):
        (-[HTMLIFrameElement setSrc:]):
        (-[HTMLIFrameElement width]):
        (-[HTMLIFrameElement setWidth:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6214 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Stitched together the NP stuff to our language independent
rjw [Fri, 12 Mar 2004 00:23:44 +0000 (00:23 +0000)]
Stitched together the NP stuff to our language independent
JavaScript binding stuff.  Very close to being done.

Added program to test C bindings (and NP stuff).  Just tests
properties.  Will add methods and JavaScript access, etc.

Updated Makefile.am to account for new bindings/c directory.

Change NP_UTF8 from "const char *" to "char" to allow for
declarations like "const NP_UTF8 *" and "NP_UTF8 *".  Ditto
for NP_UTF16.

Added NP_IsValidIdentifier().

        Reviewed by Chris.

        * JavaScriptCore.pbproj/project.pbxproj:
        * Makefile.am:
        * bindings/NP_jsobject.cpp:
        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:
        * bindings/c/c_class.cpp: Added.
        * bindings/c/c_class.h: Added.
        * bindings/c/c_instance.cpp: Added.
        * bindings/c/c_instance.h: Added.
        * bindings/c/c_runtime.cpp: Added.
        * bindings/c/c_runtime.h: Added.
        * bindings/c/c_utility.cpp: Added.
        * bindings/c/c_utility.h: Added.
        * bindings/make_testbindings:
        * bindings/runtime.cpp:
        * bindings/runtime.h:
        * bindings/testbindings.cpp: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6212 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Dave
kocienda [Fri, 12 Mar 2004 00:07:06 +0000 (00:07 +0000)]
    Reviewed by Dave

        I have clarified the concept (at least in my head)
        that each edit command has an obligation to put the
        selection in the right place after it is applied,
        unapplied, or reapplied. Right now, each edit command
        calls setStartingSelection and setEndingSelection to do
        this, I made these function move the selection on

        * khtml/editing/htmlediting_impl.cpp:
        * khtml/editing/htmlediting_impl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6211 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebCore:
kocienda [Thu, 11 Mar 2004 23:37:58 +0000 (23:37 +0000)]

        Reviewed by Dave

        Various changes to move us forward on editing.

        1. I reorganized the concrete EditCommand interface and
        implementation classes alphabetically in their
        respective files, to make it easier to find things.

        2. I added a TypingCommand composite class to gang
        up all keystrokes and make it possible to pass a
        single command over to the Cocoa undo system in all cases.

        3. I now send all keystrokes back over to WebKit
        to be interpreted by the text input system. In concert
        with the many new NSResponder method implementations I
        added to WebView, we now respond to keystrokes in a much
        more Cocoa-like way that sets us down the path to
        integrating with the Cocoa text input system some day.

        4. I fixed up our integration with the Cocoa undo
        system. I also removed much of the undo support code
        from the KHTMPart class. As a replacement, I implemented
        reporting of undoable commands to KHTMLPart so that
        a KDE hookup is quite feasible. As a result, undo
        should "just work" in Blot (Chris has reported that
        it has been busted).

        5. I added the DOM CSS bindings for Objective-C. This
        required some rearranging of the existing DOM bindings
        code, and while I was there, I did various cleanups in the
        existing DOM bindings.

        * About 400 lines of changed files and functions elided.


        Reviewed by Dave

        Various changes to begin implementing the draft API proposal.

        * DOM.subproj/DOM.h: Checking in generated file.
        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge registerCommandForUndo:]): Now takes an id, a wrapped
        WebCore EditCommand implementation object.
        (-[WebBridge registerCommandForRedo:]): Ditto.
        (-[WebBridge clearUndoRedoOperations]): Use the web view's undo manager.
        (-[WebBridge keyDown:]): Pass keyDown events through to the web view.
        * WebKit.pbproj/project.pbxproj:
        * WebView.subproj/WebDefaultEditingDelegate.h: Added.
        * WebView.subproj/WebDefaultEditingDelegate.m: Added. Stubbed in default
        implementations declared in the draft editing API.
        * WebView.subproj/WebFrame.m:
        (-[WebFramePrivate dealloc]): WebFrame no longer has an undo manager.
        * WebView.subproj/WebFramePrivate.h: Ditto.
        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _selectedWebArchive:]): selectedRange method
        is now selectedDOMRange.
        * WebView.subproj/WebView.m:
        (-[WebViewPrivate dealloc]): Dealloc new editingDelegateForwarder.
        (-[WebView _editingDelegateForwarder]): Added.
        (-[WebView keyDown:]): Added.
        (-[WebView _bridgeForCurrentSelection]): Added.
        (-[WebView setSelectedDOMRange:]): Added.
        (-[WebView selectedDOMRange]): Added.
        (-[WebView insertText:]): Added.
        (-[WebView _alterSelection:direction:granularity:]): Added.
        (-[WebView selectWord:]): Added.
        (-[WebView moveRight:]): Added.
        (-[WebView moveRightAndModifySelection:]): Added.
        (-[WebView moveLeft:]): Added.
        (-[WebView moveLeftAndModifySelection:]): Added.
        (-[WebView deleteBackward:]): Added.
        (-[WebView insertNewline:]): Added.
        (-[WebView insertParagraphSeparator:]): Added.
        (-[WebView setEditingDelegate:]): Added.
        (-[WebView editingDelegate]): Added.
        (-[WebView undoManager]): Added.
        (-[WebView insertText:replacingDOMRange:]): Added.
        * WebView.subproj/WebViewPrivate.h: Added a collection of editing API
        declarations that will be public some day, but are still under review.


        Reviewed by Dave

        Browser document no longer creates its own undo manager.
        Safari will use a different method to work with undo
        managers once we settle on a WebKit API. For now, I am
        just going to delete this early attempt.

        * BrowserDocument.h
        * BrowserDocument.m

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6210 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed some spacing issues in reconstructed source and web archives that were caused...
cblu [Thu, 11 Mar 2004 22:15:33 +0000 (22:15 +0000)]
Fixed some spacing issues in reconstructed source and web archives that were caused by a malformed doc type string that we were constructing.

        Reviewed by darin.

        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::determineParseMode): set the public ID and system ID on the doc type
        * khtml/xml/dom_docimpl.cpp:
        (DocumentTypeImpl::toString): put a space between DOCTYPE and the name
        * khtml/xml/dom_docimpl.h:
        (DOM::DocumentTypeImpl::setPublicId): new
        (DOM::DocumentTypeImpl::setSystemId): new

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6209 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
sullivan [Thu, 11 Mar 2004 20:12:54 +0000 (20:12 +0000)]

        - fixed <rdar://problem/3585056>: Assertion failure if error page is loaded from
        - also added HeaderDoc comments to could-be-API-soon methods and fixed a
        conceptual problem with said methods

        Reviewed by Darin.

        * WebView.subproj/WebDataSourcePrivate.h:
        added HeaderDoc comment for -unreachableURL

        * WebView.subproj/WebFramePrivate.h:
        added HeaderDoc comment for -loadAlternateHTMLString:baseURL:forUnreachableURL:;
        also added boolean delegateIsHandlingUnimplementablePolicy ivar to WebFramePrivate
        * WebView.subproj/WebFrame.m:
        (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
        treat delegateIsHandlingUnimplementablePolicy like delegateIsDecidingNavigationPolicy.
        Safari serves up error pages during the latter but clients are equally or more likely
        to do so during the former.
        (-[WebFrame _handleUnimplementablePolicyWithErrorCode:forURL:]):
        set delegateIsHandlingUnimplementablePolicy during delegate callback
        (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
        tweaked assertion so it doesn't erroneously fire for clients that call
        loadAlternateHTML:baseURL:forUnreachableURL: while processing


        Removed obsolete comment I happened to notice.

        Reviewed by Darin..

        * BrowserWebController.m:
        (-[BrowserWebView webView:unableToImplementPolicyWithError:frame:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6205 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoTests:
cblu [Thu, 11 Mar 2004 19:32:20 +0000 (19:32 +0000)]

Now that WebArchive is a class, refer to it as such.

        Reviewed by kocienda.

        * Blot/BlotApp.m:
        (-[BlotApp handleNewMessageEvent:withReplyEvent:]):
        * Blot/BlotDocument.h:
        * Blot/BlotDocument.m:
        (-[BlotDocument loadWebArchive:]):


Made WebArchive a class instead of a data object. This allows clients to easily get the main resource and subresources from a WebArchive.

        Reviewed by kocienda.

        * WebKit.exp:
        * WebView.subproj/WebDocumentPrivate.h:
        * WebView.subproj/WebFrame.m:
        (-[WebFrame loadWebArchive:]):
        * WebView.subproj/WebFramePrivate.h:
        * WebView.subproj/WebHTMLRepresentation.m:
        (-[WebHTMLRepresentation loadWebArchive]):
        (-[WebHTMLRepresentation _webArchiveWithMarkupString:subresourceURLStrings:]):
        (-[WebHTMLRepresentation webArchiveFromNode:]):
        (-[WebHTMLRepresentation webArchiveFromRange:]):
        * WebView.subproj/WebHTMLRepresentationPrivate.h:
        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _selectedWebArchive:]):
        (-[WebHTMLView _writeSelectionToPasteboard:]):
        (-[WebHTMLView _pasteMarkupFromPasteboard:]):
        * WebView.subproj/WebResource.h:
        * WebView.subproj/WebResource.m:
        (-[WebArchivePrivate dealloc]):
        (-[WebResource _response]):
        (-[WebArchive init]):
        (-[WebArchive initWithMainResource:subresources:]):
        (-[WebArchive initWithData:]):
        (-[WebArchive dealloc]):
        (-[WebArchive mainResource]):
        (-[WebArchive subresources]):
        (-[WebArchive dataRepresentation]):
        * WebView.subproj/WebResourcePrivate.h:


Now that WebArchive is a class, refer to it as such.

        Reviewed by kocienda.

        * BrowserDocument.m:
        (-[BrowserDocument dataRepresentationOfType:]):
        (-[BrowserDocument _mailWebArchiveData:withApplicationAtPath:]):
        (-[BrowserDocument mailPage:]):
        (-[BrowserDocument mailPageAddress:]):
        * English.lproj/InfoPlist.strings:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6204 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for 3584646, AxWebArea should encompass all children (its AxSize should).
hyatt [Thu, 11 Mar 2004 02:07:22 +0000 (02:07 +0000)]
Fix for 3584646, AxWebArea should encompass all children (its AxSize should).

        Reviewed by mjs

        * khtml/rendering/render_canvas.cpp:
        * khtml/rendering/render_canvas.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6202 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoFixed broken build.
rjw [Wed, 10 Mar 2004 22:58:47 +0000 (22:58 +0000)]
Fixed broken build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6201 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Made changes to support new asychronous approach to calls from
rjw [Wed, 10 Mar 2004 22:25:33 +0000 (22:25 +0000)]
Made changes to support new asychronous approach to calls from
plugin to JavaScript

        Reviewed by Chris.

        * bindings/NP_jsobject.cpp:
        * bindings/NP_runtime.h:
        * bindings/make_testbindings:
        * bindings/runtime.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6200 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed: INPUT images are not part of web archives.
cblu [Wed, 10 Mar 2004 21:51:28 +0000 (21:51 +0000)]
Fixed: INPUT images are not part of web archives.

        Reviewed by rjw.

        * khtml/html/html_formimpl.cpp:
        * khtml/html/html_formimpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6199 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Made dragging of web archives work.
cblu [Wed, 10 Mar 2004 21:50:26 +0000 (21:50 +0000)]
Made dragging of web archives work.

        Reviewed by rjw.

        * English.lproj/StringsNotToBeLocalized.txt: updated
        * WebView.subproj/WebMainResourceClient.m:
        (-[WebMainResourceClient connection:didReceiveResponse:]): added a FIXME about working around old Foundations that don't know about web archive files
        * WebView.subproj/WebView.m:
        (+[WebView canShowFile:]): tweak
        (+[WebView suggestedFileExtensionForMIMEType:]): tweak
        (+[WebView _MIMETypeForFile:]): handle web archive files since Foundation may be too old to know about them

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6198 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Updated header to include proposed changes from
rjw [Wed, 10 Mar 2004 21:50:02 +0000 (21:50 +0000)]
Updated header to include proposed changes from
plugin-futures list.  Calls from plugin to JavaScript
are now asynchronous.

        Reviewed by Chris.

        * bindings/NP_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6197 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
cblu [Wed, 10 Mar 2004 01:33:10 +0000 (01:33 +0000)]

Made web archives use NSPropertyListBinaryFormat_v1_0 instead of NSPropertyListXMLFormat_v1_0 because NSPropertyListBinaryFormat_v1_0 is 3-5 times faster to serialize and parse.

        Reviewed by rjw.

        * WebView.subproj/WebResource.m:
        (+[WebResource _parseWebArchive:mainResource:subresources:]): add timing code
        (+[WebResource _webArchiveWithMainResource:subresources:]): add timing code, use NSPropertyListBinaryFormat_v1_0


        Reviewed by rjw.

        * BrowserDocument.m:
        (-[BrowserDocument mailPageAddress:]): call [WebResource _webArchiveWithMainResource:subresources:] and let it handle the property list serialization

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6193 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoTests:
cblu [Tue, 9 Mar 2004 23:46:28 +0000 (23:46 +0000)]

Updated blot to use new SPI's.

        * Blot/BlotApp.m:
        (-[BlotApp handleNewMessageEvent:withReplyEvent:]):
        * Blot/BlotDocument.h:
        * Blot/BlotDocument.m:
        (-[BlotDocument dataRepresentationOfType:]):
        (-[BlotDocument loadWebArchive:]):
        * TestPlugin/TestPlugin.pbproj/project.pbxproj:


Implemented WebCore side of: <rdar://problem/3577508>: API: web archive related API's

        Reviewed by rjw.

        * WebCore-combined.exp:
        * WebCore.exp:
        * kwq/DOM.mm:
        (+[DOMRange _rangeWithImpl:]): made internally accessible
        (-[DOMRange _rangeImpl]): ditto
        * kwq/DOMInternal.h:
        * kwq/KWQStringList.h:
        * kwq/KWQStringList.mm:
        (QStringList::getNSArray): new
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge pasteMarkupString:]): renamed from pasteHTMLString since XML pasting may be possible
        (-[WebCoreBridge selectedRange]): new
        (-[WebCoreBridge _documentTypeString]): new
        (-[WebCoreBridge _stringWithDocumentTypeStringAndMarkupString:]): new
        (-[WebCoreBridge markupStringFromNode:subresourceURLStrings:]): new, needed for WebKit API's
        (-[WebCoreBridge markupStringFromRange:subresourceURLStrings:]): new, needed for WebKit API's


Fixed: <rdar://problem/3577508>: API: web archive related API's
Implemented WebKit side of: <rdar://problem/3144033>: ability to save web sites (images and all)

        Reviewed by rjw.

        * WebCoreSupport.subproj/WebBridge.h:
        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge receivedData:textEncodingName:]): renamed to take a textEncodingName instead of data source. The data source argument is only needed for the textEncodingName.
        * WebKit.exp:
        * WebView.subproj/WebDataSource.m:
        (-[WebDataSource _subresourcesDictionary]): new
        (+[WebDataSource _repTypesAllowImageTypeOmission:]): include "application/x-webarchive"
        * WebView.subproj/WebDataSourcePrivate.h:
        * WebView.subproj/WebDocumentInternal.h:
        * WebView.subproj/WebDocumentPrivate.h:
        * WebView.subproj/WebFrame.m:
        (-[WebFrame loadWebArchive:]): renamed, code factored out to [WebResource _parseWebArchive:mainResource:subresources:]
        * WebView.subproj/WebFramePrivate.h:
        * WebView.subproj/WebFrameView.m:
        (+[WebFrameView _viewTypesAllowImageTypeOmission:]): include "application/x-webarchive"
        * WebView.subproj/WebHTMLRepresentation.h:
        * WebView.subproj/WebHTMLRepresentation.m:
        (-[WebHTMLRepresentationPrivate dealloc]):
        (-[WebHTMLRepresentation _isDisplayingWebArchive]): new
        (-[WebHTMLRepresentation receivedData:withDataSource:]): don't feed data to WebCore if we're displaying a web archive since web archive can't be progressively loaded
        (-[WebHTMLRepresentation loadWebArchive]): new, feeds web archive data to WebCore
        (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): call loadWebArchive if necessary
        (-[WebHTMLRepresentation documentSource]): if displaying a web archive, return the HTML source from within the archive
        (-[WebHTMLRepresentation _webArchiveWithMarkupString:subresourceURLStrings:]): new
        (-[WebHTMLRepresentation markupStringFromNode:]): implementation of new API
        (-[WebHTMLRepresentation markupStringFromRange:]): ditto
        (-[WebHTMLRepresentation webArchiveFromNode:]): ditto
        (-[WebHTMLRepresentation webArchiveFromRange:]): ditto
        * WebView.subproj/WebHTMLRepresentationPrivate.h:
        * WebView.subproj/WebHTMLView.m:
        (+[WebHTMLView _selectionPasteboardTypes]): use renamed WebArchivePboardType
        (-[WebHTMLView _selectedWebArchive:]): renamed, call renamed methods
        (-[WebHTMLView _writeSelectionToPasteboard:]): call renamed methods
        (-[WebHTMLView _haveSelection]): indentation tweak
        (-[WebHTMLView _canDelete]): ditto
        (-[WebHTMLView _canPaste]): ditto
        (-[WebHTMLView _pasteMarkupFromPasteboard:]): renamed, call [WebResource _webArchiveWithMainResource:subresources:]
        (-[WebHTMLView initWithFrame:]): use renamed WebArchivePboardType
        (-[WebHTMLView paste:]): call renamed _pasteMarkupFromPasteboard
        (-[WebHTMLView concludeDragOperation:]): call renamed _pasteMarkupFromPasteboard
        * WebView.subproj/WebHTMLViewPrivate.h:
        * WebView.subproj/WebMainResourceClient.m:
        (-[WebMainResourceClient connection:didReceiveResponse:]): modify the MIME type for web archives since Foundation is not yet web archive aware. This is ifdef'd pre-Tiger code.
        * WebView.subproj/WebResource.h:
        * WebView.subproj/WebResource.m:
        (+[WebResource _parseWebArchive:mainResource:subresources:]): new
        (+[WebResource _webArchiveWithMainResource:subresources:]): new
        * WebView.subproj/WebResourcePrivate.h:


Fixed: <rdar://problem/3144033>: ability to save web sites (images and all)

        Reviewed by john.

        * BrowserDocument.h: added _dataSourceToSave, _fileFormatAccessoryView, _ fileFormatPopUpButton and _isSavingWithSavePanel ivars
        * BrowserDocument.m:
        (-[BrowserDocument dealloc]): added ASSERTs
        (-[BrowserDocument dataSourceToSave]): new
        (-[BrowserDocument canSaveAsWebArchive]): new
        (-[BrowserDocument isSavingWebArchive]): new
        (-[BrowserDocument MIMETypeForSaving]): take web archives into account
        (-[BrowserDocument filenameForSaving]): new
        (-[BrowserDocument isSavingPlainText]): moved
        (-[BrowserDocument setDataSourceToSave:]): instead of this being a wrapper method around setFileWrapperToSave:MIMEType:, have this set _dataSourceToSave since we need the data source for web archives to work
        (-[BrowserDocument saveDocumentTo:]): don't call setFileWrapperToSave:MIMEType: if there is no file wrapper since this case is handled in the above methods
        (-[BrowserDocument document:didSave:contextInfo:]): added more post-save clean-up
        (-[BrowserDocument allowedFileTypes]): new
        (-[BrowserDocument fileFormatPopUpButtonUpdated:]): new
        (-[BrowserDocument prepareSavePanel:]): attach an accessory view to the save panel if necessary
        (-[BrowserDocument dataRepresentationOfType:]): handle all cases of saving data
        (-[BrowserDocument displayName]): rely on the _isSavingWithSavePanel instead of _fileWrapperToSave for choosing a filename
        (-[BrowserDocument _isDisplayingCompletePage]): new, factored out from validateUserInterfaceItem:
        (-[BrowserDocument validateUserInterfaceItem:]): for mailPage:, makes sure the representation supports web archives
        (-[BrowserDocument _mailWebArchive:withApplicationAtPath:]): mail a web archive instead of a property list
        (-[BrowserDocument mailPage:]): handle the case where the current page is a web archive, call renamed _mailWebArchive::
        (-[BrowserDocument mailPageAddress:]): call renamed _mailWebArchive::
        * PreferenceKeys.h: added keys for the pref of saving a web archive or raw source
        * WebBrowser.pbproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6191 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Make the AXLinkUIElements attribute always return an array (never return nil).
hyatt [Tue, 9 Mar 2004 22:12:32 +0000 (22:12 +0000)]
Make the AXLinkUIElements attribute always return an array (never return nil).

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject accessibilityAttributeValue:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6190 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
sullivan [Tue, 9 Mar 2004 21:03:30 +0000 (21:03 +0000)]

        - fixed the following bugs:
        <rdar://problem/3579715>: Going to an error page in back/forward list doesn't work
        correctly in some cases
        <rdar://problem/3581031>: REGRESSION (130+): World Leak of WebFrame after trying
        to load page with unknown scheme

        Reviewed by Darin.

        * WebView.subproj/WebDataSourcePrivate.h:
        renamed __setRequest -> __adoptRequest
        * WebView.subproj/WebDataSource.m:
        (-[WebDataSource _URLForHistory]):
        updated comment
        (-[WebDataSource __adoptRequest:]):
        Renamed from __setRequest; now takes an NSMutableURLRequest and uses it as-is.
        (-[WebDataSource _setRequest:]):
        now saves a mutable copy, instead of relying on the caller to do so. The
        (only) caller wasn't doing so in all cases, leading to trouble in River City.
        Also, special-case unreachable URL handling to allow alternate content to
        replace a URL in a redirect-like way without sending a redirect callback.

        * WebView.subproj/WebFrame.m:
        (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]):
        renamed after discussion with Richard (was loadPlaceholderHTMLString:baseURL:unreachableURL:)
        (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
        new helper method, returns YES only if we receive a load request for alternate
        content from a delegate for an unreachable URL while we are going back or forward.
        That's a lot of prepositions!
        (-[WebFrame _loadRequest:subresources:]):
        if _shouldReloadToHandleUnreachableURLFromRequest: returns YES, change load type
        to WebFrameLoadTypeReload so b/f list is preserved appropriately.
        (-[WebFrame _transitionToCommitted:]):
        Update currentItem in the unreachableURL case.
        (-[WebFrame _isLoadComplete]):
        Don't reset b/f list before calling provisionalLoadDidFail delegate; instead, determine
        where to reset b/f list beforehand, and then actually reset list afterwards only if we
        didn't start an alternate content load in the delegate. Also, set new boolean ivar so we
        know when we're processing a provisionalLoadDidFail delegate callback.
        (-[WebFrame _loadItem:withLoadType:]):
        don't make extra copy before calling __adoptRequest; just pass it the one we made here.
        (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
        If we're loading alternate content for an unreachableURL, don't ask the decision listener,
        just do it. (This avoids problem with nested calls to checking the navigation policy that
        led to a WebFrame leak, and is conceptually the right thing to do also.) Also added some
        asserts that helped me track down the WebFrame leak. Set new boolean ivar so we know
        when we're processing a navigation policy delegate decision.
        (-[WebFrame _currentBackForwardListItemToResetTo]):
        new method, replaces _resetBackForwardListToCurrent. Does the same test as the
        latter but returns a boolean rather than actually resetting.
        (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
        save dataSource in a local var before calling stopLoading, and use it for
        _setProvisionalDataSource, because otherwise stopLoading was clobbering the dataSource
        for an unreachable URL handling case.

        * WebView.subproj/WebFramePrivate.h:
        two new boolean ivars

        * WebView.subproj/WebView.m:
        (+[WebView _canHandleRequest:]):
        return YES when we're loading alternate content for an unreachable URL


        Reviewed by Darin.

        * BrowserWebController.m:
        (-[BrowserWebView showErrorPageForURL:withTitle:message:]):
        update call to renamed method

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6189 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago (1) Change root element in a document to have a role of AXWebArea.
hyatt [Tue, 9 Mar 2004 18:50:48 +0000 (18:50 +0000)]
(1) Change root element in a document to have a role of AXWebArea.
(2) Add support for AXURL to links and children of links.
(3) Add support for AXLinkUIElements to the AXWebArea

        Reviewed by john

        * khtml/dom/html_misc.h:
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject role]):
        (-[KWQAccObject roleDescription]):
        (-[KWQAccObject accessibilityAttributeNames]):
        (-[KWQAccObject accessibilityAttributeValue:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6188 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by nobody.
sullivan [Tue, 9 Mar 2004 14:24:03 +0000 (14:24 +0000)]
    Reviewed by nobody.

        * kwq/KWQKURL.mm:
        Fixed broken build by removing wayward "break" statement.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6187 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Maciej.
darin [Tue, 9 Mar 2004 00:14:53 +0000 (00:14 +0000)]
    Reviewed by Maciej.

        - fixed <rdar://problem/3554876>: REGRESSION (100-125): cannot upload file if path contains non-ASCII characters

        * kwq/KWQKURL.mm: Remove Colon constant so we can fit in 8 bits again.
        (KURL::KURL): Rewrite so we don't need isSchemeCharOrColon.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6186 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoSubmitting Safari-131
kocienda [Mon, 8 Mar 2004 23:46:47 +0000 (23:46 +0000)]
Submitting Safari-131

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6184 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago2004-03-08 Ken Kocienda <kocienda@apple.com>
kocienda [Mon, 8 Mar 2004 23:46:08 +0000 (23:46 +0000)]
2004-03-08  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin

        * WebKit.pbproj/project.pbxproj: Added CFBundleName to Info.plist

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6183 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago2004-03-08 Ken Kocienda <kocienda@apple.com>
kocienda [Mon, 8 Mar 2004 23:45:52 +0000 (23:45 +0000)]
2004-03-08  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin

        * WebCore.pbproj/project.pbxproj: Added CFBundleName to Info.plist.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6182 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoAdd layout test for first-letter bug.
hyatt [Sat, 6 Mar 2004 01:21:05 +0000 (01:21 +0000)]
Add layout test for first-letter bug.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6181 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fix for first-line inheritance problem caused by incorrectly inheriting first-line...
hyatt [Sat, 6 Mar 2004 01:19:59 +0000 (01:19 +0000)]
Fix for first-line inheritance problem caused by incorrectly inheriting first-line into floating

        Reviewed by kocienda

        * khtml/rendering/render_block.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6180 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by me.
kocienda [Fri, 5 Mar 2004 23:34:36 +0000 (23:34 +0000)]
    Reviewed by me.

Forgot to add this when I checked in last time.

        * ForwardingHeaders/css/css_computedstyle.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6179 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Dave.
kocienda [Fri, 5 Mar 2004 23:01:26 +0000 (23:01 +0000)]
    Reviewed by Dave.

        Added initial support for retrieving the computed
        style of document elements.

        * WebCore.pbproj/project.pbxproj:
        * khtml/css/css_computedstyle.cpp: Added.
        (DOM::valueForLength): Helper to turn a khtml::Length into a computed value string.
        (DOM::stringForBorderStyle): Helper to turn an EBorderStyle into a computed value string.
        (DOM::stringForTextAlign): Helper to turn an ETextAlign into a computed value string.
        (DOM::CSSComputedStyleDeclarationImpl::CSSComputedStyleDeclarationImpl): New function.
        (DOM::CSSComputedStyleDeclarationImpl::~CSSComputedStyleDeclarationImpl): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::cssText): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::setCssText): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::getPropertyValue): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::getPropertyPriority): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::removeProperty): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::setProperty): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::setLengthProperty): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::item): Ditto.
        (DOM::CSSComputedStyleDeclarationImpl::property): Ditto.
        * khtml/css/css_computedstyle.h: Added.
        * khtml/css/css_valueimpl.cpp:
        (CSSPrimitiveValueImpl::cssText): Fixed some formatting of Rect. Added
        suppoprt for rgba colors.
        * khtml/css/css_valueimpl.h:
        * khtml/ecma/kjs_css.cpp:
        * khtml/ecma/kjs_dom.cpp:
        (DOMDocument::getValueProperty): defaultView is a property, used to be a function,
        which was wrong. Fixed.
        (DOMDocumentProtoFunc::tryCall): Ditto.
        * khtml/ecma/kjs_dom.lut.h:
        (KJS::): Regenerated file.
        * khtml/misc/khtmllayout.h:
        (khtml::Length::length): Added an accessor to the value, to promote better coding
        style, rather than peeking and poking the value directly.
        * khtml/rendering/render_style.h:
        (khtml::RenderStyle::borderLeftWidth): BHIDDEN also should be treated like BNONE when it comes
        to returning a zero value. Now it is.
        (khtml::RenderStyle::borderRightWidth): Ditto.
        (khtml::RenderStyle::borderTopWidth): Ditto.
        (khtml::RenderStyle::borderBottomWidth): Ditto.
        (khtml::RenderStyle::outlineWidth): Ditto.
        (khtml::RenderStyle::outlineOffset): Ditto.
        * khtml/xml/dom2_viewsimpl.cpp:
        (AbstractViewImpl::getComputedStyle): Added an implementation for this formerly stubbed out function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6178 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed: <rdar://problem/3560132>: REGRESSION: Safari crashed in -[NSPasteboard setDat...
cblu [Fri, 5 Mar 2004 21:27:21 +0000 (21:27 +0000)]
Fixed: <rdar://problem/3560132>: REGRESSION: Safari crashed in -[NSPasteboard setData:forType:] dragging a map out of Mapquest.com

        Reviewed by john.

        * Misc.subproj/WebNSPasteboardExtras.m:
        (-[NSPasteboard _web_writeImage:URL:title:fileWrapper:HTMLString:]): declare the pboard types by calling _web_writeURL:::: before calling setData::

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6177 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
sullivan [Fri, 5 Mar 2004 19:02:10 +0000 (19:02 +0000)]

        First cut at WebKit support for showing error pages for unreachable URLs.
        This doesn't work quite right with the back/forward list yet, but is
        good enough for demos.

        Reviewed by Darin.

        * WebView.subproj/WebBaseResourceHandleDelegate.m:
        (-[WebBaseResourceHandleDelegate didReceiveResponse:]):
        use new _webDataRequextExternalURL to share code

        * WebView.subproj/WebDataProtocol.h:
        Three new methods (all internal to WebKit):
        -[NSURLRequest _webDataRequestUnreachableURL], -[NSURLRequest _webDataRequestExternalURL],
        -[NSURLRequest _webDataRequestSetUnreachableURL]
        * WebView.subproj/WebDataProtocol.m:
        new unreachableURL field of WebDataRequestParameters
        (-[WebDataRequestParameters copyWithZone:]):
        copy new field
        (-[WebDataRequestParameters dealloc]):
        release new field
        (-[NSURLRequest _webDataRequestUnreachableURL]):
        read new field
        (-[NSURLRequest _webDataRequestExternalURL]):
        new method, returns baseURL or "about:blank" for webdata protocol requests. This
        was done in multiple places previously.
        (-[NSURLRequest _webDataRequestExternalRequest]):
        now calls _webDataRequestExternalURL to share code
        (-[NSMutableURLRequest _webDataRequestSetUnreachableURL:]):
        write new field

        * WebView.subproj/WebDataSource.m:
        (-[WebDataSource unreachableURL]):
        new method, might become API; returns the unreachable URL, if any, for which this datasource
        holds placeholder content
        (-[WebDataSource _URLForHistory]):
        new method, returns the URL to be stored in History for this dataSource. This returns nil
        for run-of-the-mill WebDataProtocol URLs (replacing code elsewhere that checked for this
        case) but returns the unreachableURL for the case where this datasource holds placeholder
        (-[WebDataSource _setTitle:]):
        now calls _URLForHistory

        * WebView.subproj/WebDataSourcePrivate.h:
        added unreachableURL in the should-become-API section, and _URLForHistory elsewhere

        * WebView.subproj/WebFrame.m:
        (-[WebFrame loadPlaceholderHTMLString:baseURL:unreachableURL:]):
        new should-become-API method for displaying an error page for an unreachable URL
        (-[WebFrame loadPropertyList:]):
        updated to pass nil for unreachableURL
        (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
        added unreachableURL parameter, which gets set on the data request
        (-[WebFrame _addBackForwardItemClippedAtTarget:]):
        use _URLForHistory instead of just checking for WebDataProtocol
        (-[WebFrame _createItem:]):
        use unreachableURL if there is one
        (-[WebFrame _transitionToCommitted:]):
        use _URLForHistory instead of just checking for WebDataProtocol
        (-[WebFrame _isLoadComplete]):
        check whether a new load has started in the delegate callback and if so, don't
        reset the loading state here
        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
        added unreachableURL parameter, which gets passed through
        (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
        send nil unreachableURL parameter
        (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
        new bottleneck method for loadHTMLString:baseURL: and loadPlaceholderHTMLString:baseURL:unreachableURL:;
        this is the guts of loadHTMLString:baseURL: with the new unreachableURL parameter passed through
        (-[WebFrame loadHTMLString:baseURL:]):
        now calls new bottleneck method

        * WebView.subproj/WebFramePrivate.h:
        added loadPlaceholderString:baseURL:unreachableURL: to should-be-API section; added unreachableURL
        parameter to _webDataRequestForData:MIMEType:textEncodingName:baseURL:


        First cut at WebBrowser support for showing error pages for unreachable URLs.
        This doesn't work quite right with the back/forward list yet, but is
        good enough for demos. The old sheet-using code remains intact, and there's
        a menu item in the Debug menu to try the new way (old way is still default
        for now).

        Reviewed by Darin.

        * PreferenceKeys.h:
        added DebugDisplayErrorsAsPagesPreferenceKey; also deleted a couple of unused
        old preference keys.

        * BrowserWebController.h:
        added showErrorPageForURL:withTitle:message:

        * BrowserWebController.m:
        (-[BrowserWebView webView:unableToImplementPolicyWithError:frame:]):
        use showErrorPageForURL:... if the preference is set that way
        (-[BrowserWebView errorPageHTMLWithTitle:message:]):
        new method, returns an HTML string for the error page. This will eventually be
        done reading resources from disk no doubt, but for now we just display a simple
        page that has the same text as the sheet.
        (-[BrowserWebView showErrorPageForURL:withTitle:message:]):
        new method, uses new loadPlaceholderHTMLString:baseURL:unreachableURL: to put
        up an error page in the webview
        (-[BrowserWebView expectedOrCurrentURL]):
        use unreachableURL if there is one

        * Debug/DebugUtilities.m:
        (-[DebugUtilities createDebugMenu]):
        add menu item "Show Page Load Errors Inline"
        (-[NSApplication validate_toggleDisplayLoadErrorsAsPages:]):
        new method, sets the checkmark on the new menu item appropriately
        (-[NSApplication toggleDisplayLoadErrorsAsPages:]):
        new method, toggles the state of the preference

        * LoadProgressMonitor.m:
        (-[LoadProgressMonitor _createProgressEntryWithRequest:dataSource:]):
        use unreachableURL if there is one
        (-[LoadProgressMonitor webView:resource:didReceiveResponse:fromDataSource:]):

        * LocationChangeError.m:
        (-[LocationChangeHandler displayOrRememberLocationChangeError:forDataSource:]):
        use showErrorPage:... if the preference is set that way

        * LocationChangeHandler.m:
        (-[LocationChangeHandler webView:locationChangeDone:forDataSource:]):
        use previously-fetched local variable "frame" rather than getting it from
        the dataSource again. This is not only trivially faster in the normal case,
        but also avoids a bug when the code earlier in this method triggers another
        page load (as in the showErrorPage:... case).

        * English.lproj/Localizable.strings:
        updated for these changes

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6176 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Change by Darin. Reviewed by me.
kocienda [Fri, 5 Mar 2004 18:20:36 +0000 (18:20 +0000)]
    Change by Darin. Reviewed by me.

        * kwq/DOM.mm: Fixed the following functions to deal with
        casting objects derived from NodeImpl back and forth to
        NodeImpl given that the derived classes use multiple
        (-[DOMDocument _documentImpl]):
        (-[DOMCharacterData _characterDataImpl]):
        (-[DOMAttr _attrImpl]):
        (-[DOMElement _elementImpl]):
        (-[DOMText _textImpl]):
        (-[DOMDocumentType _documentTypeImpl]):
        (-[DOMNotation _notationImpl]):
        (-[DOMEntity _entityImpl]):
        (-[DOMProcessingInstruction _processingInstructionImpl]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6175 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Implementation of NP_JavaScriptObject. This is the 'C' class
rjw [Fri, 5 Mar 2004 01:34:45 +0000 (01:34 +0000)]
Implementation of NP_JavaScriptObject.  This is the 'C' class
that wraps a JavaScript object.  Still have more stubs to
implement before this is complete.

        Reviewed by Chris.

        * JavaScriptCore.pbproj/project.pbxproj:
        * bindings/NP_jsobject.cpp: Added.
        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:
        * bindings/runtime_object.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6171 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
cblu [Thu, 4 Mar 2004 23:34:38 +0000 (23:34 +0000)]

- Made image dragging and copying always work without needing to re-download by using the data source's WebResource of the image instead of relying on the Foundation cache.
- Fixed a "drag to self" problem I introduced in my last check-in. You could drag a URL from a WebHTMLView and drop it on its own WebView which we shouldn't allow.

        Reviewed by rjw.

        * ChangeLog:
        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge fileWrapperForURL:]): call _fileWrapperForURL on WebDataSource
        * WebView.subproj/WebDataSource.m:
        (-[WebDataSource _fileWrapperForURL:]): moved from WebView, creates a wrapper from a WebResource
        * WebView.subproj/WebDataSourcePrivate.h:
        * WebView.subproj/WebDefaultContextMenuDelegate.m:
        (-[WebDefaultUIDelegate copyImageToClipboard:]): call [WebDataSource _fileWrapperForURL:]
        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _handleMouseDragged:]): call [WebDataSource _fileWrapperForURL:]
        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): call [WebDataSource _fileWrapperForURL:]
        (-[WebHTMLView _dragOperationForDraggingInfo:]): new, factored out from draggingUpdated:
        (-[WebHTMLView draggingEntered:]): call _dragOperationForDraggingInfo:, if NSDragOperationNone, forward to WebView to it can handle the drag
        (-[WebHTMLView draggingUpdated:]): ditto
        (-[WebHTMLView concludeDragOperation:]): ditto
        * WebView.subproj/WebResource.m:
        (-[WebResource _fileWrapperRepresentation]): new
        * WebView.subproj/WebResourcePrivate.h:
        * WebView.subproj/WebView.m:
        (-[WebViewPrivate dealloc]): release draggedTypes, a new ivar that keeps track of drag types that we're currently registered for
        (-[WebView _setDraggedTypes:]): new
        (-[WebView unregisterDraggedTypes]): new, calls _setDraggedTypes then super
        (-[WebView registerForDraggedTypes:]): ditto
        (-[WebView _dragOperationForDraggingInfo:]): new, compares the types on the pasteboard against the types we are currently registered for. Normally the AppKit handles this for us, but since these messages can be forwarded from WebHTMLView, we need to do this comparison ourselves.
        (-[WebView draggingEntered:]): calls _dragOperationForDraggingInfo:
        (-[WebView draggingUpdated:]): ditto
        (-[WebView concludeDragOperation:]): ditto
        * WebView.subproj/WebViewPrivate.h: define new draggedTypes ivar


Removed "Download Image" context menus because images no longer need to be re-downloaded.

        Reviewed by rjw.

        * ContextMenuHandler.m:
        (-[WebDataSource isDataLocalForURL:]): new category, moved from the WebView category
        (-[BrowserWebView webView:contextMenuItemsForElement:defaultMenuItems:]): call isDataLocalForURL on WebDataSource
        (-[BrowserWebView saveFileWrapperForURLKey:menuItem:]): call _fileWrapperForURL on WebDataSource, use the resource to get the MIME type if possible
        (-[BrowserWebView saveFileWrapperToDownloadsFolderForURLKey:menuItem:]): call _fileWrapperForURL on WebDataSource

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6170 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Added NP_Array implementation.
rjw [Thu, 4 Mar 2004 23:24:00 +0000 (23:24 +0000)]
Added NP_Array implementation.

Changed NP_Boolean to just depend on two static instances, no
space is required for values.

        Reviewed by Chris.

        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6169 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed a typo.
cblu [Thu, 4 Mar 2004 00:39:58 +0000 (00:39 +0000)]
Fixed a typo.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView concludeDragOperation:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6167 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed: <rdar://problem/3576070>: REGRESSION: web view won't accept drag of webloc...
cblu [Thu, 4 Mar 2004 00:29:32 +0000 (00:29 +0000)]
Fixed: <rdar://problem/3576070>: REGRESSION: web view won't accept drag of webloc file

        Reviewed by rjw.

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView draggingUpdated:]): if we're not handling the drag, forward this message to the WebView since it may want to handle it
        (-[WebHTMLView concludeDragOperation:]): if we're not handling the drag, forward this message to the WebView since it may want to handle it

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6166 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoJavaScriptCore:
darin [Wed, 3 Mar 2004 22:56:40 +0000 (22:56 +0000)]

        Reviewed by Vicki.

        * English.lproj/InfoPlist.strings: Removed. No need to localize the version and
        copyright string, and that's all that was in here.
        * JavaScriptCore.pbproj/project.pbxproj: Removed InfoPlist.strings from build.


        Reviewed by Vicki.

        * English.lproj/InfoPlist.strings: Removed. No need to localize the version and
        copyright string, and that's all that was in here.
        * WebCore.pbproj/project.pbxproj: Removed InfoPlist.strings from build.


        Reviewed by Vicki.

        * English.lproj/InfoPlist.strings: Removed. No need to localize the version and
        copyright string, and that's all that was in here.
        * WebKit.pbproj/project.pbxproj: Removed InfoPlist.strings from build.


        Reviewed by Vicki.

        * English.lproj/InfoPlist.strings: Removed version, copyright message, and CFBundleName.
        We won't localize any of these (it's named "Safari" worldwide).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6165 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago More 'C' binding implementation. Fleshed out all the
rjw [Wed, 3 Mar 2004 22:50:07 +0000 (22:50 +0000)]
More 'C' binding implementation.  Fleshed out all the
'primitive' data types.

        Reviewed by Chris.

        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6164 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago More 'C' binding implementation.
rjw [Wed, 3 Mar 2004 20:04:03 +0000 (20:04 +0000)]
More 'C' binding implementation.

        Reviewed by Chris.

        * bindings/NP_runtime.cpp:
        * bindings/NP_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6163 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Chris
kocienda [Wed, 3 Mar 2004 18:49:22 +0000 (18:49 +0000)]
    Reviewed by Chris

        * copy-webcore-files-to-webkit: Fixed up this script so that
it does not fail if it is running "non-locally", like for
B&I. The idiom is to check these files into WebKit after
copying them from WebCore, hence this script is merely
a convenience to keep the files in sync.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6161 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Speed up access to the children arrays of accessibility objects by caching mutable...
hyatt [Wed, 3 Mar 2004 18:45:52 +0000 (18:45 +0000)]
Speed up access to the children arrays of accessibility objects by caching mutable arrays of children
and nulling them out only when the children change.

        Reviewed by john

        * khtml/rendering/render_container.cpp:
        * kwq/KWQAccObject.h:
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject detach]):
        (-[KWQAccObject accessibilityAttributeValue:]):
        (-[KWQAccObject childrenChanged]):
        (-[KWQAccObject clearChildren]):
        * kwq/KWQAccObjectCache.h:
        * kwq/KWQAccObjectCache.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6160 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoTests:
kocienda [Wed, 3 Mar 2004 00:42:49 +0000 (00:42 +0000)]

        Reviewed by me

        * Blot/BlotDocument.m:
        (-[BlotDocument webView:didFinishLoadForFrame:]): Remove
        error out parameter from DOM call.


        Reviewed by Darin and me. Coding by Darin and me.

        1) Fix some places that were calling [self class], in at
        least one case calling a method not defined on the class
        (not gonna work).
        2) Add underscore prefix for all non-API method names.
        3) Make DOMObject refuse to init, which might prevent
        problems where people get confused and think they can
        subclass or instantiate it or its subclasses.
        4) Use some C++ mojo to replace NSStringToDOMString and
        DOMStringToNSString with type conversions built into the
        DOMString class.
        5) Removed NSError out parameters from the API. Methods
        now throw NSExceptions.
        6) Exception code local variables now initialized before
        passing to khtml DOM impl calls.
        7) Various other cleanups and tweaks.

        * khtml/dom/dom_string.h
        * khtml/xml/dom_atomicstring.h
        * kwq/DOM.h
        * kwq/DOM.mm
        * kwq/DOMInternal.h
        * kwq/KWQKHTMLPart.mm
        * kwq/WebCoreBridge.mm


        Reviewed by NOBODY (OOPS!).

        * DOM.subproj/DOM.h: Checked in header copied over
        from WebCore.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6159 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Removed retain/release from NP_Class. Classes will not be allowed to implement...
rjw [Wed, 3 Mar 2004 00:20:30 +0000 (00:20 +0000)]
Removed retain/release from NP_Class.  Classes will not be allowed to implement their
own customer retain/release scheme.

        Reviewed by Chris.

        * bindings/NP_runtime.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6158 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years agoWebKit:
rjw [Wed, 3 Mar 2004 00:17:26 +0000 (00:17 +0000)]
Added WebJavaScriptObject API.  The location of this file may

        Reviewed by Chris.

        * Plugins.subproj/NP_objc.h: Added.
        * WebKit.pbproj/project.pbxproj:

Added NP_SAP API.  This API includes the new entry points
used to bind native interfaces to JavaScript.  It's final location
may change.

Made changes to KWQKHTMLPart.mm to reflect changes in names
on RootObject.

        Reviewed by Chris.

        * WebCore.pbproj/project.pbxproj:
        * khtml/ecma/NP_SAP.h: Added.
        * kwq/KWQKHTMLPart.mm:
        * kwq/WebCoreBridge.mm:

C binding API.  Partial implementation.

Completed ObjectiveC bindings (not based on the C API).  These will re-implemented over the C binding API, but I wanted to get this code in the tree.

Factored root object reference counting scheme.  It is now useful independent
of LiveConnect.

        Reviewed by Chris.

        * JavaScriptCore.pbproj/project.pbxproj:
        * bindings/NP_runtime.cpp: Added.
        * bindings/NP_runtime.h: Added.
        * bindings/jni/jni_jsobject.cpp:
        * bindings/jni/jni_jsobject.h:
        * bindings/objc/objc_jsobject.h:
        * bindings/objc/objc_jsobject.mm:
        (-[JavaScriptObject initWithObjectImp:KJS::root:Bindings::]):
        (-[JavaScriptObject dealloc]):
        (-[JavaScriptObject _convertValueToObjcValue:KJS::]):
        (-[JavaScriptObject call:arguments:]):
        (-[JavaScriptObject evaluate:]):
        (-[JavaScriptObject getMember:]):
        (-[JavaScriptObject setMember:value:]):
        (-[JavaScriptObject removeMember:]):
        (-[JavaScriptObject toString]):
        (-[JavaScriptObject getSlot:]):
        (-[JavaScriptObject setSlot:value:]):
        * bindings/objc/objc_utility.h:
        * bindings/objc/objc_utility.mm:
        * bindings/runtime_root.cpp: Added.
        * bindings/runtime_root.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6157 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Reviewed by Darin.
mjs [Tue, 2 Mar 2004 21:15:12 +0000 (21:15 +0000)]
    Reviewed by Darin.

<rdar://problem/3549201>: repro crash in KHTMLPart::begin inside JavaScript code (gmpartsdirect.com)

Added some null checks. I am not sure why this page attaches a
document that has no view, but these changes make it work

* khtml/khtml_part.cpp:
        (KHTMLPart::begin): Add check for null view before use.  *
        (DocumentImpl::close): ditto
        (DocumentImpl::recalcStyle): Add check for null paint device.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6156 268f45cc-cd09-0410-ab3c-d52691b4dbfc

18 years ago Fixed: <rdar://problem/3575598>: REGRESSION: Safari crashes at IS&T website
cblu [Tue, 2 Mar 2004 20:00:48 +0000 (20:00 +0000)]
Fixed: <rdar://problem/3575598>: REGRESSION: Safari crashes at IS&T website

        Reviewed by darin.

        * WebView.subproj/WebDataSource.m:
        (-[WebDataSourcePrivate dealloc]): don't stop the icon loader here because that can cause an infinite loop
        (-[WebDataSource _stopLoadingInternal]): always stop the icon loader here instead of just when the data source is loading as well.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6155 268f45cc-cd09-0410-ab3c-d52691b4dbfc