WebKit-https.git
19 years ago Added license and acknowledgements.
mjs [Fri, 24 May 2002 22:12:53 +0000 (22:12 +0000)]
Added license and acknowledgements.

* AUTHORS: Added.
* COPYING.LIB: Added.
* THANKS: Added.

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

19 years agomodified changelogs with 0.3 markers
sheridan [Fri, 24 May 2002 16:57:54 +0000 (16:57 +0000)]
modified changelogs with 0.3 markers

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

19 years agoAlexander-6 version
sheridan [Fri, 24 May 2002 15:45:35 +0000 (15:45 +0000)]
Alexander-6 version

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

19 years agoWebCore:
mjs [Thu, 23 May 2002 22:44:52 +0000 (22:44 +0000)]
WebCore:
Fixes for the following (the first bug also requires WebKit and
WebBrowser changes):

Radar 2896391 - command-click should open link in new window
Radar 2935858 - two mails for each mailto:

* khtml/html/html_inlineimpl.cpp:
(HTMLAnchorElementImpl::defaultEventHandler): Set flag for Meta
key in addition to Control, Shift and Alt, since the Command key
is treated as Meta.
* kwq/KWQKHTMLPart.mm:
(KHTMLPart::urlSelected): Open a new window if the user
command-clicked.
(KHTMLPart::khtmlMouseMoveEvent): Clean up use of braces and ifdefs to
make prepare-ChangeLog happy.
(KHTMLPart::khtmlMouseReleaseEvent): Remove code that tried to
process link click events here. This made link clicks get
processed twice, now that mouse events are hooked up for real.
* kwq/external.h: prototype openNewWindowWithURL: method.

WebKit:
WebKit part of the fix for:

Radar 2896391 - command-click should open link in new window

* WebView.subproj/IFBaseWebController.mm:
(-[IFBaseWebController openNewWindowWithURL:]): Default
implementation silently does nothing.
* WebView.subproj/IFWebController.h: Add openNewWindowWithURL:
method.
* WebView.subproj/IFWebView.mm:
(-[IFWebView _addModifiers:toState:]): Split out modifier key
handling to here. Treat Command as Meta.
(-[IFWebView mouseUp:]): Use new method to set key modifiers for
mouse events.
(-[IFWebView mouseDown:]): Use new method to set key modifiers for
mouse events.
(-[IFWebView keyDown:]): Use new shared code for key modifiers.
(-[IFWebView keyUp:]): Use new shared code for key modifiers.

WebBrowser:
WebBrowser part of the fix for:

Radar 2896391 - command-click should open link in new window

* WebController.m:
(-[WebController openNewWindowWithURL:]): Implement this new
IFWebController method by opening a new browser window.

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

19 years ago2002-05-23 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 23 May 2002 22:23:45 +0000 (22:23 +0000)]
2002-05-23  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Maciej Stachowiak

        Fix for this bug:

        Radar 2935882 (IFURLFileReader class has unbalanaced release count on an NSData ivar)

        IFURLFileReader can create an ivar that points to a data using an method that
        returns an autoreleased object. Then, without retaining the data anywhere
        internally, it releases the data in its dealloc method.

        This has been fixed. Now the retain/release count is guaranteed to be balanced

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileReader initWithPath:])

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

19 years ago2002-05-23 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 23 May 2002 22:11:50 +0000 (22:11 +0000)]
2002-05-23  Kenneth Kocienda  <kocienda@apple.com>

        More work to fix this bug:

        Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)

        There was yet two more cases where the refresh timers were getting clobbered.
        Fixed.

        * khtml/ecma/kjs_window.cpp:
        (WindowQObject::parentDestroyed)
        * khtml/khtmlview.cpp:
        (KHTMLView::clear)

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

19 years ago Fixed crasher 2935757. I still need to investigate the root cause
rjw [Thu, 23 May 2002 22:01:54 +0000 (22:01 +0000)]
Fixed crasher 2935757.  I still need to investigate the root cause
    of this problem.

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

19 years ago2002-05-23 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 23 May 2002 18:36:13 +0000 (18:36 +0000)]
2002-05-23  Kenneth Kocienda  <kocienda@apple.com>

        Fixes for these bugs:

        Radar 2883631 (need to implement support for META HTTP_EQUIV=REFRESH)
        Radar 2935472 (Non-standard html pages don't always get decoded)

WebCore

        * khtml/khtml_part.cpp: Don't kill all timers. Just kill the ones for this object.
        (KHTMLPart::~KHTMLPart):
        * khtml/khtml_part.h: Modified interface to slotData to add a flag for when all data
          for a load has been received.
        * khtml/khtmlview.cpp:
        (KHTMLView::~KHTMLView): Don't kill all timers. Just kill the ones for this object.
        * kwq/KWQKHTMLPart.mm:
        (KHTMLPart::slotData): Senses when text encoding is not available, but all data has been received.
        (KHTMLPart::write): Ditto
        (KHTMLPart::scheduleRedirection):
        * libwebcore.exp: Changed symbol for slotData

WebKit:

        * WebView.subproj/IFMainURLHandleClient.h:
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient setContentPolicy:]): Updated method to use new processData interface.
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Senses when all data has been received for a load.
        (-[IFMainURLHandleClient processData:isComplete:allDataReceived:]): Modified interface to add a flag
          for when all data for a load has been received.

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

19 years agochanging version number back to "unofficial"
sheridan [Thu, 23 May 2002 16:38:09 +0000 (16:38 +0000)]
changing version number back to "unofficial"
tree is open

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

19 years agoWebKit:
mjs [Thu, 23 May 2002 13:13:45 +0000 (13:13 +0000)]
WebKit:
Move authentication panel to WebKit and make it a sheet, fixing:

Radar 2876445 - Authentication panel should be a sheet
Radar 2876449 - The Alexander authentication panel should be moved
to WebKit for use as a standard one

* Panels.subproj/English.lproj/IFAuthenticationPanel.nib: Added.
* Panels.subproj/IFAuthenticationPanel.h: Added.
* Panels.subproj/IFAuthenticationPanel.m: Added.
* Panels.subproj/IFPanelAuthenticationHandler.h: Added.
* Panels.subproj/IFPanelAuthenticationHandler.m: Added.
* Panels.subproj/IFStandardPanels.h: Added.
* Panels.subproj/IFStandardPanels.m: Added.
* Panels.subproj/IFStandardPanelsPrivate.h: Added.
* WebKit.pbproj/project.pbxproj: Add new files to build.
* Plugins.subproj/IFPluginStream.mm:
(-[IFPluginStream IFURLHandleResourceDidBeginLoading:]): Notify of
load start.
(-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]): Notify
of load end.
(-[IFPluginStream IFURLHandleResourceDidCancelLoading:]): Likewise.
(-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
(-[IFPluginStream IFURLHandle:didRedirectToURL:]): Notify that old
URL is no longer loading, but new one is.
* WebView.subproj/IFBaseWebControllerPrivate.h:
* WebView.subproj/IFBaseWebControllerPrivate.mm:
(-[IFBaseWebController _didStartLoading:]): New private method
used to track what URLs are loading on behalf of this controller.
(-[IFBaseWebController _didStopLoading:]): Likewise.

* WebView.subproj/IFMainURLHandleClient.mm:
(-[IFMainURLHandleClient IFURLHandleResourceDidBeginLoading:]): Notify
of load start.
(-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]): Notify
of load end.
(-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]): Likewise.
(-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]): Likewise.
(-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]): Likewise.
(-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]): Notify of
load end and start.

WebCore:
Notify when loads of sub-URLs start and stop, so panels for these
can be attached to the right windows.

* kwq/KWQKloader.mm:
(-[URLLoadClient IFURLHandleResourceDidBeginLoading:]):
(-[URLLoadClient IFURLHandleResourceDidCancelLoading:]):
(-[URLLoadClient IFURLHandleResourceDidFinishLoading:data:]):
(-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]):
(-[URLLoadClient IFURLHandle:didRedirectToURL:]):
* kwq/external.h:

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

19 years ago Fixed download data source leaks when downloads are cancelled.
cblu [Thu, 23 May 2002 05:18:15 +0000 (05:18 +0000)]
    Fixed download data source leaks when downloads are cancelled.

        * WebView.subproj/IFBaseWebControllerPrivate.mm:
        (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):

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

19 years agoWebKit:
cblu [Thu, 23 May 2002 01:35:02 +0000 (01:35 +0000)]
WebKit:
        Removed activate events as this was causing problems
        for the QT plug-in.

        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView windowBecameKey:]):
        (-[IFPluginView windowResignedKey:]):

WebBrowser:

        Added licensing code.

        * WebBrowser.pbproj/project.pbxproj:
        * ___CFA2UC.c: Added.
        (NSGiantRaise):
        (iszero):
        (newGiant):
        (data_to_giant):
        (giant_with_data):
        (bitlen):
        (bitval):
        (isone):
        (gcompg):
        (gtog):
        (int_to_giant):
        (negg):
        (iaddg):
        (normal_addg):
        (normal_subg):
        (reverse_subg):
        (addg):
        (subg):
        (gshiftleft):
        (bdivg):
        (mulg):
        (binvaux):
        (binvg):
        (initialguess):
        (mulndigits):
        (gsquare):
        (newtondivide):
        (gsane):
        (stablemodg):
        (modg):
        (absg):
        (gshiftright):
        (extractbits):
        (gmersennemod):
        (GiantAuxMul):
        (GiantGrammarMul):
        (make_base):
        (ell_even):
        (ell_odd):
        (sequalg):
        (elliptic):
        (elliptic_simple):
        (which_curve):
        (new_key):
        (new_giant_from_hexstr):
        (__CFValidate):
        (My__CFCopyRegularEthernetAddrString):
        (Alexander___CFA2UC):
        (GetEthernetAddr):
        * main.m:
        (main):

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

19 years ago=== JavaScriptCore-5 ===
mjs [Thu, 23 May 2002 01:33:52 +0000 (01:33 +0000)]
=== JavaScriptCore-5 ===

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

19 years ago2002-05-22 Kenneth Kocienda <kocienda@apple.com>
kocienda [Wed, 22 May 2002 23:10:39 +0000 (23:10 +0000)]
2002-05-22  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Richard Williamson

        Removed an assertion that was causing problems with cache object removals.

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileDatabaseOp initWithCode:key:object:]):

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

19 years ago Additional additional callback when resource is first loaded.
rjw [Wed, 22 May 2002 22:45:58 +0000 (22:45 +0000)]
Additional additional callback when resource is first loaded.

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

19 years agoAdded retroactive review comments.
mjs [Wed, 22 May 2002 22:43:01 +0000 (22:43 +0000)]
Added retroactive review comments.

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

19 years ago Fixed crasher caused by not retaining.
cblu [Wed, 22 May 2002 20:31:44 +0000 (20:31 +0000)]
    Fixed crasher caused by not retaining.
        Fixed targeting bug.

        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
        (-[IFPluginView getURLNotify:target:notifyData:]):
        (-[IFPluginView getURL:target:]):
        (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
        (-[IFPluginView postURL:target:len:buf:file:]):

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

19 years ago Changed semantics of isLoading to only return YES if
rjw [Wed, 22 May 2002 18:34:12 +0000 (18:34 +0000)]
Changed semantics of isLoading to only return YES if
    the datasource is loading resources related to the intial
    load.  Other resources loaded later by JS will not be
    accounted for by isLoading.

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

19 years agoWebBrowser:
cblu [Wed, 22 May 2002 07:39:27 +0000 (07:39 +0000)]
WebBrowser:

- Added an array to the defaults for MIME types for downloaded files
  that we open after download.
- Made sure we check for IFContentPolicySave when checking if
  a data source is a download data source.
- Set policy to IFContentPolicySave for types not in the defaults.

* Defaults.plist:
* DownloadMonitor.m:
(-[DownloadMonitor monitorDownload:withProgress:error:dataSource:]):
* LocationChangeHandler.m:
(-[LocationChangeHandler requestContentPolicyForMIMEType:]):
* WebController.m:
(-[WebController receivedProgress:forResource:fromDataSource:]):
(-[WebController receivedError:forResource:partialProgress:fromDataSource:]):

WebKit:

- Removed obsolete MIME/download related code.
- Minor clean-ups.
- Made WebKit support all text/* MIME types.
- Now send NPP_URLNotify when pages requested by plug-ins are loaded.
- Simplified NPP_Get/NPP_Post code.

* MIME.subproj/IFContentHandler.h:
* MIME.subproj/IFContentHandler.m:
* MIME.subproj/IFDownloadHandler.mm:
* MIME.subproj/IFMIMEDatabase.h: Removed.
* MIME.subproj/IFMIMEDatabase.m: Removed.
* MIME.subproj/IFMIMEHandler.h:
* MIME.subproj/IFMIMEHandler.m:
(+[IFMIMEHandler MIMEHandlerTypeForMIMEType:]):
(+[IFMIMEHandler canShowMIMEType:]):
* Plugins.subproj/IFPluginView.h:
* Plugins.subproj/IFPluginView.mm:
(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
(-[IFPluginView dealloc]):
(-[IFPluginView frameStateChanged:]):
(-[IFPluginView loadURL:inTarget:withNotifyData:andHandleAttributes:]):
(-[IFPluginView getURLNotify:target:notifyData:]):
(-[IFPluginView getURL:target:]):
(-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
(-[IFPluginView postURL:target:len:buf:file:]):
(-[IFPluginView invalidateRect:]):
(-[IFPluginView invalidateRegion:]):
(-[IFPluginView forceRedraw]):
* WebKit.pbproj/project.pbxproj:
* WebView.subproj/IFMainURLHandleClient.h:
* WebView.subproj/IFMainURLHandleClient.mm:
(-[IFMainURLHandleClient dealloc]):
(-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
(-[IFMainURLHandleClient processData:isComplete:]):
* WebView.subproj/IFWebFramePrivate.h:
* WebView.subproj/IFWebFramePrivate.mm:
(-[IFWebFrame _setState:]):

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

19 years ago Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel
mjs [Wed, 22 May 2002 07:09:04 +0000 (07:09 +0000)]
Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel

* kjs/internal.cpp:
(InterpreterImp::InterpreterImp): Set the interp pointer earlier,
in case garbage collection takes place while creating the global
values.

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

19 years ago Fixed baseline regression. Obvious of sites that have tables w/ backgrounds,
rjw [Wed, 22 May 2002 01:51:55 +0000 (01:51 +0000)]
Fixed baseline regression.  Obvious of sites that have tables w/ backgrounds,
    i.e. www.slashdot.org.

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

19 years ago Lots of changes for DHTML.
rjw [Wed, 22 May 2002 00:36:34 +0000 (00:36 +0000)]
Lots of changes for DHTML.
    Bugs fixes, and fixes to regressions.

    Changes to support additional DHTML events.

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

19 years ago2002-05-21 Kenneth Kocienda <kocienda@apple.com>
kocienda [Tue, 21 May 2002 21:54:09 +0000 (21:54 +0000)]
2002-05-21  Kenneth Kocienda  <kocienda@apple.com>

        Fix for this bug:

        Radar 2924728 (post form fails at pt.apple.com; succeeds at macosx.apple.com)

        Posted forms are now submitted with the IFURLHandleFlagLoadFromOrigin
        load flag set.  This prevents a potential bug which may cause a page
        with a form that uses itself as an action to be returned from the
        cache without submitting.

        * kwq/KWQKHTMLPart.mm:
        (KHTMLPart::submitForm)

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

19 years agoWebFoundation:
cblu [Tue, 21 May 2002 20:48:47 +0000 (20:48 +0000)]
WebFoundation:

        Fix for 2925907 - [IFURLHandle resourceData] returns nil until load is complete

        * CacheLoader.subproj/IFURLHandle.m:
        (-[IFURLHandle resourceData]):

WebKit:

        Content policy can now be sent at a later time to avoid blocking.

        * WebView.subproj/IFMainURLHandleClient.h:
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient initWithDataSource:part:]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):

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

19 years ago Move the tracking rect after the view has moved.
cblu [Tue, 21 May 2002 17:25:23 +0000 (17:25 +0000)]
    Move the tracking rect after the view has moved.

        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView viewHasMoved:]):

        Fixed logging.

        * Plugins.subproj/npapi.m:
        (NPN_UserAgent):
        (NPN_MemAlloc):
        (NPN_MemFree):
        (NPN_MemFlush):
        (NPN_ReloadPlugins):

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

19 years ago2002-05-21 Kenneth Kocienda <kocienda@apple.com>
kocienda [Tue, 21 May 2002 14:50:11 +0000 (14:50 +0000)]
2002-05-21  Kenneth Kocienda  <kocienda@apple.com>

        Merged these four include files into the precompiled header.
        These are used for the enhanced assertion/debuggin support I
        added yesterday.

        <signal.h>
        <sys/types.h>
        <sys/time.h>
        <sys/resource.h>

        * WebCore/WebCorePrefix.h
        * WebFoundation/WebFoundationPrefix.h
        * WebKit/WebFoundationPrefix.h

        * WebFoundation/WebFoundation.pbproj/project.pbxproj: PB decided that this file
        changed in some cryptic way.

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

19 years ago Added support for plug-ins to send URL requests to certain targets.
cblu [Tue, 21 May 2002 01:19:44 +0000 (01:19 +0000)]
    Added support for plug-ins to send URL requests to certain targets.

        Added frameNamed to IFWebFrame.

        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView getURLNotify:target:notifyData:]):
        (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
        * WebView.subproj/IFWebFrame.h:
        * WebView.subproj/IFWebFrame.mm:
        (-[IFWebFrame frameNamed:]):

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

19 years ago Forgot one file.
darin [Tue, 21 May 2002 00:51:19 +0000 (00:51 +0000)]
Forgot one file.

* khtml/khtml_part.moc: Added.

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

19 years ago Use more of the original khtml_part.cpp; a step in the direction of factoring
darin [Tue, 21 May 2002 00:30:41 +0000 (00:30 +0000)]
Use more of the original khtml_part.cpp; a step in the direction of factoring
our code out so more of it can go in WebKit and we don't need external.h.

* khtml/Makefile.am:
* khtml/khtml_part.cpp:
* khtml/khtml_part.h:
* khtml/khtmlpart_p.h:
Start compiling khtml_part.cpp and using khtmlpart_p.h again.

* kwq/KWQKHTMLPart.mm:
Remove code that was identical to khtml_part.cpp. We aren't going to use the
"copy and hack our copy" approach on this class for the long termk, and this
is the first step in cleaning things up.

* khtml/khtml_ext.h: Removed.
* khtml/khtml_factory.h: Removed.

* khtml/misc/loader.h:
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::recalcStyleSelector):
Remove some APPLE_CHANGES ifdefs we don't need any more.

* kwq/KWQDateTime.mm:
Simplify things like copy constructors.

* kwq/kdeui/kcursor.h:
* kwq/KWQKCursor.mm:
Add handCursor.

* kwq/KWQKHTMLFactory.mm:
Put in real implementations, not just placeholders.

* kwq/KWQKHTMLPartBrowserExtension.mm:
* kwq/KWQKInstance.mm:
* kwq/KWQPart.mm:
* kwq/KWQbrowserextension.mm:
Empty these files out, nothing in them is needed any more.

* kwq/khtml/khtml_settings.h:
* kwq/KWQKHTMLSettings.mm:
(KHTMLSettings::isJavaEnabled):
(KHTMLSettings::autoLoadImages):
(KHTMLSettings::isPluginsEnabled):
(KHTMLSettings::isJavaScriptEnabled):
(KHTMLSettings::isJavaScriptDebugEnabled):
Moved settings here from KWQKHTMLPart.mm

* kwq/kdecore/kurl.h:
* kwq/KWQKURL.mm:
(KURL::encodedHtmlRef):
(KURL::htmlRef):
Placeholders for these two, called in KHTMLPart, but maybe not really needed.

* kwq/KWQKloader.mm:
(Cache::preloadScript):
(Cache::preloadStyleSheet):
Empty functions for these, called in KHTMLPart but no implementation needed.

* kwq/qt/qtimer.h:
* kwq/KWQTimer.mm:
(QTimer::isActive):
(QTimer::start):
(QTimer::stop):
More timer functions.

* kwq/qt/qscrollview.h: Add one more function.

* kwq/kdecore/kinstance.h: Simplify.
* kwq/kdeui/kaction.h: Simplify.
* kwq/khtml/khtml_factory.h: Simplify.
* kwq/kparts/browserextension.h: Simplify.
* kwq/kparts/part.h: Simplify.
* kwq/qt/qdatetime.h: Simplify.

* kwq/kdecore/klibloader.h: Added.
* kwq/khtml/khtml_ext.h: Added.
* kwq/kparts/partmanager.h: Added.
Nearly-empty files with just simple placeholders so we can compile more.

* kwq/dcop/kdatastream.h: Added.
* kwq/kdecore/kmultipledrag.h: Added.
* kwq/kdecore/ktempfile.h: Added.
* kwq/kdecore/kurldrag.h: Added.
* kwq/kdeui/kstdaction.h: Added.
* kwq/kdeui/kxmlguifactory.h: Added.
* kwq/khtml/khtml_find.h: Added.
* kwq/khtml/khtml_iface.h: Added.
* kwq/khtml/khtml_pagecache.h: Added.
* kwq/khtml/khtml_run.h: Added.
* kwq/kio/kssl/ksslcertchain.h: Added.
* kwq/kio/kssl/ksslinfodlg.h: Added.
* kwq/kio/ktrader.h: Added.
* kwq/qt/private/qucomextra_p.h: Added.
* kwq/qt/qclipboard.h: Added.
* kwq/qt/qmetaobject.h: Added.
Empty files just so includes of these names will compile.

* libwebcoretests.exp: Remove one export that's no longer needed.

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

19 years ago Added support for onChange and window.location, i.e.:
rjw [Mon, 20 May 2002 23:43:02 +0000 (23:43 +0000)]
Added support for onChange and window.location, i.e.:
    http://javascript.internet.com/navigation/menu-automatic.html

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

19 years ago2002-05-20 Kenneth Kocienda <kocienda@apple.com>
kocienda [Mon, 20 May 2002 23:27:17 +0000 (23:27 +0000)]
2002-05-20  Kenneth Kocienda  <kocienda@apple.com>

Now includes <sys/time.h> to prevent possible build breakage
in the inclusion of <sys/resource.h>

* WebCore/kwq/kwqdebug.h
* WebKit/Misc.subproj/WebKitDebug.h
* WebFoundation/Misc.subproj/WebFoundationDebug.h

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

19 years ago2002-05-20 Kenneth Kocienda <kocienda@apple.com>
kocienda [Mon, 20 May 2002 22:42:31 +0000 (22:42 +0000)]
2002-05-20  Kenneth Kocienda  <kocienda@apple.com>

        Changed assertion failure code to send a SIGQUIT instead
        of raising an NSException.

        * kwq/kwqdebug.h

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

19 years ago2002-05-20 Kenneth Kocienda <kocienda@apple.com>
kocienda [Mon, 20 May 2002 22:24:31 +0000 (22:24 +0000)]
2002-05-20  Kenneth Kocienda  <kocienda@apple.com>

        Changed assertion failure code to send a SIGQUIT instead
        of raising an NSException.

        * Misc.subproj/WebKitDebug.h

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

19 years ago2002-05-20 Kenneth Kocienda <kocienda@apple.com>
kocienda [Mon, 20 May 2002 21:54:33 +0000 (21:54 +0000)]
2002-05-20  Kenneth Kocienda  <kocienda@apple.com>
        Reviewed by: John Sullivan

        Fix for this bug:

        Radar 2931078 (IFURLFileDatabase initialization is not threadsafe)

        In addition, I have added several assertion checks to the code. Note
        that each of these assertion checks is of the "failure should be impossible"
        variety.

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileReader initWithPath:]):
        (-[IFURLFileDatabaseOp initWithCode:key:object:]):
        (-[IFURLFileDatabaseOp perform:]):
        (databaseInit):
        (-[IFURLFileDatabase initWithPath:]):
        (-[IFURLFileDatabase setObject:forKey:]):
        (-[IFURLFileDatabase removeObjectForKey:]):
        (-[IFURLFileDatabase objectForKey:]):
        (-[IFURLFileDatabase performSetObject:forKey:]):
        (-[IFURLFileDatabase performRemoveObjectForKey:]):
        (-[IFURLFileDatabase lazySync:]):

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

19 years agoWebFoundation:
cblu [Mon, 20 May 2002 20:56:24 +0000 (20:56 +0000)]
WebFoundation:

Added _IF_looksLikeAbsoluteURL.

* Misc.subproj/IFNSStringExtensions.h:
* Misc.subproj/IFNSStringExtensions.m:
(-[NSString _IF_looksLikeAbsoluteURL]):

WebKit:

Summary:
- Drag & Drop support.
- A whole lot of plug-in clean-up and minor bug fixes.

Moved the following functions from npapi to IFPlugin.

* Plugins.subproj/IFPlugin.m:
(functionPointerForTVector):
(tVectorForFunctionPointer):

Only supply mouse coords when active.

* Plugins.subproj/IFPluginNullEventSender.h:
* Plugins.subproj/IFPluginNullEventSender.m:
(-[IFPluginNullEventSender initializeWithNPP:functionPointer:window:]):
(-[IFPluginNullEventSender dealloc]):
(-[IFPluginNullEventSender sendNullEvents]):

Minor clean-ups

* Plugins.subproj/IFPluginStream.mm:
(-[IFPluginStream dealloc]):
(-[IFPluginStream IFURLHandleResourceDidFinishLoading:data:]):
(-[IFPluginStream IFURLHandleResourceDidCancelLoading:]):
(-[IFPluginStream IFURLHandle:resourceDidFailLoadingWithResult:]):

Removed the isMouseDown flag from the following functions
as it was unnecessary.

Cleaned up logging.

* Plugins.subproj/IFPluginView.mm:
(-[IFPluginView modifiersForEvent:]):
(-[IFPluginView getCarbonEvent:withEvent:]):
(-[IFPluginView sendUpdateEvent]):
(-[IFPluginView becomeFirstResponder]):
(-[IFPluginView resignFirstResponder]):
(-[IFPluginView mouseDown:]):
(-[IFPluginView mouseUp:]):
(-[IFPluginView mouseExited:]):
(-[IFPluginView setWindow]):
(-[IFPluginView start]):
(-[IFPluginView stop]):

URLForString now uses _IF_looksLikeAbsoluteURL.

(-[IFPluginView URLForString:]):

Implemented the following:

(-[IFPluginView invalidateRect:]):
(-[IFPluginView invalidateRegion:]):
(-[IFPluginView forceRedraw]):

Put implementation of GetValue SetValue in npapi.

* Plugins.subproj/npapi.h:
* Plugins.subproj/npapi.m:
(NPN_GetValue):
(NPN_SetValue):

Added drag & drop support.

* WebView.subproj/IFWebView.mm:
(-[IFWebView initWithFrame:]):
(-[IFWebView setCanDragFrom:]):
(-[IFWebView canDragFrom]):
(-[IFWebView setCanDragTo:]):
(-[IFWebView canDragTo]):
(-[IFWebView draggingEntered:]):
(-[IFWebView prepareForDragOperation:]):
(-[IFWebView performDragOperation:]):
* WebView.subproj/IFWebViewPrivate.h:
* WebView.subproj/IFWebViewPrivate.mm:
(-[IFWebViewPrivate dealloc]):

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

19 years ago - fixed 2923492 -- No way to put separators in Bookmarks menu
sullivan [Mon, 20 May 2002 19:15:11 +0000 (19:15 +0000)]
- fixed 2923492 -- No way to put separators in Bookmarks menu
- fixed 2927561 -- Added child of bookmarks folder should be first, not last
- fixed 2927575 -- New bookmark should have blank URL
- fixed 2927589 -- "Modify" and "Remove" should be "Edit" and "Delete"
- fixed 2923220 -- Bookmarks window should reopen at launch if it was open at quit
- fixed bug where bookmark window would sometimes start with a horiz scrollbar
- fixed bug where deleting nested bookmark would leave last row selected

* PreferenceKeys.h: define ShowBookmarksPreferenceKey

* AppController.m:
(-[AppController applicationDidFinishLaunching:]):
Open bookmarks window if preference says to.
(-[AppController _insertBookmark:intoMenu:atIndex:]):
Handle separators.

* BookmarksController.m:
(-[BookmarksController windowDidLoad]): Set self as delegate so we will receive
windowWillClose:; setAutoresizesOutlineColumn:NO so column widths won't change
at launch.
(-[BookmarksController removeSelectedBookmarks:]):
Reselect previously selected item if it's still valid
(-[BookmarksController _newItemWithTitle:image:URLString:type:]):
Change isLeaf parameter to bookmark type. Handle separators (don't edit title
of newly-created separator). If expanded folder is selected, make new item first.
(-[BookmarksController _newSeparator:]): Implemented.
(-[BookmarksController outlineView:objectValueForTableColumn:byItem:]):
Return "--" as string to represent separator, for now.
(-[BookmarksController _newFolder:]),
(-[BookmarksController _newBookmark:]):
(-[BookmarksController outlineView:isItemExpandable:]):
(-[BookmarksController outlineView:validateDrop:proposedItem:proposedChildIndex:]):
(-[BookmarksController outlineView:shouldEditTableColumn:item:]):
Replaced uses of isLeaf with bookmarkType.
(-[BookmarksController toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:]):
Handle separator item.
(-[BookmarksController toolbarAllowedItemIdentifiers:]): Include "New Separator" item.
(-[BookmarksController showWindow:]): Set "bookmarks showing" preference to YES.
(-[BookmarksController windowWillClose:]): Set "bookmarks showing" preference to NO.

* BrowserDocument.m:
(-[BrowserDocument addBookmark:]):
Replaced use of isLeaf with bookmarkType.

* GlobalHistory.m:
(-[GlobalHistory addSelectedItemsToBookmarks:]):
Replaced use of isLeaf with bookmarkType.

* Resources/Images/new_separator.tiff: Added.

* WebBrowser.pbproj/project.pbxproj: Updated for new file.

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

19 years ago * khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
darin [Sun, 19 May 2002 16:02:40 +0000 (16:02 +0000)]
* khtml/rendering/render_object.cpp: (RenderObject::drawBorder):
Add missing break statement so borders don't draw strangely.

* khtml/rendering/render_style.h: Remove unneeded QColor workaround,
now that we handle invalid colors properly.

* kwq/KWQColor.mm:
(createStaticConstructorAutoreleasePool): New solution to the problem
of autorelease at static constructor time.
(getNamedColors): Function that creates this dictionary when needed
rather than creating it inside an init function.
(QColor::QColor): Share code with setRgb, get rid of _initialize.
(hex2int): Return -1 for bad digit rather than 0.
(decodeColorFromHexColorString): Make more robust and simpler.
(QColor::setNamedColor): Set color to invalid rather than black when
the passed in name is empty or unrecognized.
(QColor::red), (QColor::green), (QColor::blue): Round instead of truncating.
(QColor::setRgb): Set color to invalid if r, g, or b is out of range.
(QColor::operator=): Simplify.
(QColor::operator==): Handle invalid colors correctly.
(QColor::getNSColor): Return black of invalid colors.

* kwq/KWQCursor.mm: Simplify cursor globals.

* kwq/KWQPainter.mm:
(QPainter::_setColorFromBrush): Use getNSColor() to handle invalid colors correctly.
(QPainter::_setColorFromPen): Use getNSColor() to handle invalid colors correctly.
(QPainter::drawLine): Add code to respect style and width and handle endpoints in a
way that will make the lines look like Qt users expect.
(QPainter::drawText): Use getNSColor() to handle invalid colors correctly.
(QPainter::drawUnderlineForText): Use getNSColor() to handle invalid colors correctly.
(QPainter::fillRect): Use getNSColor() to handle invalid colors correctly.

* kwq/KWQPen.mm: (QPen::QPen): (QPen::setStyle): Remove use of MPenStyle.

* kwq/KWQPixmap.mm: (QPixmap::QPixmap): Add comments.

* kwq/qt/qcolor.h: Simplify ifdefs, remove cname, _initialize, globals_init, and
initGlobalColors.

* kwq/qt/qnamespace.h: Remove AlignTop, AlignBottom, SingleLine, ExpandTabs, DontPrint,
DashDotLine, DashDotDotLine, MPenStyle, WResizeNoRease, WRepaintNoErase, color0, color1,
darkRed, darkGreen, darkBlue, darkCyan, darkMagenta, darkYellow. Simplify the QColor
and QCursor globals.

* kwq/qt/qpen.h: QPainter is no longer a friend class. Remove linest.

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

19 years ago * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
darin [Sat, 18 May 2002 01:35:23 +0000 (01:35 +0000)]
* khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
OK. This time it's correct.

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

19 years ago * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
darin [Sat, 18 May 2002 01:22:54 +0000 (01:22 +0000)]
* khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
Roll the change out while I see why it causes a crash.

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

19 years agoReplacing IFPluginStream.m with IFPluginStream.mm.
cblu [Sat, 18 May 2002 00:59:25 +0000 (00:59 +0000)]
Replacing IFPluginStream.m with IFPluginStream.mm.

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

19 years agoAdding this file.
cblu [Sat, 18 May 2002 00:55:09 +0000 (00:55 +0000)]
Adding this file.

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

19 years agoWebKit:
cblu [Sat, 18 May 2002 00:54:27 +0000 (00:54 +0000)]
WebKit:
  - Made IFPluginStream the URL handle client instead of IFPluginView.
        - Added support for NPP_PostURL and NPP_PostNotify.
        - Possible fix for 2928558.

        * Plugins.subproj/IFPluginStream.h:
        * Plugins.subproj/IFPluginView.h:
        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):NSURL for url
        instead of NSString
        (-[IFPluginView dealloc]):
        (-[IFPluginView setWindow]):
        (-[IFPluginView start]):
        (-[IFPluginView stop]):
        (-[IFPluginView webDataSource]):Accessor for IFPluginStream.
        (-[IFPluginView webController]):Accessor for IFPluginStream.
        (-[IFPluginView URLForString:]):
        (-[IFPluginView getURLNotify:target:notifyData:]):
        (-[IFPluginView postURLNotify:target:len:buf:file:notifyData:]):
        (-[IFPluginView postURL:target:len:buf:file:]):
        (-[IFPluginView destroyStream:reason:]):
        (-[IFPluginView status:]):
        (-[IFPluginView NPP_NewStream]): Accessor for IFPluginStream.
        (-[IFPluginView NPP_WriteReady]):Accessor for IFPluginStream.
        (-[IFPluginView NPP_Write]): Accessor for IFPluginStream.
        (-[IFPluginView NPP_StreamAsFile]): Accessor for IFPluginStream.
        (-[IFPluginView NPP_DestroyStream]): Accessor for IFPluginStream.
        (-[IFPluginView NPP_URLNotify]): Accessor for IFPluginStream.
        * WebCoreSupport.subproj/IFWebCoreViewFactory.m: Use new IFPluginView init method
        (-[IFWebCoreViewFactory viewForPluginWithURL:serviceType:arguments:baseURL:]):
        * WebKit.pbproj/project.pbxproj:

Tools:

        Use rm -rf to remove Labyrinth.

        * Tools/jersey/bin/jersey.pl:
        * Tools/jersey/html/cgi-bin/j.pl:

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

19 years ago * khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
darin [Fri, 17 May 2002 17:57:14 +0000 (17:57 +0000)]
* khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
Remove an old incorrect fix for a style leak in here and put in
a new correct fix.

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

19 years ago Fixed 2896350. Ignore DPI in images and render directly at pixel size.
rjw [Thu, 16 May 2002 22:43:11 +0000 (22:43 +0000)]
Fixed 2896350.  Ignore DPI in images and render directly at pixel size.

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

19 years ago Fixed 2925638. Don't send last progress message from resourceDataDidBecomeAvailable,
rjw [Thu, 16 May 2002 19:47:47 +0000 (19:47 +0000)]
Fixed 2925638.  Don't send last progress message from resourceDataDidBecomeAvailable,
it is sent from IFURLHandleResourceDidFinishLoading, avoiding duplication.

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

19 years ago0. I was being overly aggressive about
rjw [Thu, 16 May 2002 18:10:45 +0000 (18:10 +0000)]
0.  I was being overly aggressive about
finding substitute glyphs.

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

19 years ago * Plugins.subproj/IFPluginView.mm:
darin [Thu, 16 May 2002 17:45:32 +0000 (17:45 +0000)]
* Plugins.subproj/IFPluginView.mm:
(-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]):
Use this new getCarbonPath function rather than hardcoding assumptions
about "/tmp" being ":private:tmp".
(getCarbonPath): New.

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

19 years ago * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
darin [Thu, 16 May 2002 16:00:58 +0000 (16:00 +0000)]
* Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
Fixed log statement so development builds work again.

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

19 years ago * Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
darin [Thu, 16 May 2002 15:45:22 +0000 (15:45 +0000)]
* Plugins.subproj/IFPluginView.mm: (-[IFPluginView mouseUp:]):
Remove unused variable that breaks optimized builds.

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

19 years ago Another quick events cleanup pass.
darin [Thu, 16 May 2002 06:23:54 +0000 (06:23 +0000)]
Another quick events cleanup pass.

* Plugins.subproj/IFPluginNullEventSender.m:
(-[IFPluginNullEventSender sendNullEvents]): Use [IFPluginView getCarbonEvent:].

* Plugins.subproj/IFPluginView.h: Make almost all methods private.
* Plugins.subproj/IFPluginView.mm:
(+[IFPluginView getCarbonEvent:]): New.
(-[IFPluginView getCarbonEvent:]): New, calls class method.
(-[IFPluginView modifiersForEvent:isMouseDown:]): Reversed sense of btnState.
This flag is set if the mouse is up, not if the mouse is down.
(-[IFPluginView getCarbonEvent:withEvent:isMouseDown:]): New.
(-[IFPluginView getCarbonEvent:withEvent:]): New.
(-[IFPluginView sendActivateEvent:]): Now takes parameter for activate vs.
deactivate and uses [getCarbonEvent:].
(-[IFPluginView sendUpdateEvent]): Uses [getCarbonEvent:].
(-[IFPluginView becomeFirstResponder]): Uses [getCarbonEvent:].
(-[IFPluginView resignFirstResponder]): Uses [getCarbonEvent:].
(-[IFPluginView mouseDown:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
(-[IFPluginView mouseUp:]): Uses [getCarbonEvent:withEvent:isMouseDown:].
(-[IFPluginView mouseEntered:]): Uses [getCarbonEvent:withEvent:].
(-[IFPluginView mouseExited:]): Uses [getCarbonEvent:withEvent:].
(-[IFPluginView keyUp:]): Uses [getCarbonEvent:withEvent:].
(-[IFPluginView keyDown:]): Uses [getCarbonEvent:withEvent:].
(-[IFPluginView start]): Call [sendActivateEvent:YES].
(-[IFPluginView windowBecameKey:]): Call [sendActivateEvent:YES].
(-[IFPluginView windowResignedKey:]): Call [sendActivateEvent:NO].

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

19 years ago Fixed problem dealing w/ characters in range 0x7f - 0xa0.
rjw [Thu, 16 May 2002 00:22:30 +0000 (00:22 +0000)]
Fixed problem dealing w/ characters in range 0x7f - 0xa0.

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

19 years ago Fixed Flash mouse-down, mouse-over Flash bug.
cblu [Wed, 15 May 2002 23:58:29 +0000 (23:58 +0000)]
    Fixed Flash mouse-down, mouse-over Flash bug.
        Added support for modifiers (control-click etc) (2884451).
        A lot of events clean-up.

        * Plugins.subproj/IFPluginNullEventSender.m:
        (-[IFPluginNullEventSender sendNullEvents]):
        * Plugins.subproj/IFPluginView.h:
        * Plugins.subproj/IFPluginView.mm:
        (newCString):
        (-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]):
        (-[IFPluginView start]):
        (-[IFPluginView drawRect:]):
        (-[IFPluginView isFlipped]):
        (-[IFPluginView currentModifiers]):
        (-[IFPluginView modifiersForEvent:isMouseDown:]):
        (-[IFPluginView sendActivateEvent]):
        (-[IFPluginView sendUpdateEvent]):
        (-[IFPluginView becomeFirstResponder]):
        (-[IFPluginView resignFirstResponder]):
        (-[IFPluginView mouseDown:]):
        (-[IFPluginView mouseUp:]):
        (-[IFPluginView mouseEntered:]):
        (-[IFPluginView mouseExited:]):
        (-[IFPluginView keyUp:]):
        (-[IFPluginView keyDown:]):
        (-[IFPluginView windowBecameKey:]):
        (-[IFPluginView windowResignedKey:]):

        Case-sensitivity issue with an include.

        * WebView.subproj/IFWebView.mm:

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

19 years ago Alerts, useful for validating that js handlers work.
rjw [Wed, 15 May 2002 23:21:01 +0000 (23:21 +0000)]
Alerts, useful for validating that js handlers work.
    Validated that onsubmit is working.

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

19 years agoOops.
darin [Wed, 15 May 2002 21:00:12 +0000 (21:00 +0000)]
Oops.

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

19 years ago * kwq/qt/qguardedptr.h: Fix reversed sense of check in isNull. Fixes
darin [Wed, 15 May 2002 20:59:22 +0000 (20:59 +0000)]
* kwq/qt/qguardedptr.h: Fix reversed sense of check in isNull. Fixes
a bug that was causing a lot of DHTML not to work.

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

19 years ago2002-05-15 Kenneth Kocienda <kocienda@apple.com>
kocienda [Wed, 15 May 2002 19:45:33 +0000 (19:45 +0000)]
2002-05-15  Kenneth Kocienda  <kocienda@apple.com>

        * kwq/KWQInvisibleButton.h: Changed an #include of Cocoa.h to an #import

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

19 years ago * kwq/KWQListImpl.mm:
darin [Wed, 15 May 2002 19:03:10 +0000 (19:03 +0000)]
* kwq/KWQListImpl.mm:
(KWQListImpl::KWQListPrivate::copyList): Take out unnecessary line of code.
(KWQListImpl::KWQListPrivate::~KWQListPrivate): Delete the iterator nodes
also, not just the item nodes. Fixes a storage leak.
(KWQListIteratorImpl::KWQListIteratorPrivate::KWQListIteratorPrivate):
Change interface to take a list pointer so we don't rely on the undefined
behavior of &* on a null pointer.
(KWQListImpl::addIterator): Set up the prev pointer of the old head of
the list. This was causing the crash I was debugging.
(KWQListIteratorImpl::operator=): Simpler implementation.

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

19 years ago * Makefile.am:
darin [Wed, 15 May 2002 17:05:18 +0000 (17:05 +0000)]
* Makefile.am:
Use all-am and clean-am instead of all and clean because it's better and
to make "make check" at the top level work right.

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

19 years ago Work to support copying bookmarks, needed for drag & drop
sullivan [Wed, 15 May 2002 03:35:00 +0000 (03:35 +0000)]
Work to support copying bookmarks, needed for drag & drop
in Bookmarks window.

* Bookmarks.subproj/IFBookmark.h: Make IFBookmark conform to NSCopying.

* Bookmarks.subproj/IFBookmark.m:
(-[IFBookmark copyWithZone:]): insist that subclasses implement this.

* Bookmarks.subproj/IFBookmarkGroup.h:
* Bookmarks.subproj/IFBookmarkGroup.m:
(-[IFBookmarkGroup insertBookmark:atIndex:ofBookmark:]):
Removed this unnecessary method.

* Bookmarks.subproj/IFBookmarkLeaf.m:
(-[IFBookmarkLeaf copyWithZone:]): New method.

* Bookmarks.subproj/IFBookmarkList.m:
(-[IFBookmarkList copyWithZone:]): New method.

Fixed 2921730 -- Can't rearrange bookmarks in Bookmarks window

You can now drag and drop willy-nilly in the Bookmarks window to
rearrange items. It's currently using a private pasteboard type,
so you can't drop items from elsewhere or drag the bookmarks out
of the list. I know of one bug (dropping an item inside itself
makes it poof into nothingness) which I'll write up in a moment.

* BookmarksController.m:
(-[BookmarksController windowDidLoad]): register for our dragged type.
(-[BookmarksController _anyAncestorOfRow:inArray:]): New helper method,
used to avoid copying a folder deep and some of its children at the
same time.
(-[BookmarksController outlineView:writeItems:toPasteboard:]):
Write list of rows to pasteboard, after eliminating items whose ancestors are
also in set.
(-[BookmarksController outlineView:validateDrop:proposedItem:proposedChildIndex:]):
Move a drop on a leaf bookmark to be after the leaf bookmark.
(-[BookmarksController outlineView:acceptDrop:item:childIndex:]):
Do the move, by inserting copies of the moved items and then removing
the originals.

* OutlineViewPlus.m:
(-[OutlineViewPlus setAcceptsFirstMouse:]):
(-[OutlineViewPlus acceptsFirstMouse:]):
Removed debugging messages I accidentally left in here.

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

19 years ago Fixed exception in log code.
rjw [Wed, 15 May 2002 02:32:54 +0000 (02:32 +0000)]
Fixed exception in log code.

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

19 years ago Fixed 2926153, not getting correct messages after cancel.
rjw [Wed, 15 May 2002 01:59:33 +0000 (01:59 +0000)]
Fixed 2926153, not getting correct messages after cancel.
    Fixed leak of mouse events (Darin wanted this ASAP).

    Added another symbol for stack based event constructor.
    Change to support onLoad.

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

19 years agoWebCore:
cblu [Wed, 15 May 2002 00:19:12 +0000 (00:19 +0000)]
WebCore:

        Changed slotData to slotData(NSString *encoding, const char *bytes, int length)

        * khtml/khtml_part.h:
        * kwq/KWQKHTMLPart.mm:
        (KHTMLPart::slotData):
        * libwebcore.exp:

WebKit:

        Removed retain of the URL handle. This was causing everything to leak.

        * WebView.subproj/IFMainURLHandleClient.h:
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient initWithDataSource:part:]):
        (-[IFMainURLHandleClient dealloc]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
        (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
        (-[IFMainURLHandleClient processData:isComplete:]):

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

19 years ago * WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]):
darin [Wed, 15 May 2002 00:08:52 +0000 (00:08 +0000)]
* WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]):
Remove code that makes us the first responder. That's up to the higher levels,
not the web view.

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

19 years ago Fixed 2925291 -- CSS2 test page causes infinite recursion, crash
darin [Tue, 14 May 2002 20:53:18 +0000 (20:53 +0000)]
Fixed 2925291 -- CSS2 test page causes infinite recursion, crash

* khtml/rendering/render_container.cpp: (RenderContainer::addChild):
Add code to detect the case of a render object that uses text cell
style but is not itself a text style, and make sure we don't try to
nest such an object inside an infinite number of tables.

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

19 years ago * History.subproj/IFURIEntry.h:
sullivan [Tue, 14 May 2002 19:16:01 +0000 (19:16 +0000)]
* History.subproj/IFURIEntry.h:
Oops, deleted the prototype for setLastVisitedDate
accidentally, which made Jersey sad.

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

19 years ago Fixed 2919027 -- Need to remove unused code in WebKit/History.subproj
sullivan [Tue, 14 May 2002 18:07:23 +0000 (18:07 +0000)]
Fixed 2919027 -- Need to remove unused code in WebKit/History.subproj

* History.subproj/IFAttributedURL.h: Removed.
* History.subproj/IFBackForwardList.h: Removed large #ifdef.
* History.subproj/IFURIEntry.h,
* History.subproj/IFURIEntry.m: Removed all mention of unused
fields comment, creationDate, modificationDate
* WebKit.pbproj/project.pbxproj: Updated for removed file.

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

19 years ago * kwq/KWQListImpl.mm: (KWQListIteratorImpl::KWQListIteratorImpl):
darin [Tue, 14 May 2002 13:52:18 +0000 (13:52 +0000)]
* kwq/KWQListImpl.mm: (KWQListIteratorImpl::KWQListIteratorImpl):
Add a missing check for a null pointer.

* kwq/KWQGuardedPtr.mm: (KWQGuardedPtrBase::KWQGuardedPtrBase):
Remove an unnecessary call to "toFirst", because new iterators
already default to pointing to the first element of the list.

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

19 years ago * kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): Detach all the iterators from
darin [Tue, 14 May 2002 06:16:03 +0000 (06:16 +0000)]
* kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): Detach all the iterators from
the list when the list is destroyed. I thought this was done before, but it seems not.

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

19 years ago Added support for setting the content policy on the location change handler
cblu [Tue, 14 May 2002 05:43:14 +0000 (05:43 +0000)]
    Added support for setting the content policy on the location change handler
        and data source at any time instead of depending on an immediate response.

        * WebView.subproj/IFBaseWebController.mm:
        (-[IFBaseWebController haveContentPolicy:andPath:forLocationChangeHandler:]):
        * WebView.subproj/IFMainURLHandleClient.h:
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient initWithDataSource:part:]):
        (-[IFMainURLHandleClient dealloc]):
        (-[IFMainURLHandleClient setContentPolicy:]):
        (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
        (-[IFMainURLHandleClient IFURLHandle:didRedirectToURL:]):
        (-[IFMainURLHandleClient processData:isComplete:]):
        * WebView.subproj/IFWebController.h:
        * WebView.subproj/IFWebDataSourcePrivate.mm:
        (-[IFWebDataSource _setContentPolicy:]):
        * WebView.subproj/IFWebFrame.mm:
        (-[IFWebFrame setProvisionalDataSource:]):

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

19 years ago Fixed bug 2922884 (JavaScript object leak creating Image object from JavaScript).
darin [Tue, 14 May 2002 02:57:28 +0000 (02:57 +0000)]
Fixed bug 2922884 (JavaScript object leak creating Image object from JavaScript).
There was a reference loop created when a document contained a variable that
referenced an image, because images held references to the document; the C++
kind that do not participate in the JavaScript garbage collection.

* khtml/ecma/kjs_html.h: Use a QGuardedPtr to the DocumentImpl instead of using
a Document object.
* khtml/ecma/kjs_html.cpp:
(Image::tryPut): Change because the "doc" pointer is now a pointer to the
DocumentImpl, not the Document. Also check for 0, since it's now a QGuardedPtr
that can become 0.
(Image::Image): Newly out of line. Changed because the "doc" pointer is now a
pointer to the DocumentImpl, not the Document.

Since the solution used QGuardedPtr, I had to implement it.

* kwq/qt/qguardedptr.h: Put the implementation in a new KWQGuardedPtrBase class,
with only the bare minimum in a template. This new implementation uses iterators
on a QPtrList, which means there's not much code needed.
* kwq/KWQGuardedPtr.mm: (KWQGuardedPtrBase::KWQGuardedPtrBase): Rewrite to use
a QPtrListIterator to a dummy list in the QObject. This reuses code nicely, but
a custom-coded solution would be a bit more efficient.

* kwq/qt/qobject.h:
* kwq/KWQObject.mm: (QObject::QObject): Create the one-element list that's used
by the QGuardedPtr instances.

Since the above code needed to copy a QPtrListIterator, I needed to support that.

* kwq/qt/qlist.h: Move the iterator's copy constructor out of the private part,
and implement it. This class was strange in that it has a public assignment
operator, but a private unimplemented copy constructor. Implementing it was trivial,
though, so this was no obstacle.

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

19 years ago * kjs/value.h: Fix comment typos.
darin [Tue, 14 May 2002 02:56:45 +0000 (02:56 +0000)]
* kjs/value.h: Fix comment typos.

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

19 years ago * Makefile.am: Make WebCore precompiled headers depend on config.h
mjs [Tue, 14 May 2002 02:30:55 +0000 (02:30 +0000)]
* Makefile.am: Make WebCore precompiled headers depend on config.h
to fix build breakage from last change.

WebKit:
* WebKitPrefix.h: Gratuitous change to make the prefix file
rebuild.

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

19 years ago Removed libjpeg dependency. Turns out we don't need it.
mjs [Tue, 14 May 2002 00:27:50 +0000 (00:27 +0000)]
Removed libjpeg dependency. Turns out we don't need it.

* configure.in: Don't check for libjpeg.
* Updates/update: Don't bother with the libjpeg update.
* Updates/install-libjpeg.sh: Removed.

WebCore:
Removed libjpeg dependency. Turns out we don't need it.

* Makefile.am: Remove -ljpeg from link line.
* khtml/misc/loader_jpeg.cpp: Removed.
* khtml/misc/loader_jpeg.h: Removed.
* khtml/misc/Makefile.am: Remve loader_jpeg from build.

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

19 years ago * WebView.subproj/IFBaseWebController.mm:
cblu [Mon, 13 May 2002 18:22:00 +0000 (18:22 +0000)]
    * WebView.subproj/IFBaseWebController.mm:
        (-[IFBaseWebController URLPolicyForURL:]):

        Use [IFURLHandle canInitWithURL] instead of hard-coded URL schemes.

        * WebView.subproj/IFBaseWebControllerPrivate.mm:
        (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:]):
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]):
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]):
        * WebView.subproj/IFWebDataSourcePrivate.h:
        * WebView.subproj/IFWebDataSourcePrivate.mm:
        (-[IFWebDataSourcePrivate init]):
        (-[IFWebDataSource _setDownloadPath:]):

        Removed _contentPolicy as contentPolicy is public.

        Initialize contentPolicy in [IFWebDataSourcePrivate init].

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

19 years ago Made log output match webkit logging.
rjw [Fri, 10 May 2002 23:08:23 +0000 (23:08 +0000)]
Made log output match webkit logging.

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

19 years ago Logging changes.
rjw [Fri, 10 May 2002 23:07:55 +0000 (23:07 +0000)]
Logging changes.

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

19 years agoWebKit:
cblu [Fri, 10 May 2002 22:28:21 +0000 (22:28 +0000)]
WebKit:

Added support for non-html non-file URL data sources.
        Added the init methods below. Removed initWithHandle.

        * WebView.subproj/IFWebDataSource.h:
        * WebView.subproj/IFWebDataSource.mm:
        (IFWebDataSourceMake):
        (-[IFWebDataSource initWithURL:]):
        (-[IFWebDataSource initWithURL:attributes:]):
        (-[IFWebDataSource startLoading:]):

WebCore:

        Changed WCIFWebDataSourceMake to wrap around [IFWebDataSource initWithUR
L: attributes: flags:]
        instead of initWithHandle.

        * kwq/KWQKHTMLPart.mm:
        (KHTMLPart::requestFrame):
        (KHTMLPart::submitForm):
        * kwq/WCWebDataSource.h:
        * libwebcore.exp:

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

19 years ago Fixed 2923728 (ellipsizing text method is taking a lot of CPU time) by writing a
darin [Fri, 10 May 2002 22:16:38 +0000 (22:16 +0000)]
Fixed 2923728 (ellipsizing text method is taking a lot of CPU time) by writing a
new string truncator that uses fast text measurement.

* AppController.m: (-[AppController awakeFromNib]): Remove _setUpStringTruncator.

* BrowserDocument.h: Remove _cachedPageName; it was not doing any good.
* BrowserDocument.m:
(-[BrowserDocument dealloc]): No need to release _cachedPageName.
(-[BrowserDocument pageName]): No need to use _cachedPageName.
(-[BrowserDocument _updateWindowTitles]): Name change.

* StringTruncator.h: Rewrite. Only the name is the same.
* StringTruncator.m:
(+[StringTruncator centerTruncateString:length:omitCount:toBuffer:]):
Does the work of removing the middle of a string.
(+[StringTruncator centerTruncateString:toWidth:]): Convenience cover version that
uses the menu font.
(+[StringTruncator centerTruncateString:toWidth:withFont:]): The code to do the
truncating.

* TextCell.m: (-[TextCell drawInteriorWithFrame:inView:]): Use the new truncator
interface that takes a font, not the old one that took an attributes dictionary.

* WebBrowser.pbproj/project.pbxproj: Some little tweak.

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

19 years ago * WebCoreSupport.subproj/IFTextRenderer.h: Moved most of the
darin [Fri, 10 May 2002 22:11:04 +0000 (22:11 +0000)]
* WebCoreSupport.subproj/IFTextRenderer.h: Moved most of the
stuff from here into the .m file so this header can be included
by clients. Also added floatWidthForCharacters:length:.
* WebCoreSupport.subproj/IFTextRenderer.m:
(freeWidthMap): Check for NULL.
(freeGlyphMap): Check for NULL.
(-[IFTextRenderer slowFloatWidthForCharacters:length:]): Renamed,
and made it return the float.
(-[IFTextRenderer floatWidthForCharacters:length:]): Renamed, and
made it return the float.
(-[IFTextRenderer widthForCharacters:length:]): Do rounding here.

* WebCoreSupport.subproj/IFTextRendererFactory.h:
* WebCoreSupport.subproj/IFTextRendererFactory.m:
Make the interface slightly easier to use by using the specific types.

* WebKit.pbproj/project.pbxproj: Exported the headers.

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

19 years ago2002-05-10 Kenneth Kocienda <kocienda@apple.com>
kocienda [Fri, 10 May 2002 21:51:53 +0000 (21:51 +0000)]
2002-05-10  Kenneth Kocienda  <kocienda@apple.com>

        Fixed build breakage caused by my previous checkin.

        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])

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

19 years ago Fixed 2922756 (@ image in History window is a little too tall)
sullivan [Fri, 10 May 2002 21:25:22 +0000 (21:25 +0000)]
Fixed 2922756 (@ image in History window is a little too tall)
Fixed 2923790 (bookmark folders need folder icons)

* Resources/bookmark_folder.tiff: New image (small folder, copied from elsewhere)
* Resources/url_icon.tiff: Shrunk this one a little bit.

* Bookmarks.subproj/IFBookmarkList.m:
(-[IFBookmarkList image]): Return the default image if no custom image is set.

* History.subproj/IFURIEntry.m:
(-[IFURIEntry image]): If the default image's file isn't found, don't try
to create an NSImage, because it will come out horribly broken and evil if
you do (I ran into this while adding the bookmark folder image; most of Alexander's
menus did not appear at all because the bookmark folder image was using a bogus
NSImage).

* WebKit.pbproj/project.pbxproj: Updated for new files.

Fixed 2922745 (Bookmark and History window should use same font size)
Fixed 2923792 (All buttons in Bookmarks window look the same)

* Resources/Images/new_bookmark.tiff: Added.
* Resources/Images/new_folder.tiff: Added.
* Resources/Images/pencil.tiff: Added.
New images for buttons in Bookmarks window. new_folder
was stolen from Finder; pencil was stolen from Mail;
new_bookmark is a Sullivan Originalâ„¢.

* AppController.m:
(-[AppController _addBookmarksToMenu]):
(-[AppController _updateBookmarksInMenu]):
Remove count of bookmarks from debug timing message since
it wasn't counting deep.

* BookmarksController.m:
(-[BookmarksController toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:]):
Use the right images for the right buttons.

* English.lproj/Bookmarks.nib: Change the font size to
match History window.

* WebBrowser.pbproj/project.pbxproj: Updated for new files.

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

19 years ago2002-05-10 Kenneth Kocienda <kocienda@apple.com>
kocienda [Fri, 10 May 2002 21:07:29 +0000 (21:07 +0000)]
2002-05-10  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Maciej Stachowiak

        WebFoundation:

        This set of changes enhances the IFError object with two new pieces of
        information:

        1) An error domain, to help separate error codes from different
        sources that may overlap

        2) An indicator of whether the error should be treated as "terminal" by
        code that receives and handles the error.

        I have added a couple of other cleanups in this class, as described by
        the bugs noted below.

        The other code in this set of changes was modified to use the new interface
        and features of IFError.

        Fixes for these four bugs:

        Radar 2923998 (Change IFError private data into a pointer to a private data object)
        Radar 2924002 (IFError should include an error domain)
        Radar 2924013 (IFError initialization is not threadsafe)
        Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)

        * CacheLoader.subproj/IFFileURLProtocolHandler.m:
        (-[IFFileURLProtocolHandler fileLoadThread])
        * CacheLoader.subproj/IFHTTPURLProtocolHandler.m:
        (-[IFHTTPURLProtocolHandler continueBeginLoadInBackgroundAfterCreatingHTTPRequest])
        (-[IFHTTPURLProtocolHandler retryWithRedirectedURL:])
        (-[IFHTTPURLProtocolHandler handleReadStreamEvent:event:])
        (-[IFHTTPURLProtocolHandler performHTTPHeaderRead:])
        (-[IFHTTPURLProtocolHandler determineErrorAndFail])
        * CacheLoader.subproj/IFURLCacheLoaderConstants.:h
        * CacheLoader.subproj/IFURLHandle.m:
        (-[IFURLHandle _backgroundLoadFailedWithResultCode:inDomain:isTerminal:])
        (-[IFURLHandle _setError:])
        (-[IFURLHandle _notifyClientsDidFailLoading])
        * CacheLoader.subproj/IFURLHandleC.h:
        * CacheLoader.subproj/IFURLHandleC.m:
        (IFURLHandleBackgroundLoadFailedWithResultCode)
        * CacheLoader.subproj/IFURLHandlePrivate.h:
        * CacheLoader.subproj/IFURLLoad.h:
        * CacheLoader.subproj/IFURLLoad.m:
        (-[IFURLLoad failedWithResultCode:inDomain:isTerminal:])
        (-[IFURLLoad scheduleOriginLoad])
        (-[IFURLLoad beginOriginLoad])
        (_loadSweeper)
        * Misc.subproj/IFError.h:
        * Misc.subproj/IFError.m:
        (-[IFErrorPrivate dealloc])
        (classInitialize)
        (+[IFError errorWithCode:inDomain:failingURL:isTerminal:])
        (-[IFError initWithErrorCode:inDomain:failingURL:isTerminal:])
        (-[IFError dealloc])
        (-[IFError errorCode])
        (-[IFError errorDomain])
        (-[IFError terminalError])
        (-[IFError errorDescription])
        (-[IFError failingURL])
        (-[IFError description])

        WebKit:

        This code was modified to use the new interface and features of IFError.
        These features and changes are described in these four bug reports:

        Radar 2923998 (Change IFError private data into a pointer to a private data object)
        Radar 2924002 (IFError should include an error domain)
        Radar 2924013 (IFError initialization is not threadsafe)
Radar 2924280 (IFError should contain a new field which tells whether the error is terminal)

        * Plugins.subproj/IFPluginView.mm:
        (-[IFPluginView IFURLHandle:resourceDidFailLoadingWithResult:])
        * WebView.subproj/IFBaseWebControllerPrivate.mm:
        (-[IFBaseWebController _receivedProgress:forResource:fromDataSource:])
        (-[IFBaseWebController _mainReceivedProgress:forResource:fromDataSource:])
        * WebView.subproj/IFMainURLHandleClient.mm:
        (-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:])

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

19 years ago=== JavaScriptCore-4 ===
mjs [Fri, 10 May 2002 20:52:08 +0000 (20:52 +0000)]
=== JavaScriptCore-4 ===

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

19 years ago Reviewed by: Ken Kocienda and Darin Adler
mjs [Fri, 10 May 2002 16:41:01 +0000 (16:41 +0000)]
Reviewed by: Ken Kocienda and Darin Adler

Fixed the following bug:

Radar 2890573 - JavaScriptCore needs to be thread-safe

Actually this is only a weak form of thread-safety - you can safely
use different interpreters from different threads at the same
time. If you try to use a single interpreter object from multiple
threads, you need to provide your own locking.

* kjs/collector.h, kjs/collector.cpp:
(Collector::lock, Collector::unlock): Trivial implementation of a
recursive mutex.
(Collector::allocate): Lock around the body of this function.
(Collector::collect): Likewise.
(Collector::finalCheck): Likewise.
(Collector::numInterpreters): Likewise.
(Collector::numGCNotAllowedObjects): Likewise.
(Collector::numReferencedObjects): Likewise.
* kjs/internal.cpp:
(Parser::parse): use a mutex to lock around the whole parse, since
it uses a bunch of global state.
(InterpreterImp::InterpreterImp): Grab the Collector lock here,
both the mutually exclude calls to the body of this function, and
to protect the s_hook static member which the collector pokes at.
(InterpreterImp::clear): Likewise.
* kjs/ustring.cpp:
(statBufferKeyCleanup, statBufferKeyInit, UString::ascii): Convert
use of static variable
* kjs/value.cpp:
(ValueImp::ValueImp, ValueImp::mark, ValueImp::marked,
ValueImp::setGcAllowed): Grab the GC lock around any flag changes.

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

19 years agoi Added new method to avoid creation of NSString.
rjw [Fri, 10 May 2002 03:18:48 +0000 (03:18 +0000)]
i    Added new method to avoid creation of NSString.

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

19 years ago Tuned implementation more. Cleaned up and factored code.
rjw [Fri, 10 May 2002 03:18:34 +0000 (03:18 +0000)]
Tuned implementation more.  Cleaned up and factored code.

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

19 years ago * Bookmarks.subproj/IFBookmarkGroup.h:
sullivan [Fri, 10 May 2002 01:35:00 +0000 (01:35 +0000)]
* Bookmarks.subproj/IFBookmarkGroup.h:
* Bookmarks.subproj/IFBookmarkGroup.m:
(-[IFBookmarkGroup addNewBookmarkToBookmark:withTitle:image:URLString:isLeaf:]):
(-[IFBookmarkGroup insertNewBookmarkAtIndex:ofBookmark:withTitle:image:URLString:isLeaf:]):
Gave these two methods return values of the new bookmark created, to make callers'
lives easier.

More work on bookmarks; you can now create new ones and new folders
from the Bookmarks window. You still can't reorder them by dragging.
There are many details wrong still, including some obvious ones.

Fixed these radar bugs along the way:
2921389 -- No way to create a folder in Bookmarks window
2923495 -- Shouldn't be able to create bookmarks with no title and/or URL string

Also improved what Activity Viewer shows for errors that had no description
(was "(null)", now is "error").

* AppController.m:
(-[AppController _insertBookmark:intoMenu:atIndex:]):
Made this method handle non-leaf bookmarks (i.e., folders)

* BookmarksController.m:
(-[BookmarksController _collapseSelectionToSingleRow]):
New helper routine that always ends up with a single row
selected (unless outline view is empty).

(-[BookmarksController _removeSelectedBookmarks:]):
Call _collapseSelectionToSingleRow after removing selected items.

(-[BookmarksController _toggleEdit:]):
New method, turns edit mode on or off for the selected item.

(-[BookmarksController _findParentRowOfRow:]):
New helper routine for finding the row index that's the parent of
a given row.

(-[BookmarksController _newItemWithTitle:image:URLString:isLeaf:]):
Bottleneck for new-item-creating methods, finds appropriate place to
insert new item based on current selection, inserts it, selects it,
and puts its name into edit mode.

(-[BookmarksController _newSeparator:]):
New method, placeholder for now.

(-[BookmarksController _newFolder:]):
(-[BookmarksController _newBookmark:]):
Implement by calling _newItemWithTitle:

(-[BookmarksController outlineView:setObjectValue:forTableColumn:byItem:]):
If new value after trimming whitespace is empty, ignore it.

(-[BookmarksController outlineView:shouldEditTableColumn:item:]):
Don't allow address cell of folder rows to be edited.

(-[BookmarksController toolbarAllowedItemIdentifiers:]):
New set of buttons is: New Bookmark, New Folder, Modify, Remove

(-[BookmarksController validateUserInterfaceItem:]):
Disable Modify when nothing is selected.

* English.lproj/Bookmarks.nib:
I don't remember what I changed here, possibly nothing real.

* IFErrorAdditions.h: Added.
* IFErrorAdditions.m: Added.
(-[IFError errorSummary]): New category on IFError, implements just this
one method, which returns a string of the form "<error description> (<error code>)"
and handles the case where there's no description.

* FrameProgressEntry.m:
(-[FrameProgressEntry statusString]): use errorSummary.
* ResourceProgressEntry.m:
(-[ResourceProgressEntry statusString]): use errorSummary.

* GlobalHistory.m:
(-[GlobalHistory showWindow:]): Changed an NSLog to a WEBKITDEBUG

* WebBrowser.pbproj/project.pbxproj: Updated for new files.

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

19 years ago2002-05-09 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 9 May 2002 19:42:45 +0000 (19:42 +0000)]
2002-05-09  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Chris Blumenberg

        Fix for this bug:

        Radar 2922673 (Remove use of private NSData interface in IFURLFileDatabase.m)

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileReader initWithPath:]): Code now uses new Jaguar public API

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

19 years ago2002-05-09 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 9 May 2002 19:25:01 +0000 (19:25 +0000)]
2002-05-09  Kenneth Kocienda  <kocienda@apple.com>

        Fix for this bug:

        Radar 2890624 (need to remove workaround for double free of image data from QPixmap)

        The appropriate, bug-free AppKit code is now available to us on Jaguar.
        Rolling out the workaround.

        * kwq/KWQPixmap.mm:
        (QPixmap::QPixmap)

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

19 years ago2002-05-09 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 9 May 2002 16:43:22 +0000 (16:43 +0000)]
2002-05-09  Kenneth Kocienda  <kocienda@apple.com>

        Tiny little string copying cleanup suggested by Darin.

        * Database.subproj/IFURLFileDatabase.m:
        (-[IFURLFileDatabase open]): small string copying cleanup.

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

19 years ago2002-05-09 Kenneth Kocienda <kocienda@apple.com>
kocienda [Thu, 9 May 2002 16:35:30 +0000 (16:35 +0000)]
2002-05-09  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Darin Adler

        Fixes for these two bugs:

        Radar 2859001 (Maintain usage calculation for on-disk cache)
        Radar 2859009 (On-disk cache must be able to be truncated to a specific size)

        Now, the on-disk database keeps track of the amount of data it stores and can enforce
        a usage quota. This new system should work quite well as long as there is a one-to-one
        mapping between processes and on-disk cache paths.

        Further guarantees for synchronous access to a cache from multiple processes will be
        offered if (when) we switch over to using the sleepycat Berkeley DB for the disk cache
        implementation.

        * CacheLoader.subproj/IFURLDiskCache.m:
        (-[IFURLDiskCache initWithSizeLimit:path:]): Added code that calls into new database methods
        (-[IFURLDiskCache dealloc]): Added missing call to [super dealloc]
        (-[IFURLDiskCache setSizeLimit:]): New
        (-[IFURLDiskCache usage]): New
        * Database.subproj/IFDatabase.h:
        * Database.subproj/IFDatabase.m:
        (-[IFDatabase initWithPath:]): Added code to track size limit and usage
        (-[IFDatabase isOpen]): Added code to track size limit and usage
        (-[IFDatabase count]): New
        (-[IFDatabase sizeLimit]): New
        (-[IFDatabase setSizeLimit:]): New
        (-[IFDatabase usage]): New
        * Database.subproj/IFNDBMDatabase.h: Removed.
        * Database.subproj/IFNDBMDatabase.m: Removed.
        * Database.subproj/IFURLFileDatabase.h:
        * Database.subproj/IFURLFileDatabase.m:
        (+[IFURLFileDatabase uniqueFilePathForKey:]): Moved to private category
        (-[IFURLFileDatabase writeSizeFile:]): New
        (-[IFURLFileDatabase readSizeFile]): New
        (-[IFURLFileDatabase truncateToSizeLimit:]): New
        (-[IFURLFileDatabase initWithPath:]): Added code to deal with size reckoning
        (-[IFURLFileDatabase removeAllObjects]): Added code to deal with size reckoning
        (-[IFURLFileDatabase performSetObject:forKey:]): Added code to deal with size reckoning
        (-[IFURLFileDatabase performRemoveObjectForKey:]): Added code to deal with size reckoning
        (-[IFURLFileDatabase open]): Added code to deal with size reckoning
        (-[IFURLFileDatabase close]): Added code to deal with size reckoning
        (-[IFURLFileDatabase sync]): Added code to deal with size reckoning
        (-[IFURLFileDatabase count]): New
        (-[IFURLFileDatabase setSizeLimit:]): New
        * WebFoundation.pbproj/project.pbxproj: PB has its way again.

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

19 years agoAlexander-3 versioning
sheridan [Thu, 9 May 2002 16:19:20 +0000 (16:19 +0000)]
Alexander-3 versioning

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

19 years ago Added optimizations for text rendering.
rjw [Thu, 9 May 2002 03:05:18 +0000 (03:05 +0000)]
Added optimizations for text rendering.

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

19 years ago * Misc.subproj/IFCache.h: Add more JavaScript object statistics.
darin [Thu, 9 May 2002 00:11:33 +0000 (00:11 +0000)]
* Misc.subproj/IFCache.h: Add more JavaScript object statistics.
* Misc.subproj/IFCache.mm:
(+[IFCache javaScriptInterpretersCount]): New.
(+[IFCache javaScriptNoGCAllowedObjectsCount]): New.
(+[IFCache javaScriptReferencedObjectsCount]): New.

* WebKit.pbproj/project.pbxproj: Rearranged two files, dunno why.

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

19 years ago * kjs/collector.h:
darin [Thu, 9 May 2002 00:11:06 +0000 (00:11 +0000)]
* kjs/collector.h:
* kjs/collector.cpp:
(Collector::numInterpreters):
(Collector::numGCNotAllowedObjects):
(Collector::numReferencedObjects):
Add three new functions so we can see a bit more about leaking JavaScriptCore.

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

19 years ago Cleaned up mach-o plug-in support.
cblu [Wed, 8 May 2002 20:22:59 +0000 (20:22 +0000)]
    Cleaned up mach-o plug-in support.

        Changed the init method in IFPlugin to initWithPath.

        * Plugins.subproj/IFPlugin.h:
        * Plugins.subproj/IFPlugin.m:
        (-[IFPlugin initWithPath:]):
        (-[IFPlugin load]):
        * Plugins.subproj/IFPluginDatabase.m:
        (findPlugins):

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

19 years agoForgot include.
darin [Wed, 8 May 2002 18:37:00 +0000 (18:37 +0000)]
Forgot include.

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

19 years ago * WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
darin [Wed, 8 May 2002 18:29:59 +0000 (18:29 +0000)]
* WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
Use _IF_stringByTrimmingWhitespace.

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

19 years ago First pass at font substitution. Find a substitute font to
rjw [Tue, 7 May 2002 23:51:24 +0000 (23:51 +0000)]
    First pass at font substitution.  Find a substitute font to
        use when the specified font doesn't have glyphs for the characters that
        need to be drawn.

        Works correctly but hasn't been optimized yet, VERY slow.
        Will optimize this evening and tomorrow.  Try www.yahoo.co.jp,
        it will take a long time to render be eventually will draw correctly.

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

19 years ago * kwq/KWQFontMetrics.mm: Fixed storage leak by initializing refCount.
darin [Tue, 7 May 2002 23:36:19 +0000 (23:36 +0000)]
* kwq/KWQFontMetrics.mm: Fixed storage leak by initializing refCount.

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