webengine/osswebengine/WebKit/ChangeLog-2007-10-14
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 2007-10-11  Mark Rowe  <mrowe@apple.com>
       
     2 
       
     3         Reviewed by Tim Hatcher.
       
     4 
       
     5         Fix for <rdar://problem/5488678>.  Disable debugging symbols in production builds for 10.4
       
     6         PowerPC to prevent a huge STABS section from being generated.
       
     7 
       
     8         * Configurations/Base.xcconfig:
       
     9 
       
    10 2007-10-10  Alice Liu  <alice.liu@apple.com>
       
    11 
       
    12         Reviewed by Geoff Garen.
       
    13 
       
    14         Fixed <rdar://5464402> Crash when running fast/frames/onload-remove-iframe-crash.html in DRT
       
    15         createFrame() now returns a RefPtr instead of a raw Frame pointer. 
       
    16         Making this change improves the way we handle frames on Windows WebKit. 
       
    17 
       
    18         * WebCoreSupport/WebFrameLoaderClient.h:
       
    19         * WebCoreSupport/WebFrameLoaderClient.mm:
       
    20         (WebFrameLoaderClient::createFrame):
       
    21 
       
    22 2007-10-04  Beth Dakin  <bdakin@apple.com>
       
    23 
       
    24         Reviewed by John Sullivan.
       
    25 
       
    26         Fix for <rdar://problem/5441823> REGRESSION (r25142, Tiger only): 
       
    27         Vertical scroll bar not redrawn properly when going back in history 
       
    28         (15033)
       
    29 
       
    30         This fix if-defs r25142 to be Leopard-only since it causes 
       
    31         correctness issues on Tiger and does not seem to have any 
       
    32         performance impact on Tiger either.
       
    33 
       
    34         * WebView/WebDynamicScrollBarsView.m:
       
    35         (-[WebDynamicScrollBarsView setScrollBarsSuppressed:repaintOnUnsuppress:]):
       
    36         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
       
    37 
       
    38 2007-10-04  Mark Rowe  <mrowe@apple.com>
       
    39 
       
    40         Reviewed by Oliver.
       
    41 
       
    42         Switch to default level of debugging symbols to resolve <rdar://problem/5488678>.
       
    43         The "full" level appears to offer no observable benefits even though the documentation
       
    44         suggests it be used for dead code stripping.  This should also decrease link times.
       
    45 
       
    46         * Configurations/Base.xcconfig:
       
    47 
       
    48 2007-10-04  Adele Peterson  <adele@apple.com>
       
    49 
       
    50         Reviewed by Darin.
       
    51 
       
    52         WebKit part of fix for <rdar://problem/5369017> REGRESSION: Can't tab to webview that doesn't have editable content
       
    53 
       
    54         * WebView/WebHTMLView.mm: (-[WebHTMLView becomeFirstResponder]): Pass in the FocusDirection.
       
    55 
       
    56 2007-10-04  Darin Adler  <darin@apple.com>
       
    57 
       
    58         * WebView/WebHTMLView.mm: (-[WebHTMLView _updateActiveState]):
       
    59         Removed a bogus comment.
       
    60 
       
    61 2007-10-02  Kevin Decker  <kdecker@apple.com>
       
    62 
       
    63         Reviewed by Mark Rowe.
       
    64 
       
    65         Re-added _minimumRequiredSafariBuildNumber. It turns out older version of Safari still rely
       
    66         on this method, so we need to keep it around at least until the next major Safari release.
       
    67 
       
    68         * StringsNotToBeLocalized.txt:
       
    69         * WebView/WebView.mm:
       
    70         (+[WebView _minimumRequiredSafariBuildNumber]):
       
    71         * WebView/WebViewPrivate.h:
       
    72 
       
    73 2007-10-02  Kevin Decker  <kdecker@apple.com>
       
    74 
       
    75         Reviewed by John Sullivan.
       
    76 
       
    77         <rdar://problem/5517710> 
       
    78 
       
    79         * WebView/WebView.mm: Removed -[WebView _minimumRequiredSafariBuildNumber] because newer
       
    80          versions of Safari no longer use this method. This won't break existing Safaris because
       
    81          they always use a respondsToSelector check before calling this.
       
    82          
       
    83         * WebView/WebViewPrivate.h: Ditto. 
       
    84 
       
    85 2007-09-27  John Sullivan  <sullivan@apple.com>
       
    86 
       
    87         Reviewed by Ollie
       
    88         
       
    89         - fixed <rdar://problem/5408186> REGRESSION (5522-5523.9): Safari leaks every browser window
       
    90         
       
    91         The leak started occurring when we removed the code to clear the delegates and the host window
       
    92         from Safari as part of the fix for 5479443. But it turns out that Safari code was masking a
       
    93         bug here in WebView: setHostWindow:nil needs to be called before setting _private->closed to
       
    94         YES, or it will do nothing at all, causing a world leak due to a circular reference between
       
    95         the window and the WebView.
       
    96         
       
    97         I toyed with a more complex fix, but this is the simplest one that retains the fix for 5479443
       
    98         while otherwise restoring the code order to be as close as possible to what it was before
       
    99         5479443 was fixed.
       
   100 
       
   101         * WebView/WebView.mm:
       
   102         (-[WebView _close]):
       
   103         Moved the call that sets _private->closed to YES to be after the code that clears the delegates
       
   104         and the host window. Added a comment about this order.
       
   105 
       
   106 2007-09-27  Kevin Decker  <kdecker@apple.com>
       
   107 
       
   108         Rubber stamped by Darin.
       
   109 
       
   110         <rdar://problem/5493093>
       
   111 
       
   112         * WebKit.order: Added.
       
   113         * WebKit.xcodeproj/project.pbxproj:  We're changing from using an order file built by
       
   114          another team to using one we actually check into our project repository. Linker settings for
       
   115          Symbol Ordering Flags have been updated accordingly.
       
   116 
       
   117 2007-09-26  Geoffrey Garen  <ggaren@apple.com>
       
   118 
       
   119         Reviewed by Adele Peterson.
       
   120         
       
   121         Fixed <rdar://problem/5507476> Promote cache model SPI to API
       
   122         
       
   123         Promoted cache model SPI to API. This was just a move, with some small 
       
   124         edits to the documentation (changing 'application' to 'WebView' in 
       
   125         some cases, since the interface is now per-WebView).
       
   126 
       
   127         * WebView/WebPreferences.h:
       
   128         * WebView/WebPreferences.m:
       
   129         (-[WebPreferences setCacheModel:]):
       
   130         (-[WebPreferences cacheModel]):
       
   131         * WebView/WebPreferencesPrivate.h:
       
   132 
       
   133 2007-09-24  Timothy Hatcher  <timothy@apple.com>
       
   134 
       
   135         Reviewed by Darin.
       
   136 
       
   137         <rdar://problem/5498016> Photoshop CS3: Adobe Help Viewer 1.1 crashes in 9A553
       
   138 
       
   139         WebKit started calling the mouseDidMoveOverElement delegate method with a nil dictionary in r14982.
       
   140         We originally intended to call this delegate method sometimes with a nil dictionary, but due to
       
   141         a bug dating back to WebKit 1.0 this delegate was never called with nil! Unfortunately we can't
       
   142         start calling this with nil since it will break Adobe Help Viewer, and possibly other clients.
       
   143 
       
   144         * WebView/WebView.mm:
       
   145         (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
       
   146 
       
   147 2007-09-21  Kevin Decker  <kdecker@apple.com>
       
   148 
       
   149         * Plugins/WebBaseNetscapePluginView.mm: Build fix. 
       
   150         The first argument of aglChoosePixelFormat() has changed from const AGLDevice *gdevs on Tiger to
       
   151         const void *gdevs on Leopard.
       
   152 
       
   153 2007-09-20  Kevin Decker  <kdecker@apple.com>
       
   154 
       
   155         Reviewed by Darin Adler.
       
   156 
       
   157         <rdar://problem/5493093>
       
   158 
       
   159         Reduced launch time by lazily linking both the AGL and OpenGL frameworks until they are really needed.
       
   160 
       
   161         * Plugins/WebBaseNetscapePluginView.mm: Soft link all AGL and OpenGL functions used by
       
   162         WebBaseNetscapePluginView.
       
   163 
       
   164         * WebKit.xcodeproj/project.pbxproj: Removed AGL and OpenGL from the project.
       
   165 
       
   166 2007-09-20  John Sullivan  <sullivan@apple.com>
       
   167 
       
   168         Build fix for stoooopid old PPC gcc compiler
       
   169 
       
   170         * WebCoreSupport/WebEditorClient.mm:
       
   171         (WebEditorClient::checkSpellingOfString):
       
   172         replace perfectly valid ?: syntax with if/else
       
   173 
       
   174 2007-09-19  John Sullivan  <sullivan@apple.com>
       
   175 
       
   176         Reviewed by Darin Adler.
       
   177 
       
   178         - WebKit part of speculative fix for <rdar://problem/5490627>, about crashes constructing a
       
   179           String using the values filled in by checkSpellingOfString()
       
   180 
       
   181         * WebCoreSupport/WebEditorClient.mm:
       
   182         (WebEditorClient::checkSpellingOfString):
       
   183         convert NSNotFound to -1, since WebCore code expects -1 for this purpose. We already do this
       
   184         in checkGrammarOfString.
       
   185 
       
   186 2007-09-19  Kevin Decker  <kdecker@apple.com>
       
   187 
       
   188         Reviewed by Darin Adler.
       
   189 
       
   190         <rdar://problem/5491066> soft link Accelerate.framework
       
   191         
       
   192         * Misc/WebGraphicsExtras.c:
       
   193         (WebConvertBGRAToARGB): Improve launch time performance and reduce vsize
       
   194         footprint by soft linking the Accelerate.framework.
       
   195         * WebKit.xcodeproj/project.pbxproj: Remove no longer needed frameworks.
       
   196 
       
   197 2007-09-18  Geoffrey Garen  <ggaren@apple.com>
       
   198 
       
   199         Reviewed by Darin Adler.
       
   200         
       
   201         Fixed <rdar://problem/5490204> In some cases, WebKit can make the 
       
   202         Foundation disk cache way too big or way too small
       
   203         
       
   204         Use the actual location of the foundation disk cache, rather than 
       
   205         the user's home directory, when determining how big to make it.
       
   206 
       
   207         * WebView/WebView.mm:
       
   208         (+[WebView _setCacheModel:]):
       
   209 
       
   210 2007-09-17  Geoffrey Garen  <ggaren@apple.com>
       
   211 
       
   212         Reviewed by Darin Adler.
       
   213 
       
   214         Fixed a hang due to an infinite script running in the window's unload 
       
   215         event handler, which may be the cause of <rdar://problem/5479443> 
       
   216         REGRESSION: Hang due to infinite JS recursion on close @ engadget.com 
       
   217         (onunload-based ad)
       
   218 
       
   219         * WebView/WebUIDelegatePrivate.h: Added FIXME.
       
   220         
       
   221         * WebView/WebView.h: Clarified headerdoc ambiguity about when delegate 
       
   222         methods stop firing.
       
   223 
       
   224         * WebView/WebView.mm:
       
   225         (-[WebView _close]): The fix: don't nil out our delegates until after
       
   226         detaching the FrameLoader, because the act of detaching the FrameLoader
       
   227         might fire important delegate methods, like webViewShouldInterruptJavaScript:.
       
   228         Don't do other tear-down either, because the unload event handler needs 
       
   229         to run in a fully constructed page.
       
   230         
       
   231         This change is fairly low risk because niling out our delegates is a 
       
   232         very recent, never-shipped feature in WebKit, so it's unlikely that any 
       
   233         apps rely on it in a crazy way.
       
   234 
       
   235 2007-09-15  Darin Adler  <darin@apple.com>
       
   236 
       
   237         Reviewed by John Sullivan.
       
   238 
       
   239         - fix <rdar://problem/5391540> REGRESSION: Can't drag images from Safari to applications
       
   240           in the dock (Tiger Preview, others in Leopard)
       
   241 
       
   242         * Misc/WebNSPasteboardExtras.mm:
       
   243         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
       
   244         Re-implement code here that has been missing for the last couple of years since we
       
   245         did some image refactoring. Was pretty easy now that we can freely call C++ code
       
   246         in WebKit.
       
   247 
       
   248 2007-09-14  Mark Rowe  <mrowe@apple.com>
       
   249 
       
   250         Build fix for Tiger.
       
   251 
       
   252         * WebView/WebArchive.m:
       
   253         (-[WebArchive initWithCoder:]): Use @catch(id) rather than @catch(...).
       
   254         * WebView/WebPreferences.m:
       
   255         (-[WebPreferences initWithCoder:]): Ditto.
       
   256         * WebView/WebResource.mm:
       
   257         (-[WebResource initWithCoder:]): Ditto.
       
   258         (-[WebResource _initWithPropertyList:]): Ditto.
       
   259 
       
   260 2007-09-14  Darin Adler  <darin@apple.com>
       
   261 
       
   262         Reviewed by Geoff Garen and Tim Hatcher.
       
   263 
       
   264         - fixed <rdar://problem/5482745> initFromCoder: and initWithPropertyList: functions
       
   265           should guard against incorrect types
       
   266 
       
   267         * WebView/WebArchive.m:
       
   268         (isArrayOfClass): Added helper function.
       
   269         (-[WebArchive _initWithPropertyList:]): Tweaked function to remove the need for a
       
   270         type cast.
       
   271         (-[WebArchive initWithCoder:]): Added type checking for the main resource,
       
   272         subresources array, and subframe archives array. Also replaced NS_DURING with @try.
       
   273         * WebView/WebPreferences.m: (-[WebPreferences initWithCoder:]): Added type checking
       
   274         for the identifier and the values dictionary, including ensuring that it's a mutable
       
   275         dictionary.
       
   276         * WebView/WebResource.mm:
       
   277         (-[WebResource initWithCoder:]): Added type checking for all the fields.
       
   278         (-[WebResource _initWithPropertyList:]): Added type checking for the NSURLResponse.
       
   279 
       
   280         * WebKit.exp: Removed accidentally exported internal symbol; I checked and it's not
       
   281         used anywhere.
       
   282 
       
   283 2007-09-13  Darin Adler  <darin@apple.com>
       
   284 
       
   285         Reviewed by Oliver.
       
   286 
       
   287         - fix <rdar://problem/5470457> REGRESSION: Input method inline hole is mishandled in text
       
   288           <input> elements with maxlength limit
       
   289 
       
   290         * WebView/WebHTMLView.mm:
       
   291         (-[WebHTMLView _selectionChanged]): Tweaked code a bit.
       
   292         (-[WebHTMLView markedRange]): Simplified logic, since markedTextNSRange works when there's
       
   293         no composition range.
       
   294         (-[WebHTMLView hasMarkedText]): Call directly to Editor instead of bridge.
       
   295         (-[WebHTMLView unmarkText]): Call new confirmComposition to make it clear that this is
       
   296         confirming text, not just unmarking it to discard it.
       
   297         (extractUnderlines): Added. Converts directly from an NSAttributedString to the
       
   298         CompositionUnderline vector that's used by WebCore.
       
   299         (-[WebHTMLView setMarkedText:selectedRange:]): Changed to use the new setComposition.
       
   300         (-[WebHTMLView insertText:]): Changed to use confirmComposition when appropriate, instead
       
   301         of relying on special behavior of Editor::insertText.
       
   302         (-[WebHTMLView _updateSelectionForInputManager]): Rewrote to use getCompositionSelection
       
   303         and confirmCompositionWithoutDisturbingSelection.
       
   304 
       
   305         * WebCoreSupport/WebEditorClient.h:
       
   306         * WebCoreSupport/WebEditorClient.mm:
       
   307         Removed obsolete markedTextAbandoned function.
       
   308  
       
   309 2007-09-12  David Kilzer  <ddkilzer@apple.com>
       
   310 
       
   311         Rubber-stamped by Darin and reviewed by Adam.
       
   312 
       
   313         Removed import of unused icon database headers.
       
   314 
       
   315         * WebCoreSupport/WebFrameBridge.mm:
       
   316 
       
   317 2007-09-11  Timothy Hatcher  <timothy@apple.com>
       
   318 
       
   319         Reviewed by Darin.
       
   320 
       
   321         Remove the unused class_getMethodImplementation function.
       
   322 
       
   323         * Misc/WebNSObjectExtras.h:
       
   324 
       
   325 2007-09-11  Geoffrey Garen  <ggaren@apple.com>
       
   326 
       
   327         Reviewed by Oliver Hunt.
       
   328         
       
   329         Fixed CFNetwork version check so it actually works.
       
   330 
       
   331         * Misc/WebKitVersionChecks.h:
       
   332         * WebView/WebView.mm:
       
   333         (+[WebView _setCacheModel:]): Don't use NSVersionOfLinkTimeLibrary because
       
   334         we don't link against CFNetwork directly, so it returns -1. Also, use
       
   335         the proper hex encoding instead of decimal numbers.
       
   336 
       
   337 2007-09-11  Darin Adler  <darin@apple.com>
       
   338 
       
   339         - redo fix for <rdar://problem/5472899> REGRESSION (TOT): Crash in FrameLoadDelegate loading stationery
       
   340 
       
   341         * WebView/WebView.mm:
       
   342         (getMethod): Added.
       
   343         (-[WebView _cacheResourceLoadDelegateImplementations]): Use getMethod.
       
   344         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
       
   345 
       
   346 2007-09-11  Darin Adler  <darin@apple.com>
       
   347 
       
   348         Rubber-stamped by Dave Harrison.
       
   349 
       
   350         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
   351         Removed wkCreateURLPasteboardFlavorTypeName and wkCreateURLNPasteboardFlavorTypeName.
       
   352 
       
   353 2007-09-11  Darin Adler  <darin@apple.com>
       
   354 
       
   355         Reviewed by Mark Rowe.
       
   356 
       
   357         - fix <rdar://problem/5472899> REGRESSION (TOT): Crash in FrameLoadDelegate loading stationery
       
   358 
       
   359         * Misc/WebNSObjectExtras.h:
       
   360         (class_getMethodImplementation): Added.
       
   361         (method_setImplementation): Added.
       
   362 
       
   363         * WebView/WebHTMLView.mm: (+[WebHTMLViewPrivate initialize]):
       
   364         * Carbon/HIViewAdapter.m: (+[HIViewAdapter bindHIViewToNSView:nsView:]):
       
   365         Remove old-ObjC code path, since WebNSObjectExtras.h now implements everything we need.
       
   366 
       
   367         * WebView/WebView.mm:
       
   368         (-[WebView _cacheResourceLoadDelegateImplementations]): Don't bother doing a separate
       
   369         respondsToSelector call, since class_getMethodImplementation will return 0 for selectors
       
   370         that we don't respond to. The bug fix is to actually set the cached pointer to 0.
       
   371         Also get rid of the unnecessary use of a macro; instead use the functions from
       
   372         WebNSObjectExtras.h on Tiger and the appropriate function directly on Leopard.
       
   373         (-[WebView _cacheFrameLoadDelegateImplementations]): Ditto.
       
   374 
       
   375 2007-09-11  Darin Adler  <darin@apple.com>
       
   376 
       
   377         Reviewed by Sam, Ollie.
       
   378 
       
   379         * WebView/WebView.mm: (+[WebView _setCacheModel:]): A slightly cleaner 64-bit
       
   380         fix for the NSURLCache capacity code in this file.
       
   381 
       
   382 2007-09-11  Darin Adler  <darin@apple.com>
       
   383 
       
   384         Rubber-stamped by Mark Rowe.
       
   385 
       
   386         * Misc/WebNSPasteboardExtras.mm: Fix incorrect strings in my last check-in.
       
   387         The strings I checked in were wrong and were breaking layout tests too.
       
   388         These new ones match what WebKitSystemInterface was returning.
       
   389 
       
   390 2007-09-10  Geoffrey Garen  <ggaren@apple.com>
       
   391 
       
   392         Fixed 64-bit build (I think).
       
   393 
       
   394         * WebView/WebView.mm:
       
   395         (max): Added. In 64-bit land, -diskCapacity magically starts returning
       
   396         unsigned long instead of unsigned, so we define a custom max() that's
       
   397         willing to compare unsigned to unsigned long.
       
   398 
       
   399 2007-09-10  Darin Adler  <darin@apple.com>
       
   400 
       
   401         Reviewed by Tim Hatcher.
       
   402 
       
   403         - <rdar://problem/5471082> Removing WebURLPboardType from headers broke SPI-using applications
       
   404 
       
   405         Rolled out my fix for bug 4582212 and fixed it in a much simpler way.
       
   406 
       
   407         * Misc/WebNSPasteboardExtras.h:
       
   408         * Misc/WebNSPasteboardExtras.mm:
       
   409         * WebCoreSupport/WebPasteboardHelper.mm:
       
   410         * WebKit.exp:
       
   411         * WebView/WebHTMLView.mm:
       
   412         * WebView/WebView.mm:
       
   413         Rolled out the new PasteboardType functions and changed the PboardType globals to be initialized
       
   414         with constant values.
       
   415 
       
   416 2007-09-10  Timothy Hatcher  <timothy@apple.com>
       
   417 
       
   418         Reviewed by Darin.
       
   419 
       
   420         Always animate when calling _scrollTo.
       
   421 
       
   422         * WebView/WebFrameView.mm:
       
   423         (-[WebFrameView _scrollVerticallyBy:]):
       
   424         (-[WebFrameView _scrollHorizontallyBy:]):
       
   425 
       
   426 2007-09-08  Brady Eidson  <beidson@apple.com>
       
   427 
       
   428         Reviewed by Darin
       
   429 
       
   430         <rdar://problem/5434431> - Asynchronous Icon Database
       
   431 
       
   432         WebKit side of things
       
   433         Mainly, there are Notifications WebKit has to listen for now that tell it when to either call back into WebCore
       
   434         for some purpose or to send the webView:didReceiveIcon: delegate call
       
   435 
       
   436         Many smaller tweaks as well.
       
   437 
       
   438         * Misc/WebIconDatabase.h:
       
   439         * Misc/WebIconDatabase.mm:
       
   440         (defaultClient):
       
   441         (-[WebIconDatabase init]):
       
   442         (+[WebIconDatabase delayDatabaseCleanup]): Accessor so clients can prevent the thread from cleaning up the database
       
   443           before they've done all their necessary retaining of icons.
       
   444         (+[WebIconDatabase allowDatabaseCleanup]):
       
   445         (-[WebIconDatabase removeAllIcons]):
       
   446         (-[WebIconDatabase _isEnabled]):
       
   447         (-[WebIconDatabase _sendNotificationForURL:]):
       
   448         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
       
   449         (-[WebIconDatabase _databaseDirectory]):
       
   450 
       
   451         (-[ThreadEnabler threadEnablingSelector:]): Quick and dirty class to enabled Cocoa multithreading
       
   452         (+[ThreadEnabler enableThreading]):
       
   453         (importToWebCoreFormat):
       
   454         * Misc/WebIconDatabaseInternal.h: Expose the internal methods of WebIconDatabase that are required by WebIconDatabaseClient
       
   455 
       
   456         * Misc/WebNSNotificationCenterExtras.h: Added. - Great utility class whose design was borrowed from Colloquy
       
   457           that allows the posting of a Cocoa notification on the main thread from *any* thread
       
   458         * Misc/WebNSNotificationCenterExtras.m: Added.
       
   459         (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:]):
       
   460         (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:]):
       
   461         (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:waitUntilDone:]):
       
   462         (+[NSNotificationCenter _postNotificationName:]):
       
   463 
       
   464         * WebCoreSupport/WebFrameLoaderClient.h:
       
   465         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   466         (WebFrameLoaderClient::dispatchDidReceiveIcon): Send the webView:didReceiveIcon: delegate call
       
   467         (WebFrameLoaderClient::registerForIconNotification):
       
   468 
       
   469         * WebCoreSupport/WebIconDatabaseClient.h: Added.
       
   470         * WebCoreSupport/WebIconDatabaseClient.mm: Added.
       
   471         (WebIconDatabaseClient::performImport):  Perform the Safari 2 icon import
       
   472         (WebIconDatabaseClient::dispatchDidRemoveAllIcons): Send the NSNotification
       
   473         (WebIconDatabaseClient::dispatchDidAddIconForPageURL): Ditto
       
   474 
       
   475         * WebView/WebView.mm:
       
   476         (-[WebView _receivedIconChangedNotification:]): Check and see if this notification is for this WebView's current URL by
       
   477           calling back into the IconDatabase
       
   478         (-[WebView _registerForIconNotification:]): Support for WebIconDatabaseClient
       
   479         (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Dispatch this delegate call as well as unregister for the notification
       
   480         * WebView/WebViewInternal.h:
       
   481 
       
   482         * WebKit.xcodeproj/project.pbxproj:
       
   483 
       
   484 2007-09-07  Geoffrey Garen  <ggaren@apple.com>
       
   485 
       
   486         Suggested by Maciej Stachowiak.
       
   487         
       
   488         Added wKiosk Browser to the browser list. Pretty sweet app.
       
   489 
       
   490         * WebView/WebPreferences.m:
       
   491         (cacheModelForMainBundle):
       
   492 
       
   493 2007-09-07  Geoffrey Garen  <ggaren@apple.com>
       
   494 
       
   495         Build fix.
       
   496 
       
   497         * WebView/WebView.mm:
       
   498         (+[WebView _setCacheModel:]):
       
   499 
       
   500 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
       
   501 
       
   502         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
       
   503         
       
   504         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
       
   505         memory cache, or a very tiny one
       
   506         
       
   507         High level explanation:
       
   508             - Added SPI for specifying a cache model on a per-WebView basis. 
       
   509             (Hopefully, this will become API soon.) We balance competing
       
   510             cache models simply by using the largest one that pertains at a
       
   511             given time.
       
   512 
       
   513             - Added heuristic for guessing a default cache model in WebViews
       
   514             that don't specify one:
       
   515                 1) Default to DocumentViewer for apps linked on or after this
       
   516                 WebKit. Default to DocumentBrowser otherwise.
       
   517 
       
   518                 2) Assign specific defaults to well-known clients based on 
       
   519                 bundle ID.
       
   520 
       
   521                 3) Grow the default to DocumentBrowser if a navigation takes 
       
   522                 place.
       
   523 
       
   524             - As a part of the DocumentBrowser & PrimaryWebBrowser settings:
       
   525                 1) Make the Foundation disk cache much much bigger than the 
       
   526                 default 20MB, if space allows. (This is a hedge against a small 
       
   527                 WebCore cache in DocumentBrowser mode, but also an all-around 
       
   528                 win for page load speed.)
       
   529 
       
   530                 2) Scaled the Foundation memory cache's capacity with physical
       
   531                 RAM, just like we do with other caches. This is a small win on
       
   532                 low memory systems.
       
   533 
       
   534         * Misc/WebKitSystemBits.h:
       
   535         * Misc/WebKitSystemBits.m:
       
   536         (WebMemorySize): Renamed from "WebSystemMainMemory."
       
   537         (WebHomeDirectoryFreeSize): Added function to measure the free space
       
   538         on the user's home directory. We use this as a factor in determining 
       
   539         the disk cache's cacpacity.
       
   540 
       
   541         * Misc/WebKitVersionChecks.h: Support for linked on or after check.
       
   542         
       
   543         * WebCoreSupport/WebFrameLoaderClient.h:
       
   544         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   545         (WebFrameLoaderClient::didPerformFirstNavigation): Implementation of
       
   546         heuristic rule #3.
       
   547 
       
   548         * WebView/WebPreferenceKeysPrivate.h:
       
   549         * WebView/WebPreferences.m:
       
   550         (cacheModelForMainBundle): Implementation of heuristic rule #2.
       
   551         (-[NSMutableDictionary _web_checkLastReferenceForIdentifier:]): Added
       
   552         notification for when a WebPreferences instance becomes inert. We use
       
   553         this to shrink the cache model back down if possible. Moved this code
       
   554         into a WebPreferences method, since it's not really a feature of 
       
   555         NSDictionary.
       
   556 
       
   557         * WebView/WebPreferencesPrivate.h: SPI declarations.
       
   558         
       
   559         * WebView/WebView.mm: Replaced manual notification posts with calls to
       
   560         the _postPreferencesChangesNotification convenience method.
       
   561 
       
   562         (-[WebView _preferencesChangedNotification:]): Merged dispersed code
       
   563         for updating preferences-related settings into this one function. This
       
   564         was needed for an earlier version of the patch, even though the 
       
   565         current version could probably do without it.
       
   566 
       
   567         (+[WebView _preferencesChangedNotification:]): Added a class-level 
       
   568         listener for WebPreferences changes. This listener takes care of 
       
   569         modifying the class-level global cache model setting if necessary.
       
   570 
       
   571         (+[WebPreferences standardPreferences]): Removed call to 
       
   572         _postPreferencesChangesNotification because the notification already 
       
   573         posts when you create the WebPreferences object. (I noticed this 
       
   574         inefficiency because my new _preferencesChangedNotification: method was
       
   575         called excessively at startup.)
       
   576 
       
   577         Also Added explicit tracking of WebPreferences clients, so we know when
       
   578         a WebPreferences instance becomes inert:
       
   579         
       
   580         (-[WebPreferences didRemoveFromWebView]):
       
   581         (-[WebPreferences willAddToWebView]):
       
   582 
       
   583         (+[WebView _setCacheModel:]): Translates a cache model into actual 
       
   584         settings in various APIs. Caches that have unbounded value grow 
       
   585         linearly relative to available space. Caches that have bounded value 
       
   586         grow inverse-squaredly relative to available space.
       
   587 
       
   588 >>>>>>> .r25438
       
   589 2007-09-05  Timothy Hatcher  <timothy@apple.com>
       
   590 
       
   591         Reviewed by Darin.
       
   592 
       
   593         <rdar://problem/5443883> Uncaught Objective-C exceptions in WebKit clients lead to hard-to-diagnose crashes
       
   594 
       
   595         Changed all the direct delegate calls to use helper functions that have direct access to
       
   596         WebView's delegate objects. These helper methods will catch any ObjC exceptions and call
       
   597         ReportDiscardedDelegateException to log the discarded exception. WebView's that have
       
   598         catchesDelegateExceptions set to NO will not pay the cost of a @try/@catch. The delegate
       
   599         forwarders also have the same behavior.
       
   600 
       
   601         * Misc/WebKitLogging.h:
       
   602         * Misc/WebKitLogging.m:
       
   603         (ReportDiscardedDelegateException):
       
   604         * Plugins/WebBaseNetscapePluginView.mm:
       
   605         (-[WebBaseNetscapePluginView loadPluginRequest:]):
       
   606         * Plugins/WebNullPluginView.mm:
       
   607         (-[WebNullPluginView viewDidMoveToWindow]):
       
   608         * WebCoreSupport/WebChromeClient.mm:
       
   609         (WebChromeClient::createWindow):
       
   610         (WebChromeClient::createModalDialog):
       
   611         (WebChromeClient::runModal):
       
   612         (WebChromeClient::toolbarsVisible):
       
   613         (WebChromeClient::statusbarVisible):
       
   614         (WebChromeClient::addMessageToConsole):
       
   615         (WebChromeClient::canRunBeforeUnloadConfirmPanel):
       
   616         (WebChromeClient::runBeforeUnloadConfirmPanel):
       
   617         (WebChromeClient::runJavaScriptAlert):
       
   618         (WebChromeClient::runJavaScriptConfirm):
       
   619         (WebChromeClient::runJavaScriptPrompt):
       
   620         (WebChromeClient::shouldInterruptJavaScript):
       
   621         (WebChromeClient::setStatusbarText):
       
   622         (WebChromeClient::print):
       
   623         * WebCoreSupport/WebContextMenuClient.mm:
       
   624         (WebContextMenuClient::getCustomMenuFromDefaultItems):
       
   625         (WebContextMenuClient::contextMenuItemSelected):
       
   626         * WebCoreSupport/WebDragClient.mm:
       
   627         (WebDragClient::startDrag):
       
   628         * WebCoreSupport/WebEditorClient.mm:
       
   629         (WebEditorClient::textFieldDidBeginEditing):
       
   630         (WebEditorClient::textFieldDidEndEditing):
       
   631         (WebEditorClient::textDidChangeInTextField):
       
   632         (WebEditorClient::doTextFieldCommandFromEvent):
       
   633         (WebEditorClient::textWillBeDeletedInTextField):
       
   634         (WebEditorClient::textDidChangeInTextArea):
       
   635         * WebCoreSupport/WebFrameBridge.mm:
       
   636         (-[WebFrameBridge viewForPluginWithFrame:URL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
   637         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   638         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
   639         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
       
   640         (WebFrameLoaderClient::dispatchWillSendRequest):
       
   641         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
   642         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
   643         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
   644         (WebFrameLoaderClient::willCacheResponse):
       
   645         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
   646         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
   647         (WebFrameLoaderClient::dispatchDidFailLoading):
       
   648         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
       
   649         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
       
   650         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
       
   651         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
   652         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
       
   653         (WebFrameLoaderClient::dispatchWillClose):
       
   654         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
   655         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
       
   656         (WebFrameLoaderClient::dispatchDidReceiveTitle):
       
   657         (WebFrameLoaderClient::dispatchDidCommitLoad):
       
   658         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
   659         (WebFrameLoaderClient::dispatchDidFailLoad):
       
   660         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
       
   661         (WebFrameLoaderClient::dispatchDidFinishLoad):
       
   662         (WebFrameLoaderClient::dispatchDidFirstLayout):
       
   663         (WebFrameLoaderClient::dispatchCreatePage):
       
   664         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
   665         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
   666         (WebFrameLoaderClient::dispatchDidLoadMainResource):
       
   667         * WebView/WebHTMLView.mm:
       
   668         (-[WebHTMLView callDelegateDoCommandBySelectorIfNeeded:]):
       
   669         (-[WebHTMLView validateUserInterfaceItem:]):
       
   670         * WebView/WebPDFView.mm:
       
   671         (-[WebPDFView validateUserInterfaceItem:]):
       
   672         (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
       
   673         * WebView/WebView.mm:
       
   674         (-[WebView _openNewWindowWithRequest:]):
       
   675         (-[WebView _menuForElement:defaultItems:]):
       
   676         (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
       
   677         (-[WebView _cacheResourceLoadDelegateImplementations]):
       
   678         (-[WebView _cacheFrameLoadDelegateImplementations]):
       
   679         (-[WebView _policyDelegateForwarder]):
       
   680         (-[WebView _UIDelegateForwarder]):
       
   681         (-[WebView _editingDelegateForwarder]):
       
   682         (-[WebView _scriptDebugDelegateForwarder]):
       
   683         (-[WebView _setCatchesDelegateExceptions:]):
       
   684         (-[WebView _catchesDelegateExceptions]):
       
   685         (-[_WebSafeForwarder initWithTarget:defaultTarget:]):
       
   686         (-[_WebSafeForwarder forwardInvocation:]):
       
   687         (-[_WebSafeForwarder methodSignatureForSelector:]):
       
   688         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
   689         (-[WebView validateUserInterfaceItem:]):
       
   690         (-[WebView _headerHeight]):
       
   691         (-[WebView _footerHeight]):
       
   692         (-[WebView _drawHeaderInRect:]):
       
   693         (-[WebView _drawFooterInRect:]):
       
   694         (-[WebView _shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
       
   695         (CallDelegate):
       
   696         (CallDelegateReturningFloat):
       
   697         (CallDelegateReturningBoolean):
       
   698         (CallUIDelegate):
       
   699         (CallUIDelegateReturningFloat):
       
   700         (CallUIDelegateReturningBoolean):
       
   701         (CallFrameLoadDelegate):
       
   702         (CallResourceLoadDelegate):
       
   703         (CallFormDelegate):
       
   704         (CallFormDelegateReturningBoolean):
       
   705         * WebView/WebViewInternal.h:
       
   706         * WebView/WebViewPrivate.h:
       
   707 
       
   708 >>>>>>> .r25411
       
   709 2007-09-04  Timothy Hatcher  <timothy@apple.com>
       
   710 
       
   711         Reviewed by Darin.
       
   712 
       
   713         <rdar://problem/5452908> NIBs saved in the Pre-10.2 format while Safari 3 installed do not work without Safari 3
       
   714 
       
   715         This happened because we encoded a new field that the old WebKit does not know how to read.
       
   716         And NSCoder throws an exception if initWithCoder finishes while there is still unread data in the archive.
       
   717 
       
   718         The WebViewVersion is now 4 to distinguish that we do not encode/decode allowsUndo.
       
   719 
       
   720         * WebView/WebView.mm:
       
   721         (-[WebView initWithCoder:]): Only try to read allowsUndo if the version is 3.
       
   722         (-[WebView encodeWithCoder:]): No longer encode allowsUndo.
       
   723 
       
   724 2007-09-04  David Hyatt  <hyatt@apple.com>
       
   725 
       
   726         Fix for <rdar://problem/5271213>, resizing iChat window is slower than in
       
   727         Tiger.  This patch implements a fast scaling mode that can be used by
       
   728         WebViews, e.g., during window resizing.
       
   729 
       
   730         Reviewed by John Sullivan
       
   731 
       
   732         * WebView/WebView.mm:
       
   733         (-[WebView _setUseFastImageScalingMode:]):
       
   734         (-[WebView _inFastImageScalingMode]):
       
   735         * WebView/WebViewPrivate.h:
       
   736 
       
   737 2007-09-04  Darin Adler  <darin@apple.com>
       
   738 
       
   739         Reviewed by Hyatt.
       
   740 
       
   741         * WebView/WebView.mm:
       
   742         (-[WebView _loadBackForwardListFromOtherView:]): Added missing null check.
       
   743         (-[WebView _setInitiatedDrag:]): Ditto.
       
   744         (-[WebView _clearUndoRedoOperations]): Ditto.
       
   745         (-[WebView encodeWithCoder:]): Ditto.
       
   746         (-[WebView backForwardList]): Ditto.
       
   747         (-[WebView setMaintainsBackForwardList:]): Ditto.
       
   748 
       
   749 2007-09-04  Tristan O'Tierney  <tristan@apple.com>
       
   750 
       
   751         Reviewed by John Sullivan.
       
   752         
       
   753         <rdar://problem/5454935> Can't reply to this message in Mail -- -[DOMRange webArchive] is throwing an exception
       
   754 
       
   755         * WebView/WebArchiver.mm:
       
   756         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
       
   757         Guard the creation of WebResource by ensuring that the passed in
       
   758         responseURL is never nil.
       
   759 
       
   760 2007-09-03  Mark Rowe  <mrowe@apple.com>
       
   761 
       
   762         Reviewed by Tim Hatcher.
       
   763 
       
   764         <rdar://problem/5452164> Production build with in symbols directory has no debug info
       
   765 
       
   766         Enable debug symbol generation on all build configurations.  Production builds are stripped
       
   767         of symbols by Xcode during deployment post-processing.
       
   768 
       
   769         * Configurations/Base.xcconfig:
       
   770         * WebKit.xcodeproj/project.pbxproj:
       
   771 
       
   772 2007-09-02  Brady Eidson  <beidson@apple.com>
       
   773 
       
   774         Reviewed by John Sullivan and Mark Rowe
       
   775 
       
   776         Groundwork for support for monitoring IconDatabase in-memory statistics
       
   777  
       
   778         * Misc/WebCoreStatistics.h:
       
   779         * Misc/WebCoreStatistics.mm:
       
   780         (+[WebCoreStatistics iconPageURLMappingCount]):
       
   781         (+[WebCoreStatistics iconRetainedPageURLCount]):
       
   782         (+[WebCoreStatistics iconRecordCount]):
       
   783         (+[WebCoreStatistics iconsWithDataCount]):
       
   784 
       
   785 2007-09-01  Oliver Hunt  <oliver@apple.com>
       
   786 
       
   787         Reviewed by Sam.
       
   788 
       
   789         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
       
   790 
       
   791         EditorClient::setInputMethodState stub
       
   792 
       
   793         * WebCoreSupport/WebEditorClient.h:
       
   794         * WebCoreSupport/WebEditorClient.mm:
       
   795         (WebEditorClient::setInputMethodState):
       
   796 
       
   797 2007-08-30  Maciej Stachowiak  <mjs@apple.com>
       
   798 
       
   799         Reviewed by Tim.
       
   800         
       
   801         <rdar://problem/5439953> REGRESSION: Cannot load feeds in widgets in Dashcode due to change in WebKit delegate methods
       
   802 
       
   803         * WebView/WebFrame.mm:
       
   804         (-[WebFrame _attachScriptDebugger]): Don't create the debugger object if the frame has not yet
       
   805         created its script interpreter, to avoid premature dispatch of windowScriptObjectAvailable/Cleared
       
   806         delegate methods. The script debugger will be created in any case when the window object does appear.
       
   807 
       
   808 2007-08-29  Darin Adler  <darin@apple.com>
       
   809 
       
   810         Reviewed by Tim Hatcher.
       
   811 
       
   812         - fix <rdar://problem/4582212> WebKit inappropriately adds +initialize to
       
   813           NSPasteboard via a category, prevents AppKit initialize
       
   814           http://bugs.webkit.org/show_bug.cgi?id=9417
       
   815 
       
   816         * Misc/WebNSPasteboardExtras.h: Got rid of the global data objects and replaced
       
   817         them with global functions.
       
   818 
       
   819         * Misc/WebNSPasteboardExtras.mm:
       
   820         (initializePasteboardTypes): Changed the initialize method to be this function.
       
   821         (WebURLPasteboardType): Added, calls the initialize function and then returns
       
   822         the value of the global.
       
   823         (WebURLNamePasteboardType): Ditto.
       
   824         (+[NSPasteboard _web_writableTypesForURL]): Changed to call the new function instead
       
   825         of getting at the global directly.
       
   826         (+[NSPasteboard _web_dragTypesForURL]): Ditto.
       
   827         (-[NSPasteboard _web_writeURL:andTitle:types:]): Ditto.
       
   828         * WebCoreSupport/WebPasteboardHelper.mm:
       
   829         (WebPasteboardHelper::urlFromPasteboard): Ditto.
       
   830         * WebView/WebHTMLView.mm:
       
   831         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]): Ditto.
       
   832 
       
   833         * WebView/WebView.mm:
       
   834         (+[WebView initialize]): Added a call to one of the functions to take advantage
       
   835         of the side effect that initializes the globals; this is to help out old versions
       
   836         of Safari.
       
   837         (+[WebView URLTitleFromPasteboard:]): Changed to call the new function instead
       
   838         of getting at the global directly.
       
   839 
       
   840         * WebKit.exp: Add exports of the new functions.
       
   841 
       
   842 2007-08-29  Adele Peterson  <adele@apple.com>
       
   843 
       
   844         Reviewed by Darin.
       
   845 
       
   846         Fix for http://bugs.webkit.org/show_bug.cgi?id=15098
       
   847         <rdar://problem/5440319> REGRESSION (9A530-9A534): Double scroll bar on pdfs
       
   848 
       
   849         * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::makeDocumentView):
       
   850          Don't suppress scrollbars before the view creation if we're making the view for a non-html view
       
   851 
       
   852         * WebView/WebFrameViewInternal.h: Make _scrollView return a WebDynamicScrollBarsView since so many clients were relying on it being that type anyway.
       
   853         * WebView/WebFrameView.mm:
       
   854         (-[WebFrameView _setDocumentView:]):
       
   855         (-[WebFrameView _scrollView]):
       
   856         (-[WebFrameView setAllowsScrolling:]):
       
   857         (-[WebFrameView allowsScrolling]):
       
   858         * WebView/WebView.mm:
       
   859         (-[WebView setAlwaysShowVerticalScroller:]):
       
   860         (-[WebView alwaysShowVerticalScroller]):
       
   861         (-[WebView setAlwaysShowHorizontalScroller:]):
       
   862         (-[WebView alwaysShowHorizontalScroller]):
       
   863 
       
   864 2007-08-29  David Hyatt  <hyatt@apple.com>
       
   865 
       
   866         The method that was swizzled to fix 5441281 does not exist on Tiger.
       
   867         Tiger has to do a double swizzle instead (of resetCursorRects and NSCursor's
       
   868         set method) in order to roughly achieve the same effect.
       
   869 
       
   870         Reviewed by darin
       
   871 
       
   872         * WebView/WebHTMLView.mm:
       
   873         (resetCursorRects):
       
   874         (setCursor):
       
   875         (+[WebHTMLViewPrivate initialize]):
       
   876 
       
   877 2007-08-29  Anders Carlsson  <andersca@apple.com>
       
   878 
       
   879         Fix 64-bit build.
       
   880         
       
   881         * WebCoreSupport/WebFrameBridge.mm:
       
   882 
       
   883 2007-08-29  David Hyatt  <hyatt@apple.com>
       
   884 
       
   885         Fix for 5441281, remove our dependency on cursor rects and drag margins
       
   886         in AppKit for a large performance boost on the PLT and iBench.
       
   887 
       
   888         Reviewed by darin
       
   889 
       
   890         * Plugins/WebBaseNetscapePluginView.h:
       
   891         * Plugins/WebBaseNetscapePluginView.mm:
       
   892         (-[WebBaseNetscapePluginView sendNullEvent]):
       
   893         (-[WebBaseNetscapePluginView mouseEntered:]):
       
   894         (-[WebBaseNetscapePluginView mouseExited:]):
       
   895         (-[WebBaseNetscapePluginView stop]):
       
   896         Clean up cursor setting from Netscape plugins.  Don't unconditionally mutate
       
   897         the cursor when a plugin stops.
       
   898 
       
   899         * WebView/WebFrameView.mm:
       
   900         (-[WebFrameView _setDocumentView:]):
       
   901         Suppress the resetting of drag margins while the new document view is being
       
   902         added to the view hierarchy.
       
   903 
       
   904         * WebView/WebHTMLView.mm:
       
   905         (-[NSWindow _web_borderView]):
       
   906         Expose the border view of the NSWindow so that it can be hit tested.
       
   907 
       
   908         (setCursorForMouseLocation):
       
   909         Apply a method swizzle to override the private AppKit method, _setCursorForMouseLocation.
       
   910         We have to do this to suppress the cursor rect invalidation handling from resetting
       
   911         the cursor for no reason.
       
   912 
       
   913         The swizzle will do a hit test and allow the cursor set to occur if the mouse ends up
       
   914         being over a plugin or over a view other than a WebHTMLView.
       
   915 
       
   916         (+[WebHTMLViewPrivate initialize]):
       
   917         The swizzle for setCursorForMouseLocation is set up here.
       
   918 
       
   919         (-[WebHTMLView _frameOrBoundsChanged]):
       
   920         Add a 100ms delay to the fake mouse moved event that fires when the view moves
       
   921         under the mouse (without the mouse moving).  This happens on iBench when the
       
   922         pages get scrolled.  By adding a delay we ensure that even with the mouse inside
       
   923         the window, we don't experience cursor thrashing when pages are updating and
       
   924         scrolling rapidly.
       
   925 
       
   926 2007-08-28  Anders Carlsson  <andersca@apple.com>
       
   927 
       
   928         Reviewed by Darin.
       
   929 
       
   930         <rdar://problem/5424866> Bottom portion of any Web Clip widget appears transparent
       
   931         
       
   932         * WebCoreSupport/WebFrameBridge.mm:
       
   933         Use the enum from FrameLoaderTypes.h.
       
   934         
       
   935         * WebCoreSupport/WebFrameLoaderClient.mm:
       
   936         (WebFrameLoaderClient::objectContentType):
       
   937         Return ObjectContentNetscapePlugin and ObjectContentOtherPlugin depending on the plug-in type.
       
   938 
       
   939 2007-08-28  Mark Rowe  <mrowe@apple.com>
       
   940 
       
   941         Reviewed by Maciej Stachowiak.
       
   942 
       
   943         Fix fallout from the fix for <rdar://problem/5437983> (Loading history containing 100,000 entries adds 20s to Safari's startup)
       
   944         in r25275.  The array of entries for each day was being maintained in the reverse of the order that was expected.
       
   945 
       
   946         * History/WebHistory.mm:
       
   947         (-[WebHistoryPrivate insertItem:forDateKey:]): Maintain the array of entries in descending order.
       
   948 
       
   949 2007-08-28  Mark Rowe  <mrowe@apple.com>
       
   950 
       
   951         Fix the buildbot build.
       
   952 
       
   953         * History/WebHistory.mm:
       
   954         (timeIntervalForBeginningOfDay):  Explicitly cast to silence compiler warning.
       
   955 
       
   956 2007-08-28  Mark Rowe  <mrowe@apple.com>
       
   957 
       
   958         Reviewed by Darin Adler.
       
   959 
       
   960         <rdar://problem/5437983> Loading history containing 100,000 entries adds 20s to Safari's startup
       
   961 
       
   962         Move WebHistoryItemPrivate from using a sorted array of NSCalendarDate's that map to a sorted array of arrays
       
   963         of WebHistoryItem's over to using a HashMap of NSTimeIntervals and arrays of WebHistoryItems.  NSTimeInterval
       
   964         uses less memory and is substantially cheaper during comparisons than NSCalendarDate.  The use of the HashMap
       
   965         avoids the needs to repeatedly search within an array to locate the array that corresponds to the given days
       
   966         history items.
       
   967 
       
   968         The result of these changes is that loading 100,000 history items drops from around 25s to 1.6s.  Loading
       
   969         100 items drops from 0.003s to 0.002s.
       
   970 
       
   971         * History/WebHistory.mm:
       
   972         (-[WebHistoryPrivate init]):
       
   973         (-[WebHistoryPrivate dealloc]):
       
   974         (timeIntervalForBeginningOfDay): Return the NSTimeInterval representing the beginning of the specified day.
       
   975         (-[WebHistoryPrivate findKey:forDay:]):
       
   976         (-[WebHistoryPrivate insertItem:forDateKey:]): Perform a binary search within the day's history items rather than a linear search.
       
   977         (-[WebHistoryPrivate _removeItemFromDateCaches:]):
       
   978         (-[WebHistoryPrivate _addItemToDateCaches:]):
       
   979         (-[WebHistoryPrivate removeAllItems]):
       
   980         (-[WebHistoryPrivate orderedLastVisitedDays]): Generate and cache the sorted NSArray of NSCalendarDate's exposed in the API.
       
   981         This cache is invalidated by _removeItemFromDateCaches: and _addItemToDateCaches: when needed.
       
   982         (-[WebHistoryPrivate orderedItemsLastVisitedOnDay:]):
       
   983         (-[WebHistoryPrivate arrayRepresentation]):
       
   984         (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]): Use an autorelease pool to keep the
       
   985         number of live autoreleased objects generated to a reasonable level.
       
   986         * History/WebHistoryItem.mm:
       
   987         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
       
   988         (-[WebHistoryItem initFromDictionaryRepresentation:]): Use the new HistoryItem constructor that accepts the alternate title
       
   989         rather than setting it after construction.  This prevents a modification notification from being sent for each WebHistoryItem that is loaded.
       
   990         * History/WebHistoryItemInternal.h:
       
   991         * History/WebHistoryPrivate.h:
       
   992         * Misc/WebNSCalendarDateExtras.h: Removed as _webkit_compareDay: is no longer used.
       
   993         * Misc/WebNSCalendarDateExtras.m: Removed.
       
   994         * WebKit.xcodeproj/project.pbxproj:
       
   995 
       
   996 2007-08-28  Anders Carlsson  <andersca@apple.com>
       
   997 
       
   998         Reviewed by Darin.
       
   999 
       
  1000         <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
       
  1001         
       
  1002         Expose WKSetNSURLRequestShouldContentSniff to WebCore.
       
  1003         
       
  1004         * WebCoreSupport/WebSystemInterface.m:
       
  1005         (InitWebCoreSystemInterface):
       
  1006 
       
  1007 2007-08-24  Kevin McCullough  <kmccullough@apple.com>
       
  1008 
       
  1009         Reviewed by Darin.
       
  1010 
       
  1011         <rdar://problem/5437038> 1 credential object leaked for each call to credentialWithUser:password:persistence
       
  1012         - Use initWithUser instead of credentialWithUser because credentialWithUser leaks.
       
  1013 
       
  1014         * Panels/WebAuthenticationPanel.m:
       
  1015         (-[WebAuthenticationPanel runAsModalDialogWithChallenge:]):
       
  1016         (-[WebAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
       
  1017 
       
  1018 2007-08-24  Adele Peterson  <adele@apple.com>
       
  1019 
       
  1020         Fix by Darin, reviewed by Adele.
       
  1021 
       
  1022         Fix for <rdar://problem/5433422> Upon quitting, WebKit loads the WebPlugin shared database and immediately closes it
       
  1023 
       
  1024         * Plugins/WebPluginDatabase.h: Added closeSharedDatabase, which won't create a new database if we're just trying to close it.
       
  1025         * Plugins/WebPluginDatabase.m: (+[WebPluginDatabase closeSharedDatabase]): Added.
       
  1026         * WebView/WebView.mm:
       
  1027         (-[WebView _close]): Call closeSharedDatabase.
       
  1028         (+[WebView _applicationWillTerminate]): Call closeSharedDatabase.
       
  1029 
       
  1030 2007-08-24  Timothy Hatcher  <timothy@apple.com>
       
  1031 
       
  1032         Reviewed by John Sullivan.
       
  1033 
       
  1034         <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
       
  1035 
       
  1036         This is a more localized fix for yesterday's change. Now explicitly call _web_layoutIfNeededRecursive inside the
       
  1037         HIWebView Draw() function. Adds a FIXME to explain that we need to do layout before Carbon has decided what regions to draw.
       
  1038         Doing layout in Draw() will potentially cause drawing to happen in two passes, but this has always been a problem in Carbon.
       
  1039 
       
  1040         * Carbon/HIWebView.m:
       
  1041         (Draw): Call _web_layoutIfNeededRecursive on the main WebHTMLView.
       
  1042         (SetFocusPart): Fix to work in ObjC++ (now that HIWebView.m is treated as a ObjC++ file.)
       
  1043         * WebView/WebView.mm: Removes the 4 displayIfNeeded methods from yesterday's change.
       
  1044         * WebKit.xcodeproj/project.pbxproj: Force the file type of HIWebView.m to ObjC++ so WebHTMLViewInternal.h can be included.
       
  1045 
       
  1046 2007-08-23  Timothy Hatcher  <timothy@apple.com>
       
  1047 
       
  1048         Reviewed by Dave Hyatt.
       
  1049 
       
  1050         <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
       
  1051 
       
  1052         The Carbon HIWebView was relying on layout happening when displayIfNeededInRect: was called on the WebView.
       
  1053         This would happen on Tiger because _recursiveDisplayRectIfNeededIgnoringOpacity: would always do a layout if needed.
       
  1054         Doing a layout in _recursiveDisplayRectIfNeededIgnoringOpacity was removed in Leopard in favor of viewWillDraw, and
       
  1055         the fact that adding new dirty rects inside _recursiveDisplayRectIfNeededIgnoringOpacity on Leopard will not
       
  1056         cause a drawRect in the same display loop.
       
  1057 
       
  1058         So any client on Leopard calling displayIfNeeded* on the WebView would get a layout and any new dirty rects. So
       
  1059         _web_layoutIfNeededRecursive needs to be called on the main frame's WebHTMLView to make sure we layout and
       
  1060         display anything that is really needed.
       
  1061 
       
  1062         * WebView/WebHTMLView.mm:
       
  1063         (-[WebHTMLView _layoutIfNeeded]):
       
  1064         (-[WebHTMLView _web_layoutIfNeededRecursive]):
       
  1065         * WebView/WebHTMLViewInternal.h:
       
  1066         * WebView/WebView.mm:
       
  1067         (-[WebView displayIfNeeded]): Call _web_layoutIfNeededRecursive on the main WebHTMLView.
       
  1068         (-[WebView displayIfNeededIgnoringOpacity]): Ditto.
       
  1069         (-[WebView displayIfNeededInRect:]): Ditto. 
       
  1070         (-[WebView displayIfNeededInRectIgnoringOpacity:]): Ditto.
       
  1071 
       
  1072 2007-08-22  Timothy Hatcher  <timothy@apple.com>
       
  1073 
       
  1074         Rolling out r25102 for <rdar://problem/5410937> until
       
  1075         <rdar://problem/5429920> is resolved.
       
  1076 
       
  1077         * Carbon/CarbonUtils.m:
       
  1078         (WebInitForCarbon):
       
  1079         (PoolCleaner):
       
  1080         * Carbon/CarbonWindowAdapter.h:
       
  1081         * Carbon/CarbonWindowAdapter.m:
       
  1082         * Carbon/CarbonWindowContentView.h:
       
  1083         * Carbon/CarbonWindowContentView.m:
       
  1084         * Carbon/CarbonWindowFrame.h:
       
  1085         * Carbon/CarbonWindowFrame.m:
       
  1086         * Carbon/HIViewAdapter.h:
       
  1087         * Carbon/HIViewAdapter.m:
       
  1088         * Carbon/HIWebView.h:
       
  1089         * Carbon/HIWebView.m:
       
  1090 
       
  1091 2007-08-20  John Sullivan  <sullivan@apple.com>
       
  1092 
       
  1093         Reviewed by Adam Roben
       
  1094         
       
  1095         WebKit part of fix for: 
       
  1096         <rdar://problem/5417777> WebKit focus ring color no longer matches system focus rings
       
  1097 
       
  1098         * Misc/WebNSAttributedStringExtras.mm:
       
  1099         now includes <WebCore/ColorMac.h> to account for moved declaration
       
  1100         * WebView/WebFrame.mm:
       
  1101         ditto
       
  1102         
       
  1103         * WebView/WebViewPrivate.h:
       
  1104         * WebView/WebView.mm:
       
  1105         (+[WebView _setUsesTestModeFocusRingColor:]):
       
  1106         new SPI, calls through to new WebCore function. This is used by DumpRenderTree to make sure the
       
  1107         focus ring color is always the same when performing layout tests, regardless of OS X version.
       
  1108         (+[WebView _usesTestModeFocusRingColor]):
       
  1109         new SPI, calls through to new WebCore function
       
  1110 
       
  1111 2007-08-20  Antti Koivisto  <antti@apple.com>
       
  1112 
       
  1113         Reviewed by John.
       
  1114         
       
  1115         Fix <rdar://problem/5378390>
       
  1116         Crash at Range::startContainer() when creating multiple ToDos on the same line
       
  1117         
       
  1118         Null check range.
       
  1119         
       
  1120         No layout test, this only happens with ObjC API.
       
  1121 
       
  1122         * WebView/WebHTMLView.mm:
       
  1123         (-[WebHTMLView _expandSelectionToGranularity:]):
       
  1124 
       
  1125 2007-08-20  Maciej Stachowiak  <mjs@apple.com>
       
  1126 
       
  1127         Not reviewed, fix for crash on launch bug in last patch.
       
  1128 
       
  1129         * WebView/WebHTMLView.mm:
       
  1130         (-[WebHTMLView setDataSource:]): Remove an assertion, fix code to work right in the
       
  1131         face of that condition.
       
  1132 
       
  1133 2007-08-18  Maciej Stachowiak  <mjs@apple.com>
       
  1134 
       
  1135         Reviewed by Darin.
       
  1136         
       
  1137         - fixed <rdar://problem/5198272> REGRESSION: PLT 1.5% slower due to r21367 (change to start frames with empty documents)
       
  1138 
       
  1139         There were three main cuases of extra time due to creating the initial empty document:
       
  1140         
       
  1141         1) Creating an extra WebHTMLView and swapping it for a new one for each frame created.
       
  1142         2) Parsing the minimal markup for the initial document's contents.
       
  1143         3) Clearing the Window object an extra time and dispatching the corresponding delegate method.
       
  1144         
       
  1145         The WebKit part of the fixes addresses 1.
       
  1146 
       
  1147         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1148         (WebFrameLoaderClient::makeDocumentView): When switching from the initial
       
  1149         empty document to the first real document, reuse the WebHTMLView.
       
  1150         
       
  1151         It might actually be a significant performance improvement to always
       
  1152         reuse the WebHTMLView, but that is a much riskier change and not
       
  1153         needed to fix the regression right now.
       
  1154 
       
  1155 2007-08-17  Maciej Stachowiak  <mjs@apple.com>
       
  1156 
       
  1157         Reviewed by Darin.
       
  1158 
       
  1159         - WebKit part of fix to scrollbar suppression hack for Leopard
       
  1160 
       
  1161         * WebView/WebDynamicScrollBarsView.m:
       
  1162         (-[WebDynamicScrollBarsView reflectScrolledClipView:]): Don't call the superclass method
       
  1163         when scrollbars are suppressed.
       
  1164         (-[WebDynamicScrollBarsView setScrollBarsSuppressed:repaintOnUnsuppress:]): Instead call it
       
  1165         here, when unsuppressing.
       
  1166 
       
  1167 2007-08-17  Darin Adler  <darin@apple.com>
       
  1168 
       
  1169         Reviewed by Maciej.
       
  1170 
       
  1171         - fix <rdar://problem/5414518> Use root URL as origin URL when quarantining downloads
       
  1172 
       
  1173         * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::setOriginalURLForDownload):
       
  1174         Extract only the scheme and host name and make the originating URL from that.
       
  1175 
       
  1176         * WebKit/StringsNotToBeLocalized.txt: Updated for recent changes.
       
  1177 
       
  1178 2007-08-17  Timothy Hatcher  <timothy@apple.com>
       
  1179 
       
  1180         Reviewed by Darin.
       
  1181 
       
  1182         <rdar://problem/5398301> Xcode threw mutation exception while enumerating subviews (GC only)
       
  1183 
       
  1184         I was never able to reproduce this exception. But there can be cases where layout will
       
  1185         trigger JavaScript or plugin code that can modify the WebView view hierarchy during a
       
  1186         recursive enumeration of all the subviews.
       
  1187 
       
  1188         This patch does two things:
       
  1189         1) Adds a check in debug builds that will LOG when any view is added or removed during layout.
       
  1190         Noting that added views will not recieve layout this round and might paint without first recieving layout.
       
  1191 
       
  1192         2) Recursivly builds up an array of descendant WebHTMLViews before calling layout on them.
       
  1193         This matches the behavior of makeObjectsPerformSelector: in the non-GC case (making a copy
       
  1194         before enumerating.)
       
  1195 
       
  1196         * WebView/WebHTMLView.mm:
       
  1197         (-[WebHTMLView _web_setPrintingModeRecursive]): Use _web_addDescendantWebHTMLViewsToArray to build up an array
       
  1198         of WebHTMLViews to enumerate.
       
  1199         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
       
  1200         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
       
  1201         (-[WebHTMLView _web_layoutIfNeededRecursive]): Ditto.
       
  1202         (-[WebHTMLView _layoutIfNeeded]): Moved to WebHTMLViewFileInternal category.
       
  1203         (-[WebHTMLView didAddSubview:]): LOG in debug builds.
       
  1204         (-[WebHTMLView willRemoveSubview:]): Ditto.
       
  1205         (-[NSView _web_addDescendantWebHTMLViewsToArray:]): Recursivly build an array of descendant WebHTMLViews.
       
  1206         * WebView/WebHTMLViewInternal.h: Added a BOOL in WebHTMLViewPrivate to track subview changes (debug only.)
       
  1207 
       
  1208 2007-08-17  Anders Carlsson  <andersca@apple.com>
       
  1209 
       
  1210         Reviewed by Dave Hyatt.
       
  1211 
       
  1212         <rdar://problem/5379040> 
       
  1213         REGRESSION (Tiger-Leopard): ADOBE: Safari calls NPP_SetWindow with bad values sometimes
       
  1214         
       
  1215         Pass the right size when creating the views.
       
  1216         
       
  1217         * WebCoreSupport/WebFrameBridge.mm:
       
  1218         (-[WebFrameBridge viewForPluginWithFrame:URL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
  1219         * WebCoreSupport/WebFrameLoaderClient.h:
       
  1220         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1221         (WebFrameLoaderClient::createPlugin):
       
  1222 
       
  1223 2007-08-13  Geoffrey Garen  <ggaren@apple.com>
       
  1224 
       
  1225         Reviewed by Dave Hyatt.
       
  1226         
       
  1227         WebKit changes to support new cache eviction model in WebCore.
       
  1228 
       
  1229         * WebView/WebPreferences.m:
       
  1230         (+[WebPreferences initialize]): Modified to reflect new API in WebCore.
       
  1231         * WebView/WebView.mm:
       
  1232         (+[WebView _initializeCacheSizesIfNecessary]): Slightly increased cache
       
  1233         size on low memory systems to avoid affecting the PLT for now.
       
  1234 
       
  1235 2007-08-15  Timothy Hatcher  <timothy@apple.com>
       
  1236 
       
  1237         Reviewed by Darin.
       
  1238 
       
  1239         <rdar://problem/5410937> HIWebView in SimpleCarbonWeb doesn't seem to be getting adequate invalidation when window is resized
       
  1240 
       
  1241         HIWebViewCreate now just returns a HIViewRef created with HICocoaViewCreate. This eliminates lots of old code and
       
  1242         makes HIWebView a better citizen starting with Leopard. The old code paths are still needed for Tiger, so now
       
  1243         most of the files in the WebKit/Carbon directory are #ifdef BUILDING_ON_TIGER.
       
  1244 
       
  1245         The Tiger code is unchanged and dosen't exhibit the invalidation problem when the window resizes.
       
  1246 
       
  1247         * Carbon/CarbonUtils.m:
       
  1248         (WebInitForCarbon): #ifdef BUILDING_ON_TIGER portions of this code that is not needed on Leopard.
       
  1249         * Carbon/CarbonWindowAdapter.h: #ifdef BUILDING_ON_TIGER
       
  1250         * Carbon/CarbonWindowAdapter.m: Ditto.
       
  1251         * Carbon/CarbonWindowContentView.h: Ditto.
       
  1252         * Carbon/CarbonWindowContentView.m: Ditto.
       
  1253         * Carbon/CarbonWindowFrame.h: Ditto.
       
  1254         * Carbon/CarbonWindowFrame.m: Ditto.
       
  1255         * Carbon/HIViewAdapter.h: Ditto.
       
  1256         * Carbon/HIViewAdapter.m: Ditto.
       
  1257         * Carbon/HIWebView.h: Consolidate two #ifdef __OBJC__ blocks into one.
       
  1258         * Carbon/HIWebView.m: Implement Leopard specific HIWebViewCreate, HIWebViewCreateWithClass and HIWebViewGetWebView.
       
  1259         (HIWebViewCreate): Call HIWebViewCreateWithClass passing [WebView class].
       
  1260         (HIWebViewCreateWithClass): Call HICocoaViewCreate with an instance of the class passed in.
       
  1261         (HIWebViewGetWebView): Call HICocoaViewGetView.
       
  1262 
       
  1263 2007-08-14  Brady Eidson  <beidson@apple.com>
       
  1264 
       
  1265         Reviewed by Darin, John, Maciej, Oliver, and Tim
       
  1266 
       
  1267         <rdar://problem/5394708> - Crash on launch with corrupt icon database
       
  1268 
       
  1269         Expose some new SPI to help recover from this case should it happen again
       
  1270 
       
  1271         * Misc/WebIconDatabase.mm:
       
  1272         (-[WebIconDatabase init]): Use the new _databaseDirectory to determine where to open the database on disk
       
  1273         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Tell the icon database to check integrity when it opens
       
  1274         (-[WebIconDatabase _databaseDirectory]): Moved the database-directory-determining logic here as it's now used in two places
       
  1275         * Misc/WebIconDatabasePrivate.h: Added _checkIntegrityBeforeOpening SPI for clients to give hints about when the
       
  1276           integrity check should run
       
  1277 
       
  1278 2007-08-12  Alexey Proskuryakov  <ap@webkit.org>
       
  1279 
       
  1280         Reviewed by Darin.
       
  1281 
       
  1282         http://bugs.webkit.org/show_bug.cgi?id=4648
       
  1283         Shockwave unable to load GZip'd text resources when server sends Content-Length header
       
  1284 
       
  1285         * Plugins/WebBaseNetscapePluginStream.mm:
       
  1286         (-[WebBaseNetscapePluginStream startStreamWithResponse:]): Don't trust 
       
  1287         -[NSURLResponse expectedContentLength] if Content-Encoding is not identity.
       
  1288 
       
  1289 2007-08-10  Timothy Hatcher  <timothy@apple.com>
       
  1290 
       
  1291         Reviewed by Mark Rowe.
       
  1292 
       
  1293         <rdar://problem/5403302> HIWebView.h should be #ifdefed out for 64-bit
       
  1294 
       
  1295         * Carbon/HIWebView.h: #ifdef out the header in 64-bit. Adds a comment about 32-bit only.
       
  1296         * Carbon/CarbonUtils.h: Ditto.
       
  1297 
       
  1298 2007-08-10  Timothy Hatcher  <timothy@apple.com>
       
  1299 
       
  1300         Reviewed by Adam.
       
  1301 
       
  1302         <rdar://problem/5394449> Stop using some Carbon UI APIs for 64 bit
       
  1303 
       
  1304         Disable NPObject use in 64-bit on Mac OS X. Also generate the 64-bit export file.
       
  1305 
       
  1306         * Configurations/WebKit.xcconfig: Point to the generated 64-bit export file.
       
  1307         * Plugins/WebBasePluginPackage.h:
       
  1308         * Plugins/npfunctions.h: #ifdef out this header in 64-bit on Mac OS X.
       
  1309         * WebKit.LP64.exp: Removed.
       
  1310         * WebKit.xcodeproj/project.pbxproj: Generate the the 64-bit export file.
       
  1311         * WebKitPrefix.h: Define WTF_USE_NPOBJECT.
       
  1312 
       
  1313 2007-08-10  Anders Carlsson  <andersca@apple.com>
       
  1314 
       
  1315         Reviewed by Geoff.
       
  1316 
       
  1317         <rdar://problem/5390568>
       
  1318         REGRESSION: -[WebFrame loadHTMLString:baseURL:] leaks the data source
       
  1319         
       
  1320         If the identifier is not in the map, just bail out instead of asserting. This is a better fix for
       
  1321         <rdar://problem/5133420> because WebCore shouldn't have to worry about the lifetime of WebKit objects.
       
  1322         
       
  1323         * WebView/WebDocumentLoaderMac.mm:
       
  1324         (WebDocumentLoaderMac::decreaseLoadCount):
       
  1325 
       
  1326 2007-08-10  Oliver Hunt  <oliver@apple.com>
       
  1327 
       
  1328         Reviewed by Darin.
       
  1329 
       
  1330         Fixed <rdar://problem/5000470> REGRESSION: ATOK IM: reconvert returns incorrect symbol due to inconsistent range domains in TSM by working around <rdar://problem/5400551> [NSAttributedString(WebKitExtras) _web_attributedStringFromRange:] adds whitespace to the requested range
       
  1331 
       
  1332         We truncate the returned string to the expected length.
       
  1333 
       
  1334         * WebView/WebHTMLView.mm:
       
  1335         (-[WebHTMLView attributedSubstringFromRange:]):
       
  1336 
       
  1337 2007-08-09  Mark Rowe  <mrowe@apple.com>
       
  1338 
       
  1339         Reviewed by Antti.
       
  1340 
       
  1341         <rdar://problem/5400709> Versioning in debug and release builds should include minor and tiny version before +
       
  1342 
       
  1343         * Configurations/Version.xcconfig:
       
  1344         * WebKit.xcodeproj/project.pbxproj: Add a shell script phase to make to dependency between
       
  1345         Version.xcconfig and Info.plist explicit to Xcode.
       
  1346 
       
  1347 2007-08-08  Kevin Decker <kdecker@apple.com>
       
  1348 
       
  1349         Reviewed by Anders Carlsson.
       
  1350 
       
  1351         Fixed: <rdar://problem/5394449> Stop using some Carbon UI APIs for 64 bit
       
  1352         
       
  1353         #ifdef'd out Netscape style plug-ins on 64-bit because Mac OS X doesn't support 64-bit Carbon UI.
       
  1354         
       
  1355         * Plugins/WebBaseNetscapePluginStream.h:
       
  1356         * Plugins/WebBaseNetscapePluginStream.mm:
       
  1357         * Plugins/WebBaseNetscapePluginView.h:
       
  1358         * Plugins/WebBaseNetscapePluginView.mm:
       
  1359         (+[WebBaseNetscapePluginView getCarbonEvent:]):
       
  1360         (TSMEventHandler):
       
  1361         * Plugins/WebBaseNetscapePluginViewInternal.h:
       
  1362         * Plugins/WebBaseNetscapePluginViewPrivate.h:
       
  1363         * Plugins/WebBasePluginPackage.m:
       
  1364         (+[WebBasePluginPackage pluginWithPath:]):
       
  1365         * Plugins/WebNetscapePluginEmbeddedView.h:
       
  1366         * Plugins/WebNetscapePluginEmbeddedView.mm:
       
  1367         * Plugins/WebNetscapePluginPackage.h:
       
  1368         * Plugins/WebNetscapePluginPackage.m:
       
  1369         * Plugins/WebNetscapePluginStream.h:
       
  1370         * Plugins/WebNetscapePluginStream.mm:
       
  1371         * Plugins/WebPluginDatabase.m:
       
  1372         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
       
  1373         * Plugins/npapi.m:
       
  1374         * WebCoreSupport/WebFrameBridge.mm:
       
  1375         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
  1376         * WebView/WebFrame.mm:
       
  1377         * WebView/WebFramePrivate.h:
       
  1378         * WebView/WebHTMLView.mm:
       
  1379         (-[NSArray _web_makePluginViewsPerformSelector:withObject:]):
       
  1380         * WebView/WebHTMLViewInternal.h:
       
  1381 
       
  1382 2007-08-07  David Hyatt  <hyatt@apple.com>
       
  1383 
       
  1384         Fix a botched backout of the Quicktime plugin clipping fix that broke Java.  The plugin view should not
       
  1385         be set to autosize with the parent view.  Also, cleanup of script objects was removed accidentally as
       
  1386         well.
       
  1387 
       
  1388         Reviewed by olliej
       
  1389 
       
  1390         * Plugins/WebPluginController.mm:
       
  1391         (-[WebPluginController destroyPlugin:]):
       
  1392         (-[WebPluginController destroyAllPlugins]):
       
  1393         * WebCoreSupport/WebFrameBridge.mm:
       
  1394         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
       
  1395 
       
  1396 2007-08-03  Brady Eidson  <beidson@apple.com>
       
  1397 
       
  1398         Reviewed by Oliver
       
  1399 
       
  1400         Fix for http://bugs.webkit.org/show_bug.cgi?id=14824 and <rdar://problem/5372989>
       
  1401 
       
  1402         When unregistering a MIMEType, remove it from the WebCore registry unconditionally
       
  1403         When registrying a MIMEType whose view class is WebHTMLView, add it to the WebCore registry
       
  1404 
       
  1405         * WebView/WebView.mm:
       
  1406         (+[WebView _unregisterViewClassAndRepresentationClassForMIMEType:]): 
       
  1407         (+[WebView _registerViewClass:representationClass:forURLScheme:]):
       
  1408         (+[WebView registerViewClass:representationClass:forMIMEType:]):
       
  1409 
       
  1410 2007-08-03  Timothy Hatcher  <timothy@apple.com>
       
  1411 
       
  1412         Reviewed by Mark Rowe.
       
  1413 
       
  1414         Correct the bundle version check to work in Debug and Release builds too.
       
  1415 
       
  1416         * WebKit.xcodeproj/project.pbxproj:
       
  1417 
       
  1418 2007-08-02  Brady Eidson  <beidson@apple.com>
       
  1419 
       
  1420         Reviewed by Tim
       
  1421 
       
  1422         <rdar://problem/5381463> - setMIMETypesShownAsHTML mutates while enumerating
       
  1423 
       
  1424         * WebView/WebView.mm:
       
  1425         (+[WebView setMIMETypesShownAsHTML:]): Copy the dictionary before we work with it.
       
  1426 
       
  1427 2007-08-02  Alice Liu  <alice.liu@apple.com>
       
  1428 
       
  1429         Reviewed by Kevin McCullough.
       
  1430 
       
  1431         fixed <rdar://problem/5310312> REGRESSION: javascript is mis-escaped at http://labs.zarate.org/passwd causing bookmarklet to break
       
  1432 
       
  1433         * Misc/WebNSURLExtras.mm:
       
  1434         (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
       
  1435         (-[NSURL _web_userVisibleString]):
       
  1436         (-[NSURL _web_URLWithLowercasedScheme]):
       
  1437         (-[NSURL _web_dataForURLComponentType:]):
       
  1438         These 4 changes are just casting changes.
       
  1439 
       
  1440         (-[NSString _webkit_stringByReplacingValidPercentEscapes]):
       
  1441         This change replaces the call to an NSURL method with a webcore one that doesn't abort the escaping effort once an illegal character is encountered. 
       
  1442 
       
  1443 2007-08-01  Anders Carlsson  <andersca@apple.com>
       
  1444 
       
  1445         Fix build.
       
  1446         
       
  1447         * Misc/WebNSURLExtras.mm:
       
  1448         (+[NSURL _web_URLWithUserTypedString:relativeToURL:]):
       
  1449         (-[NSURL _web_userVisibleString]):
       
  1450         (-[NSURL _web_URLWithLowercasedScheme]):
       
  1451         (-[NSURL _web_dataForURLComponentType:]):
       
  1452 
       
  1453 2007-08-01  Alice Liu  <alice.liu@apple.com>
       
  1454 
       
  1455         Reviewed by .
       
  1456 
       
  1457         Making WebNSURLExtras objc++
       
  1458 
       
  1459         * Misc/WebNSURLExtras.m: Removed.
       
  1460         * Misc/WebNSURLExtras.mm: Copied from WebKit/Misc/WebNSURLExtras.m.
       
  1461         * WebKit.xcodeproj/project.pbxproj:
       
  1462 
       
  1463 2007-08-01  Darin Adler  <darin@apple.com>
       
  1464 
       
  1465         Reviewed by Anders Carlsson and Kevin Decker.
       
  1466 
       
  1467         - fix <rdar://problem/5377432> Removal of MakeDataExecutable from 64-bit breaks WebKit build
       
  1468 
       
  1469         The trick was to ifdef out more of the code that's only needed to support CFM, which exists
       
  1470         only for 32-bit PowerPC.
       
  1471 
       
  1472         * Plugins/WebNetscapePluginPackage.h: Define a SUPPORT_CFM symbol in this internal header when
       
  1473         we support CFM. We support it only on 32-bit PowerPC. Only define the isBundle, isCFM, and
       
  1474         connID fields when SUPPORT_CFM is on. Also use ResFileRefNum instead of SInt16.
       
  1475         * Plugins/WebNetscapePluginPackage.m: Only compile the function pointer and transition vector
       
  1476         functions when SUPPORT_CFM is on.
       
  1477         (-[WebNetscapePluginPackage openResourceFile]): Put the non-bundle case inside a SUPPORT_CFM
       
  1478         ifdef, since all non-CFM plug-ins are bundles.
       
  1479         (-[WebNetscapePluginPackage closeResourceFile:]): Ditto.
       
  1480         (-[WebNetscapePluginPackage _initWithPath:]): Use SUPPORT_CFM to compile out the code for
       
  1481         non-bundle and bundle-based CFM plug-ins, and code that sets isBundle and isCFM.
       
  1482         (-[WebNetscapePluginPackage executableType]): Put the CFM case inside SUPPORT_CFM.
       
  1483         (-[WebNetscapePluginPackage load]): Put the non-bundle and CFM cases inside SUPPORT_CFM.
       
  1484         There was a bit of dead code here.
       
  1485         (-[WebNetscapePluginPackage _unloadWithShutdown:]): Put the non-bundle case inside
       
  1486         SUPPORT_CFM.
       
  1487 
       
  1488 2007-07-31  Timothy Hatcher  <timothy@apple.com>
       
  1489 
       
  1490         Reviewed by Oliver and Beth.
       
  1491 
       
  1492         <rdar://problem/5211271> ADOBE Leopard 9A410: At the first Launching InDesign after deactivate, EULA page gets blanked.
       
  1493 
       
  1494         Check for more Adobe applications that need the frame reload quirk. Also cache the answer
       
  1495         so the version check dosen't happen more than once.
       
  1496 
       
  1497         * WebView/WebView.mm:
       
  1498         (-[WebView _needsAdobeFrameReloadingQuirk]):
       
  1499         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  1500 
       
  1501 2007-07-30  Adele Peterson  <adele@apple.com>
       
  1502 
       
  1503         Reviewed by Oliver.
       
  1504 
       
  1505         Fix for <rdar://problem/5308020> REGRESSION: Command-N with Dvorak-Qwerty keyboard layout stopped working inside web page text fields
       
  1506 
       
  1507         * WebView/WebHTMLView.mm: (-[WebHTMLView _handleStyleKeyEquivalent:]):
       
  1508         The input method may have modified the character we get, so don't use charactersIgnoringModifiers to interpret the character we get.
       
  1509 
       
  1510 2007-07-30  John Sullivan  <sullivan@apple.com>
       
  1511 
       
  1512         Reviewed by Darin
       
  1513         
       
  1514         - fixed <rdar://problem/5216176> Need WebKit SPI to allow clients using embedded WebViews to avoid 
       
  1515           clipping ends of some printed pages
       
  1516           
       
  1517         This provides Mail, and other clients that print views that embed WebViews, a way to ensure that
       
  1518         the HTML is laid out for printing before pagination occurs.
       
  1519 
       
  1520         * WebView/WebHTMLViewPrivate.h:
       
  1521         new SPI method -_layoutForPrinting
       
  1522         
       
  1523         * WebView/WebHTMLView.mm:
       
  1524         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
       
  1525         new method, just like existing _web_setPrintingModeRecursive except passes YES for adjustViewSize
       
  1526         (-[WebHTMLView _layoutForPrinting]):
       
  1527         new SPI method, sets printing mode temporarily to adjust the view size for printing 
       
  1528         (-[NSView _web_setPrintingModeRecursiveAndAdjustViewSize]):
       
  1529         new helper method to do the recursion
       
  1530 
       
  1531 2007-07-30  Adele Peterson  <adele@apple.com>
       
  1532 
       
  1533         Reviewed by Darin.
       
  1534 
       
  1535         Fix for <rdar://problem/5367919> A crash occurs at WebCore::Frame::isFrameSet() when attempting to print a iframe before it loads at http://www.monster.com/
       
  1536 
       
  1537         * WebView/WebHTMLView.mm: (-[WebHTMLView knowsPageRange:]): Nil check for frame.
       
  1538 
       
  1539 2007-07-30  Anders Carlsson  <andersca@apple.com>
       
  1540 
       
  1541         Reviewed by Darin.
       
  1542 
       
  1543         <rdar://problem/5370710> 
       
  1544         REGRESSION: After switching from Bookmark view, the Find Banner won't appear while displaying a PDF file
       
  1545 
       
  1546         Implement hasHTMLView.
       
  1547         
       
  1548         * WebCoreSupport/WebFrameLoaderClient.h:
       
  1549         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1550         (WebFrameLoaderClient::hasHTMLView):
       
  1551 
       
  1552 2007-07-30  Justin Garcia  <justin.garcia@apple.com>
       
  1553 
       
  1554         Reviewed by Tristan.
       
  1555         
       
  1556         <rdar://problem/5098931> Attachments are lost when they are moved into a ToDo after a delete
       
  1557         
       
  1558         Mail needs to be asked if it is OK to do the content movement that happens 
       
  1559         after a deleting in a situation like this one: 
       
  1560         <div contenteditable="plaintext-only">foo</div><div>^bar</div> 
       
  1561         so that they can prevent the move or so that they can save content that 
       
  1562         will be stripped by the move. This could have been done with shouldInsertNode 
       
  1563         and a new WebViewInsertAction for "moves", but WebKit clients like Mail and 
       
  1564         DashCode think that a shouldInsert* means that the user pasted something and
       
  1565         perform actions only appropriate for pastes.  This change is less risky because
       
  1566         it won't require those clients to change their code.
       
  1567 
       
  1568         * DefaultDelegates/WebDefaultEditingDelegate.m:
       
  1569         (-[WebDefaultEditingDelegate webView:shouldMoveRangeAfterDelete:replacingRange:]):
       
  1570         * WebCoreSupport/WebEditorClient.h:
       
  1571         * WebCoreSupport/WebEditorClient.mm:
       
  1572         (WebEditorClient::shouldMoveRangeAfterDelete):
       
  1573         * WebView/WebEditingDelegatePrivate.h:
       
  1574 
       
  1575 2007-07-29  Adele Peterson  <adele@apple.com>
       
  1576 
       
  1577         Reviewed by John.
       
  1578 
       
  1579         WebKit part of fix for <rdar://problem/5102522> REGRESSION: Can't tab to webview that doesn't have editable content
       
  1580 
       
  1581         * WebView/WebHTMLView.mm: (-[WebHTMLView becomeFirstResponder]): Call new setInitialFocus method instead of advanceFocus.
       
  1582 
       
  1583 2007-07-27  Darin Adler  <darin@apple.com>
       
  1584 
       
  1585         - fix build
       
  1586 
       
  1587         * WebKitPrefix.h: Removed the USING_WEBCORE_XXX definitions.
       
  1588         * WebView/WebHTMLView.mm:
       
  1589         (-[WebHTMLView delete:]): Fixed this to use WebCore again; I accidentally revived a dead
       
  1590         code path that didn't work in the last patch!
       
  1591         (-[WebHTMLView deleteToMark:]): Ditto.
       
  1592         (-[WebHTMLView copy:]): Removed the unused side of the ifdef.
       
  1593         (-[WebHTMLView cut:]): Ditto.
       
  1594         (-[WebHTMLView paste:]): Ditto.
       
  1595 
       
  1596 2007-07-27  Darin Adler  <darin@apple.com>
       
  1597 
       
  1598         Reviewed by Tim Hatcher and Oliver Hunt.
       
  1599 
       
  1600         - fix <rdar://problem/5355815> webView:doCommandBySelector: isn't getting called for copy:
       
  1601 
       
  1602         Added code so that webView:doCommandBySelector: is called for every command.
       
  1603 
       
  1604         * WebView/WebHTMLView.mm: Made 44 of the commands use the WEBCORE_COMMAND macro instead
       
  1605         of being handwritten. For all the others, added invocation of COMMAND_PROLOGUE macro at
       
  1606         the start of the command.
       
  1607         (-[WebHTMLView callDelegateDoCommandBySelectorIfNeeded:]): Added.
       
  1608         (-[WebHTMLView callWebCoreCommand:]): Added.
       
  1609         (-[WebHTMLView delete:]): Removed unused code path -- easy to bring back some day, but
       
  1610         we don't need it compiled in.
       
  1611         (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Changed so this doesn't
       
  1612         call deleteBackward: any more so we don't call the delegate two times.
       
  1613         (-[WebHTMLView deleteToMark:]): Changed so this doesn't call delete: any more so we don't
       
  1614         call the delegate two times.
       
  1615         (-[WebHTMLView selectToMark:]): Changed so this doesn't call setMark: any more so we don't
       
  1616         call the delegate two times.
       
  1617         (-[WebHTMLView doCommandBySelector:]): Added code to set the private variable
       
  1618         selectorForDoCommandBySelector. This allows callDelegateDoCommandBySelectorIfNeeded to
       
  1619         detect that we've already called the delegate and avoids calling it twice.
       
  1620 
       
  1621         * WebView/WebHTMLViewInternal.h: Added the selectorForDoCommandBySelector field.
       
  1622 
       
  1623 2007-07-26  Alexey Proskuryakov  <ap@webkit.org>
       
  1624 
       
  1625         Reviewed by Oliver.
       
  1626 
       
  1627         http://bugs.webkit.org/show_bug.cgi?id=14733
       
  1628         Add a logging channel for text input
       
  1629         <rdar://problem/5364667>
       
  1630 
       
  1631         * Misc/WebKitLogging.h:
       
  1632         * Misc/WebKitLogging.m:
       
  1633         (WebKitInitializeLoggingChannelsIfNecessary):
       
  1634         * WebView/WebHTMLView.mm:
       
  1635         (-[WebHTMLView validAttributesForMarkedText]):
       
  1636         (-[WebHTMLView textStorage]):
       
  1637         (-[WebHTMLView characterIndexForPoint:]):
       
  1638         (-[WebHTMLView firstRectForCharacterRange:]):
       
  1639         (-[WebHTMLView selectedRange]):
       
  1640         (-[WebHTMLView markedRange]):
       
  1641         (-[WebHTMLView attributedSubstringFromRange:]):
       
  1642         (-[WebHTMLView hasMarkedText]):
       
  1643         (-[WebHTMLView unmarkText]):
       
  1644         (-[WebHTMLView setMarkedText:selectedRange:]):
       
  1645         (-[WebHTMLView doCommandBySelector:]):
       
  1646         (-[WebHTMLView insertText:]):
       
  1647 
       
  1648 2007-07-26  Darin Adler  <darin@apple.com>
       
  1649 
       
  1650         - fix Tiger build
       
  1651 
       
  1652         * Misc/WebTypesInternal.h: For use inside the library, use NSInteger and
       
  1653         NSUInteger, just like on Leopard. WebNSInteger and WebNSUInteger are still
       
  1654         present, but they are used in public and private headers only.
       
  1655 
       
  1656         * Carbon/CarbonWindowAdapter.m:
       
  1657         * Carbon/CarbonWindowFrame.m:
       
  1658         * DefaultDelegates/WebScriptDebugServer.m:
       
  1659         * History/WebBackForwardList.mm:
       
  1660         * Misc/WebDownload.m:
       
  1661         * Misc/WebSearchableTextView.m:
       
  1662         * Plugins/WebBaseNetscapePluginView.mm:
       
  1663         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1664         * WebView/WebHTMLView.mm:
       
  1665         * WebView/WebPDFView.mm:
       
  1666         * WebView/WebView.mm:
       
  1667         * WebView/WebViewInternal.h:
       
  1668         Update all implementation files and internal headers to use NSInteger and
       
  1669         NSUInteger rather than WebNSInteger and WebNSUInteger.
       
  1670 
       
  1671 2007-07-26  John Sullivan  <sullivan@apple.com>
       
  1672 
       
  1673         Reviewed by Kevin Decker
       
  1674         
       
  1675         - fixed <rdar://problem/5362989> Searching a pdf in some modes shows hilights for all instances 
       
  1676           of the word, even those not on the current page
       
  1677           
       
  1678         It turns out that there were three different issues here, all contributing to incorrect display
       
  1679         of multiple matches for PDF pages in certain display modes. (1) in non-continuous display modes,
       
  1680         we weren't updating the match rects when the displayed page is changed with page up/down (e.g.);
       
  1681         (2) the mechanism to update the match rects on scrolling was busted except for the first scroll
       
  1682         away from 0,0; (3) the PDFKit API returns selection bounds for non-displayed pages in non-continuous
       
  1683         modes just as if they were the displayed pages. This patch fixes all three issues.
       
  1684 
       
  1685         * WebView/WebPDFView.h:
       
  1686         made ivar name even longer
       
  1687         
       
  1688         * WebView/WebPDFView.mm:
       
  1689         (-[WebPDFView setPDFDocument:]):
       
  1690         updated for ivar name change
       
  1691         (-[WebPDFView viewDidMoveToWindow]):
       
  1692         observe page-change notifications as well as the others; this is necessary because in the
       
  1693         non-continuous modes the view can be completely updated without any scrolling involved (problem 1)
       
  1694         (-[WebPDFView viewWillMoveToWindow:]):
       
  1695         stop observing page-change notifications
       
  1696         (-[WebPDFView rectsForTextMatches]):
       
  1697         skip any pages that aren't visible; this avoids treating matches on non-displayed non-continous
       
  1698         modes as if they were on the displayed page (problem 3)
       
  1699         (-[WebPDFView _PDFDocumentViewMightHaveScrolled:]):
       
  1700         after checking whether scroll position has changed since we last checked it, remember the new
       
  1701         one (d'oh!) (problem 2)
       
  1702 
       
  1703         (-[WebPDFView _scaleOrDisplayModeOrPageChanged:]):
       
  1704         renamed to include page changes
       
  1705         
       
  1706         (-[WebPDFView _visiblePDFPages]):
       
  1707         new method, returns the set of pages that are at least partly visible
       
  1708 
       
  1709 2007-07-24  Oliver Hunt  <oliver@apple.com>
       
  1710 
       
  1711         Reviewed by Adam and Justin.
       
  1712 
       
  1713         <rdar://problem/5141779> WebView editableDOMRangeForPoint: & moveDragCaretToPoint: returns last position in DOMText range
       
  1714 
       
  1715         editableDOMRangeForPoint:, moveDragCaretToPoint:, and removeDragCaret now call directly into
       
  1716         WebCore without relying on bridge look up through the now removed _bridgeAtPoint:.
       
  1717 
       
  1718         * WebKit.xcodeproj/project.pbxproj:
       
  1719         * WebView/WebView.mm:
       
  1720         (-[WebView moveDragCaretToPoint:]):
       
  1721         (-[WebView removeDragCaret]):
       
  1722         (-[WebView editableDOMRangeForPoint:]):
       
  1723 
       
  1724 2007-07-24  Kevin Decker  <kdecker@apple.com>
       
  1725 
       
  1726         Reviewed by Anders.
       
  1727 
       
  1728         <rdar://problem/4699455> REGRESSION (Safari 2->Safari 3): Adobe Reader 7.0.8 plug-in doesn't work
       
  1729         
       
  1730         * Plugins/WebNetscapePluginEmbeddedView.h: Added a #define that renames this class to "WebNetscapePluginDocumentView"
       
  1731         This is necessary because the Adobe 7.x Acrobat plug-in has a hard coded check for a view named "WebNetscapePluginDocumentView"
       
  1732         and will not function correctly if it doesn't find a view in the hierarchy without the old class name.
       
  1733 
       
  1734 2007-07-24  Mark Rowe  <mrowe@apple.com>
       
  1735 
       
  1736         Reviewed by Antti.
       
  1737 
       
  1738         <rdar://problem/5356666> NSMenuItem's seen leaking on buildbot
       
  1739 
       
  1740         * WebCoreSupport/WebContextMenuClient.mm:
       
  1741         (WebContextMenuClient::contextMenuItemSelected): Release platformItem as we were transferred its ownership by releasePlatformDescription.
       
  1742 
       
  1743 2007-07-23  Oliver Hunt  <oliver@apple.com>
       
  1744 
       
  1745         Reviewed by Darin.
       
  1746 
       
  1747         We have to be able to support insertText: followed by doCommandBySelector: in 
       
  1748         order to support the 2- and 3-Set Korean and RuSwitcher IMs at least.
       
  1749 
       
  1750         * WebView/WebHTMLView.mm:
       
  1751         (-[WebHTMLView insertText:]):
       
  1752 
       
  1753 2007-07-23  Alice Liu  <alice.liu@apple.com>
       
  1754 
       
  1755         Reverting change 24535 now that a solution has been found that doesn't 
       
  1756         involve exposing an interface unnecessarily.
       
  1757 
       
  1758         * WebView/WebHTMLView.mm:
       
  1759         * WebView/WebHTMLViewPrivate.h:
       
  1760 
       
  1761 2007-07-23  Alice Liu  <alice.liu@apple.com>
       
  1762 
       
  1763         Reviewed by Oliver Hunt.
       
  1764 
       
  1765         Expose [WebHTMLView hasMarkedText] to 
       
  1766         fix <rdar://problem/4830074> autocomplete breaks Japanese typing
       
  1767 
       
  1768         * WebView/WebHTMLView.mm:
       
  1769         * WebView/WebHTMLViewPrivate.h:
       
  1770 
       
  1771 2007-07-22  Darin Adler  <darin@apple.com>
       
  1772 
       
  1773         * StringsNotToBeLocalized.txt: Updated for recent changes.
       
  1774 
       
  1775 2007-07-21  Adam Roben  <aroben@apple.com>
       
  1776 
       
  1777         Fix REGRESSION: Right-click/control-click broken
       
  1778 
       
  1779         http://bugs.webkit.org/show_bug.cgi?id=14658
       
  1780         <rdar://problem/5346830>
       
  1781 
       
  1782         Reviewed by Mitz.
       
  1783 
       
  1784         * WebCoreSupport/WebContextMenuClient.mm:
       
  1785         (fixMenusToSendToOldClients): Update defaultItemsCount after removing
       
  1786         items from the defaultItems array.
       
  1787 
       
  1788 2007-07-20  Oliver Hunt  <oliver@apple.com>
       
  1789 
       
  1790         Reviewed by Adele.
       
  1791 
       
  1792         <rdar://problem/5319438> REGRESSION: Cannot paste into an active inline input area (14522)
       
  1793         http://bugs.webkit.org/show_bug.cgi?id=14522
       
  1794 
       
  1795         AppKit sends noop: to -[WebHTMLView doCommandBySelector:] when an IM does not handle event,
       
  1796         we now check this as it is necessary to work around some IMs that do send messages 
       
  1797         (such as insertText: rather than unmarkText: to confirm a composition)
       
  1798 
       
  1799         * WebView/WebHTMLView.mm:
       
  1800         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  1801         (-[WebHTMLView doCommandBySelector:]):
       
  1802         * WebView/WebHTMLViewInternal.h:
       
  1803 
       
  1804 2007-07-20  Brady Eidson  <beidson@apple.com>
       
  1805 
       
  1806         Reviewed by Adele and Andersca
       
  1807 
       
  1808         <rdar://problem/5336105> - WebBackForwardList created from scratch is unusable (always leads to crash)
       
  1809 
       
  1810         * History/WebBackForwardList.mm:
       
  1811         (-[WebBackForwardList init]): Have a default initializer that uses an empty BackFowardList not associated with a page.
       
  1812 
       
  1813         * WebView/WebFrame.mm:
       
  1814         (kit): For clarity's sake, this should return nil, not 0
       
  1815 
       
  1816 2007-07-20  Justin Garcia  <justin.garcia@apple.com>
       
  1817 
       
  1818         Reviewed by Darin.
       
  1819         
       
  1820         <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it
       
  1821 
       
  1822         * WebCoreSupport/WebEditorClient.h:
       
  1823         * WebCoreSupport/WebEditorClient.mm: Removed the method
       
  1824         for enabling/disabling word selection on right click.
       
  1825         * WebView/WebView.mm: Ditto.
       
  1826         * WebView/WebViewPrivate.h: Removed the getter/setter entirely, 
       
  1827         it was in a private Category for Mail, but wasn't used by Mail
       
  1828         on Tiger or Leopard, they apparently implement word selection on 
       
  1829         their own.
       
  1830 
       
  1831 2007-07-20  Timothy Hatcher  <timothy@apple.com>
       
  1832 
       
  1833         Reviewed by Darin.
       
  1834 
       
  1835         <rdar://problem/5199812> WebView needs to adopt viewWillDraw (moving off of _propagateDirtyRectsToOpaqueAncestors)
       
  1836         <rdar://problem/5017301> REGRESSION: Scroller in Widget Manager splits down the middle while scrolling
       
  1837 
       
  1838         On Leopard _propagateDirtyRectsToOpaqueAncestors is no longer called by AppKit. Also marking new dirty rects
       
  1839         underneath _recursiveDisplayRectIfNeededIgnoringOpacity will wait until the next runloop to draw them,
       
  1840         causing rendering to happen in two steps instead of one as WebCore expected.
       
  1841 
       
  1842         * WebView/WebHTMLView.mm:
       
  1843         (-[WebHTMLView _topHTMLView]): Move to the file internal category so we can use it in viewWillDraw.
       
  1844         (-[WebHTMLView _isTopHTMLView]): Ditto.
       
  1845         (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): #ifdef for Tiger only.
       
  1846         (-[WebHTMLView viewWillDraw]): Do a recursive layout if this is the top WebHTMLView.
       
  1847         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
       
  1848           Don't do layout here on Leopard since viewWillDraw handled it.
       
  1849         (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): Ditto.
       
  1850 
       
  1851 2007-07-20  Beth Dakin  <bdakin@apple.com>
       
  1852 
       
  1853         Reviewed by Tim and Geoff.
       
  1854 
       
  1855         Fix for <rdar://problem/5346855> Mail crashes at 
       
  1856         WebCore::RenderTableSection:paint + 846 when attempting to display 
       
  1857         a HTML based message
       
  1858 
       
  1859         After reapplying styles, the RenderView needs layout. However, 
       
  1860         layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize used to 
       
  1861         return early if the WebHTMLView itself does not need layout. 
       
  1862         Because the WebHTMLView is not necessarily in synch with the 
       
  1863         RenderTree, returning early here can get us into a bad situation 
       
  1864         where we paint before laying out the Render Tree. This patch checks 
       
  1865         both the WebHTMLView and the bridge (which checks the RenderView, 
       
  1866         etc), so that we do not return early without laying out the Render 
       
  1867         Tree. 
       
  1868 
       
  1869         Some day, we should phase out WebHTMLView keeping track of 
       
  1870         needsLayout at all. But that is a bit beyond the scope of this fix.  
       
  1871 
       
  1872         * WebView/WebHTMLView.mm:
       
  1873         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
       
  1874 
       
  1875 2007-07-20  John Sullivan  <sullivan@apple.com>
       
  1876 
       
  1877         Reviewed by Darin Adler and David Harrison
       
  1878         
       
  1879         - fixed <rdar://problem/5307075> REGRESSION: Bottom of some printed pages are truncated
       
  1880         
       
  1881         The "avoid orphan" code I added a year ago was causing the page to be imaged to a larger 
       
  1882         height (good), but not shrinking everything to compensate (bad). Bad one-year-ago me!
       
  1883 
       
  1884         * WebView/WebHTMLViewInternal.h:
       
  1885         added avoidingPrintOrphan boolean
       
  1886 
       
  1887         * WebView/WebHTMLView.mm:
       
  1888         (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
       
  1889         clear _private->avoidingPrintOrphan when clearing _private->printing
       
  1890         (-[WebHTMLView _scaleFactorForPrintOperation:]):
       
  1891         take _private->avoidingPrintOrphan into account when computing the scale factor
       
  1892         (-[WebHTMLView knowsPageRange:]):
       
  1893         set _private->avoidingPrintOrphan when we're shrinking to avoid an orphan
       
  1894 
       
  1895 2007-07-19  Adam Roben  <aroben@apple.com>
       
  1896 
       
  1897         Fix <rdar://problem/5344972> REGRESSION: A error dialog occurs when
       
  1898         attempting to ctrl-click in a iChat message window (webview)
       
  1899 
       
  1900         Reviewed by Oliver.
       
  1901 
       
  1902         * WebCoreSupport/WebContextMenuClient.mm:
       
  1903         (fixMenusToSendToOldClients): Don't check for the Inspect Element item
       
  1904         if we have fewer than 2 items.
       
  1905 
       
  1906 2007-07-18  Geoffrey Garen  <ggaren@apple.com>
       
  1907 
       
  1908         Reviewed by Dave Hyatt.
       
  1909         
       
  1910         <rdar://problem/5345099>
       
  1911         
       
  1912         Reduced default WebCore cache size from 32 MB to 23 MB on systems below 
       
  1913         512 MB RAM. This improves RPRVT usage in the Safari pageout test by 
       
  1914         ~10% on a system with 384 MB RAM.
       
  1915         
       
  1916         At 23 MB, no extra resources are evicted from the cache during a PLT 
       
  1917         run, so this is a safe change PLT-wise. 23 MB is also seems to be a
       
  1918         generous number in real world usage.
       
  1919 
       
  1920         * WebView/WebPreferences.m:
       
  1921         (+[WebPreferences initialize]):
       
  1922 
       
  1923 2007-07-18  Anders Carlsson  <andersca@apple.com>
       
  1924 
       
  1925         Reviewed by Geoff.
       
  1926 
       
  1927         <rdar://problem/5341133> REGRESSION (Safari 2->Safari 3): DjVu plug-in doesn't load in Safari 3
       
  1928         
       
  1929         The DjVu plug-in uses the size of the passed in NPNetscapeFuncs struct to copy it over to a NPNetscapeFuncs struct
       
  1930         whose size was determined when DjVu was compiled. This means that when we add extra functions to the vtable, 
       
  1931         DjVu will segfault copying it into the (too small) destination struct.
       
  1932         
       
  1933         Fix this by special-casing the DjVu plug-in and setting the NPNetscapeFuncs size to be the same size as what DjVu expects.
       
  1934         
       
  1935         * Plugins/WebNetscapePluginPackage.m:
       
  1936         (-[WebNetscapePluginPackage _applyDjVuWorkaround]):
       
  1937         (-[WebNetscapePluginPackage load]):
       
  1938 
       
  1939 2007-07-18  Timothy Hatcher  <timothy@apple.com>
       
  1940 
       
  1941         Reviewed by Adam.
       
  1942 
       
  1943         <rdar://problem/5343767> Should have a way to disable the Web Inspector
       
  1944 
       
  1945         Adds a new DisableWebKitDeveloperExtras default that will force the Web Inspector to be disabled.
       
  1946         This overrides the WebKitDeveloperExtras and IncludeDebugMenu default. It also disables
       
  1947         the Web Inspector in Debug builds.
       
  1948 
       
  1949         * WebView/WebView.mm:
       
  1950         (+[WebView _developerExtrasEnabled]): Check for the DisableWebKitDeveloperExtras default.
       
  1951         (-[WebView _commonInitializationWithFrameName:groupName:]): Make a new WebInspectorClient when making the Page.
       
  1952 
       
  1953 2007-07-18  Anders Carlsson  <andersca@apple.com>
       
  1954 
       
  1955         Build fix.
       
  1956         
       
  1957         * Misc/WebNSAttributedStringExtras.mm:
       
  1958 
       
  1959 2007-07-18  Sam Weinig  <sam@webkit.org>
       
  1960 
       
  1961         Rubber-stamped by Adam Roben.
       
  1962 
       
  1963         Update after renaming MimeTypeRegistry to MIMETypeRegistry.
       
  1964 
       
  1965         * Misc/WebNSPasteboardExtras.mm:
       
  1966         (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
       
  1967         * WebCoreSupport/WebFrameBridge.mm:
       
  1968         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
  1969         * WebView/WebDataSource.mm:
       
  1970         (-[WebDataSource _documentFragmentWithArchive:]):
       
  1971         * WebView/WebHTMLRepresentation.mm:
       
  1972         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
       
  1973         (+[WebHTMLRepresentation supportedImageMIMETypes]):
       
  1974         * WebView/WebHTMLView.mm:
       
  1975         (-[WebHTMLView _imageExistsAtPaths:]):
       
  1976 
       
  1977 2007-07-18  Tristan O'Tierney  <tristan@apple.com>
       
  1978 
       
  1979         Reviewed by Maciej Stachowiak.
       
  1980         
       
  1981         <rdar://problem/5341334> Alt-clicking a link in Safari does not register original URL info with gatekeeper
       
  1982         <rdar://problem/5342570> REGRESSION: A hang occurs when attempting to open a attached file from a .Mac web mail message
       
  1983 
       
  1984         * WebCoreSupport/WebFrameLoaderClient.h:
       
  1985         Added a new method, setOriginalURLForDownload, for both download() 
       
  1986         and startDownload() to share.
       
  1987         
       
  1988         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  1989         (WebFrameLoaderClient::download):
       
  1990         Moved all the gatekeeper code into setOriginalURLForDownload.
       
  1991         
       
  1992         (WebFrameLoaderClient::setOriginalURLForDownload):
       
  1993         Same code that was in download() but moved into a single place for both
       
  1994         startDownload and download to use.  Also returned the boolean logic
       
  1995         for detecting _wasUserGesture back to it's previous state, since my prior change
       
  1996         was incorrect.  Additionally I found a loop index bug with backListCount and fixed it.
       
  1997         
       
  1998         (WebFrameLoaderClient::startDownload):
       
  1999         Calls out to setOriginalURLForDownload after a download is created.
       
  2000         
       
  2001         * WebView/WebView.mm:
       
  2002         (-[WebView _downloadURL:]):
       
  2003         Changed to return the WebDownload object created inside _downloadURL
       
  2004         
       
  2005         * WebView/WebViewInternal.h:
       
  2006         Changed _downloadURL to return the WebDownload it creates.
       
  2007 
       
  2008 2007-07-17  Timothy Hatcher  <timothy@apple.com>
       
  2009 
       
  2010         Reviewed by Geoff.
       
  2011 
       
  2012         <rdar://problem/5336267> loadData:MIMEType:textEncodingName:baseURL: doesn't like relative URLs
       
  2013 
       
  2014         Get the absoluteURL from any user supplied NSURL before we pass it down to WebCore.
       
  2015 
       
  2016         * WebView/WebFrame.mm:
       
  2017         (-[WebFrame _loadURL:referrer:intoChild:]):
       
  2018         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
       
  2019         * WebView/WebView.mm:
       
  2020         (-[WebView userAgentForURL:]):
       
  2021 
       
  2022 2007-07-17  Adam Roben  <aroben@apple.com>
       
  2023 
       
  2024         Fix Bug 14324: Cannot remove/customize the "Inspect Element" contextual menu item
       
  2025         http://bugs.webkit.org/show_bug.cgi?id=14324
       
  2026 
       
  2027         Only clients linking against new versions of WebKit will see the item.
       
  2028         I've maintained our behavior for old clients of not including the
       
  2029         Inspect Element item in the menu items passed to the UI delegate.
       
  2030 
       
  2031         Reviewed by Tim.
       
  2032 
       
  2033         * Misc/WebKitVersionChecks.h: Added a new constant.
       
  2034         * WebCoreSupport/WebContextMenuClient.mm:
       
  2035         (isPreInspectElementTagClient): Added.
       
  2036         (fixMenusToSendToOldClients): Return an array of items that should be
       
  2037         appended to the menu received from the delegate.
       
  2038         (fixMenusReceivedFromOldClients): Append the saved items to the array.
       
  2039         (WebContextMenuClient::getCustomMenuFromDefaultItems): Retain/release
       
  2040         the saved items.
       
  2041 
       
  2042 2007-07-17  Adam Roben  <aroben@apple.com>
       
  2043 
       
  2044         Remove WebContextMenuClient::shouldIncludeInspectElementItem
       
  2045 
       
  2046         Reviewed by Tim.
       
  2047 
       
  2048         * WebCoreSupport/WebContextMenuClient.h:
       
  2049         * WebCoreSupport/WebContextMenuClient.mm:
       
  2050 
       
  2051 2007-07-17  Adam Roben  <aroben@apple.com>
       
  2052 
       
  2053         Initialize Settings::developerExtrasEnabled
       
  2054 
       
  2055         Reviewed by Tim.
       
  2056 
       
  2057         * WebView/WebView.mm:
       
  2058         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  2059 
       
  2060 2007-07-17  Geoffrey Garen  <ggaren@apple.com>
       
  2061 
       
  2062         Build fix.
       
  2063 
       
  2064         * WebView/WebFrame.mm:
       
  2065         (-[WebFrame _loadURL:referrer:intoChild:]):
       
  2066         * WebView/WebFramePrivate.h:
       
  2067 
       
  2068 2007-07-17  Tristan O'Tierney  <tristan@apple.com>
       
  2069 
       
  2070         Reviewed by Maciej Stachowiak.
       
  2071 
       
  2072         <rdar://problem/5294691> Source of file is misrepresented if downloaded by typing in URL in Safari address bar
       
  2073 
       
  2074         * WebCoreSupport/WebFrameLoaderClient.h:
       
  2075         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2076         (WebFrameLoaderClient::download):
       
  2077         Revised code to check the initial request's referrer before assuming it has a history to check.
       
  2078 
       
  2079 2007-07-16  Brady Eidson  <beidson@apple.com>
       
  2080 
       
  2081         Reviewed by Adam
       
  2082 
       
  2083         Begin the arduous task of localizing FTP directory listings while removing a global initializer!
       
  2084 
       
  2085         * English.lproj/Localizable.strings:
       
  2086         * WebCoreSupport/WebViewFactory.mm:
       
  2087         (-[WebViewFactory unknownFileSizeText]):
       
  2088 
       
  2089 2007-07-16  Adam Roben  <aroben@apple.com>
       
  2090 
       
  2091         Move printing from WebFrameBridge to WebChromeClient
       
  2092 
       
  2093         Reviewed by Darin.
       
  2094 
       
  2095         * WebCoreSupport/WebChromeClient.h: Updated for ChromeClient changes.
       
  2096         * WebCoreSupport/WebChromeClient.mm:
       
  2097         (WebChromeClient::print): Moved code from WebFrameBridge.
       
  2098         * WebCoreSupport/WebFrameBridge.mm: Removed -print.
       
  2099 
       
  2100 2007-07-16  Darin Adler  <darin@apple.com>
       
  2101 
       
  2102         * StringsNotToBeLocalized.txt: Update for recent changes.
       
  2103 
       
  2104 2007-07-16  John Sullivan  <sullivan@apple.com>
       
  2105 
       
  2106         Reviewed by Kevin Decker and Darin Adler
       
  2107         
       
  2108         - fixed <rdar://problem/5337529> Holes in Find banner overlay on PDF pages are left in wrong place after changing scale
       
  2109 
       
  2110         * WebView/WebPDFView.mm:
       
  2111         (-[WebPDFView _scaleOrDisplayModeChanged:]):
       
  2112         tell UI delegate that the entire PDF view has been redrawn
       
  2113 
       
  2114 2007-07-14  Brady Eidson  <beidson@apple.com>
       
  2115 
       
  2116         Reviewed by Sam Weinig
       
  2117 
       
  2118         Initial check-in for <rdar://problem/3154486> - Supporting FTP directory listings in the browser
       
  2119 
       
  2120         * WebView/WebPreferenceKeysPrivate.h: Added preference keys for the FTP template location, as well as to force 
       
  2121           FTP directory listings, bypassing the policy delegate.  This is necessary to test the new feature until browser
       
  2122           policy delegate support is added.
       
  2123 
       
  2124         * WebView/WebPreferences.m:
       
  2125         (-[WebPreferences _setFTPDirectoryTemplatePath:]):
       
  2126         (-[WebPreferences _ftpDirectoryTemplatePath]):
       
  2127         (-[WebPreferences _setForceFTPDirectoryListings:]):
       
  2128         (-[WebPreferences _forceFTPDirectoryListings]):
       
  2129         * WebView/WebPreferencesPrivate.h:
       
  2130         * WebView/WebView.mm:
       
  2131         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  2132 
       
  2133 2007-07-13  Anders Carlsson  <andersca@apple.com>
       
  2134 
       
  2135         Reviewed by Maciej.
       
  2136 
       
  2137         <rdar://problem/5290103> Assert failure when loading page with multipart resource
       
  2138         
       
  2139         Don't try to call the delegate method if the resource object doesn't exist in the 
       
  2140         identifier map. When a multipart resource has finished loading one part, it is removed from the
       
  2141         web view identifier map. 
       
  2142         
       
  2143         This is not an ideal fix, a better fix would be to special-case multipart resources and not remove
       
  2144         them when the first part has finished loading. I've filed <rdar://problem/5335034> to track doing that.
       
  2145         
       
  2146         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2147         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
  2148         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
  2149         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
  2150         (WebFrameLoaderClient::willCacheResponse):
       
  2151         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
  2152         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  2153         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  2154 
       
  2155 2007-07-13  Timothy Hatcher  <timothy@apple.com>
       
  2156 
       
  2157         Reviewed by Oliver Hunt.
       
  2158 
       
  2159         <rdar://problem/5333766> Can't include WebEditingDelegatePrivate.h
       
  2160 
       
  2161         * WebView/WebEditingDelegatePrivate.h: Changed the include to be a framework include,
       
  2162         so other projects can use this header.
       
  2163 
       
  2164 2007-07-12  Anders Carlsson  <andersca@apple.com>
       
  2165 
       
  2166         Reviewed by Darin and Maciej.
       
  2167 
       
  2168         <rdar://problem/5271096> panic after Safari stress test, caused by port leak
       
  2169 
       
  2170         Replace uses of -[NSObject performSelector:withObject:afterDelay:] with CFRunLoopTimer. performSelector
       
  2171         causes the target (the WebHTMLView in this case) to be retained until the timer fires. Furthermore, when
       
  2172         running the PLT or iBench, the timers will not fire until the main loop is entered (usually after running all tests).
       
  2173         
       
  2174         This means that the timers and ports will not be released until after the test has finished running.
       
  2175         
       
  2176         * WebView/WebHTMLView.mm:
       
  2177         (-[WebHTMLViewPrivate dealloc]):
       
  2178         (-[WebHTMLView _cancelUpdateMouseoverTimer]):
       
  2179         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
       
  2180         (-[WebHTMLView _updateMouseoverTimerCallback:]):
       
  2181         (-[WebHTMLView _frameOrBoundsChanged]):
       
  2182         (-[WebHTMLView _updateActiveState]):
       
  2183         (-[WebHTMLView _updateActiveStateTimerCallback:]):
       
  2184         (-[WebHTMLView viewWillMoveToWindow:]):
       
  2185         (-[WebHTMLView viewDidMoveToWindow]):
       
  2186         (-[WebHTMLView mouseDown:]):
       
  2187         (-[WebTextCompleteController dealloc]):
       
  2188         * WebView/WebHTMLViewInternal.h:
       
  2189 
       
  2190 2007-07-13  Mark Rowe  <mrowe@apple.com>
       
  2191 
       
  2192         Reviewed by Mitz.
       
  2193 
       
  2194         Build fix.  Stub out WebChromeClient::print.
       
  2195 
       
  2196         * WebCoreSupport/WebChromeClient.h:
       
  2197         * WebCoreSupport/WebChromeClient.mm:
       
  2198         (WebChromeClient::print):
       
  2199 
       
  2200 2007-07-11  Timothy Hatcher  <timothy@apple.com>
       
  2201 
       
  2202         Reviewed by Oliver.
       
  2203 
       
  2204         <rdar://problem/5108789> WEBVIEW: Drawing artifacts when dragging in IB
       
  2205 
       
  2206         Interface Builder 3 is relying on KVO notifications for frameOrigin and frameSize,
       
  2207         among other standard NSView keys. Change automaticallyNotifiesObserversForKey to 
       
  2208         return NO only for keys WebView manually fires notifications for.
       
  2209 
       
  2210         * WebView/WebView.mm:
       
  2211         (+[WebView automaticallyNotifiesObserversForKey:]): Selectivly return NO for keys we manually fire.
       
  2212         (-[WebView _declaredKeys]): Code clean up.
       
  2213 
       
  2214 2007-07-10  Antti Koivisto  <antti@apple.com>
       
  2215 
       
  2216         Reviewed by John.
       
  2217         
       
  2218         Fix <rdar://problem/4570550>
       
  2219         Hang in layout/layoutBlock/layoutBlockChildren preparing to print certain Mail messages
       
  2220         
       
  2221         When printing from Mail, WebHTMLView is a subview of the view that is actually printed and does not 
       
  2222         receive calls that would set it to printing mode. Method adjustPageHeightNew is called repeatedly (for each page) during
       
  2223         printing and it enables printing mode temporarily for each call. This triggers two full style recalcs and layouts
       
  2224         each time making printing at least O(n^2). 
       
  2225 
       
  2226         Instead of enabling printing mode and resetting it back immediatly do the resetting asynchronously, after
       
  2227         all adjustPageHeightNew calls are done. Normal Safari printing is not affected as adjustPageHeightNew is only
       
  2228         called in case WebHTMLView is embedded in the view that is being printed.
       
  2229         
       
  2230         No automatic test possible, requires printing and non-Safari client.
       
  2231         
       
  2232         * WebView/WebHTMLView.mm:
       
  2233         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
       
  2234 
       
  2235 2007-07-10  Geoffrey Garen  <ggaren@apple.com>
       
  2236 
       
  2237         Reviewed by Maciej Stachowiak.
       
  2238 
       
  2239         - Fixed <rdar://problem/5049509> REGRESSION(10.4.9-9A377a): REAP Suite 
       
  2240         installer shows empty modal alert window (hangs) if user cancels during
       
  2241         "installing shared components" phase
       
  2242         
       
  2243         Added Adobe installers to the family of apps that need a data load
       
  2244         loading quirk.
       
  2245         
       
  2246         Added a linked-on-or-after check because this code is no longer 
       
  2247         Tiger-only.
       
  2248         
       
  2249         I tested this code on Tiger and Leopard.
       
  2250 
       
  2251         * Misc/WebKitVersionChecks.h:
       
  2252         * WebKit.xcodeproj/project.pbxproj:
       
  2253         * WebView/WebDocumentLoaderMac.mm:
       
  2254         (needsDataLoadWorkaround):
       
  2255         (WebDocumentLoaderMac::setDataSource):
       
  2256 
       
  2257 2007-07-10  Darin Adler  <darin@apple.com>
       
  2258 
       
  2259         - fix build
       
  2260 
       
  2261         * WebView/WebHTMLView.mm: Add include of ContextMenu.h.
       
  2262 
       
  2263 2007-07-10  Darin Adler  <darin@apple.com>
       
  2264 
       
  2265         Reviewed by John Sullivan.
       
  2266 
       
  2267         - <rdar://problem/5321953> remove workaround for fixed AppKit mouse moved bug
       
  2268 
       
  2269         * WebView/WebHTMLView.mm: Put the workaround for bug 3429631 inside an
       
  2270         ifdef BUILDING_ON_TIGER.
       
  2271 
       
  2272 2007-07-09  Anders Carlsson  <andersca@apple.com>
       
  2273 
       
  2274         Reviewed by Oliver.
       
  2275 
       
  2276         <rdar://problem/4954319> 
       
  2277         Acrobat 7 / Safari crash: CrashTracer: 99 crashes in Safari at 
       
  2278         com.apple.WebCore: WebCore::NetscapePlugInStreamLoader::isDone const + 0
       
  2279 
       
  2280         Add a new initWithFrameLoader: method to WebNetscapePluginStream which is to be used when
       
  2281         the stream is a "fake" stream for full frame plug-ins.
       
  2282         
       
  2283         * Plugins/WebBaseNetscapePluginView.mm:
       
  2284         (-[WebBaseNetscapePluginView pluginView:receivedResponse:]):
       
  2285         * Plugins/WebNetscapePluginStream.h:
       
  2286         * Plugins/WebNetscapePluginStream.mm:
       
  2287         (-[WebNetscapePluginStream initWithFrameLoader:]):
       
  2288         (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
       
  2289         (-[WebNetscapePluginStream start]):
       
  2290         (-[WebNetscapePluginStream cancelLoadWithError:]):
       
  2291         (-[WebNetscapePluginStream stop]):
       
  2292         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  2293         (WebFrameLoaderClient::createFrame):
       
  2294 
       
  2295 2007-07-09  John Sullivan  <sullivan@apple.com>
       
  2296 
       
  2297         Reviewed by Darin
       
  2298         
       
  2299         - fixed <rdar://problem/5320208> WebKit should prevent Time Machine from backing up WebKit clients' icon databases
       
  2300 
       
  2301         * Misc/WebIconDatabase.mm:
       
  2302         (-[WebIconDatabase init]):
       
  2303         Re-added the code to exclude the icon database from backups. We now do this at the same time we (try to) import
       
  2304         the old icon database format, which happens only once per icon database's lifetime.
       
  2305         (-[WebIconDatabase _importToWebCoreFormat]):
       
  2306         Assert that we haven't imported yet rather than bailing out. It's now the caller's responsibility to check
       
  2307         whether we've imported yet.
       
  2308 
       
  2309 2007-07-08  John Sullivan  <sullivan@apple.com>
       
  2310 
       
  2311         * Misc/WebIconDatabase.mm:
       
  2312         (-[WebIconDatabase init]):
       
  2313         Removed the code to exclude the icon database from backups. We still want to do this, but in a way
       
  2314         that only runs once ever, instead of once per launch, due to performance concerns.
       
  2315 
       
  2316 2007-07-07  Darin Adler  <darin@apple.com>
       
  2317 
       
  2318         Reviewed by Maciej.
       
  2319 
       
  2320         - fix <rdar://problem/5124665> WebCore secondary-thread assertion should use linked-on-or-after check instead of building on Tiger check
       
  2321 
       
  2322         * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITH_MAIN_THREAD_EXCEPTIONS.
       
  2323 
       
  2324         * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): In first-time initialization block,
       
  2325         check for binaries linked against older versions of WebKit, and set the default thread violation
       
  2326         behavior to LogOnFirstThreadViolation.
       
  2327 
       
  2328         * WebView/WebView.mm: (+[WebView initialize]): Improved comments.
       
  2329 
       
  2330 2007-07-06  Oliver Hunt  <oliver@apple.com>
       
  2331 
       
  2332         Reviewed by Maciej.
       
  2333 
       
  2334         <rdar://problem/5318756> Need to refactor IM/Marked text code to share logic with windows.
       
  2335 
       
  2336         Moved a number of methods from WebHTMLView into WebCore.
       
  2337         Replaced bridge methods with calls directly into WebCore objects.
       
  2338 
       
  2339         * WebKit.xcodeproj/project.pbxproj:
       
  2340         * WebView/WebHTMLView.mm:
       
  2341         (-[WebHTMLView setMarkedText:selectedRange:]):
       
  2342           Now calls WebCore object methods directly, rather than calling 
       
  2343           via the bridge.
       
  2344 
       
  2345 2007-07-06  John Sullivan  <sullivan@apple.com>
       
  2346 
       
  2347         Reviewed by Brady
       
  2348 
       
  2349         - WebKit part of fix for: 
       
  2350           <rdar://problem/5310739> Time Machine shouldn't back up WebKit's icon database files
       
  2351 
       
  2352         * Misc/WebIconDatabase.mm:
       
  2353         (-[WebIconDatabase init]):
       
  2354         Use CSBackupSetItemExcluded to tell Time Machine not to back up the icon database file
       
  2355 
       
  2356 2007-07-07  Mark Rowe  <mrowe@apple.com>
       
  2357 
       
  2358         Build fix.  Update WebDynamicScrollBarsView.h to include methods added and used in r24060.
       
  2359 
       
  2360         * WebView/WebDynamicScrollBarsView.h:
       
  2361 
       
  2362 2007-07-05  Timothy Hatcher  <timothy@apple.com>
       
  2363 
       
  2364         Reviewed by John.
       
  2365 
       
  2366         <rdar://problem/5236277> REGRESSION-9A458: SPI for setting scroll bar behavior doesn't work
       
  2367 
       
  2368         Calling setHorizontalScrollingMode: calls updateScrollers before returning, this will cause
       
  2369         WebCore to reset the scrolling mode based on the CSS overflow rules. So the setAlwaysShowHorizontalScroller:
       
  2370         and setAlwaysShowVerticalScroller: methods needed a way to lock the scrolling mode before
       
  2371         calling updateScrollers.
       
  2372 
       
  2373         * WebView/WebDynamicScrollBarsView.m:
       
  2374         (-[WebDynamicScrollBarsView updateScrollers]):
       
  2375         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
       
  2376         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:andLock:]):
       
  2377         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
       
  2378         (-[WebDynamicScrollBarsView setVerticalScrollingMode:andLock:]):
       
  2379         (-[WebDynamicScrollBarsView setScrollingMode:]):
       
  2380         (-[WebDynamicScrollBarsView setScrollingMode:andLock:]):
       
  2381         * WebView/WebView.mm:
       
  2382         (-[WebView setAlwaysShowVerticalScroller:]):
       
  2383         (-[WebView setAlwaysShowHorizontalScroller:]):
       
  2384 
       
  2385 2007-07-06  Mitz Pettel  <mitz@webkit.org>
       
  2386 
       
  2387         Reviewed by Maciej.
       
  2388 
       
  2389         - fix http://bugs.webkit.org/show_bug.cgi?id=10267
       
  2390           Can't scroll page downwards with scroll wheel, when pointer is on top of non-scrolling iframe
       
  2391 
       
  2392         * WebView/WebDynamicScrollBarsView.m:
       
  2393         (-[WebDynamicScrollBarsView scrollWheel:]): Override the superclass
       
  2394         implementation to forward the wheel event to the next responder if this view
       
  2395         does not allow scrolling in the event's direction.
       
  2396 
       
  2397 2007-07-05  John Sullivan  <sullivan@apple.com>
       
  2398 
       
  2399         Reviewed by Adam
       
  2400         
       
  2401         - WebKit part of fix for <rdar://problem/5315033>
       
  2402 
       
  2403         * WebView/WebDocumentPrivate.h:
       
  2404         new selectionImageForcingBlackText: method. selectionImageForcingWhiteText: is no longer used and was never
       
  2405         in an official release of WebKit, so it could be removed, except that doing so would cause trouble for people
       
  2406         using nightly WebKit with Safari 3.0 beta. So I left it in, but made it just force black text instead of
       
  2407         white text, which will look different for those nightly WebKit/Safari 3.0 beta people but not break anything.
       
  2408         
       
  2409         * Misc/WebSearchableTextView.m:
       
  2410         (-[WebSearchableTextView selectionImageForcingBlackText:]):
       
  2411         new unimplemented protocol method for this obsolete class
       
  2412         
       
  2413         * WebView/WebHTMLView.mm:
       
  2414         (-[WebHTMLView selectionImageForcingBlackText:]):
       
  2415         calls through to WebCore the way selectionImageForcingWhiteText: used to
       
  2416         (-[WebHTMLView selectionImageForcingWhiteText:]):
       
  2417         now just calls selectionImageForcingBlackText:, thus not working as you would expect from the name
       
  2418         
       
  2419         * WebView/WebPDFView.mm:
       
  2420         (-[WebPDFView selectionImageForcingBlackText:]):
       
  2421         guts of old selectionImageForcingWhiteText:, but with black substituted for white
       
  2422         (-[WebPDFView selectionImageForcingWhiteText:]):
       
  2423         now just calls selectionImageForcingBlackText:, thus not working as you would expect from the name
       
  2424 
       
  2425 2007-07-05  Timothy Hatcher  <timothy@apple.com>
       
  2426 
       
  2427         Reviewed by John.
       
  2428 
       
  2429         <rdar://problem/5314993> Shiira 2.1 throws an exception open a new window: -[WebInspector window]: unrecognized selector
       
  2430 
       
  2431         Add an empty implementation of this method to prevent Shiira from throwing an exception.
       
  2432         Also log that this method is obsolete and the class will be removed.
       
  2433 
       
  2434         * WebInspector/WebInspector.mm:
       
  2435         (-[WebInspector window]):
       
  2436 
       
  2437 2007-07-04  Adam Roben  <aroben@apple.com>
       
  2438 
       
  2439         Move tooltip logic down into WebCore so that it can be shared cross-platform
       
  2440 
       
  2441         Reviewed by Sam.
       
  2442 
       
  2443         * WebCoreSupport/WebChromeClient.h:
       
  2444         * WebCoreSupport/WebChromeClient.mm:
       
  2445         (WebChromeClient::setToolTip): Added.
       
  2446         * WebView/WebHTMLView.mm: Removed _resetCachedWebPreferences.
       
  2447         (-[WebHTMLView _updateMouseoverWithEvent:]): Removed tooltip code.
       
  2448         (-[WebHTMLView initWithFrame:]): Removed call to
       
  2449         _resetCachedWebPreferences.
       
  2450         (-[WebHTMLView setDataSource:]): Ditto.
       
  2451         * WebView/WebHTMLViewInternal.h: Removed showsURLsInToolTips ivar.
       
  2452         * WebView/WebHTMLViewPrivate.h: Added declaration for _setTooltip so
       
  2453         that WebChromeClient can call it.
       
  2454 
       
  2455 2007-07-04  Adam Roben  <aroben@apple.com>
       
  2456 
       
  2457         Initialize Settings::showsURLsInToolTips
       
  2458 
       
  2459         Reviewed by Sam.
       
  2460 
       
  2461         * WebView/WebView.mm:
       
  2462         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  2463 
       
  2464 2007-07-04  Adam Roben  <aroben@apple.com>
       
  2465 
       
  2466         Removed call to mouseDidMoveOverElement now that WebCore handles it
       
  2467 
       
  2468         Reviewed by Sam.
       
  2469 
       
  2470         * WebView/WebHTMLView.mm:
       
  2471         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
  2472 
       
  2473 2007-07-04  Adam Roben  <aroben@apple.com>
       
  2474 
       
  2475         Add WebChromeClient::mouseDidMoveOverElement
       
  2476 
       
  2477         This is not called yet.
       
  2478 
       
  2479         Reviewed by Sam.
       
  2480 
       
  2481         * WebCoreSupport/WebChromeClient.h:
       
  2482         * WebCoreSupport/WebChromeClient.mm:
       
  2483 
       
  2484 2007-07-03  Darin Adler  <darin@apple.com>
       
  2485 
       
  2486         * StringsNotToBeLocalized.txt: Updated for recent changes.
       
  2487 
       
  2488 2007-07-03  Timothy Hatcher  <timothy@apple.com>
       
  2489 
       
  2490         Reviewed by Darin.
       
  2491 
       
  2492         Remove HIWebView in 64-bit.
       
  2493 
       
  2494         Also disable a few calls that are now gone in 64-bit and filed these bugs:
       
  2495 
       
  2496         <rdar://problem/5311653> WebKit needs to adopt HIGetMousePosition where we used GetGlobalMouse before
       
  2497         <rdar://problem/5311648> WebKit needs to move off of CopyEvent in WebBaseNetscapePluginView
       
  2498         <rdar://problem/5311640> WebKit needs a new solution for HISearchWindowShow on 64-bit
       
  2499 
       
  2500         * Carbon/CarbonUtils.m:
       
  2501         * Carbon/CarbonWindowAdapter.m:
       
  2502         * Carbon/CarbonWindowContentView.m:
       
  2503         * Carbon/CarbonWindowFrame.m:
       
  2504         * Carbon/HIViewAdapter.m:
       
  2505         (SetViewNeedsDisplay):
       
  2506         * Carbon/HIWebView.m:
       
  2507         (Draw):
       
  2508         (SyncFrame):
       
  2509         * Configurations/WebKit.xcconfig:
       
  2510         * Plugins/WebBaseNetscapePluginView.mm:
       
  2511         (+[WebBaseNetscapePluginView getCarbonEvent:]):
       
  2512         (TSMEventHandler):
       
  2513         * WebKit.LP64.exp: Added.
       
  2514         * WebView/WebView.mm:
       
  2515         (-[WebView _searchWithSpotlightFromMenu:]):
       
  2516 
       
  2517 2007-07-03  Adam Roben  <aroben@apple.com>
       
  2518 
       
  2519         Merge the Windows and Mac localized strings and exceptions files
       
  2520 
       
  2521         Reviewed by Darin and Anders.
       
  2522 
       
  2523         * English.lproj/Localizable.strings: Added Windows strings.
       
  2524         * StringsNotToBeLocalized.txt: Renamed from WebKit/English.lproj/StringsNotToBeLocalized.txt.
       
  2525 
       
  2526 2007-07-03  Adele Peterson  <adele@apple.com>
       
  2527 
       
  2528         Removed printf I accidently left in.
       
  2529 
       
  2530         * Misc/WebNSURLExtras.m: (mapHostNames):
       
  2531 
       
  2532 2007-07-03  Adele Peterson  <adele@apple.com>
       
  2533 
       
  2534         Reviewed by Darin.
       
  2535 
       
  2536         Fix for: <rdar://problem/5292988> domain names shouldn't contain ignorable characters
       
  2537 
       
  2538         * Misc/WebNSURLExtras.m:
       
  2539         (isLookalikeCharacter): Renamed.  Also excludes any non-printable character, 
       
  2540          any character considered as whitespace that isn't already converted to a space by ICU, any ignorable character,
       
  2541          and any character excluded in Mozilla's blacklist: http://kb.mozillazine.org/Network.IDN.blacklist_chars
       
  2542         (allCharactersInIDNScriptWhiteList):
       
  2543 
       
  2544 2007-07-03  Darin Adler  <darin@apple.com>
       
  2545 
       
  2546         Reviewed by Maciej.
       
  2547 
       
  2548         - fix <rdar://problem/5310848> WebDataSource lifetime problem -- may be cause of the leaks seen on the buildbot
       
  2549 
       
  2550         * WebView/WebDataSource.mm:
       
  2551         (-[WebDataSourcePrivate dealloc]): Added a call to the new detachDataSource function.
       
  2552         (-[WebDataSourcePrivate finalize]): Ditto.
       
  2553 
       
  2554         * WebView/WebDocumentLoaderMac.h: Added detachDataSource function to be used when the
       
  2555         WebDataSource is deallocated. Added retain/releaseDataSource helper functions to be
       
  2556         used to retain and release the data source object. Replaced the m_hasEverBeenDetached
       
  2557         boolean with a more primitive and hence easier to understand m_isDataSourceRetained boolean.
       
  2558 
       
  2559         * WebView/WebDocumentLoaderMac.mm:
       
  2560         (WebDocumentLoaderMac::WebDocumentLoaderMac): Initialize m_isDataSourceRetained to false.
       
  2561         (WebDocumentLoaderMac::setDataSource): Call retainDataSource instead of calling HardRetain
       
  2562         on the dataSource parameter. Also updated a comment.
       
  2563         (WebDocumentLoaderMac::attachToFrame): Call retainDataSource unconditionally rather than
       
  2564         trying to use m_hasEverBeenDetached to decide if a retain is needed. Also got rid of an
       
  2565         assertion that m_loadingResources is empty -- not important any more.
       
  2566         (WebDocumentLoaderMac::detachFromFrame): Call releaseDataSource instead of using
       
  2567         HardRelease, but only if m_loadingResources is empty. If it's non-empty, then we'll
       
  2568         do the releaseDataSource later in decreaseLoadCount.
       
  2569         (WebDocumentLoaderMac::increaseLoadCount): Call retainDataSource unconditionally
       
  2570         rather than calling HardRetain only if the old set of resources was empty.
       
  2571         (WebDocumentLoaderMac::decreaseLoadCount): Call releaseDataSource if m_loadingResources
       
  2572         is empty and we're not attached to a frame. If we are attached to a frame, then
       
  2573         we'll do the releaseDataSource later in detachFromFrame.
       
  2574         (WebDocumentLoaderMac::retainDataSource): Added. Calls CFRetain, but only if the data
       
  2575         source is not already retained (according to the boolean).
       
  2576         (WebDocumentLoaderMac::releaseDataSource): Added. Calls CFRelease, but only if the data
       
  2577         source is currently retained (according to the boolean).
       
  2578         (WebDocumentLoaderMac::detachDataSource): Added. Sets m_dataSource to nil. Since this
       
  2579         is only called from WebDataSource's dealloc and finalize methods, it won't ever be called
       
  2580         when the m_isDataSourceRetained boolean is true.
       
  2581 
       
  2582 2007-07-03  Darin Adler  <darin@apple.com>
       
  2583 
       
  2584         - forgot to check in one file in the fix for <rdar://problem/5307880>
       
  2585           some classes need finalize methods because of non-trivial work done in dealloc methods
       
  2586 
       
  2587         * WebView/WebView.mm: (-[WebViewPrivate finalize]): Delete identifierMap so it doesn't leak.
       
  2588 
       
  2589 2007-07-03  Anders Carlsson  <andersca@apple.com>
       
  2590 
       
  2591         Reviewed by Darin.
       
  2592 
       
  2593         * WebView/WebView.mm:
       
  2594         (-[WebView stringByEvaluatingJavaScriptFromString:]):
       
  2595         ASSERT that the value returned isn't nil. It can't be nil when invoked on the main frame.
       
  2596 
       
  2597 2007-07-04  Mark Rowe  <mrowe@apple.com>
       
  2598 
       
  2599         Unreviewed 64-bit build fixes.
       
  2600 
       
  2601         * WebCoreSupport/WebInspectorClient.mm: Let the compiler know that WebFrameView is a subclass of NSView.
       
  2602         * WebView/WebDocumentInternal.h: Remove our preprocessor macro once we're done with it.
       
  2603         * WebView/WebHTMLView.mm:
       
  2604         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): Fix argument types.
       
  2605 
       
  2606 2007-07-02  Darin Adler  <darin@apple.com>
       
  2607 
       
  2608         Reviewed by Kevin Decker and Tim Hatcher.
       
  2609 
       
  2610         - fix <rdar://problem/5307880> some classes need finalize methods
       
  2611           because of non-trivial work done in dealloc methods
       
  2612 
       
  2613         * DefaultDelegates/WebScriptDebugServer.m:
       
  2614         (-[WebScriptDebugServer dealloc]): Added a comment about how this probably won't
       
  2615         work under GC.
       
  2616         * WebInspector/WebNodeHighlight.m:
       
  2617         (-[WebNodeHighlight dealloc]): Ditto.
       
  2618 
       
  2619         * WebView/WebDataSource.mm:
       
  2620         (+[WebDataSourcePrivate initialize]): Added. Makes finalize run on main thread.
       
  2621         (-[WebDataSourcePrivate finalize]): Added. Calls deref on the document loader.
       
  2622         * WebView/WebHTMLView.mm:
       
  2623         (+[WebHTMLViewPrivate initialize]): Added. Makes finalize run on main thread.
       
  2624         (-[WebHTMLViewPrivate finalize]): Added. Calls deref on promisedDragTIFFDataSource.
       
  2625 
       
  2626         * WebKit.xcodeproj/project.pbxproj: Let Xcode be Xcode.
       
  2627 
       
  2628 2007-07-02  Oliver Hunt  <oliver@apple.com>
       
  2629 
       
  2630         Reviewed by Justin.
       
  2631 
       
  2632         Fix for 
       
  2633           <rdar://problem/5290113> WebKit does not correctly handle replacement ranges from the IM in -[WebHTMLView insertText:]
       
  2634           http://bugs.webkit.org/show_bug.cgi?id=13664
       
  2635 
       
  2636         We replicate the logic of -[WebHTMLView setMarkedText:selectedRange:] to handle the Input Method 
       
  2637         feeding us a replacement string through insertText: so we can handle IMs that use insertText to
       
  2638         replace text.
       
  2639 
       
  2640         * WebView/WebHTMLView.mm:
       
  2641         (-[WebHTMLView insertText:]):
       
  2642 
       
  2643 2007-07-01  Oliver Hunt  <oliver@apple.com>
       
  2644 
       
  2645         Reviewed by Alexey.
       
  2646 
       
  2647         Fix for <rdar://problem/5306210> Some events are still passed to WebCore despite being handled by the IM
       
  2648         http://bugs.webkit.org/show_bug.cgi?id=14457
       
  2649 
       
  2650         We have to assume that the IM will consume all events, so we remove the dependency
       
  2651         on -[WebHTMLView hasMarkedText].
       
  2652 
       
  2653         * WebView/WebHTMLView.mm:
       
  2654         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  2655 
       
  2656 2007-06-29  John Sullivan  <sullivan@apple.com>
       
  2657 
       
  2658         Reviewed by Oliver Hunt.
       
  2659 
       
  2660         - WebKit support for accessing the set of rectangles that encompass the selected text
       
  2661 
       
  2662         * WebView/WebDocumentPrivate.h:
       
  2663         added -selectionTextRects to WebDocumentSelection protocol; tweaked comments
       
  2664 
       
  2665         * WebView/WebHTMLView.mm:
       
  2666         (-[WebHTMLView _selectionDraggingRect]):
       
  2667         use selectionRect instead of selectionImageRect since they're the same and maybe we can get
       
  2668         rid of selectionImageRect someday
       
  2669         (-[WebHTMLView selectionTextRects]):
       
  2670         added implementation of new protocol method, which calls through to WebCore
       
  2671         
       
  2672         * WebView/WebPDFView.mm:
       
  2673         (-[WebPDFView selectionTextRects]):
       
  2674         added simple implementation of new protocol method, which just returns the single selection rect.
       
  2675         PDFKit doesn't support obtaining multiple rects to describe a multi-line selection.
       
  2676         (-[WebPDFView selectionImageForcingWhiteText:]):
       
  2677         use selectionRect instead of selectionImageRect since they're the same and maybe we can get
       
  2678         rid of selectionImageRect someday
       
  2679         
       
  2680         * Misc/WebSearchableTextView.m:
       
  2681         (-[WebSearchableTextView selectionTextRects]):
       
  2682         added no-op implementation of new protocol method to this obsolete class
       
  2683 
       
  2684 2007-06-28  Timothy Hatcher  <timothy@apple.com>
       
  2685 
       
  2686         Reviewed by Darin.
       
  2687 
       
  2688         <rdar://problem/5287569> WEBVIEW: Creating a webview in IB 3.0 (v2.0) NIB later crashes Interface Builder 2.5.4 on Tiger
       
  2689 
       
  2690         Prevent encoding any of the WebView subviews. The subviews are ignored by -[WebView initWithCoder:] and will be recreated.
       
  2691         The Tiger 2.0 code crashed when the WebView released the subviews in initWithCoder:, so now there are no subviews to release.
       
  2692         This never happened before because the Tiger 2.0 code and IB wouldn't encode a WebView that has a WebHTMLView.
       
  2693 
       
  2694         * WebView/WebView.mm:
       
  2695         (-[WebView encodeWithCoder:]):
       
  2696 
       
  2697 2007-06-26  John Sullivan  <sullivan@apple.com>
       
  2698 
       
  2699         Reviewed by Darin
       
  2700         
       
  2701         - WebKit support for displaying multiple text matches in PDF views (<rdar://problem/4601967>)
       
  2702 
       
  2703         * WebView/WebPDFView.h:
       
  2704         new ivars textMatches and lastScrollPosition; now conforms to WebMultipleTextMatches protocol
       
  2705         
       
  2706         * WebView/WebPDFView.mm:
       
  2707         (-[WebPDFView dealloc]):
       
  2708         release textMatches
       
  2709         (-[WebPDFView viewDidMoveToWindow]):
       
  2710         start observing bounds changes in the PDF document's enclosing clip view, so we can notice when
       
  2711         scrolling takes place
       
  2712         (-[WebPDFView viewWillMoveToWindow:]):
       
  2713         stop observing bounds changes in the PDF document's enclosing clip view
       
  2714         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
       
  2715         most of the code here has been moved into the new method _nextMatchFor::::, which this now calls
       
  2716         (-[WebPDFView setMarkedTextMatchesAreHighlighted:]):
       
  2717         implementation of WebMultipleTextMatches protocol method, does nothing useful here because we don't
       
  2718         support inline highlighting of matches in PDF documents
       
  2719         (-[WebPDFView markedTextMatchesAreHighlighted]):
       
  2720         implementation of WebMultipleTextMatches protocol method
       
  2721         (-[WebPDFView markAllMatchesForText:caseSensitive:limit:]):
       
  2722         implementation of WebMultipleTextMatches protocol method; calls _nextMatchFor:::: in a loop until
       
  2723         entire document is searched or limit is hit; records results by saving PDFSelections in textMatches ivar
       
  2724         (-[WebPDFView unmarkAllTextMatches]):
       
  2725         implementation of WebMultipleTextMatches protocol method; clears saved textMatches
       
  2726         (-[WebPDFView rectsForTextMatches]):
       
  2727         implementation of WebMultipleTextMatches protocol method; converts saved PDFSelections into NSValue 
       
  2728         objects that represent NSRects
       
  2729         (-[WebPDFView _clipViewForPDFDocumentView]):
       
  2730         new helper method to find the clip view whose bounds determine the current scroll position
       
  2731         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
       
  2732         new helper method, extracted from searchFor:::::
       
  2733         (-[WebPDFView _PDFDocumentViewMightHaveScrolled:]):
       
  2734         new notification callback; tells webView's delegate when document has scrolled
       
  2735         (-[WebPDFView _setTextMatches:]):
       
  2736         new helper method, stores value in ivar
       
  2737 
       
  2738 2007-06-26  Oliver Hunt  <oliver@apple.com>
       
  2739 
       
  2740         Reviewed by Maciej.
       
  2741 
       
  2742         Hopefully fix remainder of the IME issues on Mac.  
       
  2743         We now assume that the IME silently consumes any event given
       
  2744         to it during text composition, and only override this assumption
       
  2745         if the NSTextInput or NSResponder callbacks are made.
       
  2746 
       
  2747         This prevents us from treating those events that the IME has 
       
  2748         consumed internally (eg. candidate window navigation) as unhandled
       
  2749         events that should be bubbled.
       
  2750 
       
  2751         This fixes:
       
  2752           <rdar://problem/5107538> Major problems handling key press event with non-english Input Methods
       
  2753           <rdar://problem/4196249> REGRESSION: Mail: Inputting space (U+0020) with IM deletes subsequent line breaks on Mail.app
       
  2754           <rdar://problem/5015544> REGRESSION: Reverse conversion keyboard command does not work in Safari.
       
  2755           <rdar://problem/5045121> REGRESSION: Inline is confirmed after press left/right arrow keys, happens in Mail but not in TextEdit.
       
  2756           <rdar://problem/5076807> REGRESSION: Can't undo conversion of inline text (by hitting ESC)
       
  2757           <rdar://problem/5085781> REGRESSION: Active input area lost "selected" highlight
       
  2758           <rdar://problem/5094200> space key pressed to close the associated words candidate window gets inserted as text
       
  2759           <rdar://problem/5228294> Candidate item for character matrix is sometimes skipped
       
  2760 
       
  2761         * WebKit.xcodeproj/project.pbxproj:
       
  2762         * WebView/WebHTMLView.mm:
       
  2763         (-[WebHTMLView launchKeyEvent:]):
       
  2764         (-[WebHTMLView keyDown:]):
       
  2765         (-[WebHTMLView keyUp:]):
       
  2766         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  2767         (-[WebHTMLView unmarkText]):
       
  2768         (-[WebHTMLView setMarkedText:selectedRange:]):
       
  2769         (-[WebHTMLView doCommandBySelector:]):
       
  2770         (-[WebHTMLView insertText:]):
       
  2771 
       
  2772 2007-06-26  Jim Correia  <jim.correia@pobox.com>
       
  2773 
       
  2774         Reviewed by Darin.
       
  2775 
       
  2776         Fix http://bugs.webkit.org/show_bug.cgi?id=14411
       
  2777         Bug 14411: WebNetscapePluginPackage overagressively sets CurApRefNum, which affects shipping versions of BBEdit.
       
  2778         <rdar://problem/5297268>
       
  2779 
       
  2780         * Plugins/WebNetscapePluginPackage.m:
       
  2781         (+[WebNetscapePluginPackage initialize]): Force the Resource Manager to
       
  2782         lazy initialize, and only set CurApRefNum to the system file if
       
  2783         CurApRefNum is still -1 after that forced lazy initialization.
       
  2784 
       
  2785 2007-06-25  Kevin Decker  <kdecker@apple.com>
       
  2786 
       
  2787         Reviewed by Darin.
       
  2788 
       
  2789         <rdar://problem/5294036> -[WebView customTextEncodingName] API may return empty string instead of nil
       
  2790 
       
  2791         * WebView/WebView.mm:
       
  2792         (-[WebView _mainFrameOverrideEncoding]): Addded the nsStringNilIfEmpty() inline to the data being returned because 
       
  2793         our API says "The custom text encoding name or nil if no custom text encoding name has been set." I also verified
       
  2794         the standing Tiger WebKit behavior for this method and it does indeed return nil if a custom encoding wasn't set.
       
  2795 
       
  2796 2007-06-25  John Sullivan  <sullivan@apple.com>
       
  2797 
       
  2798         Reviewed by Darin
       
  2799         
       
  2800         - WebKit part of <rdar://problem/5293820>, needed to support multiple matches in PDFs
       
  2801 
       
  2802         * WebView/WebDocumentInternal.h:
       
  2803         Added WebMultipleTextMatches protocol, containing five methods that were formerly implemented in WebHTMLView
       
  2804         * WebView/WebHTMLViewPrivate.h:
       
  2805         Removed declarations for the methods that are now in WebMultipleTextMatches protocol
       
  2806         
       
  2807         * WebView/WebHTMLView.mm:
       
  2808         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
       
  2809         moved this method into the WebDocumentInternalProtocols portion of the file
       
  2810         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
       
  2811         ditto
       
  2812         (-[WebHTMLView markedTextMatchesAreHighlighted]):
       
  2813         ditto
       
  2814         (-[WebHTMLView unmarkAllTextMatches]):
       
  2815         ditto
       
  2816         (-[WebHTMLView rectsForTextMatches]):
       
  2817         ditto
       
  2818 
       
  2819         * WebView/WebView.mm:
       
  2820         (-[WebView canMarkAllTextMatches]):
       
  2821         new method, returns YES only if the documentView of every frame implements WebMultipleTextMatches
       
  2822         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
       
  2823         check for WebMultipleTextMatches protocol instead of checking for WebHTMLView class
       
  2824         (-[WebView unmarkAllTextMatches]):
       
  2825         ditto
       
  2826         (-[WebView rectsForTextMatches]):
       
  2827         ditto
       
  2828 
       
  2829         * WebView/WebViewPrivate.h:
       
  2830         declared new method canMarkAllTextMatches
       
  2831 
       
  2832 2007-06-25  John Sullivan  <sullivan@apple.com>
       
  2833 
       
  2834         Reviewed by Darin
       
  2835         
       
  2836         Fixed <rdar://problem/5292259> Find on Page doesn't work (throws exception) on page that includes PDF in a subframe
       
  2837 
       
  2838         * WebView/WebView.mm:
       
  2839         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
       
  2840         We were testing whether the view was an HTMLView, but then running code that assumed it was an HTMLView outside of
       
  2841         that test. That's a bad idea.
       
  2842 
       
  2843 2007-06-22  Adele Peterson  <adele@apple.com>
       
  2844 
       
  2845         Reviewed by Geoff and Darin.
       
  2846 
       
  2847         Fix for: <rdar://problem/5239236> Other slash characters should not be permitted as part of a domain name
       
  2848 
       
  2849         * Misc/WebNSURLExtras.m:
       
  2850         (isSlashOrPeriodLookalike):
       
  2851         (allCharactersInIDNScriptWhiteList):
       
  2852 
       
  2853 2007-06-21  Sam Weinig  <sam@webkit.org>
       
  2854 
       
  2855         Reviewed by Antti.
       
  2856 
       
  2857         Remove empty directories
       
  2858 
       
  2859         * WebInspector/webInspector: directory removed.
       
  2860         * WebInspector/webInspector/Images: directory removed
       
  2861 
       
  2862 2007-06-21  Justin Garcia  <justin.garcia@apple.com>
       
  2863 
       
  2864         Reviewed by Tim.
       
  2865         
       
  2866         <rdar://problem/5237524> 
       
  2867         REGRESSION: Keyboard commands don't work in a message window until you click inside the message
       
  2868         
       
  2869         When you open a message in its own window, Mail creates an empty 
       
  2870         WebView, makes that WebView firstResponder and then sets off a 
       
  2871         load inside that WebView.
       
  2872         
       
  2873         When we're asked to create the empty WebView, we put an empty 
       
  2874         WebHTMLView inside it (in r21367 we began creating a document 
       
  2875         for empty frames).  When Mail makes the WebView first responder 
       
  2876         we make that empty WebHTMLView firstResponder.  Then when the 
       
  2877         load finishes we create a new WebHTMLView and set it as the 
       
  2878         document view.  
       
  2879         
       
  2880         Inside _setDocumentView, if the old document view or one of its
       
  2881         descendants was the first responder, we'd makeFirstResponder:nil 
       
  2882         so that the window wouldn't be left with a firstResponder that 
       
  2883         was no longer inside of it.  This change fixes the bug by instead 
       
  2884         transferring firstResponder status to the new document view.
       
  2885         
       
  2886         We could also fix this by not allowing the WebHTMLView to become
       
  2887         firstResponder when it's in the provisional state mentioned above.
       
  2888 
       
  2889         * WebView/WebFrameView.mm:
       
  2890         (-[WebFrameView _setDocumentView:]):
       
  2891 
       
  2892 2007-06-21  John Sullivan  <sullivan@apple.com>
       
  2893 
       
  2894         Reviewed by Adele
       
  2895         
       
  2896         - fixed <rdar://problem/5268673> REGRESSION: Context menu missing for PDF in frame when there's no selection
       
  2897         
       
  2898         This was surprisingly interesting. It turns out that at least for Safari, the method [WebDefaultUIDelegate
       
  2899         webView:contextMenuItemsForElement:defaultMenuItems:] is only exercised from WebPDFView these days. It mimics
       
  2900         some of the code that was moved to WebCore as part of the Great Context Menu Refactoring of 2006, but is
       
  2901         independent of that code. And it was partly broken/incomplete, probably as a result of said refactoring.
       
  2902 
       
  2903         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
       
  2904         (localizedMenuTitleFromAppKit()):
       
  2905         deleted this function since I removed all callers
       
  2906         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
       
  2907         Handle WebMenuItemTagOpenFrameInNewWindow tag, since code later in this file was relying on it. Added
       
  2908         ASSERT_NOT_REACHED to the default case, since returning nil from this method is bad.
       
  2909         Also, use WebKit versions of menu title strings rather than AppKit versions. We added these strings to WebKit 
       
  2910         a while back so we don't need to sneakily find them in AppKit anymore.
       
  2911         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
       
  2912         make the WebView be the target of the Open Frame in New Window item; previously it was self, but that was
       
  2913         just silly (probably a leftover from some code shuffling when context menus were reimplemented)
       
  2914 
       
  2915         * WebView/WebView.mm:
       
  2916         (-[WebView _openFrameInNewWindowFromMenu:]):
       
  2917         new method, used by Open Frame in New Window menu item.
       
  2918 
       
  2919         * WebView/WebViewInternal.h:
       
  2920         Declare new method used by menu item. This isn't necessary for compilation, but could prevent the accidental
       
  2921         deletion of the method implementation.
       
  2922 
       
  2923 2007-06-20  Mark Rowe  <mrowe@apple.com>
       
  2924 
       
  2925         Reviewed by Adam.
       
  2926 
       
  2927         Fix http://bugs.webkit.org/show_bug.cgi?id=14255.
       
  2928         Bug 14255: Reproducible crash opening web inspector from debug menu
       
  2929 
       
  2930         Reinstate the WebInspector class so WebKit clients that currently depend on it
       
  2931         will build and run correctly.
       
  2932 
       
  2933         * WebInspector/WebInspector.h: Added.
       
  2934         * WebInspector/WebInspector.mm: Added.
       
  2935         (+[WebInspector webInspector]):
       
  2936         (-[WebInspector dealloc]):
       
  2937         (-[WebInspector setWebFrame:]):
       
  2938         (-[WebInspector showWindow:]):
       
  2939         * WebKit.exp:
       
  2940         * WebKit.xcodeproj/project.pbxproj:
       
  2941 
       
  2942 2007-06-20  Adam Roben  <aroben@apple.com>
       
  2943 
       
  2944         Land the new Inspector.
       
  2945 
       
  2946         Co-written with Tim Hatcher.
       
  2947 
       
  2948         Reviewed by Anders, Adele, Hyatt, and Sam.
       
  2949 
       
  2950         Implement the InspectorClient interface.
       
  2951 
       
  2952         * WebCoreSupport/WebInspectorClient.h: Added.
       
  2953         * WebCoreSupport/WebInspectorClient.mm: Added.
       
  2954         (WebInspectorClient::WebInspectorClient):
       
  2955         (WebInspectorClient::inspectorDestroyed):
       
  2956         (WebInspectorClient::createPage):
       
  2957         (WebInspectorClient::showWindow):
       
  2958         (WebInspectorClient::closeWindow):
       
  2959         (WebInspectorClient::attachWindow):
       
  2960         (WebInspectorClient::detachWindow):
       
  2961         (WebInspectorClient::highlight):
       
  2962         (WebInspectorClient::hideHighlight):
       
  2963         (WebInspectorClient::inspectedURLChanged):
       
  2964         (WebInspectorClient::updateWindowTitle):
       
  2965         (-[WebInspectorWindowController init]):
       
  2966         (-[WebInspectorWindowController initWithInspectedWebView:]):
       
  2967         (-[WebInspectorWindowController dealloc]):
       
  2968         (-[WebInspectorWindowController inspectorVisible]):
       
  2969         (-[WebInspectorWindowController webView]):
       
  2970         (-[WebInspectorWindowController window]):
       
  2971         (-[WebInspectorWindowController windowShouldClose:]):
       
  2972         (-[WebInspectorWindowController close]):
       
  2973         (-[WebInspectorWindowController showWindow:]):
       
  2974         (-[WebInspectorWindowController attach]):
       
  2975         (-[WebInspectorWindowController detach]):
       
  2976         (-[WebInspectorWindowController highlightAndScrollToNode:]):
       
  2977         (-[WebInspectorWindowController highlightNode:]):
       
  2978         (-[WebInspectorWindowController hideHighlight]):
       
  2979         (-[WebInspectorWindowController animationDidEnd:]):
       
  2980 
       
  2981         Add an easier-to-see highlight.
       
  2982 
       
  2983         * Misc/WebNSViewExtras.h:
       
  2984         * Misc/WebNSViewExtras.m:
       
  2985         (-[NSView _web_convertRect:toView:]):
       
  2986         * WebInspector/WebNodeHighlight.h:
       
  2987         * WebInspector/WebNodeHighlight.m:
       
  2988         (-[WebNodeHighlightFadeInAnimation setCurrentProgress:]):
       
  2989         (-[WebNodeHighlight initWithTargetView:]):
       
  2990         (-[WebNodeHighlight setHighlightedNode:]):
       
  2991         (-[WebNodeHighlight highlightedNode]):
       
  2992         (-[WebNodeHighlight dealloc]):
       
  2993         (-[WebNodeHighlight attachHighlight]):
       
  2994         (-[WebNodeHighlight delegate]):
       
  2995         (-[WebNodeHighlight detachHighlight]):
       
  2996         (-[WebNodeHighlight show]):
       
  2997         (-[WebNodeHighlight hide]):
       
  2998         (-[WebNodeHighlight animationDidEnd:]):
       
  2999         (-[WebNodeHighlight ignoresMouseEvents]):
       
  3000         (-[WebNodeHighlight highlightView]):
       
  3001         (-[WebNodeHighlight setDelegate:]):
       
  3002         (-[WebNodeHighlight setHolesNeedUpdateInTargetViewRect:]):
       
  3003         (-[WebNodeHighlight setIgnoresMouseEvents:]):
       
  3004         (-[WebNodeHighlight targetView]):
       
  3005         (-[WebNodeHighlight _computeHighlightWindowFrame]):
       
  3006         (-[WebNodeHighlight _repositionHighlightWindow]):
       
  3007         * WebInspector/WebNodeHighlightView.h:
       
  3008         * WebInspector/WebNodeHighlightView.m:
       
  3009         (-[WebNodeHighlightView initWithWebNodeHighlight:]):
       
  3010         (-[WebNodeHighlightView dealloc]):
       
  3011         (-[WebNodeHighlightView detachFromWebNodeHighlight]):
       
  3012         (-[WebNodeHighlightView drawRect:]):
       
  3013         (-[WebNodeHighlightView webNodeHighlight]):
       
  3014         (-[WebNodeHighlightView fractionFadedIn]):
       
  3015         (-[WebNodeHighlightView setFractionFadedIn:]):
       
  3016         (-[WebNodeHighlightView setHolesNeedUpdateInRect:]):
       
  3017         (-[WebNodeHighlightView _holes]):
       
  3018 
       
  3019         WebView changes needed for the new Inspector.
       
  3020 
       
  3021         * WebView/WebView.mm: Remove the old _inspectElement method now that
       
  3022         this is handled by WebCore.
       
  3023         (-[WebView _isClosed]): Added.
       
  3024         (-[WebView initWithFrame]): Give each Page an InspectorClient to
       
  3025         enable the Inspector.
       
  3026         * WebView/WebViewPrivate.h:
       
  3027 
       
  3028         Updates needed for WebCore changes.
       
  3029 
       
  3030         * WebCoreSupport/WebContextMenuClient.h:
       
  3031         * WebCoreSupport/WebContextMenuClient.mm:
       
  3032         * WebCoreSupport/WebViewFactory.mm:
       
  3033         (-[WebViewFactory contextMenuItemTagInspectElement]):
       
  3034         * WebView/WebUIDelegatePrivate.h:
       
  3035 
       
  3036         Remove old Inspector code.
       
  3037 
       
  3038         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  3039         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
  3040         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
       
  3041         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  3042         * WebInspector/WebInspector.m: Removed.
       
  3043         * WebInspector/WebInspectorPanel.h: Removed.
       
  3044         * WebInspector/WebInspectorPanel.m: Removed.
       
  3045         * WebInspector/webInspector/Images/button.png: Removed.
       
  3046         * WebInspector/webInspector/Images/buttonDivider.png: Removed.
       
  3047         * WebInspector/webInspector/Images/buttonPressed.png: Removed.
       
  3048         * WebInspector/webInspector/Images/close.png: Removed.
       
  3049         * WebInspector/webInspector/Images/closePressed.png: Removed.
       
  3050         * WebInspector/webInspector/Images/downTriangle.png: Removed.
       
  3051         * WebInspector/webInspector/Images/menu.png: Removed.
       
  3052         * WebInspector/webInspector/Images/menuPressed.png: Removed.
       
  3053         * WebInspector/webInspector/Images/popup.png: Removed.
       
  3054         * WebInspector/webInspector/Images/popupPressed.png: Removed.
       
  3055         * WebInspector/webInspector/Images/resize.png: Removed.
       
  3056         * WebInspector/webInspector/Images/rightTriangle.png: Removed.
       
  3057         * WebInspector/webInspector/Images/scrollThumbBottom.png: Removed.
       
  3058         * WebInspector/webInspector/Images/scrollThumbMiddle.png: Removed.
       
  3059         * WebInspector/webInspector/Images/scrollTrackBottom.png: Removed.
       
  3060         * WebInspector/webInspector/Images/upTriangle.png: Removed.
       
  3061         * WebInspector/webInspector/inspector.css: Removed.
       
  3062         * WebInspector/webInspector/inspector.html: Removed.
       
  3063         * WebInspector/webInspector/inspector.js: Removed.
       
  3064         * WebInspector/webInspector/scrollarea.js: Removed.
       
  3065         * WebInspector/webInspector/scrollbar.js: Removed.
       
  3066         * WebInspector/webInspector/utilities.js: Removed.
       
  3067         * WebView/WebFrame.mm:
       
  3068         (-[WebFramePrivate dealloc]):
       
  3069         * WebView/WebFrameInternal.h:
       
  3070         * WebView/WebHTMLView.mm:
       
  3071         (-[WebHTMLView menuForEvent:]):
       
  3072 
       
  3073         Build-fu:
       
  3074 
       
  3075         * WebKit.exp:
       
  3076         * WebKit.xcodeproj/project.pbxproj:
       
  3077 
       
  3078 2007-06-20  Justin Garcia  <justin.garcia@apple.com>
       
  3079 
       
  3080         Reviewed by Darin.
       
  3081         
       
  3082         <rdar://problem/5263541> REGRESSION (Safari 3 Beta 1): Pressing Delete doesn't delete an HTML message in Mail
       
  3083         
       
  3084         Mail wasn't receiving the keyDown event because WebFrameView was blocking it.
       
  3085         It blocks the event and moves back/forward on Delete/Shift+Delete if the
       
  3086         back/forward list is enabled.
       
  3087 
       
  3088         * WebView/WebFrameView.mm:
       
  3089         (-[WebFrameView keyDown:]): Check to see if the BackForwardList is
       
  3090         enabled.  It always exists.
       
  3091 
       
  3092 2007-06-19  Anders Carlsson  <andersca@apple.com>
       
  3093 
       
  3094         Reviewed by Kevin Decker.
       
  3095 
       
  3096         <rdar://problem/5266289> REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed
       
  3097 
       
  3098         * WebView/WebDocumentLoaderMac.mm:
       
  3099         (needsAppKitWorkaround):
       
  3100         New function which checks if the frame load delegate belongs to AppKit.
       
  3101         
       
  3102         (WebDocumentLoaderMac::setDataSource):
       
  3103         If the frame load delegate belongs to AppKit, set m_deferMainResourceDataLoad to false.
       
  3104 
       
  3105 2007-06-19  John Sullivan  <sullivan@apple.com>
       
  3106 
       
  3107         Reviewed by Tim Hatcher
       
  3108 
       
  3109         - fixed <rdar://problem/5272011> Hole for find-on-page match in subframe isn't clipped by frame bounds
       
  3110 
       
  3111         * WebView/WebView.mm:
       
  3112         (-[WebView rectsForTextMatches]):
       
  3113         intersect the HTMLView's computed rect with the visible rect for that view
       
  3114 
       
  3115 2007-06-19  Jim Correia  <jim.correia@pobox.com>
       
  3116 
       
  3117         Reviewed by Kevin Decker
       
  3118         
       
  3119         * Carbon/HIWebView.m:
       
  3120         (WindowHandler): HIObjectIsOfClass requires non-NULL input on Tiger. Reworked Kevin Decker's patch to remove the conditional compilation for Tiger, yet still avoid crashing BBEdit.
       
  3121 
       
  3122 2007-06-18  Sam Weinig  <sam@webkit.org>
       
  3123 
       
  3124         Reviewed by Beth.
       
  3125 
       
  3126         Build fix.
       
  3127 
       
  3128         * WebCoreSupport/WebChromeClient.mm:
       
  3129 
       
  3130 2007-06-18  Kevin Decker <kdecker@apple.com>
       
  3131 
       
  3132         * Carbon/HIWebView.m:
       
  3133         (WindowHandler): Fixed the Tiger build; ControlKind wasn't defined.
       
  3134 
       
  3135 2007-06-18  Kevin Decker  <kdecker@apple.com>
       
  3136 
       
  3137         Reviewed by Tim Hatcher.
       
  3138 
       
  3139         Fixed: <rdar://problem/5276135> With Safari 3 Tiger Beta installed, a crash occurs in BBEdit while mousing down and dragging outside of HTML preview window
       
  3140 
       
  3141         * Carbon/HIWebView.m:
       
  3142         (WindowHandler): Because the fix for 5051616 causes Tiger to crash in HIToolbox (but not on Leopard), I reverted back to using GetControlKind
       
  3143         on Tiger only, instead of HIObjectIsOfClass.
       
  3144 
       
  3145 2007-06-16  David Hyatt  <hyatt@apple.com>
       
  3146 
       
  3147         Back out fix for 13972.  Quicktime will no longer clip correctly. :(
       
  3148         Too many regressions in Mail caused by inserting an extra view into the
       
  3149         hierarchy.  Can revisit later.
       
  3150 
       
  3151         Reviewed by olliej
       
  3152 
       
  3153         * Plugins/WebPluginController.mm:
       
  3154         (-[WebPluginController destroyPlugin:]):
       
  3155         (-[WebPluginController destroyAllPlugins]):
       
  3156         * WebCoreSupport/WebFrameBridge.mm:
       
  3157         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
       
  3158         * WebView/WebHTMLView.mm:
       
  3159         (-[WebHTMLView addSubview:]):
       
  3160         (-[WebHTMLView willRemoveSubview:]):
       
  3161 
       
  3162 2007-06-15  Sam Weinig  <sam@webkit.org>
       
  3163 
       
  3164         Reviewed by Darin.
       
  3165 
       
  3166         Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
       
  3167         Autogenerate JS binding for Rect
       
  3168 
       
  3169         - Fix conflicts by using ::Rect instead of Rect.
       
  3170 
       
  3171         * Plugins/WebBaseNetscapePluginView.mm:
       
  3172         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  3173         (-[WebBaseNetscapePluginView sendEvent:]):
       
  3174         (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
       
  3175         (-[WebBaseNetscapePluginView invalidateRegion:]):
       
  3176         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
  3177 
       
  3178 2007-06-15  Anders Carlsson  <andersca@apple.com>
       
  3179 
       
  3180         Reviewed by Kevin.
       
  3181 
       
  3182         A better fix for <rdar://problem/5271774>. Only try to access the element if the
       
  3183         view has an associated window. This also works with GC. (Fix suggested by Kevin.)
       
  3184 
       
  3185         * Plugins/WebKitPluginContainerView.mm:
       
  3186         (-[WebKitPluginContainerView dealloc]):
       
  3187         (-[WebKitPluginContainerView visibleRect]):
       
  3188 
       
  3189 2007-06-15  Anders Carlsson  <andersca@apple.com>
       
  3190 
       
  3191         Reviewed by Kevin.
       
  3192 
       
  3193         <rdar://problem/5271774> REGRESSION: A crash occurs when closing a window that contains a QT movie
       
  3194         
       
  3195         In some cases, calling [super dealloc] might end up calling visibleRect, so make sure to
       
  3196         set _element to 0 so we won't send a message to a freed object and crash.
       
  3197         
       
  3198         * Plugins/WebKitPluginContainerView.mm:
       
  3199         (-[WebKitPluginContainerView dealloc]):
       
  3200         (-[WebKitPluginContainerView visibleRect]):
       
  3201 
       
  3202 2007-06-14  Anders Carlsson  <andersca@apple.com>
       
  3203 
       
  3204         Reviewed by Geoff.
       
  3205 
       
  3206         Call cleanupScriptObjectsForPlugin on the frame after destroying the plug-in.
       
  3207         
       
  3208         * Plugins/WebBaseNetscapePluginView.mm:
       
  3209         (-[WebBaseNetscapePluginView _destroyPlugin]):
       
  3210         * Plugins/WebPluginController.mm:
       
  3211         (-[WebPluginController destroyPlugin:]):
       
  3212         (-[WebPluginController destroyAllPlugins]):
       
  3213 
       
  3214 2007-06-13  John Sullivan  <sullivan@apple.com>
       
  3215 
       
  3216         Reviewed by Adele Peterson
       
  3217         
       
  3218         - fixed <rdar://problem/5267607> Clicking the "Save to Downloads" button in 
       
  3219           PDF overlay too soon results in corrupt file
       
  3220 
       
  3221         * WebView/WebPDFView.mm:
       
  3222         (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
       
  3223         Just beep if the document isn't available yet, since trying to save it as a file
       
  3224         really isn't a good idea.
       
  3225 
       
  3226 2007-06-12  Oliver Hunt  <oliver@apple.com>
       
  3227 
       
  3228         Reviewed by Darin.
       
  3229 
       
  3230         Use correct size for BITMAPINFOHEADER -- whoops.
       
  3231 
       
  3232         * win/WebIconDatabase.cpp:
       
  3233         (createDIB):
       
  3234         (WebIconDatabase::getOrCreateDefaultIconBitmap):
       
  3235 
       
  3236 2007-06-10  David Hyatt  <hyatt@apple.com>
       
  3237 
       
  3238         Fix for bug 14037, make sure respondsToSelector does the write thing
       
  3239         when invoked on a WebKit plugin's container view.
       
  3240 
       
  3241         Reviewed by Mark Rowe
       
  3242 
       
  3243         * Plugins/WebKitPluginContainerView.mm:
       
  3244         (-[WebKitPluginContainerView respondsToSelector:]):
       
  3245 
       
  3246 2007-06-08  John Sullivan  <sullivan@apple.com>
       
  3247 
       
  3248         * WebView/WebViewPrivate.h:
       
  3249         Added a FIXME
       
  3250 
       
  3251 2007-06-07  Justin Garcia  <justin.garcia@apple.com>
       
  3252 
       
  3253         Reviewed by Tristan.
       
  3254         
       
  3255         <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab
       
  3256 
       
  3257         * WebView/WebView.mm:
       
  3258         (-[WebView _clearUndoRedoOperations]): Added.
       
  3259         * WebView/WebViewPrivate.h:
       
  3260 
       
  3261 2007-06-07  Oliver Hunt  <oliver@apple.com>
       
  3262 
       
  3263         Reviewed by Sam "The Intern" Weinig.
       
  3264         
       
  3265         Don't be overzealous with the input checks, firstRectForCharacterRange
       
  3266         can be determined even when there is not an active editable region.
       
  3267         
       
  3268         This unbreaks editing/input/range-for-empty-document which was broken
       
  3269         by aforementioned overzealousness. 
       
  3270 
       
  3271         * WebView/WebHTMLView.mm:
       
  3272         (-[WebHTMLView firstRectForCharacterRange:]):
       
  3273 
       
  3274 2007-06-07  Oliver Hunt  <oliver@apple.com>
       
  3275 
       
  3276         Reviewed by Justin.
       
  3277         
       
  3278         Add checks to make sure we don't try to create, use
       
  3279         or return invalid ranges to TSM when it calls us despite
       
  3280         not currently being in an editable region.
       
  3281 
       
  3282         * WebView/WebHTMLView.mm:
       
  3283         (isTextInput):
       
  3284         (-[WebHTMLView textStorage]):
       
  3285         (-[WebHTMLView firstRectForCharacterRange:]):
       
  3286         (-[WebHTMLView selectedRange]):
       
  3287         (-[WebHTMLView attributedSubstringFromRange:]):
       
  3288 
       
  3289 2007-06-06  David Hyatt  <hyatt@apple.com>
       
  3290 
       
  3291         Make sure to hand back a script object for webkit plugins (the container
       
  3292         view forwards to its plugin child).
       
  3293 
       
  3294         Reviewed by sullivan
       
  3295 
       
  3296         * Plugins/WebKitPluginContainerView.h:
       
  3297         * Plugins/WebKitPluginContainerView.mm:
       
  3298         (-[WebKitPluginContainerView objectForWebScript]):
       
  3299 
       
  3300 2007-06-06  David Hyatt  <hyatt@apple.com>
       
  3301 
       
  3302         Fix for bug 13972, quicktime doesn't respect CSS clip and overflow properties.
       
  3303         Make sure that calls to [NSView visibleRect] will do the right thing for both
       
  3304         Netscape plugins and WebKit plugins.
       
  3305 
       
  3306         Reviewed by olliej
       
  3307 
       
  3308         * Plugins/WebBaseNetscapePluginView.mm:
       
  3309         (-[WebBaseNetscapePluginView visibleRect]):
       
  3310         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  3311         (-[WebBaseNetscapePluginView isOpaque]):
       
  3312         * Plugins/WebKitPluginContainerView.h: Added.
       
  3313         * Plugins/WebKitPluginContainerView.mm: Added.
       
  3314         (-[WebKitPluginContainerView initWithFrame:DOMElement:]):
       
  3315         (-[WebKitPluginContainerView dealloc]):
       
  3316         (-[WebKitPluginContainerView visibleRect]):
       
  3317         * Plugins/WebPluginController.mm:
       
  3318         (-[WebPluginController destroyAllPlugins]):
       
  3319         * WebCoreSupport/WebFrameBridge.mm:
       
  3320         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
       
  3321         * WebKit.xcodeproj/project.pbxproj:
       
  3322         * WebView/WebHTMLView.mm:
       
  3323         (-[WebHTMLView addSubview:]):
       
  3324         (-[WebHTMLView willRemoveSubview:]):
       
  3325 
       
  3326 2007-06-04  Oliver Hunt  <oliver@apple.com>
       
  3327 
       
  3328         Reviewed by Geoff and Justin.
       
  3329 
       
  3330         Fix for <rdar://problem/5246941> Clicking URL field on 
       
  3331         Safari causes halt for a minute when using input methods.
       
  3332         and <rdar://problem/5245964> Safari hangs for several 
       
  3333         seconds when trying to select text using mouse
       
  3334         
       
  3335         This is a by product of the textStorage hack used to fix 
       
  3336         rdar://problem/5000470 -- TSM calls textStorage repeatedly
       
  3337         when changing focus, on certain mouse events, etc.  If there
       
  3338         is no selection/editable region we repeatedly create an     
       
  3339         NSAttributedString from the full document.  If the document is
       
  3340         sufficiently long this starts consuming an inordinate amount of 
       
  3341         time.
       
  3342         
       
  3343         This check should really have been present in the original 
       
  3344         patch.
       
  3345 
       
  3346         * WebKit.xcodeproj/project.pbxproj:
       
  3347         * WebView/WebHTMLView.mm:
       
  3348         (-[WebHTMLView textStorage]):
       
  3349 
       
  3350 2007-05-31  David Hyatt  <hyatt@apple.com>
       
  3351 
       
  3352         Fix for 11768, Flash plugin does not respect clips set by CSS.
       
  3353 
       
  3354         Reviewed by olliej
       
  3355 
       
  3356         * Plugins/WebBaseNetscapePluginView.mm:
       
  3357         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  3358 
       
  3359 2007-05-30  Mark Rowe  <mrowe@apple.com>
       
  3360 
       
  3361         Build fixes after r21889.
       
  3362 
       
  3363         * ForwardingHeaders/kjs/function.h: Added.
       
  3364 
       
  3365 2007-05-29  Mark Rowe  <mrowe@apple.com>
       
  3366 
       
  3367         Reviewed by Geoff.
       
  3368 
       
  3369         64-bit build fix.  Ensure that use of WebNSUInteger in headers is matched by WebNSUInteger in implementations.
       
  3370 
       
  3371         * DefaultDelegates/WebScriptDebugServer.h:
       
  3372         * DefaultDelegates/WebScriptDebugServer.m:
       
  3373         (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
       
  3374         (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
       
  3375         * DefaultDelegates/WebScriptDebugServerPrivate.h:
       
  3376         * History/WebBackForwardList.mm:
       
  3377         (-[WebBackForwardList setPageCacheSize:]):
       
  3378         (-[WebBackForwardList pageCacheSize]):
       
  3379         * WebView/WebView.mm:
       
  3380         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
       
  3381 
       
  3382 2007-05-26  Darin Adler  <darin@apple.com>
       
  3383 
       
  3384         Reviewed by Tim Hatcher.
       
  3385 
       
  3386         * MigrateHeaders.make: Added dependency on this makefile itself, which is
       
  3387         useful when you change the sed command or other aspect of this file. My build
       
  3388         failed until I made this fix.
       
  3389 
       
  3390 2007-05-25  Geoffrey Garen  <ggaren@apple.com>
       
  3391 
       
  3392         Reviewed by Darin Adler.
       
  3393 
       
  3394         Fixed <rdar://problem/5055182> The page cache has no global cap.
       
  3395         
       
  3396         The main WebKit changes are:
       
  3397             1. Changed -[WebBackForwardList setPageCacheSize] and -[WebBackForwardList 
       
  3398             pageCacheSize] to accomodate the new global page cache model, updating
       
  3399             their documentation. 
       
  3400             
       
  3401             2. Added -[WebPreferences setShouldUsePageCache] and -[WebPreferences 
       
  3402             shouldUsePageCache] as pending public API.
       
  3403             
       
  3404             3. Centralized calculation of object cache and page cache sizes inside
       
  3405             WebPreferences. 
       
  3406             
       
  3407             Cchanged our old behavior of reading a preference and applying a fudge 
       
  3408             factor with a new behavior of just using the preference directly. The 
       
  3409             old behavior was confusing and often inappropriate. (For example, if 
       
  3410             you set a page cache size of 100, a 256MB machine would somewhat 
       
  3411             arbitrarily reduce that number to 98. ???)
       
  3412 
       
  3413         * WebView/WebView.mm: Added support for two flags to determine whether
       
  3414         to use the page cache. If either -[WebBackForwardList setPageCacheSize:0]
       
  3415         or -[WebPreferences setShouldUsePageCache:NO] is called, we don't use
       
  3416         the page cache.
       
  3417 
       
  3418 2007-05-25  Timothy Hatcher  <timothy@apple.com>
       
  3419 
       
  3420         Reviewed by Kevin Decker.
       
  3421 
       
  3422         <rdar://problem/5219089> Changes for migration of DictionaryServices
       
  3423 
       
  3424         * WebView/WebHTMLView.mm:
       
  3425         (-[WebHTMLView _lookUpInDictionaryFromMenu:]): look for the HIDictionaryWindowShow symbol in HIToolbox
       
  3426 
       
  3427 2007-05-25  Geoffrey Garen  <ggaren@apple.com>
       
  3428 
       
  3429         Reviewed by Oliver Hunt.
       
  3430         
       
  3431         Fixed global initializer (like you fix a dog).
       
  3432         
       
  3433         I'm not sure how our script missed this. I tested, and it generally doesn't 
       
  3434         seem to work very well.
       
  3435 
       
  3436         * WebView/WebHTMLView.mm: Allocate lazily to avoid the performance hit of
       
  3437         a global initializer.
       
  3438         (promisedDataClient):
       
  3439         (-[WebHTMLViewPrivate dealloc]):
       
  3440         (-[WebHTMLViewPrivate clear]):
       
  3441         (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
       
  3442 
       
  3443 2007-05-25  Brady Eidson  <beidson@apple.com>
       
  3444 
       
  3445         Reviewed by Darin
       
  3446 
       
  3447         <rdar://problem/5228371> - REGRESSION - Certain mail message bodies display as empty
       
  3448 
       
  3449         This is due to http://trac.webkit.org/projects/webkit/changeset/21480 which unintentionally
       
  3450         made applewebdata urls result in check.call(false) instead of check.call(true)
       
  3451 
       
  3452         Best place for a fix is to have the FrameLoaderClient::canHandleRequest() call return true, which
       
  3453         really is rooted in WebView
       
  3454 
       
  3455         <rdar://problem/5229587> tracks adding a layout test
       
  3456 
       
  3457         * WebView/WebView.mm:
       
  3458         (+[WebView _canHandleRequest:]): Return true for applewebdata URLs
       
  3459 
       
  3460 2007-05-25  Geoffrey Garen  <ggaren@apple.com>
       
  3461 
       
  3462         Reviewed by Darin Adler, Tim Hatcher.
       
  3463         
       
  3464         "unsigned" => "WebNSUInteger" in public API.
       
  3465 
       
  3466         * History/WebBackForwardList.h:
       
  3467         * WebView/WebScriptDebugDelegate.h:
       
  3468         * WebView/WebUIDelegate.h:
       
  3469         * WebView/WebViewPrivate.h:
       
  3470 
       
  3471 2007-05-25  Geoffrey Garen  <ggaren@apple.com>
       
  3472 
       
  3473         Reviewed by Darin Adler.
       
  3474         
       
  3475         Moved JavaScriptCore-related pending public API to public API.
       
  3476 
       
  3477         * MigrateHeaders.make: Hack to prevent <JavaScriptCore/JSBase.h> from 
       
  3478         automatically converting to <WebKit/JSBase.h>
       
  3479         
       
  3480         Moved -windowObject and -globalContext
       
  3481 
       
  3482         * WebView/WebFramePrivate.h: from here
       
  3483         * WebView/WebFrame.h: to here
       
  3484         * WebView/WebFrame.mm: and out of its temporary category
       
  3485 
       
  3486         Moved -didClearWindowObject:forFrame:
       
  3487 
       
  3488         * WebView/WebViewPrivate.h: from here
       
  3489         * WebView/WebFrameLoadDelegate.h: to here
       
  3490 
       
  3491 2007-05-25  John Sullivan  <sullivan@apple.com>
       
  3492 
       
  3493         Reviewed by Anders and Tim
       
  3494         
       
  3495         - fixed <rdar://problem/5226000> REGRESSION: In Gmail and Mail, a hang occurs when attempting 
       
  3496           to grammar/spellcheck a word in a reply
       
  3497 
       
  3498         * WebCoreSupport/WebEditorClient.mm:
       
  3499         (WebEditorClient::checkGrammarOfString):
       
  3500         Fixed recently-introduced false assumption that NSNotFound == -1
       
  3501 
       
  3502 2007-05-24  dethbakin  <bdakin@apple.com>
       
  3503 
       
  3504         Reviewed by Geoff.
       
  3505 
       
  3506         Fix for <rdar://problem/5023545> QuickBooks Pro 2007:hang/crash 
       
  3507         after closing QuickBooks Tutorial Center with Leopard9A377
       
  3508 
       
  3509         We can hit a race condition where drawRect will be called after the 
       
  3510         WebView has closed. Quickbooks does not properly close the WebView 
       
  3511         and set the UIDelegate to nil, so the UIDelegate is stale and we 
       
  3512         crash. This is a regression because the code that uses the 
       
  3513         UIDelegate in the drawRect code path was only added recently. The 
       
  3514         method that the UIDelegate calls into is new -- it does not exist 
       
  3515         on Tiger -- so there is no harm in not running this code for 
       
  3516         applications linked against older WebKits. Other applications may 
       
  3517         run into this same bug so I am not doing a bundle 
       
  3518         check...particularly because, as I mentioned, the new UIDelegate 
       
  3519         call would not be implemented by older clients anyway.  
       
  3520 
       
  3521         * Misc/WebKitVersionChecks.h:
       
  3522         * WebView/WebHTMLView.mm:
       
  3523         (-[WebHTMLView drawSingleRect:]):
       
  3524 
       
  3525 2007-05-24  Darin Adler  <darin@apple.com>
       
  3526 
       
  3527         * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
       
  3528 
       
  3529 2007-05-24  Oliver Hunt  <oliver@apple.com>
       
  3530 
       
  3531         Reviewed by Adam, Darin, and Geoff.
       
  3532 
       
  3533         Fix for <rdar://problem/5000470> REGRESSION: The IM reconvert
       
  3534         function returns incorrect symbol due to inconsistent range
       
  3535         domains in TSM
       
  3536 
       
  3537         Text Services Management uses ranges provided by the
       
  3538         NSTextInput API to index into the string return by
       
  3539         -[WebHTMLView string]. As a result some input methods
       
  3540         incorrectly get their candidate text from the beginning
       
  3541         of the document instead of from the input element.
       
  3542 
       
  3543         TSM prefers to query -textStorage over -string so as a
       
  3544         workaround we provide an implementation of -textStorage that
       
  3545         returns the content of the current text input.  TSM only ever
       
  3546         queries the result of textStorage as an NSAttributedString so
       
  3547         we do not need to implement a fake NSTextStorage class
       
  3548 
       
  3549         This should not cause harm to anything else as textStorage is
       
  3550         actually a method on NSTextView, which we clearly are not. TSM
       
  3551         only queries the method because it uses respondsToSelector to
       
  3552         control behaviour.
       
  3553 
       
  3554         * WebView/WebHTMLView.mm:
       
  3555         (-[WebHTMLView textStorage]):
       
  3556 
       
  3557 
       
  3558 2007-05-24  David Harrison  <harrison@apple.com>
       
  3559 
       
  3560         Reviewed by Tim Hatcher.
       
  3561 
       
  3562         <rdar://problem/5225343> REGRESSION: With View Source window opened, navigating to a different URL in the browser window results in a crash at WebCore::FrameLoader::frameHasLoaded()
       
  3563         
       
  3564         _private->loader->frameLoader() was not being nil checked.
       
  3565         * WebView/WebDataSource.mm:
       
  3566         (-[WebDataSource request]):
       
  3567         Add nil check for _private->loader->frameLoader() 
       
  3568 
       
  3569 2007-05-23  Anders Carlsson  <andersca@apple.com>
       
  3570 
       
  3571         Reviewed by Geoff.
       
  3572 
       
  3573         <rdar://problem/3663808> Resize large images to fit in the browser window
       
  3574         
       
  3575         Add new WebPreferences SPI.
       
  3576         
       
  3577         * WebView/WebPreferenceKeysPrivate.h:
       
  3578         * WebView/WebPreferences.m:
       
  3579         (+[WebPreferences initialize]):
       
  3580         (-[WebPreferences enableAutomaticImageResizing]):
       
  3581         (-[WebPreferences setEnableAutomaticImageResizing:]):
       
  3582         * WebView/WebPreferencesPrivate.h:
       
  3583         * WebView/WebView.mm:
       
  3584         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  3585 
       
  3586 2007-05-23  Sam Weinig  <sam@webkit.org>
       
  3587 
       
  3588         Reviewed by Darin.
       
  3589 
       
  3590         Patch for http://bugs.webkit.org/show_bug.cgi?id=13830
       
  3591         Auto-generate JS DOM bindings for HTMLDocument and most of the rest
       
  3592         of HTMLElement
       
  3593 
       
  3594         * MigrateHeaders.make: add DOMHTMLDocumentPrivate.h
       
  3595         * WebKit.xcodeproj/project.pbxproj:
       
  3596 
       
  3597 2007-05-23  Oliver Hunt  <oliver@apple.com>
       
  3598 
       
  3599         Reviewed by Geoff.
       
  3600 
       
  3601         Fix for <rdar://problem/5223782> REGRESSION: Can't drag and drop a standalone image
       
  3602 
       
  3603         The main resource for a standalone image webarchive has the same mimetype as the
       
  3604         underlying image.
       
  3605 
       
  3606         * Misc/WebNSPasteboardExtras.mm:
       
  3607         (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
       
  3608 
       
  3609 2007-05-22  Sam Weinig  <sam@webkit.org>
       
  3610 
       
  3611         Reviewed by Adam.
       
  3612 
       
  3613         Patch for http://bugs.webkit.org/show_bug.cgi?id=13833
       
  3614         Add ObjC DOM binding for HTMLMarqeeElement
       
  3615 
       
  3616         - Also adds missing DOMHTMLFramePrivate.
       
  3617 
       
  3618         * MigrateHeaders.make:
       
  3619 
       
  3620 2007-05-22  Darin Adler  <darin@apple.com>
       
  3621 
       
  3622         Reviewed by Geoff.
       
  3623 
       
  3624         * WebInspector/webInspector/treeoutline.js: Use ownerDocument instead of non-standard
       
  3625         document property.
       
  3626 
       
  3627 2007-05-22  Adele Peterson  <adele@apple.com>
       
  3628 
       
  3629         Reviewed by Darin.
       
  3630 
       
  3631         Adding some asserts to help detect other cases of <rdar://problem/5171145>
       
  3632 
       
  3633         * WebCoreSupport/WebFrameBridge.mm: (-[WebFrameBridge makeFirstResponder:]):
       
  3634 
       
  3635 2007-05-22  Brady Eidson  <beidson@apple.com>
       
  3636 
       
  3637         Reviewed by Kevin (Sarge)
       
  3638 
       
  3639         <rdar://problem/5219885> - Crash after closing a inline popup ad at http://news.yahoo.com/
       
  3640 
       
  3641         This regressed in http://trac.webkit.org/projects/webkit/changeset/21618
       
  3642 
       
  3643         * WebView/WebFrame.mm:
       
  3644         (-[WebFrame dataSource]): Null check the frameloader
       
  3645 
       
  3646 2007-05-21  Adele Peterson  <adele@apple.com>
       
  3647 
       
  3648         Fix by Darin, reviewed by me.
       
  3649 
       
  3650         Fix for <rdar://problem/5171145> Safari crashed closing tab in NSInputContext updateInputContexts
       
  3651 
       
  3652         * WebView/WebFrameView.mm: (-[WebFrameView _setDocumentView:]): If the old view is the first responder,
       
  3653         then set the window's first responder to nil so we don't leave the window pointing to a view that's no longer in it.
       
  3654 
       
  3655 2007-05-21  Brady Eidson  <beidson@apple.com>
       
  3656 
       
  3657         Making the importance of my last change more clear
       
  3658 
       
  3659         * WebView/WebViewPrivate.h: "Leave for Dashboard, people!"
       
  3660 
       
  3661 2007-05-21  Brady Eidson  <beidson@apple.com>
       
  3662 
       
  3663         Reviewed by Kevin (Sarge)
       
  3664 
       
  3665         <rdar://problem/5217124> - Re-add mistakenly removed SPI
       
  3666 
       
  3667         * WebView/WebView.mm:
       
  3668         (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]):
       
  3669         * WebView/WebViewPrivate.h:
       
  3670 
       
  3671 2007-05-21  Anders Carlsson  <andersca@apple.com>
       
  3672 
       
  3673         Reviewed by Ada.
       
  3674 
       
  3675         <rdar://problem/5200816> REGRESSION: With Shiira 1.2.2 , I can't open embedded link in flash object by clicking (http:/www.adobe.com )
       
  3676         
       
  3677         Null check the request.
       
  3678         
       
  3679         * WebView/WebView.mm:
       
  3680         (+[WebView _canHandleRequest:]):
       
  3681 
       
  3682 2007-05-19  Maciej Stachowiak  <mjs@apple.com>
       
  3683 
       
  3684         Reviewed by Geoff.
       
  3685         
       
  3686         <rdar://problem/5205358> REGRESSION (r21367): All messages appear entirely blank when running Mail off of tip of tree WebKit
       
  3687         
       
  3688         The fix is to return nil from [WebFrame dataSource] when it has not loaded anything but the fake
       
  3689         empty initial document. However, WebKit still needs the real data source internally, so I also
       
  3690         added a [WebFrame _dataSource] method that skips this check, and made WebKit use it throughout.
       
  3691 
       
  3692         * Misc/WebNSAttributedStringExtras.mm:
       
  3693         (fileWrapperForElement):
       
  3694         * Plugins/WebBaseNetscapePluginView.mm:
       
  3695         (-[WebBaseNetscapePluginView dataSource]):
       
  3696         * Plugins/WebNullPluginView.mm:
       
  3697         (-[WebNullPluginView viewDidMoveToWindow]):
       
  3698         * Plugins/WebPluginController.mm:
       
  3699         (-[WebPluginController URLPolicyCheckReferrer]):
       
  3700         * WebCoreSupport/WebFrameBridge.mm:
       
  3701         (-[WebFrameBridge dataSource]):
       
  3702         (-[WebFrameBridge redirectDataToPlugin:]):
       
  3703         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  3704         (WebFrameLoaderClient::makeDocumentView):
       
  3705         (WebFrameLoaderClient::forceLayoutForNonHTML):
       
  3706         (WebFrameLoaderClient::prepareForDataSourceReplacement):
       
  3707         (WebFrameLoaderClient::canCachePage):
       
  3708         * WebCoreSupport/WebViewFactory.mm:
       
  3709         (-[WebViewFactory bridgeForView:]):
       
  3710         * WebKit.xcodeproj/project.pbxproj:
       
  3711         * WebView/WebArchiver.mm:
       
  3712         (+[WebArchiver archiveFrame:]):
       
  3713         (+[WebArchiver archiveMainResourceForFrame:]):
       
  3714         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
       
  3715         (+[WebArchiver archiveSelectionInFrame:]):
       
  3716         * WebView/WebFrame.mm:
       
  3717         (-[WebFrame _loadURL:referrer:intoChild:]):
       
  3718         (-[WebFrame _addChild:]):
       
  3719         (-[WebFrame _dataSource]):
       
  3720         (-[WebFrame DOMDocument]):
       
  3721         (-[WebFrame dataSource]):
       
  3722         * WebView/WebFrameInternal.h:
       
  3723         * WebView/WebHTMLView.mm:
       
  3724         (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
       
  3725         * WebView/WebRenderNode.mm:
       
  3726         (-[WebRenderNode initWithWebFrameView:]):
       
  3727         * WebView/WebView.mm:
       
  3728         (-[WebView _mainFrameOverrideEncoding]):
       
  3729         (-[WebView mainFrameURL]):
       
  3730         (-[WebView mainFrameTitle]):
       
  3731         (-[WebView mainFrameIcon]):
       
  3732         (-[WebView validateUserInterfaceItemWithoutDelegate:]):
       
  3733         (-[WebView replaceSelectionWithArchive:]):
       
  3734         (-[WebView _isLoading]):
       
  3735         (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
       
  3736         (-[WebView _notifyTextSizeMultiplierChanged]):
       
  3737 
       
  3738 2007-05-18  Oliver Hunt  <oliver@apple.com>
       
  3739 
       
  3740         Reviewed by Sam.
       
  3741 
       
  3742         Fix for http://bugs.webkit.org/show_bug.cgi?id=13782 
       
  3743         REGRESSION (r21528-r21533): Failing editing/selection/drag-in-iframe in pixel mode
       
  3744         
       
  3745         r21533 made used a DOMElement as the source for promise data, this meant it had to 
       
  3746         clear the dragging pasteboard following the drag.  In DRT a drag is non-blocking
       
  3747         so this resulted in us prematurely clearing the pasteboard.  
       
  3748         
       
  3749         This patch avoids this problem by referencing the source CachedImage rather than the
       
  3750         DOMElement, so we don't need to worry about retaining an entire document forever, so
       
  3751         we don't need to clear the dragging pasteboard following the drag.
       
  3752         
       
  3753         * Misc/WebNSPasteboardExtras.mm:
       
  3754         (imageFromElement):
       
  3755           Extract the underlying CachedImage from a DOMElement
       
  3756         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
       
  3757           Use a CachedImage instead of a DOMElement
       
  3758           
       
  3759         * WebCoreSupport/WebDragClient.mm:
       
  3760         (WebDragClient::startDrag):
       
  3761         
       
  3762         * WebKit.xcodeproj/project.pbxproj:
       
  3763         
       
  3764         * WebView/WebHTMLView.mm:
       
  3765         (-[WebHTMLViewPrivate dealloc]):
       
  3766         (-[WebHTMLViewPrivate clear]):
       
  3767         (-[WebHTMLView pasteboardChangedOwner:]):
       
  3768         (-[WebHTMLView pasteboard:provideDataForType:]):
       
  3769         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
  3770         (-[WebHTMLView WebCore::]):
       
  3771         (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
       
  3772           Use CachedImage rather than DOMElement as promised data source
       
  3773           
       
  3774         * WebView/WebHTMLViewInternal.h:
       
  3775         * WebView/WebHTMLViewPrivate.h:
       
  3776 
       
  3777 2007-05-18  Tristan O'Tierney  <tristan@apple.com>
       
  3778 
       
  3779         Reviewed by Brady E.
       
  3780 
       
  3781         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  3782         (WebFrameLoaderClient::download):
       
  3783         asked the webframeloaderclient for its webview's history and 
       
  3784         injected the originated url into the created WebDownload
       
  3785 
       
  3786 2007-05-18  John Sullivan  <sullivan@apple.com>
       
  3787 
       
  3788         Reviewed by Kevin Decker
       
  3789         
       
  3790         Improvement to WebKit part of fix for 5201499 based on more modern understanding. (That is,
       
  3791         a couple of hours more modern.)
       
  3792 
       
  3793         * WebView/WebUIDelegatePrivate.h:
       
  3794         add showPanel: parameter to just-introduced delegate method webView:saveFrameView:
       
  3795 
       
  3796         * WebView/WebPDFView.mm:
       
  3797         (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
       
  3798         pass NO for new showPanel: parameter, and update comment
       
  3799 
       
  3800 2007-05-18  Maciej Stachowiak  <mjs@apple.com>
       
  3801 
       
  3802         Reviewed by John.
       
  3803         
       
  3804         <rdar://problem/5204792> REGRESSION (r21367): System widgets are drawn with vertical/horizontal scroll bars
       
  3805         
       
  3806         No test because the bug requires calling setAllowsScrolling: to reproduce.
       
  3807 
       
  3808         * WebView/WebFrameView.mm:
       
  3809         (-[WebFrameView setAllowsScrolling:]): Update the FrameView's scroll state as well as the one
       
  3810         on WebDynamicScrollBarsView, otherwise this setting won't stick if the frame has already loaded
       
  3811         a document.
       
  3812 
       
  3813 2007-05-18  Geoffrey Garen  <ggaren@apple.com>
       
  3814 
       
  3815         Fixed spelling error.
       
  3816         
       
  3817         * WebView/WebViewPrivate.h:
       
  3818 
       
  3819 2007-05-18  John Sullivan  <sullivan@apple.com>
       
  3820 
       
  3821         Reviewed by Kevin Decker
       
  3822         
       
  3823         WebKit part of fix for 5201499 (support for PDFKit UI for saving PDFs to disk)
       
  3824         
       
  3825         Also, the PDFKit mechanism for notifying clients about "Open File Externally" was
       
  3826         changed from a notification to a delegate method. The notification was new to 
       
  3827         Leopard, so removing it doesn't affect clients in the field.
       
  3828 
       
  3829         * WebView/WebUIDelegatePrivate.h:
       
  3830         Declared new UI delegate method webView:saveFrameView:, analogous to the existing
       
  3831         webView:printFrameView:
       
  3832 
       
  3833         * WebView/WebPDFView.mm:
       
  3834         removed declaration of _webkit_PDFKitLaunchNotification
       
  3835         (-[WebPDFView viewDidMoveToWindow]):
       
  3836         don't observe _webkit_PDFKitLaunchNotification
       
  3837         (-[WebPDFView viewWillMoveToWindow:]):
       
  3838         ditto
       
  3839         (-[WebPDFView PDFViewOpenPDFInNativeApplication:]):
       
  3840         new PDFKit delegate method, replaces our use of _webkit_PDFKitLaunchNotification
       
  3841         (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
       
  3842         new PDFKit delegate method, calls through to new WebKit UI delegate method
       
  3843         
       
  3844 2007-05-17  Oliver Hunt  <oliver@apple.com>
       
  3845 
       
  3846         Reviewed by Justin.
       
  3847 
       
  3848         Fix for <rdar://problem/4244861> Safari fails to create image file
       
  3849         after releasing dragged image that has changed on source page
       
  3850 
       
  3851         This patch fixes this bug by manually creating an NSFileWrapper from
       
  3852         the TIFF promise data for a drag if it is available.  This bypasses
       
  3853         the problem of the required resource no longer being held due to page
       
  3854         loads or other constraints.
       
  3855         
       
  3856         We need to leave the old path in place to allow for the case where
       
  3857         the promised data is not available.
       
  3858 
       
  3859         * WebCoreSupport/WebDragClient.mm:
       
  3860         (WebDragClient::declareAndWriteDragImage):
       
  3861           Always use the top WebHTMLView as the pasteboard owner, this is
       
  3862           safe as we only use the owner for resolving promised types.
       
  3863         * WebView/WebHTMLView.mm:
       
  3864         (-[WebHTMLView _writeSelectionToPasteboard:]):
       
  3865         (-[WebHTMLView writeSelectionToPasteboard:types:]):
       
  3866           Always use the top WebHTMLView as the pasteboard owner.
       
  3867         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
  3868           Add path to create NSFileWrapper from promise data.
       
  3869 
       
  3870 2007-05-17  Oliver Hunt  <oliver@apple.com>
       
  3871 
       
  3872         Reviewed by Adam.
       
  3873         
       
  3874         Fix for <rdar://problem/4343832> Trying to drag a large 6.2MB jpeg image
       
  3875          out of Safari is unexpectedly slow (4 copies of image plus RTF document on pasteboard)
       
  3876          
       
  3877         This patch causes the construction of the RTF and TIFF data to be delayed until requested.
       
  3878         
       
  3879         We delay TIFF construction from a DOMElement as this may require generating TIFF data
       
  3880         from the CachedImage, which is slow.  To allow the TIFF data to be created later the 
       
  3881         it's necessary to add a reference to the source DOMElement to the view.
       
  3882 
       
  3883         * Misc/WebNSPasteboardExtras.h:
       
  3884         * Misc/WebNSPasteboardExtras.mm:
       
  3885         (-[NSPasteboard _web_writePromisedRTFDFromArchive:containsImage:]):
       
  3886           Implements the delayed write of RTF data
       
  3887         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
       
  3888           Set up the pasteboard to allow the data writing to be delayed
       
  3889         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
       
  3890           Now we need to pass the WebHTMLView on to _web_writeImage:element:URL:title:archive:types:source:
       
  3891         * WebCoreSupport/WebDragClient.mm:
       
  3892         (WebDragClient::startDrag):
       
  3893           Clear the dragging pasteboard once the drag has ended to ensure we don't hold references
       
  3894           to anything longer than we need to.
       
  3895         (WebDragClient::declareAndWriteDragImage):
       
  3896           
       
  3897         * WebView/WebHTMLView.mm:
       
  3898         (-[WebHTMLViewPrivate dealloc]):
       
  3899         (-[WebHTMLViewPrivate clear]):
       
  3900         (-[WebHTMLView pasteboardChangedOwner:]):
       
  3901           Make sure we clear out the DOMElement reference once it is no longer needed
       
  3902         (-[WebHTMLView pasteboard:provideDataForType:]):
       
  3903           Provide delayed data
       
  3904         (-[WebHTMLView _writeSelectionToPasteboard:]):
       
  3905           Make sure we set pasteboard ownership correctly
       
  3906         (-[WebHTMLView promisedDragTIFFDataSource]):
       
  3907         (-[WebHTMLView setPromisedDragTIFFDataSource:]):
       
  3908         (-[WebHTMLView writeSelectionToPasteboard:types:]):
       
  3909         * WebView/WebHTMLViewInternal.h:
       
  3910         * WebView/WebHTMLViewPrivate.h:
       
  3911         
       
  3912         * WebView/WebView.mm:
       
  3913         (-[WebView _writeImageForElement:withPasteboardTypes:toPasteboard:]):
       
  3914 
       
  3915 2007-05-16  Anders Carlsson  <andersca@apple.com>
       
  3916 
       
  3917         Reviewed by Darin.
       
  3918 
       
  3919         <rdar://problem/5207156> Hamachi test tool causes assertion in FormCompletionController in Safari
       
  3920 
       
  3921         Update for WebCore changes.
       
  3922         
       
  3923         * WebView/WebFrame.mm:
       
  3924         (-[WebFrame _loadURL:referrer:intoChild:]):
       
  3925 
       
  3926 2007-05-15  Oliver Hunt  <oliver@apple.com>
       
  3927 
       
  3928         Reviewed by Sam and Geoff.
       
  3929         
       
  3930         Removing dead code left behind from drag and drop refactoring.
       
  3931 
       
  3932         * WebCoreSupport/WebFrameBridge.mm:
       
  3933         * WebView/WebHTMLView.mm:
       
  3934         * WebView/WebHTMLViewPrivate.h:
       
  3935 
       
  3936 2007-05-15  Bruce Q Hammond  <bruceq@apple.com>
       
  3937 
       
  3938         Reviewed by Darin.
       
  3939 
       
  3940         Correction of previous patch for http://bugs.webkit.org/show_bug.cgi?id=13578
       
  3941         This corrects the sign of the Y-Axis origin adjustment.
       
  3942 
       
  3943         * Plugins/WebBaseNetscapePluginView.mm:
       
  3944         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  3945 
       
  3946 2007-05-15  Geoffrey Garen  <ggaren@apple.com>
       
  3947 
       
  3948         Reviewed by Maciej Stachowiak.
       
  3949         
       
  3950         Patch: fixed <rdar://problem/5198890> .5% performance regression caused 
       
  3951         by r21307
       
  3952         
       
  3953         The only code r21307 added that runs during the PLT is a frame load delegate
       
  3954         -respondsToSelector: call inside windowObjectCleared(), so it seems like 
       
  3955         our message dispatch overhead for the frame load delegate is significant.
       
  3956         
       
  3957         This patch is a straight port of Maciej's fix for the same problem in the
       
  3958         resource load delegate. The solution is simple enough: don't use Objective-C. 
       
  3959         Instead, use a special structure that caches which methods the delegate 
       
  3960         implements, along with pointers to those methods.
       
  3961         
       
  3962         I verified each frame load delegate callback in the debugger, except for
       
  3963         -webView:didFailLoadWithError:forFrame:, which is not implemented by Safari
       
  3964         or DumpRenderTree.
       
  3965 
       
  3966         * WebKit/DefaultDelegates/WebDefaultFrameLoadDelegate.h: Removed.
       
  3967         * WebKit/DefaultDelegates/WebDefaultFrameLoadDelegate.m: Removed.
       
  3968 
       
  3969         * WebCoreSupport/WebFrameBridge.mm:
       
  3970         (-[WebFrameBridge windowObjectCleared]): I also removed a misleading 
       
  3971         comment here. The JS debugger caches the windowScriptObject, so you do
       
  3972         need to re-create the debugger every time you invalidate the old 
       
  3973         WebScriptObject wrapper for the window object and create a new one, or
       
  3974         the debugger will stop working. We could fix this in a number of ways, 
       
  3975         but <rdar://problem/4608404> is not the key issue.
       
  3976 
       
  3977 2007-05-15  Maciej Stachowiak  <mjs@apple.com>
       
  3978 
       
  3979         Reviewed by Hyatt and Lars.
       
  3980         
       
  3981         - fixed <rdar://problem/5201758> REGRESSION: Stop button enabled and other problems caused by [WebView currentURL] returning non-nil for empty window
       
  3982         
       
  3983         * WebView/WebDataSource.mm:
       
  3984         (-[WebDataSource request]): Return nil when we are still showing the initial empty doc
       
  3985 
       
  3986 2007-05-14  Geoffrey Garen  <ggaren@apple.com>
       
  3987 
       
  3988         Reviewed by Darin Adler.
       
  3989         
       
  3990         Updated for WebCore move to PageCache singleton. Also removed some WebCore::
       
  3991         prefixes and replaced them with 'using namespace WebCore'.
       
  3992 
       
  3993         * History/WebHistoryItem.mm:
       
  3994         (+[WebHistoryItem _releaseAllPendingPageCaches]):
       
  3995         (-[WebWindowWatcher windowWillClose:]):
       
  3996 
       
  3997 2007-05-13  Darin Adler  <darin@apple.com>
       
  3998 
       
  3999         - one more retain/release for a tiny bit more robustness
       
  4000 
       
  4001         * WebView/WebPDFView.mm:
       
  4002         (-[WebPDFView _updatePreferences:]): [prefs release]
       
  4003         (-[WebPDFView _updatePreferencesSoon]): [prefs retain]
       
  4004 
       
  4005 2007-05-13  Darin Adler  <darin@apple.com>
       
  4006 
       
  4007         Reviewed by Geoff.
       
  4008 
       
  4009         - fix <rdar://problem/5188400> Webkit crashes going back from PDF at perl.org site
       
  4010 
       
  4011         * WebView/WebPDFView.h: Replace _updatePreferencesTimer with _willUpdatePreferencesSoon BOOL.
       
  4012         Also remove unneeded @public that gives other classes access to our dataSource member.
       
  4013 
       
  4014         * WebView/WebPDFView.mm: Rearrange top of file a bit, remove forward declaration of the
       
  4015         _cancelUpdatePreferencesTimer method.
       
  4016         (-[WebPDFView dealloc]): Removed call to _cancelUpdatePreferencesTimer.
       
  4017         (-[WebPDFView _updatePreferencesNow:]): Added WebPreferences parameter. This sidesteps problems
       
  4018         where the dataSource is no longer present by not looking at the dataSource field at all.
       
  4019         Also removed the call to _cancelUpdatePreferencesTimer, added code to set _willUpdatePreferencesSoon
       
  4020         to NO and added a release to balance a retain I did in _updatePreferencesSoon.
       
  4021         (-[WebPDFView _updatePreferencesSoon]): Changed to use performSelectorAfterDelay instead of
       
  4022         an NSTimer. Pass in the preferences object as a parameter, since we might not be able to get to
       
  4023         the dataSource when the timer fires.
       
  4024 
       
  4025 2007-05-10  Geoffrey Garen  <ggaren@apple.com>
       
  4026 
       
  4027         Reviewed by Darin Adler.
       
  4028         
       
  4029         "IconDatabase::sharedIconDatabase()" => "iconDatabase()" for terseness.
       
  4030 
       
  4031 2007-05-10  Adele Peterson  <adele@apple.com>
       
  4032 
       
  4033         Reviewed by Hyatt.
       
  4034 
       
  4035         WebKit part of fix for <rdar://problem/4100616> Doing a "find" in RSS doesn't scroll to result
       
  4036 
       
  4037         Updated to use selectionRect instead of visibleSelectionRect.  selectionRect() now returns the visible rect by default.
       
  4038 
       
  4039         * WebView/WebHTMLView.mm:
       
  4040         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
  4041         (-[WebHTMLView selectionImageRect]):
       
  4042 
       
  4043 2007-05-10  dethbakin  <bdakin@apple.com>
       
  4044 
       
  4045         Reviewed by Darin.
       
  4046 
       
  4047         Fix for <rdar://problem/5191941> Leopard: Adobe Acrobat 8: 
       
  4048         Distiller 8 needs same check fix as 4992521
       
  4049 
       
  4050         * WebView/WebView.mm:
       
  4051         (-[WebView _updateWebCoreSettingsFromPreferences:]): Adobe 
       
  4052         Distiller needs the same quirk.
       
  4053 
       
  4054 2007-05-10  Maciej Stachowiak  <mjs@apple.com>
       
  4055 
       
  4056         Reviewed by Oliver.
       
  4057 
       
  4058         - WebKit part of fix for:
       
  4059         <rdar://problem/5063277> blank screen after login to Citibank Online (accessing document before frame starts loading cancels load)
       
  4060         <rdar://problem/5159541> REGRESSION (r20972): Wall Street Journal pages replaced by advertisements (13465)
       
  4061 
       
  4062         The basic approach is to have Frames start out containing an empty document instead of absolutely nothing,
       
  4063         so there is no need to initialize them on demand. Various side effects of that cause both of these bugs.
       
  4064         
       
  4065         However, this caused many regressions so I had to fix the fallout.
       
  4066 
       
  4067         * WebCoreSupport/WebChromeClient.mm:
       
  4068         (WebChromeClient::takeFocus): Avoid focus cycle problems (can happen in DumpRenderTree
       
  4069         with initial empty document now).
       
  4070         * WebCoreSupport/WebFrameBridge.mm:
       
  4071         (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]): init the frame.
       
  4072         (-[WebFrameBridge determineObjectFromMIMEType:URL:]): return image type when appropriate
       
  4073         * WebView/WebFrame.mm:
       
  4074         (-[WebFrame stopLoading]): use stopForUserCancel().
       
  4075         * WebView/WebFrameView.mm:
       
  4076         (-[WebFrameView _makeDocumentViewForDataSource:]): assume html when no mime type available.
       
  4077         * WebView/WebView.mm:
       
  4078         (-[WebView becomeFirstResponder]): Track whether we are becoming first responder from
       
  4079         outside the view.
       
  4080         (-[WebView _becomingFirstResponderFromOutside]): Return this value.
       
  4081         * WebView/WebViewInternal.h:
       
  4082 
       
  4083 2007-05-09  Oliver Hunt  <oliver@apple.com>
       
  4084 
       
  4085         rs=Adele.
       
  4086 
       
  4087         The previous patch (r21346) broke editing, rolling out
       
  4088 
       
  4089         * WebView/WebHTMLView.mm:
       
  4090         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  4091         (-[WebHTMLView doCommandBySelector:]):
       
  4092 
       
  4093 2007-05-09  Adele Peterson  <adele@apple.com>
       
  4094 
       
  4095         Reviewed by Oliver.
       
  4096         
       
  4097         Re-applying fix for <rdar://problem/5107538> REGRESSION: Page scroll when selecting characters from inline input candidate window by arrow buttons
       
  4098         http://bugs.webkit.org/show_bug.cgi?id=13263
       
  4099         
       
  4100         We don't need to call interpretKeyEvents for cmd-key events as
       
  4101         they events will be interpreted by performKeyEquivalent.
       
  4102 
       
  4103         * WebView/WebHTMLView.mm:
       
  4104         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  4105         (-[WebHTMLView doCommandBySelector:]):
       
  4106 
       
  4107 2007-05-09  Mark Rowe  <mrowe@apple.com>
       
  4108 
       
  4109         Build fix to keep the buildbot happy.
       
  4110 
       
  4111         * Plugins/WebBaseNetscapePluginView.mm:
       
  4112         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  4113 
       
  4114 2007-05-08  Bruce Q Hammond  <bruceq@apple.com>
       
  4115 
       
  4116         Reviewed by Darin.
       
  4117 
       
  4118         http://bugs.webkit.org/show_bug.cgi?id=13578
       
  4119         Bug 13578: When QD plugins draw to an offscreen bitmap the origin is not correct
       
  4120 
       
  4121         Now we have correct handling of the origin when QD plugins draw to
       
  4122         offscreen bitmaps.
       
  4123         Also the clipping code for this path was doing unnecessary work which
       
  4124         caused incorrect results; it has been removed.
       
  4125         
       
  4126         This change should not affect Safari and in general will only affect
       
  4127         plugins (e.g. Flash) drawing to a CGBitmapContext.
       
  4128 
       
  4129         * Plugins/WebBaseNetscapePluginView.mm:
       
  4130         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  4131 
       
  4132 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
       
  4133 
       
  4134         Reviewed by Darin.
       
  4135 
       
  4136         Implemented spelling/grammar related WebEditorClient methods.
       
  4137 
       
  4138         * WebCoreSupport/WebEditorClient.h:
       
  4139         * WebCoreSupport/WebEditorClient.mm:
       
  4140         (WebEditorClient::ignoreWordInSpellDocument): Added. Call through to NSSpellChecker.
       
  4141         (WebEditorClient::learnWord): Added. Call through to NSSpellChecker.
       
  4142         (WebEditorClient::checkSpellingOfString): Added. Call through to NSSpellChecker.
       
  4143         (WebEditorClient::checkGrammarOfString): Added. Call through to NSSpellChecker.
       
  4144         (WebEditorClient::updateSpellingUIWithGrammarString): Added. Call through to NSSpellChecker.
       
  4145         (WebEditorClient::updateSpellingUIWithMisspelledWord): Added. Call through to NSSpellChecker.
       
  4146         (WebEditorClient::showSpellingUI): Added. Call through to NSSpellChecker.
       
  4147         (WebEditorClient::spellingUIIsShowing): Added. Call through to NSSpellChecker.
       
  4148         (WebEditorClient::getGuessesForWord): Added. Call through to NSSpellChecker.
       
  4149 
       
  4150 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
       
  4151 
       
  4152         Reviewed by Ada.
       
  4153 
       
  4154         Slight modification to last editor method fix.
       
  4155 
       
  4156         * WebCoreSupport/WebEditorClient.h:
       
  4157         (WebEditorClient::updateSpellingUIWithGrammarString):
       
  4158 
       
  4159 2007-05-07  Geoffrey Garen  <ggaren@apple.com>
       
  4160 
       
  4161         Reviewed by Maciej Stachowiak.
       
  4162         
       
  4163         Fixed <rdar://problem/5140447> API for fetching JSGlobalContextRef from 
       
  4164         WebView or WebFrame
       
  4165         
       
  4166         Added -[WebFrame windowObject] and -[WebFrame globalContext], along with
       
  4167         a new frame load delegate method, - (void)webView:(WebView *)webView 
       
  4168         didClearWindowObject:(WebScriptObject *)windowObject forFrame:(WebFrame *)frame.
       
  4169         This is all to support briding between the WebScriptObject and JavaScriptCore
       
  4170         APIs.
       
  4171 
       
  4172         Also fixed more of <rdar://problem/4395622> API: WebScriptObject.h incorrectly 
       
  4173         reports that -isSelectorExcludedFromWebScript returns NO by default, and
       
  4174         generally cleaned up the WebScriptObject headerdoc.
       
  4175 
       
  4176         * WebCoreSupport/WebFrameBridge.mm:
       
  4177         (-[WebFrameBridge windowObjectCleared]):
       
  4178         * WebView/WebFrame.mm:
       
  4179         (-[WebFrame windowObject]):
       
  4180         (-[WebFrame globalContext]):
       
  4181         * WebView/WebFramePrivate.h:
       
  4182         * WebView/WebViewPrivate.h:
       
  4183 
       
  4184 2007-05-07  Timothy Hatcher  <timothy@apple.com>
       
  4185 
       
  4186         Reviewed by Darin.
       
  4187 
       
  4188         <rdar://problem/5180384> webView:validateUserInterfaceItem:defaultValidation: does not get called on WebUIDelegates
       
  4189 
       
  4190         Call the delegate when the one of our views gets a validateUserInterfaceItem: call.
       
  4191 
       
  4192         * WebView/WebHTMLView.mm:
       
  4193         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
       
  4194         (-[WebHTMLView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
       
  4195         * WebView/WebPDFView.mm:
       
  4196         (-[WebPDFView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
       
  4197         (-[WebPDFView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
       
  4198         * WebView/WebView.mm:
       
  4199         (-[WebView _responderValidateUserInterfaceItem:]): Call validateUserInterfaceItemWithoutDelegate: to prevent asking the delegate twice.
       
  4200         (-[WebView validateUserInterfaceItemWithoutDelegate:]): Validate without the delegate.
       
  4201         (-[WebView validateUserInterfaceItem:]): Call the delegate with the result of validateUserInterfaceItemWithoutDelegate:.
       
  4202 
       
  4203 2007-05-07  Brady Eidson  <beidson@apple.com>
       
  4204 
       
  4205         Actually finish the code move from my last checkin
       
  4206 
       
  4207         * History/WebHistoryItem.mm:
       
  4208         (-[WebHistoryItem _transientPropertyForKey:]):
       
  4209         (-[WebHistoryItem _setTransientProperty:forKey:]):
       
  4210 
       
  4211 2007-05-07  Brady Eidson  <beidson@apple.com>
       
  4212 
       
  4213         Rubberstamped by Kevin (Sarge)
       
  4214 
       
  4215         Make _transientPropertyForKey: and _setTransientProperty:forKey: SPI
       
  4216 
       
  4217         * History/WebHistoryItemInternal.h:
       
  4218         * History/WebHistoryItemPrivate.h:
       
  4219 
       
  4220 2007-05-04  Geoffrey Garen  <ggaren@apple.com>
       
  4221 
       
  4222         Reviewed by Tim Hatcher.
       
  4223 
       
  4224         First step in fixing <rdar://problem/5055182> The back cache has no global cap
       
  4225 
       
  4226         Stop giving SnapBack infinite cache-ability. Instead, make SnapBack rely
       
  4227         on the underlying back cache.
       
  4228         
       
  4229         I left -setAlwaysAttemptToUsePageCache: as an empty stub because we don't 
       
  4230         want to break Safari 2.0, but I removed its header declaration so nobody 
       
  4231         else starts using it.
       
  4232 
       
  4233         * History/WebHistoryItem.mm:
       
  4234         (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
       
  4235         * History/WebHistoryItemPrivate.h:
       
  4236 
       
  4237 2007-05-04  Geoffrey Garen  <ggaren@apple.com>
       
  4238 
       
  4239         Reviewed by Brady Eidson.
       
  4240         
       
  4241         Some cleanup in preparation for fixing <rdar://problem/5055182> The 
       
  4242         back/forward cache has no global cap
       
  4243         
       
  4244         Unified naming of WebKit/WebCore b/f lists -- instead of the potpourri 
       
  4245         of webBackForwardList, backForwardList, list, kitList, coreList, listWrapper, 
       
  4246         and webCoreBackForwardList, we use webBackForwardList for WebKit and 
       
  4247         backForwardList for WebCore, matching their respective class names.
       
  4248         
       
  4249         Removed "private" versions of kit() and core() -- kit() and core() are
       
  4250         canonically used for converting between WebKit API objects and WebCore
       
  4251         API objects. I think it's clearer to have only one way to do this.
       
  4252 
       
  4253         Removed COMPUTE_DEFAULT_PAGE_CACHE_SIZE, since it was unused.
       
  4254         
       
  4255         Removed _clearPageCache, since it was unused and it duplicated -setPageCacheSize:0.
       
  4256 
       
  4257         Removed _usesPageCache, since it was unused and it duplicated -pageCacheSize.
       
  4258 
       
  4259 2007-05-04  Brady Eidson  <beidson@apple.com>
       
  4260 
       
  4261         Reviewed by Mark Rowe
       
  4262 
       
  4263         Added main thread assertion to WebHTMLView to help make sure 3rd party clients aren't trying
       
  4264         to draw on secondary threads
       
  4265 
       
  4266         * WebView/WebHTMLView.mm:
       
  4267         (-[WebHTMLView drawRect:]): Added ASSERT_MAIN_THREAD()
       
  4268 
       
  4269 2007-05-04  Anders Carlsson  <andersca@apple.com>
       
  4270 
       
  4271         Reviewed by Antti.
       
  4272 
       
  4273         <rdar://problem/5179977> Use the correct URLs when dispatching delegate methods for data loads.
       
  4274 
       
  4275         * WebView/WebFrame.mm:
       
  4276         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
       
  4277         If the base URL is nil, set it to "about:blank", and set the response URL to a generated applewebdata URL.
       
  4278         
       
  4279         * WebView/WebView.mm:
       
  4280         (+[WebView _canHandleRequest:]):
       
  4281         No need to special-case applewebdata URLs here anymore, they're only used in responses.
       
  4282 
       
  4283 2007-05-03  Steve Falkenburg  <sfalken@apple.com>
       
  4284 
       
  4285         Reviewed by Oliver.
       
  4286 
       
  4287         Add missing user description parameter to spelling-related editor client method.
       
  4288 
       
  4289         * WebCoreSupport/WebEditorClient.h:
       
  4290         (WebEditorClient::updateSpellingUIWithGrammarString):
       
  4291 
       
  4292 2007-05-03  TImothy Hatcher  <timothy@apple.com>
       
  4293 
       
  4294         Reviewed by Kevin.
       
  4295 
       
  4296         <rdar://problem/4975212> REGRESSION: With NetNewsWire 2.1.1, the contextual menu shows extra menu items when focus
       
  4297         is placed in input or textarea field
       
  4298 
       
  4299         The NetNewsWire UI delegate isn't expecting calls for form controls, so we need to do a linked-on-or-after check.
       
  4300         If the application was linked against Tiger or earlier and the element is a text form control, just return the
       
  4301         default menu items and bypass the delegate call completely.
       
  4302 
       
  4303         * WebCoreSupport/WebContextMenuClient.mm:
       
  4304         (isPreVersion3Client): Cache the result of the WebKitLinkedOnOrAfter call
       
  4305         (fixMenusToSendToOldClients): Call the new isPreVersion3Client()
       
  4306         (fixMenusReceivedFromOldClients): Ditto.
       
  4307         (WebContextMenuClient::getCustomMenuFromDefaultItems): Return the default menu items if the element is a text form control.
       
  4308 
       
  4309 2007-05-03  Mark Rowe  <mrowe@apple.com>
       
  4310 
       
  4311         Reviewed by Geoff and Kevin.
       
  4312 
       
  4313         <rdar://problem/5141290> WebAssertions.h is still needed by some internal clients
       
  4314 
       
  4315         Second shot at fixing this error.  Stub out the macros rather than forwarding to JavaScriptCore, which would
       
  4316         leave clients using this header trying to resolve JavaScriptCore symbols against WebKit when linking.  This
       
  4317         should only happen in production builds when assertions should be disabled anyway as anyone building a
       
  4318         development configuration should be in a position to move away from using this header.
       
  4319 
       
  4320         * Misc/WebAssertions.h: 
       
  4321 
       
  4322 2007-05-03  Timothy Hatcher  <timothy@apple.com>
       
  4323 
       
  4324         Reviewed by Kevin.
       
  4325 
       
  4326         <rdar://problem/5067707> REGRESSION: "Open Link" contextual menu item appears twice in Mail
       
  4327 
       
  4328         Remove the check for Mail in fixMenusToSendToOldClients and fixMenusReceivedFromOldClients
       
  4329         when linked on or after Leopard. The isAppleMail() function is still used for Tiger Mail fixups.
       
  4330 
       
  4331         * WebCoreSupport/WebContextMenuClient.mm:
       
  4332         (fixMenusToSendToOldClients):
       
  4333         (fixMenusReceivedFromOldClients):
       
  4334 
       
  4335 2007-05-02  Anders Carlsson  <andersca@apple.com>
       
  4336 
       
  4337         Reviewed by Brady.
       
  4338 
       
  4339         <rdar://problem/5151113> Assertion firing in [FrameProgressEntry addChild:forDataSource:] when navigating cnn.com
       
  4340         
       
  4341         The assertion fired because a plug-in was trying to load a subresource when a new load had started but not yet
       
  4342         committed. The check that would have prevented this was removed in order to fix <rdar://problem/5085897>.
       
  4343         
       
  4344         This puts back the check but changes it to allow loads where the target is the same frame as the plugin's parent frame.
       
  4345         
       
  4346         * Plugins/WebBaseNetscapePluginView.mm:
       
  4347         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
       
  4348 
       
  4349 2007-04-27  Timothy Hatcher  <timothy@apple.com>
       
  4350 
       
  4351         Reviewed by Darin.
       
  4352 
       
  4353         There were only a couple calls to ResourceLoadDelegate forwarder left,
       
  4354         this removes the calls and adds a new cached method for didFailLoad.
       
  4355 
       
  4356         * WebKit/DefaultDelegates/WebDefaultResourceLoadDelegate.h: Removed.
       
  4357         * WebKit/DefaultDelegates/WebDefaultResourceLoadDelegate.m: Removed.
       
  4358         * WebKit/Plugins/WebNullPluginView.mm: Call the resource load delegate directly.
       
  4359         * WebKit/WebCoreSupport/WebFrameLoaderClient.mm: Call the cached didFailLoad delegate function.
       
  4360         * WebKit/WebKit.xcodeproj/project.pbxproj: Remove WebDefaultResourceLoadDelegate.
       
  4361         * WebKit/WebView/WebDataSource.mm: Remove the #import for WebDefaultResourceLoadDelegate.h
       
  4362         * WebKit/WebView/WebView.mm: Remove the ResourceLoadDelegate forwarder, and remove a method that isn't used.
       
  4363         * WebKit/WebView/WebViewInternal.h: Ditto.
       
  4364         * WebKit/WebView/WebViewPrivate.h: Remove a method that is no longer used.
       
  4365 
       
  4366 2007-04-27  David Harrison  <harrison@apple.com>
       
  4367 
       
  4368         Reviewed by Darin.
       
  4369 
       
  4370         <rdar://problem/5160627> Export JS list creation support as ObjC SPI for Mail
       
  4371 
       
  4372         * WebKit.xcodeproj/project.pbxproj:
       
  4373         * WebView/WebHTMLView.mm:
       
  4374         (-[WebHTMLView _selectedRange]):
       
  4375         (-[WebHTMLView _shouldDeleteRange:]):
       
  4376         (-[WebHTMLView _canEdit]):
       
  4377         (-[WebHTMLView _canEditRichly]):
       
  4378         (-[WebHTMLView _hasSelection]):
       
  4379         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
       
  4380         (-[WebHTMLView _hasInsertionPoint]):
       
  4381         (-[WebHTMLView _isEditable]):
       
  4382         Condense the check for nil [self frame].
       
  4383         Remove canEditRichly checks and rely on the editor to do the check instead.
       
  4384         
       
  4385         (-[WebHTMLView _insertOrderedList]):
       
  4386         (-[WebHTMLView _insertUnorderedList]):
       
  4387         New.
       
  4388         
       
  4389         (-[WebHTMLView _canIncreaseSelectionListLevel]):
       
  4390         (-[WebHTMLView _canDecreaseSelectionListLevel]):
       
  4391         (-[WebHTMLView _increaseSelectionListLevel]):
       
  4392         (-[WebHTMLView _increaseSelectionListLevelOrdered]):
       
  4393         (-[WebHTMLView _increaseSelectionListLevelUnordered]):
       
  4394         (-[WebHTMLView _decreaseSelectionListLevel]):
       
  4395         Moved from bridge to frame editor.
       
  4396 
       
  4397         * WebView/WebHTMLViewPrivate.h:
       
  4398         Add _insertOrderedList and _insertUnorderedList to WebHTMLView(WebPrivate)
       
  4399 
       
  4400 2007-04-27  Brady Eidson  <beidson@apple.com>
       
  4401 
       
  4402         Rubberstamped by Mark
       
  4403 
       
  4404         Remove default implementation of UIDelegate method that was removed
       
  4405 
       
  4406         I have also been instructed to give Tim a hard time about this one - apparently
       
  4407         it was his job to clean it out and he failed...  failed miserably.
       
  4408 
       
  4409         :)
       
  4410 
       
  4411         * DefaultDelegates/WebDefaultUIDelegate.m: Removed webViewPrint:
       
  4412 
       
  4413 2007-04-27  Maciej Stachowiak  <mjs@apple.com>
       
  4414 
       
  4415         Reviewed by Mark.
       
  4416         
       
  4417         <rdar://problem/5154113> Repro ASSERT (would be crash) in KJS::GCLock::GCLock (13462)
       
  4418         http://bugs.webkit.org/show_bug.cgi?id=13462
       
  4419 
       
  4420         * WebInspector/WebInspector.m:
       
  4421         (-[WebInspectorPrivate dealloc]): Delay release of WebView to avoid GC re-entrancy.
       
  4422 
       
  4423 2007-04-27  Anders Carlsson  <andersca@apple.com>
       
  4424 
       
  4425         Reviewed by Mitz.
       
  4426 
       
  4427         <rdar://problem/5165755>
       
  4428         View Source is broken; empty window is shown
       
  4429         
       
  4430         Return YES for applewebdata URLs.
       
  4431         
       
  4432         * WebView/WebView.mm:
       
  4433         (+[WebView _canHandleRequest:]):
       
  4434 
       
  4435 2007-04-26  Oliver Hunt  <oliver@apple.com>
       
  4436 
       
  4437         Reviewed by Adam.
       
  4438 
       
  4439         Fix <rdar://problem/5061252> REGRESSION: In Gmail, image fails 
       
  4440         to be inserted into message field after dragging
       
  4441 
       
  4442         Don't try to create <img> tags for local image files as it results
       
  4443         in the potential to submit forms that look like they have an image,
       
  4444         when in reality they don't.
       
  4445 
       
  4446         * WebView/WebHTMLView.mm:
       
  4447         (-[WebHTMLView _documentFragmentWithPaths:]):
       
  4448 
       
  4449 2007-04-26  Anders Carlsson  <andersca@apple.com>
       
  4450 
       
  4451         Reviewed by Maciej.
       
  4452 
       
  4453         <rdar://problem/5049099> documents no longer have a default base URL
       
  4454         
       
  4455         If the base URL is nil, then create a unique applewebdata URL to match what Tiger WebKit does.
       
  4456         
       
  4457         * WebView/WebFrame.mm:
       
  4458         (createUniqueWebDataURL):
       
  4459         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
       
  4460 
       
  4461 2007-04-25  Oliver Hunt  <oliver@apple.com>
       
  4462 
       
  4463         Rubber stamped by Adele.
       
  4464 
       
  4465         Roll out WebKit changes from from r21052 to fix regression noted in
       
  4466         <rdar://problem/5159556> REGRESSION: In Mail, pressing option-command- ' doesn't decrease block quote in selection
       
  4467 
       
  4468         * WebView/WebHTMLView.mm:
       
  4469         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):
       
  4470         (-[WebHTMLView doCommandBySelector:]):
       
  4471 
       
  4472 2007-04-25  Steve Falkenburg  <sfalken@apple.com>
       
  4473 
       
  4474         Reviewed by Adam.
       
  4475 
       
  4476         Mac callbacks for new spelling methods in WebEditorClient.
       
  4477         Not used yet.
       
  4478 
       
  4479         * WebCoreSupport/WebEditorClient.h:
       
  4480         (WebEditorClient::ignoreWordInSpellDocument):
       
  4481         (WebEditorClient::learnWord):
       
  4482         (WebEditorClient::checkSpellingOfString):
       
  4483         (WebEditorClient::checkGrammarOfString):
       
  4484         (WebEditorClient::updateSpellingUIWithGrammarString):
       
  4485         (WebEditorClient::updateSpellingUIWithMisspelledWord):
       
  4486         (WebEditorClient::showSpellingUI):
       
  4487         (WebEditorClient::spellingUIIsShowing):
       
  4488         (WebEditorClient::getGuessesForWord):
       
  4489 
       
  4490 2007-04-24  Geoffrey Garen  <ggaren@apple.com>
       
  4491 
       
  4492         Reviewed by Darin Adler, Tim Hatcher.
       
  4493 
       
  4494         Fixed a few NSAutoreleasePool issues I noticed while reviewing Brady's patch.
       
  4495 
       
  4496         * Carbon/CarbonUtils.m:
       
  4497         (PoolCleaner): Call -drain instead of -release, since -release is a 
       
  4498         no-op in a GC world.
       
  4499 
       
  4500         * Misc/WebKitErrors.m:
       
  4501         (registerErrors): Condensed onto one line.
       
  4502 
       
  4503         * Plugins/WebPluginDatabase.m:
       
  4504         (-[WebPluginDatabase refresh]): Call -drain instead of -release, since
       
  4505         -release is a no-op in a GC world.
       
  4506 
       
  4507         * WebCoreSupport/WebChromeClient.mm:
       
  4508         (WebChromeClient::setStatusbarText):
       
  4509 
       
  4510         * WebInspector/WebNodeHighlightView.m:
       
  4511         (-[WebNodeHighlightView initWithHighlight:andRects:forView:]): Don't drain
       
  4512         and then release because drain deallocates the receiver, so the release
       
  4513         is an over-release.
       
  4514 
       
  4515         * WebView/WebView.mm:
       
  4516         (-[WebView rectsForTextMatches]): Re-allocate the pool after draining it,
       
  4517         because drain deallocates the receiver, so the drain would leave you without
       
  4518         any autorelease pool, causing a leak and then an over-release at the bottom
       
  4519         of the loop.
       
  4520 
       
  4521 2007-04-24  Brady Eidson  <beidson@apple.com>
       
  4522 
       
  4523         Reviewed by Beth, Hyatt, Ada, and Darin
       
  4524 
       
  4525         <rdar://problem/5011477> and <rdar://problem/5011514>
       
  4526         Provide support for the icon.db to be moved to a different directory from the old WebKit-style
       
  4527         icons, and remove the old directory if that is the case
       
  4528 
       
  4529         * Misc/WebIconDatabase.mm:
       
  4530         (-[WebIconDatabase init]):
       
  4531         (-[WebIconDatabase _importToWebCoreFormat]): Check "imported()" to determine if a conversion is needed
       
  4532           - Look for WebIconDatabaseImportDirectoryDefaultsKey for the source location for the conversion
       
  4533           - Set "imported" to true in the Icons.db
       
  4534           - If the new Icons.db isn't in the same patch as the old icons, delete the entire directory when finished
       
  4535           - Move old icon.db to Icons.db to reflect rename
       
  4536         * Misc/WebIconDatabasePrivate.h: Add WebIconDatabaseImportDirectoryDefaultsKey so a WebKit client can tell WebKit
       
  4537           where to look for the old icons if their location is different from the icon.db
       
  4538         * WebKit.exp:
       
  4539 
       
  4540 2007-04-24  Mitz Pettel  <mitz@webkit.org>
       
  4541 
       
  4542         Reviewed by Oliver Hunt.
       
  4543 
       
  4544         Changed an apostrophe (') into a right single quotation mark (U+2019).
       
  4545 
       
  4546         * WebInspector/webInspector/inspector.js:
       
  4547 
       
  4548 2007-04-24  Mitz Pettel  <mitz@webkit.org>
       
  4549 
       
  4550         Reviewed by Timothy Hatcher.
       
  4551 
       
  4552         - fix http://bugs.webkit.org/show_bug.cgi?id=13459
       
  4553           The "mapped style" link next to an attribute doesn't work
       
  4554 
       
  4555         * WebInspector/webInspector/inspector.js: Added a check that the rule is
       
  4556         mapped from an attribute.
       
  4557 
       
  4558 2007-04-23  Adele Peterson  <adele@apple.com>
       
  4559 
       
  4560         Fixed and reviewed by Darin, Adele, and Oliver.
       
  4561 
       
  4562         WebKit part of fix for <rdar://problem/5107538> REGRESSION: Page scroll when selecting characters from inline input candidate window by arrow buttons
       
  4563         http://bugs.webkit.org/show_bug.cgi?id=13263
       
  4564 
       
  4565         * WebView/WebHTMLView.mm:
       
  4566         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]):  If we have no command after calling interpretKeyEvents, we assume the input method handled the key.
       
  4567         (-[WebHTMLView doCommandBySelector:]): Add noop: to the command vector, but then when actually performing actions, ignore it.
       
  4568 
       
  4569 2007-04-23  Timothy Hatcher  <timothy@apple.com>
       
  4570 
       
  4571         Reviewed by Darin.
       
  4572 
       
  4573         <rdar://problem/5124364> IB3 crashes when loading a nib containing a WebView that has a WebHTMLView encoded inside
       
  4574 
       
  4575         Since WebView's initWithCoder throws away all the decoded subviews, the WebHTMLView gets dealoced while it has a nil _private pointer.
       
  4576         Checking for a nil _private in WehHTMLView's close fixes this crash. No need to implement a full initWithCoder for WebHTMLView since
       
  4577         it will be thrown away by the WebView anyway.
       
  4578 
       
  4579         * WebView/WebHTMLView.mm:
       
  4580         (-[WebHTMLView close]): Return earily if _priviate is nil.
       
  4581         (-[WebHTMLView initWithFrame:]): Unrelated change that removes an AppKit version check that predates Tiger.
       
  4582 
       
  4583 2007-04-23  Timothy Hatcher  <timothy@apple.com>
       
  4584 
       
  4585         Reviewed by Mark Rowe.
       
  4586 
       
  4587         Remove the "No Selection" message after leaving search mode.
       
  4588         This was a regression caused by the inspector refresh.
       
  4589 
       
  4590         * WebInspector/webInspector/inspector.js:
       
  4591 
       
  4592 2007-04-23  Timothy Hatcher  <timothy@apple.com>
       
  4593 
       
  4594         Reviewed by Darin.
       
  4595 
       
  4596         Bug 6658: World leak when closing inspected window
       
  4597         http://bugs.webkit.org/show_bug.cgi?id=6658 and <rdar://problem/4411863>
       
  4598 
       
  4599         Removes over-retains of the inspector WebView, WebInspector and WebInspectorPanel.
       
  4600 
       
  4601         * WebInspector/WebInspector.m:
       
  4602         (+[WebInspector sharedWebInspector]): Return the global sharedWebInspector variable.
       
  4603         (-[WebInspector window]): Release the window after calling setWindow:.
       
  4604         (-[WebInspector windowWillClose:]): Set the JavaScript Inspector variable to null and expire the current highlight.
       
  4605           Also clear the global sharedWebInspector variable and release it if self equals sharedWebInspector.
       
  4606         (-[WebInspector showWindow:]): Set the JavaScript Inspector variable back to self.
       
  4607         * WebInspector/WebInspectorInternal.h: Remove the isSharedInspector member variable.
       
  4608         * WebView/WebView.mm:
       
  4609         (-[WebView windowScriptObject]): Return nil if core([self mainFrame]) is NULL.
       
  4610 
       
  4611 2007-04-23  Darin Adler  <darin@apple.com>
       
  4612 
       
  4613         Reviewed by Hyatt.
       
  4614 
       
  4615         - rename box-sizing to -webkit-box-sizing
       
  4616 
       
  4617         * WebInspector/webInspector/inspector.css: Here.
       
  4618         * WebInspector/webInspector/inspector.js: And here, in the expected default CSS values list.
       
  4619 
       
  4620 2007-04-22  Timothy Hatcher  <timothy@apple.com>
       
  4621 
       
  4622         Reviewed by Darin.
       
  4623 
       
  4624         The fix for <rdar://problem/4976681> ASSERTION failure on quit @ talkcrunch.com in _NPN_ReleaseObject
       
  4625         was #ifdefed out in Production builds.
       
  4626 
       
  4627         * WebView/WebView.mm:
       
  4628         (+[WebView initialize]): Move the #ifdef REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM inside initialize around the specific code
       
  4629         (+[WebView _applicationWillTerminate]): Moved outside the #ifdef REMOVE_SAFARI_DOM_TREE_DEBUG_ITEM block
       
  4630 
       
  4631 2007-04-22  Timothy Hatcher  <timothy@apple.com>
       
  4632 
       
  4633         Reviewed by Mitz.
       
  4634 
       
  4635         Bug 13436: Make Option-clicking a disclosure triangle expand the entire subtree
       
  4636         http://bugs.webkit.org/show_bug.cgi?id=13436
       
  4637 
       
  4638         Makes option-click recursively expand and collapse the sub-tree. Pressing option-left
       
  4639         and -right also recursively expands and collapses the sub-tree.
       
  4640 
       
  4641         * WebInspector/webInspector/treeoutline.js:
       
  4642 
       
  4643 2007-04-22  Timothy Hatcher  <timothy@apple.com>
       
  4644 
       
  4645         Reviewed by Mitz.
       
  4646 
       
  4647         Bug 13437: Inspector does not update when navigating to a different page
       
  4648         http://bugs.webkit.org/show_bug.cgi?id=13437
       
  4649 
       
  4650         * WebInspector/webInspector/inspector.js: Correctly update to a new root node
       
  4651           if the new focus node and the old focus node don't have a common ancestor.
       
  4652 
       
  4653 2007-04-22  Darin Adler  <darin@apple.com>
       
  4654 
       
  4655         Reviewed by Adele.
       
  4656 
       
  4657         - fix for <rdar://problem/5100240> REGRESSION: Control-O broken
       
  4658 
       
  4659         * WebView/WebHTMLView.mm:
       
  4660         (-[WebHTMLView _interceptEditingKeyEvent:shouldSaveCommand:]): Update to handle a vector of
       
  4661         command names instead of a single command.
       
  4662         (-[WebHTMLView doCommandBySelector:]): Change logic so that we add the command to a vector
       
  4663         and also so that the interpretKeyEvents parameters are still intact for a second call to
       
  4664         doCommandBySelector:, since the key bindings mechanism can do more than one.
       
  4665         (-[WebHTMLView insertText:]): Added comment.
       
  4666 
       
  4667 2007-04-21  Darin Adler  <darin@apple.com>
       
  4668 
       
  4669         Reviewed by Oliver.
       
  4670 
       
  4671         - fix some problems I ran into using the inspector
       
  4672 
       
  4673         * WebInspector/webInspector/inspector.js: Add some null checks.
       
  4674 
       
  4675 2007-04-20  Timothy Hatcher  <timothy@apple.com>
       
  4676 
       
  4677         Reviewed by Darin.
       
  4678 
       
  4679         Merge over the WebInspectorRefresh branch. This change removes the NSOutlineView and
       
  4680         is replaced with a HTML/JavaScript tree. Most of the inspector logic is now in the JavaScript.
       
  4681 
       
  4682         A few bugs are fixed by these changes:
       
  4683 
       
  4684         Bug 6615: Parent node drop-down list is upside-down
       
  4685         http://bugs.webkit.org/show_bug.cgi?id=6615
       
  4686 
       
  4687         Bug 6643: REGRESSION: Tree view repaints lines without erasing them first
       
  4688         http://bugs.webkit.org/show_bug.cgi?id=6643
       
  4689 
       
  4690         Bug 6650: Web Inspector HTML Hierarchy can't be scrolled with scrollwheel
       
  4691         http://bugs.webkit.org/show_bug.cgi?id=6650
       
  4692 
       
  4693         Bug 6677: Can't drag inspector when tree view has focus
       
  4694         http://bugs.webkit.org/show_bug.cgi?id=6677
       
  4695 
       
  4696         Bug 7326: Web Inspector tree scrollbar always shows up when resizing the top pane down
       
  4697         http://bugs.webkit.org/show_bug.cgi?id=7326
       
  4698 
       
  4699         * WebInspector/WebInspector.h: Removed the searchQuery methods.
       
  4700         * WebInspector/WebInspector.m: Removed the DOMNode category and code for the old outline view.
       
  4701         * WebInspector/WebInspectorOutlineView.h: Removed.
       
  4702         * WebInspector/WebInspectorOutlineView.m: Removed.
       
  4703         * WebInspector/WebInspectorInternal.h: Remove some methods and instance variables.
       
  4704         * WebInspector/webInspector/Images/resize.png: Added.
       
  4705         * WebInspector/webInspector/inspector.css: 
       
  4706         * WebInspector/webInspector/inspector.html: Include the new classes and remove the plugin.
       
  4707         * WebInspector/webInspector/inspector.js: Changes to use the new tree outline and other fixes.
       
  4708         * WebInspector/webInspector/scrollarea.js: Copied from the Dashboard widget resources.
       
  4709         * WebInspector/webInspector/scrollbar.js: Ditto.
       
  4710         * WebInspector/webInspector/treeoutline.js: New tree outline class.
       
  4711         * WebInspector/webInspector/utilities.js: DOM and String prototype additions.
       
  4712         * WebKit.xcodeproj/project.pbxproj: Remove WebInspectorOutlineView.
       
  4713 
       
  4714 2007-04-20  Brady Eidson  <beidson@apple.com>
       
  4715 
       
  4716         Reviewed by Oliver (Black Sheep)
       
  4717 
       
  4718         <rdar://problem/3559794>
       
  4719         [WebView setMaintainsBackForwardList:] doesn't actually flush out the current page caches
       
  4720 
       
  4721         * WebView/WebView.mm: Remove _private->useBackForwardList
       
  4722         (-[WebView _setInitiatedDrag:]): Use _private->page instead of [self page]
       
  4723         (-[WebView initWithCoder:]): Manipulate the flag that is now in WebCore::BackForwardList
       
  4724         (-[WebView encodeWithCoder:]): Ditto
       
  4725         (-[WebView backForwardList]): Use _private->page instead of [self page]
       
  4726         (-[WebView setMaintainsBackForwardList:]): Manipulate the flag that is now in WebCore::BackForwardList
       
  4727 
       
  4728 2007-04-20  Anders Carlsson  <andersca@apple.com>
       
  4729 
       
  4730         Reviewed by Maciej.
       
  4731 
       
  4732         <rdar://problem/5085897> REGRESSION: Some Flash links at www.jumpskyhigh.com just reload the page
       
  4733         
       
  4734         Get rid of the check that would prevent plugin requests from being loaded if a new page load was underway.
       
  4735         www.jumpskyhigh.com had a flash movie that was embedded inside an <a> tag and clicking on the plug-in would cause the
       
  4736         URL pointed to by the <a> tag to start loading and thus preventing the plug-in from loading the real URL.
       
  4737         
       
  4738         This check was added by Maciej and we should be able to remove it with the loader changes that have happened now,
       
  4739         (mainly the fact that resource loaders are handled by the document loader instead of the frame loader).
       
  4740         
       
  4741         * Plugins/WebBaseNetscapePluginView.mm:
       
  4742         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
       
  4743 
       
  4744 2007-04-19  Oliver Hunt  <oliver@apple.com>
       
  4745 
       
  4746         Reviewed by Adam.
       
  4747 
       
  4748         Fix for <rdar://problem/4960912> -- REGRESSION: Content-Disposition:
       
  4749         filename is ignored for drag-and-drop.
       
  4750 
       
  4751         * WebView/WebResource.mm:
       
  4752         (-[WebResource _fileWrapperRepresentation]):
       
  4753           When creating the NSFileWrapper check the response for a preferred 
       
  4754           filename, rather than just blindly hoping for the best.
       
  4755 
       
  4756 2007-04-19  Anders Carlsson  <andersca@apple.com>
       
  4757 
       
  4758         Reviewed by John.
       
  4759 
       
  4760         <rdar://problem/5137002>
       
  4761         REGRESSION (r20812): [WebFrame DOMDocument] is returning non-nil value in bookmarks view, causing trouble in Safari
       
  4762 
       
  4763         Put back the MIME type check as a workaround.
       
  4764         * WebView/WebFrame.mm:
       
  4765         (-[WebFrame DOMDocument]):
       
  4766 
       
  4767 2007-04-19  Mark Rowe  <mrowe@apple.com>
       
  4768 
       
  4769         Reviewed by Oliver and Adam.
       
  4770 
       
  4771         <rdar://problem/5141290> WebAssertions.h is still needed by some internal clients.
       
  4772 
       
  4773         * Misc/WebAssertions.h: Added.
       
  4774         * WebKit.xcodeproj/project.pbxproj:
       
  4775 
       
  4776 2007-04-17  Brady Eidson  <beidson@apple.com>
       
  4777 
       
  4778         Reviewed by Tim
       
  4779 
       
  4780         <rdar://problem/5008925>
       
  4781         Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
       
  4782 
       
  4783         * WebCoreSupport/WebFrameLoaderClient.h:
       
  4784         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  4785         (WebFrameLoaderClient::willCacheResponse): Call 
       
  4786           [WebResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:];
       
  4787 
       
  4788         * WebView/WebView.mm:
       
  4789         (-[WebView _cacheResourceLoadDelegateImplementations]): Pull out the willCacheResponse impl
       
  4790 
       
  4791         * WebView/WebViewPrivate.h: Add WebResourceLoadDelegatePrivate category for this new SPI
       
  4792 
       
  4793 2007-04-18  John Sullivan  <sullivan@apple.com>
       
  4794 
       
  4795         Reviewed by Adam
       
  4796 
       
  4797         - fixed <rdar://problem/5103009> REGRESSION: Activity window shows blank name for untitled pages
       
  4798 
       
  4799         * WebView/WebHTMLRepresentation.mm:
       
  4800         (-[WebHTMLRepresentation title]):
       
  4801         return nil for empty string, to match old behavior
       
  4802 
       
  4803 2007-04-17  John Sullivan  <sullivan@apple.com>
       
  4804 
       
  4805         Reviewed by Tim Hatcher
       
  4806 
       
  4807         - fixed <rdar://problem/5138492> Safari doesn't remember some changes to the PDF scale and display mode 
       
  4808 
       
  4809         Some of the user interactions that could change the PDF scale and display mode were not going through
       
  4810         the proxy mechanism in WebPDFView that updates preferences. Now we also listen to PDFKit notifications
       
  4811         in order to catch the other cases.
       
  4812 
       
  4813         * WebView/WebPDFView.h:
       
  4814         new _ignoreScaleAndDisplayModeNotifications and _updatePreferencesTimer ivars
       
  4815 
       
  4816         * WebView/WebPDFView.mm:
       
  4817         (-[WebPDFView setPDFDocument:]):
       
  4818         ignore scale and display mode notifications while we're setting up a fresh document
       
  4819         (-[WebPDFView dealloc]):
       
  4820         cancel the new timer (which releases it)
       
  4821         (-[WebPDFView viewDidMoveToWindow]):
       
  4822         listen for two PDFKit notifications
       
  4823         (-[WebPDFView viewWillMoveToWindow:]):
       
  4824         stop listening to the two PDFKit notifications
       
  4825         (-[WebPDFView _applyPDFDefaults]):
       
  4826         white space change
       
  4827         (-[WebPDFView _cancelUpdatePreferencesTimer]):
       
  4828         invalidate, release, and nil out the timer
       
  4829         (-[WebPDFView _scaleOrDisplayModeChanged:]):
       
  4830         update preferences soon, unless deliberately ignoring these notifications
       
  4831         (-[WebPDFView _updatePreferencesNow]):
       
  4832         cancel timer, then save data to preferences (code for saving the data was extracted from
       
  4833         -[PDFPrefUpdatingProxy forwardInvocation:])
       
  4834         (-[WebPDFView _updatePreferencesSoon]):
       
  4835         use timer to consolidate multiple calls into one action; formerly we were setting preferences
       
  4836         multiple times for some atomic user actions
       
  4837         (-[PDFPrefUpdatingProxy forwardInvocation:]):
       
  4838         call _updatePreferencesSoon where we used to immediately set preferences
       
  4839 
       
  4840 2007-04-17  John Sullivan  <sullivan@apple.com>
       
  4841 
       
  4842         Reviewed by Kevin Decker
       
  4843 
       
  4844         - fixed <rdar://problem/4184640> "Look Up in Dictionary" item is always disabled for PDF pages
       
  4845 
       
  4846         * WebView/WebPDFView.mm:
       
  4847         (-[WebPDFView validateUserInterfaceItem:]):
       
  4848         enable "Look Up in Dictionary" only if we're using a version of PDFKit that knows how to do so
       
  4849         (-[WebPDFView _canLookUpInDictionary]):
       
  4850         use respondsToSelector to test whether the current version of PDFKit supports this non-API feature
       
  4851         (-[WebPDFView _lookUpInDictionaryFromMenu:]):
       
  4852         implement this method, which WebKit includes in the context menu when there's selected text
       
  4853         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
       
  4854         updated comment for this change
       
  4855 
       
  4856 2007-04-16  Darin Adler  <darin@apple.com>
       
  4857 
       
  4858         Rubber stamped by Tim Hatcher.
       
  4859 
       
  4860         * WebKit.xcodeproj/project.pbxproj: Added Radar bug number to the error message
       
  4861         for the "version number ending in 4" check so folks from Apple can find the
       
  4862         original bug that motivated for this. To summarize what's in that bug, it says that
       
  4863         <http://my.fedex.com> was failing, that it was because of the OpenCube DHTML Menu,
       
  4864         and that some other affected sites were not using OpenCube (so the error is presumably
       
  4865         more widespread).
       
  4866 
       
  4867 2007-04-16  Darin Adler  <darin@apple.com>
       
  4868 
       
  4869         Reviewed by John Sullivan.
       
  4870 
       
  4871         - fix http://bugs.webkit.org/show_bug.cgi?id=13303
       
  4872           <rdar://problem/5126341> REGRESSION: controls in a background Safari window
       
  4873           maintain active appearance if the address bar has focus (13303)
       
  4874 
       
  4875         * WebView/WebHTMLView.mm: (-[WebHTMLView _windowChangedKeyState]):
       
  4876         Added. Calls FrameView::updateControlTints.
       
  4877 
       
  4878 2007-04-13  Oliver Hunt  <oliver@apple.com>
       
  4879 
       
  4880         Reviewed by Adam.
       
  4881 
       
  4882         Due to rdar://problem/5133910 -- WebArchives should not be constructed 
       
  4883         using resource from the cache -- We may try to create a potentially 
       
  4884         incorrect WebArchive when dragging an image multiple times.
       
  4885 
       
  4886         This patch retains the assertion for invalid behaviour, but adds a
       
  4887         branch to make sure we don't try to do anything with the WebArchive
       
  4888         in release builds.
       
  4889 
       
  4890         * Misc/WebNSPasteboardExtras.mm:
       
  4891         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
       
  4892 
       
  4893 2007-04-13  Timothy Hatcher  <timothy@apple.com>
       
  4894 
       
  4895         Reviewed by Dave Harrison.
       
  4896 
       
  4897         <rdar://problem/5132727> Soho Mail build fails because of renamed SPI
       
  4898 
       
  4899         * WebView/WebUIDelegatePrivate.h: define WebMenuItemTagSearchInGoogle as OldWebMenuItemTagSearchWeb
       
  4900 
       
  4901 2007-04-13  Mark Rowe  <mrowe@apple.com>
       
  4902 
       
  4903         Reviewed by Oliver.
       
  4904 
       
  4905         <rdar://problem/5130686> Using WebPreferencesPrivate.h requires modifying framework search path
       
  4906 
       
  4907         * WebView/WebPreferencesPrivate.h: Remove unneeded #ifdef.
       
  4908 
       
  4909 2007-04-12  Deneb Meketa  <dmeketa@adobe.com>
       
  4910 
       
  4911         Reviewed by Darin Adler.
       
  4912 
       
  4913         http://bugs.webkit.org/show_bug.cgi?id=13029
       
  4914         rdar://problem/4994849
       
  4915         Bug 13029: Permit NPAPI plug-ins to see HTTP response headers.
       
  4916 
       
  4917         * Plugins/WebBaseNetscapePluginStream.h: declarations.
       
  4918         * Plugins/WebBaseNetscapePluginStream.mm: main implementation.
       
  4919         (-[WebBaseNetscapePluginStream dealloc]): cleanup.
       
  4920         (-[WebBaseNetscapePluginStream finalize]): cleanup.
       
  4921         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]):
       
  4922         Pass headers along.
       
  4923         (-[WebBaseNetscapePluginStream startStreamWithResponse:]):
       
  4924         Main work is here.  Extract headers from NSHTTPURLResponse object into a byte sequence.
       
  4925         See comments here about how it would be nice to have low-level access to the HTTP response.
       
  4926         (-[WebBaseNetscapePluginStream _destroyStream]): cleanup.
       
  4927         * Plugins/WebBaseNetscapePluginView.mm:
       
  4928         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
       
  4929         Conform to new startStream params.  Not applicable here, pass nil.
       
  4930 
       
  4931 2007-04-12  Brady Eidson  <beidson@apple.com>
       
  4932 
       
  4933         Build fix for case sensitive file systems
       
  4934 
       
  4935         * Misc/WebNSPasteboardExtras.mm:
       
  4936         * WebCoreSupport/WebPasteboardHelper.mm:
       
  4937 
       
  4938 2007-04-11  John Sullivan  <sullivan@apple.com>
       
  4939 
       
  4940         Reviewed by Anders
       
  4941 
       
  4942         - WebKit part of fix for:
       
  4943         <rdar://problem/5128697> REGRESSION: At least one PDF context menu item isn't appearing on Leopard
       
  4944 
       
  4945         * Misc/WebNSArrayExtras.h: Added.
       
  4946         * Misc/WebNSArrayExtras.m: Added.
       
  4947         (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]):
       
  4948         New file, includes this method to strip leading, trailing, and duplicate separators from arrays
       
  4949         of NSMenuItems (copied from Safari)
       
  4950 
       
  4951         * WebView/WebUIDelegatePrivate.h:
       
  4952         new MenuItemTag enum values for new PDFKit context menu items
       
  4953 
       
  4954         * WebKit.xcodeproj/project.pbxproj:
       
  4955         updated for new files
       
  4956 
       
  4957         * WebView/WebPDFView.mm:
       
  4958         (-[WebPDFView _anyPDFTagsFoundInMenu:]):
       
  4959         check for new PDFKit context menu items
       
  4960         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
       
  4961         associate new PDFKit context menu item selectors with the new tags; skip certain selectors that
       
  4962         correspond to menu items that WebKit already includes; remove useless menu item separators when
       
  4963         we're done, since we might have removed arbitrarily-placed menu items
       
  4964 
       
  4965 2007-04-11  Oliver Hunt  <oliver@apple.com>
       
  4966 
       
  4967         Reviewed by Maciej.
       
  4968 
       
  4969         Adding RetainPtr to the many global obj-c pointers we use in
       
  4970         C/C++ methods.  This is necessary to prevent GC from collecting
       
  4971         globals we want to keep around.
       
  4972 
       
  4973         We use RetainPtr in obj-c++ and c++ files, and CFRetain/Release in pure
       
  4974         obj-c.
       
  4975 
       
  4976         This fixes <rdar://problem/5058731> -- Crash in 
       
  4977         WebCore::DragData::containsCompatibleContent due to early release 
       
  4978         of types array
       
  4979 
       
  4980         * Misc/WebLocalizableStrings.m:
       
  4981         (WebLocalizedString):
       
  4982         * Misc/WebNSPasteboardExtras.mm:
       
  4983         (+[NSPasteboard _web_writableTypesForURL]):
       
  4984         (_writableTypesForImageWithoutArchive):
       
  4985         (_writableTypesForImageWithArchive):
       
  4986         * Misc/WebNSURLExtras.m:
       
  4987         (applyHostNameFunctionToMailToURLString):
       
  4988         (applyHostNameFunctionToURLString):
       
  4989         * Misc/WebStringTruncator.m:
       
  4990         (defaultMenuFont):
       
  4991         (fontFromNSFont):
       
  4992         * WebCoreSupport/WebPasteboardHelper.mm:
       
  4993         (WebPasteboardHelper::insertablePasteboardTypes):
       
  4994 
       
  4995 2007-04-11  MorganL  <morganl.webkit@yahoo.com>
       
  4996 
       
  4997         Reviewed by Maciej.
       
  4998 
       
  4999         Add a Frame pointer to ChromeClient methods:
       
  5000         http://bugs.webkit.org/show_bug.cgi?id=13127
       
  5001 
       
  5002         * COM/ChromeClientWin.cpp:
       
  5003         (ChromeClientWin::createWindow):
       
  5004         (ChromeClientWin::createModalDialog):
       
  5005         * COM/ChromeClientWin.h:
       
  5006         * WebCoreSupport/WebChromeClient.h:
       
  5007         * WebCoreSupport/WebChromeClient.mm:
       
  5008         (WebChromeClient::createWindow):
       
  5009         (WebChromeClient::createModalDialog):
       
  5010 
       
  5011 2007-04-10  Brady Eidson  <beidson@apple.com>
       
  5012 
       
  5013         Reviewed by Darin
       
  5014 
       
  5015         <rdar://problem/4887095> - PageCache and PageState should be combined
       
  5016 
       
  5017         WebKit side of the change to reflect the new object name of CachedPage and new Client method names
       
  5018 
       
  5019         * History/WebHistoryItem.mm:
       
  5020         (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
       
  5021         (+[WebHistoryItem _releaseAllPendingPageCaches]):
       
  5022         (-[WebWindowWatcher windowWillClose:]):
       
  5023 
       
  5024         * WebCoreSupport/WebFrameLoaderClient.h:
       
  5025         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5026         (WebFrameLoaderClient::setDocumentViewFromCachedPage):
       
  5027         (WebFrameLoaderClient::loadedFromCachedPage):
       
  5028         (WebFrameLoaderClient::saveDocumentViewToCachedPage):
       
  5029 
       
  5030 2007-04-09  Geoffrey Garen  <ggaren@apple.com>
       
  5031 
       
  5032         Reviewed by Maciej Stachowiak.
       
  5033         
       
  5034         Support for fixing fast/forms/textarea-paste-newline.html.
       
  5035         
       
  5036         Added SPI for specifying whether a WebView should allow pasting through the 
       
  5037         DOM API.
       
  5038 
       
  5039         * ChangeLog:
       
  5040         * WebKit.xcodeproj/project.pbxproj:
       
  5041         * WebView/WebPreferenceKeysPrivate.h:
       
  5042         * WebView/WebPreferences.m:
       
  5043         (+[WebPreferences standardPreferences]):
       
  5044         (-[WebPreferences isDOMPasteAllowed]):
       
  5045         (-[WebPreferences setDOMPasteAllowed:]):
       
  5046         * WebView/WebPreferencesPrivate.h:
       
  5047         * WebView/WebView.mm:
       
  5048         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  5049 
       
  5050 2007-04-09  Anders Carlsson  <andersca@apple.com>
       
  5051 
       
  5052         Reviewed by John.
       
  5053 
       
  5054         <rdar://problem/5081860>
       
  5055         REGRESSION: Select All for standalone image has no visible effect but does change state
       
  5056         
       
  5057         <rdar://problem/5081840>
       
  5058         REGRESSION: context menu in white space beyond standalone image is different after Select All
       
  5059         
       
  5060         Have validateUserInterface emulate the old behavior for full-frame images and plugins, which is:
       
  5061         
       
  5062         - For full-frame plugins, always return false.
       
  5063         - For images, only return true if the selector is copy: and the image has finished loading.
       
  5064         
       
  5065         * WebView/WebHTMLView.mm:
       
  5066         (-[WebHTMLView validateUserInterfaceItem:]):
       
  5067 
       
  5068 2007-04-09  Anders Carlsson  <andersca@apple.com>
       
  5069 
       
  5070         Reviewed by Darin.
       
  5071 
       
  5072         <rdar://problem/5026893>
       
  5073         REGRESSION: "Mail Contents of this Page" for standalone image in Safari results in a broken image in Mail
       
  5074         
       
  5075         * WebView/WebFrame.mm:
       
  5076         (-[WebFrame DOMDocument]):
       
  5077         We can't check for _isHTMLDocument here since image and plugin documents inherit from HTMLDocument. Instead,
       
  5078         check for those two document types explicitly.
       
  5079         
       
  5080 2007-04-09  Anders Carlsson  <andersca@apple.com>
       
  5081 
       
  5082         Reviewed by Geoff, Ada and John.
       
  5083 
       
  5084         <rdar://problem/4600978> Would like a way to test whether a WebView is displaying a standalone image
       
  5085 
       
  5086         * WebView/WebFrame.mm:
       
  5087         (-[WebFrame _isDisplayingStandaloneImage]):
       
  5088         * WebView/WebFramePrivate.h:
       
  5089         Add _isDisplayingStandaloneImage SPI.
       
  5090 
       
  5091 2007-04-06  Timothy Hatcher  <timothy@apple.com>
       
  5092 
       
  5093         Reviewed by Mark Rowe.
       
  5094 
       
  5095         Adds a build phase script that ensures WebKit's version dosen't end in a 4.
       
  5096         If our version ends in 4, some sites might think we are Netscape 4 in their
       
  5097         user agent checks.
       
  5098 
       
  5099         * Configurations/Version.xcconfig:
       
  5100         * WebKit.xcodeproj/project.pbxproj:
       
  5101 
       
  5102 2007-04-05  Anders Carlsson  <andersca@apple.com>
       
  5103 
       
  5104         Reviewed by Adam.
       
  5105 
       
  5106         <rdar://problem/5083023>
       
  5107         REGRESSION: In Real Player (10.1.0), video continues to play after closing window
       
  5108         
       
  5109         This broke in revision 18422 because now the plugin isn't stopped when the window is closed. Since the window is retained
       
  5110         by the plugin view for as long as it is running (so that removeTrackingRect works even though the window has been closed),
       
  5111         we would end up with a reference cycle (NSWindow -> WebView -> PluginView -> NSWindow) and stopping the plug-in when the window
       
  5112         was closed would break that cycle.
       
  5113         
       
  5114         Applications that call -[WebView close] when closing aren't affected, but RealPlayer doesn't do this.
       
  5115         
       
  5116         The bug that 18422 was supposed to fix was fixed by 19275, which is why it's safe to add back the check.
       
  5117         
       
  5118         * Plugins/WebBaseNetscapePluginView.mm:
       
  5119         (-[WebBaseNetscapePluginView addWindowObservers]):
       
  5120         (-[WebBaseNetscapePluginView removeWindowObservers]):
       
  5121         (-[WebBaseNetscapePluginView windowWillClose:]):
       
  5122 
       
  5123 2007-04-05  Kevin McCullough  <kmccullough@apple.com>
       
  5124 
       
  5125         Reviewed by Darin.
       
  5126 
       
  5127         - Moved registerURLSchemeAsLocal to the public API.
       
  5128 
       
  5129         * WebView/WebView.h:
       
  5130         * WebView/WebView.mm:
       
  5131         (+[WebView registerURLSchemeAsLocal:]):
       
  5132         * WebView/WebViewPrivate.h:
       
  5133 
       
  5134 === Safari-5522.6 ===
       
  5135 
       
  5136 2007-04-04  Anders Carlsson  <andersca@apple.com>
       
  5137 
       
  5138         Reviewed by John.
       
  5139 
       
  5140         <rdar://problem/5107536> 
       
  5141         http://bugs.webkit.org/show_bug.cgi?id=13264
       
  5142         REGRESSION: Crash when canceling about:blank in Activity viewer
       
  5143         
       
  5144         * WebView/WebFrame.mm:
       
  5145         (-[WebFrame stopLoading]):
       
  5146         Add a null check for the frame loader - it can be null when the frame has been disconnected
       
  5147         from the web page.
       
  5148 
       
  5149 2007-04-03  Anders Carlsson  <andersca@apple.com>
       
  5150 
       
  5151         Reviewed by Darin.
       
  5152 
       
  5153         <rdar://problem/5028178>
       
  5154         Crash occurs at WebCore::FrameLoader::activeDocumentLoader() after loading Froggster widget
       
  5155         
       
  5156         * Plugins/WebNetscapePluginStream.mm:
       
  5157         (-[WebNetscapePluginStream start]):
       
  5158         If load returns no the plugin loader has already been removed by the didFail callback.
       
  5159 
       
  5160 2007-04-02  Anders Carlsson  <andersca@apple.com>
       
  5161 
       
  5162         Reviewed by Geoff.
       
  5163 
       
  5164         Fix crash when running plugins/destroy-stream-twice.html under GuardMalloc
       
  5165 
       
  5166         * Plugins/WebBaseNetscapePluginStream.h:
       
  5167         * Plugins/WebBaseNetscapePluginStream.mm:
       
  5168         (+[WebBaseNetscapePluginStream ownerForStream:]):
       
  5169         (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
       
  5170         (-[WebBaseNetscapePluginStream dealloc]):
       
  5171         (-[WebBaseNetscapePluginStream finalize]):
       
  5172         Change the streams hash map to contain an NPStream*, and change ownerForStream to take an NPStream*.
       
  5173         
       
  5174         * Plugins/WebBaseNetscapePluginView.mm:
       
  5175         (-[WebBaseNetscapePluginView destroyStream:reason:]):
       
  5176         Check that the NPStream pointer is valid before accessing stream->ndata.
       
  5177 
       
  5178 2007-04-02  Darin Adler  <darin@apple.com>
       
  5179 
       
  5180         Reviewed by Geoff.
       
  5181 
       
  5182         - fix http://bugs.webkit.org/show_bug.cgi?id=13026
       
  5183           <rdar://problem/5061026> incomplete render of menu
       
  5184           (assertion failing in -[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:])
       
  5185 
       
  5186         - fix http://bugs.webkit.org/show_bug.cgi?id=13120
       
  5187           <rdar://problem/5080339> Plug-ins that draw through the QuickDraw interface may crash
       
  5188           by hanging onto old GWorlds.
       
  5189 
       
  5190         - set clip path for CoreGraphics plug-ins in the same way we do for QuickDraw plug-ins
       
  5191           this is a better fix for <rdar://problem/4939511> WebKit should set the the CG clip
       
  5192           path for plug-ins that draw using Core Graphics
       
  5193 
       
  5194         Incorporates changes from a patch by Mark Ambachtsheer.
       
  5195 
       
  5196         Here are the changes:
       
  5197 
       
  5198             1) Don't try to use the offscreen code path if GGBitmapContextGetData returns 0.
       
  5199             2) Handle kCGBitmapByteOrderDefault when computing the QD pixel format, even though
       
  5200                we don't have any evidence that this happens in practice.
       
  5201             3) Keep the GWorld around until we create a new one or the plug-in is destroyed.
       
  5202             4) Use the GWorld pointer itself as a flag to indicate whether we are using an
       
  5203                offscreen GWorld.
       
  5204             5) Set up clipping for CoreGraphics in the same way we do for QuickDraw; remove an
       
  5205                earlier attempt that handled CoreGraphics differently.
       
  5206 
       
  5207         * Plugins/WebBaseNetscapePluginView.h: Added a field named offscreenGWorld to hold
       
  5208         the GWorld until it's needed.
       
  5209         * Plugins/WebBaseNetscapePluginView.mm:
       
  5210         (getQDPixelFormatForBitmapContext): Replaced QDPixelFormatFromCGBitmapInfo. Used the
       
  5211         "get" prefix so we don't intrude on the QD namespace. Added code to handle the
       
  5212         kCGBitmapByteOrderDefault case, although I'm not sure it will really come up in
       
  5213         practice -- it wasn't really coming up in the buggy case.
       
  5214         (getNPRect): Added helper functions. Used to make the code below clearer.
       
  5215         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): Use getNPRect to
       
  5216         streamline code. Use GetGWorld to save the port since we use SetGWorld to restore
       
  5217         it later. Store the GWorld we create in the offscreenGWorld field and dispose the
       
  5218         existing one. Don't treat the CGBitmapContext as an offscreen bitmap if it
       
  5219         has a data pointer of 0. Set up the clip based on the result of
       
  5220         -[NSView getRectsBeingDrawn:count] when setting up the port for CoreGraphics
       
  5221         (after saving the port state).
       
  5222         (-[WebBaseNetscapePluginView restorePortState:]): Remove now-unneeded code to
       
  5223         destroy the offscreen GWorld, and simplified the code that restores the port so we
       
  5224         don't need a separate case for offscreen.
       
  5225         (-[WebBaseNetscapePluginView fini]): Renamed from freeAttributeKeysAndValues, since
       
  5226         this method now does more than just the attributes. This is the shared method that
       
  5227         does things needed in both dealloc and finalize. Added a call to DisposeGWorld here.
       
  5228         (-[WebBaseNetscapePluginView dealloc]): Updated for name change.
       
  5229         (-[WebBaseNetscapePluginView finalize]): Ditto.
       
  5230         (-[WebBaseNetscapePluginView drawRect:]): Removed code to set clip. This is done in
       
  5231         the saveAndSetNewPortStateForUpdate: method instead.
       
  5232 
       
  5233 2007-03-30  Adele Peterson  <adele@apple.com>
       
  5234 
       
  5235         Reviewed by Darin.
       
  5236 
       
  5237         Call execCommand for deleteWordForward and deleteWordBackward instead of calling
       
  5238         deleteWithDirection directly.
       
  5239 
       
  5240         * WebView/WebHTMLView.mm:
       
  5241         (-[WebHTMLView deleteWordForward:]):
       
  5242         (-[WebHTMLView deleteWordBackward:]):
       
  5243 
       
  5244 2007-03-30  Anders Carlsson  <andersca@apple.com>
       
  5245 
       
  5246         Reviewed by Geoff.
       
  5247 
       
  5248         * Plugins/WebNetscapePluginPackage.m:
       
  5249         (-[WebNetscapePluginPackage load]):
       
  5250         Initialize pushpopupsenabledstate, poppopupsenabledstate and enumerate.
       
  5251         
       
  5252         * Plugins/npapi.m:
       
  5253         (NPN_PushPopupsEnabledState):
       
  5254         (NPN_PopPopupsEnabledState):
       
  5255         Add stubs for these functions.
       
  5256         
       
  5257         * Plugins/npfunctions.h:
       
  5258         Add new methods to NPNetscapeFuncs.
       
  5259 
       
  5260 2007-03-29  Geoffrey Garen  <ggaren@apple.com>
       
  5261 
       
  5262         Reviewed by Beth Dakin, reviewed by Maciej Stachowiak.
       
  5263         
       
  5264         Layout test for <rdar://problem/5091330> REGRESSION: Repro crash in 
       
  5265         -[WebBaseNetscapePluginView(WebNPPCallbacks) destroyStream:reason:] 
       
  5266         navigating away from page with DivX movie plug-in (13203)
       
  5267         
       
  5268         Changed LOG_ERROR to LOG so the layout test doesn't produce console spew
       
  5269         every time you run it.
       
  5270 
       
  5271         * Plugins/WebBaseNetscapePluginView.mm:
       
  5272         (-[WebBaseNetscapePluginView destroyStream:reason:]):
       
  5273 
       
  5274 2007-03-29  Beth Dakin  <bdakin@apple.com>
       
  5275 
       
  5276         Reviewed by Brady.
       
  5277 
       
  5278         Fix for <rdar://problem/4674537> REGRESSION: Adobe Acrobat 8 - Text 
       
  5279         blinks when mouse is moved, and is invisible otherwise
       
  5280 
       
  5281         -and-
       
  5282 
       
  5283         <rdar://problem/4992521> Please adjust WebKit's Acrobat-workaround 
       
  5284         methodology
       
  5285 
       
  5286         The fix for the first bug is to compare against the bundle 
       
  5287         identifiers for Adobe Reader and the non-Pro Adobe Acrobat in 
       
  5288         addition to Adobe Acrobat Pro. The fix for the second bug is to 
       
  5289         check the version number of Acrobat/Reader through 
       
  5290         WebKitSystemInterface instead of checking which version of WebKit 
       
  5291         it has been linked against.
       
  5292 
       
  5293         * English.lproj/StringsNotToBeLocalized.txt: Two new bundle 
       
  5294         identifiers.
       
  5295         * Misc/WebKitVersionChecks.h: Remove Acrobat quirk constant.
       
  5296         * WebView/WebView.mm:
       
  5297         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  5298 
       
  5299 2007-03-29  Geoffrey Garen  <ggaren@apple.com>
       
  5300 
       
  5301         Rubber stamped by Beth Dakin.
       
  5302         
       
  5303         WebBaseNetscapePluginStream.m => WebBaseNetscapePluginStream.mm, since
       
  5304         it's ObjC++ now.
       
  5305 
       
  5306         * Plugins/WebBaseNetscapePluginStream.m: Removed.
       
  5307         * WebKit.xcodeproj/project.pbxproj:
       
  5308 
       
  5309 2007-03-27  Geoffrey Garen  <ggaren@apple.com>
       
  5310 
       
  5311         Reluctantly tolerated by Darin Adler.
       
  5312         
       
  5313         Fixed <rdar://problem/5091330> REGRESSION: Repro crash in 
       
  5314         -[WebBaseNetscapePluginView(WebNPPCallbacks) destroyStream:reason:] 
       
  5315         navigating away from page with DivX movie plug-in (13203)
       
  5316         
       
  5317         The problem was that the DivX plug-in would ask us to destroy an NPStream
       
  5318         that had already been destroyed, causing us to wander off into freed
       
  5319         memory. (I believe the reason this was a regression was that we never used 
       
  5320         to destroy plug-in streams, period.)
       
  5321         
       
  5322         The solution here is to track the NPStreams belonging to a plug-in, and 
       
  5323         guard against plug-ins making calls with NPStreams that don't belong to 
       
  5324         them. (It turns out that NPN_DestroyStream is the only stream-based 
       
  5325         plug-in call we support.)
       
  5326 
       
  5327         (CarbonPathFromPOSIXPath): Fixed up a cast to be C++ compatible.
       
  5328         * Plugins/WebBaseNetscapePluginView.mm:
       
  5329         (-[WebBaseNetscapePluginView destroyStream:reason:]): The actual fix.
       
  5330         Use helper method to guard against a plug-in using an NPStream that doesn't
       
  5331         belong to it.
       
  5332         * WebKit.xcodeproj/project.pbxproj: Made WebBaseNetscapePluginView ObjC++
       
  5333         so I could use HashMap.
       
  5334 
       
  5335 2007-03-28  Adele Peterson  <adele@apple.com>
       
  5336 
       
  5337         Reviewed by Brady.
       
  5338 
       
  5339         Update to last fix.
       
  5340 
       
  5341         * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITHOUT_VITALSOURCE_QUIRK.
       
  5342         * WebView/WebView.mm: (-[WebView stringByEvaluatingJavaScriptFromString:]):
       
  5343         Added check to only use the VitalSource workaround if the app is not linked on or after
       
  5344         the defined WEBKIT_FIRST_VERSION_WITHOUT_VITALSOURCE_QUIRK version number.
       
  5345 
       
  5346 2007-03-28  Adele Peterson  <adele@apple.com>
       
  5347 
       
  5348         Reviewed by Kevin M.
       
  5349 
       
  5350         WebKit part of fix for <rdar://problem/5095515> VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
       
  5351 
       
  5352         Added an app specific workaround for VitalSource Bookshelf that strips "return" from the beginning of their script strings.  We used to allow this
       
  5353         but now we throw a JavaScript exception for return statements that aren't in functions.
       
  5354 
       
  5355         Filed this evangelism bug so we can notify VitalSource of the problem:
       
  5356         <rdar://problem/5095515> VitalSource Bookshelf should not pass return statements into stringByEvaluatingJavaScriptFromString
       
  5357 
       
  5358         * WebView/WebView.mm: (-[WebView stringByEvaluatingJavaScriptFromString:]):
       
  5359 
       
  5360 2007-03-27  John Sullivan  <sullivan@apple.com>
       
  5361 
       
  5362         Reviewed by Tim
       
  5363         
       
  5364         - fixed <rdar://problem/5092556> Default UA spoofing is always off until explicitly toggled
       
  5365 
       
  5366         * WebView/WebView.mm:
       
  5367         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
  5368         initialize the cached value of _private->useSiteSpecificSpoofing here; formerly it would not
       
  5369         be initialized correctly in the common case of WebViews that use [WebPreferences standardPreferences]
       
  5370 
       
  5371 2007-03-27  Mark Rowe  <mrowe@apple.com>
       
  5372 
       
  5373         Reviewed by Dave Harrison.
       
  5374 
       
  5375         * Configurations/WebKit.xcconfig: Include UMBRELLA_FRAMEWORKS_DIR in framework search path.
       
  5376 
       
  5377 2007-03-26  Antti Koivisto  <antti@apple.com>
       
  5378 
       
  5379         Reviewed by Darin.
       
  5380         
       
  5381         On Mac, support fine grained wheel events generated by trackpad and Mighty Mouse.
       
  5382         http://bugs.webkit.org/show_bug.cgi?id=13134
       
  5383         <rdar://problem/5076249>
       
  5384 
       
  5385         * WebCoreSupport/WebSystemInterface.m:
       
  5386         (InitWebCoreSystemInterface): Expose GetWheelEventDeltas()
       
  5387 
       
  5388 2007-03-26  John Sullivan  <sullivan@apple.com>
       
  5389 
       
  5390         Reviewed by Dave Harrison
       
  5391         
       
  5392         - fixed <rdar://problem/4769772> Problem with Find on certain PDF page
       
  5393 
       
  5394         * WebView/WebPDFView.mm:
       
  5395         (-[WebPDFView _scaledAttributedString:]):
       
  5396         We were hitting an exception trying to set the font attribute to nil, which was happening because
       
  5397         the result of -[PDFSelection attributedString] had no attributes. That PDFSelection bug is now
       
  5398         filed separately, but this works around the exception.
       
  5399 
       
  5400 2007-03-24  David Hyatt  <hyatt@apple.com>
       
  5401 
       
  5402         Amend the statistics reporting for the WebCore cache to include XSL and to report live/decoded sizes.
       
  5403 
       
  5404         * Misc/WebCache.mm:
       
  5405         (+[WebCache statistics]):
       
  5406 
       
  5407 2007-03-24  Brady Eidson  <beidson@apple.com>
       
  5408 
       
  5409         Reviewed by Adam
       
  5410 
       
  5411         RetainPtr is no longer in the WebCore namespace
       
  5412 
       
  5413         * History/WebBackForwardList.mm:
       
  5414         * WebCoreSupport/WebEditorClient.h:
       
  5415         * WebCoreSupport/WebFrameLoaderClient.h:
       
  5416         * WebView/WebDocumentLoaderMac.h:
       
  5417 
       
  5418 2007-03-24  Brady Eidson  <beidson@apple.com>
       
  5419 
       
  5420         Reviewed by Adam
       
  5421 
       
  5422         <rdar://problem/5086210> - Move RetainPtr to WTF
       
  5423         
       
  5424         * ForwardingHeaders/wtf/RetainPtr.h: Added.
       
  5425         * History/WebBackForwardList.mm: Changed #import to <wtf/RetainPtr.h>
       
  5426         * WebCoreSupport/WebEditorClient.h: Ditto
       
  5427         * WebCoreSupport/WebFrameLoaderClient.h: Ditto
       
  5428         * WebView/WebDocumentLoaderMac.h: Ditto
       
  5429 
       
  5430 2007-03-24  John Sullivan  <sullivan@apple.com>
       
  5431 
       
  5432         Reviewed by Adele
       
  5433 
       
  5434         - fixed <rdar://problem/5084872> Need to add flickr to spoof list in WebKit
       
  5435         - only do site-specific spoofing if a preference is set
       
  5436 
       
  5437         * WebView/WebPreferenceKeysPrivate.h:
       
  5438         added WebKitUseSiteSpecificSpoofingPreferenceKey 
       
  5439         
       
  5440         * WebView/WebPreferences.m:
       
  5441         (+[WebPreferences initialize]):
       
  5442         initialize WebKitUseSiteSpecificSpoofingPreferenceKey to false
       
  5443         (-[WebPreferences _useSiteSpecificSpoofing]):
       
  5444         get value of WebKitUseSiteSpecificSpoofingPreferenceKey
       
  5445         (-[WebPreferences _setUseSiteSpecificSpoofing:]):
       
  5446         set value of WebKitUseSiteSpecificSpoofingPreferenceKey
       
  5447         
       
  5448         * WebView/WebPreferencesPrivate.h:
       
  5449         declare _useSiteSpecificSpoofing and _setUseSiteSpecificSpoofing
       
  5450         
       
  5451         * WebView/WebView.mm:
       
  5452         cache the value of WebKitUseSiteSpecificSpoofingPreferenceKey in a bool in _private
       
  5453         (-[WebView _preferencesChangedNotification:]):
       
  5454         update the cached value
       
  5455         (-[WebView setPreferences:]):
       
  5456         ditto
       
  5457         (-[WebView WebCore::_userAgentForURL:WebCore::]):
       
  5458         Only spoof here if the new site-specific spoofing preference is enabled. If it is, pass
       
  5459         Safari 2.0.4's user agent string for flickr.com. We can remove this case when 5081617 is addressed.
       
  5460 
       
  5461 2007-03-24  Mark Rowe  <mrowe@apple.com>
       
  5462 
       
  5463         Rubber-stamped by Darin.
       
  5464 
       
  5465         * Configurations/WebKit.xcconfig: Remove unnecessary INFOPLIST_PREPROCESS.
       
  5466 
       
  5467 2007-03-23  Mark Rowe  <mrowe@apple.com>
       
  5468 
       
  5469         Build fix for when BUILDING_ON_TIGER is not defined.
       
  5470 
       
  5471         * Misc/WebTypesInternal.h:
       
  5472         * WebView/WebHTMLView.mm:
       
  5473 
       
  5474 2007-03-22  David Kilzer  <ddkilzer@apple.com>
       
  5475 
       
  5476         Reviewed by Darin.
       
  5477 
       
  5478         Use BUILDING_ON_TIGER from WebKitPrefix.h instead of local
       
  5479         MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 tests.
       
  5480 
       
  5481         * Misc/WebTypesInternal.h:
       
  5482         * WebView/WebHTMLView.mm:
       
  5483 
       
  5484 2007-03-22  Darin Adler  <darin@apple.com>
       
  5485 
       
  5486         Reviewed by Adele.
       
  5487 
       
  5488         - fix <rdar://problem/5074630> detachChildren call should move from WebKit to WebCore
       
  5489 
       
  5490         * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::prepareForDataSourceReplacement):
       
  5491         Remove call to detachChildren. This should be a WebCore responsibility.
       
  5492 
       
  5493 2007-03-19  Anders Carlsson  <acarlsson@apple.com>
       
  5494 
       
  5495         Reviewed by Dave Hyatt.
       
  5496 
       
  5497         <rdar://problem/5067983>
       
  5498         iSale: Crash occurs at WebFrameLoaderClient::dispatchDecidePolicyForMIMEType() when attempting to load a HTML template
       
  5499         
       
  5500         Restore old behavior (broke in r14533) where the resource load and download delegates are retained for as long as the 
       
  5501         data source is loading.
       
  5502         
       
  5503         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5504         (WebFrameLoaderClient::createDocumentLoader):
       
  5505         * WebView/WebDocumentLoaderMac.h:
       
  5506         * WebView/WebDocumentLoaderMac.mm:
       
  5507         (WebDocumentLoaderMac::setDataSource):
       
  5508         (WebDocumentLoaderMac::decreaseLoadCount):
       
  5509 
       
  5510 2007-03-19  Geoffrey Garen  <ggaren@apple.com>
       
  5511 
       
  5512         Speculative fix for why ASSERT_MAIN_THREAD didn't work for me. (The
       
  5513         documentation says "non-zero," not "1."
       
  5514 
       
  5515         * Misc/WebKitLogging.m:
       
  5516         (WebKitRunningOnMainThread):
       
  5517 
       
  5518 2007-03-19  Andrew Wellington  <proton@wiretapped.net>
       
  5519 
       
  5520         Reviewed by Maciej.
       
  5521 
       
  5522         Really set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
       
  5523 
       
  5524         * WebKit.xcodeproj/project.pbxproj:
       
  5525 
       
  5526 2007-03-19  Darin Adler  <darin@apple.com>
       
  5527 
       
  5528         * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
       
  5529 
       
  5530 2007-03-19  John Sullivan  <sullivan@apple.com>
       
  5531 
       
  5532         Reviewed by Justin
       
  5533         
       
  5534         - fixed <rdar://problem/5071238> REGRESSION: opt-cmd-B to show Bookmarks view does 
       
  5535         nothing when form field has focus
       
  5536 
       
  5537         * WebView/WebHTMLView.mm:
       
  5538         (-[WebHTMLView _handleStyleKeyEquivalent:]):
       
  5539         we were counting any set of modifiers plus 'b' as the standard key equivalent for
       
  5540         toggling Bold; now we only accept command+'b'
       
  5541 
       
  5542 2007-03-19  Adam Roben  <aroben@apple.com>
       
  5543 
       
  5544         Reviewed by Hyatt and Maciej.
       
  5545 
       
  5546         Updated WebCoreStatistics for the conversion of WebCoreJavaScript to
       
  5547         C++.
       
  5548 
       
  5549         * Misc/WebCoreStatistics.mm:
       
  5550         (+[WebCoreStatistics javaScriptObjectsCount]):
       
  5551         (+[WebCoreStatistics javaScriptInterpretersCount]):
       
  5552         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
       
  5553         (+[WebCoreStatistics javaScriptRootObjectTypeCounts]): Moved
       
  5554         conversion to NSCountedSet here from WebCore.
       
  5555         (+[WebCoreStatistics garbageCollectJavaScriptObjects]):
       
  5556         (+[WebCoreStatistics garbageCollectJavaScriptObjectsOnAlternateThread:]):
       
  5557         (+[WebCoreStatistics shouldPrintExceptions]):
       
  5558         (+[WebCoreStatistics setShouldPrintExceptions:]):
       
  5559         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
       
  5560         (+[WebCoreStatistics javaScriptRootObjectClasses]):
       
  5561 
       
  5562 2007-03-18  Andrew Wellington  <proton@wiretapped.net>
       
  5563 
       
  5564         Reviewed by Mark Rowe
       
  5565         
       
  5566         Set Xcode editor to use 4 space indentation (http://webkit.org/coding/coding-style.html)
       
  5567 
       
  5568         * WebKit.xcodeproj/project.pbxproj:
       
  5569 
       
  5570 2007-03-19  Mark Rowe  <mrowe@apple.com>
       
  5571 
       
  5572         Rubber-stamped by Brady.
       
  5573 
       
  5574         Update references to bugzilla.opendarwin.org with bugs.webkit.org.
       
  5575 
       
  5576         * WebInspector/webInspector/inspector.css:
       
  5577         * WebView/WebHTMLView.mm:
       
  5578         (-[WebHTMLView firstRectForCharacterRange:]):
       
  5579         * WebView/WebView.mm:
       
  5580         (-[WebView initWithFrame:frameName:groupName:]):
       
  5581 
       
  5582 2007-03-18  David Hyatt  <hyatt@apple.com>
       
  5583 
       
  5584         Move frame borders out of WebKit and into WebCore.
       
  5585 
       
  5586         Reviewed by aroben, olliej
       
  5587 
       
  5588         * WebCoreSupport/WebFrameBridge.mm:
       
  5589         * WebKit.xcodeproj/project.pbxproj:
       
  5590         * WebView/WebFrameView.mm:
       
  5591         (-[WebFrameView drawRect:]):
       
  5592         (-[WebFrameView setFrameSize:]):
       
  5593         * WebView/WebFrameViewInternal.h:
       
  5594 
       
  5595 2007-03-17  John Sullivan  <sullivan@apple.com>
       
  5596 
       
  5597         Reviewed by Tim Hatcher
       
  5598         
       
  5599         Discovered while working on <rdar://problem/5070334> that many WebView calls will crash if called
       
  5600         after -[WebView close] has executed because _private->page is deferenced after it's been set to 0. 
       
  5601         It might be silly/wrong to call these methods after -close, but obviously it shouldn't crash. Made
       
  5602         each use of _private->page robust against nil-dereferencing.
       
  5603 
       
  5604         * WebView/WebView.mm:
       
  5605         (-[WebView _loadBackForwardListFromOtherView:]):
       
  5606         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  5607         (-[WebView _setDashboardBehavior:to:]):
       
  5608         (-[WebView _dashboardBehavior:]):
       
  5609         (-[WebView goBack]):
       
  5610         (-[WebView goForward]):
       
  5611         (-[WebView goToBackForwardItem:]):
       
  5612         (-[WebView canGoBack]):
       
  5613         (-[WebView canGoForward]):
       
  5614         (-[WebView setTabKeyCyclesThroughElements:]):
       
  5615         (-[WebView tabKeyCyclesThroughElements]):
       
  5616         (-[WebView setEditable:]):
       
  5617 
       
  5618 2007-03-17  Timothy Hatcher  <timothy@apple.com>
       
  5619 
       
  5620         Reviewed by Mark Rowe.
       
  5621 
       
  5622         Made Version.xcconfig smarter when building for different configurations.
       
  5623         Now uses the 522+ OpenSource version for Debug and Release, while using the
       
  5624         full 522.4 version for Production builds. The system prefix is also computed
       
  5625         based on the current system, so 4522.4 on Tiger and 5522.4 on Leopard.
       
  5626 
       
  5627         * Configurations/Version.xcconfig:
       
  5628         * Configurations/WebKit.xcconfig:
       
  5629 
       
  5630 2007-03-16  Oliver Hunt  <oliver@apple.com>
       
  5631 
       
  5632         Reviewed by Hyatt.
       
  5633 
       
  5634         The old canSaveAsWebArchive call was necessary as stand alone
       
  5635         images used to be rendered by ImageDocument.
       
  5636 
       
  5637         Fixes rdar://problem/5061252
       
  5638 
       
  5639         * WebCoreSupport/WebDragClient.h:
       
  5640         * WebCoreSupport/WebDragClient.mm:
       
  5641         (WebDragClient::declareAndWriteDragImage):
       
  5642         * WebKit.xcodeproj/project.pbxproj:
       
  5643 
       
  5644 2007-03-15  Brady Eidson  <beidson@apple.com>
       
  5645 
       
  5646         Reviewed by Maciej
       
  5647 
       
  5648         <rdar://problem/4429701>
       
  5649         Implements a port blocking black list that matches Firefox's
       
  5650 
       
  5651         * English.lproj/Localizable.strings: Added localizable string for port blocked error code
       
  5652 
       
  5653         * Misc/WebKitErrors.h:
       
  5654         * Misc/WebKitErrors.m:
       
  5655         (registerErrors): Add new port blocked error code to WebKitErrorDomain
       
  5656 
       
  5657         * WebCoreSupport/WebFrameLoaderClient.h:
       
  5658         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5659         (WebFrameLoaderClient::cancelledError): Fixed coding style
       
  5660         (WebFrameLoaderClient::blockedError): Return a ResourceError with the new custom error code
       
  5661 
       
  5662 2007-03-15  Timothy Hatcher  <timothy@apple.com>
       
  5663 
       
  5664         Reviewed by John.
       
  5665 
       
  5666         * Fixes: <rdar://problem/4927747> WebKit's Current Library Version number should match the Info.plist Version
       
  5667         * Factored out most of our common build settings into .xcconfig files. Anything that was common in
       
  5668           each build configuration was factored out into the shared .xcconfig file.
       
  5669         * Adds a Version.xcconfig file to define the current framework version, to be used in other places.
       
  5670         * Use the new $(BUNDLE_VERSION) (defined in Version.xcconfig) in the preprocessed Info.plist.
       
  5671         * Use the versions defined in Version.xcconfig to set $(DYLIB_CURRENT_VERSION).
       
  5672         * Make WebKit use the same warning flags as the other projects. This required two casts to be added to fix new warnings.
       
  5673 
       
  5674         * Configurations/Base.xcconfig: Added.
       
  5675         * Configurations/DebugRelease.xcconfig: Added.
       
  5676         * Configurations/Version.xcconfig: Added.
       
  5677         * Configurations/WebKit.xcconfig: Added.
       
  5678         * Info.plist:
       
  5679         * Misc/WebKitVersionChecks.h:
       
  5680         * Plugins/WebBaseNetscapePluginStream.m:
       
  5681         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
  5682         * WebKit.xcodeproj/project.pbxproj:
       
  5683 
       
  5684 2007-03-15  Kevin Decker  <kdecker@apple.com>
       
  5685 
       
  5686         Reviewed by Anders.
       
  5687 
       
  5688         Fixed: <rdar://problem/5001428> stationery background images do not display
       
  5689        
       
  5690         Change 19244 fixed the method -[WebResource _shouldIgnoreWhenUnarchiving], but also broke Mail stationery.
       
  5691         
       
  5692         The problem was that with archivedResourceForURL now fixed, the engine will try to decode the images.  These images wouldn't decode because
       
  5693         Mail re-encodes and directly manipulates the image data in such a way that prevented WebKit from decoding the image.  Because Mail was giving
       
  5694         us bad data, the images wouldn't render.  This was never an issue before because archivedResourceForURL (broken) always returned nil, thus the
       
  5695         engine would never attempt to decode the resource, therefore the responsibility was delegated to Mail's protocol handler, which would do the 
       
  5696         right thing and load the image.
       
  5697         
       
  5698         Since Mail is relying on the fact it can store arbitrary data in WebArchives, I've introduced SPI that acts as a hint for us to ignore certain 
       
  5699         subresources while unarchiving. This SPI is -[WebResource _shouldIgnoreWhenUnarchiving].
       
  5700         
       
  5701         * WebView/WebResource.mm: Addd private ivar shouldIgnoreWhenUnarchiving.
       
  5702         (-[WebResource _ignoreWhenUnarchiving]): Added.
       
  5703         (-[WebResource _shouldIgnoreWhenUnarchiving]): Added.
       
  5704         * WebView/WebResourcePrivate.h: Added two methods to private header.
       
  5705         * WebView/WebUnarchivingState.m:
       
  5706         (-[WebUnarchivingState archivedResourceForURL:]): Check if we should ignore the resource.
       
  5707 
       
  5708 2007-03-15  Mark Rowe  <mrowe@apple.com>
       
  5709 
       
  5710         Reviewed by Antti.
       
  5711 
       
  5712         Fix for <rdar://problem/5065060> ASSERTION FAILURE: newUsername && newPassword
       
  5713         when submitting an authentication form without password.
       
  5714 
       
  5715         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5716         (WebFrameLoaderClient::dispatchWillSubmitForm): Don't omit form fields with empty values from the dictionary
       
  5717         passed to the delegate.
       
  5718 
       
  5719 2007-03-14  Anders Carlsson  <acarlsson@apple.com>
       
  5720 
       
  5721         Reviewed by Dave Hyatt.
       
  5722 
       
  5723         Don't add the data twice, it's also done by didReceiveData.
       
  5724         
       
  5725         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5726         (WebFrameLoaderClient::deliverArchivedResources):
       
  5727 
       
  5728 2007-03-14  Anders Carlsson  <acarlsson@apple.com>
       
  5729 
       
  5730         Fix segmentation fault when running layout tests.
       
  5731 
       
  5732         Remove bogus check that that I added on purpose to see how good Geoff is at spotting mistakes when reviewing code.
       
  5733         (Turns out he's not that good!)
       
  5734         
       
  5735         * WebView/WebDocumentLoaderMac.mm:
       
  5736         (WebDocumentLoaderMac::increaseLoadCount):
       
  5737 
       
  5738 2007-03-14  Anders Carlsson  <acarlsson@apple.com>
       
  5739 
       
  5740         Reviewed by Geoff.
       
  5741 
       
  5742         http://bugs.webkit.org/show_bug.cgi?id=13076
       
  5743         REGRESSION: Multiple loading tabs cause assertion in WebDocumentLoaderMac::decreaseLoadCount(unsigned long)
       
  5744 
       
  5745         Store the identifier set in the document loader since identifiers are per-webview and not global.
       
  5746         
       
  5747         * WebView/WebDocumentLoaderMac.h:
       
  5748         * WebView/WebDocumentLoaderMac.mm:
       
  5749         (WebDocumentLoaderMac::WebDocumentLoaderMac):
       
  5750         (WebDocumentLoaderMac::attachToFrame):
       
  5751         (WebDocumentLoaderMac::increaseLoadCount):
       
  5752         (WebDocumentLoaderMac::decreaseLoadCount):
       
  5753 
       
  5754 2007-03-14  David Harrison  <harrison@apple.com>
       
  5755 
       
  5756         Reviewed by Maciej.
       
  5757 
       
  5758         <rdar://problem/5009625> REGRESSION: Aperture 1.5: Can't select entire line of text after correcting a misspelled word
       
  5759 
       
  5760         * WebCoreSupport/WebEditorClient.mm:
       
  5761         (WebEditorClient::respondToChangedSelection):
       
  5762         * WebCoreSupport/WebFrameBridge.mm:
       
  5763         Provide compatibility by not sending WebViewDidChangeSelectionNotification if
       
  5764         the app is Aperture and is linked against WebKit 2.0.
       
  5765 
       
  5766 === Safari-5522.4 ===
       
  5767 
       
  5768 2007-03-14  Anders Carlsson  <acarlsson@apple.com>
       
  5769 
       
  5770         Reviewed by Geoff.
       
  5771 
       
  5772         <rdar://problem/5058714>
       
  5773         http://bugs.webkit.org/show_bug.cgi?id=13050
       
  5774         
       
  5775         World leaks seen on Leopard after opening then closing tab (13050)
       
  5776 
       
  5777         Add a hash set to prevent the load count to be increased twice for the same resource.
       
  5778         
       
  5779         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5780         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  5781         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  5782         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  5783         * WebView/WebDocumentLoaderMac.h:
       
  5784         * WebView/WebDocumentLoaderMac.mm:
       
  5785         (loadingResources):
       
  5786         (WebDocumentLoaderMac::increaseLoadCount):
       
  5787         (WebDocumentLoaderMac::decreaseLoadCount):
       
  5788 
       
  5789 2007-03-14 Adele Peterson  <adele@apple.com>
       
  5790 
       
  5791         Reviewed by Darin.
       
  5792 
       
  5793         Removed _insertTextWithEvent, _insertNewlineWithEvent, and _insertTextWithEvent.
       
  5794         Instead, use execCommand and insertText methods on the Editor.
       
  5795 
       
  5796         * WebView/WebHTMLView.mm:
       
  5797         (-[WebHTMLView insertTab:]):
       
  5798         (-[WebHTMLView insertBacktab:]):
       
  5799         (-[WebHTMLView insertNewline:]):
       
  5800         (-[WebHTMLView insertLineBreak:]):
       
  5801         (-[WebHTMLView insertParagraphSeparator:]):
       
  5802         (-[WebHTMLView insertNewlineIgnoringFieldEditor:]):
       
  5803         (-[WebHTMLView insertTabIgnoringFieldEditor:]):
       
  5804         (-[WebHTMLView yank:]):
       
  5805         (-[WebHTMLView yankAndSelect:]):
       
  5806         (-[WebHTMLView doCommandBySelector:]):
       
  5807         (-[WebHTMLView insertText:]):
       
  5808 
       
  5809 2007-03-14  David Hyatt  <hyatt@apple.com>
       
  5810 
       
  5811         Fixes to ensure that the resource loader's shared buffer can always be used.
       
  5812 
       
  5813         Reviewed by olliej, mjs
       
  5814 
       
  5815         * Misc/WebIconDatabase.mm:
       
  5816         (-[WebIconDatabase _convertToWebCoreFormat]):
       
  5817         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5818         (WebFrameLoaderClient::deliverArchivedResources):
       
  5819 
       
  5820 2007-03-13  Oliver Hunt  <oliver@apple.com>
       
  5821 
       
  5822         Reviewed by Brady.
       
  5823 
       
  5824         Modify subresourceForURL to take NSString argument 
       
  5825         so we can avoid [NSURL absoluteString]
       
  5826 
       
  5827         * WebView/WebDataSource.mm:
       
  5828         (-[WebDataSource subresourceForURL:]):
       
  5829 
       
  5830 2007-03-13  Brady Eidson  <beidson@apple.com>
       
  5831 
       
  5832         Rubberstamped by Alice
       
  5833 
       
  5834         Meant to be part of my previous checkin... pruning unused code from WebKit
       
  5835 
       
  5836         * WebView/WebFrame.mm: Removed _canCachePage
       
  5837         * WebView/WebFrameInternal.h: Ditto
       
  5838 
       
  5839 2007-03-13  Beth Dakin  <bdakin@apple.com>
       
  5840 
       
  5841         Reviewed by Maciej.
       
  5842 
       
  5843         Fix for <rdar://problem/4277074> 8F32: Help Viewer crashed on 
       
  5844         clicking link - KHTMLView::viewportMouseReleaseEvent (12647)
       
  5845 
       
  5846         Re-set the DocumentLoader's frame when loading it from the page 
       
  5847         cache before setting the document view.
       
  5848 
       
  5849         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5850         (WebFrameLoaderClient::setDocumentViewFromPageCache):
       
  5851 
       
  5852 2007-03-13  Timothy Hatcher  <timothy@apple.com>
       
  5853 
       
  5854         Reviewed by Geoff.
       
  5855 
       
  5856         <rdar://problem/5057117> Spoof user agent on Yahoo.com with Safari and WebKit as version 4xx
       
  5857 
       
  5858         * Plugins/WebBaseNetscapePluginView.mm:
       
  5859         (-[WebBaseNetscapePluginView userAgent]): Stop using the deprecated lossyCString method.
       
  5860         * WebCoreSupport/WebFrameBridge.mm: Removed dead code, userAgentForURL: wasn't used.
       
  5861         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5862         (WebFrameLoaderClient::userAgent): Call WebView's _userAgentForURL:.
       
  5863         * WebView/WebView.mm:
       
  5864         (-[WebView _cachedResponseForURL:]): Call userAgentForURL: instead of _userAgent.
       
  5865         (-[WebView userAgentForURL:]): Call _userAgentForURL:.
       
  5866         (-[WebView _userAgentWithApplicationName:andWebKitVersion:]): New method to construct a UA.
       
  5867         (-[WebView _computeUserAgent]): Ractored out into _userAgentWithApplicationName:andWebKitVersion:
       
  5868         (-[WebView _userAgentForURL:]): Tail compare for Yahoo.com, and return a UA with an older WebKit version.
       
  5869         * WebView/WebViewInternal.h: Declare _userAgentForURL:.
       
  5870 
       
  5871 2007-03-12  David Harrison  <harrison@apple.com>
       
  5872 
       
  5873         Reviewed by Darin.
       
  5874 
       
  5875         <rdar://problem/4743256> ctrl-y key binding (yank) should do nothing when kill ring is empty
       
  5876 
       
  5877         Test updated:
       
  5878         * editing/pasteboard/emacs-cntl-y-001.html:
       
  5879         
       
  5880         * WebView/WebHTMLView.mm:
       
  5881         (-[WebHTMLView yank:]):
       
  5882         (-[WebHTMLView yankAndSelect:]):
       
  5883         Do nothing if the killring is empty.
       
  5884 
       
  5885 2007-03-12  Darin Adler  <darin@apple.com>
       
  5886 
       
  5887         Reviewed by Tim Hatcher.
       
  5888 
       
  5889         - update for the new naming scheme for the Objective-C wrapper-creation
       
  5890           functions: _wrapElement: instead of _elementWith:, etc.
       
  5891 
       
  5892         * WebCoreSupport/WebEditorClient.mm:
       
  5893         (WebEditorClient::textFieldDidBeginEditing):
       
  5894         (WebEditorClient::textFieldDidEndEditing):
       
  5895         (WebEditorClient::textDidChangeInTextField):
       
  5896         (WebEditorClient::doTextFieldCommandFromEvent):
       
  5897         (WebEditorClient::textWillBeDeletedInTextField):
       
  5898         (WebEditorClient::textDidChangeInTextArea):
       
  5899         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5900         (WebFrameLoaderClient::createPlugin):
       
  5901         (WebFrameLoaderClient::createJavaAppletWidget):
       
  5902         * WebView/WebFrame.mm: (kit):
       
  5903         Use the _wrapElement-style functions.
       
  5904 
       
  5905 2007-03-12  Anders Carlsson  <acarlsson@apple.com>
       
  5906 
       
  5907         Reviewed by Maciej.
       
  5908 
       
  5909         <rdar://problem/5057575> 
       
  5910         REGRESSION: Repro Crash in FrameLoader::frame loading about:blank in PLT
       
  5911         
       
  5912         Always get the web view from the current web frame, since the document loader's frame can have been zeroed out
       
  5913         (for example when detaching the document loader).
       
  5914         
       
  5915         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  5916         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
  5917         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
       
  5918         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  5919         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
  5920         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
  5921         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  5922 
       
  5923 2007-03-11  Oliver Hunt  <oliver@apple.com>
       
  5924 
       
  5925         Reviewed by Adele.
       
  5926         
       
  5927         Moved respondToChangedSelection from FrameBridge to EditorClient
       
  5928         
       
  5929         * WebCoreSupport/WebEditorClient.h:
       
  5930         * WebCoreSupport/WebEditorClient.mm:
       
  5931         (WebEditorClient::respondToChangedSelection):
       
  5932         * WebCoreSupport/WebFrameBridge.mm:
       
  5933           Removed respondToChangedSelection from bridge
       
  5934 
       
  5935 2007-03-11  Darin Adler  <darin@apple.com>
       
  5936 
       
  5937         Reviewed by Adele.
       
  5938 
       
  5939         - fix http://bugs.webkit.org/show_bug.cgi?id=12964
       
  5940           <rdar://problem/5045717> REGRESSION: crash in -[WebBaseNetscapePluginStream _deliverData]
       
  5941           at simpsonsmovie.com (12964)
       
  5942 
       
  5943         * Plugins/WebBaseNetscapePluginStream.m:
       
  5944         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
  5945         At every place we call the plug-in, since it could destroy the stream, get pluginView into a local
       
  5946         variable; it will be set to nil if the stream is destroyed.
       
  5947         (-[WebBaseNetscapePluginStream _destroyStream]): Added calls to retain/release to handle the case where
       
  5948         one of the calls to the plug-in destroys the stream. Added a call to cancelPreviousPerformRequestsWithTarget
       
  5949         in case _deliverData has been scheduled but not yet delivered. Also get pluginView into a local variable
       
  5950         as mentioned above, and check at strategic points and exit if the stream was already destroyed to avoid
       
  5951         multiple calls to NPP_DestroyStream or NPP_URLNotify.
       
  5952         (-[WebBaseNetscapePluginStream _deliverData]): Ditto.
       
  5953 
       
  5954 2007-03-10  Geoffrey Garen  <ggaren@apple.com>
       
  5955 
       
  5956         Reviewed by Darin Adler.
       
  5957 
       
  5958         Fixed <rdar://problem/4587763> PAC file: lock inversion between QT and 
       
  5959         JSCore causes a hang @ www.panoramas.dk
       
  5960         
       
  5961         See JavaScriptCore ChangeLog for details.
       
  5962 
       
  5963         Drop the JSLock before making calls through the plug-in API from functions
       
  5964         that may have been called by JavaScript.
       
  5965         
       
  5966         * Plugins/WebBaseNetscapePluginView.mm:
       
  5967         (-[WebBaseNetscapePluginView sendEvent:]):
       
  5968         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
       
  5969         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
       
  5970         (-[WebBaseNetscapePluginView createPluginScriptableObject]):
       
  5971         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
       
  5972         (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
       
  5973         (-[WebBaseNetscapePluginView loadPluginRequest:]):
       
  5974         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
  5975         * Plugins/WebPluginController.mm:
       
  5976         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
       
  5977         (-[WebPluginController startAllPlugins]):
       
  5978         (-[WebPluginController stopAllPlugins]):
       
  5979         (-[WebPluginController addPlugin:]):
       
  5980         (-[WebPluginController destroyPlugin:]):
       
  5981         (-[WebPluginController destroyAllPlugins]):
       
  5982 
       
  5983 2007-03-10  David Kilzer  <ddkilzer@webkit.org>
       
  5984 
       
  5985         Reviewed by Darin.
       
  5986 
       
  5987         - fix http://bugs.webkit.org/show_bug.cgi?id=9609
       
  5988           REGRESSION: Missing image icon needs to be moved back to WebKit
       
  5989 
       
  5990         * WebView/WebHTMLView.mm:
       
  5991         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  5992         Use WebCore::Image::loadPlatformResource(const char*) to load the missingImage image.
       
  5993 
       
  5994 2007-03-10  Mark Rowe  <mrowe@apple.com>
       
  5995 
       
  5996         Reviewed by John.
       
  5997 
       
  5998         <rdar://problem/5051827> HIWebView handling of kEventControlGetData is broken in 64-bit
       
  5999 
       
  6000         On Leopard the kEventParamControlDataBufferSize event parameter is of type typeByteCount.
       
  6001         The 32-bit implementation of GetEventParameter will coerce between integer types and
       
  6002         typeByteCount while the 64-bit version will return a failure. As typeByteCount is new
       
  6003         in Leopard we must continue using typeSInt32 when building for Tiger.
       
  6004 
       
  6005         * Carbon/HIWebView.m:
       
  6006         (HIWebViewEventHandler):
       
  6007 
       
  6008 2007-03-09  Timothy Hatcher  <timothy@apple.com>
       
  6009 
       
  6010         Reviewed by Darin.
       
  6011 
       
  6012         <rdar://problem/4976254> Please get off _NSSoftLinkingGetFrameworkFuncPtr
       
  6013 
       
  6014         Use dlopen and dlsym to access the DCSShowDictionaryServiceWindow function.
       
  6015 
       
  6016         * WebView/WebHTMLView.mm:
       
  6017         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
  6018 
       
  6019 2007-03-09  Darin Adler  <darin@apple.com>
       
  6020 
       
  6021         Reviewed by Justin.
       
  6022 
       
  6023         - fix http://bugs.webkit.org/show_bug.cgi?id=8928
       
  6024           <rdar://problem/5045708> REPRODUCIBLE ASSERT: Cannot paste HTML into a
       
  6025           contenteditable region in an XHTML document (8928)
       
  6026 
       
  6027         * WebView/WebHTMLView.mm:
       
  6028         (-[WebHTMLView _hasHTMLDocument]): Added.
       
  6029         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
       
  6030         Don't call AppKit's conversion from the DOM to an attributed string if the document
       
  6031         is not an HTML document, to work around an AppKit limitation (Radar 5052390).
       
  6032 
       
  6033 2007-03-09  Darin Adler  <darin@apple.com>
       
  6034 
       
  6035         * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
       
  6036 
       
  6037 2007-03-08  Mark Rowe  <mrowe@apple.com>
       
  6038 
       
  6039         Reviewed by Tim Hatcher.
       
  6040 
       
  6041         <rdar://problem/5051616> Mouse clicks and movement are ignored in HIWebView on 64-bit
       
  6042 
       
  6043         Mouse events are not being handled correctly as GetControlKind is returning an error
       
  6044         on 64-bit.  The more modern HIObjectIsOfClass behaves correctly for this use.
       
  6045 
       
  6046         * Carbon/HIWebView.m:
       
  6047         (HIWebViewDestructor):
       
  6048         (WindowHandler): Use HIObjectIsOfClass in place of GetControlKind.
       
  6049         (HIWebViewEventHandler): Don't leak the NSEvent.
       
  6050 
       
  6051 2007-03-08  Bruce Q Hammond  <bruceq@apple.com>
       
  6052 
       
  6053         Reviewed by Darin.
       
  6054 
       
  6055         Fix for http://bugs.webkit.org/show_bug.cgi?id=13009
       
  6056         Console spews "CGContextGetType: invalid context" non-stop on web site
       
  6057 
       
  6058         * Plugins/WebBaseNetscapePluginView.mm:
       
  6059         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  6060         (-[WebBaseNetscapePluginView restorePortState:]):
       
  6061 
       
  6062 2007-03-08  Mark Rowe  <mrowe@apple.com>
       
  6063 
       
  6064         Reviewed by Tim Hatcher.
       
  6065 
       
  6066         <rdar://problem/4561772> HIWebView does not exist for 64-bit
       
  6067 
       
  6068         Update HIWebView and friends to work without QuickDraw.
       
  6069 
       
  6070         Changes are gleaned from the 64-bit support inside HICocoaView.  The main
       
  6071         fact of interest are that all Carbon windows must have compositing enabled
       
  6072         so the code paths that aren't accessible are #ifdef'd out.  Conveniently
       
  6073         these are the exact code paths that make use of QuickDraw.
       
  6074 
       
  6075         There are currently minor event-handling and invalidation issues running as
       
  6076         64-bit that are not present in 32-bit.
       
  6077 
       
  6078         * Carbon/CarbonUtils.m:
       
  6079         * Carbon/CarbonWindowAdapter.m:
       
  6080         * Carbon/CarbonWindowFrame.m:
       
  6081         * Carbon/HIViewAdapter.m:
       
  6082         (SetViewNeedsDisplay):
       
  6083         * Carbon/HIWebView.m:
       
  6084         (Draw):
       
  6085         (Click):
       
  6086         (SyncFrame):
       
  6087         (StartUpdateObserver):
       
  6088         (StopUpdateObserver):
       
  6089         (UpdateObserver):
       
  6090         * WebKit.LP64.exp: Removed.
       
  6091         * WebKit.xcodeproj/project.pbxproj: Always use WebKit.exp.
       
  6092 
       
  6093 2007-03-08  Timothy Hatcher  <timothy@apple.com>
       
  6094 
       
  6095         Reviewed by John.
       
  6096 
       
  6097         <rdar://problem/4664697> highlighter SPI needs a node parameter to give more context
       
  6098 
       
  6099         Added new methods to the WebHTMLHighlighter protocol that include the DOMNode being painted.
       
  6100 
       
  6101         * WebCoreSupport/WebFrameBridge.mm:
       
  6102         (-[WebFrameBridge customHighlightRect:forLine:representedNode:WebCore::]):
       
  6103         (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:entireLine:representedNode:WebCore::]):
       
  6104         * WebKit.xcodeproj/project.pbxproj:
       
  6105         * WebView/WebHTMLViewPrivate.h:
       
  6106 
       
  6107 2007-03-08  Anders Carlsson  <acarlsson@apple.com>
       
  6108 
       
  6109         Try fixing the buildbot build.
       
  6110         
       
  6111         * Plugins/WebBaseNetscapePluginView.mm:
       
  6112         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  6113 
       
  6114 2007-03-07  Anders Carlsson  <acarlsson@apple.com>
       
  6115 
       
  6116         Leopard build fix.
       
  6117         
       
  6118         * Plugins/WebBaseNetscapePluginView.mm:
       
  6119 
       
  6120 2007-03-07  Bruce Q Hammond  <bruceq@apple.com>
       
  6121 
       
  6122         Reviewed by Darin.
       
  6123 
       
  6124         - fix http://bugs.webkit.org/show_bug.cgi?id=12515
       
  6125           Plug-ins that draw through the Quickdraw interface fail in a CGBitmapContex.
       
  6126           <rdar://problem/4975122>
       
  6127 
       
  6128         This fixes a problem with Netscape-style Plug-ins which draw through the Quickdraw APIs
       
  6129         being unable to render into offscreen bitmap contexts.
       
  6130 
       
  6131         This patches both saveAndSetNewPortStateForUpdate: and restorePortState:
       
  6132         These methods now check the current context and see if appropriate setup/cleanup needs to be done
       
  6133         for offscreen rendering.
       
  6134 
       
  6135         * Plugins/WebBaseNetscapePluginView.mm:
       
  6136         (QDPixelFormatFromCGBitmapInfo):
       
  6137         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
  6138         (-[WebBaseNetscapePluginView restorePortState:]):
       
  6139 
       
  6140 2007-03-07  Anders Carlsson  <acarlsson@apple.com>
       
  6141 
       
  6142         Reviewed by Darin.
       
  6143 
       
  6144         Use HardRetain/HardRelease.
       
  6145         
       
  6146         * WebView/WebDocumentLoaderMac.mm:
       
  6147         (WebDocumentLoaderMac::setDataSource):
       
  6148         (WebDocumentLoaderMac::attachToFrame):
       
  6149         (WebDocumentLoaderMac::detachFromFrame):
       
  6150         (WebDocumentLoaderMac::increaseLoadCount):
       
  6151         (WebDocumentLoaderMac::decreaseLoadCount):
       
  6152 
       
  6153 2007-03-07  Anders Carlsson  <acarlsson@apple.com>
       
  6154 
       
  6155         Reviewed by Maciej.
       
  6156 
       
  6157         <rdar://problem/4961259> 
       
  6158         REGRESSION: Bumper Car 2.1.1 - Crash at WebCore::FrameLoader::receivedMainResourceError when encountering a invalid URL address
       
  6159         
       
  6160         (The crash was already fixed, this actually makes Bumper Car load the error page correctly.)
       
  6161         
       
  6162         This adds a "load counter" to the document loader and keeps the data source retained for as long as something is loading. 
       
  6163         
       
  6164         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  6165         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  6166         Increase the load counter.
       
  6167         
       
  6168         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  6169         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  6170         Decrease the load counter,
       
  6171         
       
  6172         * WebView/WebDocumentLoaderMac.h:
       
  6173         * WebView/WebDocumentLoaderMac.mm:
       
  6174         (WebDocumentLoaderMac::WebDocumentLoaderMac):
       
  6175         
       
  6176         (WebDocumentLoaderMac::attachToFrame):
       
  6177         If the document loader has been detached, make sure to retain its data source here.
       
  6178         
       
  6179         (WebDocumentLoaderMac::detachFromFrame):
       
  6180         Release the data source.
       
  6181         
       
  6182         (WebDocumentLoaderMac::increaseLoadCount):
       
  6183         Retain the data source if load count was 0.
       
  6184         
       
  6185         (WebDocumentLoaderMac::decreaseLoadCount):
       
  6186         Release the data source if load count becomes 0
       
  6187 
       
  6188 2007-03-07  Adele Peterson  <adele@apple.com>
       
  6189 
       
  6190         Reviewed by Darin.
       
  6191 
       
  6192         WebKit part of fix for:
       
  6193         http://bugs.webkit.org/show_bug.cgi?id=10871
       
  6194         http://bugs.webkit.org/show_bug.cgi?id=12677
       
  6195         <rdar://problem/4823129> REGRESSION: IME key events different in nightly
       
  6196         <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
       
  6197 
       
  6198         * WebView/WebHTMLView.mm:
       
  6199         (-[WebHTMLView _interceptEditingKeyEvent: shouldSaveCommand:]): Added shouldSaveCommand field to WebHTMLViewInterpretKeyEventsParameters.
       
  6200           When shouldSaveCommand is true, we call interpretKeyEvents and in doCommandBySelector and insertText, we just save the information without performing any action.
       
  6201           When shouldSaveCommand is false, we used the saved information and call doCommandBySelector and insertText directly.
       
  6202           If there's no saved command data in the KeyboardEvent, call interpretKeyEvents, and honor the shouldSaveCommand argument.  This allows repeating keypress events
       
  6203           to function normally.
       
  6204         (-[WebHTMLView doCommandBySelector:]): If the WebHTMLViewInterpretKeyEventsParameters shouldSaveCommand field is set, then
       
  6205           just save the selector information in the KeyboardEvent, and don't perform the action.
       
  6206         (-[WebHTMLView insertText:]): ditto. 
       
  6207           insertText can be called from an input method or from normal key event processing
       
  6208           If its from an input method, then we should go ahead and insert the text now.  
       
  6209           The only way we know if its from an input method is to check hasMarkedText.  There might be a better way to do this.
       
  6210 
       
  6211         * WebView/WebHTMLViewInternal.h: Added shouldSaveCommand argument.
       
  6212         * WebView/WebViewInternal.h: ditto.
       
  6213 
       
  6214         * WebCoreSupport/WebEditorClient.h:
       
  6215         * WebCoreSupport/WebEditorClient.mm:
       
  6216         (WebEditorClient::handleKeypress): Changed handleKeyPress to handleKeypress.  Call _interceptEditingKeyEvent with shouldSaveCommand:NO.
       
  6217         (WebEditorClient::handleInputMethodKeypress):  Call _interceptEditingKeyEvent with shouldSaveCommand:YES.
       
  6218 
       
  6219 2007-03-07  Anders Carlsson  <acarlsson@apple.com>
       
  6220 
       
  6221         Reviewed by Brady.
       
  6222 
       
  6223         Update to match WebCore.
       
  6224         
       
  6225         * Plugins/WebNetscapePluginStream.mm:
       
  6226         (-[WebNetscapePluginStream start]):
       
  6227 
       
  6228 2007-03-07  Jim Correia  <jim.correia@pobox.com>
       
  6229 
       
  6230         Reviewed by Darin.
       
  6231 
       
  6232         - WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=12463
       
  6233           WebArchiver - attempt to insert nil exception when archive empty iframe
       
  6234 
       
  6235         When dealing with an iframe element with no src attribute, the element contains
       
  6236         a src attribute in the DOM with a URL of "about:blank" and some HTML to implement
       
  6237         the blank page.  In the original page source, however, the iframe element does
       
  6238         not include a src attribute, which caused a nil archive to be returned for the
       
  6239         childFrameArchive and thus caused the bug.  The fix is a simple nil check.
       
  6240 
       
  6241         Test: webarchive/archive-empty-frame-source.html
       
  6242 
       
  6243         * WebView/WebArchiver.mm:
       
  6244         (+ (NSArray *)_subframeArchivesForFrame:(WebFrame *)frame): Don't add childFrameArchive 
       
  6245         to the subframeArchives array if it is nil.
       
  6246 
       
  6247 2007-03-06  John Sullivan  <sullivan@apple.com>
       
  6248 
       
  6249         Reviewed by Darin
       
  6250         
       
  6251         Made WebAuthenticationHandler.h SPI so Safari can call it directly.
       
  6252 
       
  6253         * WebKit.exp:
       
  6254         added .objc_class_name_WebPanelAuthenticationHandler
       
  6255         * WebKit.xcodeproj/project.pbxproj:
       
  6256         changed status of WebAuthenticationHandler.h from "project" to "private"
       
  6257 
       
  6258 2007-03-06  Kevin McCullough  <kmccullough@apple.com>
       
  6259 
       
  6260         Reviewed by Darin.
       
  6261 
       
  6262         - Rename a function to clarify its purpose.
       
  6263 
       
  6264         * WebView/WebView.mm:
       
  6265         (+[WebView registerURLSchemeAsLocal:]):
       
  6266         * WebView/WebViewPrivate.h:
       
  6267 
       
  6268 2007-03-06  Anders Carlsson  <acarlsson@apple.com>
       
  6269 
       
  6270         Reviewed by Adam.
       
  6271 
       
  6272         Update for WebCore changes.
       
  6273         
       
  6274         * WebCoreSupport/WebFrameLoaderClient.h:
       
  6275         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  6276         (WebFrameLoaderClient::userAgent):
       
  6277 
       
  6278 2007-03-05  Anders Carlsson  <acarlsson@apple.com>
       
  6279 
       
  6280         Reviewed by Adam, Darin.
       
  6281  
       
  6282         <rdar://problem/5025212>
       
  6283         In Mail, a crash occurs at WebCore::Frame::tree() when clicking on embedded flash object
       
  6284 
       
  6285         * Plugins/WebBaseNetscapePluginView.mm:
       
  6286         (-[WebBaseNetscapePluginView loadPluginRequest:]):
       
  6287         Handle the case where the web view returned from the delegate method is null. Also, send out an error notification
       
  6288         in that case so we can catch it.
       
  6289 
       
  6290 2007-03-05  John Sullivan  <sullivan@apple.com>
       
  6291 
       
  6292         Reviewed by Darin and Kevin D
       
  6293 
       
  6294         - fixed <rdar://problem/5038087> Header and footer on printed page are too large after certain steps
       
  6295 
       
  6296         * WebView/WebView.mm:
       
  6297         (-[WebView _adjustPrintingMarginsForHeaderAndFooter]):
       
  6298         This method was modifying the margins in the NSPrintInfo object without any sort of check whether
       
  6299         this had already been done. In some cases this can be called multiple times with the same 
       
  6300         NSPrintInfo, so now we stash information in the NSPrintInfo's dictionary such that we always
       
  6301         start with a fresh copy of the original margins.
       
  6302 
       
  6303 2007-03-02  Kevin McCullough  <kmccullough@apple.com>
       
  6304 
       
  6305         Reviewed by Geoff.
       
  6306 
       
  6307         - rdar://problem/4922454
       
  6308         - This fixes a security issue by making remote referrers not able to access local
       
  6309         resources, unless they register their schemes to be treated as local. The result is
       
  6310         that those schemes can access local resources and cannot be accessed by remote
       
  6311         referrers.
       
  6312         Because this behavior is new a link-on-or-after check is made to determine if the
       
  6313         app should use the older, less safe, behavior.
       
  6314 
       
  6315         * Misc/WebKitVersionChecks.h: added linked-on-or-after check
       
  6316         * Misc/WebNSAttributedStringExtras.mm: Moved functionalit into the base class.
       
  6317         (fileWrapperForElement):
       
  6318         * Plugins/WebNetscapePluginStream.mm: uses new canLoad functions
       
  6319         * Plugins/WebPluginContainerCheck.mm: uses new canLoad functions
       
  6320         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
       
  6321         * WebView/WebView.mm: make linked-on-or-after check and cache value, exposes SPI
       
  6322         for registering a scheme as local. 
       
  6323         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
  6324         (+[WebView registerSchemeAsLocal:]):
       
  6325         * WebView/WebViewPrivate.h: exposes SPI for registering a scheme as local.
       
  6326 
       
  6327 2007-03-01  Justin Garcia  <justin.garcia@apple.com>
       
  6328 
       
  6329         Reviewed by harrison
       
  6330         
       
  6331         <rdar://problem/4838199>
       
  6332         Integrate Mail and WebKit paste operations
       
  6333         
       
  6334         Provide subresources used to create the fragment as a
       
  6335         convenience.
       
  6336 
       
  6337         * WebView/WebHTMLView.mm:
       
  6338         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
  6339         Update the calls to the changed method.
       
  6340         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
       
  6341         Give the caller the subresources in the WebArchive and RTF cases.
       
  6342         * WebView/WebHTMLViewPrivate.h:
       
  6343 
       
  6344 2007-02-28  Oliver Hunt  <oliver@apple.com>
       
  6345 
       
  6346         Reviewed by Maciej.
       
  6347 
       
  6348         Fixes <rdar://problem/5012009>
       
  6349         
       
  6350         When looking for a requested resource we should also check
       
  6351         the set of manually added subresources if WebCore can't find it. 
       
  6352 
       
  6353         * WebView/WebDataSource.mm:
       
  6354         (-[WebDataSource subresourceForURL:]):
       
  6355 
       
  6356 2007-02-28  Brady Eidson  <beidson@apple.com>
       
  6357 
       
  6358         Reviewed by Beth
       
  6359 
       
  6360         Start using the Thread Safety Check implemented in WebCore for the DOM bindings in the rest of
       
  6361         the WebKit API instead of the ASSERT_MAIN_THREAD() hack
       
  6362 
       
  6363         * History/WebBackForwardList.mm:
       
  6364         (-[WebBackForwardList initWithWebCoreBackForwardList:]):
       
  6365         (-[WebBackForwardList init]):
       
  6366         (-[WebBackForwardList dealloc]):
       
  6367         (-[WebBackForwardList finalize]):
       
  6368         * History/WebHistoryItem.mm:
       
  6369         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
       
  6370         (-[WebHistoryItem dealloc]):
       
  6371         (-[WebHistoryItem finalize]):
       
  6372         (-[WebHistoryItem copyWithZone:]):
       
  6373         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
       
  6374         * Misc/WebIconDatabase.mm:
       
  6375         (-[WebIconDatabase init]):
       
  6376 
       
  6377 2007-02-28  Adele Peterson  <adele@apple.com>
       
  6378 
       
  6379         Reviewed by Beth.
       
  6380 
       
  6381         Fix for <rdar://problem/4887423> REGRESSION: search results popup menu strings are not localized
       
  6382         and <rdar://problem/3517227> accessibility-related strings in WebCore are not localized
       
  6383 
       
  6384         * WebCoreSupport/WebViewFactory.mm:
       
  6385         (-[WebViewFactory searchMenuNoRecentSearchesText]):
       
  6386         (-[WebViewFactory searchMenuRecentSearchesText]):
       
  6387         (-[WebViewFactory searchMenuClearRecentSearchesText]):
       
  6388         (-[WebViewFactory AXWebAreaText]):
       
  6389         (-[WebViewFactory AXLinkText]):
       
  6390         (-[WebViewFactory AXListMarkerText]):
       
  6391         (-[WebViewFactory AXImageMapText]):
       
  6392         (-[WebViewFactory AXHeadingText]):
       
  6393 
       
  6394 2007-02-28  Mark Rowe  <mrowe@apple.com>
       
  6395 
       
  6396         Reviewed by Maciej.
       
  6397 
       
  6398         <rdar://problem/5028473> WebKit allocates a huge number of NSCalendarDates while loading history file
       
  6399 
       
  6400         * History/WebHistory.mm:
       
  6401         (-[WebHistoryPrivate insertItem:atDateIndex:]): Use lastVisitedTimeInterval rather than _lastVisitedDate to avoid allocating NSCalendarDates.
       
  6402 
       
  6403 2007-02-28  Mark Rowe  <mrowe@apple.com>
       
  6404 
       
  6405         Reviewed by Tim Hatcher.
       
  6406 
       
  6407         <rdar://problem/4985524> Problem with Blot and ToT WebKit (decoding WebCoreScrollView)
       
  6408 
       
  6409         References to WebCoreScrollView as a subview of a WebHTMLView may be present in some NIB
       
  6410         files, so NSUnarchiver must be still able to look up the WebCoreScrollView class.
       
  6411 
       
  6412         * WebKit.exp: Export WebCoreScrollView symbol.
       
  6413         * WebView/WebHTMLView.mm: Add empty WebCoreScrollView class.
       
  6414 
       
  6415 2007-02-27  Adam Roben  <aroben@apple.com>
       
  6416 
       
  6417         Reviewed by Beth.
       
  6418 
       
  6419         Fix <rdar://problem/5011905> REGRESSION: "Open Link" contextual menu
       
  6420         item appears twice
       
  6421 
       
  6422         * WebCoreSupport/WebContextMenuClient.mm:
       
  6423         (fixMenusToSendToOldClients): Remove the "Open Link" item from the
       
  6424         default menu items array before sending it off to Tiger Mail.
       
  6425         (WebContextMenuClient::getCustomMenuFromDefaultItems): Set the
       
  6426         representedObject on every NSMenuItem to match our old (correct) API
       
  6427         behavior.
       
  6428 
       
  6429 2007-02-27  Mitz Pettel  <mitz@webkit.org>
       
  6430 
       
  6431         Reviewed by Darin.
       
  6432 
       
  6433         - http://bugs.webkit.org/show_bug.cgi?id=12906
       
  6434           REGRESSION: Canvas is pixelated when the page is opened in a background tab
       
  6435 
       
  6436         * WebCoreSupport/WebChromeClient.mm:
       
  6437         (WebChromeClient::scaleFactor): If the view is not in a window, use the main
       
  6438         screen's scale factor as a best guess.
       
  6439 
       
  6440 2007-02-26  John Sullivan  <sullivan@apple.com>
       
  6441 
       
  6442         Reviewed by Darin and Geoff
       
  6443 
       
  6444         * WebView/WebHTMLView.mm:
       
  6445         (coreGraphicsScreenPointForAppKitScreenPoint):
       
  6446         This method was copied from WebBrowser, and it was wrong. Fixed it. This only
       
  6447         affects the Dictionary pop-up panel.
       
  6448 
       
  6449 2007-02-26  David Hyatt  <hyatt@apple.com>
       
  6450 
       
  6451         Update web inspector to account for border-fit.
       
  6452 
       
  6453         Reviewed by darin
       
  6454 
       
  6455         * WebInspector/webInspector/inspector.js:
       
  6456 
       
  6457 2007-02-26  Geoffrey Garen  <ggaren@apple.com>
       
  6458 
       
  6459         Reviewed by Darin Adler.
       
  6460         
       
  6461         Re-arranged things to put deprecated methods at the bottom.
       
  6462 
       
  6463         * Misc/WebCoreStatistics.h:
       
  6464         * Misc/WebCoreStatistics.mm:
       
  6465         (+[WebCoreStatistics javaScriptNoGCAllowedObjectsCount]):
       
  6466         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
       
  6467         (+[WebCoreStatistics javaScriptRootObjectClasses]):
       
  6468         * WebKit.xcodeproj/project.pbxproj:
       
  6469 
       
  6470 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
       
  6471 
       
  6472         Rubber stamped by Mitz.
       
  6473         
       
  6474         - fix layout tests by fixing discrepancy in feature macros.
       
  6475 
       
  6476         * WebInspector/WebInspector.m:
       
  6477         (-[WebInspector _highlightNode:]):
       
  6478         * WebKit.xcodeproj/project.pbxproj:
       
  6479 
       
  6480 2007-02-23  Mitz Pettel  <mitz@webkit.org>
       
  6481 
       
  6482         Reviewed by Maciej.
       
  6483 
       
  6484         - fix http://bugs.webkit.org/show_bug.cgi?id=11573
       
  6485           REGRESSION: pressing option-left arrow while in suggestion popup moves the insertion point to the left
       
  6486 
       
  6487         * WebView/WebHTMLView.mm:
       
  6488         (-[WebTextCompleteController endRevertingChange:moveLeft:]):
       
  6489 
       
  6490 2007-02-23  Timothy Hatcher  <timothy@apple.com>
       
  6491 
       
  6492         Reviewed by Brady.
       
  6493 
       
  6494         <rdar://problem/5016395> _recursive_pauseNullEventsForAllNetscapePlugins still gone
       
  6495 
       
  6496         * WebView/WebFrameInternal.h: Remove _recursive_pauseNullEventsForAllNetscapePlugins
       
  6497         * WebView/WebFramePrivate.h: Add _recursive_pauseNullEventsForAllNetscapePlugins
       
  6498         * WebView/WebFrame.mm: More _recursive_pauseNullEventsForAllNetscapePlugins
       
  6499 
       
  6500 2007-02-22  Adele Peterson  <adele@apple.com>
       
  6501 
       
  6502         Reviewed by John.
       
  6503 
       
  6504         Updating this image to match the one in WebCore.
       
  6505 
       
  6506         * WebKit.vcproj/textAreaResizeCorner.png:
       
  6507 
       
  6508 2007-02-22  Beth Dakin  <bdakin@apple.com>
       
  6509 
       
  6510         Reviewed by Adam.
       
  6511 
       
  6512         Fix for http://bugs.webkit.org/show_bug.cgi?id=12399 REGRESSION: 
       
  6513         Unable to prevent default context menu from appearing. <rdar://
       
  6514         problem/5017416>
       
  6515 
       
  6516         * WebView/WebHTMLView.mm:
       
  6517         (-[WebHTMLView menuForEvent:]): Clear the controller's context menu 
       
  6518         before propagating a new context menu event through the DOM.
       
  6519 
       
  6520 2007-02-22  John Sullivan  <sullivan@apple.com>
       
  6521 
       
  6522         Reviewed by Darin
       
  6523         
       
  6524         Removed some unused keyView-related code that I happened to run across.
       
  6525         Replacement code is now in WebChromeClient.
       
  6526 
       
  6527         * WebCoreSupport/WebFrameBridge.h:
       
  6528         * WebCoreSupport/WebFrameBridge.mm:
       
  6529         removed unused stuff
       
  6530 
       
  6531 2007-02-22  Mitz Pettel  <mitz@webkit.org>
       
  6532 
       
  6533         Reviewed by Maciej.
       
  6534 
       
  6535         - fix http://bugs.webkit.org/show_bug.cgi?id=12804
       
  6536           REGRESSION (r19043-r19063): suggestion popup doesn't work after pressing Option+Esc
       
  6537 
       
  6538         This patch also fixes a bug where using the arrow keys while
       
  6539         the suggestion popup is open moves the caret instead of changing the
       
  6540         selection in the popup (for up/down) or accepting the selection and
       
  6541         closing the popup (for left/right).
       
  6542 
       
  6543         * WebView/WebHTMLView.mm:
       
  6544         (-[WebHTMLView keyDown:]): Changed to close the popup only if it was open
       
  6545         before the current event, so that the Option-Esc that opens the popup will
       
  6546         not close it immediately.
       
  6547         (-[WebHTMLView _interceptEditingKeyEvent:]): Give the completion popup a
       
  6548         chance to intercept keydown events.
       
  6549         (-[WebTextCompleteController popupWindowIsOpen]): Added. Returns whether the
       
  6550         suggestion popup is open.
       
  6551 
       
  6552 2007-02-22  Mitz Pettel  <mitz@webkit.org>
       
  6553 
       
  6554         Reviewed by Mark (age 21).
       
  6555 
       
  6556         - fix http://bugs.webkit.org/show_bug.cgi?id=12805
       
  6557           REGRESSION: suggestion popup has a disabled scroll bar
       
  6558 
       
  6559         * WebView/WebHTMLView.mm:
       
  6560         (-[WebTextCompleteController _buildUI]): Uncommented the call to the NSWindow
       
  6561         SPI that forces the scroll bar to look active. Also replaced a call to
       
  6562         the deprecated NSTableView method setAutoresizesAllColumnsToFit: with
       
  6563         the new method setColumnAutoresizingStyle: to eliminate console spew.
       
  6564 
       
  6565 2007-02-20  Beth Dakin  <bdakin@apple.com>
       
  6566 
       
  6567         Reviewed by Maciej.
       
  6568 
       
  6569         WebKit changes needed to implement writeImage() in WebCore's 
       
  6570         Pasteboard class.
       
  6571 
       
  6572         * Misc/WebKitNSStringExtras.m: Call into WebCore for these 
       
  6573         implementations.
       
  6574         (-[NSString _webkit_hasCaseInsensitiveSuffix:]):
       
  6575         (-[NSString _webkit_hasCaseInsensitiveSubstring:]):
       
  6576         (-[NSString _webkit_filenameByFixingIllegalCharacters]):
       
  6577         * Misc/WebNSURLExtras.m: Same.
       
  6578         (-[NSURL _webkit_suggestedFilenameWithMIMEType:]):
       
  6579         * WebCoreSupport/WebContextMenuClient.h: Remove 
       
  6580         copyImageToClipboard()
       
  6581         * WebCoreSupport/WebContextMenuClient.mm:
       
  6582         * WebCoreSupport/WebSystemInterface.m: Expose 
       
  6583         GetExtensionsForMIMEType and GetPreferredExtensionForMIMEType to 
       
  6584         WebCore.
       
  6585         (InitWebCoreSystemInterface):
       
  6586         * WebCoreSupport/WebViewFactory.mm: New localized string for 
       
  6587         WebCore. 
       
  6588         (-[WebViewFactory copyImageUnknownFileLabel]):
       
  6589 
       
  6590 2007-02-20  Adam Roben  <aroben@apple.com>
       
  6591 
       
  6592         Reviewed by Darin and Anders.
       
  6593 
       
  6594         Update WebKit for WebCore fix for <rdar://problem/4736215> Make
       
  6595         WebCoreStringTruncator use WebCore types.
       
  6596 
       
  6597         * Misc/WebStringTruncator.m:
       
  6598         (defaultMenuFont): Moved from WebCoreStringTruncator.mm.
       
  6599         (core): Added.
       
  6600         (+[WebStringTruncator centerTruncateString:toWidth:]):
       
  6601         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
       
  6602         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
       
  6603         (+[WebStringTruncator widthOfString:font:]):
       
  6604         * WebKit.xcodeproj/project.pbxproj: Changed WebStringTruncator to ObjC++.
       
  6605 
       
  6606 2007-02-20  Timothy Hatcher  <timothy@apple.com>
       
  6607 
       
  6608         Reviewed by John.
       
  6609 
       
  6610         Fixes the version number returned when using a CFBundleVersion of "420+".
       
  6611 
       
  6612         * WebView/WebView.mm:
       
  6613         (-[WebView _userVisibleBundleVersionFromFullVersion:]): Check the length up to the first
       
  6614         non-decimal digit, so this works with versions that have "." and "+".
       
  6615 
       
  6616 2007-02-20  John Sullivan  <sullivan@apple.com>
       
  6617 
       
  6618         Reviewed by Kevin Decker
       
  6619         
       
  6620         - fixed <rdar://problem/4989344> REGRESSION: After clicking on page, Find
       
  6621         won't find anything if all hits are before the clicked point
       
  6622         
       
  6623         This was caused by a mismatch between WebCore's search code's notion of "selection" and
       
  6624         WebView's search code's notion of "selection". WebCore's search code was starting 
       
  6625         just before or just after the "selection", which included collapsed, zero-length
       
  6626         selections. WebKit's search code was only considering non-zero-length selections,
       
  6627         and would not search all of the content when there was a zero-length selection.
       
  6628         The fix was to make WebKit ignore the selection. This has a side effect of increasing 
       
  6629         the amount of redundantly-searched content in the case where no matches are found. To
       
  6630         compensate for that, I special-cased the most common case of WebViews with a single frame, 
       
  6631         to avoid ever searching redundantly in those.
       
  6632 
       
  6633         * WebView/WebView.mm:
       
  6634         (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]):
       
  6635         remove startHasSelection ivar; special-case WebViews with only one frame; clarify the
       
  6636         code that leads to redundant searching with comments.
       
  6637 
       
  6638 2007-02-20  Timothy Hatcher  <timothy@apple.com>
       
  6639 
       
  6640         Reviewed by Darin.
       
  6641 
       
  6642         <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
       
  6643 
       
  6644         Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
       
  6645         that have a finalizer that needs called on the main thread. Assert in finalize that we
       
  6646         are on the main thread.
       
  6647 
       
  6648         * Carbon/CarbonWindowAdapter.m:
       
  6649         (+[CarbonWindowAdapter initialize]):
       
  6650         (-[CarbonWindowAdapter finalize]):
       
  6651         * History/WebBackForwardList.mm:
       
  6652         (+[WebBackForwardList initialize]):
       
  6653         (-[WebBackForwardList finalize]):
       
  6654         * History/WebHistoryItem.mm:
       
  6655         (+[WebHistoryItem initialize]):
       
  6656         * Misc/WebElementDictionary.mm:
       
  6657         (+[WebElementDictionary initialize]):
       
  6658         (-[WebElementDictionary finalize]):
       
  6659         * Plugins/WebBaseNetscapePluginStream.m:
       
  6660         (+[WebBaseNetscapePluginStream initialize]):
       
  6661         (-[WebBaseNetscapePluginStream finalize]):
       
  6662         * Plugins/WebBaseNetscapePluginView.mm:
       
  6663         (+[WebBaseNetscapePluginView initialize]):
       
  6664         (-[WebBaseNetscapePluginView finalize]):
       
  6665         * Plugins/WebBasePluginPackage.m:
       
  6666         (+[WebBasePluginPackage initialize]):
       
  6667         (-[WebBasePluginPackage finalize]):
       
  6668         * Plugins/WebNetscapePluginStream.mm:
       
  6669         (-[WebNetscapePluginStream finalize]):
       
  6670         * WebCoreSupport/WebEditorClient.mm:
       
  6671         (+[WebEditCommand initialize]):
       
  6672         (-[WebEditCommand finalize]):
       
  6673         * WebCoreSupport/WebFrameBridge.mm:
       
  6674         (+[WebFrameBridge initialize]):
       
  6675         (-[WebFrameBridge finalize]):
       
  6676         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  6677         (+[WebFramePolicyListener initialize]):
       
  6678         (-[WebFramePolicyListener finalize]):
       
  6679         * WebView/WebHTMLView.mm:
       
  6680         (+[WebHTMLView initialize]):
       
  6681         (-[WebHTMLView finalize]):
       
  6682         * WebView/WebView.mm:
       
  6683         (+[WebViewPrivate initialize]):
       
  6684         (-[WebViewPrivate finalize]):
       
  6685 
       
  6686 2007-02-20  Justin Garcia  <justin.garcia@apple.com>
       
  6687 
       
  6688         Reviewed by darin
       
  6689         
       
  6690         <rdar://problem/4838199>
       
  6691         Integrate Mail and WebKit paste operations
       
  6692         
       
  6693         Mail overrides paste: because it has different
       
  6694         preferred pasteboard types, but it should use our
       
  6695         fragment creation code.
       
  6696 
       
  6697         * WebView/WebHTMLView.mm:
       
  6698         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
  6699         Moved fragment creation code into a new method.
       
  6700         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:]):
       
  6701         Moved fragment creation code here.
       
  6702         * WebView/WebHTMLViewPrivate.h: Exposed 
       
  6703         _documentFragmentFromPasteboard:forType:inContext: as SPI.
       
  6704 
       
  6705 2007-02-20  John Sullivan  <sullivan@apple.com>
       
  6706 
       
  6707         Reviewed by Tim Hatcher
       
  6708 
       
  6709         * Misc/WebKitNSStringExtras.h:
       
  6710         * Misc/WebKitNSStringExtras.m:
       
  6711         removed _webkit_userVisibleBundleVersionFromFullVersion; we decided to do this without
       
  6712         adding SPI for it.
       
  6713 
       
  6714         * WebView/WebView.mm:
       
  6715         (-[WebView _userVisibleBundleVersionFromFullVersion:]):
       
  6716         new method, moved here from WebKitNSStringExtras, and is now a WebView method rather than
       
  6717         an NSString method
       
  6718         (-[WebView _computeUserAgent]):
       
  6719         updated for method signature change
       
  6720 
       
  6721 2007-02-20  Timothy Hatcher  <timothy@apple.com>
       
  6722 
       
  6723         Reviewed by John.
       
  6724 
       
  6725         * Misc/WebKitNSStringExtras.h: Added _webkit_userVisibleBundleVersionFromFullVersion.
       
  6726         * Misc/WebKitNSStringExtras.m:
       
  6727         (-[NSString _webkit_userVisibleBundleVersionFromFullVersion]): If the version is 4 digits long or longer,
       
  6728         then the first digit represents the version of the OS. Our user agent string should not
       
  6729         include this first digit, so strip it off and report the rest as the version.
       
  6730         * WebView/WebView.mm:
       
  6731         (-[WebView _computeUserAgent]): Call _webkit_userVisibleBundleVersionFromFullVersion on the CFBundleVersion.
       
  6732 
       
  6733 2007-02-20  Darin Adler  <darin@apple.com>
       
  6734 
       
  6735         Reviewed by Anders.
       
  6736 
       
  6737         * Plugins/WebPluginController.mm: (-[WebPluginController pluginView:receivedResponse:]):
       
  6738         Call cancelMainResourceLoad on the document loader instead of the frame loader.
       
  6739 
       
  6740 2007-02-20  Anders Carlsson  <acarlsson@apple.com>
       
  6741 
       
  6742         Reviewed by Mitz.
       
  6743 
       
  6744         <rdar://problem/5009627> REGRESSION: Repro overrelease of WebView in failed load, seen in DumpRenderTree
       
  6745         
       
  6746         * WebView/WebView.mm:
       
  6747         (-[WebView _removeObjectForIdentifier:]):
       
  6748         Return early if the identifier can't be found in the map.
       
  6749 
       
  6750 2007-02-19  Timothy Hatcher  <timothy@apple.com>
       
  6751 
       
  6752         Reviewed by Darin Adler.
       
  6753 
       
  6754         <rdar://problem/4841078> Remove the Mail.app editable link clicking behavior workaround when it is no longer needed
       
  6755 
       
  6756         * WebKit.xcodeproj/project.pbxproj:
       
  6757         * WebView/WebView.mm:
       
  6758         (-[WebView setPreferences:]):
       
  6759 
       
  6760 2007-02-19  Anders Carlsson  <acarlsson@apple.com>
       
  6761 
       
  6762         Reviewed by Adam.
       
  6763 
       
  6764         <rdar://problem/4868242>
       
  6765         http://bugs.webkit.org/show_bug.cgi?id=12670
       
  6766         REGRESSION: Many 3rd Party Apps crash in WebCore::DocumentLoader::frameLoader() (12670)
       
  6767         
       
  6768         Bring back the semantic we had that a web view should be retained for as long as something is loading. Use the identifier
       
  6769         to object hash map for this.
       
  6770 
       
  6771         * WebView/WebView.mm:
       
  6772         (-[WebView _addObject:forIdentifier:]):
       
  6773         (-[WebView _removeObjectForIdentifier:]):
       
  6774 
       
  6775 2007-02-18  Brady Eidson  <beidson@apple.com>
       
  6776 
       
  6777         Reviewed by Oliver
       
  6778 
       
  6779         <rdar://problem/4985321> - Can't edit templates for Web Gallery/Web Page Export in Aperture
       
  6780 
       
  6781         * Misc/WebKitVersionChecks.h: Add a #define for this APERTURE quirk
       
  6782         * WebView/WebView.mm:
       
  6783         (-[WebView _shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
       
  6784          If the current app is Aperture and it was linked against Tiger WebKit, always allow selection change
       
  6785 
       
  6786 2007-02-17  Lars Knoll <lars@trolltech.com>
       
  6787 
       
  6788         Reviewed by Maciej.
       
  6789 
       
  6790         Additional coding by Maciej, additional review by Oliver.
       
  6791 
       
  6792         Added implementations for the new callbacks in EditorClient
       
  6793         and ChromeClient (basically moved from WebFrameBridge).
       
  6794         Cleaned up some code paths that are not called anymore
       
  6795         and done fully inside WebCore now.
       
  6796 
       
  6797         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
       
  6798         * Misc/WebElementDictionary.mm:
       
  6799         * Misc/WebNSAttributedStringExtras.mm:
       
  6800         * Plugins/WebBaseNetscapePluginView.mm:
       
  6801         (-[WebBaseNetscapePluginView getVariable:value:]):
       
  6802         * Plugins/WebNetscapePluginEmbeddedView.mm:
       
  6803         * Plugins/WebNetscapePluginStream.mm:
       
  6804         * Plugins/WebPluginContainerCheck.mm:
       
  6805         * WebCoreSupport/WebChromeClient.h:
       
  6806         * WebCoreSupport/WebChromeClient.mm:
       
  6807         (WebChromeClient::shouldInterruptJavaScript):
       
  6808         * WebCoreSupport/WebEditorClient.h:
       
  6809         * WebCoreSupport/WebEditorClient.mm:
       
  6810         (WebEditorClient::shouldChangeSelectedRange):
       
  6811         * WebCoreSupport/WebFrameBridge.mm:
       
  6812         (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]):
       
  6813         (-[WebFrameBridge fini]):
       
  6814         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  6815         * WebView/WebArchiver.mm:
       
  6816         * WebView/WebFrame.mm:
       
  6817         (core):
       
  6818         (kit):
       
  6819         (-[WebFrame _updateBackground]):
       
  6820         * WebView/WebFrameInternal.h:
       
  6821         * WebView/WebFrameView.mm:
       
  6822         * WebView/WebHTMLRepresentation.mm:
       
  6823         * WebView/WebHTMLView.mm:
       
  6824         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
  6825         (-[WebHTMLView _isEditable]):
       
  6826         (-[WebHTMLView validateUserInterfaceItem:]):
       
  6827         (-[WebHTMLView maintainsInactiveSelection]):
       
  6828         (-[WebHTMLView scrollWheel:]):
       
  6829         (-[WebHTMLView acceptsFirstMouse:]):
       
  6830         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
       
  6831         (-[WebHTMLView cut:]):
       
  6832         (-[WebHTMLView paste:]):
       
  6833         (-[WebHTMLView selectedAttributedString]):
       
  6834         * WebView/WebScriptDebugDelegate.mm:
       
  6835         * WebView/WebView.mm:
       
  6836         (-[WebView _dashboardRegions]):
       
  6837         (-[WebView setProhibitsMainFrameScrolling:]):
       
  6838         (-[WebView _setInViewSourceMode:]):
       
  6839         (-[WebView _inViewSourceMode]):
       
  6840         (-[WebView shouldClose]):
       
  6841         (-[WebView setEditable:]):
       
  6842 
       
  6843 2007-02-18  Oliver Hunt  <oliver@apple.com>
       
  6844 
       
  6845         Reviewed by Adam.
       
  6846 
       
  6847         Moving the drag initiation logic to WebCore.
       
  6848         The redundant code in webkit will be moved out in a later patch.
       
  6849 
       
  6850         * WebCoreSupport/WebDragClient.h:
       
  6851         * WebCoreSupport/WebDragClient.mm:
       
  6852         (getTopHTMLView):
       
  6853           Helper function
       
  6854         (WebDragClient::willPerformDragSourceAction):
       
  6855         (WebDragClient::startDrag):
       
  6856         (WebDragClient::createDragImageForLink):
       
  6857           Implemented new DragClient methods
       
  6858         (WebDragClient::declareAndWriteDragImage):
       
  6859           Helper function for the Mac to allow new drag and drop
       
  6860           code to match behaviour
       
  6861           
       
  6862         * WebView/WebHTMLView.mm:
       
  6863         (-[WebHTMLView _dragImageForURL:withLabel:]):
       
  6864         (-[WebHTMLView _dragImageForLinkElement:]):
       
  6865           Refactoring old _dragImageForLinkElement function so that 
       
  6866           the link drag image can be created with just a URL and label, 
       
  6867           rather than requiring the original element
       
  6868         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
       
  6869           Removed logic that is no longer necessary                 
       
  6870         (-[WebHTMLView _mouseDownEvent]):
       
  6871           The WebDragClient may need the original mouseDownEvent of a drag when initiating
       
  6872           a drag
       
  6873         * WebView/WebHTMLViewInternal.h:
       
  6874           Declaring _mouseDownEvent
       
  6875 
       
  6876         * WebView/WebHTMLViewPrivate.h:
       
  6877           Declaring _dragImageForURL
       
  6878 
       
  6879 2007-02-16  John Sullivan  <sullivan@apple.com>
       
  6880 
       
  6881         Reviewed by Tim Hatcher
       
  6882 
       
  6883         - fixed <rdar://problem/4811446> "Check Grammar" checkbox in Spelling+Grammar window doesn't 
       
  6884         live update with menu change in WebKit
       
  6885 
       
  6886         * WebView/WebView.mm:
       
  6887         (-[WebView setGrammarCheckingEnabled:]):
       
  6888         Use sekrit AppKit knowledge to tell NSSpellChecker about the change, since there's no API
       
  6889         for this yet. Also restructured a little to avoid extra work when the value hasn't changed.
       
  6890 
       
  6891 2007-02-15  Brady Eidson  <beidson@apple.com>
       
  6892 
       
  6893         Reviewed by Adam
       
  6894 
       
  6895         Save scroll state for back/forward navigation in FrameLoader, not the client
       
  6896 
       
  6897         * WebCoreSupport/WebFrameLoaderClient.h: Renamed the save/restore methods
       
  6898         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  6899         (WebFrameLoaderClient::saveViewStateToItem): Save viewstate only
       
  6900         (WebFrameLoaderClient::restoreViewState): Restore viewstate only
       
  6901 
       
  6902 2007-02-14  Alexey Proskuryakov  <ap@webkit.org>
       
  6903 
       
  6904         Reviewed by Darin.
       
  6905 
       
  6906         http://bugs.webkit.org/show_bug.cgi?id=12643
       
  6907         NPN_Status is using latin-1 encoding for the message instead of UTF-8
       
  6908 
       
  6909         * Plugins/WebBaseNetscapePluginView.mm:
       
  6910         (-[WebBaseNetscapePluginView status:]): Check for possible conversion failure.
       
  6911 
       
  6912 2007-02-13  Oliver Hunt  <oliver@apple.com>
       
  6913 
       
  6914         Reviewed by John.
       
  6915 
       
  6916         Modify entry point ASSERTs for dragging functions to allow for the case
       
  6917         where a load has occurred mid-drag.  The load may detach the HTMLView 
       
  6918         from the WebView so it is no longer possible to check _isTopHTMLView.
       
  6919 
       
  6920         The assertion changes match that of revision 14897 which fixed the 
       
  6921         more common case ([WebHTMLView draggedImage:endedAt:operation:])
       
  6922 
       
  6923         It's also necessary to check for a null Page now prior to accessing 
       
  6924         the DragController, which is necessary in all of these methods.
       
  6925 
       
  6926         See rdar://problem/4994870
       
  6927                                              
       
  6928         * WebView/WebHTMLView.mm:
       
  6929         (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
       
  6930         (-[WebHTMLView draggedImage:movedTo:]):
       
  6931         (-[WebHTMLView draggedImage:endedAt:operation:]):
       
  6932         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
  6933 
       
  6934 2007-02-13  Alexey Proskuryakov  <ap@webkit.org>
       
  6935 
       
  6936         Reviewed by Maciej.
       
  6937 
       
  6938         http://bugs.webkit.org/show_bug.cgi?id=12643
       
  6939         NPN_Status is using latin-1 encoding for the message instead of UTF-8
       
  6940 
       
  6941         * Plugins/WebBaseNetscapePluginView.mm:
       
  6942         (-[WebBaseNetscapePluginView status:]): Use kCFStringEncodingUTF8.
       
  6943 
       
  6944 2007-02-13  Mark Rowe  <mrowe@apple.com>
       
  6945 
       
  6946         Reviewed by Timothy Hatcher.
       
  6947 
       
  6948         Fix http://bugs.webkit.org/show_bug.cgi?id=12745
       
  6949         Bug 12745: REGRESSION: Webkit will not load a plugin that Safari can load (symbol missing _objc_msgSend_fpret)
       
  6950 
       
  6951         Treat libobjc as a sub-library of WebKit in Debug/Release so that plugins and applications linked against an
       
  6952         umbrella framework version of WebKit that expect to find libobjc symbols in WebKit can do so.
       
  6953 
       
  6954         * WebKit.xcodeproj/project.pbxproj:
       
  6955 
       
  6956 2007-02-12  Kevin McCullough  <kmccullough@apple.com>
       
  6957 
       
  6958         Reviewed by .
       
  6959 
       
  6960         - reverting change to not cause regressions and performance problems.
       
  6961 
       
  6962         * Misc/WebNSAttributedStringExtras.mm:
       
  6963         (fileWrapperForElement):
       
  6964 
       
  6965 2007-02-12  Darin Adler  <darin@apple.com>
       
  6966 
       
  6967         Reviewed by Oliver.
       
  6968 
       
  6969         - fix http://bugs.webkit.org/show_bug.cgi?id=12677
       
  6970           <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm
       
  6971           a clause in kotoeri (12677)
       
  6972 
       
  6973         - fix http://bugs.webkit.org/show_bug.cgi?id=12596
       
  6974           <rdar://problem/4794346> REGRESSION: Tab key shifts form field focus instead of
       
  6975           navigating prediction window (12596)
       
  6976 
       
  6977         - fix http://bugs.webkit.org/show_bug.cgi?id=10010
       
  6978           <rdar://problem/4822935> REGRESSION: Pressing Return with unconfirmed text in
       
  6979           Hangul inserts carriage return (10010)
       
  6980 
       
  6981         - fix http://bugs.webkit.org/show_bug.cgi?id=12531
       
  6982           <rdar://problem/4975126> REGRESSION: Inline text input types repeated keys in
       
  6983           latest nightly (r19336) (12531)
       
  6984 
       
  6985         - fix http://bugs.webkit.org/show_bug.cgi?id=12539
       
  6986           <rdar://problem/4975130> REGRESSION: Pressing Backspace while in inline input
       
  6987           area moves to the previous page in history (12539)
       
  6988 
       
  6989         * WebCoreSupport/WebEditorClient.h:
       
  6990         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::markedTextAbandoned):
       
  6991         Added.
       
  6992 
       
  6993         * WebView/WebHTMLView.mm:
       
  6994         (-[WebHTMLView menuForEvent:]): Added explicit constructor needed now that the
       
  6995         function takes a const&.
       
  6996         (-[WebHTMLView becomeFirstResponder]): Removed fake event code, no longer needed
       
  6997         since advanceFocus now works fine with 0 for a DOM event.
       
  6998         (-[WebHTMLView _expandSelectionToGranularity:]): Changed to use the normal
       
  6999         selection controller function instead of selectRange.
       
  7000         (-[WebHTMLView insertTab:]): Changed to call bottleneck that receives the DOM
       
  7001         event.
       
  7002         (-[WebHTMLView insertBacktab:]): Ditto.
       
  7003         (-[WebHTMLView insertNewline:]): Ditto.
       
  7004         (-[WebHTMLView insertLineBreak:]): Ditto.
       
  7005         (-[WebHTMLView insertParagraphSeparator:]): Ditto.
       
  7006         (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Ditto.
       
  7007         (-[WebHTMLView insertTabIgnoringFieldEditor:]): Ditto.
       
  7008         (-[WebHTMLView yank:]): Updated to call Editor directly since the insertText
       
  7009         code now works via a text input event which is not what we want for paste-like
       
  7010         things such as yank.
       
  7011         (-[WebHTMLView yankAndSelect:]): Ditto.
       
  7012         (-[WebHTMLView selectToMark:]): Changed to use the normal selection controller
       
  7013         function instead of selectRange, which also allows us to remove the ObjC exception
       
  7014         handling code.
       
  7015         (-[WebHTMLView swapWithMark:]): Ditto.
       
  7016         (-[WebHTMLView transpose:]): Ditto.
       
  7017         (-[WebHTMLView unmarkText]): Since this is one of the calls back from the input
       
  7018         manager, added code to set the "event was handled" flag. Moved the actual work
       
  7019         into the Editor class in WebCore and just call that from here.
       
  7020         (-[WebHTMLView _selectRangeInMarkedText:]): Changed to use the normal selection
       
  7021         controller function instead of selectRange.
       
  7022         (-[WebHTMLView setMarkedText:selectedRange:]): Since this is one of the calls
       
  7023         back from the input manager, added code to set the "event was handled" flag.
       
  7024         Also changed the ignoreMarkedTextSelectionChange to use the flag over on the
       
  7025         WebCore side, since we moved it there and to call selectMarkedText over on
       
  7026         the WebCore side too.
       
  7027         (-[WebHTMLView doCommandBySelector:]): Added special cases for newline and tab
       
  7028         selectors so that the event is passed along. These selectors are special because
       
  7029         they are ones that turn into text input events.
       
  7030         (-[WebHTMLView _discardMarkedText]): Moved the body of this function into the
       
  7031         Editor class in WebCore and just call that from here.
       
  7032         (-[WebHTMLView insertText:]): Added code to send a text input event instead of
       
  7033         calling the editor to do text insertion. The insertion is then done in the
       
  7034         default handler for the text input event.
       
  7035         (-[WebHTMLView _insertNewlineWithEvent:isLineBreak:]): Added. Sends a text
       
  7036         input event.
       
  7037         (-[WebHTMLView _insertTabWithEvent:isBackTab:]): Ditto.
       
  7038         (-[WebHTMLView _updateSelectionForInputManager]): Changed to use the
       
  7039         ignoreMarkedTextSelectionChange flag in Editor now that the one here is gone.
       
  7040 
       
  7041         * WebView/WebHTMLViewInternal.h: Remove ignoreMarkedTextSelectionChange field.
       
  7042 
       
  7043         * WebView/WebView.mm: (-[WebView setSelectedDOMRange:affinity:]): Changed to
       
  7044         use the normal selection controller function instead of selectRange.
       
  7045 
       
  7046 2007-02-11  Sam Weinig  <sam@webkit.org>
       
  7047 
       
  7048         Reviewed by Mark.
       
  7049 
       
  7050         Switch the initial value of box-sizing property from "border-box" to "content-box".
       
  7051 
       
  7052         * WebInspector/webInspector/inspector.js:
       
  7053 
       
  7054 2007-02-10  Mitz Pettel  <mitz@webkit.org>
       
  7055 
       
  7056         Reviewed by Maciej.
       
  7057 
       
  7058         - fix http://bugs.webkit.org/show_bug.cgi?id=11847
       
  7059           REGRESSION (SearchField): Dragging to select in the Web Inspector's search fields drags the inspector window
       
  7060 
       
  7061         * WebInspector/webInspector/inspector.css: Added the search field to the
       
  7062         undraggable dashboard-region.
       
  7063 
       
  7064 2007-02-09  Kevin Decker <kdecker@apple.com>
       
  7065 
       
  7066         Reviewed by Darin & Maciej.
       
  7067 
       
  7068         Fixed: <rdar://problem/4930688> REGRESSION: missing images when reloading webarchives (11962)
       
  7069         
       
  7070         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  7071         (WebFrameLoaderClient::canUseArchivedResource): The bug here is that because a reload sets a cache
       
  7072         policy of NSURLRequestReloadIgnoringCacheData (rightfully so), this method was refusing to load
       
  7073         subresources in WebArchives. It's OK to use archive subresources for the NSURLRequestReloadIgnoringCacheData
       
  7074         cache policy because we're not worried about the actual contents of a WebArchive changing on disk. 
       
  7075 
       
  7076 2007-02-09  Justin Garcia  <justin.garcia@apple.com>
       
  7077 
       
  7078         Reviewed by darin
       
  7079         
       
  7080         <rdar://problem/4975120>
       
  7081         REGRESSION: double-cursor after switching window away/back (11770)
       
  7082         <http://bugs.webkit.org/show_bug.cgi?id=11328>
       
  7083         Gmail Editor: Caret can simultaneously appear in both the TO: and message body fields
       
  7084 
       
  7085         * WebCoreSupport/WebFrameBridge.mm: Removed unused methods.
       
  7086         * WebView/WebHTMLView.mm: Ditto.
       
  7087         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]): Don't 
       
  7088         appear focused if a descendant view is firstResponder.
       
  7089         (-[WebHTMLView _updateActiveState]): Removed the check for a BOOL
       
  7090         that was always false.
       
  7091         * WebView/WebHTMLViewInternal.h: Removed a BOOL that's always false.
       
  7092 
       
  7093 2007-02-09  Beth Dakin  <bdakin@apple.com>
       
  7094 
       
  7095         Reviewed by Darin.
       
  7096 
       
  7097         Fix for <rdar://problem/4674537> REGRESSION: Adobe Acrobat 8 - Text 
       
  7098         blinks when mouse is moved, and is invisible otherwise
       
  7099 
       
  7100         Allow quirk if the Application was linked before 3.0 and if the 
       
  7101         application is Adobe Acrobat.
       
  7102 
       
  7103         * Misc/WebKitVersionChecks.h:
       
  7104         * WebView/WebView.mm:
       
  7105         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  7106 
       
  7107 2007-02-09  Timothy Hatcher  <timothy@apple.com>
       
  7108 
       
  7109         Reviewed by Brady.
       
  7110 
       
  7111         * WebKit.exp: Add WebBaseNetscapePluginView to the export list.
       
  7112 
       
  7113 2007-02-09  John Sullivan  <sullivan@apple.com>
       
  7114 
       
  7115         Reviewed by Beth
       
  7116 
       
  7117         - WebKit part of fix for radar 4939636, problems with context menu items and binaries linked
       
  7118           against WebKit 2.0.
       
  7119 
       
  7120         * WebKit.xcodeproj/project.pbxproj:
       
  7121         Changed DYLIB_CURRENT_VERSION to 2 (was 1)
       
  7122 
       
  7123         * Misc/WebKitVersionChecks.h:
       
  7124         Added constant WEBKIT_FIRST_VERSION_WITH_3_0_CONTEXT_MENU_TAGS, which is 2 but in the weird
       
  7125         format that these version checks use.
       
  7126 
       
  7127         * WebView/WebUIDelegatePrivate.h:
       
  7128         Tweaked comments; included the old values for three tags for context menu items that changed
       
  7129         from SPI to API in 3.0; renamed WEBMENUITEMTAG_SPI_START to WEBMENUITEMTAG_WEBKIT_3_0_SPI_START 
       
  7130         for clarity, and bumped its value to avoid conflict with the three old values
       
  7131 
       
  7132         * WebCoreSupport/WebContextMenuClient.mm:
       
  7133         (isAppleMail):
       
  7134         new helper function that checks the bundle identifier
       
  7135         (fixMenusToSendToOldClients):
       
  7136         Removed return value for clarity; now checks linked-on version and also makes special case
       
  7137         for Mail; now replaces three API tags with their old SPI values for clients that linked
       
  7138         against old WebKit version, in addition to replacing new API with WebMenuItemTagOther for
       
  7139         items that had no specific tag before.
       
  7140         (fixMenusReceivedFromOldClients):
       
  7141         Removed return value for clarity; removed defaultMenuItems parameter because it's no longer 
       
  7142         necessary; removed code that tried to recognize menus that got confused by the SPI -> API 
       
  7143         change (we now pass the old SPI values to these clients to avoid confusing them); now 
       
  7144         restores the tags for the items whose tags were replaced in fixMenusToSendToOldClients 
       
  7145         (this used to restore the tags of the default items rather than the new items, which was 
       
  7146         incorrect but happened to work since the clients we tested were using the objects from the
       
  7147         default items array in their new items array)
       
  7148         (WebContextMenuClient::getCustomMenuFromDefaultItems):
       
  7149         Updated to account for the removed return values for the two fix-up methods; moved the
       
  7150         autorelease of newItems here, which is clearer and was the source of a leak before.
       
  7151 
       
  7152 2007-02-08  Kevin McCullough  <KMcCullough@apple.com>
       
  7153 
       
  7154         Reviewed by
       
  7155 
       
  7156         - fixing a build breakage. 
       
  7157 
       
  7158         * Misc/WebNSAttributedStringExtras.mm:
       
  7159         (fileWrapperForElement):
       
  7160 
       
  7161 2007-02-07  Charles Ying  <charles_ying@yahoo.com>
       
  7162 
       
  7163         Reviewed by Adam.
       
  7164 
       
  7165         Code suggestion by aroben
       
  7166         
       
  7167         Fix http://bugs.webkit.org/show_bug.cgi?id=12688
       
  7168 
       
  7169         REGRESSION (r19469): ASSERT when right clicking on hyperlinks! in TOT webkit
       
  7170         
       
  7171         * WebCoreSupport/WebContextMenuClient.mm:
       
  7172         (fixMenusReceivedFromOldClients):
       
  7173 
       
  7174         - fixMenusReceivedFromOldClients was hitting an ASSERT incorrectly
       
  7175         because it could not match [item title] to any of the contentMenuItemTags
       
  7176         using pointer comparison ==. Instead, it needs to do a string comparison
       
  7177         between [item title] and the various contentMenuItemTags using
       
  7178         isEqualToString instead of ==. You would encounter this whenever the
       
  7179         context menu was activated, e.g., from a hyperlink right click (or
       
  7180         control click).
       
  7181 
       
  7182 
       
  7183 2007-02-07  Anders Carlsson  <acarlsson@apple.com>
       
  7184 
       
  7185         Reviewed by Maciej.
       
  7186 
       
  7187         Move shouldInterruptJavaScript to the Chrome.
       
  7188         
       
  7189         * WebCoreSupport/WebChromeClient.h:
       
  7190         * WebCoreSupport/WebChromeClient.mm:
       
  7191         (WebChromeClient::shouldInterruptJavaScript):
       
  7192         * WebCoreSupport/WebFrameBridge.mm:
       
  7193 
       
  7194 2007-02-07  John Sullivan  <sullivan@apple.com>
       
  7195 
       
  7196         Reviewed by Kevin Decker
       
  7197 
       
  7198         - fixed all places in WebKit where _web_userVisibleString was used where
       
  7199         _web_originalDataAsString should have been used instead.
       
  7200 
       
  7201         * History/WebURLsWithTitles.m:
       
  7202         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]):
       
  7203         use _web_originalDataAsString when writing since these aren't displayed to the user
       
  7204         (+[WebURLsWithTitles URLsFromPasteboard:]):
       
  7205         use _web_URLWithDataAsString when reading, to match what we used when writing
       
  7206 
       
  7207         * Misc/WebNSPasteboardExtras.mm:
       
  7208         (-[NSPasteboard _web_writeURL:andTitle:types:]):
       
  7209         use _web_originalDataAsString when writing the NSURL type; continue using
       
  7210         _web_userVisibleString when writing the plain text type
       
  7211 
       
  7212         * WebView/WebHTMLView.mm:
       
  7213         (-[WebHTMLView _documentFragmentWithPaths:]):
       
  7214         added comment about why _web_userVisibleString is appropriate here
       
  7215         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
  7216         use _web_originalDataAsString when setting the href attribute of an anchor tag
       
  7217 
       
  7218 2007-02-07  David Harrison  <harrison@apple.com>
       
  7219 
       
  7220         Reviewed by Adam.
       
  7221 
       
  7222         <rdar://problem/4943650> REGRESSION: insertion point blink redraws entire web page, making everything slow
       
  7223 
       
  7224         Problem is that AppKit recently changed NSControl to trigger a full redraw if the control has a focus ring.
       
  7225         WebHTMLView is a subclass of NSControl, but the focus ring type was the default value, though we actually
       
  7226         draw no focus ring. Fix is to formally set our focus ring type.
       
  7227 
       
  7228         * WebView/WebHTMLView.mm:
       
  7229         (-[WebHTMLView initWithFrame:]):
       
  7230         Send [self setFocusRingType:NSFocusRingTypeNone].
       
  7231 
       
  7232 2007-02-07  John Sullivan  <sullivan@apple.com>
       
  7233 
       
  7234         Undid changes that I hadn't intended to check in
       
  7235 
       
  7236         * WebView/WebHTMLView.mm:
       
  7237         (-[WebHTMLView _documentFragmentWithPaths:]):
       
  7238         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
  7239 
       
  7240 2007-02-07  John Sullivan  <sullivan@apple.com>
       
  7241 
       
  7242         Reviewed by Ollie and Geoff
       
  7243 
       
  7244         - fixed <rdar://problem/4982345> KURL::createCFURL leak inside -[WebFrameBridge startDraggingImage...] 
       
  7245         reported by buildbot
       
  7246 
       
  7247         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  7248         don't retain the imageURL we pass to the drag controller -- it's just automagically
       
  7249         converted to a KURL anyway
       
  7250 
       
  7251 2007-02-07  John Sullivan  <sullivan@apple.com>
       
  7252 
       
  7253         Reviewed by Darin
       
  7254 
       
  7255         - fixed <rdar://problem/4974420> REGRESSION: Dragging a saved image into the browser window 
       
  7256         displays a error (No File exists at the address "null") (12662)
       
  7257 
       
  7258         * WebCoreSupport/WebPasteboardHelper.mm:
       
  7259         (WebPasteboardHelper::urlFromPasteboard):
       
  7260         use _web_originalDataAsString instead of _web_userVisibleString, since _web_userVisibleString
       
  7261         can return a string with non-ASCII characters -- suitable for display but not for code
       
  7262 
       
  7263 2007-02-07  John Sullivan  <sullivan@apple.com>
       
  7264 
       
  7265         Reviewed by Darin
       
  7266 
       
  7267         - added some clarity to some menu-handling shenanigans
       
  7268 
       
  7269         * WebCoreSupport/WebContextMenuClient.mm:
       
  7270         (fixMenusToSendToOldClients):
       
  7271         renamed from fixMenusForOldClients; added comments, FIXME, and assertion
       
  7272         (fixMenusReceivedFromOldClients):
       
  7273         renamed from fixMenusFromOldClients; added comments, FIXME, and assertion
       
  7274         (WebContextMenuClient::getCustomMenuFromDefaultItems):
       
  7275         updated for name changes
       
  7276 
       
  7277 2007-02-06  Kevin Decker <kdecker@apple.com>
       
  7278 
       
  7279         Fixed: <rdar://problem/4976681> ASSERTION failure on quit @ talkcrunch.com in _NPN_ReleaseObject
       
  7280         
       
  7281         Reviewed by Anders.
       
  7282 
       
  7283         * Plugins/WebPluginDatabase.m:
       
  7284         (+[WebPluginDatabase sharedDatabase]): Removed NSApplicationWillTerminateNotification observer and thus
       
  7285         also removed code that would unload the entire plug-in database when receiving that notification. 
       
  7286         
       
  7287         The bug here was that this notification callback would happen first before anything else thus unloading
       
  7288         plug-ins and releasing plug-in memory. That was crash prone because the JavaScriptCore collector would at
       
  7289         a later time attempt to release its CInstance references (references that point to plug-in memory)
       
  7290         without knowing WebKit already unloaded the plug-in out from underneath it. The WebPluginDatabase simply
       
  7291         does not have enough context to make this decision.
       
  7292         
       
  7293         * WebView/WebView.mm: Added two statics: applicationIsTerminating, pluginDatabaseClientCount.
       
  7294         (+[WebView initialize]): Added NSApplicationWillTerminateNotification observer.
       
  7295         (+[WebView _applicationWillTerminate]): Added. 
       
  7296         (-[WebView _close]): WebKit has both a global plug-in database and a separate, per WebView plug-in database. 
       
  7297          We need to release both sets of plug-ins because Netscape plug-ins have "destructor functions" that should be
       
  7298          called when the browser unloads the plug-in.  These functions can do important things, such as closing/deleting
       
  7299          files so it is important to ensure that they are properly called when the application terminates.
       
  7300          
       
  7301          The new change is that on app shutdown, we unload WebKit's global plug-in database if and only if the last WebView
       
  7302          was closed. To do so otherwise would unload plug-ins out from underneath other WebViews.
       
  7303          
       
  7304 2007-02-06  Darin Adler  <darin@apple.com>
       
  7305 
       
  7306         Reviewed by John Sullivan.
       
  7307 
       
  7308         - fix http://bugs.webkit.org/show_bug.cgi?id=11080
       
  7309           <rdar://problem/4826648> REGRESSION: Incorrect vertical positioning of Safari
       
  7310           status bar text containing @ character (11080)
       
  7311 
       
  7312         * Misc/WebKitNSStringExtras.m:
       
  7313         (canUseFastRenderer): Fix code that mistakenly used the slow renderer for strings
       
  7314         that have a direction of "other neutral", which includes the "@" character.
       
  7315         (-[NSString _web_drawAtPoint:font:textColor:]): Add code to make the baseline of
       
  7316         the text in the status bar right. AppKit's rule for rounding is complicated enough
       
  7317         that this is obviously not perfectly correct, but it does make both code paths
       
  7318         use the same baseline in all the places this is currently used in AppKit.
       
  7319 
       
  7320 2007-02-06  Darin Adler  <darin@apple.com>
       
  7321 
       
  7322         Spotted by Steve F.
       
  7323 
       
  7324         * Misc/WebNSURLExtras.m:
       
  7325         (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
       
  7326         Fix obvious logic mistake I introduced back in revision 8255.
       
  7327         I can't see how to exercise this code path, but I also can't
       
  7328         bear to leave this obviously-broken code as-is.
       
  7329 
       
  7330 2007-02-05  David Kilzer  <ddkilzer@webkit.org>
       
  7331 
       
  7332         Reviewed by Darin.
       
  7333 
       
  7334         http://bugs.webkit.org/show_bug.cgi?id=7266
       
  7335         Webarchive format saves duplicate WebSubresources to .webarchive file
       
  7336 
       
  7337         Tests: webarchive/test-duplicate-resources.html
       
  7338                webarchive/test-frameset.html
       
  7339 
       
  7340         * WebView/WebArchiver.mm:
       
  7341         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]): Use an NSMutableSet to prevent
       
  7342         duplicate subresources from being added to the webarchive.
       
  7343 
       
  7344 2007-02-06  Mark Rowe  <mrowe@apple.com>
       
  7345 
       
  7346         Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
       
  7347         See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
       
  7348 
       
  7349         * WebInspector/webInspector/inspector.js:
       
  7350         * WebView/WebHTMLView.mm:
       
  7351         (-[WebHTMLView _addToStyle:fontA:fontB:]):
       
  7352 
       
  7353 2007-02-05  Beth Dakin  <bdakin@apple.com>
       
  7354 
       
  7355         Reviewed by Adam.
       
  7356 
       
  7357         Fix for <rdar://problem/4975161> REGRESSION: With BumperCar 2.1.1, 
       
  7358         the contextual menu fails to appear when I ctrl-click on page
       
  7359 
       
  7360         * WebCoreSupport/WebContextMenuClient.mm:
       
  7361         (WebContextMenuClient::getCustomMenuFromDefaultItems): If the 
       
  7362         delegate does not respond to contextMenuItemsForElement, return the 
       
  7363         default menu instead of nil.
       
  7364 
       
  7365 2007-02-01  Geoffrey Garen  <ggaren@apple.com>
       
  7366 
       
  7367         Reviewed by Maciej Stachowiak.
       
  7368         
       
  7369         Added support for selectively ignoring WebCore::Node leaks during layout
       
  7370         tests, so that we can ignore known leaks in other components.
       
  7371 
       
  7372         * Misc/WebCoreStatistics.h:
       
  7373         * Misc/WebCoreStatistics.mm:
       
  7374         (+[WebCoreStatistics startIgnoringWebCoreNodeLeaks]):
       
  7375         (+[WebCoreStatistics stopIgnoringWebCoreNodeLeaks]):
       
  7376 
       
  7377 2007-02-01  Nicholas Shanks  <webkit@nickshanks.com>
       
  7378 
       
  7379         Reviewed by Mark.
       
  7380 
       
  7381         Add support for CSS2 font-stretch property.
       
  7382 
       
  7383         * WebInspector/webInspector/inspector.js:
       
  7384         * WebView/WebHTMLView.mm:
       
  7385         (-[WebHTMLView _addToStyle:fontA:fontB:]):
       
  7386 
       
  7387 2007-02-01  Maciej Stachowiak  <mjs@apple.com>
       
  7388 
       
  7389         Reviewed by Adam.
       
  7390         
       
  7391         <rdar://problem/4730469> REGRESSION: Assertion failure in -[WebDataSource(WebInternal) _bridge] when forwarding message
       
  7392 
       
  7393         * WebView/WebDataSource.mm:
       
  7394         (-[WebDataSource subresources]): Check for being uncommitted and return emtpy result.
       
  7395         (-[WebDataSource subresourceForURL:]): ditto
       
  7396 
       
  7397 2007-01-31  Oliver Hunt  <oliver@apple.com>
       
  7398 
       
  7399         Reviewed by Adam.     
       
  7400 
       
  7401         Migrating methods to WebCore
       
  7402 
       
  7403         * WebCoreSupport/WebFrameBridge.mm:
       
  7404         * WebView/WebHTMLView.mm:
       
  7405         * WebView/WebHTMLViewPrivate.h:
       
  7406 
       
  7407 2007-01-31  Anders Carlsson  <acarlsson@apple.com>
       
  7408 
       
  7409         Reviewed by Maciej.
       
  7410 
       
  7411         <rdar://problem/4886776>
       
  7412         REGRESSION: After opening a web archive, location shows the actual URL, not the webarchive file
       
  7413         
       
  7414         "Revert" the change done in 13734.
       
  7415         
       
  7416         * WebView/WebHTMLRepresentation.mm:
       
  7417         (-[WebHTMLRepresentation loadArchive]):
       
  7418         Don't do a new load here, as this would cancel the current load and call the resource load
       
  7419         delegate's didFailLoadingWithError: method. Instead, call continueLoadWithData.
       
  7420 
       
  7421 2007-02-01  Nikolas Zimmermann  <zimmermann@kde.org>
       
  7422 
       
  7423         Reviewed by Maciej.
       
  7424 
       
  7425         Fix run-pageloadtest to actually work again.
       
  7426 
       
  7427         * Misc/WebNSWindowExtras.m:
       
  7428         (+[NSWindow _webkit_displayThrottledWindows]):
       
  7429 
       
  7430 2007-01-31  Adele Peterson  <adele@apple.com>
       
  7431 
       
  7432         Reviewed by Darin.
       
  7433 
       
  7434         WebKit part of fix for <rdar://problem/4521461> REGRESSION: when keyPress event changes form focus, inserted key goes to wrong control
       
  7435 
       
  7436         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): Instead of using the selected frame, use the
       
  7437           frame for the target of the keyboard event.  Also, don't do the canEdit check here, since the target's frame might not
       
  7438           have a selection at this point.  Do the canEdit check within Editor::insertText, where we determine which selection to use
       
  7439           for inserting text.
       
  7440         * WebView/WebEditingDelegatePrivate.h: Added forward declaration of DOMHTMLElement. This is needed after reordering includes in WebEditorClient.mm.
       
  7441 
       
  7442 2007-01-31  Alice Liu  <alice.liu@apple.com>
       
  7443 
       
  7444         Reviewed by Tim Hatcher.
       
  7445 
       
  7446         Turning an accidental API change to an SPI change
       
  7447 
       
  7448         * WebView/WebEditingDelegate.h:
       
  7449         * WebView/WebEditingDelegatePrivate.h:
       
  7450         move some declarations into private header.  
       
  7451 
       
  7452 2007-01-31  Darin Adler  <darin@apple.com>
       
  7453 
       
  7454         - fix build
       
  7455 
       
  7456         * ForwardingHeaders/wtf/ListHashSet.h: Added.
       
  7457 
       
  7458 2007-01-31  Maciej Stachowiak  <mjs@apple.com>
       
  7459 
       
  7460         Reviewed by Anders.
       
  7461 
       
  7462         - related fix for <rdar://problem/4964407> REGRESSION: Mail hangs when replying, forwarding , or creating a new message
       
  7463         
       
  7464         * WebView/WebFrame.mm:
       
  7465         (-[WebFrame loadArchive:]): This method also needs to add the lame WebDataRequest property or other things, like
       
  7466         Mail Contents of Page, break.
       
  7467 
       
  7468 2007-01-31  Maciej Stachowiak  <mjs@apple.com>
       
  7469 
       
  7470         Reviewed by Eric.
       
  7471         
       
  7472         - add back no-op version of silly method so that shipping Safari can still run the PLT
       
  7473 
       
  7474         * Misc/WebNSWindowExtras.m:
       
  7475         (-[NSWindow _webkit_displayThrottledWindows]):
       
  7476 
       
  7477 2007-01-31  Mark Rowe  <mrowe@apple.com>
       
  7478 
       
  7479         More build fixing.
       
  7480 
       
  7481         * Misc/WebKitLogging.h: Use !defined() rather than !.
       
  7482         * Plugins/WebNetscapePluginStream.h: Remove #if __cplusplus as this file is only included from Obj-C++ files.
       
  7483         * WebView/WebHTMLView.mm:
       
  7484         (-[WebHTMLView _lookUpInDictionaryFromMenu:]): Use #ifdef rather than #if.
       
  7485         * WebView/WebView.mm:
       
  7486         (-[WebView isGrammarCheckingEnabled]): Ditto.
       
  7487 
       
  7488 2007-01-31  Mark Rowe  <mrowe@apple.com>
       
  7489 
       
  7490         Build fix.
       
  7491 
       
  7492         * WebView/WebView.mm:
       
  7493         (-[WebView initWithFrame:frameName:groupName:]):
       
  7494 
       
  7495 2007-01-31  Mark Rowe  <mrowe@apple.com>
       
  7496 
       
  7497         Reviewed by Oliver.
       
  7498 
       
  7499         Enable -Wundef in WebKit, and change misuses of #if to #ifdef or #ifndef as appropriate.
       
  7500 
       
  7501         * Misc/WebKitLogging.h:
       
  7502         * WebKit.xcodeproj/project.pbxproj:
       
  7503         * WebView/WebFrame.mm:
       
  7504         * WebView/WebFrameInternal.h:
       
  7505         * WebView/WebHTMLView.mm:
       
  7506         (-[WebHTMLView validateUserInterfaceItem:]):
       
  7507         (-[WebHTMLView delete:]):
       
  7508         (-[WebHTMLView showGuessPanel:]):
       
  7509         (-[WebHTMLView copy:]):
       
  7510         (-[WebHTMLView cut:]):
       
  7511         (-[WebHTMLView paste:]):
       
  7512         * WebView/WebHTMLViewInternal.h:
       
  7513         * WebView/WebView.mm:
       
  7514         (-[WebViewPrivate init]):
       
  7515         (-[WebView validateUserInterfaceItem:]):
       
  7516         * WebView/WebViewPrivate.h:
       
  7517 
       
  7518 2007-01-30  Brady Eidson  <beidson@apple.com>
       
  7519 
       
  7520         Reviewed by Oliver
       
  7521 
       
  7522         This is a corollary to <rdar://problem/4944887> where certain things happened on an alternate thread.
       
  7523         To help catch such behavior in the future, add ASSERT_MAIN_THREAD() to key WebKit API points
       
  7524 
       
  7525         * History/WebHistoryItem.mm: Added ASSERT_MAIN_THREAD() to suspected API entry points
       
  7526         (-[WebHistoryItem dealloc]):
       
  7527         (-[WebHistoryItem finalize]):
       
  7528         (-[WebHistoryItem copyWithZone:]):
       
  7529         (-[WebHistoryItem URLString]):
       
  7530         (-[WebHistoryItem originalURLString]):
       
  7531         (-[WebHistoryItem title]):
       
  7532         (-[WebHistoryItem lastVisitedTimeInterval]):
       
  7533         (-[WebHistoryItem isEqual:]):
       
  7534         (-[WebHistoryItem description]):
       
  7535         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
       
  7536         (-[WebHistoryItem initFromDictionaryRepresentation:]):
       
  7537         (-[WebHistoryItem scrollPoint]):
       
  7538         (-[WebHistoryItem dictionaryRepresentation]):
       
  7539         (-[WebHistoryItem target]):
       
  7540         (-[WebHistoryItem visitCount]):
       
  7541         (-[WebHistoryItem children]):
       
  7542         (-[WebHistoryItem URL]):
       
  7543         (-[WebHistoryItem _lastVisitedDate]):
       
  7544         (-[WebHistoryItem targetItem]):
       
  7545 
       
  7546         * Misc/WebIconDatabase.mm: Added ASSERT_MAIN_THREAD() to suspected API entry points
       
  7547         (-[WebIconDatabase iconForURL:withSize:cache:]):
       
  7548         (-[WebIconDatabase iconURLForURL:]):
       
  7549         (-[WebIconDatabase defaultIconWithSize:]):
       
  7550         (-[WebIconDatabase retainIconForURL:]):
       
  7551         (-[WebIconDatabase releaseIconForURL:]):
       
  7552         (-[WebIconDatabase removeAllIcons]):
       
  7553         (-[WebIconDatabase _iconForFileURL:withSize:]):
       
  7554         (webGetNSImage):
       
  7555 
       
  7556         * Misc/WebKitLogging.h: Added ASSERT_MAIN_THREAD()
       
  7557         * Misc/WebKitLogging.m:
       
  7558         (WebKitRunningOnMainThread): Added
       
  7559 
       
  7560         * WebKit.xcodeproj/project.pbxproj: Define DISABLE_THREAD_CHECK until it is
       
  7561           safe to run with ASSERT_MAIN_THREAD() active
       
  7562 
       
  7563 2007-01-30  Timothy Hatcher  <timothy@apple.com>
       
  7564 
       
  7565         Reviewed by Darin.
       
  7566 
       
  7567         <rdar://problem/4961953> Stop using NSString deprecated methods like initWithCString:
       
  7568 
       
  7569         * Misc/WebNSImageExtras.m:
       
  7570         (-[NSImage _web_saveAndOpen]):
       
  7571         * WebKit.xcodeproj/project.pbxproj:
       
  7572 
       
  7573 2007-01-30  Mitz Pettel  <mitz@webkit.org>
       
  7574 
       
  7575         Reviewed by Geoff.
       
  7576 
       
  7577         - fix http://bugs.webkit.org/show_bug.cgi?id=12050
       
  7578           REGRESSION: Assertion failure in -[WebBaseNetscapePluginView willCallPlugInFunction] (plugin)
       
  7579 
       
  7580         Test: plugins/createScriptableObject-before-start.html
       
  7581 
       
  7582         * Plugins/WebBaseNetscapePluginView.mm:
       
  7583         (-[WebBaseNetscapePluginView createPluginScriptableObject]): Return NULL if
       
  7584         the plugin is not started.
       
  7585 
       
  7586 2007-01-30  Maciej Stachowiak  <mjs@apple.com>
       
  7587 
       
  7588         Reviewed by Anders.
       
  7589         
       
  7590         <rdar://problem/4964407> REGRESSION: Mail hangs when replying, forwarding , or creating a new message
       
  7591         
       
  7592         * WebView/WebFrame.mm:
       
  7593         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Set WebDataRequest property on data
       
  7594         load requests since Mail specifically checks for this.
       
  7595 
       
  7596 2007-01-30  Graham Dennis  <graham.dennis@gmail.com>
       
  7597 
       
  7598         Reviewed by Maciej.
       
  7599 
       
  7600         Part of fix for http://bugs.webkit.org/show_bug.cgi?id=10725
       
  7601         Image data in from RTFD clipboard data thrown away
       
  7602         
       
  7603         The URLs for images in RTFD data must not be loaded until the resources
       
  7604         have been added to the WebUnarchivingState. This can't happen until
       
  7605         after the RTFD data has been parsed, so we must delay loading while this
       
  7606         RTFD data is being parsed to a document fragment.
       
  7607 
       
  7608         * WebView/WebHTMLView.mm:
       
  7609         (uniqueURLWithRelativePart):
       
  7610         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]): defer loading the resources while RTFD data is being parsed.
       
  7611         (+[NSURL _web_uniqueWebDataURL]): Added this back because AppKit uses it.
       
  7612         * WebView/WebUnarchivingState.m:
       
  7613         (-[WebUnarchivingState archivedResourceForURL:]): orkaround for workaround for rdar://problem/4699166 so that other people can use archivedResourceForURL: too.
       
  7614 
       
  7615 2007-01-29  Jim Correia  <jim.correia@pobox.com>
       
  7616 
       
  7617         Reviewed by Mark.
       
  7618 
       
  7619         Added support for -allowsUndo/-setAllowsUndo: to allow editable WebView
       
  7620         clients to completely disable undo registration. This is functionally
       
  7621         equivalent to the methods with the same names on NSTextView.
       
  7622 
       
  7623         * WebView/WebView.mm:
       
  7624         (-[WebViewPrivate init]):
       
  7625         (-[WebView initWithCoder:]):
       
  7626         (-[WebView encodeWithCoder:]):
       
  7627         (-[WebView allowsUndo]):
       
  7628         (-[WebView setAllowsUndo:]):
       
  7629         (-[WebView undoManager]):
       
  7630         * WebView/WebViewPrivate.h:
       
  7631 
       
  7632 2007-01-29  Ada Chan  <adachan@apple.com>
       
  7633 
       
  7634         Reviewed by Brady.
       
  7635 
       
  7636         Moved the update of the title of the current entry in the backforward list to WebCore.
       
  7637 
       
  7638         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  7639         (WebFrameLoaderClient::setTitle):
       
  7640 
       
  7641 2007-01-29  Adele Peterson  <adele@apple.com>
       
  7642 
       
  7643         Reviewed by Darin.
       
  7644 
       
  7645         More preparation for event handling fixes.
       
  7646 
       
  7647         * WebCoreSupport/WebEditorClient.h: Removed EventTargetNode parameter, since you can
       
  7648           just get this from the KeyboardEvent.
       
  7649         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): ditto.
       
  7650 
       
  7651         * WebView/WebHTMLViewInternal.h: Added interpretKeyEventsParameters struct.
       
  7652         * WebView/WebViewInternal.h: Changed parameter from NSEvent to WebCoreKeyboardEvent in _interceptEditingKeyEvent.
       
  7653         * WebView/WebHTMLView.mm:
       
  7654         (-[WebHTMLView yankAndSelect:]): Updated for new triggeringEvent parameter.
       
  7655         (-[WebHTMLView _interceptEditingKeyEvent:]): Set the WebHTMLViewInterpretKeyEventsParameters.
       
  7656         (-[WebHTMLView doCommandBySelector:]): Access WebHTMLViewInterpretKeyEventsParameters.
       
  7657         (-[WebHTMLView insertText:]): ditto.
       
  7658         (-[WebHTMLView _insertText:selectInsertedText:triggeringEvent:]): Added parameter for triggeringEvent.
       
  7659 
       
  7660 2007-01-29  Oliver Hunt  <oliver@apple.com>
       
  7661 
       
  7662         build fix  
       
  7663 
       
  7664         * WebView/WebHTMLView.mm:
       
  7665         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  7666 
       
  7667 2007-01-25  Oliver Hunt  <oliver@apple.com>
       
  7668 
       
  7669         Reviewed by Adam.
       
  7670 
       
  7671         Migrated drag state and logic to WebCore, removed superfluous methods
       
  7672 
       
  7673         * ChangeLog:
       
  7674         * WebCoreSupport/WebDragClient.h:
       
  7675         * WebCoreSupport/WebDragClient.mm:
       
  7676         (WebDragClient::dragSourceActionMaskForPoint):
       
  7677         * WebCoreSupport/WebFrameBridge.mm:
       
  7678            allowDHTMLDrag move to WebCore::EventHandler
       
  7679         * WebView/WebHTMLView.mm:
       
  7680         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  7681         (-[WebHTMLView draggedImage:movedTo:]):
       
  7682         (-[WebHTMLView draggedImage:endedAt:operation:]):
       
  7683           dragOffset and dragSourecAction is now stored in WebCore::DragController
       
  7684           migrated _delegateDragSourceActionMask to WebCore::DragController
       
  7685         * WebView/WebHTMLViewInternal.h:
       
  7686           Removed dragOffset declaration, migrated to WebCore::DragController
       
  7687         * WebView/WebView.mm:
       
  7688           removed unnecessary method, _loadingDragOperationForDraggingInfo
       
  7689 
       
  7690 2007-01-29  Maciej Stachowiak  <mjs@apple.com>
       
  7691 
       
  7692         Reviewed by Mark.
       
  7693 
       
  7694         - updated for cross-platform data loading support
       
  7695         
       
  7696         * WebCoreSupport/WebFrameLoaderClient.h:
       
  7697         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  7698         (WebFrameLoaderClient::createDocumentLoader):
       
  7699         * WebView/WebDataSource.mm:
       
  7700         (-[WebDataSource initWithRequest:]):
       
  7701         * WebView/WebDocumentLoaderMac.h:
       
  7702         * WebView/WebDocumentLoaderMac.mm:
       
  7703         (WebDocumentLoaderMac::WebDocumentLoaderMac):
       
  7704         * WebView/WebFrame.mm:
       
  7705         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
       
  7706         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
       
  7707         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
       
  7708         (-[WebFrame loadArchive:]):
       
  7709         * WebView/WebFrameInternal.h:
       
  7710         * WebView/WebHTMLView.mm:
       
  7711         (uniqueURLWithRelativePart):
       
  7712         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
  7713 
       
  7714 2007-01-27  David Kilzer  <ddkilzer@webkit.org>
       
  7715 
       
  7716         Reviewed by Adam.
       
  7717 
       
  7718         - fix http://bugs.webkit.org/show_bug.cgi?id=12260
       
  7719           Windows platform build is not maintained
       
  7720 
       
  7721         * COM/ChromeClientWin.cpp:
       
  7722         (ChromeClientWin::canTakeFocus):
       
  7723         (ChromeClientWin::takeFocus):
       
  7724         * COM/ChromeClientWin.h:
       
  7725         * COM/ContextMenuClientWin.cpp:
       
  7726         (ContextMenuClientWin::getCustomMenuFromDefaultItems):
       
  7727         (ContextMenuClientWin::searchWithGoogle):
       
  7728         * COM/ContextMenuClientWin.h:
       
  7729         * COM/WebFrameLoaderClient.cpp:
       
  7730         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
       
  7731         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  7732         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
  7733         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
  7734         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
  7735         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
  7736         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  7737         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  7738         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
  7739         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
  7740         (WebFrameLoaderClient::dispatchDidFailLoad):
       
  7741         (WebFrameLoaderClient::dispatchCreatePage):
       
  7742         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
  7743         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
  7744         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
  7745         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
  7746         (WebFrameLoaderClient::setMainDocumentError):
       
  7747         (WebFrameLoaderClient::incrementProgress):
       
  7748         (WebFrameLoaderClient::completeProgress):
       
  7749         (WebFrameLoaderClient::startDownload):
       
  7750         (WebFrameLoaderClient::committedLoad):
       
  7751         (WebFrameLoaderClient::cancelledError):
       
  7752         (WebFrameLoaderClient::cannotShowURLError):
       
  7753         (WebFrameLoaderClient::interruptForPolicyChangeError):
       
  7754         (WebFrameLoaderClient::cannotShowMIMETypeError):
       
  7755         (WebFrameLoaderClient::fileDoesNotExistError):
       
  7756         (WebFrameLoaderClient::shouldFallBack):
       
  7757         (WebFrameLoaderClient::willUseArchive):
       
  7758         (WebFrameLoaderClient::createDocumentLoader):
       
  7759         (WebFrameLoaderClient::download):
       
  7760         * COM/WebFrameLoaderClient.h:
       
  7761 
       
  7762 2007-01-27  David Harrison  <harrison@apple.com>
       
  7763 
       
  7764         Reviewed by Kevin.
       
  7765 
       
  7766         <rdar://problem/4958902> REGRESSION: Dashboard widgets fail to load
       
  7767         
       
  7768         This was caused by the WebView preferences rework in r18417. Specifically, in
       
  7769         _updateWebCoreSettingsFromPreferences when calling setUserStyleSheetLocation,
       
  7770         [NSURL URLWithString:] is now messaged directly with the result of
       
  7771         [[preferences userStyleSheetLocation] _web_originalDataAsString]], which will
       
  7772         be nil if the userStyleSheetLocation has not been set yet. [NSURL URLWithString:]
       
  7773         throws an exception when the string is nil. DashboardClient.app calls
       
  7774         setUserStyleSheetEnabled *before* calling setUserStyleSheetLocation.
       
  7775 
       
  7776         * WebView/WebView.mm:
       
  7777         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
  7778         Pass empty string instead of nil string to [NSURL URLWithString:].
       
  7779 
       
  7780 2007-01-26  Darin Adler  <darin@apple.com>
       
  7781 
       
  7782         Reviewed by Timothy.
       
  7783 
       
  7784         Fixes crash drawing avatar on mail.yahoo.com.
       
  7785 
       
  7786         * Plugins/WebBaseNetscapePluginStream.m: Retain the object since destroyStreamWithError: might
       
  7787         release the last reference to it.
       
  7788 
       
  7789 2007-01-26  Darin Adler  <darin@apple.com>
       
  7790 
       
  7791         Reviewed by Beth.
       
  7792 
       
  7793         * WebInspector/webInspector/inspector.js: Updated for new computed style properties.
       
  7794 
       
  7795 2007-01-26  Kevin Decker <kdecker@apple.com>
       
  7796 
       
  7797         Reviewed by andersca.
       
  7798 
       
  7799         Fixed: <rdar://problem/4946922> WebBaseNetscapePluginView leaks memory
       
  7800         http://bugs.webkit.org/show_bug.cgi?id=11523
       
  7801 
       
  7802         * Plugins/WebBaseNetscapePluginStream.m:
       
  7803        (-[WebBaseNetscapePluginStream setPlugin:]): Calls -[WebBaseNetscapePluginView disconnectStream:]
       
  7804         * Plugins/WebBaseNetscapePluginView.h: Added disconnectStream: to header.
       
  7805         * Plugins/WebBaseNetscapePluginView.mm:
       
  7806         (-[WebBaseNetscapePluginView stop]): Make a copy of the streams collection prior to calling stop all streams.
       
  7807         This is necessary because calling stop has the side effect of removing the stream from this same collection.
       
  7808         (-[WebBaseNetscapePluginView disconnectStream:]): Added. Removes the stream from the streams collection.
       
  7809 
       
  7810 2007-01-25  Kevin Decker <kdecker@apple.com>
       
  7811 
       
  7812         Backed out my last patch because it crashes espn.com. Stay tuned for a newer version..
       
  7813 
       
  7814         * Plugins/WebBaseNetscapePluginStream.m:
       
  7815         (-[WebBaseNetscapePluginStream setPlugin:]): Removed call to streamIsDead.
       
  7816         * Plugins/WebBaseNetscapePluginView.h: Removed streamIsDead.
       
  7817         * Plugins/WebBaseNetscapePluginView.mm: Ditto.
       
  7818 
       
  7819 2007-01-25  Darin Adler  <darin@apple.com>
       
  7820 
       
  7821         Reviewed by Beth.
       
  7822 
       
  7823         - fix <rdar://problem/4952766> Safari has a top secret color picker that can be used to... uhh... I don't know
       
  7824 
       
  7825         * Panels/English.lproj/WebAuthenticationPanel.nib/info.nib: Let Interface Builder have its way.
       
  7826         * Panels/English.lproj/WebAuthenticationPanel.nib/objects.nib: Remove the NSColorWell that was
       
  7827         in here (for no good reason).
       
  7828 
       
  7829 2007-01-25  Kevin Decker  <kdecker@apple.com>
       
  7830 
       
  7831         Reviewed by andersca.
       
  7832 
       
  7833         A few tweaks with of a fix done by Steve Gehrman.
       
  7834 
       
  7835         Fixed: <rdar://problem/4946922> WebBaseNetscapePluginView leaks memory
       
  7836                http://bugs.webkit.org/show_bug.cgi?id=11523
       
  7837 
       
  7838         * Plugins/WebBaseNetscapePluginStream.m:
       
  7839         (-[WebBaseNetscapePluginStream setPlugin:]): Calls -[WebBaseNetscapePluginView streamIsDead:]
       
  7840         * Plugins/WebBaseNetscapePluginView.h: Added streamIsDead to header.
       
  7841         * Plugins/WebBaseNetscapePluginView.mm:
       
  7842         (-[WebBaseNetscapePluginView streamIsDead:]): Added. Removes the stream from the streams collection.
       
  7843 
       
  7844 2007-01-25  John Sullivan  <sullivan@apple.com>
       
  7845 
       
  7846         Reviewed by Kevin, Geoff, Brady, and Darin
       
  7847         
       
  7848         - fixed <rdar://problem/4918446> Safari's temp files (PDF's) should be in a sub-folder when calling Preview
       
  7849         
       
  7850         * WebView/WebPDFView.mm:
       
  7851         (-[WebPDFView _path]):
       
  7852         use _temporaryPDFDirectoryPath method instead of #defines for hardwiring strings; stop bad practice
       
  7853         of modifying the const char* returned by fileSystemRepresentation
       
  7854         (-[WebPDFView _temporaryPDFDirectoryPath]):
       
  7855         new method, lazily creates and returns a secure temporary directory created with NSTemporaryDirectory()
       
  7856         and mkdtemp
       
  7857 
       
  7858         * English.lproj/StringsNotToBeLocalized.txt:
       
  7859         Updated for these and other recent changes
       
  7860 
       
  7861 2007-01-24  Oliver Hunt  <oliver@apple.com>
       
  7862 
       
  7863         Build fix 
       
  7864 
       
  7865         * WebView/WebHTMLView.mm:
       
  7866         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  7867         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
  7868 
       
  7869 2007-01-24  Oliver Hunt  <ioliver@apple.com>
       
  7870 
       
  7871         Reviewed by Maciej.
       
  7872 
       
  7873         Migrating more drag state information to WebCore
       
  7874 
       
  7875         * WebKit.xcodeproj/project.pbxproj:
       
  7876         * WebView/WebHTMLView.mm:
       
  7877         (-[WebHTMLViewPrivate dealloc]):
       
  7878         (-[WebHTMLViewPrivate clear]):
       
  7879         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  7880         (-[WebHTMLView _mayStartDragAtEventLocation:]):
       
  7881         (-[WebHTMLView close]):
       
  7882         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
  7883         (-[WebHTMLView _delegateDragSourceActionMask]):
       
  7884         * WebView/WebHTMLViewInternal.h:
       
  7885 
       
  7886 2007-01-24  Adele Peterson  <adele@apple.com>
       
  7887 
       
  7888         Reviewed by Darin.
       
  7889 
       
  7890         Small improvement to my last checkin to prevent the keyEventWasInterpreted bool from
       
  7891         being overwritten by reentrancy.
       
  7892 
       
  7893         * WebView/WebHTMLView.mm:
       
  7894         (-[WebHTMLView _interceptEditingKeyEvent:]): Point keyEventWasInterpreted pointer to local variable.
       
  7895         (-[WebHTMLView doCommandBySelector:]):
       
  7896         (-[WebHTMLView insertText:]):
       
  7897         * WebView/WebHTMLViewInternal.h: Added BOOL pointer that will point to the local variable on the stack in _interceptEditingKeyEvent
       
  7898 
       
  7899 2007-01-24  Adele Peterson  <adele@apple.com>
       
  7900 
       
  7901         Reviewed by Darin.
       
  7902 
       
  7903         - Fix for <rdar://problem/4950527> REGRESSION: Can't use arrow keys (left/right) to navigate caret in input (type=text) or textarea fields
       
  7904 
       
  7905         Keep track of whether interpretKeyEvents handles the key event based on whether or not we get
       
  7906         called in insertText or doCommandBySelector.
       
  7907 
       
  7908         Test: fast/events/arrow-navigation.html
       
  7909 
       
  7910         * WebView/WebHTMLView.mm:
       
  7911         (-[WebHTMLView performKeyEquivalent:]):
       
  7912         (-[WebHTMLView _interceptEditingKeyEvent:]):
       
  7913         (-[WebHTMLView doCommandBySelector:]):
       
  7914         (-[WebHTMLView insertText:]):
       
  7915         * WebView/WebHTMLViewInternal.h:
       
  7916 
       
  7917 2007-01-25  Mark Rowe  <mrowe@apple.com>
       
  7918 
       
  7919         Reviewed by Maciej.
       
  7920 
       
  7921         * Info.plist: Update copyright string.
       
  7922 
       
  7923 2007-01-24  Darin Adler  <darin@apple.com>
       
  7924 
       
  7925         Reviewed by Mark Rowe.
       
  7926 
       
  7927         * WebKit.xcodeproj/project.pbxproj: Changed to /usr/sbin/sysctl
       
  7928         so we don't rely on people's paths.
       
  7929 
       
  7930 2007-01-24  Darin Adler  <darin@apple.com>
       
  7931 
       
  7932         Reviewed by Adele.
       
  7933 
       
  7934         - fix small regression and GC problems noticed by code inspection
       
  7935 
       
  7936         * WebView/WebHTMLView.mm: Move global declarations to the start of the file.
       
  7937         (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
       
  7938         Add a CFRetain here for GC compatibility.
       
  7939         (+[WebHTMLView _insertablePasteboardTypes]): Ditto.
       
  7940         (-[WebHTMLView performKeyEquivalent:]): Fix small logic mistake that prevents
       
  7941         super from being called if EventHandler::keyEvent returns false. Reformatted
       
  7942         the code a bit and added a local variable for the frame.
       
  7943         (-[WebHTMLView _interceptEditingKeyEvent:]): Added some comments.
       
  7944         (-[WebHTMLView validAttributesForMarkedText]): Add a CFRetain here for
       
  7945         GC compatibility.
       
  7946 
       
  7947 2007-01-23  Adele Peterson  <adele@apple.com>
       
  7948 
       
  7949         Reviewed by Adam.
       
  7950 
       
  7951         Fixed 2 layout tests that I broke with my last checkin.
       
  7952 
       
  7953         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleKeyPress): Use the selected frame to get the WebHTMLView.
       
  7954         * WebView/WebHTMLView.mm:
       
  7955         (-[WebHTMLView performKeyEquivalent:]): Added global to keep track of NSEvent used here.
       
  7956         (-[WebHTMLView _interceptEditingKeyEvent:]): Check NSEvent against the event used in performKeyEquivalent.
       
  7957           We don't want to intercept these events.
       
  7958 
       
  7959 2007-01-23  Adele Peterson  <adele@apple.com>
       
  7960 
       
  7961         Reviewed by Darin.
       
  7962 
       
  7963         WebKit part of fix for <rdar://problem/4946753>REGRESSION: Inserting tabs is broken in Mail
       
  7964         
       
  7965         In addition to this fix, I also reorganized some event handling code for keyPress events to
       
  7966         prepare for another fix.
       
  7967 
       
  7968         * WebCoreSupport/WebEditorClient.h: Added handleKeyPress method.
       
  7969         * WebCoreSupport/WebEditorClient.mm:
       
  7970         (WebEditorClient::handleKeyPress): Added.  Code moved from WebHTMLView keyDown method.
       
  7971          This is called from the defaultEventHandler so that in the future, we can make the right 
       
  7972          decision about which selection the keyPress should apply to.
       
  7973         * WebView/WebHTMLView.mm:
       
  7974         (-[WebHTMLView keyDown:]): Moved _interceptEditingKeyEvent call to handleKeyPress.
       
  7975         (-[WebHTMLView _interceptEditingKeyEvent:]): Prevents intercepting keys for cmd-modified events. Removed tabCycling checks
       
  7976          since this is now handled in WebCore.
       
  7977         * WebView/WebHTMLViewInternal.h: Made _interceptEditingKeyEvent SPI.
       
  7978         * WebView/WebView.mm: Use new tabKeyCyclesThroughElements methods on the page.
       
  7979         (-[WebViewPrivate init]): ditto.
       
  7980         (-[WebView setTabKeyCyclesThroughElements:]): ditto.
       
  7981         (-[WebView tabKeyCyclesThroughElements]): ditto.
       
  7982         (-[WebView setEditable:]): ditto
       
  7983 
       
  7984 2007-01-23  Lars Knoll <lars@trolltech.com>
       
  7985 
       
  7986         Reviewed by Maciej
       
  7987 
       
  7988         Make the last remaining pieces of the FrameLoader platform 
       
  7989         independent. Move most of the code over to WebFrameLoaderClient.
       
  7990         Some smaller cleanups in the WebFrameBridge, and moved some
       
  7991         platform independent functionality over to the shared code
       
  7992         in WebCore.
       
  7993 
       
  7994         * Webcoresupport/WebFrameBridge.mm:
       
  7995         (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]):
       
  7996         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
       
  7997         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
  7998         * WebCoreSupport/WebFrameLoaderClient.h:
       
  7999         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8000         (WebFrameLoaderClient::setTitle):
       
  8001         (WebFrameLoaderClient::createFrame):
       
  8002         (WebFrameLoaderClient::objectContentType):
       
  8003         (nsArray):
       
  8004         (WebFrameLoaderClient::createPlugin):
       
  8005         (WebFrameLoaderClient::redirectDataToPlugin):
       
  8006         (nsMutableArray):
       
  8007         (WebFrameLoaderClient::createJavaAppletWidget):
       
  8008         (WebFrameLoaderClient::overrideMediaType):
       
  8009         (WebFrameLoaderClient::windowObjectCleared):
       
  8010 
       
  8011 2007-01-23  Oliver Hunt  <oliver@apple.com>
       
  8012 
       
  8013         Reviewed by Adam.
       
  8014 
       
  8015         Drop logic bindings for WebKit
       
  8016 
       
  8017         * WebCoreSupport/WebDragClient.h: Added.
       
  8018         * WebCoreSupport/WebDragClient.mm: Added.
       
  8019         (WebDragClient::WebDragClient):
       
  8020         (WebDragClient::actionMaskForDrag):
       
  8021         (WebDragClient::willPerformDragDestinationAction):
       
  8022           Standard client impl
       
  8023         * WebCoreSupport/WebFrameBridge.mm:
       
  8024         (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  8025           Updated to use DragController to track drag state
       
  8026     
       
  8027         * WebCoreSupport/WebPasteboardHelper.h: Added.
       
  8028         (WebPasteboardHelper::WebPasteboardHelper):
       
  8029           A *temporary* Helper class to access NSPasteboard access and 
       
  8030           manipulation functions present in WebKit
       
  8031         * WebCoreSupport/WebPasteboardHelper.mm: Added.
       
  8032         (WebPasteboardHelper::urlFromPasteboard):
       
  8033         (WebPasteboardHelper::plainTextFromPasteboard):
       
  8034         (WebPasteboardHelper::fragmentFromPasteboard):
       
  8035         (WebPasteboardHelper::insertablePasteboardTypes):
       
  8036           See header comment
       
  8037         * WebKit.xcodeproj/project.pbxproj:
       
  8038         * WebView/WebDocumentInternal.h:
       
  8039           Remove unnecessary protocol
       
  8040         * WebView/WebFrameView.mm:
       
  8041         (-[WebFrameView _setDocumentView:]):
       
  8042           Updating to use DragController to track drag state
       
  8043         * WebView/WebHTMLView.mm:
       
  8044         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
  8045           ditto
       
  8046         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
       
  8047           ditto
       
  8048         (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
       
  8049           ditto
       
  8050         (-[WebHTMLView draggedImage:endedAt:operation:]):
       
  8051           ditto          
       
  8052         (-[WebHTMLView _documentFragmentForPasteboard:]):
       
  8053           Helper method to generate DocumentFragment from NSPasteboard without regressing 
       
  8054         (-[WebHTMLView _canProcessDragWithDraggingInfo:]):
       
  8055           Updating to use DragController to track drag state
       
  8056         (-[WebHTMLView _isMoveDrag:]):
       
  8057         (-[WebHTMLView _isNSColorDrag:]):
       
  8058         * WebView/WebHTMLViewInternal.h:
       
  8059           Removing unnecessary fields and methods
       
  8060         * WebView/WebView.mm:
       
  8061         (-[WebViewPrivate dealloc]):
       
  8062           Remove obsolete ASSERT
       
  8063         (-[WebView _setInitiatedDrag:]):
       
  8064           Now passes directly through to DragController
       
  8065         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
  8066         (-[WebView _loadingDragOperationForDraggingInfo:]):
       
  8067           Removed
       
  8068         (-[WebView draggingEntered:]):
       
  8069           Updated to use DragController
       
  8070         (-[WebView draggingUpdated:]):
       
  8071           ditto
       
  8072         (-[WebView draggingExited:]):
       
  8073           ditto
       
  8074         (-[WebView performDragOperation:]):
       
  8075           ditto
       
  8076         (-[WebView _hitTest:dragTypes:]):
       
  8077         * WebView/WebViewInternal.h:
       
  8078           remove unnecessary method def
       
  8079 
       
  8080 2007-01-22  John Sullivan  <sullivan@apple.com>
       
  8081 
       
  8082         * WebView/WebHTMLView.mm:
       
  8083         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
  8084         Tiger build fix: remove unused variable for return value of dictionaryServiceWindowShow
       
  8085 
       
  8086 2007-01-22  John Sullivan  <sullivan@apple.com>
       
  8087 
       
  8088         Reviewed by Adam and Darin
       
  8089 
       
  8090         - fixed <rdar://problem/4794320> "Look Up in Dictionary" does nothing in WebKit 
       
  8091         (need to adopt new API)
       
  8092 
       
  8093         * Misc/WebNSURLExtras.m:
       
  8094         (-[NSString _web_isUserVisibleURL]):
       
  8095         random typo correction in comment
       
  8096 
       
  8097         * English.lproj/StringsNotToBeLocalized.txt:
       
  8098         updated for these changes
       
  8099 
       
  8100         * WebView/WebHTMLView.mm:
       
  8101         (coreGraphicsScreenPointForAppKitScreenPoint):
       
  8102         new function to convert an AppKit screen point to a CG screen point
       
  8103         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
  8104         on Leopard now uses new API. There's something of an impedance mismatch between
       
  8105         this API and WebKit, but that was true for the SPI we were using in Tiger also.
       
  8106         Bug 4945808 covers the ways in which this is not perfect.
       
  8107 
       
  8108 2007-01-21  Darin Adler  <darin@apple.com>
       
  8109 
       
  8110         Reviewed by Tim H.
       
  8111 
       
  8112         * WebInspector/webInspector/inspector.css: Use row-resize for the splitter cursor
       
  8113         instead of move. It's a horizontal splitter resizer.
       
  8114 
       
  8115 2007-01-19  Adam Roben  <aroben@apple.com>
       
  8116 
       
  8117         Reviewed by Beth.
       
  8118 
       
  8119         Fix <rdar://problem/4942294> REGRESSION: "Spelling and Grammar",
       
  8120         "Font", "Speech", and "Writing Direction" are missing from contextual
       
  8121         menu
       
  8122 
       
  8123         * WebCoreSupport/WebContextMenuClient.mm:
       
  8124         (fixMenusForOldClients): Change our new SPI tags to
       
  8125         WebMenuItemTagOther because old clients aren't expecting the new tags.
       
  8126         (fixMenusFromOldClients): Use each menu item's title to figure out its
       
  8127         correct tag again.
       
  8128         (WebContextMenuClient::getCustomMenuFromDefaultItems): Call
       
  8129         fixMenusForOldClients before calling up to the delegate.
       
  8130         * WebView/WebUIDelegatePrivate.h: Define WEBMENUITEMTAG_SPI_START so
       
  8131         that we can use it in WebContextMenuClient.
       
  8132 
       
  8133 2007-01-19  John Sullivan  <sullivan@apple.com>
       
  8134 
       
  8135         Reviewed by Darin
       
  8136 
       
  8137         - WebKit part of fix for: <rdar://problem/4451715> REGRESSION: On some sites, have to 
       
  8138           type a character before username/password autofill kicks in
       
  8139           
       
  8140         Added new webView:didFinishDocumentLoadForFrame: SPI and wired it up
       
  8141 
       
  8142         * WebView/WebViewPrivate.h:
       
  8143         declare new delegate method
       
  8144 
       
  8145         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8146         declare dispatchDidFinishDocumentLoad()
       
  8147 
       
  8148         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8149         (WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
       
  8150         new method, calls new delegate method
       
  8151 
       
  8152         * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
       
  8153         (-[WebDefaultFrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
       
  8154         empty default implementation of new delegate method
       
  8155 
       
  8156 2007-01-19  Anders Carlsson  <acarlsson@apple.com>
       
  8157 
       
  8158         Reviewed by John Sullivan.
       
  8159 
       
  8160         http://bugs.webkit.org/show_bug.cgi?id=12308
       
  8161         REGRESSION(r18910): Crash in WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError
       
  8162         
       
  8163         * Plugins/WebBaseNetscapePluginView.mm:
       
  8164         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
       
  8165         Move code from initWithFrame in here.
       
  8166 
       
  8167 2007-01-19  Anders Carlsson  <acarlsson@apple.com>
       
  8168 
       
  8169         Yet another build fix.
       
  8170         
       
  8171         * WebCoreSupport/WebChromeClient.h:
       
  8172         * WebCoreSupport/WebChromeClient.mm:
       
  8173         (WebChromeClient::setStatusbarText):
       
  8174 
       
  8175 2007-01-18  Anders Carlsson  <acarlsson@apple.com>
       
  8176 
       
  8177         Reviewed by Adam.
       
  8178 
       
  8179         Move functions from the bridge to the chrome client.
       
  8180         
       
  8181         * WebCoreSupport/WebChromeClient.h:
       
  8182         * WebCoreSupport/WebChromeClient.mm:
       
  8183         (WebChromeClient::runJavaScriptAlert):
       
  8184         (WebChromeClient::runJavaScriptConfirm):
       
  8185         (WebChromeClient::runJavaScriptPrompt):
       
  8186         (WebChromeClient::setStatusBarText):
       
  8187         * WebCoreSupport/WebFrameBridge.mm:
       
  8188 
       
  8189 2007-01-18  Adam Roben  <aroben@apple.com>
       
  8190 
       
  8191         Reviewed by Beth.
       
  8192 
       
  8193         Fix <rdar://problem/4939672> REGRESSION: With text selected that is
       
  8194         not a link, the "Remove Link" contextual menu item remains active
       
  8195 
       
  8196         * WebView/WebHTMLView.mm:
       
  8197         (-[WebHTMLView menuForEvent:]): Leave autoenabling of menu items on so
       
  8198         that clients can implement validateMenuItem:.
       
  8199 
       
  8200 2007-01-18  Brady Eidson  <beidson@apple.com>
       
  8201 
       
  8202         Reviewed by Adele
       
  8203 
       
  8204         <rdar://problem/4917290> - 
       
  8205         Null deref in WebFrameLoaderClient::restoreScrollPositionAndViewState() 
       
  8206         after regaining network connection
       
  8207 
       
  8208         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8209         (WebFrameLoaderClient::restoreScrollPositionAndViewState): Bail early with a null currentItem, preventing 
       
  8210         a crash in release builds.  Leave the ASSERT to help find other cases where this might happen in debug builds.
       
  8211 
       
  8212 2007-01-18  Kevin Decker  <kdecker@apple.com>
       
  8213 
       
  8214         Reviewed by John.
       
  8215 
       
  8216         <rdar://problem/4939511> WebKit should set the CG clip path for plug-ins that draw using CoreGraphics
       
  8217 
       
  8218         * Plugins/WebBaseNetscapePluginView.mm:
       
  8219         (-[WebBaseNetscapePluginView drawRect:]):  Set the CG clip path to the plug-in dirty rect. This allows plug-ins to obtain their
       
  8220         dirty rect using functions like CGContextGetClipBoundingBox().
       
  8221 
       
  8222 2007-01-17  Alice Liu  <alice.liu@apple.com>
       
  8223 
       
  8224         Reviewed by Harrison.
       
  8225 
       
  8226         Fix for <rdar://problem/4894155> REGRESSION: Extra line break is pasted with content into message body after choosing File - Paste
       
  8227 
       
  8228         Migration of some editing code from WebHTMView to WebCore::Editor
       
  8229         resulted in not calling pasteboardTypesForSelection, which Mail was
       
  8230         overriding for the special purpose of adding a type to the
       
  8231         pasteboard after WebKit did.  This patch adds 2 separate code paths
       
  8232         for Tiger and Leopard.  On Tiger we give in and call the WebView's
       
  8233         pasteboardTypesForSelection.  On Leopard we call a delegate after
       
  8234         the pasteboard types are set. 
       
  8235 
       
  8236         * DefaultDelegates/WebDefaultEditingDelegate.m:
       
  8237         (-[WebDefaultEditingDelegate webView:didSetSelectionTypesForPasteboard:]):
       
  8238         * WebCoreSupport/WebEditorClient.h:
       
  8239         * WebCoreSupport/WebEditorClient.mm:
       
  8240         (WebEditorClient::didSetSelectionTypesForPasteboard):
       
  8241         (WebEditorClient::pasteboardTypesForSelection):
       
  8242         * WebView/WebEditingDelegate.h:
       
  8243 
       
  8244 2007-01-17  John Sullivan  <sullivan@apple.com>
       
  8245 
       
  8246         Reviewed by Darin
       
  8247 
       
  8248         - WebKit part of fix for <rdar://problem/4462420> REGRESSION: Mail hangs during 
       
  8249           Replace All if the replacement string contains the search string
       
  8250 
       
  8251         * Misc/WebKitVersionChecks.h:
       
  8252         Added extern "C" so this can be used from .mm files. I don't need this change anymore for
       
  8253         this fix, but it's still worth fixing now so it doesn't bite anyone later.
       
  8254 
       
  8255         * WebView/WebDocumentPrivate.h:
       
  8256         Invented new private protocol WebDocumentIncrementalSearching, that has one method. The one
       
  8257         method is just like the one WebDocumentSearching method, but with an additional parameter.
       
  8258         We hope to eliminate this dependence on protocols someday, but adding another one as SPI
       
  8259         seems like it won't make anything worse.
       
  8260         
       
  8261         * WebView/WebHTMLView.mm:
       
  8262         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:]):
       
  8263         now calls through to new method that has one additional parameter, passing NO to match old behavior
       
  8264         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
       
  8265         pass new parameter to bridge
       
  8266         
       
  8267         * WebView/WebPDFView.h:
       
  8268         Declare conformance to WebDocumentIncrementalSearching protocol
       
  8269         
       
  8270         * WebView/WebPDFView.mm:
       
  8271         (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
       
  8272         now calls through to new method that has one additional parameter, passing NO to match old behavior
       
  8273         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
       
  8274         new method, former guts of searchFor:direction:caseSensitive:wrap: but now handles startInSelection
       
  8275         parameter
       
  8276         
       
  8277         * WebView/WebViewPrivate.h:
       
  8278         Declare new searchFor:direction:caseSensitive:wrap:startInSelection: method, just like existing
       
  8279         method but with one additional parameter
       
  8280 
       
  8281         * WebView/WebView.mm:
       
  8282         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
  8283         now calls through to new method that has one additional parameter, passing NO to match old behavior
       
  8284         (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]):
       
  8285         new method, former guts of searchFor:direction:caseSensitive:wrap: but now handles startInSelection
       
  8286         parameter
       
  8287         
       
  8288 2007-01-17  Brady Eidson  <beidson@apple.com>
       
  8289 
       
  8290         Reviewed by Deth Bakin and Brian Dash
       
  8291 
       
  8292         Drop Panther Support (?!?) and change the comment explaining some SPI forward decls
       
  8293 
       
  8294         * Misc/WebDownload.m:
       
  8295 
       
  8296 2007-01-17  Darin Adler  <darin@apple.com>
       
  8297 
       
  8298         Reviewed by Maciej.
       
  8299 
       
  8300         - fix http://bugs.webkit.org/show_bug.cgi?id=12278
       
  8301           <rdar://problem/4928705> REGRESSION(r13070): Dragged image size includes padding (12278)
       
  8302 
       
  8303         * Misc/WebElementDictionary.mm: (-[WebElementDictionary _imageRect]):
       
  8304         Call HitTestResult::imageRect, not HitTestResult::boundingBox.
       
  8305 
       
  8306 2007-01-17  Anders Carlsson  <acarlsson@apple.com>
       
  8307 
       
  8308         Reviewed by John Sullivan.
       
  8309         
       
  8310         Move all code in WebNetscapePluginEmbeddedView down to WebBaseNetscapePluginView.
       
  8311         
       
  8312         * Plugins/WebBaseNetscapePluginView.h:
       
  8313         * Plugins/WebBaseNetscapePluginView.mm:
       
  8314         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
       
  8315         (-[WebBaseNetscapePluginView didStart]):
       
  8316         (-[WebBaseNetscapePluginView dataSource]):
       
  8317         (-[WebBaseNetscapePluginView dealloc]):
       
  8318         (-[WebBaseNetscapePluginView pluginView:receivedResponse:]):
       
  8319         (-[WebBaseNetscapePluginView pluginView:receivedData:]):
       
  8320         (-[WebBaseNetscapePluginView pluginView:receivedError:]):
       
  8321         (-[WebBaseNetscapePluginView pluginViewFinishedLoading:]):
       
  8322         (-[WebBaseNetscapePluginView _redeliverStream]):
       
  8323         * Plugins/WebNetscapePluginEmbeddedView.h:
       
  8324         * Plugins/WebNetscapePluginEmbeddedView.mm:
       
  8325 
       
  8326 2007-01-17  Maciej Stachowiak  <mjs@apple.com>
       
  8327 
       
  8328         Reviewed by Eric.
       
  8329         
       
  8330         <rdar://problem/4887781> Seed: Repro Safari crash in -[WebHTMLRepresentation receivedData:withDataSource:] (music.aol.com)
       
  8331 
       
  8332         * WebView/WebDataSource.mm:
       
  8333         (-[WebDataSource _receivedData:]): Protect self against destruction partway through this method.
       
  8334 
       
  8335 2007-01-16  Alice Liu  <alice.liu@apple.com>
       
  8336 
       
  8337         Reviewed by harrison.
       
  8338 
       
  8339         Fixed <rdar://problem/4921134> WebKit needs extensible cut/copy to allow additional types to be written to pasteboard
       
  8340 
       
  8341         * DefaultDelegates/WebDefaultEditingDelegate.m:
       
  8342         (-[WebDefaultEditingDelegate webView:didWriteSelectionToPasteboard:]):
       
  8343         * WebCoreSupport/WebEditorClient.h:
       
  8344         * WebCoreSupport/WebEditorClient.mm:
       
  8345         (WebEditorClient::didWriteSelectionToPasteboard):
       
  8346         * WebKit.xcodeproj/project.pbxproj:
       
  8347         * WebView/WebEditingDelegate.h:
       
  8348 
       
  8349 2007-01-15  Justin Garcia  <justin.garcia@apple.com>
       
  8350 
       
  8351         Reviewed by mjs
       
  8352 
       
  8353         <rdar://problem/4810960>
       
  8354         Gmail Editor: window.focus() called on keyDown (9640)
       
  8355 
       
  8356         The window's keydown event handler was being called
       
  8357         instead of the editable subframe's if there was a key binding
       
  8358         for the key event.
       
  8359 
       
  8360         * WebView/WebHTMLView.mm:
       
  8361         (-[WebHTMLView performKeyEquivalent:]): Don't send the event
       
  8362         to WebCore unless this WebHTMLView is the firstResponder.
       
  8363 
       
  8364 2007-01-15  Anders Carlsson  <acarlsson@apple.com>
       
  8365 
       
  8366         Reviewed by Darin.
       
  8367 
       
  8368         Update to match WebCore.
       
  8369         
       
  8370         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8371         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8372         (WebFrameLoaderClient::willChangeEstimatedProgress):
       
  8373         (WebFrameLoaderClient::didChangeEstimatedProgress):
       
  8374         (WebFrameLoaderClient::postProgressStartedNotification):
       
  8375         (WebFrameLoaderClient::postProgressEstimateChangedNotification):
       
  8376         (WebFrameLoaderClient::postProgressFinishedNotification):
       
  8377         Post the correct notifications.
       
  8378         
       
  8379         * WebView/WebView.mm:
       
  8380         (-[WebViewPrivate init]):
       
  8381         (-[WebViewPrivate dealloc]):
       
  8382         Get rid of all progress tracking code.
       
  8383         
       
  8384         (-[WebView estimatedProgress]):
       
  8385         Call ProgressTracker::estimatedProgress()
       
  8386 
       
  8387 2007-01-15  Adam Roben  <aroben@apple.com>
       
  8388 
       
  8389         Reviewed by Darin.
       
  8390 
       
  8391         Fix: http://bugs.webkit.org/show_bug.cgi?id=12134
       
  8392         REGRESSION: Assertion failure and crash when right clicking selection
       
  8393         in forms
       
  8394 
       
  8395         * WebCoreSupport/WebContextMenuClient.mm:
       
  8396         (fixMenusFromOldApps): Static helper to fix up menus from applications
       
  8397         compiled against Tiger WebKit.
       
  8398         (WebContextMenuClient::getCustomMenuFromDefaultItems): Call helper to
       
  8399         fix menus.
       
  8400         * WebView/WebUIDelegatePrivate.h: Fixed typo.
       
  8401 
       
  8402 2007-01-14  David Kilzer  <ddkilzer@kilzer.net>
       
  8403 
       
  8404         Reviewed by Darin.
       
  8405 
       
  8406         - fix http://bugs.webkit.org/show_bug.cgi?id=12251
       
  8407           REGRESSION (r18822-r18823): Assertion failure opening document with non-existent resources
       
  8408           (dom/xhtml/level2/html/HTMLIFrameElement11.xhtml)
       
  8409 
       
  8410         * WebView/WebView.mm:
       
  8411         (-[WebView _objectForIdentifier:]): Removed assertion.
       
  8412         (-[WebView _removeObjectForIdentifier:]): Removed assertion.
       
  8413 
       
  8414 2007-01-12  Anders Carlsson  <acarlsson@apple.com>
       
  8415 
       
  8416         Reviewed by Darin.
       
  8417 
       
  8418         Add a HashMap between unsigned longs and Objective-C objects and use it for
       
  8419         the resource load delegate.
       
  8420         
       
  8421         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8422         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8423         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
       
  8424         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
  8425         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  8426         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
  8427         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
  8428         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
  8429         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
  8430         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
  8431         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  8432         (WebFrameLoaderClient::incrementProgress):
       
  8433         (WebFrameLoaderClient::completeProgress):
       
  8434         * WebView/WebView.mm:
       
  8435         (-[WebViewPrivate init]):
       
  8436         (-[WebViewPrivate dealloc]):
       
  8437         (-[WebView _addObject:forIdentifier:]):
       
  8438         (-[WebView _objectForIdentifier:]):
       
  8439         (-[WebView _removeObjectForIdentifier:]):
       
  8440         * WebView/WebViewInternal.h:
       
  8441 
       
  8442 2007-01-11  Brady Eidson  <beidson@apple.com>
       
  8443 
       
  8444         Reviewed by Anders
       
  8445 
       
  8446         Rewrites HTTP Authentication setting up a more platform-independent structure
       
  8447 
       
  8448         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8449         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8450         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
  8451         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
  8452         * WebKit.xcodeproj/project.pbxproj:
       
  8453 
       
  8454 2007-01-11  Darin Adler  <darin@apple.com>
       
  8455 
       
  8456         Reviewed by Mitz.
       
  8457 
       
  8458         - fix http://bugs.webkit.org/show_bug.cgi?id=12180
       
  8459           REGRESSION: Double-clicking on JS exception in JS log crashes in -[SharedBufferData initWithSharedBuffer:]
       
  8460 
       
  8461         * WebView/WebDataSource.mm: (-[WebDataSource data]): Added null check.
       
  8462 
       
  8463 2007-01-11  Darin Adler  <darin@apple.com>
       
  8464 
       
  8465         Reviewed by Hyatt.
       
  8466 
       
  8467         - moved code from a couple WebCore bridging classes here instead
       
  8468 
       
  8469         * Misc/WebNSPasteboardExtras.mm:
       
  8470         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
       
  8471         Use MimeTypeRegistry instead of WebMimeTypeRegistryBridge.
       
  8472 
       
  8473         * WebView/WebHTMLRepresentation.mm:
       
  8474         (stringArray): Added. Helper to convert a HashSet to an NSArray.
       
  8475         (concatenateArrays): Added. Helper to concatenate two NSArray objects.
       
  8476         (+[WebHTMLRepresentation supportedMIMETypes]): Use MimeTypeRegistry instead of
       
  8477         WebMimeTypeRegistryBridge. Also fix a potential GC problem by using a RetainPtr
       
  8478         instead of a [retain] on a global variable.
       
  8479         (+[WebHTMLRepresentation supportedNonImageMIMETypes]): Ditto.
       
  8480         (+[WebHTMLRepresentation supportedImageMIMETypes]): Ditto.
       
  8481 
       
  8482         * WebView/WebHTMLView.mm:
       
  8483         (-[WebHTMLView _imageExistsAtPaths:]): Use MimeTypeRegistry instead of
       
  8484         WebMimeTypeRegistryBridge.
       
  8485         (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
       
  8486 
       
  8487         * WebView/WebView.mm: (+[WebView _decodeData:]): Moved code here from
       
  8488         the old WebCoreEncodings class.
       
  8489 
       
  8490         * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with this file.
       
  8491         Moved WebRenderNode into the appropriate group.
       
  8492 
       
  8493 2007-01-10  Mitz Pettel  <mitz@webkit.org>
       
  8494 
       
  8495         Reviewed by Darin.
       
  8496 
       
  8497         - fix http://bugs.webkit.org/show_bug.cgi?id=11775
       
  8498           'Show URLs in Tool Tips' preference is ignored
       
  8499 
       
  8500         * WebView/WebHTMLView.mm:
       
  8501         (-[WebHTMLView _resetCachedWebPreferences:]):
       
  8502         (-[WebHTMLView setDataSource:]): Added a call to _resetCachedWebPreferences:.
       
  8503         Added an assertion that the view is not closed, instead of reopening it.
       
  8504         Reopening should not occur, now that <http://bugs.webkit.org/show_bug.cgi?id=12087>
       
  8505         is fixed.
       
  8506 
       
  8507 2007-01-10  Beth Dakin  <bdakin@apple.com>
       
  8508 
       
  8509         Reviewed by John.
       
  8510 
       
  8511         Fix for <rdar://problem/4914258> REGRESSION: Search in Google now 
       
  8512         operates on the current WebView instead of invoking Safari's 
       
  8513         service
       
  8514 
       
  8515         * WebCoreSupport/WebContextMenuClient.h:
       
  8516         * WebCoreSupport/WebContextMenuClient.mm:
       
  8517         (WebContextMenuClient::searchWithGoogle): Call into WebView to 
       
  8518         search in Google.
       
  8519         * WebView/WebViewInternal.h: Make _searchWithGoogleFromMenu 
       
  8520         available.
       
  8521 
       
  8522 2007-01-09  Timothy Hatcher  <timothy@apple.com>
       
  8523 
       
  8524         Reviewed by Darin.
       
  8525 
       
  8526         Rename the now ObjC++ files to be .mm and remove the explicit file types.
       
  8527 
       
  8528         * DOM/WebDOMOperations.m: Removed.
       
  8529         * DefaultDelegates/WebDefaultContextMenuDelegate.m: Removed.
       
  8530         * English.lproj/StringsNotToBeLocalized.txt:
       
  8531         * Misc/WebCoreStatistics.m: Removed.
       
  8532         * Misc/WebElementDictionary.m: Removed.
       
  8533         * Misc/WebIconDatabase.m: Removed.
       
  8534         * Misc/WebNSAttributedStringExtras.m: Removed.
       
  8535         * Misc/WebNSPasteboardExtras.m: Removed.
       
  8536         * Plugins/WebNetscapePluginEmbeddedView.m: Removed.
       
  8537         * Plugins/WebNullPluginView.m: Removed.
       
  8538         * Plugins/WebPluginContainerCheck.m: Removed.
       
  8539         * WebCoreSupport/WebViewFactory.m: Removed.
       
  8540         * WebKit.xcodeproj/project.pbxproj:
       
  8541         * WebView/WebArchiver.m: Removed.
       
  8542         * WebView/WebHTMLRepresentation.m: Removed.
       
  8543         * WebView/WebHTMLView.m: Removed.
       
  8544         * WebView/WebRenderNode.m: Removed.
       
  8545         * WebView/WebResource.m: Removed.
       
  8546         * WebView/WebScriptDebugDelegate.m: Removed.
       
  8547 
       
  8548 2007-01-09  Maciej Stachowiak  <mjs@apple.com>
       
  8549 
       
  8550         Reviewed by Darin.
       
  8551         
       
  8552         - remove window display throttling code; no longer used
       
  8553 
       
  8554         * Misc/WebNSWindowExtras.h:
       
  8555         * Misc/WebNSWindowExtras.m:
       
  8556         * WebView/WebFrameView.mm:
       
  8557         (-[WebFrameView initWithFrame:]):
       
  8558         * WebView/WebPreferenceKeysPrivate.h:
       
  8559 
       
  8560 2007-01-08  Anders Carlsson  <acarlsson@apple.com>
       
  8561 
       
  8562         Reviewed by Brady.
       
  8563 
       
  8564         Remove bridge functions that are implemented directly in FrameLoader now.
       
  8565         
       
  8566         * WebCoreSupport/WebFrameBridge.mm:
       
  8567 
       
  8568 2007-01-08  Sam Weinig  <sam@webkit.org>
       
  8569 
       
  8570         Reviewed by Mark.
       
  8571 
       
  8572         Adds default value for outline-color and fixes default
       
  8573         values of the recently fixed *-color properties.
       
  8574 
       
  8575         * WebInspector/webInspector/inspector.js:
       
  8576 
       
  8577 2007-01-08  Beth Dakin  <bdakin@apple.com>
       
  8578 
       
  8579         Reviewed by Adam.
       
  8580 
       
  8581         Fix for http://bugs.webkit.org/show_bug.cgi?id=12161 REGRESSION: 
       
  8582         Crash when control-clicking on an image for contextual menu
       
  8583 
       
  8584         * WebView/WebHTMLView.m:
       
  8585         (-[WebHTMLView menuForEvent:]): We need to nil-check coreMenu since 
       
  8586         it will be nil if the DOM popped up a menu instead. I cleaned up 
       
  8587         the function to make all the nil checks early returns instead of 
       
  8588         nesting all of the content. Also moved the autorelease to be with 
       
  8589         the creation of the menu instead of at the return.
       
  8590 
       
  8591 2007-01-08  Sam Weinig  <sam@webkit.org>
       
  8592 
       
  8593         Reviewed by Tim H.
       
  8594 
       
  8595         Adds default value for -webkit-box-shadow and fixes default
       
  8596         value of -webkit-column-count to be "auto".  Also sorts the
       
  8597         list of defaults.
       
  8598 
       
  8599         * WebInspector/webInspector/inspector.js:
       
  8600 
       
  8601 2007-01-08  Andrew Wellington  <proton@wiretapped.net>
       
  8602 
       
  8603         Reviewed by Mark.
       
  8604 
       
  8605         * WebInspector/webInspector/inspector.js: Hide default values of
       
  8606         -webkit-column styles in WebInspector.
       
  8607 
       
  8608 2007-01-05  Darin Adler  <darin@apple.com>
       
  8609 
       
  8610         Reviewed by Hyatt.
       
  8611 
       
  8612         * Misc/WebNSAttributedStringExtras.m:
       
  8613         (+[NSAttributedString _web_attributedStringFromRange:]):
       
  8614         Updated to use new list marker text API that is String rather than
       
  8615         DeprecatedString. Also removed code to do text form of non-text list
       
  8616         markers since the list marker class now deals with that.
       
  8617 
       
  8618 2007-01-05  Anders Carlsson  <acarlsson@apple.com>
       
  8619 
       
  8620         Reviewed by Darin.
       
  8621 
       
  8622         Fix build.
       
  8623         
       
  8624         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8625         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8626         (WebFrameLoaderClient::dispatchCreatePage):
       
  8627 
       
  8628 2007-01-05  Anders Carlsson  <acarlsson@apple.com>
       
  8629 
       
  8630         Reviewed by Maciej.
       
  8631 
       
  8632         The data returned is now a SharedBuffer so wrap it in an NSData object.
       
  8633         
       
  8634         * WebView/WebDataSource.mm:
       
  8635         (-[WebDataSource data]):
       
  8636 
       
  8637 2007-01-04  Adam Roben  <aroben@apple.com>
       
  8638 
       
  8639         Reviewed by Geoff, cheered by others.
       
  8640 
       
  8641         Dead code elimination.
       
  8642 
       
  8643         * WebView/WebHTMLView.m:
       
  8644 
       
  8645 2007-01-04  Adam Roben  <aroben@apple.com>
       
  8646 
       
  8647         Boo on me for undoing Beth's hard work.
       
  8648 
       
  8649         * WebView/WebHTMLView.m:
       
  8650         (-[WebHTMLView menuForEvent:]): Undo a mistaken roll out of r18597.
       
  8651 
       
  8652 2007-01-04  David Kilzer  <ddkilzer@webkit.org>
       
  8653 
       
  8654         Reviewed by Brady.
       
  8655 
       
  8656         - fix http://bugs.webkit.org/show_bug.cgi?id=12111
       
  8657           Uninitialized variable in -[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]
       
  8658 
       
  8659         * DefaultDelegates/WebDefaultPolicyDelegate.m: Initialize isDirectory.
       
  8660 
       
  8661 2007-01-04  Adam Roben  <aroben@apple.com>
       
  8662 
       
  8663         Reviewed by Geoff.
       
  8664 
       
  8665         Remove WebKit/AppKit from handling tabbing between subframes.
       
  8666 
       
  8667         * WebCoreSupport/WebChromeClient.h: Added new ChromeClient methods for
       
  8668         moving focus out of the WebView.
       
  8669         * WebCoreSupport/WebChromeClient.mm: Ditto.
       
  8670         (WebChromeClient::canTakeFocus):
       
  8671         (WebChromeClient::takeFocus):
       
  8672         * WebCoreSupport/WebFrameBridge.mm:
       
  8673         (-[WebFrameBridge webView]): Added null-check of m_frame.
       
  8674         * WebView/WebHTMLView.m: Removed -[WebHTMLView nextValidKeyView].
       
  8675         (-[WebHTMLView _updateActiveState]): Changed to focus the frame if
       
  8676         WebCore believes it to be the focused frame.
       
  8677         (-[WebHTMLView becomeFirstResponder]): Rewrote to call into
       
  8678         FocusController to place focus correctly within the WebView.
       
  8679 
       
  8680 2007-01-04  Anders Carlsson  <acarlsson@apple.com>
       
  8681 
       
  8682         Reviewed by Brady.
       
  8683 
       
  8684         FrameLoaderClient changed yet again.
       
  8685         
       
  8686         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8687         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8688         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
  8689         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  8690 
       
  8691 2007-01-04  Anders Carlsson  <acarlsson@apple.com>
       
  8692 
       
  8693         Reviewed by Adam.
       
  8694 
       
  8695         FrameLoaderClient changed again.
       
  8696         
       
  8697         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8698         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8699         (WebFrameLoaderClient::download):
       
  8700         (WebFrameLoaderClient::willUseArchive):
       
  8701 
       
  8702 2007-01-04  Beth Dakin  <bdakin@apple.com>
       
  8703 
       
  8704         Reviewed by Adam.
       
  8705 
       
  8706         No need to hit test twice.
       
  8707 
       
  8708         * WebView/WebHTMLView.m:
       
  8709         (-[WebHTMLView menuForEvent:]):
       
  8710 
       
  8711 2007-01-04  Beth Dakin  <bdakin@apple.com>
       
  8712 
       
  8713         Reviewed by Adam.
       
  8714 
       
  8715         Turn on WebCore context menus. Delete a bunch of WebKit context 
       
  8716         menu code that is no longer needed.
       
  8717 
       
  8718         * DefaultDelegates/WebDefaultContextMenuDelegate.m: Removed a lot 
       
  8719         of code from this class. This class only still needs to exist for 
       
  8720         PDF context menus, so we only need to deal with the menu items that 
       
  8721         might possibly be added to a PDF context menu.
       
  8722         (-[WebDefaultUIDelegate 
       
  8723         menuItemWithTag:target:representedObject:]): Same.
       
  8724         (-[WebDefaultUIDelegate 
       
  8725         webView:contextMenuItemsForElement:defaultMenuItems:]): Same.
       
  8726         * WebCoreSupport/WebContextMenuClient.h: Name change and have the 
       
  8727         former getCustomMenuFromDefaultItems function return the 
       
  8728         PlatformMenuDescription since it feels funny to have the client set 
       
  8729         the new platform description.
       
  8730         * WebCoreSupport/WebContextMenuClient.mm: Same.
       
  8731         (WebContextMenuClient::getCustomMenuFromDefaultItems): Same. Also 
       
  8732         move in some code that used to be in _menuForElement.
       
  8733         * WebView/WebHTMLView.m: Deleted a bunch of un-used functions
       
  8734         (-[WebHTMLView menuForEvent:]): Turn on menus, and append the 
       
  8735         Inspect Element item. 
       
  8736         * WebView/WebHTMLViewPrivate.h: Deleted a bunch of un-used 
       
  8737         functions.
       
  8738         * WebView/WebView.mm:
       
  8739         (-[WebView _menuForElement:defaultItems:]): Removed a lot of code 
       
  8740         from _menuForElement that now makes more sense elsewhere. Only PDF 
       
  8741         context menus use this function now. Hopefully we can just get rid 
       
  8742         of it soon, too.
       
  8743 
       
  8744 2007-01-04  Anders Carlsson  <acarlsson@apple.com>
       
  8745 
       
  8746         Reviewed by Brady.
       
  8747 
       
  8748         Update for WebCore changes.
       
  8749         
       
  8750         * WebCoreSupport/WebFrameLoaderClient.h:
       
  8751         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  8752         (WebFrameLoaderClient::download):
       
  8753         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
  8754         (WebFrameLoaderClient::dispatchWillSendRequest):
       
  8755         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
  8756         (WebFrameLoaderClient::incrementProgress):
       
  8757 
       
  8758 2007-01-04  Don Gibson  <dgibson77@gmail.com>
       
  8759 
       
  8760         Reviewed by Alexey.
       
  8761 
       
  8762         http://bugs.webkit.org/show_bug.cgi?id=11900:
       
  8763         Windows build bustage
       
  8764 
       
  8765         * COM/ChromeClientWin.cpp:
       
  8766         (ChromeClientWin::addMessageToConsole):
       
  8767         (ChromeClientWin::runBeforeUnloadConfirmPanel):
       
  8768         * COM/ChromeClientWin.h:
       
  8769         * COM/ContextMenuClientWin.cpp:
       
  8770         (ContextMenuClientWin::contextMenuItemSelected):
       
  8771         * COM/ContextMenuClientWin.h:
       
  8772         * COM/WebFrameLoaderClient.cpp:
       
  8773         (WebFrameLoaderClient::setDocumentViewFromPageCache):
       
  8774         (WebFrameLoaderClient::forceLayout):
       
  8775         (WebFrameLoaderClient::forceLayoutForNonHTML):
       
  8776         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad):
       
  8777         (WebFrameLoaderClient::updateGlobalHistoryForReload):
       
  8778         (WebFrameLoaderClient::shouldGoToHistoryItem):
       
  8779         (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem):
       
  8780         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
       
  8781         (WebFrameLoaderClient::provisionalLoadStarted):
       
  8782         (WebFrameLoaderClient::saveDocumentViewToPageCache):
       
  8783         (WebFrameLoaderClient::canCachePage):
       
  8784         * COM/WebFrameLoaderClient.h:
       
  8785         * WebKit.vcproj/WebKit.vcproj:
       
  8786 
       
  8787 2007-01-03  John Sullivan  <sullivan@apple.com>
       
  8788 
       
  8789         * WebView/WebPDFView.mm:
       
  8790         (-[WebPDFView _openWithFinder:]):
       
  8791         Tiger build fix: use [NSNumber initWithInt:] rather than the new [NSNumber initWithInteger:]
       
  8792 
       
  8793 2007-01-03  John Sullivan  <sullivan@apple.com>
       
  8794 
       
  8795         Reviewed by Kevin Decker
       
  8796 
       
  8797         - fixed <rdar://problem/4145714> WebKit's PDFView's "Open in Preview" puts the 
       
  8798           PDF in /tmp, both group and world-readable
       
  8799 
       
  8800         * WebView/WebPDFView.mm:
       
  8801         (-[WebPDFView _openWithFinder:]):
       
  8802         Make the file only readable by the current user
       
  8803 
       
  8804 2007-01-03  Beth Dakin  <bdakin@apple.com>
       
  8805 
       
  8806         Reviewed by John.
       
  8807 
       
  8808         Make localized strings for all of the context menu item titles that 
       
  8809         are accessible to WebCore.
       
  8810 
       
  8811         * English.lproj/Localizable.strings:
       
  8812         * WebCoreSupport/WebViewFactory.m:
       
  8813         (-[WebViewFactory contextMenuItemTagOpenLinkInNewWindow]):
       
  8814         (-[WebViewFactory contextMenuItemTagDownloadLinkToDisk]):
       
  8815         (-[WebViewFactory contextMenuItemTagCopyLinkToClipboard]):
       
  8816         (-[WebViewFactory contextMenuItemTagOpenImageInNewWindow]):
       
  8817         (-[WebViewFactory contextMenuItemTagDownloadImageToDisk]):
       
  8818         (-[WebViewFactory contextMenuItemTagCopyImageToClipboard]):
       
  8819         (-[WebViewFactory contextMenuItemTagOpenFrameInNewWindow]):
       
  8820         (-[WebViewFactory contextMenuItemTagCopy]):
       
  8821         (-[WebViewFactory contextMenuItemTagGoBack]):
       
  8822         (-[WebViewFactory contextMenuItemTagGoForward]):
       
  8823         (-[WebViewFactory contextMenuItemTagStop]):
       
  8824         (-[WebViewFactory contextMenuItemTagReload]):
       
  8825         (-[WebViewFactory contextMenuItemTagCut]):
       
  8826         (-[WebViewFactory contextMenuItemTagPaste]):
       
  8827         (-[WebViewFactory contextMenuItemTagNoGuessesFound]):
       
  8828         (-[WebViewFactory contextMenuItemTagIgnoreSpelling]):
       
  8829         (-[WebViewFactory contextMenuItemTagLearnSpelling]):
       
  8830         (-[WebViewFactory contextMenuItemTagSearchInSpotlight]):
       
  8831         (-[WebViewFactory contextMenuItemTagSearchWeb]):
       
  8832         (-[WebViewFactory contextMenuItemTagLookUpInDictionary]):
       
  8833         (-[WebViewFactory contextMenuItemTagOpenLink]):
       
  8834         (-[WebViewFactory contextMenuItemTagIgnoreGrammar]):
       
  8835         (-[WebViewFactory contextMenuItemTagSpellingMenu]):
       
  8836         (-[WebViewFactory contextMenuItemTagShowSpellingPanel:]):
       
  8837         (-[WebViewFactory contextMenuItemTagCheckSpelling]):
       
  8838         (-[WebViewFactory contextMenuItemTagCheckSpellingWhileTyping]):
       
  8839         (-[WebViewFactory contextMenuItemTagCheckGrammarWithSpelling]):
       
  8840         (-[WebViewFactory contextMenuItemTagFontMenu]):
       
  8841         (-[WebViewFactory contextMenuItemTagShowFonts]):
       
  8842         (-[WebViewFactory contextMenuItemTagBold]):
       
  8843         (-[WebViewFactory contextMenuItemTagItalic]):
       
  8844         (-[WebViewFactory contextMenuItemTagUnderline]):
       
  8845         (-[WebViewFactory contextMenuItemTagOutline]):
       
  8846         (-[WebViewFactory contextMenuItemTagStyles]):
       
  8847         (-[WebViewFactory contextMenuItemTagShowColors]):
       
  8848         (-[WebViewFactory contextMenuItemTagSpeechMenu]):
       
  8849         (-[WebViewFactory contextMenuItemTagStartSpeaking]):
       
  8850         (-[WebViewFactory contextMenuItemTagStopSpeaking]):
       
  8851         (-[WebViewFactory contextMenuItemTagWritingDirectionMenu]):
       
  8852         (-[WebViewFactory contextMenuItemTagDefaultDirection]):
       
  8853         (-[WebViewFactory contextMenuItemTagLeftToRight]):
       
  8854         (-[WebViewFactory contextMenuItemTagRightToLeft]):
       
  8855 
       
  8856 2007-01-03  Brady Eidson  <beidson@apple.com>
       
  8857 
       
  8858         Reviewed by John Sullivan
       
  8859 
       
  8860         In the Bookmarks View/History View, favicon may be the incorrect size
       
  8861 
       
  8862         * History/WebHistoryItem.mm:
       
  8863         (-[WebHistoryItem icon]): Call to the WebIconDatabase until a WebCore issue is resolved
       
  8864 
       
  8865 2007-01-03  Adele Peterson  <adele@apple.com>
       
  8866 
       
  8867         Reviewed by Darin.
       
  8868 
       
  8869         - Fix for <rdar://problem/4455147> Safari allows division slash character in URLs, which looks like slash character (not fixed by IDNScriptWhiteList.txt)
       
  8870 
       
  8871         * Misc/WebNSURLExtras.m: (allCharactersInIDNScriptWhiteList): Always disallow the division slash character.
       
  8872 
       
  8873 2007-01-02  Brady Eidson <beidson@apple.com>
       
  8874 
       
  8875         Controversially reviewed by Tim H. and Maciej
       
  8876 
       
  8877         Fixes http://bugs.webkit.org/show_bug.cgi?id=12086, http://bugs.webkit.org/show_bug.cgi?id=12088, 
       
  8878         possibly http://bugs.webkit.org/show_bug.cgi?id=12087, and probably a slew of others
       
  8879 
       
  8880         WebHistoryItems returned from the WebBackForwardList accessors were being release/retained out-of-order
       
  8881         by the Safari app.  This bug never surfaced before because the WebBackForwardList had a retain on the 
       
  8882         item, preventing deallocation. Since the items are now just temporary wrappers, the list 
       
  8883         is no longer actually retaining them.
       
  8884 
       
  8885         This solution is to simulate the ownership with a [[id retain] autorelease] - gross, but maybe the 
       
  8886         only solution for now...  =/
       
  8887 
       
  8888         We can possibly consider reverting this fix at a later date - that task is marked by
       
  8889         <rdar://problem/4905705>
       
  8890 
       
  8891         * History/WebBackForwardList.mm:
       
  8892         (-[WebBackForwardList backItem]):
       
  8893         (-[WebBackForwardList currentItem]):
       
  8894         (-[WebBackForwardList forwardItem]):
       
  8895         (-[WebBackForwardList itemAtIndex:]):
       
  8896 
       
  8897 2007-01-02  Beth Dakin  <bdakin@apple.com>
       
  8898 
       
  8899         Reviewed by Geoff.
       
  8900 
       
  8901         Remove un-used function.
       
  8902 
       
  8903         * WebCoreSupport/WebContextMenuClient.h:
       
  8904         * WebCoreSupport/WebContextMenuClient.mm:
       
  8905 
       
  8906 2007-01-02  Brady Eidson  <beidson@apple.com>
       
  8907 
       
  8908         Reviewed extensively and repeatedly by Darin
       
  8909 
       
  8910         <rdar://problem/4887137> - WebCore Back/Forward Cache 
       
  8911         Most things not specifically commented on in the ChangeLog can be summed up as 
       
  8912         "Do things exactly the same way as we used to, but just stick in WebCore-land as much as possible"
       
  8913 
       
  8914         * History/WebBackForwardList.mm:
       
  8915         (kitPrivate): Convenience functions to help with subbing "WebBackForwardListPrivate" for WebCore::BackForwardList
       
  8916         (core):
       
  8917         (backForwardListWrappers): A HashMap pattern used to map WebCore objects to their WebKit counterpart
       
  8918         (kit):
       
  8919         (+[WebBackForwardList setDefaultPageCacheSizeIfNecessary]):
       
  8920         (-[WebBackForwardList initWithWebCoreBackForwardList:]):
       
  8921         (-[WebBackForwardList init]):
       
  8922         (-[WebBackForwardList dealloc]):
       
  8923         (-[WebBackForwardList finalize]):
       
  8924         (-[WebBackForwardList _close]):
       
  8925         (-[WebBackForwardList addItem:]):
       
  8926         (-[WebBackForwardList removeItem:]):
       
  8927         (-[WebBackForwardList containsItem:]):
       
  8928         (-[WebBackForwardList goBack]):
       
  8929         (-[WebBackForwardList goForward]):
       
  8930         (-[WebBackForwardList goToItem:]):
       
  8931         (-[WebBackForwardList backItem]):
       
  8932         (-[WebBackForwardList currentItem]):
       
  8933         (-[WebBackForwardList forwardItem]):
       
  8934         (vectorToNSArray):
       
  8935         (-[WebBackForwardList backListWithLimit:]):
       
  8936         (-[WebBackForwardList forwardListWithLimit:]):
       
  8937         (-[WebBackForwardList capacity]):
       
  8938         (-[WebBackForwardList setCapacity:]):
       
  8939         (-[WebBackForwardList description]):
       
  8940         (-[WebBackForwardList _clearPageCache]):
       
  8941         (-[WebBackForwardList setPageCacheSize:]):
       
  8942         (-[WebBackForwardList pageCacheSize]):
       
  8943         (-[WebBackForwardList _usesPageCache]):
       
  8944         (-[WebBackForwardList backListCount]):
       
  8945         (-[WebBackForwardList forwardListCount]):
       
  8946         (-[WebBackForwardList itemAtIndex:]):
       
  8947         * History/WebBackForwardListInternal.h: Added.
       
  8948 
       
  8949         * History/WebHistory.m: Removed.
       
  8950         * History/WebHistory.mm: Added - Needed to be .mm to accept C++ header style
       
  8951         (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
       
  8952         (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
       
  8953 
       
  8954         * History/WebHistoryItem.mm:
       
  8955         (kitPrivate): Same pattern as WebBackForwardList
       
  8956         (core):
       
  8957         (historyItemWrappers):
       
  8958         (WKNotifyHistoryItemChanged):
       
  8959         (-[WebHistoryItem init]):
       
  8960         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
       
  8961         (-[WebHistoryItem dealloc]):
       
  8962         (-[WebHistoryItem finalize]):
       
  8963         (-[WebHistoryItem copyWithZone:]):
       
  8964         (-[WebHistoryItem URLString]):
       
  8965         (-[WebHistoryItem originalURLString]):
       
  8966         (-[WebHistoryItem title]):
       
  8967         (-[WebHistoryItem setAlternateTitle:]):
       
  8968         (-[WebHistoryItem alternateTitle]):
       
  8969         (-[WebHistoryItem icon]):
       
  8970         (-[WebHistoryItem lastVisitedTimeInterval]):
       
  8971         (-[WebHistoryItem hash]):
       
  8972         (-[WebHistoryItem isEqual:]):
       
  8973         (-[WebHistoryItem description]):
       
  8974         (kit):
       
  8975         (+[WebHistoryItem entryWithURL:]):
       
  8976         (+[WebHistoryItem initWindowWatcherIfNecessary]):
       
  8977         (-[WebHistoryItem initWithURL:target:parent:title:]):
       
  8978         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
       
  8979         (-[WebHistoryItem setTitle:]):
       
  8980         (-[WebHistoryItem setVisitCount:]):
       
  8981         (-[WebHistoryItem setViewState:]):
       
  8982         (-[WebHistoryItem _mergeAutoCompleteHints:]):
       
  8983         (-[WebHistoryItem initFromDictionaryRepresentation:]):
       
  8984         (-[WebHistoryItem scrollPoint]):
       
  8985         (-[WebHistoryItem _transientPropertyForKey:]):
       
  8986         (-[WebHistoryItem _setTransientProperty:forKey:]):
       
  8987         (-[WebHistoryItem dictionaryRepresentation]):
       
  8988         (-[WebHistoryItem target]):
       
  8989         (-[WebHistoryItem isTargetItem]):
       
  8990         (-[WebHistoryItem visitCount]):
       
  8991         (-[WebHistoryItem RSSFeedReferrer]):
       
  8992         (-[WebHistoryItem setRSSFeedReferrer:]):
       
  8993         (-[WebHistoryItem children]):
       
  8994         (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
       
  8995         (-[WebHistoryItem URL]):
       
  8996         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
       
  8997         (-[WebHistoryItem _lastVisitedDate]):
       
  8998         (-[WebHistoryItem targetItem]):
       
  8999         (+[WebHistoryItem _releaseAllPendingPageCaches]):
       
  9000         (-[WebWindowWatcher windowWillClose:]):
       
  9001         * History/WebHistoryItemInternal.h:
       
  9002         * History/WebHistoryItemPrivate.h:
       
  9003 
       
  9004         * WebCoreSupport/WebFrameBridge.mm:
       
  9005         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9006         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9007         (WebFrameLoaderClient::setDocumentViewFromPageCache):
       
  9008         (WebFrameLoaderClient::detachedFromParent1):
       
  9009         (WebFrameLoaderClient::loadedFromPageCache):
       
  9010         (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad):
       
  9011         (WebFrameLoaderClient::updateGlobalHistoryForReload):
       
  9012         (WebFrameLoaderClient::shouldGoToHistoryItem):
       
  9013         (WebFrameLoaderClient::frameLoadCompleted):
       
  9014         (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem):
       
  9015         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
       
  9016         (WebFrameLoaderClient::provisionalLoadStarted):
       
  9017         (WebFrameLoaderClient::setTitle):
       
  9018         (WebFrameLoaderClient::saveDocumentViewToPageCache):
       
  9019         (WebFrameLoaderClient::canCachePage):
       
  9020 
       
  9021         * WebCoreSupport/WebSystemInterface.m:
       
  9022         (InitWebCoreSystemInterface):
       
  9023 
       
  9024         * WebKit.xcodeproj/project.pbxproj:
       
  9025 
       
  9026         * WebView/WebDataSource.mm:
       
  9027         * WebView/WebDataSourceInternal.h:
       
  9028 
       
  9029         * WebView/WebFrame.mm:
       
  9030         (-[WebFramePrivate dealloc]):
       
  9031         (-[WebFrame _canCachePage]):
       
  9032         (-[WebFrame _loadURL:referrer:intoChild:]):
       
  9033         * WebView/WebFrameInternal.h:
       
  9034 
       
  9035         * WebView/WebFrameView.mm:
       
  9036         (-[WebFrameView initWithFrame:]):
       
  9037         (-[WebFrameView keyDown:]):
       
  9038 
       
  9039         * WebView/WebHTMLView.m:
       
  9040         (-[WebHTMLView closeIfNotCurrentView]): Added for a dirty hack in WebCore that is marked with a FIXME Radar
       
  9041         * WebView/WebHTMLViewInternal.h:
       
  9042 
       
  9043         * WebView/WebView.mm:
       
  9044         (-[WebViewPrivate init]):
       
  9045         (-[WebViewPrivate dealloc]):
       
  9046         (-[WebView _close]):
       
  9047         (-[WebView _loadBackForwardListFromOtherView:]):
       
  9048         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
  9049         (-[WebView initWithCoder:]):
       
  9050         (-[WebView backForwardList]):
       
  9051         (-[WebView goBack]):
       
  9052         (-[WebView goForward]):
       
  9053         (-[WebView goToBackForwardItem:]):
       
  9054         (-[WebView canGoBack]):
       
  9055         (-[WebView canGoForward]):
       
  9056 
       
  9057 2007-01-02  John Sullivan  <sullivan@apple.com>
       
  9058 
       
  9059         Reviewed by Kevin Decker
       
  9060 
       
  9061         - fixed <rdar://problem/4892525> Cannot open PDF in Preview if you attempted to 
       
  9062           open it in Preview while PDF was loading
       
  9063 
       
  9064         * WebView/WebPDFView.mm:
       
  9065         (-[WebPDFView menuForEvent:]):
       
  9066         added comment
       
  9067         (-[WebPDFView validateUserInterfaceItem:]):
       
  9068         disable this menu item when there's no document yet
       
  9069         (-[WebPDFView _openWithFinder:]):
       
  9070         If this is invoked when there is no document yet (e.g. via the PDFKit delegate method), 
       
  9071         just beep and return. I should make a nice error message here, but I'll do that separately.
       
  9072 
       
  9073 2007-01-03  Nikolas Zimmermann  <zimmermann@kde.org>
       
  9074 
       
  9075         Reviewed by Timothy.
       
  9076 
       
  9077         Fix inspection of RenderSVGInlineText objects (#text nodes in SVG documents).
       
  9078 
       
  9079         * WebInspector/WebInspector.m:
       
  9080         (-[WebInspector _highlightNode:]):
       
  9081 
       
  9082 2007-01-02  Beth Dakin  <bdakin@apple.com>
       
  9083 
       
  9084         Reviewed by Darin.
       
  9085 
       
  9086         Fix bug with WebCore context menu item "Copy Image."
       
  9087 
       
  9088         * WebCoreSupport/WebContextMenuClient.mm:
       
  9089         (WebContextMenuClient::copyImageToClipboard): We must call 
       
  9090         declareTypes on the pasteboard.
       
  9091 
       
  9092 2006-12-27  Mitz Pettel  <mitz@webkit.org>
       
  9093 
       
  9094         Reviewed by Geoff.
       
  9095 
       
  9096         - fix http://bugs.webkit.org/show_bug.cgi?id=9403
       
  9097           Red outline from Web Inspector appears above all other OS X windows
       
  9098 
       
  9099         Made the window containing the highlight a child window of the window
       
  9100         containing the view.
       
  9101 
       
  9102         * WebInspector/WebNodeHighlight.m:
       
  9103         (-[WebNodeHighlight initWithBounds:andRects:forView:]):
       
  9104         (-[WebNodeHighlight dealloc]):
       
  9105         (-[WebNodeHighlight expire]):
       
  9106 
       
  9107 2006-12-27  Matt Lilek  <pewtermoose@gmail.com>
       
  9108 
       
  9109         Reviewed by Tim H.
       
  9110         
       
  9111         Bug 11993: REGRESSION(r18320): Web Inspector scroll bars not drawn
       
  9112         http://bugs.webkit.org/show_bug.cgi?id=11993
       
  9113         
       
  9114         AppleVerticalScrollbar tries to set a NaN value as the scroll height which
       
  9115         causes DOM Exceptions after r18320.  This overrides the _setObjectLength
       
  9116         method and checks for NaN until a system update can fix this.  See rdar://4901491
       
  9117 
       
  9118         * WebInspector/webInspector/inspector.html:
       
  9119         * WebInspector/webInspector/inspector.js:
       
  9120 
       
  9121 2006-12-27  Geoffrey Garen  <ggaren@apple.com>
       
  9122 
       
  9123         Reviewed by Oliver Hunt.
       
  9124         
       
  9125         Fixed <rdar://problem/4901629> Crash occurs at WebCore::Frame::page() 
       
  9126         after closing window containing flash content
       
  9127         
       
  9128         No testcase because we can't open and close windows in DRT.
       
  9129         
       
  9130         I can't reproduce this crash, but from the backtrace it's clear that it 
       
  9131         occured because of a NULL frame object. Since it's valid for a frame to
       
  9132         be NULL, I've added NULL checks.
       
  9133 
       
  9134         * Plugins/WebBaseNetscapePluginView.mm:
       
  9135         (-[WebBaseNetscapePluginView sendEvent:]):
       
  9136         (-[WebBaseNetscapePluginView requestWithURLCString:]):
       
  9137         (-[WebBaseNetscapePluginView getVariable:value:]):
       
  9138 
       
  9139 2006-12-27  Geoffrey Garen  <ggaren@apple.com>
       
  9140 
       
  9141         Reviewed by Darin Adler.
       
  9142         
       
  9143         Updated <rdar://problem/4871518> fix based on Darin's comments.
       
  9144 
       
  9145         Instead of searching the frame tree to retrieve the new frame, put it in
       
  9146         a RefPtr, and then explicitly check for its removal. This option is slightly
       
  9147         more efficient, and it avoids problems that can occur due to frame name collision.
       
  9148         
       
  9149         * WebCoreSupport/WebFrameBridge.mm:
       
  9150         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
       
  9151 
       
  9152 2006-12-26  Geoffrey Garen  <ggaren@apple.com>
       
  9153 
       
  9154         Reviewed by Eric Seidel.
       
  9155 
       
  9156         Fixed <rdar://problem/4740328> Safari crash on quit in _NPN_ReleaseObject 
       
  9157         from KJS::Bindings::CInstance::~CInstance
       
  9158         
       
  9159         The essence of this change is that WebKit shouldn't meddle in plug-in
       
  9160         lifetime, since WebCore already manages it. The rest is details.
       
  9161         
       
  9162         * Plugins/WebBaseNetscapePluginView.mm:
       
  9163         (-[WebBaseNetscapePluginView removeTrackingRect]): Autorelease our window
       
  9164         instead of releasing it, since we might hold the last reference to our window,
       
  9165         and releasing it immediately would crash AppKit.
       
  9166         (-[WebBaseNetscapePluginView resetTrackingRect]):
       
  9167 
       
  9168         * Plugins/WebNetscapePluginEmbeddedView.h:
       
  9169         * Plugins/WebNetscapePluginEmbeddedView.m:
       
  9170         (-[WebNetscapePluginEmbeddedView dataSource]): Use our DOMElement to access
       
  9171         our WebFrame, since we don't keep around a direct pointer to our WebFrame
       
  9172         anymore.
       
  9173 
       
  9174         * Plugins/WebNullPluginView.h:
       
  9175         * Plugins/WebNullPluginView.m:
       
  9176         (-[WebNullPluginView initWithFrame:error:DOMElement:]):
       
  9177         (-[WebNullPluginView dealloc]):
       
  9178         (-[WebNullPluginView viewDidMoveToWindow]): Use our DOMElement to access
       
  9179         our WebFrame, as above.
       
  9180 
       
  9181         * WebCoreSupport/WebFrameBridge.mm: Don't call _addPlugInView because it
       
  9182         doesn't exist anymore. Do pass a DOMElement to WebNullPluginView's initializer,
       
  9183         so it can access its frame like WebNetscapePluginEmbeddedView does.
       
  9184         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
  9185         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
  9186 
       
  9187         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9188         * WebCoreSupport/WebFrameLoaderClient.mm: Removed didCloseDocument. It had
       
  9189         two purposes -- one unnecessary, one harmful:
       
  9190         (1) NULL out plug-ins' weak references to their frames. Unnecessary. Having 
       
  9191         plug-ins access their frames through their DOM elements solves this problem.
       
  9192         (2) Unload plug-ins. Harmful. If a plug-in unloads before WebCore is done
       
  9193         with it, WebCore will access unmapped memory. Also unnecessary. WebCore
       
  9194         Widgets take care of calling -removeFromSuperview on their NSViews, which
       
  9195         is sufficient for stopping plug-ins.
       
  9196 
       
  9197         * WebKit.xcodeproj/project.pbxproj: Made WebNullPluginView.m ObjC++.
       
  9198 
       
  9199         * WebView/WebFrame.mm: Removed _addPlugInView, since it was only used to
       
  9200         call -setWebFrame, which is gone.
       
  9201         (-[WebFramePrivate dealloc]):
       
  9202         * WebView/WebFrameInternal.h: Removed plugInViews, since it was only used
       
  9203         by _addPlugInView, which is gone.
       
  9204 
       
  9205 2006-12-26  Geoffrey Garen  <ggaren@apple.com>
       
  9206 
       
  9207         Reviewed by Eric Seidel.
       
  9208 
       
  9209         Some cleanup in preparation for fixing <rdar://problem/4740328> Safari 
       
  9210         crash on quit in _NPN_ReleaseObject from KJS::Bindings::CInstance::~CInstance
       
  9211         
       
  9212         Renamed "installedPlugins" to "sharedDatabase." This better follows 
       
  9213         the Cocoa naming scheme, and calls out the key attribute that produced this 
       
  9214         crash -- namely, that the database is shared throughout the process.
       
  9215         
       
  9216         -installedPlugins is actually a part of SPI, but a global search showed
       
  9217         that it had no users.
       
  9218 
       
  9219         * Plugins/WebPluginDatabase.h:
       
  9220         * Plugins/WebPluginDatabase.m:
       
  9221         (+[WebPluginDatabase sharedDatabase]):
       
  9222         (-[WebPluginDatabase refresh]):
       
  9223         (-[WebPluginDatabase _plugInPaths]):
       
  9224         (-[WebPluginDatabase _removePlugin:]):
       
  9225         * WebCoreSupport/WebViewFactory.m:
       
  9226         (-[WebViewFactory pluginsInfo]):
       
  9227         (-[WebViewFactory refreshPlugins:]):
       
  9228         (-[WebViewFactory pluginSupportsMIMEType:]):
       
  9229         * WebView/WebView.mm:
       
  9230         (+[WebView _supportedMIMETypes]):
       
  9231         (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
       
  9232         (-[WebView _close]):
       
  9233         (-[WebView _pluginForMIMEType:]):
       
  9234         (-[WebView _pluginForExtension:]):
       
  9235         (-[WebView _isMIMETypeRegisteredAsPlugin:]):
       
  9236 
       
  9237 2006-12-25  Geoffrey Garen  <ggaren@apple.com>
       
  9238 
       
  9239         Reviewed by Adam Roben.
       
  9240         
       
  9241         Fixed <rdar://problem/4778898> REGRESSION: crash in getInstanceForView() 
       
  9242         when quitting from kcbs.com
       
  9243 
       
  9244         No testcase because we can't open and close windows in DRT.
       
  9245 
       
  9246         The crash was caused by deallocating plug-ins that were later referenced
       
  9247         in the unload event handler.
       
  9248 
       
  9249         * Plugins/WebBaseNetscapePluginView.mm: Don't call stop on ourselves because
       
  9250         we may destroy our plugin before the unload handler fires. Also, we don't
       
  9251         need to, since didCloseDocument will do it for us.
       
  9252 
       
  9253         (-[WebBaseNetscapePluginView addWindowObservers]): We don't need to listen
       
  9254         for windowWillClose anymore, since we don't want to call -stop on ourselves.
       
  9255         (-[WebBaseNetscapePluginView removeWindowObservers]): ditto.
       
  9256 
       
  9257         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9258         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9259         (WebFrameLoaderClient::didCloseDocument): Renamed from "willCloseDocument."
       
  9260 
       
  9261 2006-12-25  Geoffrey Garen  <ggaren@apple.com>
       
  9262 
       
  9263         More "plugin" => "pluginPackage" renaming that I forgot to check in.
       
  9264         
       
  9265         * Plugins/WebBaseNetscapePluginView.h:
       
  9266         * Plugins/WebBaseNetscapePluginView.mm:
       
  9267         (-[WebBaseNetscapePluginView setPluginPackage:]):
       
  9268         * Plugins/WebNetscapePluginEmbeddedView.h:
       
  9269         * Plugins/WebNetscapePluginEmbeddedView.m:
       
  9270         (-[WebNetscapePluginEmbeddedView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
       
  9271         * WebCoreSupport/WebFrameBridge.mm:
       
  9272         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
  9273         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
  9274 
       
  9275 2006-12-25  Geoffrey Garen  <ggaren@apple.com>
       
  9276 
       
  9277         Reviewed by Eric Seidel.
       
  9278         
       
  9279         Fixed crash when opening view source window.
       
  9280 
       
  9281         * WebView/WebView.mm:
       
  9282         (-[WebView initWithCoder:]): Don't use the WebView until calling
       
  9283         _commonInitialization...
       
  9284 
       
  9285 2006-12-25  Geoffrey Garen  <ggaren@apple.com>
       
  9286 
       
  9287         Reviewed by Oliver Hunt.
       
  9288         
       
  9289         Removed WebCoreSettings, cleaned up WebCore::Settings.
       
  9290 
       
  9291         * WebView/WebFrame.mm: Added helper functions for converting between
       
  9292         WebKitEditableLinkBehavior and WebCore::EditableLinkBehavior. I'm not sure
       
  9293         that this is the best place for these functions, but it's where all the
       
  9294         other functions like them reside.
       
  9295         (core):
       
  9296         (kit):
       
  9297         * WebView/WebFrameInternal.h:
       
  9298 
       
  9299         * WebView/WebView.mm: Removed uses of WebCoreSettings. Replaced with direct
       
  9300         use of underlying page's settings.
       
  9301 
       
  9302 2006-12-25  Geoffrey Garen  <ggaren@apple.com>
       
  9303 
       
  9304         Reviewed by Oliver Hunt.
       
  9305         
       
  9306         Some refactoring in preparation for fixing <rdar://problem/4778898> 
       
  9307         REGRESSION: crash in getInstanceForView() when quitting from kcbs.com
       
  9308         
       
  9309         Two renames:
       
  9310             - "plugin" => "pluginPackage" (since the type is WebNetscapePluginPackage *)
       
  9311             - "instance" and/or "pluginPointer" => plugin (since NPP is an opaque handle to a plug-in)
       
  9312         
       
  9313         Removed braces around single-line 'if' statements.
       
  9314         
       
  9315         Made plugin a pointer instead of an inline ivar. This allows us to NULL
       
  9316         it out once we call NPP_Destroy on it.
       
  9317         
       
  9318         Added helper functions for creating and destroying plugin. The destroy function
       
  9319         NULLs out plugin, which helps with debugging.
       
  9320             
       
  9321         (-[WebBaseNetscapePluginView willCallPlugInFunction]): Added an ASSERT
       
  9322         to catch attempts to call functions on destroyed plug-ins.
       
  9323 
       
  9324         (-[WebBaseNetscapePluginView _createPlugin]): New helper function.
       
  9325         (-[WebBaseNetscapePluginView _destroyPlugin]): New helper function.
       
  9326 
       
  9327 2006-12-24  David Kilzer  <ddkilzer@webkit.org>
       
  9328 
       
  9329         Removed empty directory.
       
  9330 
       
  9331         * WebKit/Loader: Removed.
       
  9332 
       
  9333 2006-12-22  Geoffrey Garen  <ggaren@apple.com>
       
  9334 
       
  9335         Reviewed by Brady Eidson.
       
  9336         
       
  9337         Fixed <rdar://problem/4871518> Leopard9A321: Crash visiting www.audible.com 
       
  9338         (WebCore::FrameLoader::loadSubframe)
       
  9339 
       
  9340         * WebCoreSupport/WebFrameBridge.mm:
       
  9341         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
       
  9342         - The fix: 
       
  9343             Changed to re-fetch the child frame we're trying to load before returning it,
       
  9344             since its onload handler may have removed it from the document. This
       
  9345             allows us to treat a removed frame like a frame that never loaded.
       
  9346         
       
  9347         - Plus some cleanup:
       
  9348             - Changed to return a WebCore::Frame* instead of a WebFrameBridge *,
       
  9349             to simplify some code.
       
  9350             - Grouped ObjC objects by usage, and moved calls to -release so that they
       
  9351             immediately follow the calls that retain.
       
  9352 
       
  9353 2006-12-21  John Sullivan  <sullivan@apple.com>
       
  9354 
       
  9355         Reviewed by Geoff Garen
       
  9356 
       
  9357         - improved concept and implementation of my previous checkin after discussing with Darin
       
  9358 
       
  9359         * WebView/WebViewPrivate.h:
       
  9360         * WebView/WebView.mm:
       
  9361         (-[WebView setHoverFeedbackSuspended:]):
       
  9362         renamed from setIgnoresMouseMovedEvents, and now tells the main WebHTMLView (if any) that this state has
       
  9363         changed. Telling just the main WebHTMLView is a bit of an implementation hack. Hopefully someday we can
       
  9364         rework the document architecture and make this kind of thing less hacky (but this is following existing
       
  9365         customs, so I don't feel too bad)
       
  9366         (-[WebView isHoverFeedbackSuspended]):
       
  9367         renamed from ignoresMouseMovedEvents
       
  9368 
       
  9369         * WebView/WebHTMLViewInternal.h:
       
  9370         declare _hoverFeedbackSuspendedChanged
       
  9371 
       
  9372         * WebView/WebHTMLView.m:
       
  9373         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
  9374         test the webView's state of the hit-tested WebHTMLView rather than self 
       
  9375         (-[WebHTMLView _hoverFeedbackSuspendedChanged]):
       
  9376         generate a fake mouse-moved event, which simulates the mouse moving away from
       
  9377         the current element or back over it
       
  9378 
       
  9379 2006-12-21  Darin Adler  <darin@apple.com>
       
  9380 
       
  9381         Reviewed by Oliver.
       
  9382 
       
  9383         * WebInspector/webInspector/inspector.js: Added default values for the new CSS
       
  9384         properties so they don't appear in the inspector when their values are
       
  9385         uninteresting.
       
  9386 
       
  9387 2006-12-21  John Sullivan  <sullivan@apple.com>
       
  9388 
       
  9389         Reviewed by Geoff Garen
       
  9390 
       
  9391         - added WebKit support for making a web page temporarily ignore mouse movements
       
  9392 
       
  9393         * WebView/WebViewPrivate.h:
       
  9394         declare ignoresMouseMovedEvents and setIgnoresMouseMovedEvents:
       
  9395 
       
  9396         * WebView/WebView.mm:
       
  9397         added ignoresMouseMovedEvents boolean field to _private data structure
       
  9398         (-[WebView setIgnoresMouseMovedEvents:]):
       
  9399         set new boolean field
       
  9400         (-[WebView ignoresMouseMovedEvents]):
       
  9401         return new boolean field
       
  9402 
       
  9403         * WebView/WebHTMLView.m:
       
  9404         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
  9405         bail out right away if [[self _webView] ignoresMouseMovedEvents]
       
  9406 
       
  9407 2006-12-21  Mark Rowe  <bdash@webkit.org>
       
  9408 
       
  9409         Reviewed by Geoff.
       
  9410 
       
  9411         http://bugs.webkit.org/show_bug.cgi?id=11888
       
  9412         Bug 11888: REGRESSION (r18320): Web Inspector panes broken
       
  9413 
       
  9414         * WebInspector/webInspector/inspector.js: Use removeProperty to reset a style property to its
       
  9415         initial value.  Bail out early from updateNodePane if Inspector has not yet been set.
       
  9416 
       
  9417 2006-12-19  John Sullivan  <sullivan@apple.com>
       
  9418 
       
  9419         Reviewed by Darin
       
  9420 
       
  9421         - fix for unrepro infinite recursion bug:
       
  9422         <rdar://problem/4448181> CrashTracer: 154 crashes in Safari at com.apple.AppKit: 
       
  9423         -[NSView isDescendantOf:] + 24; infinite recursion in makeFirstResponder logic
       
  9424 
       
  9425         * WebView/WebView.mm:
       
  9426         added becomingFirstResponder BOOL to private struct
       
  9427         (-[WebView becomeFirstResponder]):
       
  9428         use _private->becomingFirstResponder to guard against infinite recursion; complain on
       
  9429         debug builds if we run into this problem
       
  9430 
       
  9431 2006-12-19  Timothy Hatcher  <timothy@apple.com>
       
  9432 
       
  9433         Reviewed by Darin.
       
  9434 
       
  9435         <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
       
  9436 
       
  9437         * WebKit.xcodeproj/project.pbxproj:
       
  9438 
       
  9439 2006-12-18  Ada Chan  <adachan@apple.com>
       
  9440 
       
  9441         Reviewed by Adam.
       
  9442         
       
  9443         Moved canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon
       
  9444         from WebCoreFrameBridge to Chrome.
       
  9445 
       
  9446         * COM/ChromeClientWin.cpp:
       
  9447         (ChromeClientWin::canRunBeforeUnloadConfirmPanel):
       
  9448         (ChromeClientWin::runBeforeUnloadConfirmPanel):
       
  9449         (ChromeClientWin::closeWindowSoon):
       
  9450         * COM/ChromeClientWin.h:
       
  9451         * WebCoreSupport/WebChromeClient.h:
       
  9452         * WebCoreSupport/WebChromeClient.mm:
       
  9453         (WebChromeClient::canRunBeforeUnloadConfirmPanel):
       
  9454         (WebChromeClient::runBeforeUnloadConfirmPanel):
       
  9455         (WebChromeClient::closeWindowSoon):
       
  9456         * WebCoreSupport/WebFrameBridge.mm:
       
  9457 
       
  9458 2006-12-18  Alice Liu  <alice.liu@apple.com>
       
  9459 
       
  9460         Reviewed by Adam.
       
  9461 
       
  9462         Have the Editor handle deletion instead of WebHTMLView
       
  9463 
       
  9464         * WebKitPrefix.h:
       
  9465         Turned on WebCore deletion
       
  9466 
       
  9467         * WebView/WebHTMLViewInternal.h:
       
  9468         Moved ownership of startNewKillRingSequence to the WebCore::Editor
       
  9469 
       
  9470         * WebView/WebHTMLView.m:
       
  9471         (-[NSArray becomeFirstResponder]):
       
  9472         Use the Editor's startNewKillRingSequence flag
       
  9473 
       
  9474         (-[NSArray deleteForward:]):
       
  9475         (-[NSArray deleteBackward:]):
       
  9476         (-[NSArray deleteWordForward:]):
       
  9477         (-[NSArray deleteWordBackward:]):
       
  9478         (-[NSArray deleteToBeginningOfLine:]):
       
  9479         (-[NSArray deleteToEndOfLine:]):
       
  9480         (-[NSArray deleteToBeginningOfParagraph:]):
       
  9481         (-[NSArray deleteToEndOfParagraph:]):
       
  9482         (-[NSArray deleteToMark:]):
       
  9483         use Editor::deleteWithDirection instead of WebHTMLView's
       
  9484 
       
  9485 2006-12-16  Adele Peterson  <adele@apple.com>
       
  9486 
       
  9487         Reviewed by Adam.
       
  9488 
       
  9489         WebKit part of fix for:
       
  9490         <rdar://problem/4463829> Switch to use new search field implementation for <input type="search">
       
  9491 
       
  9492         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Initialize WKDrawTextFieldCellFocusRing.
       
  9493         * WebInspector/webInspector/inspector.css: Set -webkit-user-select:text and text-shadow:none on the search field.
       
  9494           These are both properties that we didn't honor in the old control, and the inherited values didn't work or look right.
       
  9495 
       
  9496 2006-12-16  Beth Dakin  <bdakin@apple.com>
       
  9497 
       
  9498         Reviewed by Adam.
       
  9499 
       
  9500         WebKit side of making WebCore context menus support state and
       
  9501         enabled/disabled.
       
  9502 
       
  9503         * WebCoreSupport/WebContextMenuClient.h: contextMenuItemSelected
       
  9504         takes a pointer to the parentMenu now since menu items no longer
       
  9505         hold onto it.
       
  9506         * WebCoreSupport/WebContextMenuClient.mm: Same.
       
  9507         (WebContextMenuClient::contextMenuItemSelected): Same.
       
  9508         * WebView/WebHTMLView.m: Must call setAutoenablesItems:NO on our
       
  9509         menu.
       
  9510         (-[NSArray menuForEvent:]):
       
  9511         * WebView/WebUIDelegatePrivate.h: No need for if-def.
       
  9512 
       
  9513 2006-12-15  Anders Carlsson  <acarlsson@apple.com>
       
  9514 
       
  9515         Reviewed by Geoff.
       
  9516 
       
  9517         Update for WebCore changes.
       
  9518         
       
  9519         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9520         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9521         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
  9522         * WebView/WebDataSource.mm:
       
  9523         (-[WebDataSource response]):
       
  9524 
       
  9525 2006-12-15  Anders Carlsson  <acarlsson@apple.com>
       
  9526 
       
  9527         Reviewed by Darin.
       
  9528 
       
  9529         Update for WebCore changes.
       
  9530         
       
  9531         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9532         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9533         (WebFrameLoaderClient::willUseArchive):
       
  9534         * WebView/WebDataSource.mm:
       
  9535         (-[WebDataSource _URLForHistory]):
       
  9536 
       
  9537 2006-12-15  Marvin Decker  <marv.decker@gmail.com>
       
  9538 
       
  9539         Reviewed by Darin and Alexey.
       
  9540 
       
  9541         Fix the Windows build, move various Client implementations out of
       
  9542         WebCore and into WebKit.
       
  9543 
       
  9544         * COM/ChromeClientWin.cpp: Added.
       
  9545         (ChromeClientWin::~ChromeClientWin):
       
  9546         (ChromeClientWin::chromeDestroyed):
       
  9547         (ChromeClientWin::setWindowRect):
       
  9548         (ChromeClientWin::windowRect):
       
  9549         (ChromeClientWin::pageRect):
       
  9550         (ChromeClientWin::scaleFactor):
       
  9551         (ChromeClientWin::focus):
       
  9552         (ChromeClientWin::unfocus):
       
  9553         (ChromeClientWin::createWindow):
       
  9554         (ChromeClientWin::createModalDialog):
       
  9555         (ChromeClientWin::show):
       
  9556         (ChromeClientWin::canRunModal):
       
  9557         (ChromeClientWin::runModal):
       
  9558         (ChromeClientWin::setToolbarsVisible):
       
  9559         (ChromeClientWin::toolbarsVisible):
       
  9560         (ChromeClientWin::setStatusbarVisible):
       
  9561         (ChromeClientWin::statusbarVisible):
       
  9562         (ChromeClientWin::setScrollbarsVisible):
       
  9563         (ChromeClientWin::scrollbarsVisible):
       
  9564         (ChromeClientWin::setMenubarVisible):
       
  9565         (ChromeClientWin::menubarVisible):
       
  9566         (ChromeClientWin::setResizable):
       
  9567         (ChromeClientWin::addMessageToConsole):
       
  9568         * COM/ChromeClientWin.h: Added.
       
  9569         * COM/ContextMenuClientWin.cpp: Added.
       
  9570         (ContextMenuClientWin::~ContextMenuClientWin):
       
  9571         (ContextMenuClientWin::contextMenuDestroyed):
       
  9572         (ContextMenuClientWin::addCustomContextMenuItems):
       
  9573         (ContextMenuClientWin::contextMenuItemSelected):
       
  9574         (ContextMenuClientWin::copyLinkToClipboard):
       
  9575         (ContextMenuClientWin::downloadURL):
       
  9576         (ContextMenuClientWin::copyImageToClipboard):
       
  9577         (ContextMenuClientWin::lookUpInDictionary):
       
  9578         (ContextMenuClientWin::speak):
       
  9579         (ContextMenuClientWin::stopSpeaking):
       
  9580         * COM/ContextMenuClientWin.h: Added.
       
  9581         * COM/EditorClientWin.cpp: Added.
       
  9582         (EditorClientWin::~EditorClientWin):
       
  9583         (EditorClientWin::pageDestroyed):
       
  9584         (EditorClientWin::shouldDeleteRange):
       
  9585         (EditorClientWin::shouldShowDeleteInterface):
       
  9586         (EditorClientWin::smartInsertDeleteEnabled):
       
  9587         (EditorClientWin::isContinuousSpellCheckingEnabled):
       
  9588         (EditorClientWin::toggleContinuousSpellChecking):
       
  9589         (EditorClientWin::isGrammarCheckingEnabled):
       
  9590         (EditorClientWin::toggleGrammarChecking):
       
  9591         (EditorClientWin::spellCheckerDocumentTag):
       
  9592         (EditorClientWin::selectWordBeforeMenuEvent):
       
  9593         (EditorClientWin::isEditable):
       
  9594         (EditorClientWin::shouldBeginEditing):
       
  9595         (EditorClientWin::shouldEndEditing):
       
  9596         (EditorClientWin::shouldInsertNode):
       
  9597         (EditorClientWin::shouldInsertText):
       
  9598         (EditorClientWin::shouldApplyStyle):
       
  9599         (EditorClientWin::didBeginEditing):
       
  9600         (EditorClientWin::respondToChangedContents):
       
  9601         (EditorClientWin::didEndEditing):
       
  9602         (EditorClientWin::registerCommandForUndo):
       
  9603         (EditorClientWin::registerCommandForRedo):
       
  9604         (EditorClientWin::clearUndoRedoOperations):
       
  9605         (EditorClientWin::canUndo):
       
  9606         (EditorClientWin::canRedo):
       
  9607         (EditorClientWin::undo):
       
  9608         (EditorClientWin::redo):
       
  9609         * COM/EditorClientWin.h: Added.
       
  9610         * COM/WebFrame.cpp:
       
  9611         (WebFrame::WebFrame):
       
  9612         (WebFrame::initWithName):
       
  9613         * COM/WebFrame.h:
       
  9614         * COM/WebFrameLoaderClient.cpp: Added.
       
  9615         (WebFrameLoaderClient::WebFrameLoaderClient):
       
  9616         (WebFrameLoaderClient::~WebFrameLoaderClient):
       
  9617         (WebFrameLoaderClient::frameLoaderDestroyed):
       
  9618         (WebFrameLoaderClient::hasWebView):
       
  9619         (WebFrameLoaderClient::hasFrameView):
       
  9620         (WebFrameLoaderClient::hasBackForwardList):
       
  9621         (WebFrameLoaderClient::resetBackForwardList):
       
  9622         (WebFrameLoaderClient::provisionalItemIsTarget):
       
  9623         (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
       
  9624         (WebFrameLoaderClient::invalidateCurrentItemPageCache):
       
  9625         (WebFrameLoaderClient::privateBrowsingEnabled):
       
  9626         (WebFrameLoaderClient::makeDocumentView):
       
  9627         (WebFrameLoaderClient::makeRepresentation):
       
  9628         (WebFrameLoaderClient::forceLayout):
       
  9629         (WebFrameLoaderClient::forceLayoutForNonHTML):
       
  9630         (WebFrameLoaderClient::updateHistoryForCommit):
       
  9631         (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
       
  9632         (WebFrameLoaderClient::updateHistoryForReload):
       
  9633         (WebFrameLoaderClient::updateHistoryForStandardLoad):
       
  9634         (WebFrameLoaderClient::updateHistoryForInternalLoad):
       
  9635         (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
       
  9636         (WebFrameLoaderClient::setCopiesOnScroll):
       
  9637         (WebFrameLoaderClient::tokenForLoadErrorReset):
       
  9638         (WebFrameLoaderClient::resetAfterLoadError):
       
  9639         (WebFrameLoaderClient::doNotResetAfterLoadError):
       
  9640         (WebFrameLoaderClient::willCloseDocument):
       
  9641         (WebFrameLoaderClient::detachedFromParent1):
       
  9642         (WebFrameLoaderClient::detachedFromParent2):
       
  9643         (WebFrameLoaderClient::detachedFromParent3):
       
  9644         (WebFrameLoaderClient::detachedFromParent4):
       
  9645         (WebFrameLoaderClient::loadedFromPageCache):
       
  9646         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
       
  9647         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
       
  9648         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
       
  9649         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
  9650         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
       
  9651         (WebFrameLoaderClient::dispatchWillClose):
       
  9652         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
  9653         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
       
  9654         (WebFrameLoaderClient::dispatchDidReceiveTitle):
       
  9655         (WebFrameLoaderClient::dispatchDidCommitLoad):
       
  9656         (WebFrameLoaderClient::dispatchDidFinishLoad):
       
  9657         (WebFrameLoaderClient::dispatchDidFirstLayout):
       
  9658         (WebFrameLoaderClient::dispatchShow):
       
  9659         (WebFrameLoaderClient::cancelPolicyCheck):
       
  9660         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
  9661         (WebFrameLoaderClient::dispatchDidLoadMainResource):
       
  9662         (WebFrameLoaderClient::clearLoadingFromPageCache):
       
  9663         (WebFrameLoaderClient::isLoadingFromPageCache):
       
  9664         (WebFrameLoaderClient::revertToProvisionalState):
       
  9665         (WebFrameLoaderClient::clearUnarchivingState):
       
  9666         (WebFrameLoaderClient::progressStarted):
       
  9667         (WebFrameLoaderClient::progressCompleted):
       
  9668         (WebFrameLoaderClient::setMainFrameDocumentReady):
       
  9669         (WebFrameLoaderClient::willChangeTitle):
       
  9670         (WebFrameLoaderClient::didChangeTitle):
       
  9671         (WebFrameLoaderClient::finishedLoading):
       
  9672         (WebFrameLoaderClient::finalSetupForReplace):
       
  9673         (WebFrameLoaderClient::setDefersLoading):
       
  9674         (WebFrameLoaderClient::isArchiveLoadPending):
       
  9675         (WebFrameLoaderClient::cancelPendingArchiveLoad):
       
  9676         (WebFrameLoaderClient::clearArchivedResources):
       
  9677         (WebFrameLoaderClient::canHandleRequest):
       
  9678         (WebFrameLoaderClient::canShowMIMEType):
       
  9679         (WebFrameLoaderClient::representationExistsForURLScheme):
       
  9680         (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
       
  9681         (WebFrameLoaderClient::frameLoadCompleted):
       
  9682         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
       
  9683         (WebFrameLoaderClient::provisionalLoadStarted):
       
  9684         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
       
  9685         (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
       
  9686         (WebFrameLoaderClient::didFinishLoad):
       
  9687         (WebFrameLoaderClient::prepareForDataSourceReplacement):
       
  9688         (WebFrameLoaderClient::setTitle):
       
  9689         (WebFrameLoaderClient::userAgent):
       
  9690         * COM/WebFrameLoaderClient.h: Added.
       
  9691         * COM/WebKitDLL.h:
       
  9692         * WebKit.vcproj/WebKit.vcproj:
       
  9693 
       
  9694 2006-12-15  Anders Carlsson  <acarlsson@apple.com>
       
  9695 
       
  9696         Reviewed by Darin.
       
  9697 
       
  9698         Include ResourceError.h.
       
  9699         
       
  9700         * Plugins/WebNetscapePluginStream.mm:
       
  9701         * WebKit.xcodeproj/project.pbxproj:
       
  9702 
       
  9703 2006-12-14  Anders Carlsson  <acarlsson@apple.com>
       
  9704 
       
  9705         Reviewed by Maciej.
       
  9706 
       
  9707         Update for WebCore changes.
       
  9708         
       
  9709         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9710         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9711         (WebFrameLoaderClient::incrementProgress):
       
  9712         (WebFrameLoaderClient::committedLoad):
       
  9713         (WebFrameLoaderClient::deliverArchivedResources):
       
  9714         * WebView/WebView.mm:
       
  9715         (-[WebView _incrementProgressForIdentifier:length:]):
       
  9716         * WebView/WebViewInternal.h:
       
  9717 
       
  9718 2006-12-14  Timothy Hatcher  <timothy@apple.com>
       
  9719 
       
  9720         Reviewed by Darin.
       
  9721 
       
  9722         <rdar://problem/4827549> need NSRange-based selection support exposed.
       
  9723 
       
  9724         * WebView/WebFrame.mm:
       
  9725         (-[WebFrame _selectedNSRange]):
       
  9726         (-[WebFrame _selectNSRange:]):
       
  9727         * WebView/WebFramePrivate.h:
       
  9728 
       
  9729 2006-12-14  Anders Carlsson  <acarlsson@apple.com>
       
  9730 
       
  9731         Reviewed by John.
       
  9732 
       
  9733         Update for WebCore changes.
       
  9734         
       
  9735         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9736         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9737         (WebFrameLoaderClient::dispatchDidFailLoading):
       
  9738         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
  9739         (WebFrameLoaderClient::dispatchDidFailLoad):
       
  9740         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
  9741         (WebFrameLoaderClient::setMainDocumentError):
       
  9742         (WebFrameLoaderClient::cancelledError):
       
  9743         (WebFrameLoaderClient::cannotShowURLError):
       
  9744         (WebFrameLoaderClient::interruptForPolicyChangeError):
       
  9745         (WebFrameLoaderClient::cannotShowMIMETypeError):
       
  9746         (WebFrameLoaderClient::fileDoesNotExistError):
       
  9747         (WebFrameLoaderClient::shouldFallBack):
       
  9748 
       
  9749 2006-12-13  Maciej Stachowiak  <mjs@apple.com>
       
  9750 
       
  9751         Reviewed by Anders.
       
  9752         
       
  9753         - adjusted for changes from NSURLRequest to ResourceRequest
       
  9754 
       
  9755         * Plugins/WebPluginController.mm:
       
  9756         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9757         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9758         (WebFrameLoaderClient::updateHistoryForReload):
       
  9759         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
  9760         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
  9761         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
  9762         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
  9763         (WebFrameLoaderClient::startDownload):
       
  9764         (WebFrameLoaderClient::cannotShowURLError):
       
  9765         (WebFrameLoaderClient::createDocumentLoader):
       
  9766         * WebView/WebDataSource.mm:
       
  9767         (-[WebDataSource _initWithDocumentLoader:]):
       
  9768         (-[WebDataSource initialRequest]):
       
  9769         (-[WebDataSource request]):
       
  9770         * WebView/WebDocumentLoaderMac.h:
       
  9771         * WebView/WebDocumentLoaderMac.mm:
       
  9772         (WebDocumentLoaderMac::WebDocumentLoaderMac):
       
  9773         * WebView/WebFrame.mm:
       
  9774         (-[WebFrame _createItem:]):
       
  9775         (-[WebFrame _loadItem:withLoadType:]):
       
  9776         (-[WebFrame loadArchive:]):
       
  9777 
       
  9778 2006-12-12  Anders Carlsson  <acarlsson@apple.com>
       
  9779 
       
  9780         Reviewed by Darin.
       
  9781 
       
  9782         * WebCoreSupport/WebFrameLoaderClient.h:
       
  9783         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9784         (WebFrameLoaderClient::download):
       
  9785         Get the handle and proxy from the ResourceHandle now that they aren't passed to us.
       
  9786         
       
  9787 2006-12-11  Darin Adler  <darin@apple.com>
       
  9788 
       
  9789         Reviewed by Brady.
       
  9790 
       
  9791         - did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
       
  9792 
       
  9793         * WebCoreSupport/WebFrameBridge.h: Updated for change to WebCoreKeyboardAccess.
       
  9794         * WebCoreSupport/WebFrameBridge.mm:
       
  9795         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Ditto.
       
  9796         (-[WebFrameBridge keyboardUIMode]): Ditto.
       
  9797 
       
  9798 2006-12-11  Beth Dakin  <bdakin@apple.com>
       
  9799 
       
  9800         Reviewed by Adam.
       
  9801 
       
  9802         WebKit support for editing sub-menu actions.
       
  9803 
       
  9804         * WebCoreSupport/WebContextMenuClient.h: New functions for the
       
  9805         speech sub-menu.
       
  9806         * WebCoreSupport/WebContextMenuClient.mm:
       
  9807         (WebContextMenuClient::speak):
       
  9808         (WebContextMenuClient::stopSpeaking):
       
  9809         * WebCoreSupport/WebEditorClient.h: New functions to toggle
       
  9810         spelling/grammar checking.
       
  9811         * WebCoreSupport/WebEditorClient.mm:
       
  9812         (WebEditorClient::toggleContinuousSpellChecking):
       
  9813         (WebEditorClient::toggleGrammarChecking):
       
  9814         * WebView/WebUIDelegatePrivate.h: Re-named some of the spelling
       
  9815         sub-menu tags.
       
  9816 
       
  9817 2006-12-11  Alice Liu  <alice.liu@apple.com>
       
  9818 
       
  9819         Reviewed by Geoff, Adam.
       
  9820         
       
  9821         switch to use the Editor for copying URLs
       
  9822 
       
  9823         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
  9824         (-[WebDefaultUIDelegate copyLinkToClipboard:]):
       
  9825         Call down to the editor for this. 
       
  9826         * WebCoreSupport/WebSystemInterface.m:
       
  9827         (InitWebCoreSystemInterface):
       
  9828         Add some calls necessary for Pasteboard::writeURL to work
       
  9829 
       
  9830 2006-12-11  Darin Adler  <darin@apple.com>
       
  9831 
       
  9832         Reviewed by Brady.
       
  9833 
       
  9834         - http://bugs.webkit.org/show_bug.cgi?id=11794
       
  9835           fix lifetime problems affecting Frame's ownerElement pointer
       
  9836 
       
  9837         * WebCoreSupport/WebFrameBridge.mm:
       
  9838         (-[WebFrameBridge finishInitializingWithPage:WebCore::frameName:frameView:ownerElement:]):
       
  9839         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:frameView:]):
       
  9840         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
       
  9841         Use HTMLFrameOwnerElement.
       
  9842 
       
  9843         * WebCoreSupport/WebFrameLoaderClient.mm: Include the relevant headers for the
       
  9844         HTMLFormElement class.
       
  9845 
       
  9846         * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way.
       
  9847 
       
  9848         * WebView/WebFrame.mm: (-[WebFrame frameElement]): Update includes and types for the
       
  9849         change in return type of ownerElement.
       
  9850 
       
  9851 2006-12-11  David Harrison  <harrison@apple.com>
       
  9852 
       
  9853         Fix previous checkin where I committed the wrong file.
       
  9854 
       
  9855         <rdar://problem/4863611> Xyle Scope crashes at launch due to WebCore-521.29.3
       
  9856 
       
  9857         * WebView/WebFrame.mm:
       
  9858         (-[WebFrame frameElement]):
       
  9859         Add nil check.
       
  9860         
       
  9861         * WebView/WebPreferences.m:
       
  9862         (-[WebPreferences editableLinkBehavior]):
       
  9863         Reverted to previous.
       
  9864 
       
  9865 2006-12-08  David Hyatt  <hyatt@apple.com>
       
  9866 
       
  9867         Land new ICU abstraction layer.  Patch by Lars.
       
  9868 
       
  9869         Reviewed by me
       
  9870 
       
  9871         * ForwardingHeaders/wtf/icu/UnicodeIcu.h: Added.
       
  9872         * ForwardingHeaders/wtf/unicode/Unicode.h: Added.
       
  9873         * WebKit.xcodeproj/project.pbxproj:
       
  9874 
       
  9875 === Safari-521.32 ===
       
  9876 
       
  9877 2006-12-08  Timothy Hatcher  <timothy@apple.com>
       
  9878 
       
  9879         Rolling out a change that broke Mail stationary.
       
  9880         <rdar://problem/4699166> REGRESSION: Background images in Mail stationery do not load
       
  9881 
       
  9882         * WebView/WebUnarchivingState.m:
       
  9883         (-[WebUnarchivingState archivedResourceForURL:]):
       
  9884 
       
  9885 2006-12-08  Don Gibson  <dgibson77@gmail.com>
       
  9886 
       
  9887         Reviewed and landed by Alexey.
       
  9888 
       
  9889         http://bugs.webkit.org/show_bug.cgi?id=11759:
       
  9890         Windows build bustage
       
  9891 
       
  9892         * COM/WebFrame.cpp:
       
  9893         (WebFrame::loadDataSource):
       
  9894         * COM/WebFrame.h:
       
  9895 
       
  9896 2006-12-08  David Harrison  <harrison@apple.com>
       
  9897 
       
  9898         Reviewed by Brady.
       
  9899 
       
  9900         <rdar://problem/4863611> Xyle Scope crashes at launch due to WebCore-521.29.3
       
  9901 
       
  9902         * WebView/WebPreferences.m:
       
  9903         (-[WebPreferences editableLinkBehavior]):
       
  9904         Add nil check.
       
  9905 
       
  9906 2006-12-07  Beth Dakin  <bdakin@apple.com>
       
  9907 
       
  9908         Reviewed by Brady.
       
  9909 
       
  9910         Build fix for WebCore ContextMenus. It got broken by r18046.
       
  9911 
       
  9912         * WebView/WebHTMLView.m:
       
  9913         (-[NSArray menuForEvent:]):
       
  9914 
       
  9915 2006-12-07  Beth Dakin  <bdakin@apple.com>
       
  9916 
       
  9917         Reviewed by Brady.
       
  9918 
       
  9919         Make some parameters const and const references.
       
  9920 
       
  9921         * WebCoreSupport/WebContextMenuClient.h:
       
  9922         * WebCoreSupport/WebContextMenuClient.mm:
       
  9923         (WebContextMenuClient::contextMenuItemSelected):
       
  9924         (WebContextMenuClient::copyLinkToClipboard):
       
  9925         (WebContextMenuClient::downloadURL):
       
  9926         (WebContextMenuClient::copyImageToClipboard):
       
  9927 
       
  9928 2006-12-06  Brady Eidson  <beidson@apple.com>
       
  9929 
       
  9930         Reviewed by John Sullivan
       
  9931 
       
  9932         Fixes http://bugs.webkit.org/show_bug.cgi?id=11675 and <rdar://4857669>
       
  9933         Now we need to explicitly set the data source when loading from a page cache
       
  9934 
       
  9935         * History/WebHistoryItem.mm:
       
  9936         (-[WebHistoryItem _scheduleRelease]): Enhanced a logging message
       
  9937         (+[WebHistoryItem _releasePageCache:]): Ditto
       
  9938         (+[WebHistoryItem _releaseAllPendingPageCaches]): Ditto
       
  9939         * WebCoreSupport/WebFrameLoaderClient.mm:
       
  9940         (WebFrameLoaderClient::setDocumentViewFromPageCache): Reset the View's DataSource from the cache, effectively reopening it
       
  9941         * WebView/WebHTMLView.m:
       
  9942         (-[NSArray setDataSource:]): Properly Handle resetting the DataSource and "reopening" the view
       
  9943 
       
  9944 2006-12-06  Brady Eidson  <beidson@apple.com>
       
  9945 
       
  9946         Reviewed by Adam and Oliver
       
  9947 
       
  9948         While working on http://bugs.webkit.org/show_bug.cgi?id=11675 I
       
  9949         decided to fix much of the null-deref problems that creeped in via 
       
  9950         the loader refactoring.  This isn't changing behavior, just reintroducing
       
  9951         the free nil checking we used to have with pure ObjC
       
  9952 
       
  9953         * WebView/WebHTMLView.m:
       
  9954         (-[NSArray menuForEvent:]):  Explicitly check for null frames
       
  9955         (-[NSArray mouseDown:]):  Ditto
       
  9956         (-[NSArray mouseDragged:]):  Ditto
       
  9957         (-[NSArray mouseUp:]):  Ditto
       
  9958         (-[NSArray performKeyEquivalent:]):  Ditto
       
  9959         (-[WebHTMLView elementAtPoint:allowShadowContent:]):  Ditto
       
  9960 
       
  9961 2006-12-05  John Sullivan  <sullivan@apple.com>
       
  9962 
       
  9963         Reviewed by Beth
       
  9964 
       
  9965         Updated to match Frame -> Editor changes in WebCore
       
  9966 
       
  9967         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
  9968         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
  9969         guessesForUngrammaticalSelection() is now in Editor
       
  9970 
       
  9971         * WebView/WebHTMLView.m:
       
  9972         (-[WebHTMLView _isSelectionUngrammatical]):
       
  9973         isSelectionUngrammatical() is now in Editor
       
  9974         (-[WebHTMLView _isSelectionMisspelled]):
       
  9975         isSelectionMisspelled() is now in Editor
       
  9976 
       
  9977         (-[WebHTMLView checkSpelling:]):
       
  9978         advanceToNextMisspelling() is now in Editor
       
  9979         (-[WebHTMLView showGuessPanel:]):
       
  9980         ditto
       
  9981 
       
  9982 2006-12-05  John Sullivan  <sullivan@apple.com>
       
  9983 
       
  9984         Reviewed by Adam
       
  9985         
       
  9986         Old context-menu mechanism fix for:
       
  9987         <rdar://problem/4864351> Should leave out "No Guesses Found" from context menu for bad grammar
       
  9988 
       
  9989         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
  9990         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
  9991         Leave out "No Guesses Found" and separator for grammar-checking case.
       
  9992 
       
  9993 2006-12-05  John Sullivan  <sullivan@apple.com>
       
  9994 
       
  9995         build fix
       
  9996 
       
  9997         * WebView/WebViewPrivate.h:
       
  9998         * WebView/WebView.mm:
       
  9999         (-[WebView isGrammarCheckingEnabled]):
       
 10000         define isGrammarCheckingEnabled whether on Tiger or not (just return NO on Tiger)
       
 10001 
       
 10002 2006-12-04  John Sullivan  <sullivan@apple.com>
       
 10003 
       
 10004         Reviewed by Darin
       
 10005 
       
 10006         WebKit part of fix for:
       
 10007         <rdar://problem/4817188> Context menu for bad grammar should include suggestions and "Ignore Grammar"
       
 10008 
       
 10009         The context menu mechanism is currently in flux; the old mechanism is still in place, but an
       
 10010         up-and-coming new mechanism is waiting in the wings. I updated both of them, but couldn't
       
 10011         test the new mechanism because it doesn't work well enough yet. Most of this WebKit code
       
 10012         can be deleted when the new mechanism is in place.
       
 10013 
       
 10014         * WebView/WebUIDelegatePrivate.h:
       
 10015         added WebMenuItemTagIgnoreGrammar
       
 10016 
       
 10017         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 10018         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
       
 10019         added case for WebMenuItemTagIgnoreGrammar
       
 10020         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 10021         now considers adding grammar-related items as well as spelling-related items
       
 10022         
       
 10023         * WebView/WebHTMLViewPrivate.h:
       
 10024         declared _isSelectionUngrammatical
       
 10025 
       
 10026         * WebView/WebHTMLView.m:
       
 10027         (-[WebHTMLView _isSelectionUngrammatical]):
       
 10028         new method, calls through to WebCore
       
 10029         (-[WebHTMLView _ignoreGrammarFromMenu:]):
       
 10030         new method, calls _ignoreSpellingFromMenu: since NSSpellChecker has one method for both
       
 10031 
       
 10032         * English.lproj/Localizable.strings:
       
 10033         updated for "Ignore Grammar" menu item title
       
 10034 
       
 10035 2006-12-04  Darin Adler  <darin@apple.com>
       
 10036 
       
 10037         Reviewed by Adele.
       
 10038 
       
 10039         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10040         (WebFrameLoaderClient::actionDictionary): Changed to use the new
       
 10041         findEventWithKeyState function in WebCore instead of a local function
       
 10042         in this file.
       
 10043 
       
 10044 2006-12-04  Geoffrey Garen  <ggaren@apple.com>
       
 10045 
       
 10046         Rolled out the WebDashboardBehaviorUseBackwardCompatibilityModeEnabled
       
 10047         part of my last checkin.
       
 10048         
       
 10049         We have to turn on support for backward compatibility mode to avoid Dashboard
       
 10050         regressions in the short term.
       
 10051 
       
 10052         * WebView/WebView.mm:
       
 10053         (-[WebView _setDashboardBehavior:to:]):
       
 10054 
       
 10055 2006-12-02  Geoffrey Garen  <ggaren@apple.com>
       
 10056 
       
 10057         Reviewed by Darin Adler.
       
 10058         
       
 10059         Added SPI for enabling Dashboard backward compatibility mode. For now,
       
 10060         we enable it unconditionally for Dashboard and Dashcode. Once they 
       
 10061         implement specific support for the backward compatibility mode behavior,
       
 10062         we can change that.
       
 10063         
       
 10064         Set the default WebDashboardBehaviorUseBackwardCompatibilityModeEnabled
       
 10065         to YES in order to turn this code on.
       
 10066 
       
 10067         * WebView/WebView.mm:
       
 10068         (-[WebView _setDashboardBehavior:to:]):
       
 10069         (-[WebView _dashboardBehavior:]):
       
 10070         * WebView/WebViewPrivate.h:
       
 10071 
       
 10072 2006-12-04  Darin Adler  <darin@apple.com>
       
 10073 
       
 10074         Reviewed by Alice.
       
 10075 
       
 10076         * WebCoreSupport/WebEditorClient.h: Removed "_web_" prefix from
       
 10077         C++ userVisibleString member function.
       
 10078         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::userVisibleString):
       
 10079         Ditto.
       
 10080 
       
 10081         * WebView/WebView.mm: (-[WebView selectedFrame]): Removed extra return statement.
       
 10082 
       
 10083 2006-12-04  Don Gibson  <dgibson77@gmail.com>
       
 10084 
       
 10085         Reviewed and landed by Alexey.
       
 10086 
       
 10087         http://bugs.webkit.org/show_bug.cgi?id=11738:
       
 10088         Make link clicking work again on Windows.
       
 10089 
       
 10090         The WebKit changes are to ignore WM_MOUSEMOVED messages when the mouse
       
 10091         hasn't actually moved, which were preventing clicks from actually
       
 10092         getting dispatched in many cases.  It's a peculiarity of Windows mouse
       
 10093         handling that we receive these at all.
       
 10094 
       
 10095         * COM/WebView.cpp:
       
 10096         (WebView::WebView):
       
 10097         (WebView::mouseMoved):
       
 10098         * COM/WebView.h:
       
 10099 
       
 10100 2006-12-04  John Sullivan  <sullivan@apple.com>
       
 10101 
       
 10102         Reviewed by Anders
       
 10103 
       
 10104         - fixed <rdar://problem/4857833> REGRESSION: When ctrl-clicking on a misspelled word, "Ignore Spelling" and "Learn Spelling" 
       
 10105           menu items not displayed in the contextual menu
       
 10106 
       
 10107         * WebView/WebHTMLView.m:
       
 10108         (-[WebHTMLView _isSelectionMisspelled]):
       
 10109         We were computing isSelectionMisspelled by calling WebCore, but then ignoring the result and always
       
 10110         returning NO. D'oh!
       
 10111 
       
 10112 2006-12-01  Beth Dakin  <bdakin@apple.com>
       
 10113 
       
 10114         Reviewed by Adam.
       
 10115 
       
 10116         Changes to support sub-menus in WebCore ContextMenus.
       
 10117 
       
 10118         * WebCoreSupport/WebContextMenuClient.mm:
       
 10119         (WebContextMenuClient::contextMenuItemSelected): 
       
 10120         ContextMenuItem::menu() is now called parentMenu()
       
 10121         * WebView/WebUIDelegatePrivate.h: New not-yet-API tags.
       
 10122 
       
 10123 2006-12-01  Darin Adler  <darin@apple.com>
       
 10124 
       
 10125         Reviewed by Mitz.
       
 10126 
       
 10127         - fix http://bugs.webkit.org/show_bug.cgi?id=11628
       
 10128           REGRESSION (r17597): Command-return in native text fields doesn't open a new tab or window
       
 10129 
       
 10130         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10131         (findKeyStateEvent): Added. Helper that finds the mouse or keyboard event in a chain
       
 10132         of events and their underlying events.
       
 10133         (findMouseEvent): Added. Same, but specifically for mouse events.
       
 10134         (WebFrameLoaderClient::actionDictionary): Rewrote to use the above functions. This means we
       
 10135         use the modifiers from the underlying events rather than just the one from the event itself.
       
 10136         So if the event is a DOM activate event, we can still see the modifiers from the original
       
 10137         keyboard event that triggered it. Has no effect if the event is already the right type or
       
 10138         if there is no underlying event.
       
 10139 
       
 10140         * WebView/WebFrame.mm: Added a newly-needed include.
       
 10141 
       
 10142         * WebKit.xcodeproj/project.pbxproj: Xcode wants what it wants.
       
 10143 
       
 10144 2006-12-01  Don Gibson  <dgibson77@gmail.com>
       
 10145 
       
 10146         Reviewed by Mitz.
       
 10147 
       
 10148         http://bugs.webkit.org/show_bug.cgi?id=11732:
       
 10149         Windows build bustage.
       
 10150 
       
 10151         * COM/WebFrame.cpp:
       
 10152         (WebFrame::initWithName):
       
 10153 
       
 10154 2006-12-01  Timothy Hatcher  <timothy@apple.com>
       
 10155 
       
 10156         Reviewed by Adam.
       
 10157 
       
 10158         <rdar://problem/4841432> 9A312: iWeb crashes on launch; _WebReportError missing from WebKit
       
 10159 
       
 10160         Added back WebReportAssertionFailure and WebReportError for apps that still need these symbols.
       
 10161 
       
 10162         * Misc/OldWebAssertions.c: Added.
       
 10163         (WebReportAssertionFailure):
       
 10164         (WebReportError):
       
 10165         * WebKit.LP64.exp: added the new symbols, and sorted the file
       
 10166         * WebKit.exp: added the new symbols, and sorted the file
       
 10167         * WebKit.xcodeproj/project.pbxproj:
       
 10168 
       
 10169 2006-11-30  Geoffrey Garen  <ggaren@apple.com>
       
 10170 
       
 10171         Rubber Stamped by Anders Carlsson.
       
 10172 
       
 10173         Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
       
 10174         suggested a command, and conflicted with a different meaning for 'focusNode'
       
 10175         in the Mozilla selection API.
       
 10176 
       
 10177         * WebView/WebHTMLView.m:
       
 10178         (-[NSArray clearFocus]):
       
 10179 
       
 10180 2006-11-30  Matt Lilek  <pewtermoose@gmail.com>
       
 10181 
       
 10182         Reviewed by Mitz.
       
 10183 
       
 10184         Bug 10698: Scroll wheel causes inspector to shift up
       
 10185         http://bugs.webkit.org/show_bug.cgi?id=10698
       
 10186 
       
 10187         Remove size attribute from the tree popup as a workaround for
       
 10188         http://bugs.webkit.org/show_bug.cgi?id=11362 Bug 11362: Native popup with size="1" wraps options
       
 10189 
       
 10190         * WebInspector/webInspector/inspector.css:
       
 10191         * WebInspector/webInspector/inspector.html:
       
 10192 
       
 10193 2006-11-30  Matt Lilek  <pewtermoose@gmail.com>
       
 10194 
       
 10195         Reviewed by Tim H.
       
 10196 
       
 10197         Move web inspector style markup to javascript to fix http://bugs.webkit.org/show_bug.cgi?id=6724
       
 10198         Bug 6724: Text copied from Web Inspector is different from actual text
       
 10199 
       
 10200         * WebInspector/webInspector/inspector.css:
       
 10201         * WebInspector/webInspector/inspector.js:
       
 10202 
       
 10203 2006-11-30  Adam Roben  <aroben@apple.com>
       
 10204 
       
 10205         Reviewed by Beth.
       
 10206 
       
 10207         Put code in place to use WebCore context menus when they are turned
       
 10208         on.
       
 10209 
       
 10210         * WebView/WebHTMLView.m:
       
 10211         (-[NSArray menuForEvent:]):
       
 10212 
       
 10213 2006-11-29  Timothy Hatcher  <timothy@apple.com>
       
 10214 
       
 10215         Reviewed by Oliver.
       
 10216 
       
 10217         Keep preferences separate from the rest of the client, making sure we are using expected preference values.
       
 10218         This lets the inspector work when plugins are disabled for the WebView.
       
 10219 
       
 10220         * WebInspector/WebInspector.m:
       
 10221         (-[NSWindow window]):
       
 10222 
       
 10223 2006-11-29  Anders Carlsson  <acarlsson@apple.com>
       
 10224 
       
 10225         Reviewed by Tim.
       
 10226 
       
 10227         Add back methods in WebCoreStatistics that are still used by Tiger Safari.
       
 10228         
       
 10229         * Misc/WebCoreStatistics.h:
       
 10230         * Misc/WebCoreStatistics.m:
       
 10231         (+[WebCoreStatistics emptyCache]):
       
 10232         (+[WebCoreStatistics setCacheDisabled:]):
       
 10233 
       
 10234 2006-11-28  Alice Liu  <alice.liu@apple.com>
       
 10235 
       
 10236         Reviewed by Maciej.
       
 10237 
       
 10238         A fix for a couple failing layout tests involving copy/cut in iframes.
       
 10239 
       
 10240         * WebCoreSupport/WebEditorClient.h:
       
 10241         * WebCoreSupport/WebEditorClient.mm:
       
 10242         (WebEditorClient::dataForArchivedSelection):
       
 10243         Use the frame parameter instead of using the webview's selectedFrame. 
       
 10244 
       
 10245 2006-11-28  Beth Dakin  <bdakin@apple.com>
       
 10246 
       
 10247         Reviewed by Geoffff.
       
 10248 
       
 10249         Fix for http://bugs.webkit.org/show_bug.cgi?id=11691 REGRESSION 
       
 10250         (r17399, r17511): WebElementDictionary no longer returns nil 
       
 10251         NSStrings
       
 10252 
       
 10253         String's NSString* operator converts null Strings to empty 
       
 10254         NSStrings for compatibility with AppKit. We need to work around 
       
 10255         that here.
       
 10256 
       
 10257         * Misc/WebElementDictionary.m:
       
 10258         (NSStringOrNil):
       
 10259         (-[WebElementDictionary _altDisplayString]):
       
 10260         (-[WebElementDictionary _spellingToolTip]):
       
 10261         (-[WebElementDictionary _title]):
       
 10262         (-[WebElementDictionary _titleDisplayString]):
       
 10263         (-[WebElementDictionary _textContent]):
       
 10264 
       
 10265 2006-11-28  Geoffrey Garen  <ggaren@apple.com>
       
 10266 
       
 10267         Reviewed by Beth Dakin.
       
 10268 
       
 10269         Fixed <rdar://problem/4844855> Should clarify when to create clients in 
       
 10270         the WebCore client API
       
 10271         
       
 10272         All clients must now be supplied as constructor arguments. This clarifies 
       
 10273         when you need to create clients, and also guarantees that objects can't 
       
 10274         (for the most part) be in a clientless state.
       
 10275 
       
 10276         Layout tests pass. No leaks reported.
       
 10277         
       
 10278         * WebCoreSupport/WebFrameBridge.mm: Shuffled around initialization and changed
       
 10279         some arguments to resolve ciruclar dependencies at init time.
       
 10280         (-[WebFrame _initWithWebFrameView:webView:bridge:]): We no longer call setClient
       
 10281         here, because the client is set up at construction time.
       
 10282 
       
 10283 2006-11-28  Anders Carlsson  <acarlsson@apple.com>
       
 10284 
       
 10285         Reviewed by Maciej.
       
 10286 
       
 10287         Update for changes to ResourceRequest.
       
 10288         
       
 10289         * WebCoreSupport/WebChromeClient.mm:
       
 10290         (WebChromeClient::createWindow):
       
 10291         (WebChromeClient::createModalDialog):
       
 10292         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10293         (WebFrameLoaderClient::canHandleRequest):
       
 10294 
       
 10295 2006-11-28  Adam Roben  <aroben@apple.com>
       
 10296 
       
 10297         Reviewed by Beth.
       
 10298 
       
 10299         More WebCore context menu work.
       
 10300 
       
 10301         * DefaultDelegates/WebDefaultUIDelegate.m: New stub delegate method implementation.
       
 10302         (-[NSApplication webView:contextMenuItemSelected:forElement:]):
       
 10303         * WebCoreSupport/WebContextMenuClient.h: Updated to match ContextMenuClient.h changes.
       
 10304         * WebCoreSupport/WebContextMenuClient.mm:
       
 10305         (WebContextMenuClient::addCustomContextMenuItems): Updated for method name changes.
       
 10306         (WebContextMenuClient::contextMenuItemSelected): Added new client method.
       
 10307         * WebView/WebUIDelegatePrivate.h: New private delegate method declaration.
       
 10308 
       
 10309 2006-11-28  Alice Liu  <alice.liu@apple.com>
       
 10310 
       
 10311         Reviewed by Justin and Adam.
       
 10312 
       
 10313         * WebCoreSupport/WebEditorClient.h:
       
 10314         * WebCoreSupport/WebEditorClient.mm:
       
 10315         added the following        
       
 10316         (WebEditorClient::smartInsertDeleteEnabled):
       
 10317         (WebEditorClient::dataForArchivedSelectionInFrame):
       
 10318         (WebEditorClient::_web_userVisibleString):
       
 10319         (WebEditorClient::shouldInsertNode):
       
 10320         
       
 10321         * WebKitPrefix.h:
       
 10322         Added flags to control whether WebCore cut/copy/paste is enabled.
       
 10323         Turned on Cut and Copy, left Paste and Delete off
       
 10324         
       
 10325         * WebView/WebHTMLViewPrivate.h:
       
 10326         * WebView/WebHTMLView.m:
       
 10327         removed _can[Cut|Copy|Paste|Delete]
       
 10328         (-[NSArray validateUserInterfaceItem:]):
       
 10329         call the editor for canDHTML[C|C|P|D] and _can[C|C|P|D] instead 
       
 10330         (-[NSArray delete:]):
       
 10331         added code to call the editor's delete instead (not turned on)
       
 10332         (-[WebHTMLView copy:]):
       
 10333         added code to call the editor's copy (turned on)
       
 10334         (-[WebHTMLView cut:]):
       
 10335         added code to call the editor's cut (turned on)
       
 10336         (-[WebHTMLView paste:]):
       
 10337         added code to call the editor's paste (not turned on)
       
 10338 
       
 10339 2006-11-28  Geoffrey Garen  <ggaren@apple.com>
       
 10340 
       
 10341         Reviewed by Adam.
       
 10342 
       
 10343         Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref 
       
 10344         calls cause .5% PLT regression.
       
 10345         
       
 10346         Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
       
 10347         from the Frame to the Page, since it's only responsible for
       
 10348         Webview-level delegate calls.
       
 10349         
       
 10350         I don't really love this design, but it fixes the regression and allows
       
 10351         a single WebKit object to implement multiple client interfaces.
       
 10352         
       
 10353         Layout tests pass.
       
 10354 
       
 10355 2006-11-27  Beth Dakin  <bdakin@apple.com>
       
 10356 
       
 10357         Reviewed by Adam.
       
 10358 
       
 10359         WebKit half of getting rid of the FixMes in ContextMenu.cpp
       
 10360 
       
 10361         * WebCoreSupport/WebFrameLoaderClient.h: canHandleRequest takes a 
       
 10362         ResourceRequest now.
       
 10363         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10364         (WebFrameLoaderClient::canHandleRequest): Same.
       
 10365         * WebView/WebHTMLView.m:
       
 10366         (-[WebHTMLView _isSelectionMisspelled]): Call into WebCore.
       
 10367 
       
 10368 2006-11-27  Ada Chan  <adachan@apple.com>
       
 10369 
       
 10370         Reviewed by Adam.
       
 10371 
       
 10372         Part of the change to move WebCoreCache into WebKit:
       
 10373         Added WebCache which handles emptying and enable/disabling the cache.
       
 10374         emptyCache and setCacheDisabled have been removed from WebCoreStatistics.
       
 10375 
       
 10376         * Misc/WebCache.h: Added.
       
 10377         * Misc/WebCache.mm: Added.
       
 10378         * Misc/WebCoreStatistics.h:
       
 10379         * Misc/WebCoreStatistics.m:
       
 10380         (+[WebCoreStatistics statistics]):
       
 10381         * WebKit.exp:
       
 10382         * WebKit.xcodeproj/project.pbxproj:
       
 10383 
       
 10384 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
       
 10385 
       
 10386         Reviewed by Adam.
       
 10387 
       
 10388         Move addMessageToConsole to Chrome.
       
 10389 
       
 10390         * WebCoreSupport/WebChromeClient.h:
       
 10391         * WebCoreSupport/WebChromeClient.mm:
       
 10392         (WebChromeClient::addMessageToConsole):
       
 10393         * WebCoreSupport/WebFrameBridge.mm:
       
 10394 
       
 10395 2006-11-27  Brady Eidson  <beidson@apple.com>
       
 10396 
       
 10397         Reviewed by Anders
       
 10398 
       
 10399         Moved unused Private SPI to Internal and pruned other unused code
       
 10400 
       
 10401         * Misc/WebIconDatabase.m:
       
 10402         * Misc/WebIconDatabasePrivate.h:
       
 10403 
       
 10404 2006-11-21  Darin Adler  <darin@apple.com>
       
 10405 
       
 10406         Reviewed by Maciej.
       
 10407 
       
 10408         - make the close method do a more-complete job to prevent world leaks seen when
       
 10409           running some of the layout tests
       
 10410 
       
 10411         * WebView/WebHTMLViewInternal.h: Added declaration of -[WebHTMLViewPrivate clear].
       
 10412         * WebView/WebHTMLView.m:
       
 10413         (-[WebHTMLViewPrivate clear]): Added method to drop references to other objects.
       
 10414         We want to do this at "close" time, rather than waiting for deallocation time.
       
 10415         This is especially important for the data source, which indirectly keeps a number of
       
 10416         objects alive.
       
 10417         (-[WebHTMLView close]): Added an explicit call to clear out the data source on the
       
 10418         plug-in controller. Without this, we'd see the plug-in controller making calls to
       
 10419         a deallocated data source during the layout tests. Added a call to the new clear method
       
 10420         on the private object so that we release the objects at close time instead of waiting
       
 10421         for deallocation time.
       
 10422 
       
 10423         * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with the project file,
       
 10424         because I can't fight the power.
       
 10425 
       
 10426 2006-11-20  Samuel Weinig  <sam@webkit.org>
       
 10427 
       
 10428         Reviewed by Alexey.
       
 10429 
       
 10430         Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
       
 10431         Fix Windows build
       
 10432 
       
 10433         * WebKit.vcproj/WebKit.vcproj: don't include directories that no
       
 10434         longer exist.
       
 10435 
       
 10436 2006-11-19  Beth Dakin  <bdakin@apple.com>
       
 10437 
       
 10438         Reviewed by Adam.
       
 10439 
       
 10440         WebKit side of new context menu actions.
       
 10441 
       
 10442         * WebCoreSupport/WebContextMenuClient.h: These are for the 
       
 10443         currently-WebKit-dependent menu actions.
       
 10444         * WebCoreSupport/WebContextMenuClient.mm:
       
 10445         (WebContextMenuClient::copyLinkToClipboard):
       
 10446         (WebContextMenuClient::downloadURL):
       
 10447         (WebContextMenuClient::copyImageToClipboard):
       
 10448         (WebContextMenuClient::searchWithSpotlight):
       
 10449         (WebContextMenuClient::lookUpInDictionary):
       
 10450         * WebCoreSupport/WebEditorClient.h:
       
 10451         * WebCoreSupport/WebEditorClient.mm:
       
 10452         (core): These are to convert between WebViewInsertAction and 
       
 10453         EditorInsertAction.
       
 10454         (kit):
       
 10455         (WebEditorClient::shouldInsertText): Added implementation for 
       
 10456         shouldInsertText.
       
 10457         * WebKit.xcodeproj/project.pbxproj:
       
 10458         * WebView/WebHTMLView.m:
       
 10459         (-[WebHTMLView _lookUpInDictionaryFromMenu:]): Moved 
       
 10460         _lookUpInDictionary to be within the implementation of WebHTMLView 
       
 10461         internal.
       
 10462         * WebView/WebHTMLViewInternal.h: Add _lookUpInDictionaryFromMenu
       
 10463         * WebView/WebViewInternal.h: Add _searchWithSpotlightFromMenu
       
 10464 
       
 10465 2006-11-18  Don Gibson  <dgibson77@gmail.com>
       
 10466 
       
 10467         Reviewed by Sam Weinig.
       
 10468 
       
 10469         http://bugs.webkit.org/show_bug.cgi?id=11634:
       
 10470         Fix segfault on startup for Windows build.  Also fix segfault when
       
 10471         typing in a URL.
       
 10472 
       
 10473         * COM/WebFrame.cpp:
       
 10474         (WebFrame::initWithName):
       
 10475 
       
 10476 === Safari-521.31 ===
       
 10477 
       
 10478 2006-11-17  Timothy Hatcher  <timothy@apple.com>
       
 10479 
       
 10480         Reviewed by Geoff.
       
 10481 
       
 10482         <rdar://problem/4841044> Temporarily default Mail.app editable link clicking behavior, until they do it themselves
       
 10483 
       
 10484         * WebKit.xcodeproj/project.pbxproj:
       
 10485         * WebView/WebView.mm:
       
 10486         (+[WebView initialize]):
       
 10487         (-[WebView setPreferences:]):
       
 10488 
       
 10489 2006-11-16  Don Gibson  <dgibson77@gmail.com>
       
 10490 
       
 10491         Reviewed and landed by ap.
       
 10492 
       
 10493         http://bugs.webkit.org/show_bug.cgi?id=11509:
       
 10494         Windows build bustage.
       
 10495 
       
 10496         * COM/WebFrame.cpp:
       
 10497         (WebFrame::initWithName):
       
 10498         (WebFrame::loadHTMLString):
       
 10499         (WebFrame::stopLoading):
       
 10500         (WebFrame::reload):
       
 10501         (WebFrame::loadDataSource):
       
 10502         (WebFrame::didReceiveData):
       
 10503         (WebFrame::receivedResponse):
       
 10504         (WebFrame::receivedAllData):
       
 10505         * COM/WebFrame.h:
       
 10506         * COM/WebView.cpp:
       
 10507         (WebView::mouseMoved):
       
 10508         (WebView::mouseDown):
       
 10509         (WebView::mouseUp):
       
 10510         (WebView::mouseDoubleClick):
       
 10511         * WebKit.vcproj/WebKit.vcproj:
       
 10512 
       
 10513 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
       
 10514 
       
 10515         Reviewed by Tim.
       
 10516 
       
 10517         <rdar://problem/4841123>
       
 10518         REGRESSION: Crash in WebCore::Range::boundaryPointsValid when replying to a mail Message
       
 10519         
       
 10520         * Misc/WebNSAttributedStringExtras.m:
       
 10521         (+[NSAttributedString _web_attributedStringFromRange:]):
       
 10522         If the range passed in is null, return null. When this function was in the bridge, it would never get called
       
 10523         with a null range when nothing was selected. Instead, the range would just have invalid boundary points.
       
 10524 
       
 10525 2006-11-15  Adam Roben  <aroben@apple.com>
       
 10526 
       
 10527         Reviewed by Anders.
       
 10528 
       
 10529         Added new WebContextMenuClient class to act as WebCore's ChromeClient,
       
 10530         and moved context menu-related code there from WebChromeClient.
       
 10531 
       
 10532         * WebCoreSupport/WebChromeClient.h:
       
 10533         * WebCoreSupport/WebChromeClient.mm:
       
 10534         * WebCoreSupport/WebContextMenuClient.h: Added.
       
 10535         (WebContextMenuClient::webView):
       
 10536         * WebCoreSupport/WebContextMenuClient.mm: Added.
       
 10537         (WebContextMenuClient::create):
       
 10538         (WebContextMenuClient::WebContextMenuClient):
       
 10539         (WebContextMenuClient::ref):
       
 10540         (WebContextMenuClient::deref):
       
 10541         (WebContextMenuClient::addCustomContextMenuItems):
       
 10542         * WebKit.xcodeproj/project.pbxproj: Added new files.
       
 10543         * WebView/WebView.mm:
       
 10544         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 10545 
       
 10546 2006-11-15  Beth Dakin  <bdakin@apple.com>
       
 10547         &   Adam Roben  <aroben@apple.com>
       
 10548 
       
 10549         Reviewed by Adam & Beth.
       
 10550 
       
 10551         WebKit side of first cut at engine context menus. Use the client to 
       
 10552         call into the UIDelegate.
       
 10553 
       
 10554         * WebCoreSupport/WebChromeClient.h:
       
 10555         * WebCoreSupport/WebChromeClient.mm:
       
 10556         (WebChromeClient::addCustomContextMenuItems):
       
 10557         * WebKit.xcodeproj/project.pbxproj:
       
 10558 
       
 10559 2006-11-15  Brady Eidson  <beidson@apple.com>
       
 10560 
       
 10561         Reviewed by Maciej
       
 10562 
       
 10563         Quick change of files to ObjC++ for BF cache re-write
       
 10564 
       
 10565         * History/WebBackForwardList.m: Removed.
       
 10566         * History/WebBackForwardList.mm: Added.
       
 10567         * History/WebHistoryItem.m: Removed.
       
 10568         * History/WebHistoryItem.mm: Added.
       
 10569         * WebKit.xcodeproj/project.pbxproj:
       
 10570 
       
 10571 2006-11-15  Brady Eidson  <beidson@apple.com>
       
 10572 
       
 10573         Reviewed by Sarge
       
 10574 
       
 10575         SPI addition
       
 10576 
       
 10577         * WebView/WebFrame.mm:
       
 10578         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
       
 10579         * WebView/WebFrameInternal.h:
       
 10580         * WebView/WebFramePrivate.h:
       
 10581 
       
 10582 2006-11-15  Brady Eidson  <beidson@apple.com>
       
 10583 
       
 10584         Reviewed by Adele
       
 10585 
       
 10586         <rdar://problem/4838729> - Replace mistakenly removed SPI
       
 10587 
       
 10588         * WebView/WebHTMLView.m:
       
 10589         (-[WebHTMLView _handleAutoscrollForMouseDragged:]):
       
 10590         * WebView/WebHTMLViewPrivate.h:
       
 10591 
       
 10592 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
       
 10593 
       
 10594         Reviewed by Adele.
       
 10595 
       
 10596         isTargetItem is used by DRT, so make it private instead of internal.
       
 10597         
       
 10598         * History/WebHistoryItem.m:
       
 10599         (-[WebHistoryItem isTargetItem]):
       
 10600         * History/WebHistoryItemInternal.h:
       
 10601         * History/WebHistoryItemPrivate.h:
       
 10602         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10603 
       
 10604 2006-11-15  Brady Eidson  <beidson@apple.com>
       
 10605 
       
 10606         Reviewed by Maciej
       
 10607 
       
 10608         Split much of unused WebHistoryItemPrivate.h SPI into WebHistoryItemInternal.h
       
 10609 
       
 10610         * History/WebBackForwardList.m:
       
 10611         * History/WebHistory.m:
       
 10612         * History/WebHistoryItem.m:
       
 10613         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
       
 10614         (-[WebHistoryItem initWithURL:title:]):
       
 10615         (-[WebHistoryItem visitCount]):
       
 10616         (-[WebHistoryItem RSSFeedReferrer]):
       
 10617         (-[WebHistoryItem setRSSFeedReferrer:]):
       
 10618         (-[WebHistoryItem children]):
       
 10619         (-[WebHistoryItem dictionaryRepresentation]):
       
 10620         (-[WebHistoryItem setAlwaysAttemptToUsePageCache:]):
       
 10621         (+[WebHistoryItem _releaseAllPendingPageCaches]):
       
 10622         (-[WebHistoryItem URL]):
       
 10623         (-[WebHistoryItem target]):
       
 10624         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
       
 10625         (-[WebHistoryItem _lastVisitedDate]):
       
 10626         (-[WebHistoryItem targetItem]):
       
 10627         * History/WebHistoryItemInternal.h: Added.
       
 10628         * History/WebHistoryItemPrivate.h:
       
 10629         * WebCoreSupport/WebFrameBridge.mm:
       
 10630         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10631         * WebKit.xcodeproj/project.pbxproj:
       
 10632         * WebView/WebFrame.mm:
       
 10633         * WebView/WebView.mm:
       
 10634 
       
 10635 2006-11-14  Beth Dakin  <bdakin@apple.com>
       
 10636 
       
 10637         Reviewed by Geoff.
       
 10638 
       
 10639         Moving things off the bridge and onto clients.
       
 10640 
       
 10641         * WebCoreSupport/WebEditorClient.h:
       
 10642         * WebCoreSupport/WebEditorClient.mm:
       
 10643         (WebEditorClient::selectWordBeforeMenuEvent):
       
 10644         (WebEditorClient::isEditable):
       
 10645         * WebCoreSupport/WebFrameBridge.mm:
       
 10646         * WebKit.xcodeproj/project.pbxproj:
       
 10647 
       
 10648 2006-11-14  Timothy Hatcher  <timothy@apple.com>
       
 10649 
       
 10650         Reviewed by Harrison.
       
 10651 
       
 10652         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
       
 10653 
       
 10654         Adds an Open Link, Open Link in New Window and Copy Link to the editing context menu.
       
 10655         Adds a new WebKitEditableLinkNeverLive preference value that maps to WebCore's EditableLinkNeverLive.
       
 10656 
       
 10657         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 10658         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
       
 10659         (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
       
 10660         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 10661         (-[WebDefaultUIDelegate requestWithURL:includingReferrerFromFrame:]):
       
 10662         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
       
 10663         (-[WebDefaultUIDelegate openLink:]):
       
 10664         * English.lproj/Localizable.strings:
       
 10665         * WebKit.exp:
       
 10666         * WebView/WebPreferences.m:
       
 10667         (-[WebPreferences editableLinkBehavior]):
       
 10668         * WebView/WebPreferencesPrivate.h:
       
 10669         * WebView/WebUIDelegatePrivate.h:
       
 10670 
       
 10671 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
       
 10672 
       
 10673         Turns out I wasn't forcing DWARF on the world at all, 
       
 10674         it's now the default!
       
 10675 
       
 10676         * WebKit.xcodeproj/project.pbxproj:
       
 10677 
       
 10678 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
       
 10679 
       
 10680         I must stop trying to force DWARF on the world.
       
 10681 
       
 10682         * WebKit.xcodeproj/project.pbxproj:
       
 10683 
       
 10684 2006-11-14  Darin Adler  <darin@apple.com>
       
 10685 
       
 10686         Reviewed by Anders.
       
 10687 
       
 10688         - update for creation of EventHandler
       
 10689 
       
 10690         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10691         (WebFrameLoaderClient::actionDictionary):
       
 10692         * WebView/WebHTMLView.m:
       
 10693         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
 10694         (-[NSArray menuForEvent:]):
       
 10695         (-[NSArray scrollWheel:]):
       
 10696         (-[NSArray acceptsFirstMouse:]):
       
 10697         (-[NSArray shouldDelayWindowOrderingForEvent:]):
       
 10698         (-[NSArray mouseDown:]):
       
 10699         (-[NSArray mouseDragged:]):
       
 10700         (-[NSArray mouseUp:]):
       
 10701         (-[NSArray keyDown:]):
       
 10702         (-[NSArray keyUp:]):
       
 10703         (-[NSArray performKeyEquivalent:]):
       
 10704         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
       
 10705 
       
 10706 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
       
 10707 
       
 10708         Fix build for real this time.
       
 10709         
       
 10710         * WebCoreSupport/WebEditorClient.mm:
       
 10711         (-[WebEditCommand initWithEditCommand:WebCore::]):
       
 10712         (-[WebEditCommand dealloc]):
       
 10713         (-[WebEditCommand finalize]):
       
 10714         (+[WebEditCommand commandWithEditCommand:]):
       
 10715         (-[WebEditCommand command]):
       
 10716 
       
 10717 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
       
 10718 
       
 10719         Try fixing the build.
       
 10720         
       
 10721         * WebCoreSupport/WebEditorClient.mm:
       
 10722         (-[WebEditorUndoTarget undoEditing:]):
       
 10723         (-[WebEditorUndoTarget redoEditing:]):
       
 10724 
       
 10725 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
       
 10726 
       
 10727         Reviewed by Darin.
       
 10728 
       
 10729         Move undo/redo handling into WebEditorClient.
       
 10730         
       
 10731         * WebCoreSupport/WebEditorClient.h:
       
 10732         * WebCoreSupport/WebEditorClient.mm:
       
 10733         (WebEditorClient::WebEditorClient):
       
 10734         (WebEditorClient::~WebEditorClient):
       
 10735         (-[WebEditCommand initWithEditCommand:WebCore::]):
       
 10736         (-[WebEditCommand dealloc]):
       
 10737         (-[WebEditCommand finalize]):
       
 10738         (+[WebEditCommand commandWithEditCommand:]):
       
 10739         (-[WebEditCommand command]):
       
 10740         (-[WebEditorUndoTarget undoEditing:]):
       
 10741         (-[WebEditorUndoTarget redoEditing:]):
       
 10742         (undoNameForEditAction):
       
 10743         (WebEditorClient::registerCommandForUndoOrRedo):
       
 10744         (WebEditorClient::registerCommandForUndo):
       
 10745         (WebEditorClient::registerCommandForRedo):
       
 10746         (WebEditorClient::clearUndoRedoOperations):
       
 10747         (WebEditorClient::canUndo):
       
 10748         (WebEditorClient::canRedo):
       
 10749         (WebEditorClient::undo):
       
 10750         (WebEditorClient::redo):
       
 10751         * WebCoreSupport/WebFrameBridge.mm:
       
 10752         * WebKit.xcodeproj/project.pbxproj:
       
 10753 
       
 10754 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
       
 10755 
       
 10756         Reviewed by Tim H.
       
 10757 
       
 10758         http://bugs.webkit.org/show_bug.cgi?id=3387
       
 10759         Redundant keydown, keypress, keyup events sent for arrow keys
       
 10760 
       
 10761         Added another layer of ugly hacks around AppKit event dispatching.
       
 10762 
       
 10763         1. For arrow keys, keyDown: is invoked after performKeyEquivalent:, so had to store
       
 10764         _private->keyDownEvent in both methods, and make it persist after leaving them.
       
 10765 
       
 10766         2. For Esc, AppKit calls performKeyEquivalent: with a fake event of some kind,
       
 10767         use [NSApp currentEvent] to check for this to prevent it from being passed to  WebCore.
       
 10768 
       
 10769         Test: manual-tests/arrow-key-events.html
       
 10770 
       
 10771         * WebView/WebHTMLView.m:
       
 10772         (-[NSMutableDictionary dealloc]):
       
 10773         (-[NSArray keyDown:]):
       
 10774         (-[NSArray keyUp:]):
       
 10775         (-[NSArray performKeyEquivalent:]):
       
 10776         * WebView/WebHTMLViewInternal.h:
       
 10777 
       
 10778 2006-11-12  Brady Eidson <beidson@apple.com>
       
 10779 
       
 10780         Rubberstamped by Anders
       
 10781 
       
 10782         Changed some #includes from <WebKit/foo.h> to "foo.h"
       
 10783 
       
 10784         * History/WebBackForwardList.m:
       
 10785         * History/WebHistory.m:
       
 10786 
       
 10787 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
       
 10788 
       
 10789         Reviewed by Maciej Stachowiak.
       
 10790         
       
 10791         - Fixed loader crash by clarifying ownership of WebKit client objects. 
       
 10792         WebCore objects own their WebKit clients, and ref and deref through 
       
 10793         virtual methods, leaving WebKit free to use whatever client / reference-counting 
       
 10794         implementation it likes.
       
 10795         
       
 10796         WebKit on Mac just uses the same refcounting class that WebCore uses (Shared),
       
 10797         but other platforms may choose to do other things.
       
 10798 
       
 10799         * WebCoreSupport/WebChromeClient.h:
       
 10800         (WebChromeClient::ref):
       
 10801         (WebChromeClient::deref):
       
 10802         (WebChromeClient::refCount):
       
 10803         * WebCoreSupport/WebEditorClient.h: Nixed commented-out function prototypes.
       
 10804         The ones in WebCore make clear what remains to be implemented. Replaced constructor
       
 10805         with factory function to avoid leaks.
       
 10806         * WebCoreSupport/WebEditorClient.mm:
       
 10807         (WebEditorClient::create):
       
 10808         (WebEditorClient::WebEditorClient):
       
 10809         (WebEditorClient::setWebFrame):
       
 10810         * WebCoreSupport/WebFrameBridge.mm:
       
 10811         (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
       
 10812         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 10813         * WebCoreSupport/WebFrameLoaderClient.h: Replaced constructor with factory
       
 10814         function to avoid leaks.
       
 10815         (WebFrameLoaderClient::ref):
       
 10816         (WebFrameLoaderClient::deref):
       
 10817         (WebFrameLoaderClient::refCount):
       
 10818         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10819         (WebFrameLoaderClient::create):
       
 10820         * WebView/WebFrame.mm:
       
 10821         (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
       
 10822 
       
 10823 === Safari-521.30 ===
       
 10824 
       
 10825 2006-11-10  Maciej Stachowiak  <mjs@apple.com>
       
 10826 
       
 10827         Reviewed by Anders.
       
 10828         
       
 10829         - remove some unnecessary uses of WebDataProtocol
       
 10830 
       
 10831         * WebView/WebDataSource.mm: Remove the unneeded include.
       
 10832         * WebView/WebView.mm:
       
 10833         (+[WebView _canHandleRequest:]): Don't bother to check for unreachable URL here.
       
 10834         Any request that has one will be an applewebdata: request, which will pass the check anyway.
       
 10835 
       
 10836 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
       
 10837 
       
 10838         Reviewed by Geoff.
       
 10839 
       
 10840         Update for changes to WebCore
       
 10841         * WebView/WebHTMLView.m:
       
 10842         (-[NSArray _applyStyleToSelection:withUndoAction:]):
       
 10843         (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
       
 10844         (-[NSArray _toggleBold]):
       
 10845         (-[NSArray _toggleItalic]):
       
 10846 
       
 10847 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
       
 10848 
       
 10849         Reviewed by Maciej, Geoff.
       
 10850 
       
 10851         Call execCommand directly here instead of going through the bridge.
       
 10852         
       
 10853         * WebView/WebHTMLView.m:
       
 10854         (-[NSArray moveBackward:]):
       
 10855         (-[NSArray moveBackwardAndModifySelection:]):
       
 10856         (-[NSArray moveDown:]):
       
 10857         (-[NSArray moveDownAndModifySelection:]):
       
 10858         (-[NSArray moveForward:]):
       
 10859         (-[NSArray moveForwardAndModifySelection:]):
       
 10860         (-[NSArray moveLeft:]):
       
 10861         (-[NSArray moveLeftAndModifySelection:]):
       
 10862         (-[NSArray moveRight:]):
       
 10863         (-[NSArray moveRightAndModifySelection:]):
       
 10864         (-[NSArray moveToBeginningOfDocument:]):
       
 10865         (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
       
 10866         (-[NSArray moveToBeginningOfSentence:]):
       
 10867         (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
       
 10868         (-[NSArray moveToBeginningOfLine:]):
       
 10869         (-[NSArray moveToBeginningOfLineAndModifySelection:]):
       
 10870         (-[NSArray moveToBeginningOfParagraph:]):
       
 10871         (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
       
 10872         (-[NSArray moveToEndOfDocument:]):
       
 10873         (-[NSArray moveToEndOfDocumentAndModifySelection:]):
       
 10874         (-[NSArray moveToEndOfSentence:]):
       
 10875         (-[NSArray moveToEndOfSentenceAndModifySelection:]):
       
 10876         (-[NSArray moveToEndOfLine:]):
       
 10877         (-[NSArray moveToEndOfLineAndModifySelection:]):
       
 10878         (-[NSArray moveToEndOfParagraph:]):
       
 10879         (-[NSArray moveToEndOfParagraphAndModifySelection:]):
       
 10880         (-[NSArray moveParagraphBackwardAndModifySelection:]):
       
 10881         (-[NSArray moveParagraphForwardAndModifySelection:]):
       
 10882         (-[NSArray moveUp:]):
       
 10883         (-[NSArray moveUpAndModifySelection:]):
       
 10884         (-[NSArray moveWordBackward:]):
       
 10885         (-[NSArray moveWordBackwardAndModifySelection:]):
       
 10886         (-[NSArray moveWordForward:]):
       
 10887         (-[NSArray moveWordForwardAndModifySelection:]):
       
 10888         (-[NSArray moveWordLeft:]):
       
 10889         (-[NSArray moveWordLeftAndModifySelection:]):
       
 10890         (-[NSArray moveWordRight:]):
       
 10891         (-[NSArray moveWordRightAndModifySelection:]):
       
 10892 
       
 10893 2006-11-10  Brady Eidson  <beidson@apple.com>
       
 10894 
       
 10895         Reviewed by Darin
       
 10896   
       
 10897         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
       
 10898 
       
 10899         * Misc/WebIconDatabase.m:
       
 10900         (-[WebIconDatabase init]):
       
 10901         (-[WebIconDatabase iconForURL:withSize:cache:]):
       
 10902         (-[WebIconDatabase iconURLForURL:]):
       
 10903         (-[WebIconDatabase defaultIconWithSize:]):
       
 10904         (-[WebIconDatabase defaultIconForURL:withSize:]):
       
 10905         (-[WebIconDatabase retainIconForURL:]):
       
 10906         (-[WebIconDatabase releaseIconForURL:]):
       
 10907         (-[WebIconDatabase setDelegate:]):
       
 10908         (-[WebIconDatabase removeAllIcons]):
       
 10909         (-[WebIconDatabase isIconExpiredForIconURL:]):
       
 10910         (-[WebIconDatabase _isEnabled]):
       
 10911         (-[WebIconDatabase _setIconData:forIconURL:]):
       
 10912         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 10913         (-[WebIconDatabase _setIconURL:forURL:]):
       
 10914         (-[WebIconDatabase _hasEntryForIconURL:]):
       
 10915         (-[WebIconDatabase _applicationWillTerminate:]):
       
 10916         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 10917         (-[WebIconDatabase _convertToWebCoreFormat]):
       
 10918         (webGetNSImage):
       
 10919         * Misc/WebIconDatabaseInternal.h: Added.
       
 10920         * Misc/WebIconDatabasePrivate.h:
       
 10921         * WebCoreSupport/WebFrameLoaderClient.h:
       
 10922         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10923         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
 10924         * WebCoreSupport/WebIconDatabaseBridge.h: Removed.
       
 10925         * WebCoreSupport/WebIconDatabaseBridge.m: Removed.
       
 10926         * WebKit.xcodeproj/project.pbxproj:
       
 10927 
       
 10928 2006-11-09  Oliver Hunt  <oliver@apple.com>
       
 10929 
       
 10930         Reviewed by Brady.
       
 10931         
       
 10932         Updated to make use of MimeTypeRegistry/bridge
       
 10933 
       
 10934         * Misc/WebNSPasteboardExtras.m:
       
 10935         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
       
 10936         * WebCoreSupport/WebFrameBridge.mm:
       
 10937         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 10938         * WebView/WebDataSource.mm:
       
 10939         (-[WebDataSource _documentFragmentWithArchive:]):
       
 10940         * WebView/WebHTMLRepresentation.m:
       
 10941         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
       
 10942         (+[WebHTMLRepresentation supportedImageMIMETypes]):
       
 10943         * WebView/WebHTMLView.m:
       
 10944         (-[WebHTMLView _imageExistsAtPaths:]):
       
 10945         (-[WebHTMLView _documentFragmentWithPaths:]):
       
 10946 
       
 10947 2006-11-09  Brady Eidson  <beidson@apple.com>
       
 10948 
       
 10949         Reviewed by Darin
       
 10950 
       
 10951         <rdar://problem/4829080>
       
 10952         More loader re-factoring cleanup - WebFramePolicyListener was over-released
       
 10953 
       
 10954         * WebCoreSupport/WebFrameLoaderClient.h: Changed vanilla ptr to a RetainPtr<> 
       
 10955         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 10956         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto
       
 10957         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Ditto
       
 10958         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto
       
 10959         (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto
       
 10960         (WebFrameLoaderClient::setUpPolicyListener): Ditto
       
 10961         (-[WebFramePolicyListener receivedPolicyDecision:]): Ditto 
       
 10962 
       
 10963 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
       
 10964 
       
 10965         Reviewed by Adam, Oliver.
       
 10966 
       
 10967         Update for changes to WebCore. Pass a specific WebFrame to WebEditorClient
       
 10968         instead of just passing the WebView.
       
 10969         
       
 10970         * WebCoreSupport/WebEditorClient.h:
       
 10971         * WebCoreSupport/WebEditorClient.mm:
       
 10972         (WebEditorClient::WebEditorClient):
       
 10973         (WebEditorClient::setWebFrame):
       
 10974         (WebEditorClient::isContinuousSpellCheckingEnabled):
       
 10975         (WebEditorClient::spellCheckerDocumentTag):
       
 10976         (WebEditorClient::shouldDeleteRange):
       
 10977         (WebEditorClient::shouldShowDeleteInterface):
       
 10978         (WebEditorClient::shouldApplyStyle):
       
 10979         (WebEditorClient::shouldBeginEditing):
       
 10980         (WebEditorClient::shouldEndEditing):
       
 10981         (WebEditorClient::didBeginEditing):
       
 10982         (WebEditorClient::respondToChangedContents):
       
 10983         (WebEditorClient::didEndEditing):
       
 10984         * WebCoreSupport/WebFrameBridge.mm:
       
 10985         (-[WebFrameBridge initMainFrameWithPage:WebCore::frameName:view:webView:]):
       
 10986         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 10987 
       
 10988 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
       
 10989 
       
 10990         Reviewed by Adam.
       
 10991 
       
 10992         Move more code into editor.
       
 10993 
       
 10994         * WebCoreSupport/WebEditorClient.h:
       
 10995         * WebCoreSupport/WebEditorClient.mm:
       
 10996         (WebEditorClient::shouldBeginEditing):
       
 10997         (WebEditorClient::shouldEndEditing):
       
 10998         (WebEditorClient::didBeginEditing):
       
 10999         (WebEditorClient::didEndEditing):
       
 11000         * WebCoreSupport/WebFrameBridge.mm:
       
 11001         * WebView/WebHTMLView.m:
       
 11002         (-[NSArray indent:]):
       
 11003         (-[NSArray outdent:]):
       
 11004         * WebView/WebView.mm:
       
 11005         * WebView/WebViewInternal.h:
       
 11006 
       
 11007 2006-11-08  Beth Dakin  <bdakin@apple.com>
       
 11008 
       
 11009         Reviewed by Adam.
       
 11010 
       
 11011         Add WebElementIsContentEditableKey to the WebElementDictionary, and 
       
 11012         use it!
       
 11013 
       
 11014         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 11015         (-[WebDefaultUIDelegate 
       
 11016         webView:contextMenuItemsForElement:defaultMenuItems:]): Use new 
       
 11017         WebElementIsContentEditableKey.
       
 11018         * Misc/WebElementDictionary.m:
       
 11019         (+[WebElementDictionary initializeLookupTable]):
       
 11020         (-[WebElementDictionary _isContentEditable]): Call into 
       
 11021         HitTestResult::isContentEditable()
       
 11022         * WebView/WebView.mm: Add new key.
       
 11023         * WebView/WebViewPrivate.h: Add new key.
       
 11024 
       
 11025 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
       
 11026 
       
 11027         Reviewed by Oliver.
       
 11028 
       
 11029         Call into the WebCore editor object directly.
       
 11030         
       
 11031         * MigrateHeaders.make:
       
 11032         * WebCoreSupport/WebEditorClient.h:
       
 11033         * WebCoreSupport/WebEditorClient.mm:
       
 11034         (WebEditorClient::shouldDeleteRange):
       
 11035         (WebEditorClient::shouldShowDeleteInterface):
       
 11036         (WebEditorClient::shouldApplyStyle):
       
 11037         * WebView/WebFrame.mm:
       
 11038         (core):
       
 11039         (kit):
       
 11040         * WebView/WebFrameInternal.h:
       
 11041         * WebView/WebHTMLView.m:
       
 11042         (-[NSArray _applyStyleToSelection:withUndoAction:]):
       
 11043         (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
       
 11044         (-[NSArray _toggleBold]):
       
 11045         (-[NSArray _toggleItalic]):
       
 11046         (-[NSArray _changeCSSColorUsingSelector:inRange:]):
       
 11047         (-[NSArray underline:]):
       
 11048         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
       
 11049         * WebView/WebView.mm:
       
 11050         (-[WebView applyStyle:]):
       
 11051 
       
 11052 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
       
 11053 
       
 11054         Reviewed by Oliver.
       
 11055 
       
 11056         <rdar://problem/4825370>
       
 11057         REGRESSION: Selecting "Look Up In Dictionary" from contextual menu fails to open the Dictionary app
       
 11058         
       
 11059         * WebView/WebHTMLView.m:
       
 11060         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
 11061         Initialize the framework pointer to 0.
       
 11062         
       
 11063 2006-11-07  Darin Adler  <darin@apple.com>
       
 11064 
       
 11065         Reviewed by Geoff.
       
 11066 
       
 11067         - udpated for changes to move from Frame/FrameMac to FrameLoader
       
 11068 
       
 11069         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 11070         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
       
 11071         * Misc/WebNSAttributedStringExtras.m:
       
 11072         (+[NSAttributedString _web_attributedStringFromRange:]):
       
 11073         * Plugins/WebBaseNetscapePluginView.mm:
       
 11074         (-[WebBaseNetscapePluginView requestWithURLCString:]):
       
 11075         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 11076         (-[WebNetscapePluginEmbeddedView didStart]):
       
 11077         * Plugins/WebNetscapePluginStream.mm:
       
 11078         * Plugins/WebPluginController.mm:
       
 11079         (-[WebPluginController pluginView:receivedResponse:]):
       
 11080         * WebCoreSupport/WebFrameBridge.mm:
       
 11081         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
 11082         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11083         (WebFrameLoaderClient::provisionalLoadStarted):
       
 11084         * WebView/WebFrame.mm:
       
 11085         (-[WebFrame _canCachePage]):
       
 11086         (+[WebFrame _timeOfLastCompletedLoad]):
       
 11087         (-[WebFrame _loadItem:withLoadType:]):
       
 11088         (-[WebFrame _reloadForPluginChanges]):
       
 11089         (-[WebFrame stopLoading]):
       
 11090 
       
 11091 2006-11-07  Anders Carlsson  <acarlsson@apple.com>
       
 11092 
       
 11093         Reviewed by Geoff.
       
 11094 
       
 11095         Use the WebCore editing enums.
       
 11096         
       
 11097         * WebCoreSupport/WebFrameBridge.mm:
       
 11098         (-[WebFrameBridge undoNameForEditAction:]):
       
 11099         * WebView/WebHTMLView.m:
       
 11100         (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
       
 11101         (-[WebHTMLView _deleteSelection]):
       
 11102         (-[WebHTMLView moveBackward:]):
       
 11103         (-[WebHTMLView moveBackwardAndModifySelection:]):
       
 11104         (-[WebHTMLView moveDown:]):
       
 11105         (-[WebHTMLView moveDownAndModifySelection:]):
       
 11106         (-[WebHTMLView moveForward:]):
       
 11107         (-[WebHTMLView moveForwardAndModifySelection:]):
       
 11108         (-[WebHTMLView moveLeft:]):
       
 11109         (-[WebHTMLView moveLeftAndModifySelection:]):
       
 11110         (-[WebHTMLView moveRight:]):
       
 11111         (-[WebHTMLView moveRightAndModifySelection:]):
       
 11112         (-[WebHTMLView moveToBeginningOfDocument:]):
       
 11113         (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]):
       
 11114         (-[WebHTMLView moveToBeginningOfSentence:]):
       
 11115         (-[WebHTMLView moveToBeginningOfSentenceAndModifySelection:]):
       
 11116         (-[WebHTMLView moveToBeginningOfLine:]):
       
 11117         (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]):
       
 11118         (-[WebHTMLView moveToBeginningOfParagraph:]):
       
 11119         (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]):
       
 11120         (-[WebHTMLView moveToEndOfDocument:]):
       
 11121         (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]):
       
 11122         (-[WebHTMLView moveToEndOfSentence:]):
       
 11123         (-[WebHTMLView moveToEndOfSentenceAndModifySelection:]):
       
 11124         (-[WebHTMLView moveToEndOfLine:]):
       
 11125         (-[WebHTMLView moveToEndOfLineAndModifySelection:]):
       
 11126         (-[WebHTMLView moveToEndOfParagraph:]):
       
 11127         (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]):
       
 11128         (-[WebHTMLView moveParagraphBackwardAndModifySelection:]):
       
 11129         (-[WebHTMLView moveParagraphForwardAndModifySelection:]):
       
 11130         (-[WebHTMLView moveUp:]):
       
 11131         (-[WebHTMLView moveUpAndModifySelection:]):
       
 11132         (-[WebHTMLView moveWordBackward:]):
       
 11133         (-[WebHTMLView moveWordBackwardAndModifySelection:]):
       
 11134         (-[WebHTMLView moveWordForward:]):
       
 11135         (-[WebHTMLView moveWordForwardAndModifySelection:]):
       
 11136         (-[WebHTMLView moveWordLeft:]):
       
 11137         (-[WebHTMLView moveWordLeftAndModifySelection:]):
       
 11138         (-[WebHTMLView moveWordRight:]):
       
 11139         (-[WebHTMLView moveWordRightAndModifySelection:]):
       
 11140         (-[WebHTMLView pageUp:]):
       
 11141         (-[WebHTMLView pageDown:]):
       
 11142         (-[WebHTMLView pageUpAndModifySelection:]):
       
 11143         (-[WebHTMLView pageDownAndModifySelection:]):
       
 11144         (-[WebHTMLView _expandSelectionToGranularity:]):
       
 11145         (-[WebHTMLView selectParagraph:]):
       
 11146         (-[WebHTMLView selectLine:]):
       
 11147         (-[WebHTMLView selectSentence:]):
       
 11148         (-[WebHTMLView selectWord:]):
       
 11149         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
       
 11150         (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]):
       
 11151         (-[WebHTMLView _toggleBold]):
       
 11152         (-[WebHTMLView _toggleItalic]):
       
 11153         (-[WebHTMLView pasteFont:]):
       
 11154         (-[WebHTMLView changeFont:]):
       
 11155         (-[WebHTMLView changeAttributes:]):
       
 11156         (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
       
 11157         (-[WebHTMLView changeColor:]):
       
 11158         (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
       
 11159         (-[WebHTMLView alignCenter:]):
       
 11160         (-[WebHTMLView alignJustified:]):
       
 11161         (-[WebHTMLView alignLeft:]):
       
 11162         (-[WebHTMLView alignRight:]):
       
 11163         (-[WebHTMLView _deleteWithDirection:SelectionController::granularity:killRing:isTypingAction:]):
       
 11164         (-[WebHTMLView deleteForward:]):
       
 11165         (-[WebHTMLView deleteBackward:]):
       
 11166         (-[WebHTMLView deleteWordForward:]):
       
 11167         (-[WebHTMLView deleteWordBackward:]):
       
 11168         (-[WebHTMLView deleteToBeginningOfLine:]):
       
 11169         (-[WebHTMLView deleteToEndOfLine:]):
       
 11170         (-[WebHTMLView deleteToBeginningOfParagraph:]):
       
 11171         (-[WebHTMLView deleteToEndOfParagraph:]):
       
 11172         (-[WebHTMLView subscript:]):
       
 11173         (-[WebHTMLView superscript:]):
       
 11174         (-[WebHTMLView unscript:]):
       
 11175         (-[WebHTMLView underline:]):
       
 11176         (-[WebHTMLView deleteToMark:]):
       
 11177         (-[WebHTMLView toggleBaseWritingDirection:]):
       
 11178         (-[WebHTMLView changeBaseWritingDirection:]):
       
 11179         (-[WebHTMLView _canSmartCopyOrDelete]):
       
 11180         (-[WebTextCompleteController doCompletion]):
       
 11181         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
       
 11182         * WebView/WebView.mm:
       
 11183         (-[WebView setTypingStyle:]):
       
 11184         (-[WebView applyStyle:]):
       
 11185 
       
 11186 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
       
 11187 
       
 11188         Reviewed by Tim Hatcher.
       
 11189 
       
 11190         Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
       
 11191         
       
 11192         None of Screen's responsibilities require up-calls to WebKit or delegates, 
       
 11193         so WebCore can handle it all.
       
 11194 
       
 11195         * WebCoreSupport/WebChromeClient.mm:
       
 11196         (WebChromeClient::setWindowRect):
       
 11197         (WebChromeClient::windowRect):
       
 11198         * WebCoreSupport/WebScreenClient.h: Removed.
       
 11199         * WebCoreSupport/WebScreenClient.mm: Removed.
       
 11200         * WebKit.xcodeproj/project.pbxproj:
       
 11201         * WebView/WebView.mm:
       
 11202         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 11203 
       
 11204 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
       
 11205 
       
 11206         Reviewed by Darin.
       
 11207         
       
 11208         Accidentally rolled out this change when removing the WebPageBridge. Now
       
 11209         putting it back.
       
 11210 
       
 11211         * WebView/WebView.mm:
       
 11212         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 11213 
       
 11214 2006-11-05  Geoffrey Garen  <ggaren@apple.com>
       
 11215 
       
 11216         Reviewed by Maciej, Darin, Anders.
       
 11217 
       
 11218         Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
       
 11219         
       
 11220         (WebChromeClient::pageRect): It may seem weird for the page to ask the Chrome/ChromeClient
       
 11221         about its own dimensions. The idea here is that we're asking the Chrome how
       
 11222         much space it has devoted to the page. We have API for this (-webViewContentRect), but 
       
 11223         it was documented incorrectly (even Safari used it wrong), so we don't use 
       
 11224         it anymore. Once we fix our API/documentation, we can return to making a
       
 11225         delegate callback to ask for the page's size.
       
 11226         (WebChromeClient::createWindow): Changed to take a FrameLoadRequest with
       
 11227         an appropriate referrer, instead of making up its own.
       
 11228         (WebChromeClient::createModalDialog): Changed to take a FrameLoadRequest with
       
 11229         an appropriate referrer, instead of broken out parcels.
       
 11230         * WebCoreSupport/WebPageBridge.h: Removed. Dead Code.
       
 11231         * WebCoreSupport/WebPageBridge.mm: Removed. Dead Code.
       
 11232         * WebCoreSupport/WebScreenClient.h: Added.
       
 11233         * WebCoreSupport/WebScreenClient.mm: Added.
       
 11234         * WebView/WebView.mm: Added NULL checks for new _private->page, since
       
 11235         it's not NULL-safe like the bridge was, and it gets cleared before
       
 11236         dealloc.
       
 11237 
       
 11238 2006-11-06  Graham Dennis  <graham.dennis@gmail.com>
       
 11239 
       
 11240         Reviewed by Tim Hatcher.
       
 11241 
       
 11242         Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
       
 11243         Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
       
 11244 
       
 11245         * DefaultDelegates/WebDefaultUIDelegate.m:
       
 11246         (-[NSApplication webView:dragSourceActionMaskForPoint:]): Logic moved to 
       
 11247         WebHTMLView's _mayStartDragAtEventLocation
       
 11248         * Misc/WebElementDictionary.m: added isLiveLink
       
 11249         (+[WebElementDictionary initializeLookupTable]):
       
 11250         (-[WebElementDictionary _isLiveLink]):
       
 11251         * WebView/WebHTMLView.m: 
       
 11252         (-[WebHTMLView _mayStartDragAtEventLocation:]): Editable links should
       
 11253         only be followed if isLiveLink is true
       
 11254         (-[WebHTMLView _isMoveDrag:]): A drag of a live editable link is not
       
 11255         a move
       
 11256         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]):
       
 11257         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
       
 11258         * WebView/WebView.mm: added WebElementLinkIsLiveKey
       
 11259         * WebView/WebViewPrivate.h: ditto
       
 11260 
       
 11261 2006-11-04  Maciej Stachowiak  <mjs@apple.com>
       
 11262 
       
 11263         Reviewed by Oliver.
       
 11264         
       
 11265         - removed unneeded (and obsolete) header includes
       
 11266 
       
 11267         * WebCoreSupport/WebFrameBridge.mm:
       
 11268         * WebView/WebFrame.mm:
       
 11269 
       
 11270 2006-11-05  Darin Adler  <darin@apple.com>
       
 11271 
       
 11272         - WebKit part of Frame.h check-in (forgot to land it)
       
 11273 
       
 11274         * WebCoreSupport/WebFrameBridge.h:
       
 11275         * WebCoreSupport/WebFrameBridge.mm:
       
 11276         (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
       
 11277         (-[WebFrameBridge shouldInterruptJavaScript]):
       
 11278         (-[WebFrameBridge saveDocumentState:]):
       
 11279         (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
       
 11280         (-[WebFrameBridge valueForKey:keys:values:]):
       
 11281         (-[WebFrameBridge getObjectCacheSize]):
       
 11282         (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 11283         (-[WebFrameBridge mayStartDragAtEventLocation:]):
       
 11284         (-[WebFrameBridge canGoBackOrForward:]):
       
 11285         (-[WebFrameBridge goBackOrForward:]):
       
 11286         (-[WebFrameBridge print]):
       
 11287         (-[WebFrameBridge getAppletInView:]):
       
 11288         (-[WebFrameBridge pollForAppletInView:]):
       
 11289         (-[WebFrameBridge respondToChangedContents]):
       
 11290         (-[WebFrameBridge respondToChangedSelection]):
       
 11291         (-[WebFrameBridge setIsSelected:forView:]):
       
 11292 
       
 11293 2006-11-04  Darin Adler  <darin@apple.com>
       
 11294 
       
 11295         Reviewed by Maciej.
       
 11296 
       
 11297         - converted more of the loader machinery to work with cross-platform
       
 11298           data structures instead of Macintosh-specific ones
       
 11299 
       
 11300           store the computed user agent string as a WebCore::String instead
       
 11301           of an NSString to avoid overhead converting it every time we get it
       
 11302 
       
 11303         * COM/WebFrame.cpp:
       
 11304         (WebFrame::initWithName):
       
 11305         * ChangeLog:
       
 11306         * Misc/WebElementDictionary.m:
       
 11307         (-[WebElementDictionary _image]):
       
 11308         (-[WebElementDictionary _targetWebFrame]):
       
 11309         * WebCoreSupport/WebFrameLoaderClient.h:
       
 11310         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11311         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
 11312         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
       
 11313         (WebFrameLoaderClient::setTitle):
       
 11314         (WebFrameLoaderClient::userAgent):
       
 11315         (WebFrameLoaderClient::actionDictionary):
       
 11316         * WebCoreSupport/WebPageBridge.mm:
       
 11317         (WebCore::if):
       
 11318         * WebView/WebDataSource.mm:
       
 11319         (-[WebDataSource _URL]):
       
 11320         (-[WebDataSource _URLForHistory]):
       
 11321         (-[WebDataSource unreachableURL]):
       
 11322         * WebView/WebHTMLView.m:
       
 11323         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
       
 11324         * WebView/WebPDFView.mm:
       
 11325         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
       
 11326         (-[WebPDFView _path]):
       
 11327         * WebView/WebView.mm:
       
 11328         (-[WebViewPrivate init]):
       
 11329         (-[WebViewPrivate dealloc]):
       
 11330         (-[WebViewPrivate finalize]):
       
 11331         (-[WebView _preferencesChangedNotification:]):
       
 11332         (-[WebView _cachedResponseForURL:]):
       
 11333         (-[WebView setApplicationNameForUserAgent:]):
       
 11334         (-[WebView setCustomUserAgent:]):
       
 11335         (-[WebView customUserAgent]):
       
 11336         (-[WebView userAgentForURL:]):
       
 11337         (-[WebView _computeUserAgent]):
       
 11338         (-[WebView WebCore::]):
       
 11339         * WebView/WebViewInternal.h:
       
 11340 
       
 11341 2006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
       
 11342 
       
 11343         Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
       
 11344 
       
 11345         http://bugs.webkit.org/show_bug.cgi?id=11433
       
 11346         Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
       
 11347 
       
 11348         * COM/WebFrame.cpp:
       
 11349         (WebFrame::initWithName):
       
 11350         (WebFrame::loadDataSource):
       
 11351         (WebFrame::receivedRedirect):
       
 11352         (WebFrame::receivedResponse):
       
 11353         (WebFrame::didReceiveData):
       
 11354         (WebFrame::receivedAllData):
       
 11355         Use resource handles now. Do not start doc loader by hand anymore. 
       
 11356         Handle didReceiveData() callback instead of receivedData() which 
       
 11357         is deprecated in implementation of ResourceHandleClient        
       
 11358 
       
 11359         * COM/WebFrame.h:
       
 11360         * COM/WebView.cpp:
       
 11361         Applied ResourceLoader --> ResourceHandle renaming
       
 11362 
       
 11363         * WebKit.vcproj/WebKit.rc:
       
 11364         Got rid of MFC dependencies (build fix for VCExpress).
       
 11365 
       
 11366         * WebKit.vcproj/WebKit.vcproj:
       
 11367         Added platform/graphics platform/network and platform/network/win 
       
 11368         to headers search paths
       
 11369 
       
 11370 2006-11-03  Geoffrey Garen  <ggaren@apple.com>
       
 11371 
       
 11372         Forgot to add these two files. Oops.
       
 11373 
       
 11374         * WebCoreSupport/WebChromeClient.h: Added.
       
 11375         * WebCoreSupport/WebChromeClient.mm: Added.
       
 11376 
       
 11377 2006-11-02  Geoffrey Garen  <ggaren@apple.com>
       
 11378 
       
 11379         Reviewed by Darin, Beth.
       
 11380 
       
 11381         First cut at factoring Page's UIDelegate-related functions into Chrome
       
 11382         and ChromeClient.
       
 11383 
       
 11384         Layout tests pass.
       
 11385         
       
 11386         * WebCoreSupport/WebEditorClient.h:
       
 11387         * WebCoreSupport/WebPageBridge.mm:
       
 11388         * WebKit.xcodeproj/project.pbxproj:
       
 11389 
       
 11390 2006-11-02  Timothy Hatcher  <timothy@apple.com>
       
 11391 
       
 11392         Reviewed by Brady.
       
 11393 
       
 11394         Adding outdent to the WebView responder forwarding list.
       
 11395         Also add outdent to WebHTMLView.h and WebViewPrivate.h.
       
 11396 
       
 11397         * WebView/WebHTMLView.h:
       
 11398         * WebView/WebViewPrivate.h:
       
 11399         * WebView/WebView.mm:
       
 11400 
       
 11401 2006-11-01  John Sullivan  <sullivan@apple.com>
       
 11402 
       
 11403         Reviewed by Adam Roben
       
 11404         
       
 11405         - fixed <rdar://problem/4801351> Crash reloading PDF file in new Safari (or closing a window containing a PDF file)
       
 11406 
       
 11407         * WebView/WebPDFView.mm:
       
 11408         (-[WebPDFView initWithFrame:]):
       
 11409         Retain the PDFSubview in the code path where we just obtain it by asking the PDFPreviewView for it. We were
       
 11410         unconditionally releasing it in dealloc, but only retaining it in one of the two code paths.
       
 11411 
       
 11412 2006-10-31  Mark Rowe  <bdash@webkit.org>
       
 11413 
       
 11414         Reviewed by Maciej.
       
 11415 
       
 11416         Fix null pointer dereference while running editing/pasteboard/drag-drop-modifies-page.html
       
 11417 
       
 11418         * Misc/WebElementDictionary.m:
       
 11419         (-[WebElementDictionary _image]): Add null check.
       
 11420 
       
 11421 2006-10-31  Beth Dakin  <bdakin@apple.com>
       
 11422 
       
 11423         Reviewed by Maciej.
       
 11424 
       
 11425         This creates local functions for the remaining WebElementDictionary 
       
 11426         members that calls into HitTestResult instead of doing magical 
       
 11427         things with the Objective-C DOM classes.
       
 11428 
       
 11429         * ChangeLog:
       
 11430         * Misc/WebElementDictionary.m:
       
 11431         (addLookupKey): The values of the dictionary are now just 
       
 11432         selectors. They used to be WebElementMethods which were 
       
 11433         WebElementTargetObjects associated with selectors, but none of that 
       
 11434         is needed any more.
       
 11435         (+[WebElementDictionary initializeLookupTable]): All selectors are 
       
 11436         now local functions, no more WebElementTargetObjects.
       
 11437         (-[WebElementDictionary objectForKey:]): No more target objects!
       
 11438         (-[WebElementDictionary _domNode]): Call into HitTestResult member 
       
 11439         variable.
       
 11440         (-[WebElementDictionary _altDisplayString]): Same.
       
 11441         (-[WebElementDictionary _image]): Same.
       
 11442         (-[WebElementDictionary _absoluteImageURL]): Same.
       
 11443         (-[WebElementDictionary _title]): Same.
       
 11444         (-[WebElementDictionary _absoluteLinkURL]): Same.
       
 11445         (-[WebElementDictionary _targetWebFrame]): Same.
       
 11446         (-[WebElementDictionary _titleDisplayString]): Same.
       
 11447         (-[WebElementDictionary _textContent]): Same.
       
 11448 
       
 11449 2006-10-31  Geoffrey Garen  <ggaren@apple.com>
       
 11450 
       
 11451         Reviewed by Alice.
       
 11452         
       
 11453         Moved some Editing code from WebKit, the bridge, and WebCore::Frame down 
       
 11454         to WebCore::Editor.
       
 11455 
       
 11456         * WebCoreSupport/WebFrameBridge.mm:
       
 11457         * WebView/WebHTMLView.m:
       
 11458         (-[WebHTMLView _shouldDeleteRange:]):
       
 11459         (-[WebHTMLView _canCopy]):
       
 11460         (-[WebHTMLView _canCut]):
       
 11461         (-[WebHTMLView _canDelete]):
       
 11462         (-[WebHTMLView _canPaste]):
       
 11463         (-[WebHTMLView _canEdit]):
       
 11464         (-[WebHTMLView _canEditRichly]):
       
 11465         (-[WebHTMLView _isEditable]):
       
 11466         (-[WebHTMLView _isSelectionInPasswordField]):
       
 11467         (-[NSArray validateUserInterfaceItem:]):
       
 11468         (-[NSArray _expandSelectionToGranularity:]):
       
 11469 
       
 11470 2006-10-31  John Sullivan  <sullivan@apple.com>
       
 11471 
       
 11472         Reviewed by Beth and Adam
       
 11473         
       
 11474         Display a tooltip when hovering over marked bad grammar.
       
 11475 
       
 11476         * Misc/WebElementDictionary.m:
       
 11477         (+[WebElementDictionary initializeLookupTable]):
       
 11478         support spelling tool tip
       
 11479         (-[WebElementDictionary _spellingToolTip]):
       
 11480         new method, calls through to HitTestResult
       
 11481         
       
 11482         * WebView/WebHTMLView.m:
       
 11483         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
 11484         Check for a spelling tool tip; if found, prefer it over the other possible tool tips.
       
 11485         Check for empty strings instead of just nil strings being, since values from 
       
 11486         WebElementDictionary are empty strings.
       
 11487         
       
 11488         * WebView/WebViewPrivate.h:
       
 11489         declare new string constant WebElementSpellingToolTipKey
       
 11490         * WebView/WebView.mm:
       
 11491         define new string constant WebElementSpellingToolTipKey
       
 11492         
       
 11493 2006-10-31  Beth Dakin  <bdakin@apple.com>
       
 11494 
       
 11495         Reviewed by Maciej.
       
 11496 
       
 11497         Small tweaks to WebKit because of http://bugs.webkit.org/
       
 11498         show_bug.cgi?id=11461 HitTestResult should be split into 
       
 11499         HitTestRequest and HitTestResult
       
 11500 
       
 11501         * WebKit.xcodeproj/project.pbxproj:
       
 11502         * WebView/WebHTMLView.m:
       
 11503         (-[WebHTMLView elementAtPoint:allowShadowContent:]): The 
       
 11504         HitTestResult initializer now just takes a point.
       
 11505 
       
 11506 2006-10-31  Darin Adler  <darin@apple.com>
       
 11507 
       
 11508         Reviewed by Brady.
       
 11509 
       
 11510         - got "action dictionary" code out of FrameLoader,
       
 11511           replacing with a class called NavigationAction
       
 11512 
       
 11513         * WebCoreSupport/WebFrameLoaderClient.h: Changed parameter types to NavigationAction.
       
 11514         Made elementForEvent non-virtual. Added actionDictionary function.
       
 11515         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11516         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Changed parameter type,
       
 11517         and used actionDictionary to make the action dictionary.
       
 11518         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
       
 11519         (WebFrameLoaderClient::actionDictionary): Added. Code that was originally in WebCore
       
 11520         that creates the action dictionary (from a NavigationAction).
       
 11521 
       
 11522         * WebView/WebFrame.mm: (-[WebFrame _loadItem:withLoadType:]): Use NavigationAction
       
 11523         instead of a dictionary for the action parameters.
       
 11524 
       
 11525 2006-10-31  Marvin Decker  <marv.decker@gmail.com>
       
 11526 
       
 11527         Reviewed by Maciej.
       
 11528         
       
 11529         - fixed "Stop and reload don't work on the WebView"
       
 11530         http://bugs.webkit.org/show_bug.cgi?id=11285
       
 11531 
       
 11532         * COM/WebFrame.cpp:
       
 11533         (WebFrame::stopLoading): Implement.
       
 11534         * COM/WebView.cpp:
       
 11535         (WebView::stopLoading): ditto
       
 11536         (WebView::reload): ditto
       
 11537 
       
 11538 2006-10-30  Darin Adler  <darin@apple.com>
       
 11539 
       
 11540         * Plugins/WebBaseNetscapePluginView.mm:
       
 11541         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
       
 11542         Fix comment.
       
 11543 
       
 11544 2006-10-30  John Sullivan  <sullivan@apple.com>
       
 11545 
       
 11546         Reviewed by Geoff Garen
       
 11547 
       
 11548         * WebView/WebHTMLView.m:
       
 11549         (-[NSArray checkSpelling:]):
       
 11550         removed code to update spelling panel; WebCore handles that now
       
 11551         (-[NSArray showGuessPanel:]):
       
 11552         ditto
       
 11553 
       
 11554 2006-10-30  John Sullivan  <sullivan@apple.com>
       
 11555 
       
 11556         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
       
 11557         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
       
 11558         Another wording change to match framework, post-Tiger:
       
 11559         "Check Spelling" -> "Check Document Now"
       
 11560 
       
 11561 2006-10-30  John Sullivan  <sullivan@apple.com>
       
 11562 
       
 11563         Reviewed by Geoff Garen.
       
 11564         
       
 11565         Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
       
 11566         grammar-related method.
       
 11567 
       
 11568         * WebCoreSupport/WebEditorClient.h:
       
 11569         declare overrides of isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
       
 11570         isGrammarCheckingEnabled()
       
 11571         * WebCoreSupport/WebEditorClient.mm:
       
 11572         (WebEditorClient::isContinuousSpellCheckingEnabled):
       
 11573         implement by calling through to WebView
       
 11574         (WebEditorClient::isGrammarCheckingEnabled):
       
 11575         ditto
       
 11576         (WebEditorClient::spellCheckerDocumentTag):
       
 11577         ditto
       
 11578         
       
 11579         * WebCoreSupport/WebFrameBridge.mm:
       
 11580         removed bridge equivalents of these methods
       
 11581 
       
 11582 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
       
 11583 
       
 11584         Reviewed by Beth.
       
 11585         
       
 11586         Fixed nil-deref crash that I saw while using TOT (not sure how to repro,
       
 11587         but the debugger confirmed the cause).
       
 11588 
       
 11589         * WebView/WebFrame.mm:
       
 11590         (core): Added check for NULL bridge.
       
 11591 
       
 11592 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
       
 11593 
       
 11594         Reviewed by Darin.
       
 11595 
       
 11596         Removed a number of editing and selection methods from the bridge.
       
 11597         
       
 11598         I moved cross-platform editing and selection code into WebCore::Editor and 
       
 11599         WebCore::SelectionController, respecitvely.
       
 11600         
       
 11601         All of the seemingly new code here is just code grabbed from WebCore or
       
 11602         merged from WebCoreFrameBridge.
       
 11603         
       
 11604         I changed one piece of internal API: we now pass around Ranges in places
       
 11605         where we used to pass around broken out components of Ranges.
       
 11606         
       
 11607         I also added WebCore XPATH_SUPPORT AND SVG_SUPPORT #defines to the project.
       
 11608         Since we now include WebCore headers that depend on these #defines, we need
       
 11609         to keep in sync with them, to avoid binary incompatibility.
       
 11610 
       
 11611 2006-10-30  Darin Adler  <darin@apple.com>
       
 11612 
       
 11613         Reviewed by John Sullivan.
       
 11614 
       
 11615         - work toward removing Objective-C data types from FrameLoader.h:
       
 11616           removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
       
 11617           and WebCoreResourceHandle
       
 11618         - moved bodyBackgroundColor function here from Frame
       
 11619 
       
 11620         * History/WebHistoryItem.m: (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
       
 11621         Updated for change in WebCorePageState.
       
 11622 
       
 11623         * WebCoreSupport/WebFrameBridge.mm: Removed saveDocumentToPageCache method.
       
 11624 
       
 11625         * WebCoreSupport/WebFrameLoaderClient.h: Changed NSDate to double.
       
 11626         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11627         (WebFrameLoaderClient::invalidateCurrentItemPageCache): Moved the code that was
       
 11628         formerly in invalidatePageCache: on the bridge here.
       
 11629         (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Added code to make the
       
 11630         NSDate here.
       
 11631         (WebFrameLoaderClient::createPageCache): Restructured code to create the
       
 11632         WebCorePageState object directly instead of calling saveDocumentToPageCache on
       
 11633         the bridge.
       
 11634 
       
 11635         * WebView/WebFrame.mm: (-[WebFrame _bodyBackgroundColor]): Rewrote this to work
       
 11636         directly with the DOM and renderers rather than using a function on Frame.
       
 11637 
       
 11638 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
       
 11639 
       
 11640         Reviewed by Anders.
       
 11641 
       
 11642         - added ResourceResponse class and didReceiveResponse delegate call
       
 11643 
       
 11644         * WebCoreSupport/WebFrameBridge.mm: Removed no longer needed
       
 11645         expiresTimeForResponse: method.
       
 11646 
       
 11647 2006-10-29  Darin Adler  <darin@apple.com>
       
 11648 
       
 11649         - update for the WebCore rename
       
 11650 
       
 11651         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11652         * WebView/WebFrame.mm:
       
 11653 
       
 11654 2006-10-29  Darin Adler  <darin@apple.com>
       
 11655 
       
 11656         - update for the WebCore renames
       
 11657 
       
 11658         * Plugins/WebNetscapePluginStream.mm:
       
 11659         * Plugins/WebPluginController.mm:
       
 11660         * WebCoreSupport/WebFrameBridge.mm:
       
 11661         * WebCoreSupport/WebFrameLoaderClient.h:
       
 11662         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11663         (WebFrameLoaderClient::willUseArchive):
       
 11664         (WebFrameLoaderClient::isArchiveLoadPending):
       
 11665         (WebFrameLoaderClient::cancelPendingArchiveLoad):
       
 11666         (WebFrameLoaderClient::deliverArchivedResources):
       
 11667         * WebCoreSupport/WebPageBridge.mm:
       
 11668         (-[WebPageBridge canRunModalNow]):
       
 11669         * WebView/WebDocumentLoaderMac.h:
       
 11670         * WebView/WebFrame.mm:
       
 11671         * WebView/WebHTMLRepresentation.m:
       
 11672         * WebView/WebView.mm:
       
 11673 
       
 11674 2006-10-29  Darin Adler  <darin@apple.com>
       
 11675 
       
 11676         Rubber stamped by Adam Roben.
       
 11677 
       
 11678         - renamed WebCore's WebFrameLoaderClient to match the class name inside it
       
 11679 
       
 11680         * WebCoreSupport/WebFrameBridge.mm: Update include.
       
 11681         * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
       
 11682 
       
 11683 2006-10-29  Darin Adler  <darin@apple.com>
       
 11684 
       
 11685         Reviewed by Maciej.
       
 11686 
       
 11687         - eliminate use of NSArray to carry form data around
       
 11688           (the code in this framework was actually using the NSArray to hold a single
       
 11689            NSData anyway, so I just went back to an NSData for now)
       
 11690 
       
 11691         - also fixed http://bugs.webkit.org/show_bug.cgi?id=11444
       
 11692           REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]:
       
 11693           attempt to insert nil value) when submitting a form with an empty
       
 11694           uninitialized field
       
 11695 
       
 11696         * History/WebHistoryItem.m:
       
 11697         (-[WebHistoryItem _setFormInfoFromRequest:]):
       
 11698         (-[WebHistoryItem formData]):
       
 11699         * History/WebHistoryItemPrivate.h:
       
 11700         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11701         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 11702         * WebView/WebFrame.mm:
       
 11703         (-[WebFrame _loadItem:withLoadType:]):
       
 11704 
       
 11705 2006-10-28  Darin Adler  <darin@apple.com>
       
 11706 
       
 11707         Reviewed by Maciej.
       
 11708 
       
 11709         - eliminated the use of Objective-C for the policy decider
       
 11710           machinery, obviating the need for WebPolicyDeciderMac
       
 11711 
       
 11712         - moved the defersLoading flag from WebView to WebCore::Page
       
 11713 
       
 11714         - removed unused copies of four methods that in the frame bridge;
       
 11715           the actually-used copies are in the page bridge
       
 11716 
       
 11717         - updated for rename of PassRefPtr::release to releaseRef
       
 11718 
       
 11719         * WebView/WebPolicyDeciderMac.h: Removed.
       
 11720         * WebView/WebPolicyDeciderMac.m: Removed.
       
 11721         * WebKit.xcodeproj/project.pbxproj: Updated for removal.
       
 11722 
       
 11723         * Plugins/WebBaseNetscapePluginView.mm:
       
 11724         (-[WebBaseNetscapePluginView sendEvent:]):
       
 11725         * Plugins/WebNetscapePluginStream.mm:
       
 11726         * WebCoreSupport/WebFrameBridge.mm:
       
 11727         * WebCoreSupport/WebFrameLoaderClient.h:
       
 11728         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11729         (getWebView):
       
 11730         (WebFrameLoaderClient::WebFrameLoaderClient):
       
 11731         (WebFrameLoaderClient::willCloseDocument):
       
 11732         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
 11733         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
 11734         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
 11735         (WebFrameLoaderClient::cancelPolicyCheck):
       
 11736         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 11737         (WebFrameLoaderClient::setDefersLoading):
       
 11738         (WebFrameLoaderClient::setTitle):
       
 11739         (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
       
 11740         (WebFrameLoaderClient::deliverArchivedResources):
       
 11741         (WebFrameLoaderClient::setUpPolicyListener):
       
 11742         (WebFrameLoaderClient::receivedPolicyDecison):
       
 11743         (WebFrameLoaderClient::userAgent):
       
 11744         (-[WebFramePolicyListener initWithWebCoreFrame:]):
       
 11745         (-[WebFramePolicyListener invalidate]):
       
 11746         (-[WebFramePolicyListener dealloc]):
       
 11747         (-[WebFramePolicyListener finalize]):
       
 11748         (-[WebFramePolicyListener receivedPolicyDecision:]):
       
 11749         (-[WebFramePolicyListener ignore]):
       
 11750         (-[WebFramePolicyListener download]):
       
 11751         (-[WebFramePolicyListener use]):
       
 11752         (-[WebFramePolicyListener continue]):
       
 11753         * WebCoreSupport/WebPageBridge.mm:
       
 11754         (-[WebPageBridge runModal]):
       
 11755         * WebView/WebArchiver.m:
       
 11756         (+[WebArchiver archiveSelectionInFrame:]):
       
 11757         * WebView/WebFormDelegate.h:
       
 11758         * WebView/WebFormDelegate.m:
       
 11759         (+[WebFormDelegate _sharedWebFormDelegate]):
       
 11760         (-[WebFormDelegate textFieldDidBeginEditing:inFrame:]):
       
 11761         (-[WebFormDelegate textFieldDidEndEditing:inFrame:]):
       
 11762         (-[WebFormDelegate textDidChangeInTextField:inFrame:]):
       
 11763         (-[WebFormDelegate textDidChangeInTextArea:inFrame:]):
       
 11764         (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]):
       
 11765         * WebView/WebFrame.mm:
       
 11766         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 11767         (-[WebFrame _isFrameSet]):
       
 11768         * WebView/WebFrameInternal.h:
       
 11769         * WebView/WebFrameView.mm:
       
 11770         (-[WebFrameView _shouldDrawBorder]):
       
 11771         * WebView/WebHTMLView.m:
       
 11772         (-[NSArray knowsPageRange:]):
       
 11773         * WebView/WebView.mm:
       
 11774         (-[WebView _formDelegate]):
       
 11775         * WebView/WebViewInternal.h:
       
 11776         * WebView/WebViewPrivate.h:
       
 11777 
       
 11778 2006-10-28  Adam Roben  <aroben@apple.com>
       
 11779 
       
 11780         Reviewed by Maciej.
       
 11781 
       
 11782         Fix layout tests that broke after r17399. Mitz discovered that the
       
 11783         failures were caused by HitTestResult::m_point being uninitialized
       
 11784         much of the time. HitTestResults are now always constructed with a
       
 11785         point.
       
 11786 
       
 11787         * WebView/WebHTMLView.m:
       
 11788         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Pass point to
       
 11789         HitTestResult constructor.
       
 11790 
       
 11791 2006-10-28  Beth Dakin  <bdakin@apple.com>
       
 11792 
       
 11793         Reviewed by Darin.
       
 11794 
       
 11795         This is the WebKit half of pushing the guts of elementAtPoint and 
       
 11796         WebElementDictionary into WebCore. Among other things, this patch 
       
 11797         makes WebElementDictionary.m and WebHTMLView.m Objective-C++
       
 11798 
       
 11799         * MigrateHeaders.make: Add DOMElementInternal.h to the list of 
       
 11800         headers to migrate.
       
 11801         * Misc/WebElementDictionary.h: Replaced DOMNode, DOMElement, and 
       
 11802         NSPoint member variables with a HitTestResult member variable.
       
 11803         * Misc/WebElementDictionary.m:
       
 11804         (addLookupKey): Formatting.
       
 11805         (-[WebElementDictionary initWithHitTestResult:]): Constructor just 
       
 11806         takes a HitTestResult now and sets the member variable.
       
 11807         (-[WebElementDictionary dealloc]): delete HitTestResult.
       
 11808         (-[WebElementDictionary finalize]): Address HitTestResult.
       
 11809         (-[WebElementDictionary _domNode]): Use HitTestResult and call into 
       
 11810         WebCore.
       
 11811         (-[WebElementDictionary objectForKey:]): Same.
       
 11812         (-[WebElementDictionary _webFrame]): Same.
       
 11813         (-[WebElementDictionary _targetWebFrame]): Same.
       
 11814         (-[WebElementDictionary _title]): Same.
       
 11815         (-[WebElementDictionary _imageRect]): Same.
       
 11816         (-[WebElementDictionary _isSelected]): Same.
       
 11817         * WebKit.xcodeproj/project.pbxproj:
       
 11818         * WebView/WebFrame.mm:
       
 11819         (core): Convert from DOMNode* to Node*
       
 11820         (kit): Convert from Node* to DOMNode*
       
 11821         * WebView/WebFrameInternal.h: Support for the above.
       
 11822         * WebView/WebHTMLView.m:
       
 11823         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Call directly 
       
 11824         into Frame.cpp to get HitTestResult.
       
 11825 
       
 11826 2006-10-27  Maciej Stachowiak  <mjs@apple.com>
       
 11827 
       
 11828         Reviewed by John & Adam.
       
 11829         
       
 11830         - various performance improvements for resource delegate dispatch.
       
 11831         
       
 11832         - avoid any ObjC messaging when fetching the WebView
       
 11833         - avoid ObjC calls to WebView to get resource load delegate and impl cache
       
 11834         - cache actual method pointers, not just the fact that the method is present
       
 11835         - added a new SPI resource load delegate method which allows clients to get
       
 11836           just one message in case of synchronously loading from memory cache; if this
       
 11837           is implemented you don't get the normal delegate calls in that case.
       
 11838         - various other minor tweaks
       
 11839 
       
 11840         * WebCoreSupport/WebFrameBridge.h:
       
 11841         * WebCoreSupport/WebFrameLoaderClient.h:
       
 11842         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11843         (getWebView):
       
 11844         (WebFrameLoaderClient::hasBackForwardList):
       
 11845         (WebFrameLoaderClient::resetBackForwardList):
       
 11846         (WebFrameLoaderClient::privateBrowsingEnabled):
       
 11847         (WebFrameLoaderClient::updateHistoryForStandardLoad):
       
 11848         (WebFrameLoaderClient::resetAfterLoadError):
       
 11849         (WebFrameLoaderClient::download):
       
 11850         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
       
 11851         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
 11852         (WebFrameLoaderClient::dispatchWillSendRequest):
       
 11853         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
 11854         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
 11855         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
 11856         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
 11857         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
 11858         (WebFrameLoaderClient::dispatchDidFailLoading):
       
 11859         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
       
 11860         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
       
 11861         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
       
 11862         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
 11863         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
       
 11864         (WebFrameLoaderClient::dispatchWillClose):
       
 11865         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
 11866         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
       
 11867         (WebFrameLoaderClient::dispatchDidReceiveTitle):
       
 11868         (WebFrameLoaderClient::dispatchDidCommitLoad):
       
 11869         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
 11870         (WebFrameLoaderClient::dispatchDidFailLoad):
       
 11871         (WebFrameLoaderClient::dispatchDidFinishLoad):
       
 11872         (WebFrameLoaderClient::dispatchDidFirstLayout):
       
 11873         (WebFrameLoaderClient::dispatchCreatePage):
       
 11874         (WebFrameLoaderClient::dispatchShow):
       
 11875         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
 11876         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
 11877         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
 11878         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
 11879         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 11880         (WebFrameLoaderClient::dispatchDidLoadMainResource):
       
 11881         (WebFrameLoaderClient::progressStarted):
       
 11882         (WebFrameLoaderClient::progressCompleted):
       
 11883         (WebFrameLoaderClient::incrementProgress):
       
 11884         (WebFrameLoaderClient::completeProgress):
       
 11885         (WebFrameLoaderClient::setMainFrameDocumentReady):
       
 11886         (WebFrameLoaderClient::startDownload):
       
 11887         (WebFrameLoaderClient::willChangeTitle):
       
 11888         (WebFrameLoaderClient::didChangeTitle):
       
 11889         (WebFrameLoaderClient::mainFrameURL):
       
 11890         (WebFrameLoaderClient::frameLoadCompleted):
       
 11891         * WebCoreSupport/WebPageBridge.h:
       
 11892         * WebKit.xcodeproj/project.pbxproj:
       
 11893         * WebView/WebFrame.mm:
       
 11894         (frame):
       
 11895         (core):
       
 11896         (kit):
       
 11897         (getWebView):
       
 11898         (-[WebFrame _addBackForwardItemClippedAtTarget:]):
       
 11899         (-[WebFrame _canCachePage]):
       
 11900         (-[WebFrame _purgePageCache]):
       
 11901         (-[WebFrame _loadItem:withLoadType:]):
       
 11902         (-[WebFrame _goToItem:withLoadType:]):
       
 11903         (-[WebFrame _updateBackground]):
       
 11904         (-[WebFrame _clearSelectionInOtherFrames]):
       
 11905         (-[WebFrame _isMainFrame]):
       
 11906         (-[WebFrame webView]):
       
 11907         * WebView/WebResourceLoadDelegatePrivate.h: Added.
       
 11908         * WebView/WebView.mm:
       
 11909         (-[WebView _cacheResourceLoadDelegateImplementations]):
       
 11910         (WebViewGetResourceLoadDelegate):
       
 11911         (WebViewGetResourceLoadDelegateImplementations):
       
 11912         * WebView/WebViewInternal.h:
       
 11913         * WebView/WebViewPrivate.h:
       
 11914 
       
 11915 2006-10-27  Geoffrey Garen  <ggaren@apple.com>
       
 11916 
       
 11917         Reviewed by Maciej.
       
 11918         
       
 11919         Moved some WebCoreFrameBridge functions into FrameLoader.
       
 11920 
       
 11921         * WebView/WebFrame.mm:
       
 11922         (-[WebFrame _numPendingOrLoadingRequests:]):
       
 11923 
       
 11924 2006-10-27  Timothy Hatcher  <timothy@apple.com>
       
 11925 
       
 11926         Reviewed by Beth.
       
 11927 
       
 11928         Make a DerivedSource/Webkit directory to store migrated
       
 11929         internal headers from WebCore.
       
 11930 
       
 11931         * MigrateHeaders.make:
       
 11932         * WebKit.xcodeproj/project.pbxproj:
       
 11933         * WebView/WebFrame.mm: import the new migrated DOM*Internal.h headers
       
 11934 
       
 11935 2006-10-27  John Sullivan  <sullivan@apple.com>
       
 11936 
       
 11937         Reviewed by Anders
       
 11938         
       
 11939         - fixed http://bugs.webkit.org/show_bug.cgi?id=11439 
       
 11940           REGRESSION: Another page loading crash
       
 11941 
       
 11942         * WebView/WebFrame.mm:
       
 11943         (-[WebFrame _createItem:]):
       
 11944         Handle nil documentLoader the way we did before ObjC->C++ changes
       
 11945 
       
 11946 2006-10-27  John Sullivan  <sullivan@apple.com>
       
 11947 
       
 11948         Reviewed by Anders
       
 11949 
       
 11950         * WebView/WebHTMLView.m:
       
 11951         (-[NSArray checkSpelling:]):
       
 11952         call advanceToNextMisspelling directly on FrameMac, bypassing bridge
       
 11953         (-[NSArray showGuessPanel:]):
       
 11954         ditto
       
 11955 
       
 11956 2006-10-27  Darin Adler  <darin@apple.com>
       
 11957 
       
 11958         - build fix
       
 11959 
       
 11960         * WebCoreSupport/WebFrameLoaderClient.mm: Corrected header file name.
       
 11961 
       
 11962 2006-10-27  Darin Adler  <darin@apple.com>
       
 11963 
       
 11964         Reviewed by Maciej.
       
 11965 
       
 11966         - moved methods that are there just to be called by the frame loader client into the client
       
 11967           in an attempt to get back some of the speed we lost yesterday
       
 11968 
       
 11969         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
       
 11970         (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveAuthenticationChallenge:fromDataSource:]):
       
 11971         (-[WebDefaultResourceLoadDelegate webView:resource:didCancelAuthenticationChallenge:fromDataSource:]):
       
 11972         * WebCoreSupport/WebFrameLoaderClient.h:
       
 11973         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 11974         (dataSource):
       
 11975         (decisionListener):
       
 11976         (WebFrameLoaderClient::WebFrameLoaderClient):
       
 11977         (WebFrameLoaderClient::hasWebView):
       
 11978         (WebFrameLoaderClient::hasFrameView):
       
 11979         (WebFrameLoaderClient::hasBackForwardList):
       
 11980         (WebFrameLoaderClient::resetBackForwardList):
       
 11981         (WebFrameLoaderClient::provisionalItemIsTarget):
       
 11982         (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
       
 11983         (WebFrameLoaderClient::invalidateCurrentItemPageCache):
       
 11984         (WebFrameLoaderClient::privateBrowsingEnabled):
       
 11985         (WebFrameLoaderClient::makeDocumentView):
       
 11986         (WebFrameLoaderClient::makeRepresentation):
       
 11987         (WebFrameLoaderClient::setDocumentViewFromPageCache):
       
 11988         (WebFrameLoaderClient::forceLayout):
       
 11989         (WebFrameLoaderClient::forceLayoutForNonHTML):
       
 11990         (WebFrameLoaderClient::updateHistoryForCommit):
       
 11991         (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
       
 11992         (WebFrameLoaderClient::updateHistoryForReload):
       
 11993         (WebFrameLoaderClient::updateHistoryForStandardLoad):
       
 11994         (WebFrameLoaderClient::updateHistoryForInternalLoad):
       
 11995         (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
       
 11996         (WebFrameLoaderClient::setCopiesOnScroll):
       
 11997         (WebFrameLoaderClient::tokenForLoadErrorReset):
       
 11998         (WebFrameLoaderClient::resetAfterLoadError):
       
 11999         (WebFrameLoaderClient::doNotResetAfterLoadError):
       
 12000         (WebFrameLoaderClient::detachedFromParent1):
       
 12001         (WebFrameLoaderClient::detachedFromParent2):
       
 12002         (WebFrameLoaderClient::detachedFromParent3):
       
 12003         (WebFrameLoaderClient::detachedFromParent4):
       
 12004         (WebFrameLoaderClient::loadedFromPageCache):
       
 12005         (WebFrameLoaderClient::download):
       
 12006         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
 12007         (WebFrameLoaderClient::dispatchWillSendRequest):
       
 12008         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
 12009         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
 12010         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
 12011         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
 12012         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
 12013         (WebFrameLoaderClient::dispatchDidFailLoading):
       
 12014         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
       
 12015         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
       
 12016         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
       
 12017         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
 12018         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
       
 12019         (WebFrameLoaderClient::dispatchWillClose):
       
 12020         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
 12021         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
       
 12022         (WebFrameLoaderClient::dispatchDidReceiveTitle):
       
 12023         (WebFrameLoaderClient::dispatchDidCommitLoad):
       
 12024         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
 12025         (WebFrameLoaderClient::dispatchDidFailLoad):
       
 12026         (WebFrameLoaderClient::dispatchDidFinishLoad):
       
 12027         (WebFrameLoaderClient::dispatchDidFirstLayout):
       
 12028         (WebFrameLoaderClient::dispatchCreatePage):
       
 12029         (WebFrameLoaderClient::dispatchShow):
       
 12030         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
 12031         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
 12032         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
 12033         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
 12034         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 12035         (WebFrameLoaderClient::dispatchDidLoadMainResource):
       
 12036         (WebFrameLoaderClient::clearLoadingFromPageCache):
       
 12037         (WebFrameLoaderClient::isLoadingFromPageCache):
       
 12038         (WebFrameLoaderClient::revertToProvisionalState):
       
 12039         (WebFrameLoaderClient::setMainDocumentError):
       
 12040         (WebFrameLoaderClient::clearUnarchivingState):
       
 12041         (WebFrameLoaderClient::progressStarted):
       
 12042         (WebFrameLoaderClient::progressCompleted):
       
 12043         (WebFrameLoaderClient::incrementProgress):
       
 12044         (WebFrameLoaderClient::completeProgress):
       
 12045         (WebFrameLoaderClient::setMainFrameDocumentReady):
       
 12046         (WebFrameLoaderClient::startDownload):
       
 12047         (WebFrameLoaderClient::willChangeTitle):
       
 12048         (WebFrameLoaderClient::didChangeTitle):
       
 12049         (WebFrameLoaderClient::committedLoad):
       
 12050         (WebFrameLoaderClient::finishedLoading):
       
 12051         (WebFrameLoaderClient::finalSetupForReplace):
       
 12052         (WebFrameLoaderClient::cancelledError):
       
 12053         (WebFrameLoaderClient::cannotShowURLError):
       
 12054         (WebFrameLoaderClient::interruptForPolicyChangeError):
       
 12055         (WebFrameLoaderClient::cannotShowMIMETypeError):
       
 12056         (WebFrameLoaderClient::fileDoesNotExistError):
       
 12057         (WebFrameLoaderClient::shouldFallBack):
       
 12058         (WebFrameLoaderClient::mainFrameURL):
       
 12059         (WebFrameLoaderClient::setDefersCallbacks):
       
 12060         (WebFrameLoaderClient::willUseArchive):
       
 12061         (WebFrameLoaderClient::isArchiveLoadPending):
       
 12062         (WebFrameLoaderClient::cancelPendingArchiveLoad):
       
 12063         (WebFrameLoaderClient::clearArchivedResources):
       
 12064         (WebFrameLoaderClient::canHandleRequest):
       
 12065         (WebFrameLoaderClient::canShowMIMEType):
       
 12066         (WebFrameLoaderClient::representationExistsForURLScheme):
       
 12067         (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
       
 12068         (WebFrameLoaderClient::elementForEvent):
       
 12069         (WebFrameLoaderClient::createPolicyDecider):
       
 12070         (WebFrameLoaderClient::frameLoadCompleted):
       
 12071         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
       
 12072         (WebFrameLoaderClient::provisionalLoadStarted):
       
 12073         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
       
 12074         (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
       
 12075         (WebFrameLoaderClient::didFinishLoad):
       
 12076         (WebFrameLoaderClient::prepareForDataSourceReplacement):
       
 12077         (WebFrameLoaderClient::createDocumentLoader):
       
 12078         (WebFrameLoaderClient::setTitle):
       
 12079         (WebFrameLoaderClient::canUseArchivedResource):
       
 12080         (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
       
 12081         (WebFrameLoaderClient::deliverArchivedResources):
       
 12082         (WebFrameLoaderClient::createPageCache):
       
 12083         * WebView/WebFrame.mm:
       
 12084         (-[NSView setWebFrame:]):
       
 12085         (-[WebFrame _createItem:]):
       
 12086         (-[WebFrame _loadItem:withLoadType:]):
       
 12087         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
       
 12088         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 12089         (-[WebFrame _saveScrollPositionAndViewStateToItem:]):
       
 12090         (-[WebFrame _hasSelection]):
       
 12091         (-[WebFrame _clearSelection]):
       
 12092         (-[WebFrame _setProvisionalItem:]):
       
 12093         (-[WebFrame _setPreviousItem:]):
       
 12094         (-[WebFrame _setCurrentItem:]):
       
 12095         (-[WebFrame loadArchive:]):
       
 12096         * WebView/WebFrameInternal.h:
       
 12097         * WebView/WebHTMLView.m:
       
 12098         (-[WebHTMLView _topHTMLView]):
       
 12099         * WebView/WebHTMLViewPrivate.h:
       
 12100 
       
 12101 2006-10-26  Geoffrey Garen  <ggaren@apple.com>
       
 12102 
       
 12103         Reviewed by Darin, Maciej.
       
 12104 
       
 12105         Removed many uses of NSString * from WebCore.
       
 12106         
       
 12107         Changed a few files to ObjC++ for compatiblity with new WebCore methods
       
 12108         taking WebCore::Strings as arguments.
       
 12109         
       
 12110         Added a static_cast to make the c++ compiler happy.
       
 12111 
       
 12112 2006-10-26  John Sullivan  <sullivan@apple.com>
       
 12113 
       
 12114         Reviewed by Anders
       
 12115 
       
 12116         * WebView/WebFrame.mm:
       
 12117         now includes <WebCore/Document.h> and <WebCore/DocumentMarker.h>
       
 12118         (-[WebFrame _unmarkAllBadGrammar]):
       
 12119         filled in guts
       
 12120         (-[WebFrame _unmarkAllMisspellings]):
       
 12121         rewrote to call Document directly, bypassing bridge
       
 12122 
       
 12123 2006-10-26  John Sullivan  <sullivan@apple.com>
       
 12124 
       
 12125         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
       
 12126         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
       
 12127         
       
 12128         Changed "Spelling" to "Spelling and Grammar" in context menu for post-Tiger.
       
 12129 
       
 12130 === Safari-521.29 ===
       
 12131 
       
 12132 2006-10-26  John Sullivan  <sullivan@apple.com>
       
 12133 
       
 12134         No review, just two localized string changes.
       
 12135         
       
 12136         * WebView/WebHTMLView.m:
       
 12137         (-[NSArray validateUserInterfaceItem:]):
       
 12138         changed "Show/Hide Spelling" to "Show/Hide Spelling and Grammar" post-Tiger to match framework change
       
 12139 
       
 12140         * English.lproj/Localizable.strings:
       
 12141         updated for these changes
       
 12142 
       
 12143 2006-10-25  Darin Adler  <darin@apple.com>
       
 12144 
       
 12145         Reviewed by Anders.
       
 12146 
       
 12147         - removed 55 methods from WebCoreFrameBridge
       
 12148         - changed callers to use Frame directly instead
       
 12149         - put FrameLoaderTypes.h types into the WebCore namespace
       
 12150         - first steps to get FrameLoader.h ready for cross-platform duty
       
 12151 
       
 12152         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 12153         (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
       
 12154         * Plugins/WebBaseNetscapePluginView.mm:
       
 12155         (-[WebBaseNetscapePluginView requestWithURLCString:]):
       
 12156         (-[WebBaseNetscapePluginView loadPluginRequest:]):
       
 12157         (-[WebBaseNetscapePluginView getVariable:value:]):
       
 12158         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 12159         (-[WebNetscapePluginEmbeddedView didStart]):
       
 12160         * Plugins/WebNetscapePluginStream.mm:
       
 12161         * Plugins/WebPluginContainerCheck.m:
       
 12162         (-[WebPluginContainerCheck _continueWithPolicy:]):
       
 12163         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
       
 12164         * WebCoreSupport/WebEditorClient.mm:
       
 12165         (WebEditorClient::shouldDeleteRange):
       
 12166         (WebEditorClient::shouldShowDeleteInterface):
       
 12167         * WebCoreSupport/WebFrameBridge.mm:
       
 12168         (-[WebFrameBridge webView]):
       
 12169         (-[WebFrameBridge finishInitializingWithFrameName:view:]):
       
 12170         (-[WebFrameBridge createWindowWithURL:]):
       
 12171         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
 12172         (-[WebFrameBridge windowObjectCleared]):
       
 12173         (-[WebFrameBridge createModalDialogWithURL:]):
       
 12174         * WebCoreSupport/WebFrameLoaderClient.mm:
       
 12175         (WebFrameLoaderClient::dispatchCreatePage):
       
 12176         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 12177         * WebKit.xcodeproj/project.pbxproj:
       
 12178         * WebView/WebArchiver.m:
       
 12179         (+[WebArchiver archiveSelectionInFrame:]):
       
 12180         * WebView/WebDataSource.mm:
       
 12181         (-[WebDataSource _documentFragmentWithImageResource:]):
       
 12182         (-[WebDataSource _imageElementWithImageResource:]):
       
 12183         * WebView/WebEditingDelegatePrivate.h:
       
 12184         * WebView/WebFrame.mm:
       
 12185         (core):
       
 12186         (kit):
       
 12187         (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
       
 12188         (-[WebFrame _canCachePage]):
       
 12189         (-[WebFrame _childFramesMatchItem:]):
       
 12190         (-[WebFrame _URLsMatchItem:]):
       
 12191         (-[WebFrame _loadItem:withLoadType:]):
       
 12192         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
       
 12193         (-[WebFrame _viewWillMoveToHostWindow:]):
       
 12194         (-[WebFrame _viewDidMoveToHostWindow]):
       
 12195         (-[WebFrame _addChild:]):
       
 12196         (-[WebFrame _saveDocumentAndScrollState]):
       
 12197         (-[WebFrame _numPendingOrLoadingRequests:]):
       
 12198         (-[WebFrame _reloadForPluginChanges]):
       
 12199         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
       
 12200         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
       
 12201         (-[WebFrame _initWithWebFrameView:webView:coreFrame:]):
       
 12202         (-[WebFrame _documentViews]):
       
 12203         (-[WebFrame _updateBackground]):
       
 12204         (-[WebFrame _unmarkAllMisspellings]):
       
 12205         (-[WebFrame _hasSelection]):
       
 12206         (-[WebFrame _atMostOneFrameHasSelection]):
       
 12207         (-[WebFrame _findFrameWithSelection]):
       
 12208         (-[WebFrame _frameLoader]):
       
 12209         (-[WebFrame _isDescendantOfFrame:]):
       
 12210         (-[WebFrame _setShouldCreateRenderers:]):
       
 12211         (-[WebFrame _bodyBackgroundColor]):
       
 12212         (-[WebFrame init]):
       
 12213         (-[WebFrame initWithName:webFrameView:webView:]):
       
 12214         (-[WebFrame dealloc]):
       
 12215         (-[WebFrame finalize]):
       
 12216         (-[WebFrame name]):
       
 12217         (-[WebFrame webView]):
       
 12218         (-[WebFrame DOMDocument]):
       
 12219         (-[WebFrame frameElement]):
       
 12220         (-[WebFrame findFrameNamed:]):
       
 12221         (-[WebFrame parentFrame]):
       
 12222         (-[WebFrame childFrames]):
       
 12223         (-[WebFrame _invalidateCurrentItemPageCache]):
       
 12224         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
       
 12225         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
       
 12226         (-[WebFrame _prepareForDataSourceReplacement]):
       
 12227         (-[WebFrame _provisionalLoadStarted]):
       
 12228         * WebView/WebFrameInternal.h:
       
 12229         * WebView/WebHTMLRepresentation.m:
       
 12230         (-[WebHTMLRepresentation DOMDocument]):
       
 12231         (-[WebHTMLRepresentation attributedText]):
       
 12232         * WebView/WebHTMLView.m:
       
 12233         (-[WebHTMLView _documentRange]):
       
 12234         (-[WebHTMLView _documentFragmentWithPaths:]):
       
 12235         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
 12236         (-[WebHTMLView _selectedRange]):
       
 12237         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
 12238         (-[WebHTMLView _canEditRichly]):
       
 12239         (-[WebHTMLView _hasSelection]):
       
 12240         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
       
 12241         (-[WebHTMLView _hasInsertionPoint]):
       
 12242         (-[WebHTMLView _isEditable]):
       
 12243         (-[WebHTMLView _isSelectionInPasswordField]):
       
 12244         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
 12245         (-[WebHTMLView _selectionDraggingImage]):
       
 12246         (-[WebHTMLView _canIncreaseSelectionListLevel]):
       
 12247         (-[WebHTMLView _canDecreaseSelectionListLevel]):
       
 12248         (-[WebHTMLView _updateActiveState]):
       
 12249         (-[NSArray readSelectionFromPasteboard:]):
       
 12250         (-[NSArray validateUserInterfaceItem:]):
       
 12251         (-[NSArray maintainsInactiveSelection]):
       
 12252         (-[NSArray menuForEvent:]):
       
 12253         (-[NSArray scrollWheel:]):
       
 12254         (-[NSArray acceptsFirstMouse:]):
       
 12255         (-[NSArray shouldDelayWindowOrderingForEvent:]):
       
 12256         (-[NSArray mouseDown:]):
       
 12257         (-[NSArray mouseDragged:]):
       
 12258         (-[NSArray mouseUp:]):
       
 12259         (-[NSArray keyDown:]):
       
 12260         (-[NSArray keyUp:]):
       
 12261         (-[NSArray centerSelectionInVisibleArea:]):
       
 12262         (-[NSArray _selectionStartFontAttributesAsRTF]):
       
 12263         (-[NSArray _emptyStyle]):
       
 12264         (-[NSArray performKeyEquivalent:]):
       
 12265         (-[NSArray indent:]):
       
 12266         (-[NSArray outdent:]):
       
 12267         (-[WebHTMLView cut:]):
       
 12268         (-[WebHTMLView paste:]):
       
 12269         (-[WebHTMLView _selectRangeInMarkedText:]):
       
 12270         (-[WebTextCompleteController doCompletion]):
       
 12271         (-[WebHTMLView selectionRect]):
       
 12272         (-[WebHTMLView selectionImageForcingWhiteText:]):
       
 12273         (-[WebHTMLView selectionImageRect]):
       
 12274         (-[WebHTMLView attributedString]):
       
 12275         (-[WebHTMLView _isMoveDrag]):
       
 12276         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
       
 12277         * WebView/WebPolicyDelegate.mm:
       
 12278         (-[WebPolicyDecisionListener _usePolicy:]):
       
 12279         (-[WebPolicyDecisionListener use]):
       
 12280         (-[WebPolicyDecisionListener ignore]):
       
 12281         (-[WebPolicyDecisionListener download]):
       
 12282         (-[WebPolicyDecisionListener continue]):
       
 12283         * WebView/WebScriptDebugDelegate.m:
       
 12284         (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
       
 12285         (-[WebScriptCallFrame globalObject]):
       
 12286         * WebView/WebView.mm:
       
 12287         (-[WebView _attachScriptDebuggerToAllFrames]):
       
 12288         (-[WebView _detachScriptDebuggerFromAllFrames]):
       
 12289         (-[WebView windowScriptObject]):
       
 12290         (incrementFrame):
       
 12291         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 12292         (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
       
 12293         (-[WebView removeDragCaret]):
       
 12294         (-[WebView setScriptDebugDelegate:]):
       
 12295         (-[WebView scriptDebugDelegate]):
       
 12296         (-[WebView shouldClose]):
       
 12297         (-[WebView selectedDOMRange]):
       
 12298         (-[WebView styleDeclarationWithText:]):
       
 12299 
       
 12300 2006-10-25  Geoffrey Garen  <ggaren@apple.com>
       
 12301 
       
 12302         Reviewed by Adam.
       
 12303 
       
 12304         Renamed WebFrameLoader to FrameLoader, to match class name.
       
 12305 
       
 12306         * Plugins/WebBaseNetscapePluginView.mm:
       
 12307         * Plugins/WebNetscapePluginStream.mm:
       
 12308         * Plugins/WebPluginController.mm:
       
 12309         * WebCoreSupport/WebFrameBridge.mm:
       
 12310         * WebView/WebDataSource.mm:
       
 12311         * WebView/WebFrame.mm:
       
 12312         * WebView/WebPDFView.mm:
       
 12313         * WebView/WebPolicyDelegate.mm:
       
 12314         * WebView/WebView.mm:
       
 12315 
       
 12316 2006-10-25  Mark Rowe  <bdash@webkit.org>
       
 12317 
       
 12318         Reviewed by Anders.
       
 12319 
       
 12320         Build fix for the Buildbot.
       
 12321 
       
 12322         * WebView/WebHTMLView.m:
       
 12323         (-[NSArray _addToStyle:fontA:fontB:]): Explicit cast.
       
 12324 
       
 12325 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
       
 12326 
       
 12327         Reviewed by Anders.
       
 12328         
       
 12329         <rdar://problem/4785575> REGRESSION: form resubmission warning occurs twice, then Safari crashes in autorelease pool
       
 12330         <rdar://problem/4799383> REGRESSION: Crash occurs when dismissing the "Would you like to save this password" sheet
       
 12331 
       
 12332         * WebView/WebPolicyDeciderMac.m:
       
 12333         (-[WebPolicyDeciderMac dealloc]): release the listener, don't dealloc it
       
 12334 
       
 12335 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
       
 12336 
       
 12337         Reviewed by Darin.
       
 12338 
       
 12339         * WebKitPrefix.h:
       
 12340         Include FastMalloc.h from C++ code.
       
 12341 
       
 12342 2006-10-24  Darin Adler  <darin@apple.com>
       
 12343 
       
 12344         Reviewed by Anders.
       
 12345 
       
 12346         - converted WebFrameLoaderClient to C++
       
 12347         - renamed frame->frameLoader() function to frame->loader()
       
 12348         - renamed [bridge impl] to [bridge _frame]
       
 12349         - removed some bridge methods
       
 12350 
       
 12351         * Plugins/WebNetscapePluginStream.mm:
       
 12352         * WebCoreSupport/WebEditorClient.mm:
       
 12353         * WebCoreSupport/WebFrameLoaderClient.h: Added.
       
 12354         (WebFrameLoaderClient::webFrame):
       
 12355         * WebCoreSupport/WebFrameLoaderClient.mm: Added.
       
 12356         (WebFrameLoaderClient::detachFrameLoader):
       
 12357         (WebFrameLoaderClient::hasWebView):
       
 12358         (WebFrameLoaderClient::hasFrameView):
       
 12359         (WebFrameLoaderClient::hasBackForwardList):
       
 12360         (WebFrameLoaderClient::resetBackForwardList):
       
 12361         (WebFrameLoaderClient::provisionalItemIsTarget):
       
 12362         (WebFrameLoaderClient::loadProvisionalItemFromPageCache):
       
 12363         (WebFrameLoaderClient::invalidateCurrentItemPageCache):
       
 12364         (WebFrameLoaderClient::privateBrowsingEnabled):
       
 12365         (WebFrameLoaderClient::makeDocumentView):
       
 12366         (WebFrameLoaderClient::makeRepresentation):
       
 12367         (WebFrameLoaderClient::setDocumentViewFromPageCache):
       
 12368         (WebFrameLoaderClient::forceLayout):
       
 12369         (WebFrameLoaderClient::forceLayoutForNonHTML):
       
 12370         (WebFrameLoaderClient::updateHistoryForCommit):
       
 12371         (WebFrameLoaderClient::updateHistoryForBackForwardNavigation):
       
 12372         (WebFrameLoaderClient::updateHistoryForReload):
       
 12373         (WebFrameLoaderClient::updateHistoryForStandardLoad):
       
 12374         (WebFrameLoaderClient::updateHistoryForInternalLoad):
       
 12375         (WebFrameLoaderClient::updateHistoryAfterClientRedirect):
       
 12376         (WebFrameLoaderClient::setCopiesOnScroll):
       
 12377         (WebFrameLoaderClient::tokenForLoadErrorReset):
       
 12378         (WebFrameLoaderClient::resetAfterLoadError):
       
 12379         (WebFrameLoaderClient::doNotResetAfterLoadError):
       
 12380         (WebFrameLoaderClient::detachedFromParent1):
       
 12381         (WebFrameLoaderClient::detachedFromParent2):
       
 12382         (WebFrameLoaderClient::detachedFromParent3):
       
 12383         (WebFrameLoaderClient::detachedFromParent4):
       
 12384         (WebFrameLoaderClient::loadedFromPageCache):
       
 12385         (WebFrameLoaderClient::download):
       
 12386         (WebFrameLoaderClient::dispatchIdentifierForInitialRequest):
       
 12387         (WebFrameLoaderClient::dispatchWillSendRequest):
       
 12388         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
       
 12389         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
       
 12390         (WebFrameLoaderClient::dispatchDidReceiveResponse):
       
 12391         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
       
 12392         (WebFrameLoaderClient::dispatchDidFinishLoading):
       
 12393         (WebFrameLoaderClient::dispatchDidFailLoading):
       
 12394         (WebFrameLoaderClient::dispatchDidHandleOnloadEvents):
       
 12395         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
       
 12396         (WebFrameLoaderClient::dispatchDidCancelClientRedirect):
       
 12397         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
       
 12398         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
       
 12399         (WebFrameLoaderClient::dispatchWillClose):
       
 12400         (WebFrameLoaderClient::dispatchDidReceiveIcon):
       
 12401         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
       
 12402         (WebFrameLoaderClient::dispatchDidReceiveTitle):
       
 12403         (WebFrameLoaderClient::dispatchDidCommitLoad):
       
 12404         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
       
 12405         (WebFrameLoaderClient::dispatchDidFailLoad):
       
 12406         (WebFrameLoaderClient::dispatchDidFinishLoad):
       
 12407         (WebFrameLoaderClient::dispatchDidFirstLayout):
       
 12408         (WebFrameLoaderClient::dispatchCreatePage):
       
 12409         (WebFrameLoaderClient::dispatchShow):
       
 12410         (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
       
 12411         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
       
 12412         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
       
 12413         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
       
 12414         (WebFrameLoaderClient::dispatchWillSubmitForm):
       
 12415         (WebFrameLoaderClient::dispatchDidLoadMainResource):
       
 12416         (WebFrameLoaderClient::clearLoadingFromPageCache):
       
 12417         (WebFrameLoaderClient::isLoadingFromPageCache):
       
 12418         (WebFrameLoaderClient::revertToProvisionalState):
       
 12419         (WebFrameLoaderClient::setMainDocumentError):
       
 12420         (WebFrameLoaderClient::clearUnarchivingState):
       
 12421         (WebFrameLoaderClient::progressStarted):
       
 12422         (WebFrameLoaderClient::progressCompleted):
       
 12423         (WebFrameLoaderClient::incrementProgress):
       
 12424         (WebFrameLoaderClient::completeProgress):
       
 12425         (WebFrameLoaderClient::setMainFrameDocumentReady):
       
 12426         (WebFrameLoaderClient::startDownload):
       
 12427         (WebFrameLoaderClient::willChangeTitle):
       
 12428         (WebFrameLoaderClient::didChangeTitle):
       
 12429         (WebFrameLoaderClient::committedLoad):
       
 12430         (WebFrameLoaderClient::finishedLoading):
       
 12431         (WebFrameLoaderClient::finalSetupForReplace):
       
 12432         (WebFrameLoaderClient::cancelledError):
       
 12433         (WebFrameLoaderClient::cannotShowURLError):
       
 12434         (WebFrameLoaderClient::interruptForPolicyChangeError):
       
 12435         (WebFrameLoaderClient::cannotShowMIMETypeError):
       
 12436         (WebFrameLoaderClient::fileDoesNotExistError):
       
 12437         (WebFrameLoaderClient::shouldFallBack):
       
 12438         (WebFrameLoaderClient::mainFrameURL):
       
 12439         (WebFrameLoaderClient::setDefersCallbacks):
       
 12440         (WebFrameLoaderClient::willUseArchive):
       
 12441         (WebFrameLoaderClient::isArchiveLoadPending):
       
 12442         (WebFrameLoaderClient::cancelPendingArchiveLoad):
       
 12443         (WebFrameLoaderClient::clearArchivedResources):
       
 12444         (WebFrameLoaderClient::canHandleRequest):
       
 12445         (WebFrameLoaderClient::canShowMIMEType):
       
 12446         (WebFrameLoaderClient::representationExistsForURLScheme):
       
 12447         (WebFrameLoaderClient::generatedMIMETypeForURLScheme):
       
 12448         (WebFrameLoaderClient::elementForEvent):
       
 12449         (WebFrameLoaderClient::createPolicyDecider):
       
 12450         (WebFrameLoaderClient::frameLoadCompleted):
       
 12451         (WebFrameLoaderClient::restoreScrollPositionAndViewState):
       
 12452         (WebFrameLoaderClient::provisionalLoadStarted):
       
 12453         (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
       
 12454         (WebFrameLoaderClient::addHistoryItemForFragmentScroll):
       
 12455         (WebFrameLoaderClient::didFinishLoad):
       
 12456         (WebFrameLoaderClient::prepareForDataSourceReplacement):
       
 12457         (WebFrameLoaderClient::createDocumentLoader):
       
 12458         (WebFrameLoaderClient::setTitle):
       
 12459         * WebKit.xcodeproj/project.pbxproj:
       
 12460         * WebView/WebDataSource.mm:
       
 12461         (-[WebDataSource webFrame]):
       
 12462         * WebView/WebFrame.mm:
       
 12463         (frame):
       
 12464         (-[WebFrame _loadItem:withLoadType:]):
       
 12465         (-[WebFrame _reloadForPluginChanges]):
       
 12466         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
       
 12467         (-[WebFrame _frameLoader]):
       
 12468         (-[WebFrame provisionalDataSource]):
       
 12469         (-[WebFrame dataSource]):
       
 12470         (-[WebFrame parentFrame]):
       
 12471         (-[WebFrame _provisionalLoadStarted]):
       
 12472         * WebView/WebFrameInternal.h:
       
 12473         * WebView/WebHTMLRepresentation.m:
       
 12474         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
       
 12475         * WebView/WebHTMLView.m:
       
 12476         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
 12477         (-[NSArray validateUserInterfaceItem:]):
       
 12478         (-[NSArray scrollWheel:]):
       
 12479         (-[NSArray acceptsFirstMouse:]):
       
 12480         (-[NSArray shouldDelayWindowOrderingForEvent:]):
       
 12481         (-[NSArray _selectionStartFontAttributesAsRTF]):
       
 12482         (-[NSArray changeBaseWritingDirection:]):
       
 12483         (-[NSArray indent:]):
       
 12484         (-[NSArray outdent:]):
       
 12485         (-[WebHTMLView copy:]):
       
 12486         (-[WebHTMLView cut:]):
       
 12487         (-[WebHTMLView paste:]):
       
 12488         * WebView/WebView.mm:
       
 12489         (-[WebView _dashboardRegions]):
       
 12490         (-[WebView setProhibitsMainFrameScrolling:]):
       
 12491         (-[WebView _setInViewSourceMode:]):
       
 12492         (-[WebView _inViewSourceMode]):
       
 12493         (-[WebView setEditable:]):
       
 12494 
       
 12495 2006-10-24  John Sullivan  <sullivan@apple.com>
       
 12496 
       
 12497         Reviewed by Kevin Decker
       
 12498         
       
 12499         - fixed <rdar://problem/4801331> "Spelling..." menu item should be "Show/Hide Spelling" post-Tiger, to match AppKit
       
 12500 
       
 12501         * WebView/WebHTMLView.m:
       
 12502         (-[NSArray validateUserInterfaceItem:]):
       
 12503         post-Tiger, update the menu item text to "Show Spelling"/"Hide Spelling" based on whether
       
 12504         the spelling panel is already showing. Also, removed else's after returns, and removed
       
 12505         braces around one-line if clauses.
       
 12506         (-[NSArray showGuessPanel:]):
       
 12507         post-Tiger, make this item hide the spelling panel if it's already showing
       
 12508 
       
 12509         * English.lproj/Localizable.strings:
       
 12510         updated for this change
       
 12511         
       
 12512 2006-10-24  Timothy Hatcher  <timothy@apple.com>
       
 12513 
       
 12514         Reviewed by Anders.
       
 12515 
       
 12516         <rdar://problem/4588878> 'WebHTMLView' may not respond to '-_webView'
       
 12517 
       
 12518         * Misc/WebNSViewExtras.h:
       
 12519         * Misc/WebNSViewExtras.m:
       
 12520         (-[NSView _webView]):
       
 12521 
       
 12522 2006-10-24  Brady Eidson  <beidson@apple.com>
       
 12523 
       
 12524         Reviewed by Anders
       
 12525 
       
 12526         http://bugs.webkit.org/show_bug.cgi?id=11406 - Crash in [WebFrame dataSource]
       
 12527         In the transition to ObjC++ we lost alot of our free nil checking that we must now do manually
       
 12528         to prevent null dereferencing.
       
 12529 
       
 12530         * WebView/WebFrame.mm:
       
 12531         (-[WebFrame provisionalDataSource]):
       
 12532         (-[WebFrame dataSource]):
       
 12533 
       
 12534 2006-10-24  John Sullivan  <sullivan@apple.com>
       
 12535 
       
 12536         Reviewed by Darin
       
 12537         
       
 12538         Initial plumbing for grammar checking. No actual grammar are checked at this time.
       
 12539 
       
 12540         * English.lproj/WebViewEditingContextMenu.nib/classes.nib:
       
 12541         * English.lproj/WebViewEditingContextMenu.nib/info.nib:
       
 12542         * English.lproj/WebViewEditingContextMenu.nib/objects.nib:
       
 12543         Added grammar-checking item, reworded to match changes in framework. This will be used
       
 12544         post-Tiger.
       
 12545 
       
 12546         * English.lproj/WebViewEditingContextMenuOld.nib/classes.nib: Added.
       
 12547         * English.lproj/WebViewEditingContextMenuOld.nib/info.nib: Added.
       
 12548         * English.lproj/WebViewEditingContextMenuOld.nib/objects.nib: Added.
       
 12549         Copy of WebViewEditingContextMenu.nib, unchanged. This will be used on Tiger.
       
 12550 
       
 12551         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 12552         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 12553         Choose the right context menu based on BUILDING_ON_TIGER.
       
 12554         
       
 12555         * WebView/WebPreferenceKeysPrivate.h:
       
 12556         declare grammar-related NSUserDefault value
       
 12557 
       
 12558         * WebView/WebViewPrivate.h:
       
 12559         declare grammar-related methods
       
 12560 
       
 12561         * WebView/WebView.mm:
       
 12562         declare static BOOL grammarCheckingEnabled
       
 12563         (-[WebViewPrivate init]):
       
 12564         initialize grammarCheckingEnabled to NSUserDefaults value
       
 12565         (-[WebView validateUserInterfaceItem:]):
       
 12566         validate toggleGrammarChecking: menu item
       
 12567         (-[WebView isGrammarCheckingEnabled]):
       
 12568         return value of grammarCheckingEnabled
       
 12569         (-[WebView setGrammarCheckingEnabled:]):
       
 12570         set value of grammarCheckingEnabled, call frame to remove existing bad grammar markers
       
 12571         (-[WebView toggleGrammarChecking:]):
       
 12572         flip the value
       
 12573         
       
 12574         * WebView/WebFrameInternal.h:
       
 12575         * WebView/WebFrame.mm:
       
 12576         (-[WebFrame _unmarkAllBadGrammar]):
       
 12577         new placeholder method, does nothing yet
       
 12578         
       
 12579         * WebView/WebHTMLViewInternal.h:
       
 12580         declare grammar-related methods
       
 12581 
       
 12582         * WebView/WebHTMLView.m:
       
 12583         (-[NSArray validateUserInterfaceItem:]):
       
 12584         validate toggleGrammarChecking: menu item
       
 12585         (-[WebHTMLView isGrammarCheckingEnabled]):
       
 12586         new method, calls through to WebView
       
 12587         (-[WebHTMLView setGrammarCheckingEnabled:]):
       
 12588         ditto
       
 12589         (-[WebHTMLView toggleGrammarChecking:]):
       
 12590         ditto
       
 12591                 
       
 12592         * English.lproj/StringsNotToBeLocalized.txt:
       
 12593         Updated for these changes
       
 12594         
       
 12595         * WebKit.xcodeproj/project.pbxproj:
       
 12596         updated for new files        
       
 12597 
       
 12598 2006-10-23  Darin Adler  <darin@apple.com>
       
 12599 
       
 12600         Reviewed by Geoff.
       
 12601 
       
 12602         - converted WebDocumentLoader to C++
       
 12603 
       
 12604         * Plugins/WebPluginController.mm:
       
 12605         (-[WebPluginController pluginView:receivedResponse:]):
       
 12606         * WebKit.xcodeproj/project.pbxproj:
       
 12607         * WebView/WebDataSource.mm:
       
 12608         (-[WebDataSourcePrivate dealloc]):
       
 12609         (-[WebDataSource _mainDocumentError]):
       
 12610         (-[WebDataSource _URL]):
       
 12611         (-[WebDataSource _loadFromPageCache:]):
       
 12612         (-[WebDataSource _bridge]):
       
 12613         (-[WebDataSource _URLForHistory]):
       
 12614         (-[WebDataSource _documentLoader]):
       
 12615         (-[WebDataSource _initWithDocumentLoader:]):
       
 12616         (-[WebDataSource initWithRequest:]):
       
 12617         (-[WebDataSource data]):
       
 12618         (-[WebDataSource webFrame]):
       
 12619         (-[WebDataSource initialRequest]):
       
 12620         (-[WebDataSource request]):
       
 12621         (-[WebDataSource response]):
       
 12622         (-[WebDataSource textEncodingName]):
       
 12623         (-[WebDataSource isLoading]):
       
 12624         (-[WebDataSource unreachableURL]):
       
 12625         (-[WebDataSource webArchive]):
       
 12626         * WebView/WebDataSourceInternal.h:
       
 12627         * WebView/WebDocumentLoaderMac.h:
       
 12628         * WebView/WebDocumentLoaderMac.mm:
       
 12629         (WebDocumentLoaderMac::WebDocumentLoaderMac):
       
 12630         (WebDocumentLoaderMac::setDataSource):
       
 12631         (WebDocumentLoaderMac::dataSource):
       
 12632         (WebDocumentLoaderMac::attachToFrame):
       
 12633         (WebDocumentLoaderMac::detachFromFrame):
       
 12634         * WebView/WebFrame.mm:
       
 12635         (-[WebFrame _createItem:]):
       
 12636         (-[WebFrame _loadItem:withLoadType:]):
       
 12637         (-[WebFrame _addChild:]):
       
 12638         (dataSource):
       
 12639         (-[WebFrame _dataSourceForDocumentLoader:]):
       
 12640         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
       
 12641         (-[WebFrame loadArchive:]):
       
 12642         (-[WebFrame _updateHistoryForReload]):
       
 12643         (-[WebFrame _updateHistoryForStandardLoad]):
       
 12644         (-[WebFrame _updateHistoryForInternalLoad]):
       
 12645         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
       
 12646         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
       
 12647         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
       
 12648         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
       
 12649         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
       
 12650         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
       
 12651         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
       
 12652         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
       
 12653         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
       
 12654         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
       
 12655         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
       
 12656         (-[WebFrame _makeRepresentationForDocumentLoader:]):
       
 12657         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
       
 12658         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
       
 12659         (-[WebFrame _clearUnarchivingStateForLoader:]):
       
 12660         (-[WebFrame _willChangeTitleForDocument:]):
       
 12661         (-[WebFrame _didChangeTitleForDocument:]):
       
 12662         (-[WebFrame _finishedLoadingDocument:]):
       
 12663         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
       
 12664         (-[WebFrame _documentLoader:setMainDocumentError:]):
       
 12665         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
       
 12666         (-[WebFrame _createDocumentLoaderWithRequest:]):
       
 12667         (-[WebFrame _provisionalLoadStarted]):
       
 12668         * WebView/WebFrameInternal.h:
       
 12669         * WebView/WebHTMLRepresentation.m:
       
 12670         (-[WebHTMLRepresentation title]):
       
 12671         * WebView/WebView.mm:
       
 12672         (-[WebView _mainFrameOverrideEncoding]):
       
 12673 
       
 12674 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
       
 12675 
       
 12676         RS by Maciej.
       
 12677         
       
 12678         Gave ObjC++ files .mm extension instead of .m.
       
 12679 
       
 12680         * WebCoreSupport/WebPageBridge.m: Removed.
       
 12681         * WebKit.xcodeproj/project.pbxproj:
       
 12682         * WebView/WebDocumentLoaderMac.m: Removed.
       
 12683 
       
 12684 2006-10-23  Darin Adler  <darin@apple.com>
       
 12685 
       
 12686         Reviewed by Maciej.
       
 12687 
       
 12688         - converted WebFrameLoader to C++
       
 12689 
       
 12690         * History/WebHistoryItem.m:
       
 12691         (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
       
 12692         * Plugins/WebBaseNetscapePluginView.mm:
       
 12693         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
       
 12694         * Plugins/WebNetscapePluginStream.mm:
       
 12695         (-[WebNetscapePluginStream start]):
       
 12696         (-[WebNetscapePluginStream stop]):
       
 12697         * Plugins/WebPluginController.mm:
       
 12698         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
       
 12699         (-[WebPluginController pluginView:receivedResponse:]):
       
 12700         * WebCoreSupport/WebFrameBridge.h:
       
 12701         * WebKit.xcodeproj/project.pbxproj:
       
 12702         * WebView/WebDataSource.mm:
       
 12703         (-[WebDataSource _loadFromPageCache:]):
       
 12704         (-[WebDataSource _webView]):
       
 12705         (-[WebDataSource webFrame]):
       
 12706         * WebView/WebDocumentLoaderMac.h:
       
 12707         * WebView/WebDocumentLoaderMac.m:
       
 12708         (-[WebDocumentLoaderMac dealloc]):
       
 12709         (-[WebDocumentLoaderMac attachToFrame]):
       
 12710         (-[WebDocumentLoaderMac detachFromFrame]):
       
 12711         * WebView/WebFrame.mm:
       
 12712         (+[WebFrame _timeOfLastCompletedLoad]):
       
 12713         (-[WebFrame _loadItem:withLoadType:]):
       
 12714         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 12715         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 12716         (-[WebFrame _itemForRestoringDocState]):
       
 12717         (-[WebFrame _frameLoader]):
       
 12718         (-[WebFrame _firstLayoutDone]):
       
 12719         (-[WebFrame _loadType]):
       
 12720         (-[WebFrame provisionalDataSource]):
       
 12721         (-[WebFrame dataSource]):
       
 12722         (-[WebFrame loadRequest:]):
       
 12723         (-[WebFrame loadArchive:]):
       
 12724         (-[WebFrame stopLoading]):
       
 12725         (-[WebFrame reload]):
       
 12726         (-[WebFrame _updateHistoryForCommit]):
       
 12727         (-[WebFrame _updateHistoryForReload]):
       
 12728         (-[WebFrame _updateHistoryForInternalLoad]):
       
 12729         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
       
 12730         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
       
 12731         (-[WebFrame _deliverArchivedResources]):
       
 12732         (-[WebFrame _prepareForDataSourceReplacement]):
       
 12733         (-[WebFrame _provisionalLoadStarted]):
       
 12734         * WebView/WebFrameInternal.h:
       
 12735         * WebView/WebHTMLView.m:
       
 12736         (-[WebHTMLView _clearLastHitViewIfSelf]):
       
 12737         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
 12738         (-[NSArray removeMouseMovedObserverUnconditionally]):
       
 12739         (-[NSArray removeMouseMovedObserver]):
       
 12740         (-[NSArray viewWillMoveToWindow:]):
       
 12741         (-[NSArray viewDidMoveToWindow]):
       
 12742         (-[WebHTMLView _canMakeTextSmaller]):
       
 12743         (-[WebHTMLView _canMakeTextLarger]):
       
 12744         (-[WebHTMLView _canMakeTextStandardSize]):
       
 12745         * WebView/WebPDFView.mm:
       
 12746         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
       
 12747         * WebView/WebView.mm:
       
 12748         (-[WebView _close]):
       
 12749         (-[WebView setDefersCallbacks:]):
       
 12750         (-[WebView setCustomTextEncodingName:]):
       
 12751 
       
 12752 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
       
 12753 
       
 12754         Reviewed by Bradee.
       
 12755 
       
 12756         Moved some page-level operations from WebFrameBridge to WebPageBridge.
       
 12757 
       
 12758         * WebCoreSupport/WebFrameBridge.m:
       
 12759         * WebCoreSupport/WebPageBridge.m:
       
 12760         (-[WebPageBridge createModalDialogWithURL:referrer:]):
       
 12761         (-[WebPageBridge canRunModal]):
       
 12762         (-[WebPageBridge canRunModalNow]):
       
 12763         (-[WebPageBridge runModal]):
       
 12764         * WebKit.xcodeproj/project.pbxproj: Made WebPageBridge.m ObjC++ to support
       
 12765         WebCore #includes.
       
 12766 
       
 12767 2006-10-23  John Sullivan  <sullivan@apple.com>
       
 12768 
       
 12769         * WebKitPrefix.h:
       
 12770         Removed redundant definition of BUILDING_ON_TIGER that I just added. It turns out this had
       
 12771         already been added between the last time I updated in this tree and when I needed it locally.
       
 12772 
       
 12773 2006-10-23  John Sullivan  <sullivan@apple.com>
       
 12774 
       
 12775         Reviewed by Anders
       
 12776 
       
 12777         * WebKit.xcodeproj/project.pbxproj:
       
 12778         Move WebKitPrefix.h from Misc group to top level, to match WebCore
       
 12779         
       
 12780         * WebKitPrefix.h:
       
 12781         defined BUILDING_ON_TIGER a la WebCore, in preparation for future use of post-Tiger API
       
 12782 
       
 12783 2006-10-23  Timothy Hatcher  <timothy@apple.com>
       
 12784 
       
 12785         Reviewed by Darin.
       
 12786 
       
 12787         Rename the now ObjC++ files to be .mm and remove the explicit file types.
       
 12788 
       
 12789         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 12790         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 12791         * English.lproj/StringsNotToBeLocalized.txt:
       
 12792         * Plugins/WebBaseNetscapePluginView.m: Removed.
       
 12793         * Plugins/WebNetscapePluginStream.m: Removed.
       
 12794         * Plugins/WebPluginController.m: Removed.
       
 12795         * WebCoreSupport/WebFrameBridge.m: Removed.
       
 12796         * WebKit.xcodeproj/project.pbxproj:
       
 12797         * WebView/WebDataSource.m: Removed.
       
 12798         * WebView/WebFrame.m: Removed.
       
 12799         * WebView/WebFrameView.m: Removed.
       
 12800         * WebView/WebPDFView.m: Removed.
       
 12801         * WebView/WebPolicyDelegate.m: Removed.
       
 12802         * WebView/WebView.m: Removed.
       
 12803 
       
 12804 2006-10-23  Timothy Hatcher  <timothy@apple.com>
       
 12805 
       
 12806         Reviewed by Darin.
       
 12807 
       
 12808         Move the undef try/catch to WebKitPrefix.h and include algorithm so we get
       
 12809         exception_defines.h and so the undef of try/catch works.
       
 12810 
       
 12811         Break off the BGRA to ARGB code into WebGraphicsExtras.c, this lets
       
 12812         WebBaseNetscapePluginView.m safely compile as ObjC++ and not cause the Accelerate
       
 12813         framework to complain about C++ exceptions being disabled.
       
 12814 
       
 12815         * Misc/WebGraphicsExtras.c: Added.
       
 12816         (WebConvertBGRAToARGB):
       
 12817         * Misc/WebGraphicsExtras.h: Added.
       
 12818         * Plugins/WebBaseNetscapePluginView.m:
       
 12819         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
       
 12820         * WebKit.xcodeproj/project.pbxproj:
       
 12821         * WebKitPrefix.h:
       
 12822         * WebView/WebView.m:
       
 12823 
       
 12824 2006-10-22  Sam Weinig  <sam.weinig@gmail.com>
       
 12825 
       
 12826         Reviewed by Tim H.
       
 12827 
       
 12828         - Add DOMHTMLFormElementPrivate.h to the project.
       
 12829 
       
 12830         * MigrateHeaders.make:
       
 12831 
       
 12832 2006-10-21  Darin Adler  <darin@apple.com>
       
 12833 
       
 12834         Reviewed by Adele.
       
 12835 
       
 12836         - convert WebLoader and its 3 subclasses to C++
       
 12837 
       
 12838         * Plugins/WebNetscapePluginStream.h:
       
 12839         * Plugins/WebNetscapePluginStream.m:
       
 12840         (-[WebNetscapePluginStream dealloc]):
       
 12841         (-[WebNetscapePluginStream finalize]):
       
 12842         (-[WebNetscapePluginStream start]):
       
 12843         (-[WebNetscapePluginStream cancelLoadWithError:]):
       
 12844         (-[WebNetscapePluginStream stop]):
       
 12845         * WebCoreSupport/WebFrameBridge.m:
       
 12846         (-[WebFrameBridge canRunModalNow]):
       
 12847         * WebView/WebFrame.m:
       
 12848         (-[WebFramePrivate dealloc]):
       
 12849         (-[WebFramePrivate finalize]):
       
 12850         (frame): Changed from uppercase to lowercase so that it won't conflict
       
 12851         with the WebCore class named Frame.
       
 12852         (-[WebFrame _firstChildFrame]):
       
 12853         (-[WebFrame _lastChildFrame]):
       
 12854         (-[WebFrame _previousSiblingFrame]):
       
 12855         (-[WebFrame _nextSiblingFrame]):
       
 12856         (-[WebFrame _traverseNextFrameStayWithin:]):
       
 12857         (-[WebFrame _immediateChildFrameNamed:]):
       
 12858         (-[WebFrame _nextFrameWithWrap:]):
       
 12859         (-[WebFrame _previousFrameWithWrap:]):
       
 12860         (-[WebFrame findFrameNamed:]):
       
 12861         (-[WebFrame parentFrame]):
       
 12862         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
       
 12863         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
       
 12864         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
       
 12865         (-[WebFrame _archiveLoadPendingForLoader:]):
       
 12866         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
       
 12867         (-[WebFrame _clearArchivedResources]):
       
 12868         (-[WebFrame _deliverArchivedResources]):
       
 12869 
       
 12870 2006-10-21  Darin Adler  <darin@apple.com>
       
 12871 
       
 12872         Reviewed by Anders.
       
 12873 
       
 12874         - fix http://bugs.webkit.org/show_bug.cgi?id=10328
       
 12875           REGRESSION: frame leak reported by buildbot
       
 12876 
       
 12877         * WebCoreSupport/WebEditorClient.mm:
       
 12878         (WebEditorClient::WebEditorClient): Don't retain the web view.
       
 12879         (WebEditorClient::~WebEditorClient): Don't release the web view.
       
 12880         (WebEditorClient::setWebView): Ditto.
       
 12881 
       
 12882         * WebCoreSupport/WebFrameBridge.m:
       
 12883         (-[WebFrameBridge finishInitializingWithFrameName:view:]): Added. Common code for use by both
       
 12884         init methods below.
       
 12885         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Changed to use new method.
       
 12886         Also added comment pointing out design flaw -- we attach the client to the web view here,
       
 12887         but we need to be sure to detach in case the web view is deallocated first.
       
 12888         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
       
 12889 
       
 12890 2006-10-21  Darin Adler  <darin@apple.com>
       
 12891 
       
 12892         Reviewed by Adam.
       
 12893 
       
 12894         - http://bugs.webkit.org/show_bug.cgi?id=11376
       
 12895           build scripts should invoke make with "-j" option for multiple processors
       
 12896 
       
 12897         * WebKit.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
       
 12898 
       
 12899 2006-10-21  Timothy Hatcher  <timothy@apple.com>
       
 12900 
       
 12901         Reviewed by Geoff.
       
 12902 
       
 12903         <rdar://problem/4478625> HTML Editing: Basic table editing and culling
       
 12904 
       
 12905         Initial implementaltion of table deletion user interface:
       
 12906         * Adds a new editing delegate method, webView:shouldShowDeleteInterfaceForElement:.
       
 12907         * The new delegate method is called from the new shouldShowDeleteInterface EditorClient function.
       
 12908 
       
 12909         * DefaultDelegates/WebDefaultEditingDelegate.m:
       
 12910         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]):
       
 12911         * WebCoreSupport/WebEditorClient.h:
       
 12912         * WebCoreSupport/WebEditorClient.mm:
       
 12913         (WebEditorClient::WebEditorClient):
       
 12914         (WebEditorClient::shouldDeleteRange):
       
 12915         (WebEditorClient::shouldShowDeleteInterface):
       
 12916         * WebKit.xcodeproj/project.pbxproj:
       
 12917         * WebView/WebEditingDelegatePrivate.h: Added.
       
 12918 
       
 12919 2006-10-21  Alice Liu  <alice.liu@apple.com>
       
 12920 
       
 12921         Reviewed by Maciej.
       
 12922 
       
 12923         fix leaks.
       
 12924 
       
 12925         * WebCoreSupport/WebEditorClient.mm:
       
 12926         (WebEditorClient::setWebView):
       
 12927         only change webview if its different
       
 12928 
       
 12929         * WebCoreSupport/WebFrameBridge.m:
       
 12930         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 12931         actually use the client allocated in the line above instead of
       
 12932         allocation again, duh. 
       
 12933 
       
 12934 2006-10-21  Alice Liu  <alice.liu@apple.com>
       
 12935 
       
 12936         Build fix.
       
 12937 
       
 12938         * WebCoreSupport/WebEditorClient.h:
       
 12939         * WebCoreSupport/WebEditorClient.mm:
       
 12940         (WebEditorClient::setWebView):
       
 12941 
       
 12942 2006-10-20  Alice Liu  <alice.liu@apple.com>
       
 12943 
       
 12944         Reviewed by Tim Hatcher.
       
 12945 
       
 12946         Fixed a problem where the webview passed to the EditorClient wasn't valid yet.  
       
 12947 
       
 12948         * WebCoreSupport/WebEditorClient.h:
       
 12949         (WebEditorClient::setWebView):
       
 12950         added webview setter
       
 12951 
       
 12952         * WebCoreSupport/WebEditorClient.mm:
       
 12953         (WebEditorClient::WebEditorClient):
       
 12954         add default constructor
       
 12955 
       
 12956         * WebCoreSupport/WebFrameBridge.m:
       
 12957         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 12958         use [page webView] since _webview isn't valid yet
       
 12959         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 12960         use webview setter on editorclient
       
 12961 
       
 12962 2006-10-20  David Hyatt  <hyatt@apple.com>
       
 12963 
       
 12964         Tweak cache sizes so that they are back to the way they were,
       
 12965         except for < 512, which will stay doubled.
       
 12966 
       
 12967         Reviewed by Tim H.
       
 12968 
       
 12969         * WebCoreSupport/WebFrameBridge.m:
       
 12970         (-[WebFrameBridge getObjectCacheSize]):
       
 12971 
       
 12972 2006-10-20  Alice Liu  <alice.liu@apple.com>
       
 12973 
       
 12974         Reviewed by Maciej.
       
 12975 
       
 12976         Adding knowledge of EditorClient to WebKit
       
 12977 
       
 12978         * WebCoreSupport/WebEditorClient.h: Added.
       
 12979 
       
 12980         * WebCoreSupport/WebEditorClient.mm: Added.
       
 12981         (WebEditorClient::WebEditorClient):
       
 12982         (WebEditorClient::~WebEditorClient):
       
 12983         (WebEditorClient::shouldDeleteRange):
       
 12984         Implementation of mac EditorClient
       
 12985 
       
 12986         * WebCoreSupport/WebFrameBridge.m:
       
 12987         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 12988         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 12989         create an editor client to pass down the chain of constructors
       
 12990 
       
 12991         * WebKit.xcodeproj/project.pbxproj:
       
 12992         Added related EditorClient files
       
 12993 
       
 12994         * WebKitPrefix.h:
       
 12995         Added tiger build flag in order to make certain private headers from webcore compile successfully
       
 12996 
       
 12997 2006-10-20  Darin Adler  <darin@apple.com>
       
 12998 
       
 12999         - rolled out my loader change; caused world leak and possibly a plug-in crash
       
 13000 
       
 13001 2006-10-20  Darin Adler  <darin@apple.com>
       
 13002 
       
 13003         Reviewed by Adele.
       
 13004 
       
 13005         - convert WebLoader and its 3 subclasses to C++
       
 13006 
       
 13007         * Plugins/WebNetscapePluginStream.h:
       
 13008         * Plugins/WebNetscapePluginStream.m:
       
 13009         (-[WebNetscapePluginStream dealloc]):
       
 13010         (-[WebNetscapePluginStream finalize]):
       
 13011         (-[WebNetscapePluginStream start]):
       
 13012         (-[WebNetscapePluginStream cancelLoadWithError:]):
       
 13013         (-[WebNetscapePluginStream stop]):
       
 13014         * WebCoreSupport/WebFrameBridge.m:
       
 13015         (-[WebFrameBridge canRunModalNow]):
       
 13016         * WebView/WebFrame.m:
       
 13017         (-[WebFramePrivate dealloc]):
       
 13018         (-[WebFramePrivate finalize]):
       
 13019         (frame): Changed from uppercase to lowercase so that it won't conflict
       
 13020         with the WebCore class named Frame.
       
 13021         (-[WebFrame _firstChildFrame]):
       
 13022         (-[WebFrame _lastChildFrame]):
       
 13023         (-[WebFrame _previousSiblingFrame]):
       
 13024         (-[WebFrame _nextSiblingFrame]):
       
 13025         (-[WebFrame _traverseNextFrameStayWithin:]):
       
 13026         (-[WebFrame _immediateChildFrameNamed:]):
       
 13027         (-[WebFrame _nextFrameWithWrap:]):
       
 13028         (-[WebFrame _previousFrameWithWrap:]):
       
 13029         (-[WebFrame findFrameNamed:]):
       
 13030         (-[WebFrame parentFrame]):
       
 13031         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
       
 13032         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
       
 13033         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
       
 13034         (-[WebFrame _archiveLoadPendingForLoader:]):
       
 13035         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
       
 13036         (-[WebFrame _clearArchivedResources]):
       
 13037         (-[WebFrame _deliverArchivedResources]):
       
 13038 
       
 13039 2006-10-20  John Sullivan  <sullivan@apple.com>
       
 13040 
       
 13041         Reviewed by Darin
       
 13042         
       
 13043         - fixed <rdar://problem/4794935> setAcceptsMouseMovedEvents: is called for every layout, 
       
 13044           taking ~1% on the PLT test
       
 13045 
       
 13046         * WebView/WebHTMLView.m:
       
 13047         (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
       
 13048         Don't call setAcceptsMouseMovedEvents: and WKSetNSWindowShouldPostEventNotifications() here
       
 13049         because this is called too often.
       
 13050         
       
 13051         * WebView/WebView.m:
       
 13052         (-[WebView viewWillMoveToWindow:]):
       
 13053         Do call them here, because this is guaranteed to be called at least once for each window
       
 13054         containing a webview, but isn't called too often. Also restructured this method a little.
       
 13055 
       
 13056 2006-10-19  Timothy Hatcher  <timothy@apple.com>
       
 13057 
       
 13058         Reviewed by Anders.
       
 13059 
       
 13060         Bug 11366: Web Inspector should show user agent style rules
       
 13061         http://bugs.webkit.org/show_bug.cgi?id=11366
       
 13062 
       
 13063         * WebInspector/WebInspector.m:
       
 13064         (-[WebInspector init]):
       
 13065         (-[WebInspector showOptionsMenu]):
       
 13066         (-[WebInspector _toggleShowUserAgentStyles:]):
       
 13067         * WebInspector/WebInspectorInternal.h:
       
 13068         * WebInspector/webInspector/inspector.js:
       
 13069 
       
 13070 2006-10-19  Brady Eidson <beidson@apple.com>
       
 13071 
       
 13072         Build fix - 2gig is on that pesky signed/unsigned limit...
       
 13073 
       
 13074         * WebCoreSupport/WebFrameBridge.m:
       
 13075         (-[WebFrameBridge getObjectCacheSize]):
       
 13076 
       
 13077 2006-10-19  Brady Eidson  <beidson@apple.com>
       
 13078 
       
 13079         Reviewed by Hyatt.
       
 13080 
       
 13081         Death to 16777216.  Long live 33554432.
       
 13082         (Cache size changed needs to be reflected in localization file)
       
 13083 
       
 13084         * English.lproj/StringsNotToBeLocalized.txt:
       
 13085 
       
 13086 2006-10-19  Brady Eidson  <beidson@apple.com>
       
 13087 
       
 13088         Reviewed by Hyatt
       
 13089 
       
 13090         Added an larger in-memory level of cache for machines with 2+gb ram
       
 13091 
       
 13092         * WebCoreSupport/WebFrameBridge.m:
       
 13093         (-[WebFrameBridge getObjectCacheSize]):
       
 13094 
       
 13095 2006-10-19  Brady Eidson  <beidson@apple.com>
       
 13096 
       
 13097         Reviewed by Hyatt
       
 13098 
       
 13099         Double the default memory cache size
       
 13100 
       
 13101         * WebView/WebPreferences.m:
       
 13102         (+[WebPreferences initialize]):
       
 13103 
       
 13104 2006-10-19  John Sullivan  <sullivan@apple.com>
       
 13105 
       
 13106         Reviewed by Kevin D and Geoff
       
 13107 
       
 13108         * WebKit.xcodeproj/project.pbxproj:
       
 13109         version wars
       
 13110         
       
 13111         Cleaned up this file, as follows:
       
 13112         - renamed all file-internal methods to start with underscores
       
 13113         - moved all file-internal methods into a FileInternal category block, and alphabetized them
       
 13114         - grouped all other methods by where/how they were defined (delegate methods, protocol methods, overrides, etc.)
       
 13115         - removed unstylish braces around one-line clauses
       
 13116         
       
 13117         * WebView/WebPDFView.m:
       
 13118         (_applicationInfoForMIMEType):
       
 13119         (_PDFSelectionsAreEqual):
       
 13120         (+[WebPDFView supportedMIMETypes]):
       
 13121         (-[WebPDFView setPDFDocument:]):
       
 13122         (-[WebPDFView dealloc]):
       
 13123         (-[WebPDFView centerSelectionInVisibleArea:]):
       
 13124         (-[WebPDFView scrollPageDown:]):
       
 13125         (-[WebPDFView scrollPageUp:]):
       
 13126         (-[WebPDFView scrollLineDown:]):
       
 13127         (-[WebPDFView scrollLineUp:]):
       
 13128         (-[WebPDFView scrollToBeginningOfDocument:]):
       
 13129         (-[WebPDFView scrollToEndOfDocument:]):
       
 13130         (-[WebPDFView jumpToSelection:]):
       
 13131         (-[WebPDFView acceptsFirstResponder]):
       
 13132         (-[WebPDFView becomeFirstResponder]):
       
 13133         (-[WebPDFView hitTest:]):
       
 13134         (-[WebPDFView initWithFrame:]):
       
 13135         (-[WebPDFView menuForEvent:]):
       
 13136         (-[WebPDFView setNextKeyView:]):
       
 13137         (-[WebPDFView viewDidMoveToWindow]):
       
 13138         (-[WebPDFView viewWillMoveToWindow:]):
       
 13139         (-[WebPDFView validateUserInterfaceItem:]):
       
 13140         (-[WebPDFView copy:]):
       
 13141         (-[WebPDFView takeFindStringFromSelection:]):
       
 13142         (-[WebPDFView canPrintHeadersAndFooters]):
       
 13143         (-[WebPDFView printOperationWithPrintInfo:]):
       
 13144         (-[WebPDFView viewWillMoveToHostWindow:]):
       
 13145         (-[WebPDFView viewDidMoveToHostWindow]):
       
 13146         (-[WebPDFView elementAtPoint:]):
       
 13147         (-[WebPDFView elementAtPoint:allowShadowContent:]):
       
 13148         (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
       
 13149         (-[WebPDFView viewState]):
       
 13150         (-[WebPDFView setViewState:]):
       
 13151         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
       
 13152         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
       
 13153         (+[WebPDFView _PDFPreviewViewClass]):
       
 13154         (+[WebPDFView _PDFViewClass]):
       
 13155         (-[WebPDFView _anyPDFTagsFoundInMenu:]):
       
 13156         (-[WebPDFView _applyPDFDefaults]):
       
 13157         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
       
 13158         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
       
 13159         (-[WebPDFView _openWithFinder:]):
       
 13160         (-[WebPDFView _path]):
       
 13161         (-[WebPDFView _PDFSubview]):
       
 13162         (-[WebPDFView _pointIsInSelection:]):
       
 13163         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
       
 13164         (-[WebPDFView _scaledAttributedString:]):
       
 13165         (-[WebPDFView _trackFirstResponder]):
       
 13166         (-[PDFPrefUpdatingProxy forwardInvocation:]):
       
 13167         (-[PDFPrefUpdatingProxy methodSignatureForSelector:]):
       
 13168 
       
 13169 2006-10-19  John Sullivan  <sullivan@apple.com>
       
 13170 
       
 13171         Reviewed by Kevin Decker
       
 13172         
       
 13173         - fixed <rdar://problem/4792761> Safari should use fancier embedded PDFKit stuff when it's available
       
 13174 
       
 13175         * WebKit.xcodeproj/project.pbxproj:
       
 13176         version wars
       
 13177         
       
 13178         * WebView/WebFrameView.m:
       
 13179         (-[WebFrameView _makeDocumentViewForDataSource:]):
       
 13180         initialize document view with frame view's rect instead of empty rect. This avoids some problems when 
       
 13181         constructing view hierarchies from nibs
       
 13182         
       
 13183         * WebView/WebPreferencesPrivate.h:
       
 13184         declare new _usePDFPreviewView and _setUsePDFPreviewView:, used for debugging
       
 13185         * WebView/WebPreferenceKeysPrivate.h:
       
 13186         declare new preference key string
       
 13187         * WebView/WebPreferences.m:
       
 13188         (+[WebPreferences initialize]):
       
 13189         initialize new preference to true (we will by default use the new view if it's available)
       
 13190         (-[WebPreferences _usePDFPreviewView]):
       
 13191         new accessor for new pref
       
 13192         (-[WebPreferences _setUsePDFPreviewView:]):
       
 13193         ditto
       
 13194 
       
 13195         * WebView/WebPDFView.h:
       
 13196         new previewView ivar
       
 13197         
       
 13198         * WebView/WebPDFView.m:
       
 13199         (+[WebPDFView PDFPreviewViewClass]):
       
 13200         new method, returns class to use for fancier embedded PDFKit stuff, or nil if fancy stuff isn't available
       
 13201         (-[WebPDFView initWithFrame:]):
       
 13202         now tries to use fancier embedded PDFKit stuff if it's available and the pref is set to use it; falls back
       
 13203         to old behavior otherwise
       
 13204         (-[WebPDFView dealloc]):
       
 13205         release new previewView ivar (retained in initWithFrame:)
       
 13206         (-[WebPDFView viewWillMoveToWindow:]):
       
 13207         stop observing PDFKit notification when we're removed from window
       
 13208         (-[WebPDFView viewDidMoveToWindow]):
       
 13209         start observing PDFKit notification when we're added to window
       
 13210         (-[WebPDFView _receivedPDFKitLaunchNotification:]):
       
 13211         respond to this new PDFKit notification by opening the document via NSWorkspace
       
 13212         
       
 13213         * English.lproj/StringsNotToBeLocalized.txt:
       
 13214         updated for lots of recent changes
       
 13215         
       
 13216 2006-10-19  Sam Weinig  <sam.weinig@gmail.com>
       
 13217 
       
 13218         Reviewed by ap.
       
 13219 
       
 13220         Win32 build fix.
       
 13221 
       
 13222         * COM/WebFrame.cpp:
       
 13223         (WebFrame::initWithName):
       
 13224         (WebFrame::createNewWindow):
       
 13225 
       
 13226 2006-10-19  Mitz Pettel  <mitz@webkit.org>
       
 13227 
       
 13228         Reviewed and landed by ap.
       
 13229 
       
 13230         - fixed the inspector's tree popup
       
 13231 
       
 13232         * WebInspector/webInspector/inspector.html:
       
 13233 
       
 13234 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
       
 13235 
       
 13236         Reviewed by Maciej.
       
 13237 
       
 13238         Win32 build fix.
       
 13239 
       
 13240         * COM/WebFrame.cpp:
       
 13241         (WebFrame::createNewWindow):
       
 13242         * COM/WebFrame.h:
       
 13243 
       
 13244 2006-10-18  Anders Carlsson  <acarlsson@apple.com>
       
 13245 
       
 13246         Reviewed by Adam.
       
 13247 
       
 13248         http://bugs.webkit.org/show_bug.cgi?id=11000
       
 13249         REGRESSION (r16101): css2.1/t0801-c412-hz-box-00-b-a is failing because the QuickTime plugin is taking over but not rendering the png
       
 13250         
       
 13251         * WebCoreSupport/WebFrameBridge.m:
       
 13252         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 13253         Return ObjectElementFrame if the MIME type is one of the image ones we support.
       
 13254 
       
 13255 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
       
 13256 
       
 13257         Reviewed by harrison
       
 13258         
       
 13259         <rdar://problem/4765600>
       
 13260         REGRESSION: Mail.app: smart deletion of words does not work
       
 13261         
       
 13262         Regressed when we pushed selecion expansion down into WebCore.  It's OK
       
 13263         to try a smart delete from _deleteWithDirection:, which is called by
       
 13264         deleteFoward: and deleteBackward: if the current selection is a 
       
 13265         range.
       
 13266     
       
 13267         * WebView/WebHTMLView.m:
       
 13268         (-[NSArray _deleteWithDirection:granularity:killRing:isTypingAction:]):
       
 13269 
       
 13270 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
       
 13271 
       
 13272         Reviewed by harrison
       
 13273         
       
 13274         <rdar://problem/3655385>
       
 13275         Editing: -indent: method unimplemented
       
 13276 
       
 13277         * WebView/WebHTMLView.m:
       
 13278         (-[NSArray validateUserInterfaceItem:]): Only allow indent:/outdent: in
       
 13279         richly editable areas.
       
 13280         (-[NSArray indent:]):
       
 13281         (-[NSArray outdent:]):
       
 13282 
       
 13283 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
       
 13284 
       
 13285         Not reviewed, build fix.
       
 13286         
       
 13287         * icu/unicode/putil.h: Added - needed for build if you don't have apple internal headers.
       
 13288 
       
 13289 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
       
 13290 
       
 13291         Not reviewed, build fix.
       
 13292         
       
 13293         * icu/unicode/ustring.h: Added - needed for build if you don't have apple internal headers.
       
 13294 
       
 13295 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
       
 13296 
       
 13297         Reviewed by Anders.
       
 13298         
       
 13299         - add a bunch of casts to get this compiling with older Xcode versions
       
 13300         
       
 13301         (I used static_cast so it will be easier to find and remove these once we have completely moved
       
 13302         on to a new enough compiler version.)
       
 13303 
       
 13304         * Plugins/WebBaseNetscapePluginView.m:
       
 13305         (+[WebBaseNetscapePluginView getCarbonEvent:]):
       
 13306         (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
       
 13307         (-[WebBaseNetscapePluginView fixWindowPort]):
       
 13308         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
 13309         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
       
 13310         (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
       
 13311         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
       
 13312         * WebKit.xcodeproj/project.pbxproj:
       
 13313 
       
 13314 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
       
 13315 
       
 13316         Changed by Darin, reviewed by me.
       
 13317 
       
 13318         * Plugins/WebNetscapePluginStream.m: Fixed case of import so we can compile on
       
 13319         case-sensitive file system.
       
 13320 
       
 13321 2006-10-13  Darin Adler  <darin@apple.com>
       
 13322 
       
 13323         Reviewed by Adele.
       
 13324 
       
 13325         - converted WebFormState from Objective-C to C++
       
 13326 
       
 13327         * ForwardingHeaders: Added an entire copy of WebCore's forwarding headers here.
       
 13328         We should eventually come up with a more-elegant solution.
       
 13329 
       
 13330         * WebKit.xcodeproj/project.pbxproj: Added ForwardingHeaders to the include paths.
       
 13331         Converted many files from Objective-C to Objective-C++. In a later check-in, I'll
       
 13332         rename them to .mm instead of .m. Removed C-only warning options for now. In a
       
 13333         later check-in I will add these back in a way that omits them for C++.
       
 13334 
       
 13335         * Plugins/WebPluginContainerCheck.m: Updated for header changes.
       
 13336 
       
 13337         * WebView/WebFrameInternal.h: Updated for header changes. Removed WebFrameLoaderClient category
       
 13338         so this file can still be used by Objective-C code (not just Objective-C++).
       
 13339 
       
 13340         * WebView/WebFrame.m: Put WebFrameLoaderClient category in here.
       
 13341         (-[WebFrame _loadItem:withLoadType:]): Changed to use 0 instead of nil for FormState and fixed
       
 13342         enum code for C++ compatibility.
       
 13343         (-[WebFrame _initWithWebFrameView:webView:bridge:]): Added call to setFrameLoaderClient: here.
       
 13344         (-[WebFrame _updateHistoryForCommit]): Fixed enum code for C++ compatibility.
       
 13345         (-[WebFrame _updateHistoryForReload]): Ditto.
       
 13346 
       
 13347         * WebCoreSupport/WebFrameBridge.m:
       
 13348         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): Removed call to setFrameLoaderClient:.
       
 13349         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): Ditto.
       
 13350         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]): Fixed enum code for C++ compatibility.
       
 13351         (-[WebFrameBridge runModal]): Changed code to not use "namespace" as a local variable name.
       
 13352 
       
 13353         * WebView/WebPDFView.m: Added extern "C" so this can compile as Objective-C++.
       
 13354 
       
 13355 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
       
 13356 
       
 13357         Reviewed by Oliver.
       
 13358         
       
 13359         - liberate more WebKit code down to WebCore
       
 13360 
       
 13361         * WebCoreSupport/WebFrameBridge.h:
       
 13362         * WebCoreSupport/WebFrameBridge.m:
       
 13363 
       
 13364 2006-10-12  Adele Peterson  <adele@apple.com>
       
 13365 
       
 13366         Reviewed by Maciej.
       
 13367 
       
 13368         WebKit part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
       
 13369 
       
 13370         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
       
 13371 
       
 13372         * DefaultDelegates/WebDefaultUIDelegate.m: (-[NSApplication webView:willPopupMenu:]):
       
 13373         * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge willPopupMenu:]):
       
 13374         * WebView/WebUIDelegatePrivate.h:
       
 13375 
       
 13376 2006-10-12  MorganL  <morganl.webkit@yahoo.com>
       
 13377 
       
 13378         Reviewed/landed by Adam.
       
 13379 
       
 13380         Fixes http://bugs.webkit.org/show_bug.cgi?id=11264
       
 13381         Windows build busted
       
 13382 
       
 13383         * COM/WebFrame.cpp:
       
 13384         (WebFrame::receivedResponse):
       
 13385 
       
 13386 2006-10-11  Darin Adler  <darin@apple.com>
       
 13387 
       
 13388         Reviewed by Adele.
       
 13389 
       
 13390         - preparations for making more code C++
       
 13391 
       
 13392         * WebKitPrefix.h: Fixed ifdef so that C++ files get all the precompiled stuff
       
 13393         that non-C++ files get.
       
 13394 
       
 13395         * Misc/WebKitLogging.h:
       
 13396         * Misc/WebKitSystemBits.h:
       
 13397         * Misc/WebLocalizableStrings.h:
       
 13398         * WebCoreSupport/WebSystemInterface.h:
       
 13399         Added extern "C".
       
 13400 
       
 13401         * Misc/WebNSViewExtras.h:
       
 13402         * WebView/WebDataSource.m: (addTypesFromClass):
       
 13403         * WebView/WebFrameView.m: (addTypesFromClass):
       
 13404         Eliminated use of the identifier "class".
       
 13405 
       
 13406         * WebView/WebView.m: (-[WebView _goToItem:withLoadType:]): Added a type cast.
       
 13407 
       
 13408         * Plugins/WebBaseNetscapePluginView.m: Added lots of type casts.
       
 13409 
       
 13410 2006-10-10  Brady Eidson  <beidson@apple.com>
       
 13411 
       
 13412         Reviewed by Maciej.
       
 13413 
       
 13414         Moved WebFrameLoader into WebCoreFrameBridge
       
 13415 
       
 13416         * WebCoreSupport/WebFrameBridge.h:
       
 13417         * WebCoreSupport/WebFrameBridge.m:
       
 13418         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 13419         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 13420         (-[WebFrameBridge dealloc]):
       
 13421         (-[WebFrameBridge setTitle:]):
       
 13422         (-[WebFrameBridge receivedData:textEncodingName:]):
       
 13423         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
       
 13424         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
       
 13425         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
       
 13426         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 13427         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 13428         (-[WebFrameBridge reportClientRedirectCancelled:]):
       
 13429         (-[WebFrameBridge close]):
       
 13430         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 13431         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13432         (-[WebFrameBridge tokenizerProcessedData]):
       
 13433         (-[WebFrameBridge frameDetached]):
       
 13434         (-[WebFrameBridge didFirstLayout]):
       
 13435         (-[WebFrameBridge notifyIconChanged:]):
       
 13436         (-[WebFrameBridge originalRequestURL]):
       
 13437         (-[WebFrameBridge isLoadTypeReload]):
       
 13438 
       
 13439 2006-10-10  Adele Peterson  <adele@apple.com>
       
 13440 
       
 13441         Reviewed by Beth.
       
 13442 
       
 13443         Removed handleAutoscrollForMouseDragged.  Except for autoscroll caused by drag and drop, all other
       
 13444         autoscrolling should be done in WebCore instead of in AppKit.
       
 13445 
       
 13446         * WebCoreSupport/WebFrameBridge.m:
       
 13447         * WebView/WebHTMLView.m:
       
 13448         * WebView/WebHTMLViewPrivate.h:
       
 13449 
       
 13450 2006-10-10  Darin Adler  <darin@apple.com>
       
 13451 
       
 13452         - corrected an archive regression caused by loader refactoring
       
 13453           (pointed out by Graham Dennis)
       
 13454 
       
 13455         * WebView/WebFrame.m: (-[WebFrame _deliverArchivedResourcesAfterDelay]):
       
 13456         Fix selector name.
       
 13457 
       
 13458 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
       
 13459 
       
 13460         Rubber stamped by Eric.
       
 13461         
       
 13462         - moved a whole bunch of stuff over to WebCore - updated includes appropriately
       
 13463 
       
 13464         * Loader/LoaderNSURLExtras.h: Removed.
       
 13465         * Loader/LoaderNSURLExtras.m: Removed.
       
 13466         * Loader/WebDataProtocol.h: Removed.
       
 13467         * Loader/WebDataProtocol.m: Removed.
       
 13468         * Loader/WebDocumentLoader.h: Removed.
       
 13469         * Loader/WebDocumentLoader.m: Removed.
       
 13470         * Loader/WebFormDataStream.h: Removed.
       
 13471         * Loader/WebFormDataStream.m: Removed.
       
 13472         * Loader/WebFormState.h: Removed.
       
 13473         * Loader/WebFormState.m: Removed.
       
 13474         * Loader/WebFrameLoader.h: Removed.
       
 13475         * Loader/WebFrameLoader.m: Removed.
       
 13476         * Loader/WebFrameLoaderClient.h: Removed.
       
 13477         * Loader/WebLoader.h: Removed.
       
 13478         * Loader/WebLoader.m: Removed.
       
 13479         * Loader/WebMainResourceLoader.h: Removed.
       
 13480         * Loader/WebMainResourceLoader.m: Removed.
       
 13481         * Loader/WebNetscapePlugInStreamLoader.h: Removed.
       
 13482         * Loader/WebNetscapePlugInStreamLoader.m: Removed.
       
 13483         * Loader/WebPlugInStreamLoaderDelegate.h: Removed.
       
 13484         * Loader/WebPolicyDecider.h: Removed.
       
 13485         * Loader/WebPolicyDecider.m: Removed.
       
 13486         * Loader/WebSubresourceLoader.h: Removed.
       
 13487         * Loader/WebSubresourceLoader.m: Removed.
       
 13488         * Misc/WebNSURLExtras.m:
       
 13489         * Plugins/WebBaseNetscapePluginStream.h:
       
 13490         * Plugins/WebBaseNetscapePluginView.m:
       
 13491         * Plugins/WebNetscapePluginStream.m:
       
 13492         * Plugins/WebPluginContainerCheck.m:
       
 13493         * Plugins/WebPluginController.m:
       
 13494         * WebCoreSupport/WebFrameBridge.m:
       
 13495         * WebKit.xcodeproj/project.pbxproj:
       
 13496         * WebView/WebDataSource.m:
       
 13497         * WebView/WebDocumentLoaderMac.h:
       
 13498         * WebView/WebFrame.m:
       
 13499         * WebView/WebFrameInternal.h:
       
 13500         * WebView/WebHTMLView.m:
       
 13501         * WebView/WebPolicyDeciderMac.h:
       
 13502         * WebView/WebPolicyDelegate.m:
       
 13503         * WebView/WebView.m:
       
 13504 
       
 13505 2006-10-10  Mark Rowe  <bdash@webkit.org>
       
 13506 
       
 13507         Reviewed by Maciej.
       
 13508 
       
 13509         Fix crash on launch in nightly builds after r16965.
       
 13510 
       
 13511         Safari will sometimes call through to -[NSURL _webkit_canonicalize] before creating a WebView.  If this happens,
       
 13512         InitWebCoreSystemInterface has not yet been called so the call to wkNSURLProtocolClassForReqest is via a garbage
       
 13513         pointer.
       
 13514 
       
 13515         * Misc/WebNSURLExtras.m:
       
 13516         (-[NSURL _webkit_canonicalize]): Ensure InitWebCoreSystemInterface is called prior to canonicalURL.
       
 13517 
       
 13518 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
       
 13519 
       
 13520         Reviewed by Oliver.
       
 13521         
       
 13522         - split out some NSURL extras to be moved to WebCore
       
 13523 
       
 13524         * Loader/LoaderNSURLExtras.h: Added.
       
 13525         * Loader/LoaderNSURLExtras.m: Added.
       
 13526         (urlByRemovingComponent):
       
 13527         (urlByRemovingFragment):
       
 13528         (urlOriginalDataAsString):
       
 13529         (urlOriginalData):
       
 13530         (urlWithData):
       
 13531         (WebCFAutorelease):
       
 13532         (urlWithDataRelativeToURL):
       
 13533         (urlByRemovingResourceSpecifier):
       
 13534         (urlIsFileURL):
       
 13535         (stringIsFileURL):
       
 13536         (urlIsEmpty):
       
 13537         (canonicalURL):
       
 13538         * Loader/WebFrameLoader.m:
       
 13539         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
       
 13540         (setHTTPReferrer):
       
 13541         (-[WebFrameLoader commitProvisionalLoad:]):
       
 13542         (-[WebFrameLoader _notifyIconChanged:]):
       
 13543         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 13544         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
       
 13545         (-[WebFrameLoader safeLoadURL:]):
       
 13546         * Misc/WebNSURLExtras.m:
       
 13547         (+[NSURL _web_URLWithData:]):
       
 13548         (+[NSURL _web_URLWithData:relativeToURL:]):
       
 13549         (-[NSURL _web_originalData]):
       
 13550         (-[NSURL _web_originalDataAsString]):
       
 13551         (-[NSURL _web_isEmpty]):
       
 13552         (-[NSURL _webkit_canonicalize]):
       
 13553         (-[NSURL _webkit_URLByRemovingComponent:]):
       
 13554         (-[NSURL _webkit_URLByRemovingFragment]):
       
 13555         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
       
 13556         (-[NSURL _webkit_isFileURL]):
       
 13557         (-[NSString _webkit_isFileURL]):
       
 13558         * WebCoreSupport/WebSystemInterface.m:
       
 13559         (InitWebCoreSystemInterface):
       
 13560         * WebKit.xcodeproj/project.pbxproj:
       
 13561 
       
 13562 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13563 
       
 13564         Reviewed by Anders.
       
 13565         
       
 13566         - sever final WebFrame dependencies
       
 13567 
       
 13568         * Loader/WebFrameLoader.h:
       
 13569         * Loader/WebFrameLoader.m:
       
 13570         (-[WebFrameLoader initWithFrame:client:]):
       
 13571         (-[WebFrameLoader defersCallbacksChanged]):
       
 13572         (-[WebFrameLoader subframeIsLoading]):
       
 13573         (-[WebFrameLoader transitionToCommitted:]):
       
 13574         (-[WebFrameLoader detachChildren]):
       
 13575         (-[WebFrameLoader checkLoadComplete]):
       
 13576 
       
 13577 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13578 
       
 13579         Reviewed by Brady.
       
 13580         
       
 13581         - convert more WebFrameLoader stuff to be independent of WebFrame
       
 13582 
       
 13583         * Loader/WebFrameLoader.h:
       
 13584         * Loader/WebFrameLoader.m:
       
 13585         (-[WebFrameLoader stopLoadingSubframes]):
       
 13586         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 13587         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 13588         (-[WebFrameLoader closeOldDataSources]):
       
 13589         (-[WebFrameLoader isHostedByObjectElement]):
       
 13590         (-[WebFrameLoader isLoadingMainFrame]):
       
 13591         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
       
 13592         (-[WebFrameLoader transitionToCommitted:]):
       
 13593         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 13594         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 13595         (-[WebFrameLoader loadRequest:inFrameNamed:]):
       
 13596         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13597         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
       
 13598         (-[WebFrameLoader client]):
       
 13599         * Loader/WebFrameLoaderClient.h:
       
 13600         * WebView/WebDataSource.m:
       
 13601         (-[WebDataSource _webView]):
       
 13602         (-[WebDataSource webFrame]):
       
 13603         * WebView/WebFrame.m:
       
 13604         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
       
 13605 
       
 13606 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13607 
       
 13608         Reviewed by Anders and Oliver.
       
 13609         
       
 13610         - move a bunch of WebFrame methods from the Internal category to the WebFrameLoader protocol
       
 13611 
       
 13612         * Loader/WebFrameLoader.h:
       
 13613         * Loader/WebFrameLoader.m:
       
 13614         (-[WebFrameLoader loadRequest:]):
       
 13615         (-[WebFrameLoader loadRequest:inFrameNamed:]):
       
 13616         * Loader/WebFrameLoaderClient.h:
       
 13617         * WebView/WebFrame.m:
       
 13618         (-[WebFrame loadRequest:]):
       
 13619         (-[WebFrame _dispatchDidCommitLoadForFrame]):
       
 13620         (-[WebFrame _hasFrameView]):
       
 13621         (-[WebFrame _frameLoadCompleted]):
       
 13622         (-[WebFrame _restoreScrollPositionAndViewState]):
       
 13623         (-[WebFrame _setTitle:forURL:]):
       
 13624         (-[WebFrame _createDocumentLoaderWithRequest:]):
       
 13625         (-[WebFrame _prepareForDataSourceReplacement]):
       
 13626         (-[WebFrame _didFinishLoad]):
       
 13627         (-[WebFrame _addHistoryItemForFragmentScroll]):
       
 13628         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
       
 13629         (-[WebFrame _provisionalLoadStarted]):
       
 13630         * WebView/WebFrameInternal.h:
       
 13631 
       
 13632 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13633 
       
 13634         Not reviewed, build fix.
       
 13635         
       
 13636         - added forgotten files
       
 13637 
       
 13638         * Loader/WebPolicyDecider.h: Added.
       
 13639         * Loader/WebPolicyDecider.m: Added.
       
 13640         (-[WebPolicyDecider invalidate]):
       
 13641 
       
 13642 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13643 
       
 13644         Reviewed by Brady.
       
 13645         
       
 13646         - add wrapper for WebPolicyDecisionListener so we can remove the dependency from WebFrameLoader.
       
 13647 
       
 13648         * Loader/WebFrameLoader.h:
       
 13649         * Loader/WebFrameLoader.m:
       
 13650         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
       
 13651         (-[WebFrameLoader cancelContentPolicy]):
       
 13652         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
       
 13653         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
       
 13654         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
       
 13655         (-[WebFrameLoader continueAfterWillSubmitForm:]):
       
 13656         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 13657         * Loader/WebFrameLoaderClient.h:
       
 13658         * WebKit.xcodeproj/project.pbxproj:
       
 13659         * WebView/WebFrame.m:
       
 13660         (-[WebFrame _createPolicyDeciderWithTarget:action:]):
       
 13661         (decisionListener):
       
 13662         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decider:]):
       
 13663         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decider:]):
       
 13664         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decider:]):
       
 13665         (-[WebFrame _dispatchSourceFrame:willSubmitForm:withValues:submissionDecider:]):
       
 13666         * WebView/WebPolicyDeciderMac.h: Added.
       
 13667         * WebView/WebPolicyDeciderMac.m: Added.
       
 13668         (-[WebPolicyDeciderMac initWithTarget:action:]):
       
 13669         (-[WebPolicyDeciderMac dealloc]):
       
 13670         (-[WebPolicyDeciderMac decisionListener]):
       
 13671         (-[WebPolicyDeciderMac invalidate]):
       
 13672 
       
 13673 2006-10-09  Brady Eidson  <beidson@apple.com>
       
 13674 
       
 13675         Reviewed by John
       
 13676 
       
 13677         http://bugs.webkit.org/show_bug.cgi?id=11195
       
 13678         Added the WebIconDatabaseDelegate.  This allows the ability to allow customization of 
       
 13679         IconDatabase behavior in the future, starting now with the ability to override the 
       
 13680         default icon fairly flexibly
       
 13681 
       
 13682         * Misc/WebIconDatabase.h: Added setIconDatabaseDelegate:
       
 13683         * Misc/WebIconDatabase.m:
       
 13684         (-[WebIconDatabase iconForURL:withSize:cache:]): Call the delegate for the default icon if delegate is set
       
 13685         (-[WebIconDatabase defaultIconForURL:withSize:]): Get the default icon through the delegate if available, built-in if not
       
 13686         (-[WebIconDatabase setDelegate:]):
       
 13687         (-[WebIconDatabase delegate]):
       
 13688         * Misc/WebIconDatabaseDelegate.h: Added.
       
 13689         * Misc/WebIconDatabasePrivate.h: Added the delegate, nuked an unused class definition
       
 13690         * WebKit.xcodeproj/project.pbxproj:
       
 13691 
       
 13692 2006-10-09  Darin Adler  <darin@apple.com>
       
 13693 
       
 13694         Reviewed by Maciej.
       
 13695 
       
 13696         - eliminated uses of WebResource and WebView from WebFrameLoader
       
 13697 
       
 13698         * Loader/WebFrameLoader.h:
       
 13699         * Loader/WebFrameLoader.m:
       
 13700         (-[WebFrameLoader setDefersCallbacks:]):
       
 13701         (-[WebFrameLoader stopLoading]):
       
 13702         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 13703         (-[WebFrameLoader archiveLoadPendingForLoader:]):
       
 13704         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
       
 13705         (-[WebFrameLoader _canShowMIMEType:]):
       
 13706         (-[WebFrameLoader _representationExistsForURLScheme:]):
       
 13707         (-[WebFrameLoader _generatedMIMETypeForURLScheme:]):
       
 13708         (-[WebFrameLoader loadDocumentLoader:]):
       
 13709         (-[WebFrameLoader continueAfterNavigationPolicy:]):
       
 13710         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 13711         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
       
 13712         * Loader/WebFrameLoaderClient.h:
       
 13713         * Loader/WebMainResourceLoader.m:
       
 13714         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 13715         (-[WebMainResourceLoader loadWithRequestNow:]):
       
 13716         * WebView/WebFrame.m:
       
 13717         (-[WebFramePrivate dealloc]):
       
 13718         (-[WebFrame loadRequest:]):
       
 13719         (-[WebFrame loadArchive:]):
       
 13720         (-[WebFrame _canUseResourceForRequest:]):
       
 13721         (-[WebFrame _canUseResourceWithResponse:]):
       
 13722         (-[WebFrame _deliverArchivedResourcesAfterDelay]):
       
 13723         (-[WebFrame _willUseArchiveForRequest:originalURL:loader:]):
       
 13724         (-[WebFrame _archiveLoadPendingForLoader:]):
       
 13725         (-[WebFrame _cancelPendingArchiveLoadForLoader:]):
       
 13726         (-[WebFrame _clearArchivedResources]):
       
 13727         (-[WebFrame _deliverArchivedResources]):
       
 13728         (-[WebFrame _setDefersCallbacks:]):
       
 13729         (-[WebFrame _canHandleRequest:]):
       
 13730         (-[WebFrame _canShowMIMEType:]):
       
 13731         (-[WebFrame _representationExistsForURLScheme:]):
       
 13732         (-[WebFrame _generatedMIMETypeForURLScheme:]):
       
 13733         (-[WebFrame _elementForEvent:]):
       
 13734 
       
 13735 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13736 
       
 13737         Reviewed by Darin.
       
 13738         
       
 13739         - do all the stuff that setting the referrer should
       
 13740 
       
 13741         * Loader/WebFrameLoader.m:
       
 13742         (setHTTPReferrer):
       
 13743         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 13744         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13745         * WebKit.xcodeproj/project.pbxproj:
       
 13746 
       
 13747 2006-10-09  Brady Eidson  <beidson@apple.com>
       
 13748 
       
 13749         Reviewed by Maciej
       
 13750 
       
 13751         Fix to elminate WebIconDatabaseBridge.h from WebFrameLoader
       
 13752 
       
 13753         * Loader/WebFrameLoader.m:
       
 13754         (-[WebFrameLoader _notifyIconChanged:]):
       
 13755         * WebCoreSupport/WebIconDatabaseBridge.m:
       
 13756         (+[WebIconDatabaseBridge createInstance]):
       
 13757 
       
 13758 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13759 
       
 13760         Reviewed by Darin.
       
 13761         
       
 13762         (Was reviewed as part of a larger patch but it looks like Darin already did the rest of it)
       
 13763         
       
 13764         - avoid a needless use of WebFrame
       
 13765 
       
 13766         * Loader/WebFrameLoader.m:
       
 13767         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
       
 13768 
       
 13769 2006-10-09  Brady Eidson  <beidson@apple.com>
       
 13770 
       
 13771         A *real* fake fix for the layouttest problem until the real fix
       
 13772 
       
 13773         * Loader/WebFrameLoader.m:
       
 13774         (-[WebFrameLoader _notifyIconChanged:]):
       
 13775 
       
 13776 2006-10-09  Brady Eidson  <beidson@apple.com>
       
 13777 
       
 13778         Quick layouttest fix until I make the real fix
       
 13779 
       
 13780         * Loader/WebFrameLoader.m:
       
 13781 
       
 13782 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13783 
       
 13784         Reviewed by Darin.
       
 13785         
       
 13786         - wean WebFrameLoader from WebDataSource private stuff
       
 13787         
       
 13788         (actually just tweaks tot he above to make merging my future
       
 13789         patches easier since Darin did a lot of the same stuff)
       
 13790 
       
 13791         * Loader/WebDocumentLoader.h:
       
 13792         * Loader/WebDocumentLoader.m:
       
 13793         (-[WebDocumentLoader URLForHistory]):
       
 13794         * Loader/WebFrameLoader.m:
       
 13795         (-[WebFrameLoader _loadRequest:archive:]):
       
 13796         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
       
 13797         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
       
 13798         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
       
 13799         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 13800         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
       
 13801         * Loader/WebFrameLoaderClient.h:
       
 13802         * WebView/WebDataSource.m:
       
 13803         (-[WebDataSource _URLForHistory]):
       
 13804         * WebView/WebFrame.m:
       
 13805         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
       
 13806         (-[WebFrame _revertToProvisionalStateForDocumentLoader:]):
       
 13807         (-[WebFrame _setMainDocumentError:forDocumentLoader:]):
       
 13808         (-[WebFrame _clearUnarchivingStateForLoader:]):
       
 13809 
       
 13810 2006-10-09  Darin Adler  <darin@apple.com>
       
 13811 
       
 13812         Reviewed by Brady.
       
 13813 
       
 13814         - eliminated WebFrameLoader dependency on WebDataSourceInternal.h,
       
 13815           WebIconDatabasePrivate.h, and WebKitErrorsPrivate.h, along with
       
 13816           most but not all references to WebView
       
 13817 
       
 13818         * Loader/WebFrameLoader.h:
       
 13819         * Loader/WebFrameLoader.m:
       
 13820         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 13821         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 13822         (-[WebFrameLoader _notifyIconChanged:]):
       
 13823         (-[WebFrameLoader cancelledErrorWithRequest:]):
       
 13824         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
       
 13825         (-[WebFrameLoader handleUnimplementablePolicyWithError:]):
       
 13826         (-[WebFrameLoader cannotShowMIMETypeWithResponse:]):
       
 13827         (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
       
 13828         (-[WebFrameLoader _loadRequest:archive:]):
       
 13829         (-[WebFrameLoader finishedLoadingDocument:]):
       
 13830         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
       
 13831         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
       
 13832         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
       
 13833         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
       
 13834         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 13835         (-[WebFrameLoader continueAfterNavigationPolicy:]):
       
 13836         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 13837         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
       
 13838         (-[WebFrameLoader transitionToCommitted:]):
       
 13839         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 13840         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
       
 13841         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 13842         (-[WebFrameLoader checkLoadComplete]):
       
 13843         * Loader/WebFrameLoaderClient.h:
       
 13844         * Loader/WebMainResourceLoader.m:
       
 13845         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 13846         * WebView/WebFrame.m:
       
 13847         (-[WebFrame _addDocumentLoader:toUnarchiveState:]):
       
 13848         (-[WebFrame _formDelegate]):
       
 13849         (-[WebFrame _finishedLoadingDocument:]):
       
 13850         (-[WebFrame _committedLoadWithDocumentLoader:data:]):
       
 13851         (-[WebFrame _revertToProvisionalWithDocumentLoader:]):
       
 13852         (-[WebFrame _documentLoader:setMainDocumentError:]):
       
 13853         (-[WebFrame _finalSetupForReplaceWithDocumentLoader:]):
       
 13854         (-[WebFrame _URLForHistoryForDocumentLoader:]):
       
 13855         (-[WebFrame _cancelledErrorWithRequest:]):
       
 13856         (-[WebFrame _cannotShowURLErrorWithRequest:]):
       
 13857         (-[WebFrame _interruptForPolicyChangeErrorWithRequest:]):
       
 13858         (-[WebFrame _cannotShowMIMETypeErrorWithResponse:]):
       
 13859         (-[WebFrame _fileDoesNotExistErrorWithResponse:]):
       
 13860         (-[WebFrame _shouldFallBackForError:]):
       
 13861         (-[WebFrame _hasWebView]):
       
 13862         (-[WebFrame _mainFrameURL]):
       
 13863         * WebView/WebFrameInternal.h:
       
 13864 
       
 13865 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13866 
       
 13867         Reviewed, landed, tweaked a bit by Darin.
       
 13868 
       
 13869         - removed most uses of WebFrameBridge from WebFrameLoader
       
 13870           (WebCoreFrameBridge use is OK)
       
 13871 
       
 13872         * Loader/WebDocumentLoader.m:
       
 13873         (-[WebDocumentLoader bridge]):
       
 13874         * Loader/WebFrameLoader.h:
       
 13875         * Loader/WebFrameLoader.m:
       
 13876         (-[WebFrameLoader initWithFrame:client:]):
       
 13877         (-[WebFrameLoader defersCallbacksChanged]):
       
 13878         (-[WebFrameLoader defersCallbacks]):
       
 13879         (-[WebFrameLoader provisionalLoadStarted]):
       
 13880         (-[WebFrameLoader stopLoadingSubframes]):
       
 13881         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
       
 13882         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 13883         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 13884         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 13885         (-[WebFrameLoader closeOldDataSources]):
       
 13886         (-[WebFrameLoader commitProvisionalLoad:]):
       
 13887         (-[WebFrameLoader bridge]):
       
 13888         (-[WebFrameLoader _handleFallbackContent]):
       
 13889         (-[WebFrameLoader _finishedLoading]):
       
 13890         (-[WebFrameLoader reload]):
       
 13891         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
       
 13892         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 13893         (-[WebFrameLoader transitionToCommitted:]):
       
 13894         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 13895         (-[WebFrameLoader loadRequest:inFrameNamed:]):
       
 13896         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13897         (-[WebFrameLoader detachFromParent]):
       
 13898         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 13899         (-[WebFrameLoader safeLoadURL:]):
       
 13900         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
       
 13901         * WebCoreSupport/WebFrameBridge.m:
       
 13902         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 13903         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 13904         * WebView/WebFrame.m:
       
 13905         (-[WebFrame _atMostOneFrameHasSelection]):
       
 13906         * WebView/WebFrameInternal.h:
       
 13907 
       
 13908 2006-10-09  Darin Adler  <darin@apple.com>
       
 13909 
       
 13910         Reviewed by Brady.
       
 13911 
       
 13912         - removed almost all direct use of WebView from WebFrameLoader
       
 13913 
       
 13914         * Loader/WebFrameLoader.m:
       
 13915         (-[WebFrameLoader defersCallbacksChanged]):
       
 13916         (-[WebFrameLoader defersCallbacks]):
       
 13917         (-[WebFrameLoader clearProvisionalLoad]):
       
 13918         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
       
 13919         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 13920         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
       
 13921         (-[WebFrameLoader _didFinishLoadingForResource:]):
       
 13922         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
       
 13923         (-[WebFrameLoader closeOldDataSources]):
       
 13924         (-[WebFrameLoader _notifyIconChanged:]):
       
 13925         (-[WebFrameLoader prepareForLoadStart]):
       
 13926         (-[WebFrameLoader willChangeTitleForDocument:]):
       
 13927         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 13928         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
       
 13929         (-[WebFrameLoader continueAfterNavigationPolicy:]):
       
 13930         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 13931         (-[WebFrameLoader didFirstLayout]):
       
 13932         (-[WebFrameLoader transitionToCommitted:]):
       
 13933         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 13934         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 13935         * Loader/WebFrameLoaderClient.h:
       
 13936         * WebKit.xcodeproj/project.pbxproj:
       
 13937         * WebView/WebFrame.m:
       
 13938         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 13939         (-[WebFrame _hasBackForwardList]):
       
 13940         (-[WebFrame _resetBackForwardList]):
       
 13941         (-[WebFrame _dispatchDidReceiveIcon:]):
       
 13942         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
       
 13943         (-[WebFrame _dispatchDidCommitLoadForFrame]):
       
 13944         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
       
 13945         (-[WebFrame _dispatchDidFailLoadWithError:]):
       
 13946         (-[WebFrame _dispatchDidFinishLoadForFrame]):
       
 13947         (-[WebFrame _progressStarted]):
       
 13948         (-[WebFrame _progressCompleted]):
       
 13949         (-[WebFrame _incrementProgressForIdentifier:response:]):
       
 13950         (-[WebFrame _incrementProgressForIdentifier:data:]):
       
 13951         (-[WebFrame _completeProgressForIdentifier:]):
       
 13952         (-[WebFrame _setMainFrameDocumentReady:]):
       
 13953         (-[WebFrame _willChangeTitleForDocument:]):
       
 13954         (-[WebFrame _didChangeTitleForDocument:]):
       
 13955         (-[WebFrame _startDownloadWithRequest:]):
       
 13956 
       
 13957 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13958 
       
 13959         Reviewed by Alice.
       
 13960 
       
 13961         - moved WebFormState into Loader directory and tweaked to avoid WebKit dependencies
       
 13962         
       
 13963         * Loader/WebDocumentLoader.h:
       
 13964         * Loader/WebFormState.h: Added.
       
 13965         * Loader/WebFormState.m: Added.
       
 13966         (-[WebFormState initWithForm:values:sourceFrame:]):
       
 13967         (-[WebFormState dealloc]):
       
 13968         (-[WebFormState form]):
       
 13969         (-[WebFormState values]):
       
 13970         (-[WebFormState sourceFrame]):
       
 13971         * Loader/WebFrameLoader.h:
       
 13972         * Loader/WebFrameLoader.m:
       
 13973         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 13974         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 13975         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13976         * WebKit.xcodeproj/project.pbxproj:
       
 13977         * WebView/WebFrame.m:
       
 13978         * WebView/WebFrameInternal.h:
       
 13979 
       
 13980 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13981 
       
 13982         Reviewed by Oliver.
       
 13983 
       
 13984         - remove dependency on WebNSURLRequestExtras.h
       
 13985         
       
 13986         * Loader/WebFrameLoader.h:
       
 13987         * Loader/WebFrameLoader.m:
       
 13988         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 13989         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 13990         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 13991 
       
 13992 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 13993 
       
 13994         Reviewed by Oliver.
       
 13995         
       
 13996         - removed unneeded logging code so I can take WebKitLogging.h out and remove a WebKit dependency
       
 13997 
       
 13998         * Loader/WebFrameLoader.m:
       
 13999         (-[WebFrameLoader setState:]):
       
 14000         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
       
 14001         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14002         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14003         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 14004         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14005         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 14006 
       
 14007 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 14008 
       
 14009         Reviewed by Oliver.
       
 14010         
       
 14011         - remove WebDataSource from the WebFrameLoader interface (and thereby from a lot of internal use)
       
 14012 
       
 14013         * Loader/WebDocumentLoader.h:
       
 14014         * Loader/WebDocumentLoader.m:
       
 14015         (-[WebDocumentLoader dealloc]):
       
 14016         (-[WebDocumentLoader initialRequest]):
       
 14017         (-[WebDocumentLoader URL]):
       
 14018         (-[WebDocumentLoader unreachableURL]):
       
 14019         * Loader/WebFrameLoader.h:
       
 14020         * Loader/WebFrameLoader.m:
       
 14021         (-[WebFrameLoader setState:]):
       
 14022         (-[WebFrameLoader startLoading]):
       
 14023         (-[WebFrameLoader startProvisionalLoad:]):
       
 14024         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14025         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14026         (-[WebFrameLoader opened]):
       
 14027         (-[WebFrameLoader commitProvisionalLoad:]):
       
 14028         (-[WebFrameLoader initialRequest]):
       
 14029         (-[WebFrameLoader _finishedLoading]):
       
 14030         (-[WebFrameLoader _notifyIconChanged:]):
       
 14031         (-[WebFrameLoader _URL]):
       
 14032         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 14033         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
       
 14034         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
       
 14035         (-[WebFrameLoader _loadRequest:archive:]):
       
 14036         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 14037         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 14038         (-[WebFrameLoader reload]):
       
 14039         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
       
 14040         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14041         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
       
 14042         (-[WebFrameLoader frameLoadCompleted]):
       
 14043         (-[WebFrameLoader transitionToCommitted:]):
       
 14044         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 14045         (-[WebFrameLoader safeLoadURL:]):
       
 14046         * Loader/WebFrameLoaderClient.h:
       
 14047         * Plugins/WebBaseNetscapePluginView.m:
       
 14048         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
       
 14049         * WebCoreSupport/WebFrameBridge.m:
       
 14050         (-[WebFrameBridge originalRequestURL]):
       
 14051         * WebView/WebDataSource.m:
       
 14052         (-[WebDataSource _URL]):
       
 14053         (-[WebDataSource dealloc]):
       
 14054         (-[WebDataSource initialRequest]):
       
 14055         (-[WebDataSource unreachableURL]):
       
 14056         * WebView/WebFrame.m:
       
 14057         (-[WebFrame _loadItem:withLoadType:]):
       
 14058         (-[WebFrame _prepareForDataSourceReplacement]):
       
 14059         (-[WebFrame provisionalDataSource]):
       
 14060         (-[WebFrame dataSource]):
       
 14061         (-[WebFrame _makeDocumentView]):
       
 14062         (-[WebFrame _updateHistoryForReload]):
       
 14063         (-[WebFrame _updateHistoryForStandardLoad]):
       
 14064         (-[WebFrame _updateHistoryForInternalLoad]):
       
 14065         (-[WebFrame _forceLayoutForNonHTML]):
       
 14066         (-[WebFrame _clearLoadingFromPageCacheForDocumentLoader:]):
       
 14067         (-[WebFrame _isDocumentLoaderLoadingFromPageCache:]):
       
 14068         (-[WebFrame _archivedSubresourceForURL:fromDocumentLoader:]):
       
 14069         (-[WebFrame _makeRepresentationForDocumentLoader:]):
       
 14070 
       
 14071 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
       
 14072 
       
 14073         Reviewed by Darin.
       
 14074 
       
 14075         - removed need for WebFrameLoader to now about WebDocumentLoaderMac 
       
 14076 
       
 14077         * Loader/WebFrameLoader.m:
       
 14078         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
       
 14079         * WebView/WebDocumentLoaderMac.h:
       
 14080         * WebView/WebDocumentLoaderMac.m:
       
 14081         (-[WebDocumentLoaderMac setFrameLoader:]):
       
 14082         (-[WebDocumentLoaderMac detachFromFrameLoader]):
       
 14083 
       
 14084 2006-10-09  Darin Adler  <darin@apple.com>
       
 14085 
       
 14086         Reviewed by Maciej.
       
 14087 
       
 14088         - passed calls that require WebScriptDebugServer across the client interface
       
 14089 
       
 14090         * Loader/WebFrameLoader.m:
       
 14091         (-[WebFrameLoader _finishedLoading]):
       
 14092         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
       
 14093         * Loader/WebFrameLoaderClient.h:
       
 14094         * WebView/WebFrame.m:
       
 14095         (-[WebFrame _dispatchDidLoadMainResourceForDocumentLoader:]):
       
 14096 
       
 14097 2006-10-08  Darin Adler  <darin@apple.com>
       
 14098 
       
 14099         Reviewed by Maciej.
       
 14100 
       
 14101         - passed calls that require WebHTMLView or WebFrameView calls across
       
 14102           the client interface
       
 14103 
       
 14104         * Loader/WebFrameLoader.h:
       
 14105         * Loader/WebFrameLoader.m:
       
 14106         (isCaseInsensitiveEqual):
       
 14107         (isBackForwardLoadType):
       
 14108         (-[WebFrameLoader opened]):
       
 14109         (-[WebFrameLoader cancelledErrorWithRequest:]):
       
 14110         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
       
 14111         (-[WebFrameLoader reload]):
       
 14112         (-[WebFrameLoader transitionToCommitted:]):
       
 14113         * Loader/WebFrameLoaderClient.h:
       
 14114         * WebView/WebFrame.m:
       
 14115         (-[WebFrame _forceLayout]):
       
 14116         (-[WebFrame _setDocumentViewFromPageCache:]):
       
 14117         (-[WebFrame _setCopiesOnScroll]):
       
 14118 
       
 14119 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14120 
       
 14121         Reviewed by Darin.
       
 14122         
       
 14123         - pass remaining delegate methods across client interface
       
 14124 
       
 14125         * Loader/WebFrameLoader.m:
       
 14126         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
       
 14127         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
       
 14128         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14129         (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
       
 14130         (-[WebFrameLoader didFirstLayout]):
       
 14131         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 14132         * Loader/WebFrameLoaderClient.h:
       
 14133         * WebView/WebFrame.m:
       
 14134         (-[WebFrame _dispatchDidFirstLayoutInFrame]):
       
 14135         (-[WebFrame _dispatchCreateWebViewWithRequest:]):
       
 14136         (-[WebFrame _dispatchShow]):
       
 14137         (-[WebFrame _dispatchDecidePolicyForMIMEType:request:decisionListener:]):
       
 14138         (-[WebFrame _dispatchDecidePolicyForNewWindowAction:request:newFrameName:decisionListener:]):
       
 14139         (-[WebFrame _dispatchDecidePolicyForNavigationAction:request:decisionListener:]):
       
 14140         (-[WebFrame _dispatchUnableToImplementPolicyWithError:]):
       
 14141 
       
 14142 2006-10-08  Darin Adler  <darin@apple.com>
       
 14143 
       
 14144         Reviewed by Maciej.
       
 14145 
       
 14146         - use WebCoreSystemInterface instead of WebSystemInterface in Loader directory
       
 14147 
       
 14148         * Loader/WebFrameLoader.m: Update includes.
       
 14149         (-[WebFrameLoader commitProvisionalLoad:]): Use wk calls istead of WK.
       
 14150         (-[WebFrameLoader _canUseResourceWithResponse:]): Ditto.
       
 14151 
       
 14152         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
 14153         Added the three new symbols, and resorted the list.
       
 14154 
       
 14155         * Loader/WebDataProtocol.m:
       
 14156         * Loader/WebLoader.m:
       
 14157         * Loader/WebMainResourceLoader.h:
       
 14158         * Loader/WebMainResourceLoader.m:
       
 14159         * Loader/WebNetscapePlugInStreamLoader.h:
       
 14160         * Loader/WebNetscapePlugInStreamLoader.m:
       
 14161         * Loader/WebSubresourceLoader.h:
       
 14162         * Loader/WebSubresourceLoader.m:
       
 14163         Changed import statements to consistently use the "" format.
       
 14164 
       
 14165 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14166 
       
 14167         Not reviewed.
       
 14168         
       
 14169         - fix accidental build break due to editing while committing
       
 14170 
       
 14171         * Loader/WebFrameLoader.m:
       
 14172 
       
 14173 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14174 
       
 14175         Reviewed by Darin.
       
 14176         
       
 14177         - move all WebFrameLoadDelegate methods across client interface
       
 14178 
       
 14179         * Loader/WebFrameLoader.m:
       
 14180         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
       
 14181         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14182         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 14183         (-[WebFrameLoader closeOldDataSources]):
       
 14184         (-[WebFrameLoader _notifyIconChanged:]):
       
 14185         (-[WebFrameLoader prepareForLoadStart]):
       
 14186         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 14187         (-[WebFrameLoader transitionToCommitted:]):
       
 14188         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 14189         * Loader/WebFrameLoaderClient.h:
       
 14190         * WebView/WebFrame.m:
       
 14191         (-[WebFrame _dispatchDidCancelClientRedirectForFrame]):
       
 14192         (-[WebFrame _dispatchWillPerformClientRedirectToURL:delay:fireDate:]):
       
 14193         (-[WebFrame _dispatchDidChangeLocationWithinPageForFrame]):
       
 14194         (-[WebFrame _dispatchWillCloseFrame]):
       
 14195         (-[WebFrame _dispatchDidReceiveIcon:]):
       
 14196         (-[WebFrame _dispatchDidStartProvisionalLoadForFrame]):
       
 14197         (-[WebFrame _dispatchDidReceiveTitle:]):
       
 14198         (-[WebFrame _dispatchDidCommitLoadForFrame]):
       
 14199         (-[WebFrame _dispatchDidFailProvisionalLoadWithError:]):
       
 14200         (-[WebFrame _dispatchDidFailLoadWithError:]):
       
 14201         (-[WebFrame _dispatchDidFinishLoadForFrame]):
       
 14202 
       
 14203 2006-10-08  Darin Adler  <darin@apple.com>
       
 14204 
       
 14205         Reviewed by Maciej.
       
 14206 
       
 14207         - removed some of the WebKit dependencies in WebFrameLoader
       
 14208 
       
 14209         * Loader/WebFrameLoader.m:
       
 14210         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14211         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
       
 14212         (-[WebFrameLoader reload]):
       
 14213         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 14214         * Loader/WebFrameLoaderClient.h:
       
 14215         * WebView/WebFrame.m:
       
 14216         (-[WebFrame _loadItem:withLoadType:]):
       
 14217         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 14218         (-[WebFrame _setTitle:forURL:]):
       
 14219         (-[WebFrame _downloadWithLoadingConnection:request:response:proxy:]):
       
 14220         * WebView/WebFrameInternal.h:
       
 14221 
       
 14222         - some other tweaks
       
 14223 
       
 14224         * Misc/WebNSURLRequestExtras.m:
       
 14225         (-[NSMutableURLRequest _web_setHTTPReferrer:]):
       
 14226         (-[NSMutableURLRequest _web_setHTTPUserAgent:]):
       
 14227 
       
 14228 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14229 
       
 14230         Reviewed by Darin.
       
 14231         
       
 14232         - pass all WebResourceLoadDelegate methods across client, removing need to include related headers
       
 14233 
       
 14234         * Loader/WebFrameLoader.m:
       
 14235         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
       
 14236         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
       
 14237         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
       
 14238         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 14239         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
       
 14240         (-[WebFrameLoader _didFinishLoadingForResource:]):
       
 14241         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
       
 14242         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 14243         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
       
 14244         * Loader/WebFrameLoaderClient.h:
       
 14245         * WebView/WebFrame.m:
       
 14246         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
       
 14247         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
       
 14248         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
       
 14249         (-[WebFrame _dispatchResource:willSendRequest:redirectResponse:fromDocumentLoader:]):
       
 14250         (-[WebFrame _dispatchDidReceiveAuthenticationChallenge:forResource:fromDocumentLoader:]):
       
 14251         (-[WebFrame _dispatchDidCancelAuthenticationChallenge:forResource:fromDocumentLoader:]):
       
 14252         (-[WebFrame _dispatchResource:didReceiveResponse:fromDocumentLoader:]):
       
 14253         (-[WebFrame _dispatchResource:didReceiveContentLength:fromDocumentLoader:]):
       
 14254         (-[WebFrame _dispatchResource:didFinishLoadingFromDocumentLoader:]):
       
 14255         (-[WebFrame _dispatchResource:didFailLoadingWithError:fromDocumentLoader:]):
       
 14256 
       
 14257 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14258 
       
 14259         Reviewed by Darin.
       
 14260         
       
 14261         - started adding some _dispatch methods to WebFrameLoaderClient for delegate dispatch
       
 14262 
       
 14263         * Loader/WebFrameLoader.m:
       
 14264         (-[WebFrameLoader startLoading]):
       
 14265         (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
       
 14266         * Loader/WebFrameLoaderClient.h:
       
 14267         * WebCoreSupport/WebFrameBridge.m:
       
 14268         (-[WebFrameBridge handledOnloadEvents]):
       
 14269         * WebView/WebFrame.m:
       
 14270         (dataSource):
       
 14271         (-[WebFrame _dataSourceForDocumentLoader:]):
       
 14272         (-[WebFrame _dispatchDidHandleOnloadEventsForFrame]):
       
 14273         (-[WebFrame _dispatchDidReceiveServerRedirectForProvisionalLoadForFrame]):
       
 14274         (-[WebFrame _dispatchIdentifierForInitialRequest:fromDocumentLoader:]):
       
 14275         * WebView/WebFrameInternal.h:
       
 14276 
       
 14277 2006-10-08  Darin Adler  <darin@apple.com>
       
 14278 
       
 14279         Reviewed by Maciej.
       
 14280 
       
 14281         - moved more methods to WebFrameLoader from WebFrame
       
 14282 
       
 14283         * Loader/WebFrameLoader.h:
       
 14284         * Loader/WebFrameLoader.m:
       
 14285         (-[WebFrameLoader defersCallbacksChanged]):
       
 14286         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
       
 14287         (-[WebFrameLoader setState:]):
       
 14288         (-[WebFrameLoader clearProvisionalLoad]):
       
 14289         (-[WebFrameLoader markLoadComplete]):
       
 14290         (-[WebFrameLoader commitProvisionalLoad]):
       
 14291         (-[WebFrameLoader stopLoading]):
       
 14292         (-[WebFrameLoader startProvisionalLoad:]):
       
 14293         (-[WebFrameLoader setupForReplace]):
       
 14294         (-[WebFrameLoader _identifierForInitialRequest:]):
       
 14295         (-[WebFrameLoader _finishedLoadingResource]):
       
 14296         (-[WebFrameLoader _receivedError:]):
       
 14297         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14298         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 14299         (-[WebFrameLoader opened]):
       
 14300         (-[WebFrameLoader commitProvisionalLoad:]):
       
 14301         (-[WebFrameLoader _finishedLoading]):
       
 14302         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 14303         (-[WebFrameLoader _loadRequest:archive:]):
       
 14304         (-[WebFrameLoader reload]):
       
 14305         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
       
 14306         (-[WebFrameLoader subframeIsLoading]):
       
 14307         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
       
 14308         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
       
 14309         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14310         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 14311         (-[WebFrameLoader loadRequest:inFrameNamed:]):
       
 14312         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14313         (-[WebFrameLoader detachChildren]):
       
 14314         (-[WebFrameLoader detachFromParent]):
       
 14315         (-[WebFrameLoader addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 14316         (-[WebFrameLoader safeLoadURL:]):
       
 14317         (-[WebFrameLoader actionInformationForLoadType:isFormSubmission:event:originalURL:]):
       
 14318         (-[WebFrameLoader actionInformationForNavigationType:event:originalURL:]):
       
 14319         (-[WebFrameLoader checkLoadComplete]):
       
 14320         * Loader/WebFrameLoaderClient.h:
       
 14321         * Loader/WebSubresourceLoader.m:
       
 14322         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
       
 14323         * WebCoreSupport/WebFrameBridge.m:
       
 14324         (-[WebFrameBridge close]):
       
 14325         (-[WebFrameBridge tokenizerProcessedData]):
       
 14326         (-[WebFrameBridge frameDetached]):
       
 14327         * WebView/WebDataSourceInternal.h:
       
 14328         * WebView/WebFrame.m:
       
 14329         (-[WebFrame _loadItem:withLoadType:]):
       
 14330         (-[WebFrame _prepareForDataSourceReplacement]):
       
 14331         (-[WebFrame _detachedFromParent1]):
       
 14332         (-[WebFrame _detachedFromParent2]):
       
 14333         (-[WebFrame _detachedFromParent3]):
       
 14334         (-[WebFrame _detachedFromParent4]):
       
 14335         (-[WebFrame _updateHistoryAfterClientRedirect]):
       
 14336         (-[WebFrame _loadedFromPageCache]):
       
 14337         * WebView/WebFrameInternal.h:
       
 14338         * WebView/WebPDFView.m:
       
 14339         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
       
 14340         * WebView/WebView.m:
       
 14341         (-[WebView _close]):
       
 14342         (-[WebView setDefersCallbacks:]):
       
 14343 
       
 14344 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14345 
       
 14346         Reviewed by Darin.
       
 14347         
       
 14348         - avoid need for WebKitSystemInterface in loader code, via WebCore cover for wkSupportsMultipartXMixedReplace
       
 14349 
       
 14350         * Loader/WebDocumentLoader.m:
       
 14351         (-[WebDocumentLoader initWithRequest:]):
       
 14352         * Loader/WebMainResourceLoader.m:
       
 14353         * Loader/WebSubresourceLoader.m:
       
 14354         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
       
 14355         * WebCoreSupport/WebSystemInterface.m:
       
 14356         (InitWebCoreSystemInterface):
       
 14357         * WebView/WebDataSource.m:
       
 14358         (-[WebDataSource _initWithDocumentLoader:]):
       
 14359 
       
 14360 2006-10-08  Darin Adler  <darin@apple.com>
       
 14361 
       
 14362         - build fix (also a fix for a crasher I forgot to commit before)
       
 14363 
       
 14364         * Loader/WebFrameLoader.m: Added some missing includes.
       
 14365         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 14366         Added a needed retain/release.
       
 14367 
       
 14368 2006-10-08  Darin Adler  <darin@apple.com>
       
 14369 
       
 14370         Reviewed by Anders.
       
 14371         
       
 14372         - quick fix to loader problem causing layout test failures
       
 14373 
       
 14374         * Loader/WebFrameLoader.m:
       
 14375         (-[WebFrameLoader _finishedLoading]): Use a local variable for the bridge
       
 14376         that we retain/release.
       
 14377         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 14378         Same here.
       
 14379 
       
 14380 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14381 
       
 14382         Reviewed by Adam.
       
 14383         
       
 14384         - removed a few includes from WebFrameLoader, fixed up as appropriate
       
 14385         - segregated header includes into ones that need to go away to move the code and ones that don't
       
 14386 
       
 14387         * Loader/WebFrameLoader.m:
       
 14388         (-[WebFrameLoader _privateBrowsingEnabled]):
       
 14389         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 14390         * Loader/WebFrameLoaderClient.h:
       
 14391         * WebView/WebFrame.m:
       
 14392         (-[WebFrame _privateBrowsingEnabled]):
       
 14393 
       
 14394 2006-10-08  Darin Adler  <darin@apple.com>
       
 14395 
       
 14396         Reviewed by Maciej.
       
 14397 
       
 14398         - moved a few methods from WebFrame to WebFrameLoader
       
 14399 
       
 14400         * Loader/WebFrameLoader.h:
       
 14401         * Loader/WebFrameLoader.m:
       
 14402         (-[WebFrameLoader _setState:]):
       
 14403         (-[WebFrameLoader stopLoadingSubframes]):
       
 14404         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 14405         (-[WebFrameLoader closeOldDataSources]):
       
 14406         (-[WebFrameLoader commitProvisionalLoad:]):
       
 14407         (-[WebFrameLoader _finishedLoading]):
       
 14408         (isBackForwardLoadType):
       
 14409         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14410         (-[WebFrameLoader didFirstLayout]):
       
 14411         (-[WebFrameLoader frameLoadCompleted]):
       
 14412         (-[WebFrameLoader transitionToCommitted:]):
       
 14413         (-[WebFrameLoader checkLoadCompleteForThisFrame]):
       
 14414         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 14415         (-[WebFrameLoader sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 14416         (-[WebFrameLoader requestFromDelegateForRequest:identifier:error:]):
       
 14417         (-[WebFrameLoader loadRequest:inFrameNamed:]):
       
 14418         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14419         * Loader/WebFrameLoaderClient.h:
       
 14420         * Plugins/WebPluginController.m:
       
 14421         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
       
 14422         * WebCoreSupport/WebFrameBridge.h:
       
 14423         * WebCoreSupport/WebFrameBridge.m:
       
 14424         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 14425         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 14426         (-[WebFrameBridge dealloc]):
       
 14427         (-[WebFrameBridge frameLoader]):
       
 14428         (-[WebFrameBridge setTitle:]):
       
 14429         (-[WebFrameBridge receivedData:textEncodingName:]):
       
 14430         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
       
 14431         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
       
 14432         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
       
 14433         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 14434         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14435         (-[WebFrameBridge reportClientRedirectCancelled:]):
       
 14436         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 14437         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14438         (-[WebFrameBridge didFirstLayout]):
       
 14439         (-[WebFrameBridge notifyIconChanged:]):
       
 14440         (-[WebFrameBridge originalRequestURL]):
       
 14441         (-[WebFrameBridge isLoadTypeReload]):
       
 14442         * WebView/WebFrame.m:
       
 14443         (-[WebFrame _opened]):
       
 14444         (-[WebFrame _checkLoadComplete]):
       
 14445         (-[WebFrame _loadItem:withLoadType:]):
       
 14446         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
       
 14447         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 14448         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 14449         (-[WebFrame _updateBackground]):
       
 14450         (-[WebFrame _frameLoader]):
       
 14451         (-[WebFrame _frameLoadCompleted]):
       
 14452         (-[WebFrame _makeDocumentView]):
       
 14453         (-[WebFrame _updateHistoryForCommit]):
       
 14454         (-[WebFrame _updateHistoryForReload]):
       
 14455         (-[WebFrame _updateHistoryForStandardLoad]):
       
 14456         (-[WebFrame _updateHistoryForBackForwardNavigation]):
       
 14457         (-[WebFrame _updateHistoryForInternalLoad]):
       
 14458         (-[WebFrame _tokenForLoadErrorReset]):
       
 14459         (-[WebFrame _resetAfterLoadError:]):
       
 14460         (-[WebFrame _doNotResetAfterLoadError:]):
       
 14461         * WebView/WebFrameInternal.h:
       
 14462 
       
 14463 2006-10-09  Mark Rowe  <bdash@webkit.org>
       
 14464 
       
 14465         Rubber-stamped by Darin.
       
 14466 
       
 14467         * WebCoreSupport/WebFrameBridge.m:
       
 14468         (-[WebFrameBridge imageTitleForFilename:size:]): Revert accidental change to a UI_STRING that
       
 14469         is triggering an assertion failure.
       
 14470 
       
 14471 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14472 
       
 14473         Reviewed by Darin.
       
 14474         
       
 14475         - remove unneeded non-Loader header includes from WebFrameLoader.h (split WebFrameLoadType into
       
 14476         two coincidentally matching enums)
       
 14477 
       
 14478         * Loader/WebFrameLoader.h:
       
 14479         * Loader/WebFrameLoader.m:
       
 14480         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14481         (-[WebFrameLoader commitProvisionalLoad:]):
       
 14482         (isBackForwardLoadType):
       
 14483         (-[WebFrameLoader _loadRequest:archive:]):
       
 14484         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 14485         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 14486         (-[WebFrameLoader reload]):
       
 14487         (-[WebFrameLoader isReplacing]):
       
 14488         (-[WebFrameLoader setReplacing]):
       
 14489         (-[WebFrameLoader loadType]):
       
 14490         (-[WebFrameLoader setLoadType:]):
       
 14491         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14492         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14493         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
       
 14494         (-[WebFrameLoader didFirstLayout]):
       
 14495         * WebCoreSupport/WebFrameBridge.m:
       
 14496         * WebView/WebFrame.m:
       
 14497         (-[WebFrame _transitionToCommitted:]):
       
 14498         (-[WebFrame _provisionalLoadStarted]):
       
 14499         (-[WebFrame _opened]):
       
 14500         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 14501         (-[WebFrame _loadItem:withLoadType:]):
       
 14502         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
       
 14503         (-[WebFrame _goToItem:withLoadType:]):
       
 14504         (-[WebFrame _actionInformationForLoadType:isFormSubmission:event:originalURL:]):
       
 14505         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 14506         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 14507         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14508         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 14509         (-[WebFrame _itemForRestoringDocState]):
       
 14510         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 14511         (-[WebFrame _loadType]):
       
 14512         (-[WebFrame loadRequest:]):
       
 14513         * WebView/WebFrameInternal.h:
       
 14514         * WebView/WebView.m:
       
 14515 
       
 14516 2006-10-08  Darin Adler  <darin@apple.com>
       
 14517 
       
 14518         Reviewed by Maciej.
       
 14519 
       
 14520         - move WebFrameLoader creation and ownership from WebFrame to WebFrameBridge
       
 14521 
       
 14522         * Loader/WebFrameLoader.m:
       
 14523         (-[WebFrameLoader stopLoadingSubframes]):
       
 14524         (-[WebFrameLoader closeOldDataSources]):
       
 14525         * WebCoreSupport/WebFrameBridge.h:
       
 14526         * WebCoreSupport/WebFrameBridge.m:
       
 14527         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
       
 14528         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 14529         (-[WebFrameBridge dealloc]):
       
 14530         (-[WebFrameBridge loader]):
       
 14531         (-[WebFrameBridge setTitle:]):
       
 14532         (-[WebFrameBridge receivedData:textEncodingName:]):
       
 14533         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
       
 14534         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
       
 14535         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14536         (-[WebFrameBridge reportClientRedirectCancelled:]):
       
 14537         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 14538         (-[WebFrameBridge didFirstLayout]):
       
 14539         (-[WebFrameBridge imageTitleForFilename:size:]):
       
 14540         (-[WebFrameBridge notifyIconChanged:]):
       
 14541         (-[WebFrameBridge originalRequestURL]):
       
 14542         (-[WebFrameBridge isLoadTypeReload]):
       
 14543         * WebView/WebFrame.m:
       
 14544         (-[NSView setWebFrame::]):
       
 14545         (-[WebFramePrivate dealloc]):
       
 14546         (-[WebFramePrivate setWebFrameView:]):
       
 14547         (-[WebFramePrivate setProvisionalItem:]):
       
 14548         (-[WebFrame _webDataRequestForData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
       
 14549         (-[WebFrame _createItem:]):
       
 14550         (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]):
       
 14551         (-[WebFrame _detachFromParent]):
       
 14552         (-[WebFrame _makeDocumentView]):
       
 14553         (-[WebFrame _transitionToCommitted:]):
       
 14554         (-[WebFrame _provisionalLoadStarted]):
       
 14555         (-[WebFrame _opened]):
       
 14556         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 14557         (-[WebFrame _loadItem:withLoadType:]):
       
 14558         (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]):
       
 14559         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 14560         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 14561         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14562         (-[WebFrame _setTitle:]):
       
 14563         (-[WebFrame _defersCallbacksChanged]):
       
 14564         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 14565         (-[WebFrame _itemForSavingDocState]):
       
 14566         (-[WebFrame _itemForRestoringDocState]):
       
 14567         (-[WebFrame _saveDocumentAndScrollState]):
       
 14568         (-[WebFrame _shouldTreatURLAsSameAsCurrent:]):
       
 14569         (-[WebFrame _loadRequest:inFrameNamed:]):
       
 14570         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
       
 14571         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 14572         (-[WebFrame _frameLoader]):
       
 14573         (-[WebFrame _prepareForDataSourceReplacement]):
       
 14574         (-[WebFrame _restoreScrollPositionAndViewState]):
       
 14575         (-[WebFrame _firstLayoutDone]):
       
 14576         (-[WebFrame _loadType]):
       
 14577         (-[WebFrame frameView]):
       
 14578         (-[WebFrame provisionalDataSource]):
       
 14579         (-[WebFrame dataSource]):
       
 14580         (-[WebFrame loadRequest:]):
       
 14581         (-[WebFrame loadArchive:]):
       
 14582         (-[WebFrame stopLoading]):
       
 14583         (-[WebFrame reload]):
       
 14584         (-[WebFrame _resetBackForwardList]):
       
 14585         (-[WebFrame _invalidateCurrentItemPageCache]):
       
 14586         (-[WebFrame _provisionalItemIsTarget]):
       
 14587         (-[WebFrame _loadProvisionalItemFromPageCache]):
       
 14588         * WebView/WebFrameInternal.h:
       
 14589 
       
 14590 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
       
 14591 
       
 14592         Reviewed by Darin.
       
 14593         
       
 14594         - move remaining movable data fields from WebFrameLoader to WebFrame
       
 14595 
       
 14596         * Loader/WebDocumentLoadState.m:
       
 14597         (-[WebDocumentLoadState commitIfReady]):
       
 14598         * Loader/WebFrameLoader.h:
       
 14599         * Loader/WebFrameLoader.m:
       
 14600         (-[WebFrameLoader provisionalLoadStarted]):
       
 14601         (-[WebFrameLoader _setState:]):
       
 14602         (-[WebFrameLoader stopLoadingSubframes]):
       
 14603         (-[WebFrameLoader stopLoading]):
       
 14604         (-[WebFrameLoader startLoading]):
       
 14605         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 14606         (-[WebFrameLoader clientRedirectCancelledOrFinished:]):
       
 14607         (-[WebFrameLoader clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14608         (-[WebFrameLoader shouldReloadForCurrent:andDestination:]):
       
 14609         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14610         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 14611         (-[WebFrameLoader closeOldDataSources]):
       
 14612         (-[WebFrameLoader commitProvisionalLoad:]):
       
 14613         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14614         (-[WebFrameLoader isQuickRedirectComing]):
       
 14615         * Loader/WebFrameLoaderClient.h:
       
 14616         * WebCoreSupport/WebFrameBridge.h:
       
 14617         * WebCoreSupport/WebFrameBridge.m:
       
 14618         (-[WebFrameBridge frameLoader]):
       
 14619         (-[WebFrameBridge setTitle:]):
       
 14620         (-[WebFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 14621         (-[WebFrameBridge reportClientRedirectCancelled:]):
       
 14622         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 14623         * WebView/WebDataSource.m:
       
 14624         (-[WebDataSource _loadFromPageCache:]):
       
 14625         * WebView/WebFrame.m:
       
 14626         (-[NSView setWebFrame::]):
       
 14627         (-[WebFrame _addHistoryItemForFragmentScroll]):
       
 14628         (-[WebFrame _didFinishLoad]):
       
 14629         (-[WebFrame _provisionalLoadStarted]):
       
 14630         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 14631         (-[WebFrame _loadItem:withLoadType:]):
       
 14632         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 14633         (-[WebFrame _frameLoadCompleted]):
       
 14634         (-[WebFrame stopLoading]):
       
 14635         (-[WebFrame _invalidateCurrentItemPageCache]):
       
 14636         * WebView/WebFrameInternal.h:
       
 14637 
       
 14638 2006-10-08  Darin Adler  <darin@apple.com>
       
 14639 
       
 14640         Rubber stamped by Maciej.
       
 14641 
       
 14642         - changed "document load state" to "document loader"
       
 14643 
       
 14644         * Loader/WebDocumentLoadState.h: Removed.
       
 14645         * Loader/WebDocumentLoadState.m: Removed.
       
 14646         * Loader/WebDocumentLoader.h: Added.
       
 14647         * Loader/WebDocumentLoader.m: Added.
       
 14648         (-[WebDocumentLoader setMainDocumentError:]):
       
 14649         (-[WebDocumentLoader mainReceivedError:complete:]):
       
 14650         (-[WebDocumentLoader finishedLoading]):
       
 14651         (-[WebDocumentLoader commitLoadWithData:]):
       
 14652         (-[WebDocumentLoader setupForReplaceByMIMEType:]):
       
 14653         (-[WebDocumentLoader updateLoading]):
       
 14654         (-[WebDocumentLoader setTitle:]):
       
 14655         * Loader/WebFrameLoader.h:
       
 14656         * Loader/WebFrameLoader.m:
       
 14657         (-[WebFrameLoader dealloc]):
       
 14658         (-[WebFrameLoader activeDocumentLoader]):
       
 14659         (-[WebFrameLoader activeDataSource]):
       
 14660         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 14661         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 14662         (-[WebFrameLoader addSubresourceLoader:]):
       
 14663         (-[WebFrameLoader removeSubresourceLoader:]):
       
 14664         (-[WebFrameLoader dataSource]):
       
 14665         (-[WebFrameLoader setDocumentLoader:]):
       
 14666         (-[WebFrameLoader documentLoader]):
       
 14667         (-[WebFrameLoader policyDataSource]):
       
 14668         (-[WebFrameLoader setPolicyDocumentLoader:]):
       
 14669         (-[WebFrameLoader clearDataSource]):
       
 14670         (-[WebFrameLoader provisionalDataSource]):
       
 14671         (-[WebFrameLoader provisionalDocumentLoader]):
       
 14672         (-[WebFrameLoader setProvisionalDocumentLoader:]):
       
 14673         (-[WebFrameLoader _clearProvisionalDataSource]):
       
 14674         (-[WebFrameLoader _setState:]):
       
 14675         (-[WebFrameLoader clearProvisionalLoad]):
       
 14676         (-[WebFrameLoader commitProvisionalLoad]):
       
 14677         (-[WebFrameLoader stopLoading]):
       
 14678         (-[WebFrameLoader startLoading]):
       
 14679         (-[WebFrameLoader startProvisionalLoad:]):
       
 14680         (-[WebFrameLoader setupForReplace]):
       
 14681         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 14682         (-[WebFrameLoader _originalRequest]):
       
 14683         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 14684         (-[WebFrameLoader _receivedData:]):
       
 14685         (-[WebFrameLoader _setRequest:]):
       
 14686         (-[WebFrameLoader _isStopping]):
       
 14687         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
       
 14688         (-[WebFrameLoader _setResponse:]):
       
 14689         (-[WebFrameLoader _mainReceivedError:complete:]):
       
 14690         (-[WebFrameLoader _finishedLoading]):
       
 14691         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
       
 14692         (-[WebFrameLoader _loadRequest:archive:]):
       
 14693         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 14694         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 14695         (-[WebFrameLoader reload]):
       
 14696         (-[WebFrameLoader finishedLoadingDocument:]):
       
 14697         (-[WebFrameLoader committedLoadWithDocumentLoader:data:]):
       
 14698         (-[WebFrameLoader revertToProvisionalWithDocumentLoader:]):
       
 14699         (-[WebFrameLoader documentLoader:setMainDocumentError:]):
       
 14700         (-[WebFrameLoader documentLoader:mainReceivedCompleteError:]):
       
 14701         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoader:]):
       
 14702         (-[WebFrameLoader willChangeTitleForDocument:]):
       
 14703         (-[WebFrameLoader didChangeTitleForDocument:]):
       
 14704         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14705         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14706         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
       
 14707         * Plugins/WebPluginController.m:
       
 14708         (-[WebPluginController pluginView:receivedResponse:]):
       
 14709         * WebCoreSupport/WebFrameBridge.m:
       
 14710         (-[WebFrameBridge setTitle:]):
       
 14711         (-[WebFrameBridge receivedData:textEncodingName:]):
       
 14712         * WebKit.xcodeproj/project.pbxproj:
       
 14713         * WebView/WebDataSource.m:
       
 14714         (-[WebDataSourcePrivate dealloc]):
       
 14715         (-[WebDataSource _mainDocumentError]):
       
 14716         (-[WebDataSource _loadFromPageCache:]):
       
 14717         (-[WebDataSource _bridge]):
       
 14718         (-[WebDataSource _webView]):
       
 14719         (-[WebDataSource _URLForHistory]):
       
 14720         (-[WebDataSource _documentLoader]):
       
 14721         (-[WebDataSource _initWithDocumentLoader:]):
       
 14722         (-[WebDataSource initWithRequest:]):
       
 14723         (-[WebDataSource dealloc]):
       
 14724         (-[WebDataSource data]):
       
 14725         (-[WebDataSource webFrame]):
       
 14726         (-[WebDataSource initialRequest]):
       
 14727         (-[WebDataSource request]):
       
 14728         (-[WebDataSource response]):
       
 14729         (-[WebDataSource textEncodingName]):
       
 14730         (-[WebDataSource isLoading]):
       
 14731         (-[WebDataSource unreachableURL]):
       
 14732         (-[WebDataSource webArchive]):
       
 14733         * WebView/WebDataSourceInternal.h:
       
 14734         * WebView/WebDocumentLoadStateMac.h: Removed.
       
 14735         * WebView/WebDocumentLoadStateMac.m: Removed.
       
 14736         * WebView/WebDocumentLoaderMac.h: Added.
       
 14737         * WebView/WebDocumentLoaderMac.m: Added.
       
 14738         * WebView/WebFrame.m:
       
 14739         (-[WebFrame _createItem:]):
       
 14740         (-[WebFrame _receivedMainResourceError:]):
       
 14741         (-[WebFrame _transitionToCommitted:]):
       
 14742         (-[WebFrame _opened]):
       
 14743         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 14744         (-[WebFrame _loadItem:withLoadType:]):
       
 14745         (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 14746         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14747         (-[WebFrame _addChild:]):
       
 14748         (-[WebFrame _provisionalLoadStarted]):
       
 14749         (-[WebFrame _dataSourceForDocumentLoader:]):
       
 14750         (-[WebFrame _createDocumentLoaderWithRequest:]):
       
 14751         * WebView/WebFrameInternal.h:
       
 14752         * WebView/WebHTMLRepresentation.m:
       
 14753         (-[WebHTMLRepresentation title]):
       
 14754         * WebView/WebView.m:
       
 14755         (-[WebView _mainFrameOverrideEncoding]):
       
 14756 
       
 14757 2006-10-08  Darin Adler  <darin@apple.com>
       
 14758 
       
 14759         Reviewed by Mitz.
       
 14760 
       
 14761         - fix http://bugs.webkit.org/show_bug.cgi?id=11218
       
 14762           REGRESSION: Assertion failure in WebFrameLoader when going back from a file: or data: URL
       
 14763 
       
 14764         Also added a helper function in WebFrameLoader so that checks for back/forward load types
       
 14765         are easier to read.
       
 14766 
       
 14767         * Loader/WebFrameLoader.m:
       
 14768         (-[WebFrameLoader _setPolicyDocumentLoadState:]): Fixed line of code that was setting the load
       
 14769         state to nil instead of the passed-in object.
       
 14770         (isBackForwardLoadType): Added.
       
 14771         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Use isBackForwardLoadType.
       
 14772         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14773         Ditto.
       
 14774         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]): Ditto.
       
 14775 
       
 14776 2006-10-08  Darin Adler  <darin@apple.com>
       
 14777 
       
 14778         Reviewed by Maciej.
       
 14779 
       
 14780         - fix two recently introduced leaks: one of an NSString, the other of a WebDataSource
       
 14781 
       
 14782         * Loader/WebDocumentLoadState.m: (-[WebDocumentLoadState setTitle:]):
       
 14783         Rearranged code to avoid storage leak in case of identical title.
       
 14784 
       
 14785         * Loader/WebFrameLoader.h: Removed _setPolicyDocumentLoadState: method
       
 14786         from the header.
       
 14787         * Loader/WebFrameLoader.m:
       
 14788         (-[WebFrameLoader _setPolicyDocumentLoadState:]): Added logic to call detachFromFrameLoader
       
 14789         as needed if this load state is going away rather than moving on to become the provisional
       
 14790         load state.
       
 14791         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]): Tweaked formatting.
       
 14792         (-[WebFrameLoader _loadRequest:archive:]): Added an assertion.
       
 14793         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]): Added an assertion.
       
 14794         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]): Added an assertion.
       
 14795         (-[WebFrameLoader reload]): Added an assertion.
       
 14796         (-[WebFrameLoader loadDataSource:withLoadType:formState:]): Added a local variable to avoid
       
 14797         calling _documentLoadState over and over again.
       
 14798 
       
 14799 2006-10-07  Don Gibson  <dgibson77@gmail.com>
       
 14800 
       
 14801         Reviewed/landed by Adam.
       
 14802 
       
 14803         http://bugs.webkit.org/show_bug.cgi?id=11199
       
 14804         Update Session History when a load is committed rather than completed.
       
 14805 
       
 14806         * COM/WebFrame.cpp:
       
 14807         (WebFrame::receivedResponse):
       
 14808         (WebFrame::receivedAllData):
       
 14809 
       
 14810 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
       
 14811 
       
 14812         Reviewed by Tim H.
       
 14813 
       
 14814         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
       
 14815         Auto-generate a few more Objective-C DOM interfaces
       
 14816 
       
 14817         * MigrateHeaders.make:
       
 14818 
       
 14819 2006-10-07  Mark Rowe  <bdash@webkit.org>
       
 14820 
       
 14821         Reviewed by Mitz.
       
 14822 
       
 14823         Fix memory leak from -[WebDocumentLoadState setTitle:].
       
 14824 
       
 14825         * Loader/WebDocumentLoadState.m:
       
 14826         (-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
       
 14827         zero, and untangle the confusing logic around this case.
       
 14828 
       
 14829 2006-10-06  Brady Eidson  <beidson@apple.com>
       
 14830 
       
 14831         Reviewed by Darin
       
 14832 
       
 14833         Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
       
 14834 
       
 14835         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 14836         * History/WebHistoryItem.m:
       
 14837         * Loader/WebFrameLoader.h:
       
 14838         * Misc/WebCoreStatistics.m:
       
 14839         * Misc/WebElementDictionary.m:
       
 14840         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 14841         * Plugins/WebPluginController.m:
       
 14842         * WebCoreSupport/WebViewFactory.m:
       
 14843         * WebView/WebArchiver.m:
       
 14844         * WebView/WebDataSource.m:
       
 14845         * WebView/WebFrame.m:
       
 14846         (-[WebFrame _isDescendantOfFrame:]):
       
 14847         (-[WebFrame _setShouldCreateRenderers:]):
       
 14848         (-[WebFrame _bodyBackgroundColor]):
       
 14849         (-[WebFrame _isFrameSet]):
       
 14850         (-[WebFrame _firstLayoutDone]):
       
 14851         (-[WebFrame _loadType]):
       
 14852         * WebView/WebFrameInternal.h:
       
 14853         * WebView/WebFramePrivate.h:
       
 14854         * WebView/WebHTMLRepresentation.m:
       
 14855         * WebView/WebScriptDebugDelegate.m:
       
 14856 
       
 14857 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 14858 
       
 14859         Reviewed by Darin.
       
 14860         
       
 14861         - Move all delegate dispatching code out of WebDataSource.
       
 14862 
       
 14863         * Loader/WebFrameLoader.m:
       
 14864         (-[WebFrameLoader startLoading]):
       
 14865         (-[WebFrameLoader _identifierForInitialRequest:]):
       
 14866         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
       
 14867         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
       
 14868         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
       
 14869         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 14870         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
       
 14871         (-[WebFrameLoader _didFinishLoadingForResource:]):
       
 14872         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
       
 14873         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 14874         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
       
 14875         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
       
 14876         * WebView/WebDataSource.m:
       
 14877         (-[WebDataSource _setLoadingFromPageCache:]):
       
 14878         (-[WebDataSource _stopLoadingWithError:]):
       
 14879         * WebView/WebDataSourceInternal.h:
       
 14880 
       
 14881 2006-10-06  Darin Adler  <darin@apple.com>
       
 14882 
       
 14883         Reviewed by Maciej.
       
 14884 
       
 14885         - moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
       
 14886 
       
 14887         * Loader/WebFrameLoader.h:
       
 14888         * Loader/WebFrameLoader.m:
       
 14889         (-[WebFrameLoader didFirstLayout]):
       
 14890         (-[WebFrameLoader provisionalLoadStarted]):
       
 14891         (-[WebFrameLoader frameLoadCompleted]):
       
 14892         (-[WebFrameLoader firstLayoutDone]):
       
 14893         * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
       
 14894         * WebView/WebFrame.m:
       
 14895         (-[WebFrame _firstLayoutDone]):
       
 14896         (-[WebFrame _provisionalLoadStarted]):
       
 14897         (-[WebFrame _frameLoadCompleted]):
       
 14898         (-[WebFrame _restoreScrollPositionAndViewState]):
       
 14899         * WebView/WebFrameInternal.h:
       
 14900 
       
 14901 2006-10-06  Darin Adler  <darin@apple.com>
       
 14902 
       
 14903         Reviewed by Maciej.
       
 14904 
       
 14905         - moved more data and the corresponding code from WebFrame to WebFrameLoader
       
 14906 
       
 14907         * Loader/WebFrameLoader.h:
       
 14908         * Loader/WebFrameLoader.m:
       
 14909         (-[WebFrameLoader cannotShowMIMETypeForURL:]):
       
 14910         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
       
 14911         (-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
       
 14912         (-[WebFrameLoader _loadRequest:archive:]):
       
 14913         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 14914         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 14915         (-[WebFrameLoader reload]):
       
 14916         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
       
 14917         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
       
 14918         (-[WebFrameLoader _continueAfterNewWindowPolicy:]):
       
 14919         (-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 14920         (-[WebFrameLoader continueAfterNavigationPolicy:]):
       
 14921         (-[WebFrameLoader continueAfterWillSubmitForm:]):
       
 14922         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
       
 14923         (-[WebFrameLoader loadDataSource:withLoadType:formState:]):
       
 14924         (-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
       
 14925         (-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
       
 14926         (-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
       
 14927         * Loader/WebFrameLoaderClient.h:
       
 14928         * WebView/WebFrame.m:
       
 14929         (-[NSView setWebFrame::]):
       
 14930         (-[WebFramePrivate dealloc]):
       
 14931         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 14932         (-[WebFrame _loadItem:withLoadType:]):
       
 14933         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 14934         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 14935         (-[WebFrame _loadRequest:inFrameNamed:]):
       
 14936         (-[WebFrame stopLoading]):
       
 14937         (-[WebFrame _resetBackForwardList]):
       
 14938         (-[WebFrame _quickRedirectComing]):
       
 14939         (-[WebFrame _provisionalItemIsTarget]):
       
 14940         (-[WebFrame _loadProvisionalItemFromPageCache]):
       
 14941         * WebView/WebFrameInternal.h:
       
 14942         * WebView/WebFramePrivate.h:
       
 14943 
       
 14944         * WebKit.xcodeproj/project.pbxproj:
       
 14945 
       
 14946 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 14947 
       
 14948         Rubber stamped by Darin.
       
 14949         
       
 14950         - removed includes of unused headers.
       
 14951 
       
 14952         * WebView/WebDataSource.m:
       
 14953 
       
 14954 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 14955 
       
 14956         Not reviewed.
       
 14957         
       
 14958         - fix build breakage
       
 14959 
       
 14960         * Loader/WebFrameLoader.m:
       
 14961         (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
       
 14962         (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
       
 14963 
       
 14964 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 14965 
       
 14966         Reviewed by Darin.
       
 14967         
       
 14968         - move remaining movable WebDataSource fields to WebDocumentLoadState
       
 14969 
       
 14970         * Loader/WebDocumentLoadState.h:
       
 14971         * Loader/WebDocumentLoadState.m:
       
 14972         (-[WebDocumentLoadState dealloc]):
       
 14973         (-[WebDocumentLoadState isLoadingInAPISense]):
       
 14974         (-[WebDocumentLoadState addResponse:]):
       
 14975         (-[WebDocumentLoadState stopRecordingResponses]):
       
 14976         (-[WebDocumentLoadState title]):
       
 14977         (-[WebDocumentLoadState setLastCheckedRequest:]):
       
 14978         (-[WebDocumentLoadState lastCheckedRequest]):
       
 14979         (-[WebDocumentLoadState triggeringAction]):
       
 14980         (-[WebDocumentLoadState setTriggeringAction:]):
       
 14981         (-[WebDocumentLoadState responses]):
       
 14982         (-[WebDocumentLoadState setOverrideEncoding:]):
       
 14983         (-[WebDocumentLoadState overrideEncoding]):
       
 14984         (-[WebDocumentLoadState setTitle:]):
       
 14985         * Loader/WebFrameLoader.h:
       
 14986         * Loader/WebFrameLoader.m:
       
 14987         (-[WebFrameLoader _setState:]):
       
 14988         (-[WebFrameLoader _loadRequest:archive:]):
       
 14989         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 14990         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 14991         (-[WebFrameLoader reload]):
       
 14992         (-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
       
 14993         (-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
       
 14994         * WebCoreSupport/WebFrameBridge.m:
       
 14995         (-[WebFrameBridge setTitle:]):
       
 14996         (-[WebFrameBridge receivedData:textEncodingName:]):
       
 14997         * WebView/WebDataSource.m:
       
 14998         (-[WebDataSourcePrivate dealloc]):
       
 14999         (-[WebDataSource _didReceiveResponse:forResource:]):
       
 15000         (-[WebDataSource textEncodingName]):
       
 15001         * WebView/WebDataSourceInternal.h:
       
 15002         * WebView/WebFrame.m:
       
 15003         (-[WebFrame _opened]):
       
 15004         (-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
       
 15005         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 15006         (-[WebFrame _addChild:]):
       
 15007         (-[WebFrame _loadDataSource:withLoadType:formState:]):
       
 15008         * WebView/WebHTMLRepresentation.m:
       
 15009         (-[WebHTMLRepresentation title]):
       
 15010         * WebView/WebView.m:
       
 15011         (-[WebView _mainFrameOverrideEncoding]):
       
 15012 
       
 15013 2006-10-06  Darin Adler  <darin@apple.com>
       
 15014 
       
 15015         Reviewed by Maciej.
       
 15016 
       
 15017         - moved loadType into WebFrameLoader
       
 15018 
       
 15019         * WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
       
 15020         currently used by Safari.
       
 15021 
       
 15022         * Loader/WebFrameLoader.h:
       
 15023         * Loader/WebFrameLoader.m:
       
 15024         (-[WebFrameLoader _loadRequest:archive:]):
       
 15025         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 15026         (-[WebFrameLoader isReplacing]):
       
 15027         (-[WebFrameLoader setReplacing]):
       
 15028         (-[WebFrameLoader loadType]):
       
 15029         (-[WebFrameLoader setLoadType:]):
       
 15030         * WebCoreSupport/WebFrameBridge.m:
       
 15031         (-[WebFrameBridge isLoadTypeReload]):
       
 15032         * WebView/WebFrame.m:
       
 15033         (-[WebFrame _loadType]):
       
 15034         (-[WebFrame _transitionToCommitted:]):
       
 15035         (-[WebFrame _commitProvisionalLoad:]):
       
 15036         (-[WebFrame _opened]):
       
 15037         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 15038         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 15039         (-[WebFrame _loadURL:referrer:intoChild:]):
       
 15040         (-[WebFrame _currentBackForwardListItemToResetTo]):
       
 15041         (-[WebFrame _itemForRestoringDocState]):
       
 15042         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 15043         (-[WebFrame _didFirstLayout]):
       
 15044         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 15045         (-[WebFrame _provisionalLoadStarted]):
       
 15046         (-[WebFrame loadRequest:]):
       
 15047 
       
 15048 2006-10-06  Darin Adler  <darin@apple.com>
       
 15049 
       
 15050         Reviewed by Maciej.
       
 15051 
       
 15052         - added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
       
 15053 
       
 15054         * Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
       
 15055         * Loader/WebFrameLoader.h:
       
 15056         * Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
       
 15057         Eventually we'll be removing the dependency on WebFrame entirely.
       
 15058         * WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
       
 15059         by its new name.
       
 15060 
       
 15061         * Loader/WebFrameLoaderClient.h: Added.
       
 15062         * WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
       
 15063 
       
 15064 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 15065 
       
 15066         Reviewed by Darin.
       
 15067         
       
 15068         - segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
       
 15069         
       
 15070         Also removed useless WebFrameLoader part
       
 15071 
       
 15072         * WebView/WebFrame.m:
       
 15073         (-[WebFramePrivate dealloc]): 
       
 15074 
       
 15075 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 15076 
       
 15077         Reviewed by Anders.
       
 15078         
       
 15079         - moved more data from WebDataSource to WebDocumentLoadState
       
 15080 
       
 15081         * Loader/WebDocumentLoadState.h:
       
 15082         * Loader/WebDocumentLoadState.m:
       
 15083         (-[WebDocumentLoadState commitLoadWithData:]):
       
 15084         (-[WebDocumentLoadState prepareForLoadStart]):
       
 15085         (-[WebDocumentLoadState loadingStartedTime]):
       
 15086         (-[WebDocumentLoadState setIsClientRedirect:]):
       
 15087         (-[WebDocumentLoadState isClientRedirect]):
       
 15088         (-[WebDocumentLoadState setPrimaryLoadComplete:]):
       
 15089         (-[WebDocumentLoadState isLoadingInAPISense]):
       
 15090         * Loader/WebFrameLoader.h:
       
 15091         * Loader/WebFrameLoader.m:
       
 15092         (-[WebFrameLoader _setState:]):
       
 15093         (-[WebFrameLoader _finishedLoading]):
       
 15094         (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
       
 15095         (-[WebFrameLoader prepareForLoadStart]):
       
 15096         (-[WebFrameLoader subframeIsLoading]):
       
 15097         * WebView/WebDataSource.m:
       
 15098         (-[WebDataSource _fileWrapperForURL:]):
       
 15099         (-[WebDataSource _startLoading]):
       
 15100         (-[WebDataSource _loadFromPageCache:]):
       
 15101         (-[WebDataSource isLoading]):
       
 15102         * WebView/WebDataSourceInternal.h:
       
 15103         * WebView/WebFrame.m:
       
 15104         (-[WebFrame _transitionToCommitted:]):
       
 15105         (-[WebFrame _opened]):
       
 15106         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 15107 
       
 15108 2006-10-06  Alexey Proskuryakov  <ap@nypop.com>
       
 15109 
       
 15110         Reviewed by Darin.
       
 15111 
       
 15112         http://bugs.webkit.org/show_bug.cgi?id=11183
       
 15113         REGRESSION: Safari loads error pages unstyled
       
 15114 
       
 15115         * WebView/WebFrame.m:
       
 15116         (-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
       
 15117         Use utf-8 encoding instead of the string's "fastest" encoding.
       
 15118 
       
 15119 2006-10-06  Maciej Stachowiak  <mjs@apple.com>
       
 15120 
       
 15121         Reviewed by Adam.
       
 15122         
       
 15123         - fixed the following bugs:
       
 15124         
       
 15125         http://bugs.webkit.org/show_bug.cgi?id=11136
       
 15126         "REGRESSION: Safari snippet editor doesn't work"
       
 15127         http://bugs.webkit.org/show_bug.cgi?id=11140
       
 15128         "REGRESSION: view source window blank"
       
 15129         http://bugs.webkit.org/show_bug.cgi?id=11146
       
 15130         "REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
       
 15131         
       
 15132         Possibly more.
       
 15133 
       
 15134         * Loader/WebDocumentLoadState.h:
       
 15135         * Loader/WebDocumentLoadState.m:
       
 15136         (-[WebDocumentLoadState actualRequest]): New method.
       
 15137         * WebView/WebDataSource.m:
       
 15138         (-[WebDataSource _startLoading]): We need to make sure not to start loading the main
       
 15139         resource with the fake external request for an applewebdata: request.
       
 15140 
       
 15141 2006-10-05  Adele Peterson  <adele@apple.com>
       
 15142 
       
 15143         Reviewed by the letter 'B'.
       
 15144 
       
 15145         More build fixes.
       
 15146 
       
 15147         * WebKit.xcodeproj/project.pbxproj:
       
 15148         * WebView/WebDynamicScrollBarsView.h:
       
 15149         * WebView/WebDynamicScrollBarsView.m:
       
 15150         (-[WebDynamicScrollBarsView updateScrollers]):
       
 15151         (-[WebDynamicScrollBarsView setAllowsScrolling:]):
       
 15152         (-[WebDynamicScrollBarsView allowsScrolling]):
       
 15153         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
       
 15154         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
       
 15155         (-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
       
 15156         (-[WebDynamicScrollBarsView allowsVerticalScrolling]):
       
 15157         (-[WebDynamicScrollBarsView horizontalScrollingMode]):
       
 15158         (-[WebDynamicScrollBarsView verticalScrollingMode]):
       
 15159         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
       
 15160         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
       
 15161         (-[WebDynamicScrollBarsView setScrollingMode:]):
       
 15162         * WebView/WebView.m:
       
 15163         (-[WebView setAlwaysShowVerticalScroller:]):
       
 15164         (-[WebView alwaysShowVerticalScroller]):
       
 15165         (-[WebView setAlwaysShowHorizontalScroller:]):
       
 15166         (-[WebView alwaysShowHorizontalScroller]):
       
 15167 
       
 15168 2006-10-05  Vladimir Olexa  <vladimir.olexa@gmail.com>
       
 15169 
       
 15170         Reviewed by Timothy.
       
 15171 
       
 15172         Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
       
 15173         Continuous spell checking now remembers user's setting. The change is applied globally,
       
 15174         meaning, both TextArea and TextField are affected when either of them enables/disables
       
 15175         spell checking. 
       
 15176 
       
 15177         * WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
       
 15178         * WebView/WebView.m:
       
 15179         (-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
       
 15180         (-[WebView setContinuousSpellCheckingEnabled:]):
       
 15181         (-[WebView isContinuousSpellCheckingEnabled]):
       
 15182 
       
 15183 2006-10-05  MorganL  <morganl.webkit@yahoo.com>
       
 15184 
       
 15185         Reviewed by Darin.
       
 15186 
       
 15187         Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
       
 15188 
       
 15189         * COM/WebFrame.cpp:
       
 15190         (WebFrame::loadDataSource):
       
 15191         (WebFrame::receivedResponse):
       
 15192 
       
 15193 2006-10-05  Don Gibson  <dgibson77@gmail.com>
       
 15194 
       
 15195         Reviewed by Darin, landed by Adam.
       
 15196 
       
 15197         http://bugs.webkit.org/show_bug.cgi?id=11176
       
 15198         Fix win32 build, adapt to Maciej's ResourceLoader changes.
       
 15199 
       
 15200         * COM/WebFrame.cpp:
       
 15201         (WebFrame::loadDataSource):
       
 15202 
       
 15203 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
       
 15204 
       
 15205         Reviewed by Darin.
       
 15206 
       
 15207         http://bugs.webkit.org/show_bug.cgi?id=10989
       
 15208         Provide a way for embedders to implement BrowserExtensionWin
       
 15209 
       
 15210         * COM/Interfaces/IWebUIDelegate.idl:
       
 15211         * COM/WebFrame.cpp:
       
 15212         (WebFrame::createNewWindow):
       
 15213         * COM/WebFrame.h:
       
 15214 
       
 15215 2006-10-04  Mark Rowe  <bdash@webkit.org>
       
 15216 
       
 15217         Reviewed by NOBODY (build fix).
       
 15218 
       
 15219         * WebView/WebView.m:
       
 15220         (-[WebView scrollDOMRangeToVisible:]): Move scrollDOMRangeToVisible: into the correct category.
       
 15221 
       
 15222 2006-09-26  David Smith  <catfish.man@gmail.com>
       
 15223 
       
 15224         Reviewed by Timothy.
       
 15225 
       
 15226         http://bugs.webkit.org/show_bug.cgi?id=3723
       
 15227         Add -scrollDOMRangeToVisible:
       
 15228 
       
 15229         * WebView/WebView.m:
       
 15230         (-[WebView scrollDOMRangeToVisible:]):
       
 15231         * WebView/WebViewPrivate.h:
       
 15232 
       
 15233 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
       
 15234 
       
 15235         Reviewed by Timothy.
       
 15236 
       
 15237         <http://bugs.webkit.org/show_bug.cgi?id=10338>
       
 15238         When contentEditable, cursor doesn't change to hand
       
 15239         
       
 15240         Allow the behaviour of editable links to be specified by a WebPreference
       
 15241         The preference WebKitEditableLinkBehavior has four options:
       
 15242          - AlwaysLive: Safari 2.0 behaviour
       
 15243          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
       
 15244          - LiveWhenNotFocused: Editable links are live only when their editable block is not
       
 15245              focused, or when the shift key is pressed
       
 15246          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
       
 15247          
       
 15248         No layout tests, just a modification of a manual-test as it isn't possible to test
       
 15249         this automatically.
       
 15250 
       
 15251         * WebView/WebPreferenceKeysPrivate.h:
       
 15252         * WebView/WebPreferences.m:
       
 15253         (+[WebPreferences initialize]):
       
 15254         (-[WebPreferences editableLinkBehavior]):
       
 15255         (-[WebPreferences setEditableLinkBehavior:]):
       
 15256         * WebView/WebPreferencesPrivate.h:
       
 15257         * WebView/WebView.m:
       
 15258         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
 15259 
       
 15260 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
       
 15261 
       
 15262         Reviewed by harrison
       
 15263         
       
 15264         execCommand("Cut"/"Copy"/"Paste") broken in editable subframes.
       
 15265 
       
 15266         * WebCoreSupport/WebFrameBridge.m:
       
 15267         (-[WebFrameBridge issueCutCommand]): Issue the command on the WebHTMLView, not the WebView.
       
 15268         (-[WebFrameBridge issueCopyCommand]): Ditto.
       
 15269         (-[WebFrameBridge issuePasteCommand]): Ditto.
       
 15270         (-[WebFrameBridge issuePasteAndMatchStyleCommand]): Ditto.
       
 15271         (-[WebFrameBridge issueTransposeCommand]): Fixed formatting.
       
 15272         (-[WebFrameBridge canPaste]): Ask the WebHTMLView, not the WebView.
       
 15273         * WebView/WebHTMLView.m:
       
 15274         (-[WebHTMLView copy:]): Moved to WebInternal
       
 15275         (-[WebHTMLView cut:]): Ditto.
       
 15276         (-[WebHTMLView paste:]): Ditto.
       
 15277         (-[WebHTMLView pasteAsPlainText:]): Ditto.
       
 15278         * WebView/WebHTMLViewInternal.h:
       
 15279         * WebView/WebView.m: Removed the now unused _canPaste.
       
 15280         * WebView/WebViewInternal.h: Ditto.
       
 15281 
       
 15282 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
       
 15283 
       
 15284         Reviewed by geoff
       
 15285         
       
 15286         <rdar://problem/4763519> REGRESSION: Multipart/x-mixed-replace sub-resources fail to load
       
 15287 
       
 15288         * Loader/WebSubresourceLoader.m:
       
 15289         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): 
       
 15290         Enable multipart/x-mixed-replace support on the request.  This line was accidently removed during 
       
 15291         some loader refactoring.
       
 15292 
       
 15293 2006-10-02  Adam Roben  <aroben@apple.com>
       
 15294 
       
 15295         Reviewed by Maciej.
       
 15296 
       
 15297         Add message paramter to WebView::mouse* methods to pass down to
       
 15298         PlatformMouseEvent.
       
 15299 
       
 15300         * COM/WebView.cpp:
       
 15301         (WebView::mouseMoved):
       
 15302         (WebView::mouseDown):
       
 15303         (WebView::mouseUp):
       
 15304         (WebView::mouseDoubleClick):
       
 15305         (WebViewWndProc):
       
 15306         * COM/WebView.h:
       
 15307 
       
 15308 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
       
 15309 
       
 15310         Reviewed by Alice.
       
 15311         
       
 15312         - take away direct knowledge of WebFrame from WebDataSource
       
 15313 
       
 15314         * Loader/WebDocumentLoadState.h:
       
 15315         * Loader/WebDocumentLoadState.m:
       
 15316         (-[WebDocumentLoadState setFrameLoader:]):
       
 15317         (-[WebDocumentLoadState detachFromFrameLoader]):
       
 15318         * Loader/WebFrameLoader.m:
       
 15319         (-[WebFrameLoader _setDocumentLoadState:]):
       
 15320         (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
       
 15321         * WebView/WebDataSource.m:
       
 15322         * WebView/WebDataSourceInternal.h:
       
 15323         * WebView/WebDocumentLoadStateMac.m:
       
 15324         (-[WebDocumentLoadStateMac detachFromFrameLoader]):
       
 15325         * WebView/WebFrame.m:
       
 15326         (-[WebFrame _loadDataSource:withLoadType:formState:]):
       
 15327 
       
 15328 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
       
 15329 
       
 15330         Reviewed by Darin.
       
 15331         
       
 15332         - move a big slice of data and logic from WebDataSource to WebDocumentLoadState
       
 15333         
       
 15334         * Loader/WebDocumentLoadState.h:
       
 15335         * Loader/WebDocumentLoadState.m:
       
 15336         (-[WebDocumentLoadState initWithRequest:]):
       
 15337         (-[WebDocumentLoadState dealloc]):
       
 15338         (-[WebDocumentLoadState originalRequestCopy]):
       
 15339         (-[WebDocumentLoadState request]):
       
 15340         (-[WebDocumentLoadState replaceRequestURLForAnchorScrollWithURL:]):
       
 15341         (-[WebDocumentLoadState setRequest:]):
       
 15342         (-[WebDocumentLoadState setResponse:]):
       
 15343         (-[WebDocumentLoadState isStopping]):
       
 15344         (-[WebDocumentLoadState bridge]):
       
 15345         (-[WebDocumentLoadState setMainDocumentError:]):
       
 15346         (-[WebDocumentLoadState mainDocumentError]):
       
 15347         (-[WebDocumentLoadState clearErrors]):
       
 15348         (-[WebDocumentLoadState mainReceivedError:complete:]):
       
 15349         (-[WebDocumentLoadState stopLoading]):
       
 15350         (-[WebDocumentLoadState setupForReplace]):
       
 15351         (-[WebDocumentLoadState commitIfReady]):
       
 15352         (-[WebDocumentLoadState finishedLoading]):
       
 15353         (-[WebDocumentLoadState setCommitted:]):
       
 15354         (-[WebDocumentLoadState isCommitted]):
       
 15355         (-[WebDocumentLoadState setLoading:]):
       
 15356         (-[WebDocumentLoadState isLoading]):
       
 15357         (-[WebDocumentLoadState commitLoadWithData:]):
       
 15358         (-[WebDocumentLoadState doesProgressiveLoadWithMIMEType:]):
       
 15359         (-[WebDocumentLoadState receivedData:]):
       
 15360         (-[WebDocumentLoadState setupForReplaceByMIMEType:]):
       
 15361         (-[WebDocumentLoadState updateLoading]):
       
 15362         (-[WebDocumentLoadState response]):
       
 15363         * Loader/WebFrameLoader.h:
       
 15364         * Loader/WebFrameLoader.m:
       
 15365         (-[WebFrameLoader activeDocumentLoadState]):
       
 15366         (-[WebFrameLoader activeDataSource]):
       
 15367         (-[WebFrameLoader _archivedSubresourceForURL:]):
       
 15368         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 15369         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 15370         (-[WebFrameLoader addSubresourceLoader:]):
       
 15371         (-[WebFrameLoader removeSubresourceLoader:]):
       
 15372         (-[WebFrameLoader documentLoadState]):
       
 15373         (-[WebFrameLoader provisionalDocumentLoadState]):
       
 15374         (-[WebFrameLoader stopLoading]):
       
 15375         (-[WebFrameLoader _originalRequest]):
       
 15376         (-[WebFrameLoader _receivedData:]):
       
 15377         (-[WebFrameLoader _setRequest:]):
       
 15378         (-[WebFrameLoader bridge]):
       
 15379         (-[WebFrameLoader _handleFallbackContent]):
       
 15380         (-[WebFrameLoader _isStopping]):
       
 15381         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
       
 15382         (-[WebFrameLoader _setResponse:]):
       
 15383         (-[WebFrameLoader _mainReceivedError:complete:]):
       
 15384         (-[WebFrameLoader _finishedLoading]):
       
 15385         (-[WebFrameLoader didReceiveServerRedirectForProvisionalLoadForFrame]):
       
 15386         (-[WebFrameLoader finishedLoadingDocumentLoadState:]):
       
 15387         (-[WebFrameLoader commitProvisitionalLoad]):
       
 15388         (-[WebFrameLoader committedLoadWithDocumentLoadState:data:]):
       
 15389         (-[WebFrameLoader isReplacing]):
       
 15390         (-[WebFrameLoader setReplacing]):
       
 15391         (-[WebFrameLoader revertToProvisionalWithDocumentLoadState:]):
       
 15392         (-[WebFrameLoader documentLoadState:setMainDocumentError:]):
       
 15393         (-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
       
 15394         (-[WebFrameLoader finalSetupForReplaceWithDocumentLoadState:]):
       
 15395         * WebView/WebDataSource.m:
       
 15396         (-[WebDataSourcePrivate dealloc]):
       
 15397         (-[WebDataSource _prepareForLoadStart]):
       
 15398         (-[WebDataSource _mainDocumentError]):
       
 15399         (-[WebDataSource _finishedLoading]):
       
 15400         (-[WebDataSource _receivedData:]):
       
 15401         (-[WebDataSource _setMainDocumentError:]):
       
 15402         (-[WebDataSource _clearUnarchivingState]):
       
 15403         (-[WebDataSource _revertToProvisionalState]):
       
 15404         (-[WebDataSource _receivedMainResourceError:complete:]):
       
 15405         (-[WebDataSource _startLoading]):
       
 15406         (-[WebDataSource _loadFromPageCache:]):
       
 15407         (-[WebDataSource _bridge]):
       
 15408         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 15409         (-[WebDataSource _URLForHistory]):
       
 15410         (-[WebDataSource _setTitle:]):
       
 15411         (-[WebDataSource _initWithDocumentLoadState:]):
       
 15412         (-[WebDataSource request]):
       
 15413         (-[WebDataSource response]):
       
 15414         (-[WebDataSource isLoading]):
       
 15415         (-[WebDataSource webArchive]):
       
 15416         * WebView/WebDataSourceInternal.h:
       
 15417         * WebView/WebDocumentLoadStateMac.m:
       
 15418         (-[WebDocumentLoadStateMac initWithRequest:]):
       
 15419         * WebView/WebFrame.m:
       
 15420         (-[WebFrame _createItem:]):
       
 15421         (-[WebFrame _receivedMainResourceError:]):
       
 15422         (-[WebFrame _transitionToCommitted:]):
       
 15423         (-[WebFrame _commitProvisionalLoad:]):
       
 15424         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 15425         (-[WebFrame _loadItem:withLoadType:]):
       
 15426         (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]):
       
 15427         (-[WebFrame _didReceiveServerRedirectForProvisionalLoadForFrame]):
       
 15428         (-[WebFrame _provisionalLoadStarted]):
       
 15429         * WebView/WebFrameInternal.h:
       
 15430 
       
 15431 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
       
 15432 
       
 15433         Reviewed by john
       
 15434         
       
 15435         <rdar://problem/4757583>
       
 15436         REGRESSION: tabbing into page focuses wrong control on 2nd pass
       
 15437         <rdar://problem/4757594>
       
 15438         REGRESSION: Form field is left with secondary selection after tabbing out of WebView
       
 15439 
       
 15440         * WebView/WebHTMLView.m:
       
 15441         (-[NSArray maintainsInactiveSelection]): Replace code that I removed in error in the patch
       
 15442         for 9642.  Only leave inactive editable selections in the WebHTMLView if the nextResponder 
       
 15443         is in the same WebView.
       
 15444 
       
 15445 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
       
 15446 
       
 15447         Reviewed by Anders.
       
 15448         
       
 15449         - remove webFrame field from WebDataSourcePrivate, it can get it from WebDocumentLoadState now
       
 15450 
       
 15451         * Loader/WebDocumentLoadState.h:
       
 15452         * Loader/WebDocumentLoadState.m:
       
 15453         (-[WebDocumentLoadState frameLoader]):
       
 15454         * WebView/WebDataSource.m:
       
 15455         (-[WebDataSourcePrivate dealloc]):
       
 15456         (-[WebDataSource _revertToProvisionalState]):
       
 15457         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 15458         (-[WebDataSource _updateLoading]):
       
 15459         (-[WebDataSource _startLoading]):
       
 15460         (-[WebDataSource _setWebFrame:]):
       
 15461         (-[WebDataSource _defersCallbacksChanged]):
       
 15462         (-[WebDataSource _stopLoading]):
       
 15463         (-[WebDataSource _webView]):
       
 15464         (-[WebDataSource _stopLoadingWithError:]):
       
 15465         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 15466         (-[WebDataSource dealloc]):
       
 15467         (-[WebDataSource webFrame]):
       
 15468         (-[WebDataSource isLoading]):
       
 15469 
       
 15470 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
       
 15471 
       
 15472         Reviewed by Anders.
       
 15473         
       
 15474         - fix crash on back/forward - reattach WebDocumentLoadState to data source when needed
       
 15475 
       
 15476         * WebView/WebDataSource.m:
       
 15477         (-[WebDataSource _setWebFrame:]):
       
 15478         (-[WebDataSource _initWithDocumentLoadState:]):
       
 15479         * WebView/WebDataSourceInternal.h:
       
 15480 
       
 15481 2006-10-02  Maciej Stachowiak  <mjs@apple.com>
       
 15482 
       
 15483         Build fix, not reviewed.
       
 15484         
       
 15485         - Added missing files to fix build.
       
 15486 
       
 15487         * WebView/WebDocumentLoadStateMac.h: Added.
       
 15488         * WebView/WebDocumentLoadStateMac.m: Added.
       
 15489         (-[WebDocumentLoadStateMac initWithRequest:]):
       
 15490         (-[WebDocumentLoadStateMac dealloc]):
       
 15491         (-[WebDocumentLoadStateMac setDataSource:]):
       
 15492         (-[WebDocumentLoadStateMac dataSource]):
       
 15493         (-[WebDocumentLoadStateMac setFrameLoader:]):
       
 15494 
       
 15495 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
       
 15496 
       
 15497         Reviewed by Brady and Oliver.
       
 15498         
       
 15499         - move things around so that WebDataSource and WebDocumentLoadState know about each other in
       
 15500         the right way. This lines things up to move nearly all functionality down to WebDocumentLoadState.
       
 15501 
       
 15502         * Loader/WebDocumentLoadState.h:
       
 15503         * Loader/WebDocumentLoadState.m:
       
 15504         (-[WebDocumentLoadState initWithRequest:]):
       
 15505         (-[WebDocumentLoadState dealloc]):
       
 15506         (-[WebDocumentLoadState originalRequest]):
       
 15507         * Loader/WebFrameLoader.h:
       
 15508         * Loader/WebFrameLoader.m:
       
 15509         (-[WebFrameLoader dealloc]):
       
 15510         (-[WebFrameLoader addSubresourceLoader:]):
       
 15511         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
       
 15512         (-[WebFrameLoader dataSource]):
       
 15513         (-[WebFrameLoader _setDocumentLoadState:]):
       
 15514         (-[WebFrameLoader policyDataSource]):
       
 15515         (-[WebFrameLoader _setPolicyDocumentLoadState:]):
       
 15516         (-[WebFrameLoader clearDataSource]):
       
 15517         (-[WebFrameLoader provisionalDataSource]):
       
 15518         (-[WebFrameLoader _setProvisionalDocumentLoadState:]):
       
 15519         (-[WebFrameLoader _clearProvisionalDataSource]):
       
 15520         (-[WebFrameLoader _setState:]):
       
 15521         (-[WebFrameLoader clearProvisionalLoad]):
       
 15522         (-[WebFrameLoader commitProvisionalLoad]):
       
 15523         (-[WebFrameLoader stopLoading]):
       
 15524         (-[WebFrameLoader startLoading]):
       
 15525         (-[WebFrameLoader startProvisionalLoad:]):
       
 15526         (-[WebFrameLoader setupForReplace]):
       
 15527         (-[WebFrameLoader activeDocumentLoadState]):
       
 15528         (-[WebFrameLoader activeDataSource]):
       
 15529         (-[WebFrameLoader _loadRequest:archive:]):
       
 15530         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 15531         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 15532         (-[WebFrameLoader reload]):
       
 15533         * WebKit.xcodeproj/project.pbxproj:
       
 15534         * WebView/WebDataSource.m:
       
 15535         (-[WebDataSourcePrivate dealloc]):
       
 15536         (-[WebDataSource _startLoading]):
       
 15537         (-[WebDataSource _setWebFrame:]):
       
 15538         (-[WebDataSource _documentLoadState]):
       
 15539         (-[WebDataSource _initWithDocumentLoadState:]):
       
 15540         (-[WebDataSource initWithRequest:]):
       
 15541         (-[WebDataSource initialRequest]):
       
 15542         (-[WebDataSource unreachableURL]):
       
 15543         * WebView/WebDataSourceInternal.h:
       
 15544         * WebView/WebFrame.m:
       
 15545         (-[WebFramePrivate dealloc]):
       
 15546         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 15547         (-[WebFrame _loadDataSource:withLoadType:formState:]):
       
 15548         (-[WebFrame _policyDataSource]):
       
 15549         (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
       
 15550         (-[WebFrame _dataSourceForDocumentLoadState:]):
       
 15551         (-[WebFrame _createDocumentLoadStateWithRequest:]):
       
 15552         * WebView/WebFrameInternal.h:
       
 15553 
       
 15554 2006-09-29  David Hyatt  <hyatt@apple.com>
       
 15555 
       
 15556         Change the default minimum font size pref to 0 in order to allow
       
 15557         font-size:0 to work.
       
 15558 
       
 15559         * WebView/WebPreferences.m:
       
 15560         (+[WebPreferences initialize]):
       
 15561 
       
 15562 2006-09-28  Timothy Hatcher  <timothy@apple.com>
       
 15563 
       
 15564         Reviewed by Maciej.
       
 15565 
       
 15566         Switch the inspector over to use border-image with styled buttons and selects.
       
 15567 
       
 15568         * WebInspector/WebInspector.m:
       
 15569         (-[NSWindow window]):
       
 15570         (-[NSWindow setWebFrame:]):
       
 15571         (-[WebInspector _updateRoot]):
       
 15572         * WebInspector/webInspector/Images/button.png: Added.
       
 15573         * WebInspector/webInspector/Images/buttonDivider.png: Added.
       
 15574         * WebInspector/webInspector/Images/buttonPressed.png: Added.
       
 15575         * WebInspector/webInspector/Images/popup.png: Added.
       
 15576         * WebInspector/webInspector/Images/popupFill.png: Removed.
       
 15577         * WebInspector/webInspector/Images/popupFillPressed.png: Removed.
       
 15578         * WebInspector/webInspector/Images/popupLeft.png: Removed.
       
 15579         * WebInspector/webInspector/Images/popupLeftPressed.png: Removed.
       
 15580         * WebInspector/webInspector/Images/popupPressed.png: Added.
       
 15581         * WebInspector/webInspector/Images/popupRight.png: Removed.
       
 15582         * WebInspector/webInspector/Images/popupRightPressed.png: Removed.
       
 15583         * WebInspector/webInspector/Images/squareButtonRight.png: Removed.
       
 15584         * WebInspector/webInspector/Images/squareButtonRightPressed.png: Removed.
       
 15585         * WebInspector/webInspector/inspector.css:
       
 15586         * WebInspector/webInspector/inspector.html:
       
 15587         * WebInspector/webInspector/inspector.js:
       
 15588 
       
 15589 2006-09-28  Alice Liu  <alice.liu@apple.com>
       
 15590 
       
 15591         fixing the windows build
       
 15592 
       
 15593         * COM/WebView.cpp:
       
 15594         (WebView::mouseMoved):
       
 15595         (WebView::mouseDown):
       
 15596         (WebView::mouseUp):
       
 15597         (WebView::mouseDoubleClick):
       
 15598 
       
 15599 2006-09-27  Justin Garcia  <justin.garcia@apple.com>
       
 15600 
       
 15601         Reviewed by thatcher
       
 15602         
       
 15603         <rdar://problem/4044271>
       
 15604         Writing Direction menu doesn't reflect the current writing direction (9773)
       
 15605 
       
 15606         * English.lproj/Localizable.strings: Added "Right to Left" and "Left to Right"
       
 15607         * WebView/WebHTMLView.m:
       
 15608         (-[NSArray validateUserInterfaceItem:]): Validate menu items that perform
       
 15609         toggleBaseWritingDirection and changeBaseWritingDirection.  
       
 15610         Disable the menu item that changes the writing direction to NSWritingDirectionNautral
       
 15611         because NSWritingDirectionNatural's behavior can't be implemented with CSS.
       
 15612         Take control of the title of the menu item that performs toggleBaseWritingDirection:
       
 15613         instead of checking/unchecking it, otherwise we wouldn't know what a check means.
       
 15614         (-[NSArray changeBaseWritingDirection:]): ASSERT that the requested writing
       
 15615         direction is not NSWritingDirectionNatural, since we've disabled the
       
 15616         menu item that performs it.
       
 15617 
       
 15618 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
       
 15619 
       
 15620         Reviewed by Maciej, landed by Brady
       
 15621 
       
 15622         Update URL request associated with provisional data source on redirect.
       
 15623         Notify IWebFrameLoadDelegate of redirects for the provisional load.
       
 15624         Notify IWebFrameLoadDelegate of a provisional load being commited.
       
 15625 
       
 15626         * COM/WebDataSource.cpp:
       
 15627         (WebDataSource::replaceRequest):
       
 15628         * COM/WebDataSource.h:
       
 15629         * COM/WebFrame.cpp:
       
 15630         (WebFrame::receivedRedirect):
       
 15631         (WebFrame::receivedResponse):
       
 15632         (WebFrame::receivedData):
       
 15633 
       
 15634 2006-09-26  John Sullivan  <sullivan@apple.com>
       
 15635 
       
 15636         Reviewed by Darin
       
 15637 
       
 15638         * WebView/WebHTMLViewPrivate.h:
       
 15639         * WebView/WebHTMLView.m:
       
 15640         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
       
 15641         Added limit parameter, passed over the bridge. Stop the search if it hits limit.
       
 15642 
       
 15643         * WebView/WebViewPrivate.h:
       
 15644         * WebView/WebView.m:
       
 15645         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
       
 15646         Added limit parameter, passed to WebHTMLView.
       
 15647 
       
 15648 2006-09-26  David Harrison  <harrison@apple.com>
       
 15649 
       
 15650         Reviewed by John and TimH.
       
 15651 
       
 15652         <rdar://problem/4743256> Seed: Ctrl-Y key binding does nothing when kill ring is empty
       
 15653 
       
 15654         Use deleteBackward: when the killring string is empty. Was always using insertText:,
       
 15655         but that ends up early-returning if the string to insert is empty.
       
 15656         
       
 15657         * WebView/WebHTMLView.m:
       
 15658         (-[NSArray yank:]):
       
 15659         (-[NSArray yankAndSelect:]):
       
 15660 
       
 15661 2006-09-25  Timothy Hatcher  <timothy@apple.com>
       
 15662 
       
 15663         Reviewed by Brady.
       
 15664 
       
 15665         Use the non-deprecated method names for getComputedStyle, setEnd and setStart.
       
 15666 
       
 15667         * WebInspector/WebInspector.m:
       
 15668         (-[WebInspector _highlightNode:]):
       
 15669         * WebView/WebHTMLView.m:
       
 15670         (unionDOMRanges):
       
 15671         (-[WebHTMLView _selectRangeInMarkedText:]):
       
 15672         (-[WebTextCompleteController doCompletion]):
       
 15673         * WebView/WebView.m:
       
 15674         (-[WebView computedStyleForElement:pseudoElement:]):
       
 15675 
       
 15676 2006-09-22  Timothy Hatcher  <timothy@apple.com>
       
 15677 
       
 15678         Reviewed by Darin.
       
 15679 
       
 15680         Pass all headers through unifdef to filter out BUILDING_ON_TIGER blocks
       
 15681         if MACOSX_DEPLOYMENT_TARGET is 10.4.
       
 15682 
       
 15683         * MigrateHeaders.make:
       
 15684 
       
 15685 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
       
 15686 
       
 15687         Reviewed by john
       
 15688         
       
 15689         <http://bugs.webkit.org/show_bug.cgi?id=7165>
       
 15690         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
       
 15691         
       
 15692         The top level WebHTMLView is responsible for performing dragging operations, but
       
 15693         the inner view, the view that holds the drag caret, should be consulted to determine
       
 15694         if the drag is a move drag.
       
 15695 
       
 15696         * WebCoreSupport/WebFrameBridge.m:
       
 15697         (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 15698         * WebKit.xcodeproj/project.pbxproj:
       
 15699         * WebView/WebHTMLView.m:
       
 15700         (-[NSArray dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't set initatedDrag here, because
       
 15701         it's only the top level WebHTMLView that performs this operation.
       
 15702         (-[WebHTMLView _setInitiatedDrag:]): Added.
       
 15703         (-[WebHTMLView _initiatedDrag]): Ditto.
       
 15704         (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ask the innerView if it initiated the drag,
       
 15705         not the top level view.
       
 15706         (-[WebHTMLView _isMoveDrag]): The top level view asks the innerView if it should perform
       
 15707         a move drag, so don't ASSERT _isTopHTMLView.
       
 15708         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ask the innerView if _isMoveDrag.
       
 15709         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
       
 15710         * WebView/WebHTMLViewInternal.h: Added two private SPI so that
       
 15711         the top level WebHTMLView can set and get the initiatedDrag BOOL.
       
 15712 
       
 15713 === Safari-521.27 ===
       
 15714 
       
 15715 2006-09-20  Brady Eidson  <beidson@apple.com>
       
 15716 
       
 15717         Reviewed by Tim Omernick
       
 15718 
       
 15719         Fixing part of a crash Tim O showed me.  [WebIconDatabase init] should finish
       
 15720         gracefully even if we can't open the database
       
 15721 
       
 15722         * Misc/WebIconDatabase.m:
       
 15723         (-[WebIconDatabase init]):
       
 15724 
       
 15725 2006-09-20  Timothy Hatcher  <timothy@apple.com>
       
 15726 
       
 15727         Reviewed by Tim O.
       
 15728 
       
 15729         <rdar://problem/4741392> Develop a system to find what version of WebKit an app was linked with
       
 15730 
       
 15731         * Misc/WebKitVersionChecks.h: Added.
       
 15732         * Misc/WebKitVersionChecks.m: Added.
       
 15733         (WebKitLinkedOnOrAfter): Added.
       
 15734         (WebKitLinkTimeVersion): Added.
       
 15735         (WebKitRunTimeVersion): Added.
       
 15736         * WebKit.xcodeproj/project.pbxproj:
       
 15737 
       
 15738 2006-09-20  Tim Omernick  <timo@apple.com>
       
 15739 
       
 15740         Reviewed by Darin.
       
 15741 
       
 15742         * Misc/WebIconDatabase.m:
       
 15743         (-[WebIconDatabase init]):
       
 15744         Fixed a typo.
       
 15745 
       
 15746 2006-09-20  Brady Eidson  <beidson@apple.com>
       
 15747 
       
 15748         Reviewed by Darin
       
 15749 
       
 15750         Preparing to make the WebIconDatabase disabled by default - this patch tells the bridge whether its enabled or not
       
 15751 
       
 15752         * Misc/WebIconDatabase.m:
       
 15753         (-[WebIconDatabase init]):
       
 15754 
       
 15755 2006-09-19  Brady Eidson <beidson@apple.com>
       
 15756 
       
 15757         Reviewed by Sarge Decker
       
 15758 
       
 15759         <rdar://problem/4739892> and <rdar://problem/4729797>
       
 15760         - WebCore::IconDatabase needs to have and respect an enabled() flag
       
 15761         - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
       
 15762 
       
 15763         * Misc/WebIconDatabase.m:
       
 15764         (-[WebIconDatabase init]): If preference says icons are disabled, tell the bridge
       
 15765         (-[WebIconDatabase _isEnabled]): Ask the bridge if the database is enabled
       
 15766 
       
 15767 2006-09-19  Alexey Proskuryakov  <ap@nypop.com>
       
 15768 
       
 15769         Reviewed by Tim O.
       
 15770 
       
 15771         http://bugs.webkit.org/show_bug.cgi?id=10661
       
 15772         REGRESSION: CFM plug-ins (Shockwave, SVG) are not loaded
       
 15773 
       
 15774         * Plugins/WebBasePluginPackage.m:
       
 15775         (-[WebBasePluginPackage initWithPath:]): On 32-bit PowerPC, don't bail out if 
       
 15776         the bundle is nil - it can be a CFM plugin.
       
 15777 
       
 15778 2006-09-18  Brady Eidson  <beidson@apple.com>
       
 15779 
       
 15780         Reviewed by Anders
       
 15781 
       
 15782         Implement a bridge method so WebCore can find the reload type of a frame load
       
 15783 
       
 15784         * WebCoreSupport/WebFrameBridge.m:
       
 15785         (-[WebFrameBridge isLoadTypeReload]):
       
 15786 
       
 15787 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
       
 15788 
       
 15789         Reviewed by Tim H.
       
 15790 
       
 15791         Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
       
 15792         Yet Another Objective-C Bindings Patch
       
 15793 
       
 15794         * MigrateHeaders.make:
       
 15795 
       
 15796 2006-09-17  David Harrison  <harrison@apple.com>
       
 15797 
       
 15798         Reviewed by John Sullivan.
       
 15799 
       
 15800         <rdar://problem/4494340> REGRESSION: Making the font size bigger/smaller in an HTML message doesn't affect the body until you reopen it
       
 15801 
       
 15802         Problem was the public API -[WebView setTextSizeMultiplier] did not notify anyone that the value changed.
       
 15803         
       
 15804         * WebView/WebDocumentInternal.h:
       
 15805         Add _textSizeMultiplierChanged to the _WebDocumentTextSizing protocol.
       
 15806         
       
 15807         * WebView/WebHTMLView.m:
       
 15808         (-[WebHTMLView _textSizeMultiplierChanged]):
       
 15809         Send [self _updateTextSizeMultiplier].
       
 15810         
       
 15811         * WebView/WebPDFView.m:
       
 15812         (-[WebPDFView _textSizeMultiplierChanged]):
       
 15813         ASSERT_NOT_REACHED() because WebPDFView does not track the common multiplier.
       
 15814         
       
 15815         * WebView/WebView.m:
       
 15816         (-[WebView setTextSizeMultiplier:]):
       
 15817         Send [self _notifyTextSizeMultiplierChanged];
       
 15818         
       
 15819         (-[WebView _performTextSizingSelector:withObject:onTrackingDocs:selForNonTrackingDocs:newScaleFactor:]):
       
 15820         Alter the _textSizeMultiplier directly so that notification is not sent.
       
 15821         Minor formatting.
       
 15822         
       
 15823         (-[WebView _notifyTextSizeMultiplierChanged]):
       
 15824         New. Send _textSizeMultiplierChanged to all document views that track the common multiplier.
       
 15825 
       
 15826 2006-09-16  Brady Eidson <beidson@apple.com>
       
 15827 
       
 15828         Reviewed by Hyatt
       
 15829 
       
 15830         WebIconLoader is dead, long live WebCore::IconLoader
       
 15831         (code prune)
       
 15832 
       
 15833         * Loader/WebFrameLoader.h:
       
 15834         * Loader/WebFrameLoader.m:
       
 15835         (-[WebFrameLoader dealloc]):
       
 15836         (-[WebFrameLoader commitProvisionalLoad]):
       
 15837         * Loader/WebIconLoader.h: Removed.
       
 15838         * Loader/WebIconLoader.m: Removed.
       
 15839         * Misc/WebIconDatabase.h:
       
 15840         * Misc/WebIconDatabase.m:
       
 15841         * Misc/WebIconDatabasePrivate.h:
       
 15842         * WebCoreSupport/WebFrameBridge.m:
       
 15843         (-[WebFrameBridge notifyIconChanged:]):
       
 15844         * WebCoreSupport/WebIconDatabaseBridge.h:
       
 15845         * WebCoreSupport/WebIconDatabaseBridge.m:
       
 15846         (-[WebIconDatabaseBridge _init]):
       
 15847         (-[WebIconDatabaseBridge _setIconData:forIconURL:]):
       
 15848         (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):
       
 15849         * WebKit.exp:
       
 15850         * WebKit.xcodeproj/project.pbxproj:
       
 15851         * WebView/WebDataSource.m:
       
 15852         (-[WebDataSourcePrivate dealloc]):
       
 15853         (-[WebDataSource _stopLoading]):
       
 15854         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 15855         * WebView/WebDataSourceInternal.h:
       
 15856 
       
 15857 2006-09-16  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 15858 
       
 15859         Reviewed by Anders.
       
 15860 
       
 15861         http://bugs.webkit.org/show_bug.cgi?id=10887
       
 15862         Fix build error
       
 15863 
       
 15864         * MigrateHeaders.make: Remove reference to DOMEventPrivate.h.
       
 15865 
       
 15866 2006-09-15  Timothy Hatcher  <timothy@apple.com>
       
 15867 
       
 15868         Reviewed by Brady.
       
 15869 
       
 15870         Make new style ObjC methods public API.
       
 15871 
       
 15872         * MigrateHeaders.make:
       
 15873 
       
 15874 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
       
 15875 
       
 15876         Reviewed by Tim H.
       
 15877 
       
 15878         Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
       
 15879         Auto-generate DOMNode for the Objective-C bindings
       
 15880 
       
 15881         * MigrateHeaders.make:
       
 15882 
       
 15883 2006-09-15  Timothy Hatcher  <timothy@apple.com>
       
 15884 
       
 15885         Reviewed by Justin.
       
 15886 
       
 15887         Call the bridge directly for alter selection calls. All of this logic is now
       
 15888         in WebCore's SelectionController.
       
 15889 
       
 15890         * WebView/WebHTMLView.m:
       
 15891         (-[NSArray moveBackward:]):
       
 15892         (-[NSArray moveBackwardAndModifySelection:]):
       
 15893         (-[NSArray moveDown:]):
       
 15894         (-[NSArray moveDownAndModifySelection:]):
       
 15895         (-[NSArray moveForward:]):
       
 15896         (-[NSArray moveForwardAndModifySelection:]):
       
 15897         (-[NSArray moveLeft:]):
       
 15898         (-[NSArray moveLeftAndModifySelection:]):
       
 15899         (-[NSArray moveRight:]):
       
 15900         (-[NSArray moveRightAndModifySelection:]):
       
 15901         (-[NSArray moveToBeginningOfDocument:]):
       
 15902         (-[NSArray moveToBeginningOfDocumentAndModifySelection:]):
       
 15903         (-[NSArray moveToBeginningOfSentence:]):
       
 15904         (-[NSArray moveToBeginningOfSentenceAndModifySelection:]):
       
 15905         (-[NSArray moveToBeginningOfLine:]):
       
 15906         (-[NSArray moveToBeginningOfLineAndModifySelection:]):
       
 15907         (-[NSArray moveToBeginningOfParagraph:]):
       
 15908         (-[NSArray moveToBeginningOfParagraphAndModifySelection:]):
       
 15909         (-[NSArray moveToEndOfDocument:]):
       
 15910         (-[NSArray moveToEndOfDocumentAndModifySelection:]):
       
 15911         (-[NSArray moveToEndOfSentence:]):
       
 15912         (-[NSArray moveToEndOfSentenceAndModifySelection:]):
       
 15913         (-[NSArray moveToEndOfLine:]):
       
 15914         (-[NSArray moveToEndOfLineAndModifySelection:]):
       
 15915         (-[NSArray moveToEndOfParagraph:]):
       
 15916         (-[NSArray moveToEndOfParagraphAndModifySelection:]):
       
 15917         (-[NSArray moveParagraphBackwardAndModifySelection:]):
       
 15918         (-[NSArray moveParagraphForwardAndModifySelection:]):
       
 15919         (-[NSArray moveUp:]):
       
 15920         (-[NSArray moveUpAndModifySelection:]):
       
 15921         (-[NSArray moveWordBackward:]):
       
 15922         (-[NSArray moveWordBackwardAndModifySelection:]):
       
 15923         (-[NSArray moveWordForward:]):
       
 15924         (-[NSArray moveWordForwardAndModifySelection:]):
       
 15925         (-[NSArray moveWordLeft:]):
       
 15926         (-[NSArray moveWordLeftAndModifySelection:]):
       
 15927         (-[NSArray moveWordRight:]):
       
 15928         (-[NSArray moveWordRightAndModifySelection:]):
       
 15929         (-[NSArray pageUp:]):
       
 15930         (-[NSArray pageDown:]):
       
 15931         (-[NSArray pageUpAndModifySelection:]):
       
 15932         (-[NSArray pageDownAndModifySelection:]):
       
 15933 
       
 15934 2006-09-15  Adam Roben  <aroben@apple.com>
       
 15935 
       
 15936         Reviewed by eseidel.
       
 15937 
       
 15938         Fixes http://bugs.webkit.org/show_bug.cgi?id=10876
       
 15939         containsItemForURLUnicode uses matchLetter instead of
       
 15940         matchUnicodeLetter
       
 15941 
       
 15942         Small fixes for _WebCoreHistoryProvider.
       
 15943 
       
 15944         * History/WebHistory.m: Consistently use BUFFER_SIZE #define
       
 15945         (-[_WebCoreHistoryProvider containsItemForURLLatin1:length:]):
       
 15946         (-[_WebCoreHistoryProvider containsItemForURLUnicode:length:]):
       
 15947         Replace incorrect call to matchLetter to matchUnicodeLetter
       
 15948 
       
 15949 2006-09-13  Brady Eidson <beidson@apple.com>
       
 15950 
       
 15951         Reviewed by Maciej
       
 15952 
       
 15953         Add infrastructure to support icon loads taking place in WebCore
       
 15954         Will remove WebKit icon loaders in a later patch
       
 15955 
       
 15956         * WebCoreSupport/WebFrameBridge.m:
       
 15957         (-[WebFrameBridge notifyIconChanged:]):
       
 15958         (-[WebFrameBridge originalRequestURL]):
       
 15959         - Nuked two old, obsolete methods
       
 15960         - Added bridge for notifying of an icon change
       
 15961         - Added bridge for getting the "original request URL" which is still needed
       
 15962           until that info is available in the WebCore loaders
       
 15963 
       
 15964         * WebView/WebDataSource.m:
       
 15965         (-[WebDataSource _loadIcon]):
       
 15966         - Empty body just for now, as it still gets called - next patch will prune all the old impl out
       
 15967 
       
 15968 2006-09-13  Timothy Hatcher  <timothy@apple.com>
       
 15969 
       
 15970         Reviewed by Tim O.
       
 15971 
       
 15972         <rdar://problem/4726416> obsolete confusing "ADVISORY NOTE" comment in WebHistory.h
       
 15973 
       
 15974         Removed the "ADVISORY NOTE: This method may change for the 1.0 SDK" comments.
       
 15975 
       
 15976         * History/WebHistory.h:
       
 15977 
       
 15978 === Safari-521.26 ===
       
 15979 
       
 15980 2006-09-11  MorganL  <morlmor@yahoo.com>
       
 15981 
       
 15982         Reviewed/landed by aroben.
       
 15983 
       
 15984         Fixes http://bugs.webkit.org/show_bug.cgi?id=10765
       
 15985         Windows build busted due to std::copy usage in Vector.h
       
 15986 
       
 15987         * WebKit.vcproj/WebKit.vcproj: Define _SCL_SECURE_NO_DEPRECATE to get
       
 15988         rid of deprecation warnings on std::copy
       
 15989 
       
 15990 2006-09-11  Brady Eidson  <beidson@apple.com>
       
 15991 
       
 15992         Despite the fact that some people built okay without this change, it sure was biting me, 
       
 15993         probably because I just wiped my build directory for a fresh build - 
       
 15994         Today's earlier removal of DOMList.h needed to occur in MigrateHeaders.make, as well
       
 15995 
       
 15996         * MigrateHeaders.make: removed DOMList.h
       
 15997 
       
 15998 2006-09-10  Darin Adler  <darin@apple.com>
       
 15999 
       
 16000         Reviewed by Brady.
       
 16001 
       
 16002         - fix http://bugs.webkit.org/show_bug.cgi?id=10547
       
 16003           REGRESSION: Links that should open in a new window open in the same window,
       
 16004           while opening another blank window
       
 16005 
       
 16006         * WebView/WebFrame.m:
       
 16007         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 16008         Changed a mistaken "self" to "frame", which was the cause of the bug. Also
       
 16009         fixed the method so that it won't crash if createWebViewWithRequest does
       
 16010         something that has a side effect of releasing this WebView or this frame
       
 16011         by retaining "self" and "frame" as needed. Also fixed a problem where the
       
 16012         code to set "opener" was backwards, and would set the opener of the old
       
 16013         frame to point to the new frame instead of vice versa.
       
 16014 
       
 16015 2006-09-09  Sam Weinig  <sam.weinig@gmail.com>
       
 16016 
       
 16017         Reviewed by Eric.
       
 16018 
       
 16019         Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
       
 16020         Auto-generate the Objective-C DOM XPath bindings
       
 16021 
       
 16022         * MigrateHeaders.make:
       
 16023 
       
 16024 2006-09-09  Sam Weinig  <sam.weinig@gmail.com>
       
 16025 
       
 16026         Reviewed by Eric.
       
 16027 
       
 16028         Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
       
 16029         Even More Objective-C DOM auto-generation cleanup
       
 16030 
       
 16031         * MigrateHeaders.make:
       
 16032 
       
 16033 2006-09-08  Tim Omernick  <timo@apple.com>
       
 16034 
       
 16035         Reviewed by Brady Eidson.
       
 16036 
       
 16037         Rolled out Maciej's code cleanup from 8/22.  It turns out that keeping the "loading" flag
       
 16038         is a useful optimization, as it avoids many Objective-C method calls while polling resources
       
 16039         for their load state.
       
 16040 
       
 16041         This fixes a 3-4% PLT performance regression (as measured on my MacBook Pro).
       
 16042 
       
 16043         * Loader/WebFrameLoader.m:
       
 16044         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 16045         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 16046         (-[WebFrameLoader addSubresourceLoader:]):
       
 16047         (-[WebFrameLoader removeSubresourceLoader:]):
       
 16048         * WebView/WebDataSource.m:
       
 16049         (-[WebDataSourcePrivate dealloc]):
       
 16050         (-[WebDataSource _prepareForLoadStart]):
       
 16051         (-[WebDataSource _setLoading:]):
       
 16052         (-[WebDataSource _updateLoading]):
       
 16053         (-[WebDataSource _startLoading]):
       
 16054         (-[WebDataSource _stopLoading]):
       
 16055         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 16056         (-[WebDataSource isLoading]):
       
 16057         * WebView/WebDataSourceInternal.h:
       
 16058 
       
 16059 2006-09-07  Sam Weinig  <sam.weinig@gmail.com>
       
 16060 
       
 16061         Reviewed by Darin and Tim H.
       
 16062 
       
 16063         Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
       
 16064         Auto-generate the Objective-C DOM Traversal bindings
       
 16065 
       
 16066         * MigrateHeaders.make:
       
 16067 
       
 16068 2006-09-07  Sam Weinig  <sam.weinig@gmail.com>
       
 16069 
       
 16070         Reviewed by Darin.
       
 16071 
       
 16072         Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
       
 16073         Auto-generate the Objective-C DOM Events bindings
       
 16074 
       
 16075         * MigrateHeaders.make:
       
 16076         * WebKit.xcodeproj/project.pbxproj:
       
 16077 
       
 16078 2006-09-06  Alexey Proskuryakov  <ap@nypop.com>
       
 16079 
       
 16080         * MigrateHeaders.make: Fixed a double slash in 
       
 16081         "$(PRIVATE_HEADERS_DIR)//DOMCharacterDataPrivate.h" (this was reported
       
 16082         to cause a build failure under certain circumstances).
       
 16083 
       
 16084 2006-09-05  MorganL  <morlmor@yahoocom>
       
 16085 
       
 16086         Reviewed/landed by aroben.
       
 16087 
       
 16088         Fixes bug 10743: Windows build is busted.
       
 16089 
       
 16090         * COM/WebView.cpp:
       
 16091         (WebView::keyPress):
       
 16092 
       
 16093 2006-09-05  Timothy Hatcher  <timothy@apple.com>
       
 16094 
       
 16095         Reviewed by Darin.
       
 16096 
       
 16097         Drastically simplified the makefile for migrating headers from
       
 16098         WebCore and JavaScriptCore. The old version was always copying the files.
       
 16099 
       
 16100         * MigrateHeaders.make:
       
 16101 
       
 16102 2006-09-05  Darin Adler  <darin@apple.com>
       
 16103 
       
 16104         Reviewed by Alexey.
       
 16105 
       
 16106         - WebKit side of changes to encoding
       
 16107 
       
 16108         * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
       
 16109         Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
       
 16110         the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
       
 16111         and +[WebCoreFrameBridge stringWithData:textEncoding:].
       
 16112 
       
 16113         * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
       
 16114         nil encoding name. The bridge itself now has the rule that "nil encoding name
       
 16115         means Latin-1", so we don't need to check for nil.
       
 16116 
       
 16117         * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
       
 16118         we get the parent frame while walking up parent frames, because it's possible
       
 16119         for _checkLoadCompleteForThisFrame to release the last reference to the frame.
       
 16120         (Not reviewed; needed to run performance tests successfully.)
       
 16121 
       
 16122 2006-09-05  Timothy Hatcher  <timothy@apple.com>
       
 16123 
       
 16124         Reviewed by Tim O.
       
 16125 
       
 16126         <rdar://problem/4682225> conflicting typedefs in Netscape plug-in headers
       
 16127 
       
 16128         * Plugins/npfunctions.h: fix the return type for NPN_IntFromIdentifierProcPtr to be int32_t
       
 16129 
       
 16130 2006-09-04  Timothy Hatcher  <timothy@apple.com>
       
 16131 
       
 16132         Reviewed by Darin.
       
 16133 
       
 16134         Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
       
 16135         http://bugs.webkit.org/show_bug.cgi?id=10714
       
 16136 
       
 16137         - Added the new private DOM headers.
       
 16138         - Factored out the common commands into variables.
       
 16139         - Made WebDashboardRegion.h private again.
       
 16140         - Rename DOMDOMImplementation.h to DOMImplementation.h when files
       
 16141           are migrated. Also fixes up #imports.
       
 16142 
       
 16143         * MigrateHeaders.make:
       
 16144 
       
 16145 2006-09-03  Sam Weinig  <sam.weinig@gmail.com>
       
 16146 
       
 16147         Reviewed by Darin and Tim H.
       
 16148 
       
 16149         - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
       
 16150           Auto-generate the Objective-C DOM Stylesheet bindings
       
 16151 
       
 16152         * MigrateHeaders.make:
       
 16153 
       
 16154 2006-09-02  Sam Weinig  <sam.weinig@gmail.com>
       
 16155 
       
 16156         Reviewed by Tim H.
       
 16157 
       
 16158         - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
       
 16159           Auto-generate the Objective-C DOM CSS bindings
       
 16160 
       
 16161         * MigrateHeaders.make:
       
 16162 
       
 16163 2006-09-01  MorganL  <morlmor@yahoo.com>
       
 16164 
       
 16165         Reviewed by Darin. Updated/landed by Adam.
       
 16166 
       
 16167         Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
       
 16168         Windows build fixes
       
 16169 
       
 16170         * COM/WebFrame.cpp:
       
 16171         (WebFrame::initWithName):
       
 16172 
       
 16173 2006-09-01  Brady Eidson  <beidson@apple.com>
       
 16174 
       
 16175         Reviewed by Darin
       
 16176 
       
 16177         A "never should be reached" method was reached - lets not release the shared database bridge, esp
       
 16178         since we never retain it!
       
 16179 
       
 16180         * Misc/WebIconDatabase.m:
       
 16181         (-[WebIconDatabase _applicationWillTerminate:]): Don't release the bridge
       
 16182 
       
 16183 2006-09-01  Darin Adler  <darin@apple.com>
       
 16184 
       
 16185         Reviewed by Brady.
       
 16186 
       
 16187         - a few small tweaks to the icon database bridge
       
 16188 
       
 16189         * Misc/WebIconDatabase.m: (-[WebIconDatabase init]): Updated for name change.
       
 16190 
       
 16191         * WebCoreSupport/WebIconDatabaseBridge.h: Removed unneeded declarations.
       
 16192         * WebCoreSupport/WebIconDatabaseBridge.m:
       
 16193         (-[WebIconDatabaseBridge init]): Added. Always returns nil since you're not supposed
       
 16194         to allocate one of these.
       
 16195         (-[WebIconDatabaseBridge _init]): Renamed from init. Used internally to make the
       
 16196         shared instance. Added the "self = [super init]" idiom even though it's not important
       
 16197         in this case just to be consistent.
       
 16198         (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): Moved this up in the file
       
 16199         so it can be called without declaring it in the header.
       
 16200         (+[WebIconDatabaseBridge sharedInstance]): Renamed. Calls the new _init. Also use
       
 16201         CFRetain for compatibility.
       
 16202         (-[WebIconDatabaseBridge dealloc]): Emptied this out and made it just assert (false).
       
 16203         (-[WebIconDatabaseBridge finalize]): Added and made it assert (false) too.
       
 16204 
       
 16205 2006-09-01  Timothy Hatcher  <timothy@apple.com>
       
 16206 
       
 16207         Reviewed by Adele.
       
 16208 
       
 16209         Bug 10677: Omit "-webkit-text-security: none;" from the computed style list
       
 16210         http://bugs.webkit.org/show_bug.cgi?id=10677
       
 16211 
       
 16212         * WebInspector/webInspector/inspector.js:
       
 16213 
       
 16214 2006-08-31  Sam Weinig  <sam.weinig@gmail.com>
       
 16215 
       
 16216         Reviewed by Tim H.
       
 16217 
       
 16218         - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
       
 16219           Auto-generate the remaining Objective-C HTML DOM bindings
       
 16220 
       
 16221         * MigrateHeaders.make:
       
 16222 
       
 16223 2006-08-31  Adele Peterson  <adele@apple.com>
       
 16224 
       
 16225         Reviewed by Darin.
       
 16226 
       
 16227         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
       
 16228         Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
       
 16229 
       
 16230         * DefaultDelegates/WebDefaultContextMenuDelegate.m: (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 16231           Check that the selection isn't in a password field before adding these items to the default editing context menu.
       
 16232               Search In Google, Search In Spotlight, Look up in Dictionary, Spelling, Font, Speech, Writing Direction
       
 16233         * WebView/WebHTMLView.m: (-[WebHTMLView _isSelectionInPasswordField]): Added.
       
 16234         * WebView/WebHTMLViewPrivate.h:
       
 16235 
       
 16236 2006-08-31  Sam Weinig  <sam.weinig@gmail.com>
       
 16237 
       
 16238         Reviewed by Tim H.
       
 16239 
       
 16240         - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
       
 16241           Auto-generate another 20 Objective-C DOM HTML bindings
       
 16242 
       
 16243         * MigrateHeaders.make:
       
 16244         * WebKit.xcodeproj/project.pbxproj:
       
 16245 
       
 16246 2006-08-31  Adele Peterson  <adele@apple.com>
       
 16247 
       
 16248         Reviewed by John Sullivan.
       
 16249 
       
 16250         Removed wkSecureEventInput and wkSetSecureEventInput, since this can be done with API.
       
 16251 
       
 16252         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
 16253 
       
 16254 2006-08-31  John Sullivan  <sullivan@apple.com>
       
 16255 
       
 16256         Reviewed by Tim Omernick
       
 16257         
       
 16258         - fixed <rdar://problem/4711200> Loading history would be faster if it bypassed 
       
 16259         NSURL API for local files
       
 16260 
       
 16261         * History/WebHistory.m:
       
 16262         (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
       
 16263         Load file URLs using [NSDictionary dictionaryWithContentsOfFile:]. I also cleaned up some minor
       
 16264         style issues in this method, and I removed the support for old NSArray-style history files (which we
       
 16265         stopped using before Safari 1.0).
       
 16266 
       
 16267 2006-08-30  Adele Peterson  <adele@apple.com>
       
 16268 
       
 16269         Reviewed by Hyatt.
       
 16270 
       
 16271         WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
       
 16272         Enable secure input mode for new password fields
       
 16273 
       
 16274         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
 16275 
       
 16276 2006-08-30  Brady Eidson  <beidson@apple.com>
       
 16277 
       
 16278         Reviewed by John
       
 16279 
       
 16280         <rdar://problem/4707718> Change behavior so if the WebCore::IconDatabase can't open, WebKit releases the bridge and 
       
 16281         continues on as if the IconDatabase is disabled.
       
 16282  
       
 16283         * Misc/WebIconDatabase.m:
       
 16284         (-[WebIconDatabase init]): Release the bridge on failure to open
       
 16285         * WebCoreSupport/WebIconDatabaseBridge.m:
       
 16286         (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved static shared instance out as a global
       
 16287         (-[WebIconDatabaseBridge dealloc]): Clear pointer to the shared instance
       
 16288 
       
 16289 2006-08-30  Timothy Hatcher  <timothy@apple.com>
       
 16290 
       
 16291         Reviewed by Darin.
       
 16292 
       
 16293         Simplify the header copies from WebCore and JavaScriptCore.
       
 16294         Headers that need to be migrated from the other projects need
       
 16295         to be added to MigrateHeaders.make.
       
 16296 
       
 16297         * MigrateHeaders.make: Added.
       
 16298         * WebKit.xcodeproj/project.pbxproj:
       
 16299 
       
 16300 2006-08-30  Sam Weinig  <sam.weinig@gmail.com>
       
 16301 
       
 16302         Reviewed by Tim H.
       
 16303 
       
 16304         - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
       
 16305           Auto-generate 10 more Objective-C DOM HTML bindings
       
 16306 
       
 16307         * WebKit.xcodeproj/project.pbxproj:
       
 16308 
       
 16309 2006-08-30  Adele Peterson  <adele@apple.com>
       
 16310 
       
 16311         Reviewed by Darin.
       
 16312 
       
 16313         WebKit part of fix for:
       
 16314         http://bugs.webkit.org/show_bug.cgi?id=10576
       
 16315         Disallow copy from new password fields
       
 16316 
       
 16317         * WebView/WebHTMLView.m:
       
 16318         (-[WebHTMLView _canCopy]): Now also calls across the bridge to ask if it mayCopy.
       
 16319         (-[WebHTMLView _canCut]): Calls _canCopy now.
       
 16320         (-[NSArray validateUserInterfaceItem:]): Calls _canCut when validating the "Cut" menu item.
       
 16321          This used to call _canDelete (which used to be the same as _canCut), but now _canCut also checks _canCopy.
       
 16322 
       
 16323 2006-08-30  Karl Adam  <karladam@yahoo-inc.com>
       
 16324 
       
 16325         Reviewed by Eric and Tim H.
       
 16326 
       
 16327         Bug 10634: -webView:dragDestinationActionMaskForDraggingInfo: is ignored
       
 16328         http://bugs.webkit.org/show_bug.cgi?id=10634
       
 16329         
       
 16330         Remove the check for canShowFile: from _web_bestURL: since
       
 16331         it shouldn't be concerned with whether or not the view
       
 16332         can show the URL, merely return the most appropriate URL.
       
 16333 
       
 16334         * Misc/WebNSPasteboardExtras.m:
       
 16335         (-[NSPasteboard _web_bestURL]):
       
 16336         * Misc/WebNSViewExtras.m:
       
 16337         (-[NSView _web_dragOperationForDraggingInfo:]):
       
 16338 
       
 16339 2006-08-29  Brady Eidson  <beidson@apple.com>
       
 16340 
       
 16341         Reviewed by Kevin Decker (Sarge)
       
 16342 
       
 16343         <rdar://problem/4678414> - New IconDB needs to delete icons when asked
       
 16344 
       
 16345         * Misc/WebIconDatabase.m:
       
 16346         (-[WebIconDatabase removeAllIcons]): Call through to WebCore to remove icons, then send notification
       
 16347 
       
 16348 2006-08-29  Brady Eidson  <beidson@apple.com>
       
 16349 
       
 16350         Reviewed by Alice
       
 16351 
       
 16352         Added a truth value check for to setIconURL:forURL so WebKit can avoid sending a notification
       
 16353         This is a win on the iBench
       
 16354 
       
 16355         * Misc/WebIconDatabase.m:
       
 16356         (-[WebIconDatabase _setIconURL:forURL:]):
       
 16357 
       
 16358 2006-08-29  Brady Eidson  <beidson@apple.com>
       
 16359 
       
 16360         Reviewed by Tim Hatchers rubber stamp
       
 16361 
       
 16362         Removed some accidentally left-in console spew during the conversion to the new DB
       
 16363  
       
 16364         * Misc/WebIconDatabase.m:
       
 16365         (objectFromPathForKey): Nuked some NSLogs
       
 16366 
       
 16367 2006-08-29  Tim Omernick  <timo@apple.com>
       
 16368 
       
 16369         Reviewed by Darin Adler.
       
 16370 
       
 16371         <rdar://problem/4688618> REGRESSION(10.4.7-9A241): JMol java applet fails in Safari not Firefox
       
 16372 
       
 16373         No layout test for now because Java doesn't work in DumpRenderTree.
       
 16374 
       
 16375         * Plugins/WebPluginDatabase.m:
       
 16376         (-[WebPluginDatabase refresh]):
       
 16377         Add each plug-in MIME type to registeredMIMETypes, even if we don't register a document view class for the
       
 16378         MIME type.  This fixes -[WebPluginDatabase isMIMETypeRegistered:] and thus fallback content for Java applets
       
 16379         (we were always rendering fallback content, if any, for Java applets).
       
 16380 
       
 16381 2006-08-29  Sam Weinig  <sam.weinig@gmail.com>
       
 16382 
       
 16383         Reviewed by Tim H.
       
 16384 
       
 16385         - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
       
 16386           Auto-generate the remaining Objective-C DOM bindings
       
 16387 
       
 16388           Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
       
 16389           and DOMHTMLOptionsCollection.
       
 16390 
       
 16391         * WebKit.xcodeproj/project.pbxproj:
       
 16392 
       
 16393 2006-08-28  Brady Eidson  <beidson@apple.com>
       
 16394 
       
 16395         Reviewed by Darin
       
 16396 
       
 16397         Short of a few small snippets that still need to be pushed to WebCore, this
       
 16398         is a final prune of WebIconDatabase.  WebFileDatabase and WebLRUFileList are gone
       
 16399         and the small remaining snippets of WebFileDatabase code that were still important
       
 16400         are now in static functions in WebIconDatabase.m
       
 16401 
       
 16402         * Loader/WebIconLoader.m:
       
 16403         (-[WebIconLoader didFinishLoading]): Removed the flag
       
 16404         * Misc/WebFileDatabase.h: Removed.
       
 16405         * Misc/WebFileDatabase.m: Removed.
       
 16406         * Misc/WebIconDatabase.m:
       
 16407         (+[WebIconDatabase sharedIconDatabase]):
       
 16408         (-[WebIconDatabase init]):
       
 16409         (-[WebIconDatabase iconForURL:withSize:cache:]):
       
 16410         (-[WebIconDatabase iconURLForURL:]):
       
 16411         (-[WebIconDatabase defaultIconWithSize:]):
       
 16412         (-[WebIconDatabase retainIconForURL:]):
       
 16413         (-[WebIconDatabase releaseIconForURL:]):
       
 16414         (-[WebIconDatabase _isEnabled]):
       
 16415         (-[WebIconDatabase _setIconData:forIconURL:]):
       
 16416         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 16417         (-[WebIconDatabase _setIconURL:forURL:]):
       
 16418         (-[WebIconDatabase _hasEntryForIconURL:]):
       
 16419         (-[WebIconDatabase _applicationWillTerminate:]):
       
 16420         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 16421         (uniqueFilePathForKey): Added from WebFileDatabase
       
 16422         (objectFromPathForKey): Added from WebFileDatabase
       
 16423         (iconDataFromPathForIconURL):
       
 16424         (-[WebIconDatabase _convertToWebCoreFormat]): Make use of static functions and local variables
       
 16425           instead of using WebFileDatabase and WebIconDatabase variables that are now obsolete
       
 16426         * Misc/WebIconDatabasePrivate.h: Removed alot of obsoleted members
       
 16427         * Misc/WebLRUFileList.h: Removed.
       
 16428         * Misc/WebLRUFileList.m: Removed.
       
 16429         * WebKit.xcodeproj/project.pbxproj: Deleted 4 files
       
 16430         * WebKitPrefix.h: Removed ICONDEBUG
       
 16431 
       
 16432 2006-08-28  Tim Omernick  <timo@apple.com>
       
 16433 
       
 16434         Reviewed by Darin Adler.
       
 16435 
       
 16436         * Plugins/WebBaseNetscapePluginView.m:
       
 16437         (-[WebBaseNetscapePluginView createPluginScriptableObject]):
       
 16438         Removed a bogus typecast.
       
 16439 
       
 16440 2006-08-28  Tim Omernick  <timo@apple.com>
       
 16441 
       
 16442         Reviewed by John Sullivan.
       
 16443 
       
 16444         Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
       
 16445         <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
       
 16446         in Firefox
       
 16447 
       
 16448         * Plugins/WebBaseNetscapePluginView.h:
       
 16449         * Plugins/WebBaseNetscapePluginView.m:
       
 16450         (-[WebBaseNetscapePluginView createPluginScriptableObject]):
       
 16451         Renamed this method (see corresponding WebCore ChangeLog entry for an explanation).
       
 16452         Style changes.
       
 16453 
       
 16454 2006-08-28  Brady Eidson  <beidson@apple.com>
       
 16455 
       
 16456         Reviewed by Tim Hatcher's rubberstamp
       
 16457 
       
 16458         Rolled out my last change (16070 - pruning WebFileDatabase code) as it caused a difficult-to-track down
       
 16459         failure in layout tests on a release build.
       
 16460 
       
 16461         * Misc/WebFileDatabase.h:
       
 16462         * Misc/WebFileDatabase.m:
       
 16463         (+[WebFileDatabaseOp opWithCode:key:object:]):
       
 16464         (-[WebFileDatabaseOp initWithCode:key:object:]):
       
 16465         (-[WebFileDatabaseOp opcode]):
       
 16466         (-[WebFileDatabaseOp key]):
       
 16467         (-[WebFileDatabaseOp object]):
       
 16468         (-[WebFileDatabaseOp perform:]):
       
 16469         (-[WebFileDatabaseOp dealloc]):
       
 16470         (SetThreadPriority):
       
 16471         (-[WebFileDatabase _createLRUList:]):
       
 16472         (-[WebFileDatabase _truncateToSizeLimit:]):
       
 16473         (+[WebFileDatabase _syncLoop:]):
       
 16474         (databaseInit):
       
 16475         (-[WebFileDatabase setTimer]):
       
 16476         (-[WebFileDatabase setObject:forKey:]):
       
 16477         (-[WebFileDatabase removeObjectForKey:]):
       
 16478         (-[WebFileDatabase removeAllObjects]):
       
 16479         (-[WebFileDatabase objectForKey:]):
       
 16480         (-[WebFileDatabase performSetObject:forKey:]):
       
 16481         (-[WebFileDatabase performRemoveObjectForKey:]):
       
 16482         (-[WebFileDatabase open]):
       
 16483         (-[WebFileDatabase close]):
       
 16484         (-[WebFileDatabase lazySync:]):
       
 16485         (-[WebFileDatabase sync]):
       
 16486         (-[WebFileDatabase sizeLimit]):
       
 16487         (-[WebFileDatabase count]):
       
 16488         (-[WebFileDatabase usage]):
       
 16489         (-[WebFileDatabase setSizeLimit:]):
       
 16490         * Misc/WebIconDatabase.m:
       
 16491         (-[WebIconDatabase _createFileDatabase]):
       
 16492         (-[WebIconDatabase _loadIconDictionaries]):
       
 16493         * WebKit.xcodeproj/project.pbxproj:
       
 16494 
       
 16495 2006-08-28  Darin Adler  <darin@apple.com>
       
 16496 
       
 16497         Reviewed by Tim Hatcher.
       
 16498 
       
 16499         * WebInspector/webInspector/inspector.js: Add "resize: none" to the list of
       
 16500         default values for CSS properties so it will be omitted from most displays
       
 16501         of computed style.
       
 16502 
       
 16503 2006-08-28  Brady Eidson  <beidson@apple.com>
       
 16504 
       
 16505         Reviewed by Maciej
       
 16506 
       
 16507         Major prune of unnecessary WebFileDatabase code.  In the end, what
       
 16508         useful code that remains in WebFileDatabase will likely be moved directly
       
 16509         into WebIconDatabase
       
 16510 
       
 16511         * Misc/WebFileDatabase.h:
       
 16512         * Misc/WebFileDatabase.m:
       
 16513         (-[WebFileDatabase initWithPath:]):
       
 16514         (-[WebFileDatabase objectForKey:]):
       
 16515         (-[WebFileDatabase open]):
       
 16516         (-[WebFileDatabase close]):
       
 16517         * Misc/WebIconDatabase.m:
       
 16518         (-[WebIconDatabase _createFileDatabase]):
       
 16519         (-[WebIconDatabase _loadIconDictionaries]):
       
 16520         * Misc/WebLRUFileList.h: Removed.
       
 16521         * Misc/WebLRUFileList.m: Removed.
       
 16522         * WebKit.xcodeproj/project.pbxproj:
       
 16523 
       
 16524 2006-08-27  Sam Weinig  <sam.weinig@gmail.com>
       
 16525 
       
 16526         Reviewed by Tim H.
       
 16527 
       
 16528         - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
       
 16529           WebCore needs autogenerated Obj-C DOM bindings
       
 16530 
       
 16531           First round of auto-generated Objective C DOM bindings, starting
       
 16532           with the DOM Core.
       
 16533 
       
 16534         * WebKit.xcodeproj/project.pbxproj:
       
 16535 
       
 16536 2006-08-25  Brady Eidson  <beidson@apple.com>
       
 16537 
       
 16538         Reviewed by Tim Hatcher
       
 16539 
       
 16540         Fixed up some leaks on [WebIconDatabase init]
       
 16541 
       
 16542         * Misc/WebIconDatabase.m:
       
 16543         (-[WebIconDatabase init]):
       
 16544 
       
 16545 2006-08-24  Timothy Hatcher  <timothy@apple.com>
       
 16546 
       
 16547         Reviewed by Darin.
       
 16548 
       
 16549         * WebView/WebFrame.m:
       
 16550         (-[WebFrame _updateBackground]): reworded the comment about scroll view and setDrawsBackground:YES
       
 16551         * WebView/WebView.m:
       
 16552         (-[WebViewPrivate dealloc]): release the background color
       
 16553 
       
 16554 2006-08-24  Timothy Hatcher  <timothy@apple.com>
       
 16555 
       
 16556         Reviewed by Hyatt.
       
 16557 
       
 16558         WebView API to allow changing the background color that draws under transparent page backgrounds.
       
 16559 
       
 16560         * WebView/WebFrame.m:
       
 16561         (-[WebFrame _makeDocumentView]):
       
 16562         (-[WebFrame _updateBackground]):
       
 16563         * WebView/WebFrameInternal.h:
       
 16564         * WebView/WebFrameView.m:
       
 16565         (-[WebFrameView drawRect:]):
       
 16566         * WebView/WebView.m:
       
 16567         (-[WebView setBackgroundColor:]):
       
 16568         (-[WebView backgroundColor]):
       
 16569         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 16570         (-[WebView setDrawsBackground:]):
       
 16571         * WebView/WebViewPrivate.h:
       
 16572 
       
 16573 2006-08-24  Timothy Hatcher  <timothy@apple.com>
       
 16574 
       
 16575         Reviewed by Darin.
       
 16576 
       
 16577         Fix for Mail stationary. Selecting a stationary item would cause this exception.
       
 16578         *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
       
 16579         Uncaught exception - *** -[WebSubresourceLoader copyWithZone:]: selector not recognized
       
 16580 
       
 16581         * Loader/WebFrameLoader.m:
       
 16582         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 16583         Use _webkit_setObject:forUncopiedKey: when addign the resource to pendingArchivedResources.
       
 16584 
       
 16585 2006-08-23  Maciej Stachowiak  <mjs@apple.com>
       
 16586 
       
 16587         Reviewed by Adele.
       
 16588         
       
 16589         - fix assertion which I accidentally changed to one that sometimes fails
       
 16590         http://bugs.webkit.org/show_bug.cgi?id=10531
       
 16591         
       
 16592         * Loader/WebDocumentLoadState.m:
       
 16593         (-[WebDocumentLoadState dealloc]):
       
 16594         * WebView/WebDataSource.m:
       
 16595         (-[WebDataSourcePrivate dealloc]):
       
 16596         (-[WebDataSource dealloc]):
       
 16597 
       
 16598 2006-08-23  Maciej Stachowiak  <mjs@apple.com>
       
 16599 
       
 16600         Reviewed by Brady.
       
 16601         
       
 16602         - move WebFrame code that creates WebDataSources down to WebFrameLoader, in preparation
       
 16603         for WebFrameLoader just holding on to WebDocumentLoadState
       
 16604 
       
 16605         * Loader/WebFrameLoader.h:
       
 16606         * Loader/WebFrameLoader.m:
       
 16607         (-[WebFrameLoader _loadRequest:archive:]):
       
 16608         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
       
 16609         (-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
       
 16610         (-[WebFrameLoader reload]):
       
 16611         * WebView/WebFrame.m:
       
 16612         (-[WebFrame _loadItem:withLoadType:]):
       
 16613         (-[WebFrame _continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
       
 16614         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 16615         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 16616         (-[WebFrame _shouldReloadToHandleUnreachableURLFromRequest:]):
       
 16617         (-[WebFrame loadRequest:]):
       
 16618         (-[WebFrame loadArchive:]):
       
 16619         (-[WebFrame reload]):
       
 16620         * WebView/WebFrameInternal.h:
       
 16621         * WebView/WebFramePrivate.h:
       
 16622         * WebView/WebView.m:
       
 16623         (-[WebView setCustomTextEncodingName:]):
       
 16624 
       
 16625 2006-08-23  Brady Eidson  <beidson@apple.com>
       
 16626 
       
 16627         Reviewed by Maciej
       
 16628 
       
 16629         First pass at pruning unused WebIconDatabase code.  Focus on removing methods that simply
       
 16630         have no place in the new DB at all.  A few renames and a few important FIXMEs result, but no
       
 16631         functionality changes.
       
 16632 
       
 16633         * Loader/WebIconLoader.m:
       
 16634         (-[WebIconLoader didFinishLoading]): Call to WebIconDatabase instead of directly to the bridge
       
 16635         * Misc/WebIconDatabase.h:
       
 16636         * Misc/WebIconDatabase.m:
       
 16637         (-[WebIconDatabase init]):
       
 16638         (-[WebIconDatabase iconForURL:withSize:cache:]):
       
 16639         (-[WebIconDatabase iconURLForURL:]):
       
 16640         (-[WebIconDatabase defaultIconWithSize:]):
       
 16641         (-[WebIconDatabase retainIconForURL:]):
       
 16642         (-[WebIconDatabase releaseIconForURL:]):
       
 16643         (-[WebIconDatabase removeAllIcons]):
       
 16644         (-[WebIconDatabase _setIconData:forIconURL:]):
       
 16645         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 16646         (-[WebIconDatabase _setIconURL:forURL:]):
       
 16647         (-[WebIconDatabase _hasEntryForIconURL:]):
       
 16648         (-[WebIconDatabase _applicationWillTerminate:]):
       
 16649         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 16650         * Misc/WebIconDatabasePrivate.h: Changed setIcon: to setIconData:
       
 16651 
       
 16652 2006-08-23  Maciej Stachowiak  <mjs@apple.com>
       
 16653 
       
 16654         Reviewed by Adele.
       
 16655         
       
 16656         - started factoring most of the guts of WebDataSource into a new class
       
 16657         
       
 16658         WebDocumentLoadState is decoupled from the rest of WebKit and will
       
 16659         be moved down to WebCore. I only moved one of the data fields of
       
 16660         WebDataSource for now.
       
 16661 
       
 16662         * Loader/WebDocumentLoadState.h: Added.
       
 16663         * Loader/WebDocumentLoadState.m: Added.
       
 16664         (-[WebDocumentLoadState initWithRequest:]): New class.
       
 16665         (-[WebDocumentLoadState dealloc]):
       
 16666         (-[WebDocumentLoadState setFrameLoader:]):
       
 16667         (-[WebDocumentLoadState setMainResourceData:]):
       
 16668         (-[WebDocumentLoadState mainResourceData]):
       
 16669         * Loader/WebFrameLoader.m:
       
 16670         (-[WebFrameLoader _setDataSource:]): Remove redundant _setWebFrame: call,
       
 16671         it would have been called already by this point.
       
 16672         (-[WebFrameLoader _setProvisionalDataSource:]): ditto.
       
 16673         * WebKit.xcodeproj/project.pbxproj:
       
 16674         * WebView/WebDataSource.m:
       
 16675         (-[WebDataSourcePrivate dealloc]):
       
 16676         (-[WebDataSource _setWebFrame:]):
       
 16677         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 16678         (-[WebDataSource initWithRequest:]):
       
 16679         (-[WebDataSource data]):
       
 16680 
       
 16681 2006-08-23  Maciej Stachowiak  <mjs@apple.com>
       
 16682 
       
 16683         Reviewed by Adele.
       
 16684         
       
 16685         - refactoring of WebDataSource in preparation for moving a bunch of it to a new class
       
 16686         
       
 16687         - minimize WebDataSourceInternal.h to be only methods called from outside WebDataSource
       
 16688         - reduce Private category implementation to be only the SPI methods
       
 16689         - make new Internal and FileInternal categories which contain the
       
 16690         remainder (depending on whether they are called from outside of
       
 16691         WebDataSource)
       
 16692 
       
 16693         * WebView/WebDataSource.m:
       
 16694         (-[WebDataSource _setMainDocumentError:]):
       
 16695         (addTypesFromClass):
       
 16696         (+[WebDataSource _representationClassForMIMEType:]):
       
 16697         (-[WebDataSource _commitIfReady]):
       
 16698         (-[WebDataSource _commitLoadWithData:]):
       
 16699         (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
       
 16700         (-[WebDataSource _addResponse:]):
       
 16701         (-[WebDataSource _revertToProvisionalState]):
       
 16702         (-[WebDataSource _mainDocumentError]):
       
 16703         (-[WebDataSource _addSubframeArchives:]):
       
 16704         (-[WebDataSource _fileWrapperForURL:]):
       
 16705         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
       
 16706         (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
       
 16707         (-[WebDataSource _finishedLoading]):
       
 16708         (-[WebDataSource _setResponse:]):
       
 16709         (-[WebDataSource _setRequest:]):
       
 16710         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 16711         (-[WebDataSource _receivedMainResourceError:complete:]):
       
 16712         (-[WebDataSource _mainReceivedError:complete:]):
       
 16713         (-[WebDataSource _defersCallbacks]):
       
 16714         (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
       
 16715         (-[WebDataSource _didFailLoadingWithError:forResource:]):
       
 16716         (-[WebDataSource _didFinishLoadingForResource:]):
       
 16717         (-[WebDataSource _didReceiveData:contentLength:forResource:]):
       
 16718         (-[WebDataSource _didReceiveResponse:forResource:]):
       
 16719         (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
       
 16720         (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
       
 16721         (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
       
 16722         (-[WebDataSource _identifierForInitialRequest:]):
       
 16723         (-[WebDataSource _archivedSubresourceForURL:]):
       
 16724         (-[WebDataSource _startLoading]):
       
 16725         (-[WebDataSource _stopRecordingResponses]):
       
 16726         (-[WebDataSource _loadingStartedTime]):
       
 16727         (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
       
 16728         (-[WebDataSource _documentFragmentWithArchive:]):
       
 16729         (-[WebDataSource _documentFragmentWithImageResource:]):
       
 16730         (-[WebDataSource _imageElementWithImageResource:]):
       
 16731         (-[WebDataSource _title]):
       
 16732         (-[WebDataSource _isStopping]):
       
 16733         (-[WebDataSource _setWebFrame:]):
       
 16734         (-[WebDataSource _URL]):
       
 16735         (-[WebDataSource _loadFromPageCache:]):
       
 16736         (-[WebDataSource _popSubframeArchiveWithName:]):
       
 16737         (-[WebDataSource _setIsClientRedirect:]):
       
 16738         (-[WebDataSource _setURL:]):
       
 16739         (-[WebDataSource _setLastCheckedRequest:]):
       
 16740         (-[WebDataSource _defersCallbacksChanged]):
       
 16741         (-[WebDataSource _lastCheckedRequest]):
       
 16742         (-[WebDataSource _stopLoading]):
       
 16743         (-[WebDataSource _bridge]):
       
 16744         (-[WebDataSource _webView]):
       
 16745         (-[WebDataSource _triggeringAction]):
       
 16746         (-[WebDataSource _setTriggeringAction:]):
       
 16747         (-[WebDataSource __adoptRequest:]):
       
 16748         (-[WebDataSource _isDocumentHTML]):
       
 16749         (-[WebDataSource _stopLoadingWithError:]):
       
 16750         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 16751         (-[WebDataSource _responses]):
       
 16752         (-[WebDataSource _makeRepresentation]):
       
 16753         (-[WebDataSource _isClientRedirect]):
       
 16754         (-[WebDataSource _originalRequest]):
       
 16755         (-[WebDataSource _URLForHistory]):
       
 16756         (-[WebDataSource _addToUnarchiveState:]):
       
 16757         (-[WebDataSource _setOverrideEncoding:]):
       
 16758         (-[WebDataSource _setIconURL:]):
       
 16759         (-[WebDataSource _setIconURL:withType:]):
       
 16760         (-[WebDataSource _overrideEncoding]):
       
 16761         (-[WebDataSource _setTitle:]):
       
 16762         * WebView/WebDataSourceInternal.h:
       
 16763 
       
 16764 2006-08-23  Brady Eidson  <beidson@apple.com>
       
 16765 
       
 16766         Reviewed by John Sullivan
       
 16767 
       
 16768         /me crosses fingers
       
 16769         Flip the switch to the new Icon Database
       
 16770         Massive code pruning is coming up
       
 16771 
       
 16772         * WebKitPrefix.h: Flipped the switch
       
 16773 
       
 16774 2006-08-23  Brady Eidson  <beidson@apple.com>
       
 16775 
       
 16776         Reviewed by Beth
       
 16777         Since I just pushed the default URL icon from WebKit to WebCore, but
       
 16778         WebKit was still using its version of the default icon, this patch makes it
       
 16779         use the WebCore version
       
 16780 
       
 16781         * Misc/WebIconDatabase.m:
       
 16782         (-[WebIconDatabase defaultIconWithSize:]):
       
 16783 
       
 16784 2006-08-22  Maciej Stachowiak  <mjs@apple.com>
       
 16785 
       
 16786         Reviewed by Brady.
       
 16787         
       
 16788         - remove "loading" flag from WebDataSource and code that manages it; it is redundat.
       
 16789 
       
 16790         * Loader/WebFrameLoader.m:
       
 16791         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 16792         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 16793         (-[WebFrameLoader addSubresourceLoader:]):
       
 16794         (-[WebFrameLoader removeSubresourceLoader:]):
       
 16795         * WebView/WebDataSource.m:
       
 16796         (-[WebDataSourcePrivate dealloc]):
       
 16797         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 16798         (-[WebDataSource _stopLoading]):
       
 16799         (-[WebDataSource _prepareForLoadStart]):
       
 16800         (-[WebDataSource _startLoading]):
       
 16801         (-[WebDataSource isLoading]):
       
 16802         * WebView/WebDataSourceInternal.h:
       
 16803 
       
 16804 2006-08-22  Maciej Stachowiak  <mjs@apple.com>
       
 16805 
       
 16806         Reviewed by Eric.
       
 16807 
       
 16808         <rdar://problem/4683948> REGRESSION: Assertion failure in [FrameProgressEntry addChild:forDataSource:] (fandango.com)
       
 16809         
       
 16810         * Loader/WebFrameLoader.m:
       
 16811         (-[WebFrameLoader addSubresourceLoader:]): Add a WebKit-level assertion that should fire when this bad
       
 16812         situation occurs.
       
 16813         * Loader/WebSubresourceLoader.m:
       
 16814         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]): Prevent
       
 16815         the situation from occuring.
       
 16816 
       
 16817 2006-08-22  Maciej Stachowiak  <mjs@apple.com>
       
 16818 
       
 16819         Reviewed by Anders.
       
 16820         
       
 16821         - pull more WebDataSource code into WebFrameLoader
       
 16822         - make WebMainResourceLoader not depend on WebKit or on SPI
       
 16823 
       
 16824         * Loader/WebFrameLoader.h:
       
 16825         * Loader/WebFrameLoader.m:
       
 16826         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
       
 16827         (-[WebFrameLoader _updateIconDatabaseWithURL:]):
       
 16828         (-[WebFrameLoader _notifyIconChanged:]):
       
 16829         (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
       
 16830         (-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
       
 16831         (-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
       
 16832         (-[WebFrameLoader cancelContentPolicy]):
       
 16833         * Loader/WebIconLoader.m:
       
 16834         (-[WebIconLoader didFinishLoading]):
       
 16835         * Loader/WebLoader.m:
       
 16836         (-[NSURLProtocol loadWithRequest:]):
       
 16837         (-[NSURLProtocol setDefersCallbacks:]):
       
 16838         * Loader/WebMainResourceLoader.h:
       
 16839         * Loader/WebMainResourceLoader.m:
       
 16840         (-[WebMainResourceLoader initWithFrameLoader:]):
       
 16841         (-[WebMainResourceLoader dealloc]):
       
 16842         (-[WebMainResourceLoader cancelWithError:]):
       
 16843         (-[WebMainResourceLoader continueAfterNavigationPolicy:formState:]):
       
 16844         (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
       
 16845         (-[WebMainResourceLoader continueAfterContentPolicy:]):
       
 16846         (-[WebMainResourceLoader checkContentPolicy]):
       
 16847         (-[WebMainResourceLoader didReceiveResponse:]):
       
 16848         * Plugins/WebPluginContainerCheck.m:
       
 16849         * WebCoreSupport/WebSystemInterface.m:
       
 16850         (InitWebCoreSystemInterface):
       
 16851         * WebView/WebDataSource.m:
       
 16852         (-[WebDataSource _loadIcon]):
       
 16853         (-[WebDataSource _cancelledError]):
       
 16854         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
       
 16855         (+[WebDataSource _representationClassForMIMEType:]):
       
 16856         (-[WebDataSource _commitLoadWithData:]):
       
 16857         (-[WebDataSource _isDocumentHTML]):
       
 16858         * WebView/WebDataSourceInternal.h:
       
 16859         * WebView/WebFramePrivate.h:
       
 16860         * WebView/WebPolicyDelegate.m:
       
 16861         * WebView/WebPolicyDelegatePrivate.h:
       
 16862 
       
 16863 2006-08-21  Maciej Stachowiak  <mjs@apple.com>
       
 16864 
       
 16865         Reviewed by Brady.
       
 16866         
       
 16867         - move more code from WebDataSource to WebFrameLoader
       
 16868         
       
 16869         Also marked a few more methods in WebDataSource as likely MOVABLE in a future round, since they do not
       
 16870         use any of WebDataSource's private data.
       
 16871 
       
 16872         * Loader/WebFrameLoader.h:
       
 16873         * Loader/WebFrameLoader.m:
       
 16874         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 16875         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 16876         (-[WebFrameLoader addSubresourceLoader:]):
       
 16877         (-[WebFrameLoader removeSubresourceLoader:]):
       
 16878         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
       
 16879         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
       
 16880         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 16881         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
       
 16882         (-[WebFrameLoader _didFinishLoadingForResource:]):
       
 16883         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
       
 16884         (-[WebFrameLoader _privateBrowsingEnabled]):
       
 16885         (-[WebFrameLoader _finishedLoadingResource]):
       
 16886         (-[WebFrameLoader _receivedError:]):
       
 16887         (-[WebFrameLoader _finishedLoading]):
       
 16888         * Loader/WebMainResourceLoader.m:
       
 16889         (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
       
 16890         (-[WebMainResourceLoader didFinishLoading]):
       
 16891         * Loader/WebNetscapePlugInStreamLoader.m:
       
 16892         (-[WebNetscapePlugInStreamLoader didFinishLoading]):
       
 16893         (-[WebNetscapePlugInStreamLoader didFailWithError:]):
       
 16894         (-[WebNetscapePlugInStreamLoader cancelWithError:]):
       
 16895         * Loader/WebSubresourceLoader.m:
       
 16896         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
       
 16897         (-[WebSubresourceLoader signalFinish]):
       
 16898         (-[WebSubresourceLoader didFailWithError:]):
       
 16899         (-[WebSubresourceLoader cancel]):
       
 16900         * Plugins/WebNetscapePluginStream.m:
       
 16901         (-[WebNetscapePluginStream start]):
       
 16902         * WebView/WebDataSource.m:
       
 16903         (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]):
       
 16904         (-[WebDataSource _updateIconDatabaseWithURL:]):
       
 16905         (-[WebDataSource _loadIcon]):
       
 16906         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 16907         (-[WebDataSource _cancelledError]):
       
 16908         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
       
 16909         (+[WebDataSource _representationClassForMIMEType:]):
       
 16910         (-[WebDataSource _commitLoadWithData:]):
       
 16911         (-[WebDataSource _receivedMainResourceError:complete:]):
       
 16912         (-[WebDataSource _iconLoaderReceivedPageIcon:]):
       
 16913         (-[WebDataSource _isDocumentHTML]):
       
 16914         * WebView/WebDataSourceInternal.h:
       
 16915 
       
 16916 2006-08-21  Brady Eidson  <beidson@apple.com>
       
 16917 
       
 16918         Reviewed by John
       
 16919 
       
 16920         Quick ICONDEBUG flag fix
       
 16921 
       
 16922         * Misc/WebIconDatabase.m:
       
 16923         (-[WebIconDatabase _applicationWillTerminate:]):
       
 16924 
       
 16925 2006-08-21  Brady Eidson  <beidson@apple.com>
       
 16926 
       
 16927         Reviewed by Anders
       
 16928 
       
 16929         -Renamed an internal only method for clarity
       
 16930         -Tweaked WebDataSource for notification purposes with the new expiring icons
       
 16931         -Fixed a bug with the ICONDEBUG flag
       
 16932 
       
 16933         * Misc/WebIconDatabase.m:
       
 16934         (-[WebIconDatabase init]):
       
 16935         (-[WebIconDatabase iconForURL:withSize:cache:]): #ifdef bug fixed
       
 16936         (-[WebIconDatabase _hasEntryForIconURL:]): Renamed for clarity
       
 16937         * Misc/WebIconDatabasePrivate.h:
       
 16938         * WebView/WebDataSource.m:
       
 16939         (-[WebDataSource _updateIconDatabaseWithURL:]):
       
 16940         (-[WebDataSource _notifyIconChanged:]):
       
 16941         (-[WebDataSource _loadIcon]):
       
 16942         (-[WebDataSource _iconLoaderReceivedPageIcon:]):
       
 16943 
       
 16944 2006-08-17  Maciej Stachowiak  <mjs@apple.com>
       
 16945 
       
 16946         Reviewed by Brady.
       
 16947         
       
 16948         - pull a bit of WebDataSource code into WebFrameLoader
       
 16949 
       
 16950         * Loader/WebFrameLoader.m:
       
 16951         (-[WebFrameLoader _receivedError:]):
       
 16952         (-[WebFrameLoader webFrame]):
       
 16953         (-[WebFrameLoader _handleFallbackContent]):
       
 16954         (+[WebFrameLoader _canShowMIMEType:]):
       
 16955         (+[WebFrameLoader _representationExistsForURLScheme:]):
       
 16956         (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
       
 16957         * WebView/WebDataSource.m:
       
 16958         * WebView/WebDataSourceInternal.h:
       
 16959 
       
 16960 2006-08-17  Timothy Hatcher  <timothy@apple.com>
       
 16961 
       
 16962         Reviewed by Kevin Decker.
       
 16963 
       
 16964         <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported in 64-bit
       
 16965 
       
 16966         * WebKit.LP64.exp:
       
 16967 
       
 16968 2006-08-17  Timothy Hatcher  <timothy@apple.com>
       
 16969 
       
 16970         Reviewed by Kevin Decker.
       
 16971 
       
 16972         <rdar://problem/4633896> -[WebView close] should clear all delegates and call setHostWindow:nil
       
 16973         <rdar://problem/4649759> Crash when selecting View Source menu using Chinese (-[WebView _close])
       
 16974 
       
 16975         Check to make sure _private is not null. A WebView can be dealloced before _private is setup.
       
 16976         Set the _private->closed flag at the beginning of _close to prevent reentry.
       
 16977         Set the host window and all the delegates to nil in _close.
       
 16978 
       
 16979         * WebView/WebView.m:
       
 16980         (-[WebView _close]):
       
 16981 
       
 16982 2006-08-16  Brady Eidson  <beidson@apple.com>
       
 16983 
       
 16984         Reviewed by Maciej
       
 16985 
       
 16986         * Misc/WebIconDatabase.m: Pruned unused method
       
 16987         * Misc/WebIconDatabasePrivate.h: Ditto
       
 16988 
       
 16989 
       
 16990 2006-08-15  Maciej Stachowiak  <mjs@apple.com>
       
 16991 
       
 16992         Reviewed by Adele (preliminary version) and later by Kevin.
       
 16993         
       
 16994         - remove most WebKit dependencies from WebMainResourceLoader.
       
 16995 
       
 16996         * Loader/WebFrameLoader.h:
       
 16997         * Loader/WebFrameLoader.m:
       
 16998         (-[WebFrameLoader cannotShowMIMETypeForURL:]):
       
 16999         (-[WebFrameLoader interruptForPolicyChangeErrorWithRequest:]):
       
 17000         (-[WebFrameLoader isHostedByObjectElement]):
       
 17001         (-[WebFrameLoader isLoadingMainFrame]):
       
 17002         (+[WebFrameLoader _canShowMIMEType:]):
       
 17003         (+[WebFrameLoader _representationExistsForURLScheme:]):
       
 17004         (+[WebFrameLoader _generatedMIMETypeForURLScheme:]):
       
 17005         * Loader/WebMainResourceLoader.h:
       
 17006         * Loader/WebMainResourceLoader.m:
       
 17007         (-[WebMainResourceLoader interruptForPolicyChangeError]):
       
 17008         (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
       
 17009         (isCaseInsensitiveEqual):
       
 17010         (shouldLoadAsEmptyDocument):
       
 17011         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 17012         (-[WebMainResourceLoader didReceiveResponse:]):
       
 17013         (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
       
 17014         (-[WebMainResourceLoader didFinishLoading]):
       
 17015         (-[WebMainResourceLoader loadWithRequestNow:]):
       
 17016         (-[WebMainResourceLoader loadWithRequest:]):
       
 17017 
       
 17018 2006-08-15  Tim Omernick  <timo@apple.com>
       
 17019 
       
 17020         Reviewed by Kevin Decker.
       
 17021 
       
 17022         * Plugins/WebNetscapePluginPackage.m:
       
 17023         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
 17024         Fixed a subtle problem with the 64-bit debug build -- as written, this would LOG() on 64-bit and do nothing on
       
 17025         32-bit!
       
 17026         * Plugins/WebPluginDatabase.m:
       
 17027         (-[WebPluginDatabase _scanForNewPlugins]):
       
 17028         Use +[NSMutableSet set] here.
       
 17029 
       
 17030 2006-08-15  Tim Omernick  <timo@apple.com>
       
 17031 
       
 17032         Reviewed by Darin Adler.
       
 17033 
       
 17034         <http://bugs.webkit.org/show_bug.cgi?id=8980>
       
 17035         ASSERTION FAILED: !isLoaded (WebKit/WebKit/Plugins/WebBasePluginPackage.m:228 -[WebBasePluginPackage dealloc])
       
 17036 
       
 17037         <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests (8980)
       
 17038         
       
 17039         * Plugins/WebPluginDatabase.h:
       
 17040         * Plugins/WebPluginDatabase.m:
       
 17041         (+[WebPluginDatabase installedPlugins]):
       
 17042         Observe NSApplicationWillTerminateNotification so we can unload plug-ins on quit.
       
 17043         (-[WebPluginDatabase plugins]):
       
 17044         'plugins' is now a dictionary.
       
 17045         (-[WebPluginDatabase close]):
       
 17046         Call new -_removePlugin: method.
       
 17047         (-[WebPluginDatabase refresh]):
       
 17048         Moved parts of this method out into other methods: -_addPlugin:, -_removePlugin:, and -_scanForNewPlugins.
       
 17049         (-[WebPluginDatabase _plugInPaths]):
       
 17050         No changes; just moved in file.
       
 17051         (-[WebPluginDatabase _addPlugin:]):
       
 17052         New method.  Refactored from -refresh.  Adds a plug-in to the database.
       
 17053         (-[WebPluginDatabase _removePlugin:]):
       
 17054         New method.  Refactored from -refresh.  Remove a plug-in from the database.
       
 17055         (-[WebPluginDatabase _scanForNewPlugins]):
       
 17056         New method.  Refactored from -refresh.  Returns the list of plug-in packages on disk.
       
 17057         (-[WebPluginDatabase _applicationWillTerminate]):
       
 17058         New method.  Called when the application terminates.  Closes the plug-in database so that all plug-ins are
       
 17059         removed from the DB (and unloaded if necessary).
       
 17060 
       
 17061         * Plugins/WebBasePluginPackage.h:
       
 17062         * Plugins/WebBasePluginPackage.m:
       
 17063         (-[WebBasePluginPackage initWithPath:]):
       
 17064         Try to create the NSBundle first, so if the file is not a valid bundle we bail out early.  This
       
 17065         avoids some stat()s and allocations during the plug-in refresh process.
       
 17066         (-[WebBasePluginPackage isLoaded]):
       
 17067         Removed.
       
 17068         (-[WebBasePluginPackage load]):
       
 17069         Base class for plug-in packages now always loads "successfully".
       
 17070         (-[WebBasePluginPackage dealloc]):
       
 17071         Removed this assertion.  The base plug-in package class has no concept of
       
 17072         "unloading".
       
 17073         (-[WebBasePluginPackage finalize]):
       
 17074         ditto.
       
 17075         (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
       
 17076         Moved code to unload plug-in package to WebNetscapePluginPackage.  Not all plug-in
       
 17077         packages can be "unloaded".
       
 17078 
       
 17079         * Plugins/WebNetscapePluginPackage.h:
       
 17080         * Plugins/WebNetscapePluginPackage.m:
       
 17081         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
       
 17082         Combined old -unload and -unloadWithoutShutdown methods into this new one.
       
 17083         (-[WebNetscapePluginPackage initWithPath:]):
       
 17084         Call new unload method.
       
 17085         (-[WebNetscapePluginPackage load]):
       
 17086         ditto
       
 17087         (-[WebNetscapePluginPackage wasRemovedFromPluginDatabase:]):
       
 17088         ditto
       
 17089         (-[WebNetscapePluginPackage open]):
       
 17090         New method.  Called when a plug-in instance starts running.
       
 17091         (-[WebNetscapePluginPackage close]):
       
 17092         New method.  Called when a plug-in instance stops running.  When all plug-in instances
       
 17093         close the plug-in package, and the plug-in package is removed from the database, the plug-in
       
 17094         is unloaded.
       
 17095 
       
 17096         * Plugins/WebPluginPackage.m:
       
 17097         (-[WebPluginPackage initWithPath:]):
       
 17098         (-[WebPluginPackage load]):
       
 17099         Made this a bit more efficient by checking if the bundle is already loaded.
       
 17100         (-[WebBasePluginPackage unload]):
       
 17101         Removed.
       
 17102         (-[WebBasePluginPackage isLoaded]):
       
 17103         Removed.
       
 17104 
       
 17105         * Plugins/WebBaseNetscapePluginView.m:
       
 17106         (-[WebBaseNetscapePluginView start]):
       
 17107         Open the plug-in package so it remains loaded while this instance uses it.
       
 17108         (-[WebBaseNetscapePluginView stop]):
       
 17109         Close the plug-in package when the plug-in instance is stopped.
       
 17110         
       
 17111         * Plugins/WebBaseNetscapePluginStream.m:
       
 17112         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
 17113         This check is not necessary.  Netscape plug-in packages are never unloaded until all their instances have
       
 17114         been stopped, and a Netscape plug-in instance will stop its streams when it is stopped.
       
 17115         (-[WebBaseNetscapePluginStream _destroyStream]):
       
 17116         ditto
       
 17117         (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
       
 17118         ditto
       
 17119         (-[WebBaseNetscapePluginStream _deliverData]):
       
 17120         ditto
       
 17121 
       
 17122 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 17123 
       
 17124         Reviewed by Tim H.
       
 17125 
       
 17126         Build fix:  DWARF and -gfull are incompatible with symbol separation.
       
 17127 
       
 17128         * WebKit.xcodeproj/project.pbxproj:
       
 17129 
       
 17130 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 17131 
       
 17132         Reviewed by Tim H.
       
 17133 
       
 17134         http://bugs.webkit.org/show_bug.cgi?id=10394
       
 17135         Bug 10394: WebKit Release and Production configurations should enable dead code stripping
       
 17136 
       
 17137         * WebKit.xcodeproj/project.pbxproj:
       
 17138 
       
 17139 2006-08-15  Maciej Stachowiak  <mjs@apple.com>
       
 17140 
       
 17141         Reviewed by Anders.
       
 17142         
       
 17143         - remove WebKit dependencies from WebPlugInStreamLoader via a protocol veil of ignorance
       
 17144 
       
 17145         * Loader/WebNetscapePlugInStreamLoader.h:
       
 17146         * Loader/WebNetscapePlugInStreamLoader.m:
       
 17147         (-[WebNetscapePlugInStreamLoader initWithDelegate:frameLoader:]):
       
 17148         * Loader/WebPlugInStreamLoaderDelegate.h: Added.
       
 17149         * Plugins/WebBaseNetscapePluginStream.h:
       
 17150         * Plugins/WebNetscapePluginStream.m:
       
 17151         (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
       
 17152         * WebKit.xcodeproj/project.pbxproj:
       
 17153 
       
 17154 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 17155 
       
 17156         Reviewed by Tim H.
       
 17157 
       
 17158         http://bugs.webkit.org/show_bug.cgi?id=10384
       
 17159         Bug 10384: Switch to DWARF for Release configuration
       
 17160 
       
 17161         * WebKit.xcodeproj/project.pbxproj:
       
 17162 
       
 17163 2006-08-15  Graham Dennis  <graham.dennis@gmail.com>
       
 17164 
       
 17165         Reviewed by Darin.
       
 17166         
       
 17167         - patch for http://bugs.webkit.org/show_bug.cgi?id=10314
       
 17168           WebUnarchivingState archivedResourceForURL: doesn't work
       
 17169 
       
 17170         * WebView/WebUnarchivingState.m:
       
 17171         (-[WebUnarchivingState archivedResourceForURL:]):
       
 17172         Fixed to get objects from the archived resources dictionary using
       
 17173         the URL as a string instead of as the URL itself (as this is how
       
 17174         the data is put into the dictionary).
       
 17175 
       
 17176 2006-08-14  Maciej Stachowiak  <mjs@apple.com>
       
 17177 
       
 17178         Reviewed by Beth.
       
 17179         
       
 17180         - remove many (but not all) WebKit dependencies from WebNetscapePlugInStreamLoader (it still 
       
 17181         depends on WebNetscapePluginStream).
       
 17182 
       
 17183         * Loader/WebFrameLoader.h:
       
 17184         * Loader/WebFrameLoader.m:
       
 17185         (-[WebFrameLoader fileDoesNotExistErrorWithResponse:]):
       
 17186         * Loader/WebNetscapePlugInStreamLoader.h:
       
 17187         * Loader/WebNetscapePlugInStreamLoader.m:
       
 17188         (-[WebNetscapePlugInStreamLoader initWithStream:frameLoader:]):
       
 17189         (-[WebNetscapePlugInStreamLoader releaseResources]):
       
 17190         (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
       
 17191         * Plugins/WebNetscapePluginStream.m:
       
 17192         (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
       
 17193 
       
 17194 2006-08-14  Maciej Stachowiak  <mjs@apple.com>
       
 17195 
       
 17196         Reviewed by Tim Omernick.
       
 17197         
       
 17198         - fixed REGRESSION: crash when leaving youtube page while movie is still loading
       
 17199         http://bugs.webkit.org/show_bug.cgi?id=10398
       
 17200 
       
 17201         * Loader/WebNetscapePlugInStreamLoader.m:
       
 17202         (-[WebNetscapePlugInStreamLoader initWithStream:view:]): Set the frame loader for this stream.
       
 17203         (-[WebNetscapePlugInStreamLoader cancelWithError:]): Make sure to destroy the stream as well;
       
 17204         otherwise, when we try to clean up later, we won't have the right context.
       
 17205 
       
 17206 2006-08-14  David Hyatt  <hyatt@apple.com>
       
 17207 
       
 17208         Fix for Radar bug 4478840, Safari should not reduce null events sent to
       
 17209         plug-ins in windows that are inactive but visible.
       
 17210 
       
 17211         With this fix you can view videos in visible background windows on YouTube
       
 17212         (for example) and not see any drop in frame rate.
       
 17213 
       
 17214         Reviewed by timo
       
 17215 
       
 17216         * Plugins/WebBaseNetscapePluginView.m:
       
 17217         (-[WebBaseNetscapePluginView restartNullEvents]):
       
 17218 
       
 17219 2006-08-14  Maciej Stachowiak  <mjs@apple.com>
       
 17220 
       
 17221         Reviewed by Brady.
       
 17222         
       
 17223         - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
       
 17224 
       
 17225         * Loader/WebFormDataStream.m:
       
 17226         (formCanRead):
       
 17227         (formEventCallback):
       
 17228         (webSetHTTPBody):
       
 17229         * WebCoreSupport/WebSystemInterface.m:
       
 17230         (InitWebCoreSystemInterface):
       
 17231 
       
 17232 2006-08-14  Maciej Stachowiak  <mjs@apple.com>
       
 17233 
       
 17234         Rubber stamped by Brady.
       
 17235         
       
 17236         - move WebFormDataStream from WebView to Loader
       
 17237 
       
 17238         * WebKit.xcodeproj/project.pbxproj:
       
 17239         * WebView/WebFormDataStream.h: Removed.
       
 17240         * WebView/WebFormDataStream.m: Removed.
       
 17241 
       
 17242 2006-08-13  Maciej Stachowiak  <mjs@apple.com>
       
 17243 
       
 17244         Reviewed by Brady.
       
 17245         
       
 17246         - remove WebKit dependencies from WebSubresourceLoader, except WebFormDataStream
       
 17247         
       
 17248         (WebFormDataStream will be moved into the Loader directory soon)
       
 17249 
       
 17250         * Loader/WebFrameLoader.h:
       
 17251         * Loader/WebFrameLoader.m:
       
 17252         (-[WebFrameLoader _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 17253         * Loader/WebSubresourceLoader.m:
       
 17254         (isConditionalRequest):
       
 17255         (hasCaseInsensitivePrefix):
       
 17256         (isFileURLString):
       
 17257         (setHTTPReferrer):
       
 17258         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
       
 17259 
       
 17260 2006-08-13  Brady Eidson  <beidson@apple.com>
       
 17261 
       
 17262         Reviewed by Maciej
       
 17263 
       
 17264         Relocated the WebIconLoaders
       
 17265 
       
 17266         * Misc/WebIconLoader.h: Moved to Loader/
       
 17267         * Misc/WebIconLoader.m: Moved to Loader/
       
 17268         * WebKit.xcodeproj/project.pbxproj:
       
 17269 
       
 17270 2006-08-13  Maciej Stachowiak  <mjs@apple.com>
       
 17271 
       
 17272         Reviewed by Beth.
       
 17273         
       
 17274         - removed non-Loader WebKit dependencies from WebDataProtocol for
       
 17275         real (whoops) and fix some typos.
       
 17276 
       
 17277         * Loader/WebDataProtocol.m:
       
 17278         (isCaseInsensitiveEqual): Added.
       
 17279         (+[WebDataProtocol _webIsDataProtocolURL:]): Avoid WebKit calls.
       
 17280         (-[WebDataProtocol startLoading]): ditto
       
 17281         * Loader/WebFrameLoader.m:
       
 17282         (isCaseInsensitiveEqual): Fixed spelling from isCaseSensitiveEqual.
       
 17283         (-[WebFrameLoader _canUseResourceForRequest:]): Use proper call.
       
 17284 
       
 17285 2006-08-13  Brady Eidson  <beidson@apple.com>
       
 17286 
       
 17287         Reviewed by Maciej
       
 17288 
       
 17289         The way of detecting a failed icon load before was to try and construct
       
 17290         an image from the icon and if that image construction failed, mark the icon
       
 17291         as missing.  
       
 17292         A much more efficient way is to check for an error response.  We'll still
       
 17293         check for invalid image data, but most servers will correctly return an HTTP 
       
 17294         error on a missing icon.
       
 17295         
       
 17296         * Misc/WebIconLoader.m:
       
 17297         (-[WebIconLoader didFinishLoading]): Added check for http error response
       
 17298 
       
 17299 2006-08-13  Maciej Stachowiak  <mjs@apple.com>
       
 17300 
       
 17301         Reviewed by Darin.
       
 17302         
       
 17303         - remove all non-Loader dependencies from WebLoader
       
 17304         
       
 17305         As part of this I moved WebDataProtocol to the loader directory
       
 17306         and removed dependencies on the rest of WebKit from that too.
       
 17307 
       
 17308         * Loader/WebFrameLoader.h:
       
 17309         * Loader/WebFrameLoader.m:
       
 17310         (-[WebFrameLoader setDefersCallbacks:]):
       
 17311         (-[WebFrameLoader stopLoading]):
       
 17312         (-[WebFrameLoader cancelledErrorWithRequest:]):
       
 17313         (-[WebFrameLoader clearArchivedResources]):
       
 17314         (-[WebFrameLoader deliverArchivedResources]):
       
 17315         (-[WebFrameLoader deliverArchivedResourcesAfterDelay]):
       
 17316         (isCaseSensitiveEqual):
       
 17317         (-[WebFrameLoader _canUseResourceForRequest:]):
       
 17318         (-[WebFrameLoader _canUseResourceWithResponse:]):
       
 17319         (-[WebFrameLoader pendingArchivedResources]):
       
 17320         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
       
 17321         (-[WebFrameLoader archiveLoadPendingForLoader:]):
       
 17322         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
       
 17323         * Loader/WebLoader.h:
       
 17324         * Loader/WebLoader.m:
       
 17325         (-[NSURLProtocol releaseResources]):
       
 17326         (-[NSURLProtocol loadWithRequest:]):
       
 17327         (-[NSURLProtocol setDefersCallbacks:]):
       
 17328         (-[NSURLProtocol addData:allAtOnce:]):
       
 17329         (-[NSURLProtocol resourceData]):
       
 17330         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
       
 17331         (-[NSURLProtocol connection:didReceiveData:lengthReceived:]):
       
 17332         (-[NSURLProtocol cancelWithError:]):
       
 17333         (-[NSURLProtocol cancelledError]):
       
 17334         * Loader/WebMainResourceLoader.m:
       
 17335         (-[WebMainResourceLoader addData:allAtOnce:]):
       
 17336         (-[WebMainResourceLoader didReceiveData:lengthReceived:allAtOnce:]):
       
 17337         * Loader/WebNetscapePlugInStreamLoader.m:
       
 17338         (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:allAtOnce:]):
       
 17339         * Loader/WebSubresourceLoader.m:
       
 17340         (-[WebSubresourceLoader didReceiveData:lengthReceived:allAtOnce:]):
       
 17341         * WebKit.xcodeproj/project.pbxproj:
       
 17342         * WebView/WebDataProtocol.h: Removed.
       
 17343         * WebView/WebDataProtocol.m: Removed.
       
 17344 
       
 17345 2006-08-11  Tim Omernick  <timo@apple.com>
       
 17346 
       
 17347         Reviewed by Darin.
       
 17348 
       
 17349         <http://bugs.webkit.org/show_bug.cgi?id=10111> - Menu flickers over Flash content
       
 17350         <rdar://problem/3052546> Plugins don't work with z-index (overlapping elements, etc.)
       
 17351 
       
 17352         * Plugins/WebBaseNetscapePluginView.m:
       
 17353         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
 17354         Don't just clip to the dirty region for "transparent" plug-ins -- do it for all plug-ins.  This is a
       
 17355         generally useful thing to do, as it prevents the plug-in from drawing over parts of the window that
       
 17356         have already been drawn and are not expected to be redrawn in the same update.
       
 17357 
       
 17358 2006-08-11  Brady Eidson  <beidson@apple.com>
       
 17359 
       
 17360         Reviewed by John, Timo, Adele, and Darin
       
 17361 
       
 17362         In addition to a few style/good-practice cleanups, this patch will convert the old icon database
       
 17363         format to the WebCore format if the WebCore db is empty (implying this conversion has yet to take
       
 17364         place).  After the conversion, it will delete all traces of the old format to free the unneeded space
       
 17365 
       
 17366         * Misc/WebIconDatabase.m:
       
 17367         (-[WebIconDatabase init]):  
       
 17368         (-[WebIconDatabase _setIconURL:forURL:]):  Changed the bridge's name for this method to be more clear
       
 17369         (-[WebIconDatabase _createFileDatabase]):  
       
 17370         (-[WebIconDatabase _iconDataForIconURL:]):  This grabs the raw data for use in the conversion function
       
 17371         (-[WebIconDatabase _convertToWebCoreFormat]):  This does the actual conversion
       
 17372 
       
 17373 2006-08-11  Tim Omernick  <timo@apple.com>
       
 17374 
       
 17375         Reviewed by John Sullivan.
       
 17376         
       
 17377         Needed for <rdar://problem/4678070>.
       
 17378 
       
 17379         * Plugins/WebBaseNetscapePluginView.m:
       
 17380         (-[WebBaseNetscapePluginView sendEvent:]):
       
 17381         Changed an assertion to an early return.  It should be possible to send events, especially updateEvt (for image capturing
       
 17382         purposes), to off-screen plug-ins.  It just doesn't work right now.  See <rdar://problem/4318269>.
       
 17383 
       
 17384 2006-08-11  John Sullivan  <sullivan@apple.com>
       
 17385 
       
 17386         Reviewed by Darin
       
 17387         
       
 17388         - fixed <rdar://problem/4522894> Would be nice if Safari shrank pages a little if necessary 
       
 17389         to avoid printing an almost-empty page
       
 17390 
       
 17391         * WebView/WebHTMLView.m:
       
 17392         (-[NSArray knowsPageRange:]):
       
 17393         If the last page has a short-enough orphan (< 1/10 of the page height is the number I pulled
       
 17394         out of ... the air), then we adjust the scale factor slightly and check whether this reduces
       
 17395         the page count and thus eliminates the orphan.
       
 17396         
       
 17397 2006-08-07  Brady Eidson  <beidson@apple.com>
       
 17398 
       
 17399         Reviewed by Anders and John
       
 17400 
       
 17401         * Misc/WebIconDatabase.m:
       
 17402         (-[WebIconDatabase init]):
       
 17403         (-[WebIconDatabase isIconExpiredForIconURL:]): Get if an icon expired
       
 17404         (-[WebIconDatabase isIconExpiredForPageURL:]): Ditto
       
 17405         (-[WebIconDatabase _setIconURL:forURL:]):
       
 17406         (-[WebIconDatabase _sendNotificationForURL:]): Moved to WebKitPendingPublic for use outside of WebIconDatabase
       
 17407         (-[WebIconDatabase loadIconFromURL:]): Allow a load outside the context of a page load
       
 17408         * Misc/WebIconDatabasePrivate.h:
       
 17409 
       
 17410         * Misc/WebIconLoader.m:
       
 17411         (-[WebIconLoader didFinishLoading]): fixed up the "flipping the switch" #defs a bit
       
 17412         (-[WebIconLoader willSendRequest:redirectResponse:]): override to allow a load
       
 17413         outside of the context of a page load
       
 17414 
       
 17415         * WebCoreSupport/WebIconDatabaseBridge.h: Added.
       
 17416         * WebCoreSupport/WebIconDatabaseBridge.m: Added.
       
 17417         (-[WebIconDatabaseBridge init]):
       
 17418         (-[WebIconDatabaseBridge dealloc]):
       
 17419         (-[WebIconDatabaseBridge loadIconFromURL:]):  Kick off a load on an icon outside
       
 17420         of the context of any page load
       
 17421         (-[WebIconDatabaseBridge _setIconData:forIconURL:]):  WebKit side of bridge method
       
 17422         (-[WebIconDatabaseBridge _setHaveNoIconForIconURL:]):  WebKit side of bridge method
       
 17423         (-[WebIconDatabaseBridge releaseCachedLoaderForIconURL:]): 
       
 17424         (+[WebIconDatabaseBridge sharedBridgeInstance]): Moved this from WebCore to WebKit
       
 17425         so both sides of the bridge get the WebKit version
       
 17426         * WebKit.xcodeproj/project.pbxproj: Added some files
       
 17427         * WebView/WebDataSource.m:
       
 17428         (-[WebDataSource _loadIcon]): Added check for reload/expired icon to force
       
 17429         a load even if we already have it
       
 17430 
       
 17431 2006-08-04  Sam Weinig  <sam.weinig@gmail.com>
       
 17432 
       
 17433         Reviewed by Darin.
       
 17434 
       
 17435         - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
       
 17436           Make WebCore (and friends) compile with -Wshorten-64-to-32
       
 17437 
       
 17438           * Adds 'f' to float literals where expecting a float.
       
 17439           * Use ceilf() instead of ceil() when assigning to a float.
       
 17440           * Adds explicit casts where OK.
       
 17441           
       
 17442           NOTE: The -Wshorten-64-to-32 flag was not added for WebKit
       
 17443           because there are still a few places where no error handling 
       
 17444           is in place.  The flag can be added as soon as those are worked
       
 17445           out.
       
 17446 
       
 17447         * Misc/WebNSControlExtras.m:
       
 17448         (-[NSControl sizeToFitAndAdjustWindowHeight]):
       
 17449         * Misc/WebNSImageExtras.m:
       
 17450         (-[NSImage _web_scaleToMaxSize:]):
       
 17451         * Misc/WebNSViewExtras.h:
       
 17452         * Misc/WebNSViewExtras.m:
       
 17453         * Plugins/WebBaseNetscapePluginView.m:
       
 17454         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
 17455         (-[WebBaseNetscapePluginView drawRect:]):
       
 17456         * WebCoreSupport/WebFrameBridge.m:
       
 17457         (-[WebFrameBridge expiresTimeForResponse:]):
       
 17458         * WebInspector/WebInspector.m:
       
 17459         (-[NSWindow window]):
       
 17460         (-[WebInspector treeViewScrollTo:]):
       
 17461         (-[WebInspector _updateSystemColors]):
       
 17462         (-[WebInspector webView:plugInViewWithArguments:]):
       
 17463         (-[WebInspector outlineView:objectValueForTableColumn:byItem:]):
       
 17464         * WebInspector/WebInspectorOutlineView.m:
       
 17465         (-[WebInspectorOutlineView _highlightRow:clipRect:]):
       
 17466         * WebInspector/WebNodeHighlight.m:
       
 17467         (-[WebNodeHighlight initWithBounds:andRects:forView:]):
       
 17468         * WebInspector/WebNodeHighlightView.m:
       
 17469         (-[WebNodeHighlightView roundedRect:withRadius:]):
       
 17470         (-[WebNodeHighlightView initWithHighlight:andRects:forView:]):
       
 17471         (-[WebNodeHighlightView drawRect:]):
       
 17472         * WebView/WebFrame.m:
       
 17473         (-[WebFrame _opened]):
       
 17474         * WebView/WebFrameView.m:
       
 17475         (-[WebFrameView initWithFrame:]):
       
 17476         * WebView/WebHTMLView.m:
       
 17477         (-[WebHTMLView _dragImageForLinkElement:]):
       
 17478         (-[WebHTMLView _web_setPrintingModeRecursive]):
       
 17479         (-[WebHTMLView _web_clearPrintingModeRecursive]):
       
 17480         (-[NSArray layout]):
       
 17481         (-[NSArray _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
       
 17482         (-[NSArray adjustPageHeightNew:top:bottom:limit:]):
       
 17483         (-[NSArray _scaleFactorForPrintOperation:]):
       
 17484         (-[NSArray setPageWidthForPrinting:]):
       
 17485         (-[NSArray _endPrintMode]):
       
 17486         (-[NSArray knowsPageRange:]):
       
 17487         (-[NSArray _originalFontA]):
       
 17488         (-[NSArray _originalFontB]):
       
 17489         (-[WebTextCompleteController _buildUI]):
       
 17490         (-[WebTextCompleteController _placePopupWindow:]):
       
 17491         * WebView/WebPDFView.m:
       
 17492         (-[WebPDFView _makeTextStandardSize:]):
       
 17493         (-[WebPDFView selectionImageForcingWhiteText:]):
       
 17494         (-[PDFPrefUpdatingProxy forwardInvocation:]):
       
 17495         * WebView/WebPreferences.m:
       
 17496         (-[WebPreferences _floatValueForKey:]):
       
 17497         * WebView/WebView.m:
       
 17498         (-[WebView makeTextSmaller:]):
       
 17499         (-[WebView canMakeTextStandardSize]):
       
 17500         (-[WebView makeTextStandardSize:]):
       
 17501 
       
 17502 2006-08-04  David Kilzer  <ddkilzer@kilzer.net>
       
 17503 
       
 17504         Reviewed by NOBODY (build fix).
       
 17505 
       
 17506         * WebCoreSupport/WebSubresourceLoader.m: REALLY moved to Loader/
       
 17507         * WebView/WebFrameLoader.h: REALLY moved to Loader/
       
 17508         * WebView/WebFrameLoader.m: REALLY moved to Loader/
       
 17509         * WebView/WebLoader.h: REALLY moved to Loader/
       
 17510         * WebView/WebLoader.m: REALLY moved to Loader/
       
 17511         * WebView/WebMainResourceLoader.m: REALLY moved to Loader/
       
 17512 
       
 17513 2006-08-03  Maciej Stachowiak  <mjs@apple.com>
       
 17514 
       
 17515         Reviewed by Darin.
       
 17516         
       
 17517         - moved all loader code that is slated to be moved down to WebCore to a new Loader directory
       
 17518         
       
 17519         (next step is to remove dependencies on the rest of WebKit from this directory)
       
 17520 
       
 17521         * Loader/WebNetscapePlugInStreamLoader.h: Added.
       
 17522         * Loader/WebNetscapePlugInStreamLoader.m: Added. Cut out of WebNetscapePluginStream.m
       
 17523         (-[WebNetscapePlugInStreamLoader initWithStream:view:]):
       
 17524         (-[WebNetscapePlugInStreamLoader isDone]):
       
 17525         (-[WebNetscapePlugInStreamLoader releaseResources]):
       
 17526         (-[WebNetscapePlugInStreamLoader didReceiveResponse:]):
       
 17527         (-[WebNetscapePlugInStreamLoader didReceiveData:lengthReceived:]):
       
 17528         (-[WebNetscapePlugInStreamLoader didFinishLoading]):
       
 17529         (-[WebNetscapePlugInStreamLoader didFailWithError:]):
       
 17530         (-[WebNetscapePlugInStreamLoader cancelWithError:]):
       
 17531         * Plugins/WebNetscapePluginStream.m:
       
 17532         * WebKit.xcodeproj/project.pbxproj:
       
 17533         * WebCoreSupport/WebSubresourceLoader.h: Moved to Loader/
       
 17534         * WebCoreSupport/WebSubresourceLoader.m: Moved to Loader/
       
 17535         * WebView/WebFrameLoader.h: Moved to Loader/
       
 17536         * WebView/WebFrameLoader.m: Moved to Loader/
       
 17537         * WebView/WebLoader.h: Moved to Loader/
       
 17538         * WebView/WebLoader.m: Moved to Loader/
       
 17539         * WebView/WebMainResourceLoader.h: Moved to Loader/
       
 17540         * WebView/WebMainResourceLoader.m: Moved to Loader/
       
 17541 
       
 17542 2006-08-03  Tim Omernick  <timo@apple.com>
       
 17543 
       
 17544         Reviewed by Kevin Decker.
       
 17545 
       
 17546         <rdar://problem/4667460> Windowless OpenGL plug-ins render incorrectly on PowerPC
       
 17547 
       
 17548         * Plugins/WebBaseNetscapePluginView.m:
       
 17549         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
       
 17550         Fixed color component swapping so that it works on both x86 and PPC.  See comments.
       
 17551 
       
 17552 2006-08-03  Brady Eidson  <beidson@apple.com>
       
 17553 
       
 17554         Reviewed by Tim Hatcher's rubber stamp
       
 17555         Fixed Intel build break caused by weinig's -W change in r15781
       
 17556 
       
 17557         * WebView/WebView.m: wrapped cpu-dependent defs with defined() macro
       
 17558 
       
 17559 2006-08-03  Maciej Stachowiak  <mjs@apple.com>
       
 17560 
       
 17561         Reviewed by John.
       
 17562 
       
 17563         - fixed problem that could cause assertion failures in Safari
       
 17564         
       
 17565         * Plugins/WebBaseNetscapePluginView.m:
       
 17566         (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): Don't
       
 17567         allow a plugin to start new loads once its document is no longer the one actively loading.
       
 17568 
       
 17569 2006-08-03  Maciej Stachowiak  <mjs@apple.com>
       
 17570 
       
 17571         Reviewed by John.
       
 17572         
       
 17573         - remove use of WebDataSource from WebLoader and subclasses, just have them talk to the
       
 17574         WebFrameLoader instead. 
       
 17575         
       
 17576         For now this is done by forarding all the calls.
       
 17577 
       
 17578         * Misc/WebIconLoader.m:
       
 17579         (-[WebIconLoader didFinishLoading]):
       
 17580         * Plugins/WebNetscapePluginStream.m:
       
 17581         (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
       
 17582         (-[WebNetscapePluginStream start]):
       
 17583         (-[WebNetscapePlugInStreamLoader didFinishLoading]):
       
 17584         (-[WebNetscapePlugInStreamLoader didFailWithError:]):
       
 17585         (-[WebNetscapePlugInStreamLoader cancelWithError:]):
       
 17586         * WebCoreSupport/WebFrameBridge.m:
       
 17587         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
       
 17588         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
       
 17589         * WebCoreSupport/WebSubresourceLoader.h:
       
 17590         * WebCoreSupport/WebSubresourceLoader.m:
       
 17591         (-[WebSubresourceLoader initWithLoader:frameLoader:]):
       
 17592         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forFrameLoader:]):
       
 17593         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forFrameLoader:]):
       
 17594         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forFrameLoader:]):
       
 17595         (-[WebSubresourceLoader receivedError:]):
       
 17596         (-[WebSubresourceLoader signalFinish]):
       
 17597         (-[WebSubresourceLoader didFailWithError:]):
       
 17598         (-[WebSubresourceLoader cancel]):
       
 17599         * WebKit.xcodeproj/project.pbxproj:
       
 17600         * WebView/WebDataSource.m:
       
 17601         (-[WebDataSource _updateLoading]):
       
 17602         (-[WebDataSource textEncodingName]):
       
 17603         (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
       
 17604         * WebView/WebFrameLoader.h:
       
 17605         * WebView/WebFrameLoader.m:
       
 17606         (-[WebFrameLoader loadIconWithRequest:]):
       
 17607         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
       
 17608         (-[WebFrameLoader clearIconLoader]):
       
 17609         (-[WebFrameLoader commitProvisionalLoad]):
       
 17610         (-[WebFrameLoader activeDataSource]):
       
 17611         (-[WebFrameLoader _archivedSubresourceForURL:]):
       
 17612         (-[WebFrameLoader _defersCallbacks]):
       
 17613         (-[WebFrameLoader _identifierForInitialRequest:]):
       
 17614         (-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
       
 17615         (-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
       
 17616         (-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
       
 17617         (-[WebFrameLoader _didReceiveResponse:forResource:]):
       
 17618         (-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
       
 17619         (-[WebFrameLoader _didFinishLoadingForResource:]):
       
 17620         (-[WebFrameLoader _didFailLoadingWithError:forResource:]):
       
 17621         (-[WebFrameLoader _privateBrowsingEnabled]):
       
 17622         (-[WebFrameLoader _addPlugInStreamLoader:]):
       
 17623         (-[WebFrameLoader _removePlugInStreamLoader:]):
       
 17624         (-[WebFrameLoader _finishedLoadingResource]):
       
 17625         (-[WebFrameLoader _receivedError:]):
       
 17626         (-[WebFrameLoader _addSubresourceLoader:]):
       
 17627         (-[WebFrameLoader _removeSubresourceLoader:]):
       
 17628         (-[WebFrameLoader _originalRequest]):
       
 17629         (-[WebFrameLoader webFrame]):
       
 17630         (-[WebFrameLoader _receivedMainResourceError:complete:]):
       
 17631         (-[WebFrameLoader initialRequest]):
       
 17632         (-[WebFrameLoader _receivedData:]):
       
 17633         (-[WebFrameLoader _setRequest:]):
       
 17634         (-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
       
 17635         (-[WebFrameLoader _handleFallbackContent]):
       
 17636         (-[WebFrameLoader _isStopping]):
       
 17637         (-[WebFrameLoader _decidePolicyForMIMEType:decisionListener:]):
       
 17638         (-[WebFrameLoader _setupForReplaceByMIMEType:]):
       
 17639         (-[WebFrameLoader _setResponse:]):
       
 17640         (-[WebFrameLoader _mainReceivedError:complete:]):
       
 17641         (-[WebFrameLoader _finishedLoading]):
       
 17642         (-[WebFrameLoader _mainReceivedBytesSoFar:complete:]):
       
 17643         (-[WebFrameLoader _iconLoaderReceivedPageIcon:]):
       
 17644         (-[WebFrameLoader _URL]):
       
 17645         * WebView/WebLoader.h:
       
 17646         * WebView/WebLoader.m:
       
 17647         (-[NSURLProtocol releaseResources]):
       
 17648         (-[NSURLProtocol loadWithRequest:]):
       
 17649         (-[NSURLProtocol setFrameLoader:]):
       
 17650         (-[NSURLProtocol frameLoader]):
       
 17651         (-[NSURLProtocol willSendRequest:redirectResponse:]):
       
 17652         (-[NSURLProtocol didReceiveAuthenticationChallenge:]):
       
 17653         (-[NSURLProtocol didCancelAuthenticationChallenge:]):
       
 17654         (-[NSURLProtocol didReceiveResponse:]):
       
 17655         (-[NSURLProtocol didReceiveData:lengthReceived:]):
       
 17656         (-[NSURLProtocol signalFinish]):
       
 17657         (-[NSURLProtocol didFailWithError:]):
       
 17658         (-[NSURLProtocol willCacheResponse:]):
       
 17659         (-[NSURLProtocol cancelWithError:]):
       
 17660         * WebView/WebMainResourceLoader.h:
       
 17661         * WebView/WebMainResourceLoader.m:
       
 17662         (-[WebMainResourceLoader initWithFrameLoader:]):
       
 17663         (-[WebMainResourceLoader receivedError:]):
       
 17664         (-[WebMainResourceLoader cancelWithError:]):
       
 17665         (-[WebMainResourceLoader _isPostOrRedirectAfterPost:redirectResponse:]):
       
 17666         (-[WebMainResourceLoader addData:]):
       
 17667         (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
       
 17668         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 17669         (-[WebMainResourceLoader continueAfterContentPolicy:]):
       
 17670         (-[WebMainResourceLoader checkContentPolicyForResponse:]):
       
 17671         (-[WebMainResourceLoader didReceiveResponse:]):
       
 17672         (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
       
 17673         (-[WebMainResourceLoader didFinishLoading]):
       
 17674         (-[WebMainResourceLoader didFailWithError:]):
       
 17675         (-[WebMainResourceLoader loadWithRequestNow:]):
       
 17676 
       
 17677 2006-08-03  Sam Weinig  <sam.weinig@gmail.com>
       
 17678 
       
 17679         Reviewed by Darin.
       
 17680 
       
 17681         - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
       
 17682           Make WebCore compile with -Wundef
       
 17683 
       
 17684           * Adds -Wundef flag to Xcode project
       
 17685           * Converts #ifs to #ifdef and #ifndefs where needed.
       
 17686 
       
 17687         * Carbon/CarbonUtils.m:
       
 17688         * Carbon/CarbonWindowAdapter.m:
       
 17689         * Carbon/HIViewAdapter.m:
       
 17690         (+[NSView bindHIViewToNSView:nsView:]):
       
 17691         * Carbon/HIWebView.m:
       
 17692         (HIWebViewEventHandler):
       
 17693         * Misc/WebFileDatabase.m:
       
 17694         (UniqueFilePathForKey):
       
 17695         * Misc/WebNSWindowExtras.m:
       
 17696         (swizzleInstanceMethod):
       
 17697         * Misc/WebTypesInternal.h:
       
 17698         * Plugins/WebNetscapeDeprecatedFunctions.c:
       
 17699         * Plugins/WebNetscapeDeprecatedFunctions.h:
       
 17700         * Plugins/WebNetscapePluginPackage.h:
       
 17701         * Plugins/WebNetscapePluginPackage.m:
       
 17702         (-[WebNetscapePluginPackage unloadWithoutShutdown]):
       
 17703         (-[WebNetscapePluginPackage load]):
       
 17704         * WebKit.xcodeproj/project.pbxproj:
       
 17705 
       
 17706 2006-08-03  Darin Adler  <darin@apple.com>
       
 17707 
       
 17708         Reviewed by Eric Seidel.
       
 17709 
       
 17710         - fix storage leak
       
 17711 
       
 17712         * WebView/WebFrame.m: (-[WebFramePrivate dealloc]): Release the frame loader.
       
 17713 
       
 17714 2006-08-02  Timothy Hatcher  <timothy@apple.com>
       
 17715 
       
 17716         Rubber stamped by Maciej.
       
 17717 
       
 17718         Adding back resultsWithXpathQuery, removed by Darin's earlier change.
       
 17719         This function is called from ObjC, but not used from JavaScript.
       
 17720 
       
 17721         * WebInspector/webInspector/inspector.js:
       
 17722 
       
 17723 2006-08-02  Timothy Hatcher  <timothy@apple.com>
       
 17724 
       
 17725         Reviewed by Darin.
       
 17726 
       
 17727         Bug 10200: [Drosera] Deadlock between Drosera and Safari while loading page
       
 17728         http://bugs.webkit.org/show_bug.cgi?id=10200
       
 17729 
       
 17730         Prevent reentrancy in our debugger callbacks. This was causing a deadlock in Drosera because
       
 17731         suspendProcessIfPaused was being called during a DO call into Safari.
       
 17732 
       
 17733         Preventing reentrancy also prevents scripts that Drosera injects and evaluates from showing
       
 17734         up in rare cases (such as a iframe loading about:blank). I thought this would prevent cases
       
 17735         where you call a function from the console and expect it to break on a breakpoint in them, but
       
 17736         this appears to never have worked even without this change. When that is figured out we can
       
 17737         reconsider a better solution to reentrancy. I have filed that as bug 10214.
       
 17738 
       
 17739         I also removed the NSRunLoop runMode:beforeDate: calls since DO handles this for us since
       
 17740         we don't use "onway void" as the return type for the callbacks. Note: using onway void for
       
 17741         the listener callbacks causes bad synchronization issues and obscure crashes.
       
 17742 
       
 17743         * DefaultDelegates/WebScriptDebugServer.m:
       
 17744         (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
       
 17745         (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
       
 17746         (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
       
 17747         (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
       
 17748         (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
       
 17749         (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
       
 17750         (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
       
 17751         * DefaultDelegates/WebScriptDebugServerPrivate.h:
       
 17752 
       
 17753 2006-08-02  Maciej Stachowiak  <mjs@apple.com>
       
 17754 
       
 17755         Reviewed by John.
       
 17756         
       
 17757         - fix assertion failure on layout tests by stopping plugins from loading at a clearly defined time
       
 17758         - add more assertions for safety
       
 17759 
       
 17760         * WebView/WebDataSource.m:
       
 17761         (-[WebDataSourcePrivate dealloc]): Removed obsolete comment.
       
 17762         (-[WebDataSource _updateLoading]): Add assertion ensuring this method is only called
       
 17763         at a time when this data source is the one that might be loading for a frame.
       
 17764         (-[WebDataSource _stopLoading]): Stop loading plugins as a FIXME suggests we should.
       
 17765         * WebView/WebFrameLoader.m:
       
 17766         (-[WebFrameLoader isLoadingPlugIns]): New helper method.
       
 17767         (-[WebFrameLoader isLoading]): Consider plugin loads too - otherwise we won't stop them
       
 17768         at stopLoading time.
       
 17769 
       
 17770 2006-08-02  Adam Roben  <aroben@apple.com>
       
 17771 
       
 17772         Reviewed by Brady.
       
 17773 
       
 17774         - Rename TransferJob to ResourceLoader (this file was forgotten in an
       
 17775         earlier change by Maciej)
       
 17776 
       
 17777         * COM/WebView.cpp:
       
 17778 
       
 17779 2006-08-01  Maciej Stachowiak  <mjs@apple.com>
       
 17780 
       
 17781         Reviewed by Adele.
       
 17782         
       
 17783         - Change things around so WebFrameLoader tracks the main and provisional data source,
       
 17784         as well as the frame load state, pulling much code out of WebFrame along the way.
       
 17785         
       
 17786         The most significant aspects of this change are:
       
 17787         
       
 17788         - management of WebDataSources and WebFrameState was moved into WebFrameLoader
       
 17789         - there is now just one WebFrameLoader shared between the primary and provisional data source
       
 17790 
       
 17791         * WebKit.xcodeproj/project.pbxproj:
       
 17792         * WebView/WebDataSource.m:
       
 17793         (-[WebDataSourcePrivate dealloc]):
       
 17794         (-[WebDataSource _updateLoading]):
       
 17795         (-[WebDataSource _loadIcon]):
       
 17796         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 17797         (-[WebDataSource _stopLoading]):
       
 17798         (-[WebDataSource _startLoading]):
       
 17799         (-[WebDataSource _addSubresourceLoader:]):
       
 17800         (-[WebDataSource _removeSubresourceLoader:]):
       
 17801         (-[WebDataSource _addPlugInStreamLoader:]):
       
 17802         (-[WebDataSource _removePlugInStreamLoader:]):
       
 17803         (-[WebDataSource _defersCallbacksChanged]):
       
 17804         (-[WebDataSource _stopLoadingWithError:]):
       
 17805         (-[WebDataSource _revertToProvisionalState]):
       
 17806         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 17807         (-[WebDataSource initWithRequest:]):
       
 17808         (-[WebDataSource data]):
       
 17809         (-[WebDataSource isLoading]):
       
 17810         * WebView/WebFrame.m:
       
 17811         (-[WebFramePrivate init]):
       
 17812         (-[WebFramePrivate dealloc]):
       
 17813         (-[WebFrame _closeOldDataSources]):
       
 17814         (-[WebFrame _detachFromParent]):
       
 17815         (-[WebFrame _makeDocumentView]):
       
 17816         (-[WebFrame _receivedMainResourceError:]):
       
 17817         (-[WebFrame _transitionToCommitted:]):
       
 17818         (+[WebFrame _timeOfLastCompletedLoad]):
       
 17819         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 17820         (-[WebFrame _loadItem:withLoadType:]):
       
 17821         (-[WebFrame _continueAfterWillSubmitForm:]):
       
 17822         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 17823         (-[WebFrame _initWithWebFrameView:webView:bridge:]):
       
 17824         (-[WebFrame _frameLoader]):
       
 17825         (-[WebFrame _provisionalLoadStarted]):
       
 17826         (-[WebFrame _prepareForDataSourceReplacement]):
       
 17827         (-[WebFrame _frameLoadCompleted]):
       
 17828         (-[WebFrame provisionalDataSource]):
       
 17829         (-[WebFrame dataSource]):
       
 17830         (-[WebFrame stopLoading]):
       
 17831         * WebView/WebFrameInternal.h:
       
 17832         * WebView/WebFrameLoader.h:
       
 17833         * WebView/WebFrameLoader.m:
       
 17834         (-[WebFrameLoader initWithWebFrame:]):
       
 17835         (-[WebFrameLoader dealloc]):
       
 17836         (-[WebFrameLoader dataSource]):
       
 17837         (-[WebFrameLoader _setDataSource:]):
       
 17838         (-[WebFrameLoader clearDataSource]):
       
 17839         (-[WebFrameLoader provisionalDataSource]):
       
 17840         (-[WebFrameLoader _setProvisionalDataSource:]):
       
 17841         (-[WebFrameLoader _clearProvisionalDataSource]):
       
 17842         (-[WebFrameLoader state]):
       
 17843         (+[WebFrameLoader timeOfLastCompletedLoad]):
       
 17844         (-[WebFrameLoader _setState:]):
       
 17845         (-[WebFrameLoader clearProvisionalLoad]):
       
 17846         (-[WebFrameLoader markLoadComplete]):
       
 17847         (-[WebFrameLoader commitProvisionalLoad]):
       
 17848         (-[WebFrameLoader stopLoading]):
       
 17849         (-[WebFrameLoader startLoading]):
       
 17850         (-[WebFrameLoader startProvisionalLoad:]):
       
 17851         (-[WebFrameLoader setupForReplace]):
       
 17852         * WebView/WebFramePrivate.h:
       
 17853 
       
 17854 2006-08-01  Tim Omernick  <timo@apple.com>
       
 17855 
       
 17856         Reviewed by John Sullivan.
       
 17857 
       
 17858         <rdar://problem/4480737> Flash crashes after it replaces itself via a document.write()
       
 17859         
       
 17860         I kind of hate to do this, but this is the best way to work around buggy plug-ins like Flash that assume that
       
 17861         NPP_Destroy() cannot be called while the browser is calling one of its other plug-in functions.  The classic
       
 17862         situation is a plug-in that replaces itself via an NPN_Invoke() that executes a document.write().
       
 17863 
       
 17864         * Plugins/WebBaseNetscapePluginView.h:
       
 17865         * Plugins/WebBaseNetscapePluginView.m:
       
 17866         (-[WebBaseNetscapePluginView sendEvent:]):
       
 17867         Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
       
 17868         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
       
 17869         ditto
       
 17870         (-[WebBaseNetscapePluginView start]):
       
 17871         It should not be possible to start a plug-in instance while we are calling into it (one of those chicken/egg
       
 17872         problems).  Added a sanity-checking assertion.
       
 17873         (-[WebBaseNetscapePluginView stop]):
       
 17874         If we're already calling a plug-in function, do not call NPP_Destroy().  The plug-in function we are calling
       
 17875         may assume that its instance->pdata, or other memory freed by NPP_Destroy(), is valid and unchanged until said
       
 17876         plugin-function returns.
       
 17877         (-[WebBaseNetscapePluginView pluginScriptableObject]):
       
 17878         Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
       
 17879         (-[WebBaseNetscapePluginView willCallPlugInFunction]):
       
 17880         Increment plug-in function call depth.
       
 17881         (-[WebBaseNetscapePluginView didCallPlugInFunction]):
       
 17882         Decrement plug-in function call depth.  Stop if we're supposed to stop.
       
 17883         (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
       
 17884         Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
       
 17885         (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]):
       
 17886         ditto
       
 17887         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
 17888         ditto
       
 17889 
       
 17890         * Plugins/WebBaseNetscapePluginStream.m:
       
 17891         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
 17892         Call -willCallPlugInFunction and -didCallPlugInFunction around calls to the NPP_* functions.
       
 17893         (-[WebBaseNetscapePluginStream _destroyStream]):
       
 17894         ditto
       
 17895         (-[WebBaseNetscapePluginStream _deliverData]):
       
 17896         ditto
       
 17897 
       
 17898 2006-08-01  Maciej Stachowiak  <mjs@apple.com>
       
 17899 
       
 17900         - fix build after last change
       
 17901 
       
 17902         * WebView/WebFrame.m:
       
 17903         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 17904 
       
 17905 2006-08-01  Maciej Stachowiak  <mjs@apple.com>
       
 17906 
       
 17907         Reviewed by Beth.
       
 17908 
       
 17909         - revert part of my last fix that broke the Safari bookmarks view
       
 17910         
       
 17911         * WebView/WebFrame.m:
       
 17912         (-[WebFrame _checkLoadCompleteForThisFrame]): still send layout message for non-HTML views
       
 17913 
       
 17914 2006-08-01  Tim Omernick  <timo@apple.com>
       
 17915 
       
 17916         Reviewed by Anders.
       
 17917 
       
 17918         Fixed an assertion failure I ran into while debugging <rdar://problem/4652683>.
       
 17919 
       
 17920         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 17921         (-[WebNetscapePluginEmbeddedView redeliverStream]):
       
 17922         Don't clear the "instance" ivar here.  This code was refactored here from the old WebNetscapePluginRepresentation,
       
 17923         which also had an "instance" ivar.  It is never appropriate to clear a plug-in view's instance.  That is done when
       
 17924         the plug-in is destroyed.
       
 17925 
       
 17926 2006-08-01  Maciej Stachowiak  <mjs@apple.com>
       
 17927 
       
 17928         Reviewed by Geoff.
       
 17929         
       
 17930         - some refactoring in preparation for moving more stuff to WebFrameLoader.
       
 17931 
       
 17932         * WebView/WebFrame.m:
       
 17933         (-[WebFrame _clearDataSource]): 
       
 17934         (-[WebFrame _detachFromParent]):
       
 17935         (-[WebFrame _commitProvisionalLoad]):
       
 17936         (-[WebFrame _transitionToCommitted:]):
       
 17937         (-[WebFrame _clearProvisionalLoad]):
       
 17938         (-[WebFrame _markLoadComplete]):
       
 17939         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 17940         (-[WebFrame _startProvisionalLoad:]):
       
 17941         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 17942         (-[WebFrame stopLoading]):
       
 17943 
       
 17944 2006-07-31  Maciej Stachowiak  <mjs@apple.com>
       
 17945 
       
 17946         Reviewed by Tim Hatcher.
       
 17947         
       
 17948         - renamed TransferJob to ResourceLoader in WebCore
       
 17949 
       
 17950         * COM/WebFrame.cpp:
       
 17951         (WebFrame::loadDataSource):
       
 17952         (WebFrame::receivedRedirect):
       
 17953         (WebFrame::receivedResponse):
       
 17954         (WebFrame::receivedData):
       
 17955         (WebFrame::receivedAllData):
       
 17956         (WebFrame::setStatusText):
       
 17957         * COM/WebFrame.h:
       
 17958 
       
 17959 2006-07-31  Darin Adler  <darin@apple.com>
       
 17960 
       
 17961         Reviewed by Maciej.
       
 17962 
       
 17963         - omit the margin and padding boxes for display types where they are ignored
       
 17964         - use CSS instead of properties for table spacing and padding as suggested by Tim H.
       
 17965 
       
 17966         * WebInspector/webInspector/inspector.css: Added rules for spacing and padding.
       
 17967         Added rules that hide the margin and padding boxes (borders and all but the center cell)
       
 17968         when the hide attribute is present.
       
 17969         * WebInspector/webInspector/inspector.html: Added classes for the rules above.
       
 17970         Removed cellpadding and cellspacing attributes.
       
 17971         * WebInspector/webInspector/inspector.js: Added code to hide/show the margin and
       
 17972         padding boxes based on the display type.
       
 17973 
       
 17974 2006-07-31  Duncan Wilcox  <duncan@mclink.it>
       
 17975 
       
 17976         Reviewed by Darin.
       
 17977 
       
 17978         Fixes <http://bugs.webkit.org/show_bug.cgi?id=10159>
       
 17979         "REGRESSION: delegate returning no menu elements crashes webkit"
       
 17980 
       
 17981         No automated test, because there's no way to programmatically open a context menu,
       
 17982         no manual test because there's no way to customize the context menu delegate.
       
 17983 
       
 17984         * WebView/WebView.m:
       
 17985         (-[WebView _menuForElement:defaultItems:]): Make sure the context menu returned
       
 17986         some menu items before accessing the first one.
       
 17987 
       
 17988 2006-07-31  Timothy Hatcher  <timothy@apple.com>
       
 17989 
       
 17990         Reviewed by John.
       
 17991 
       
 17992         <rdar://problem/4658194> REGRESSION: "Search in Google"
       
 17993         and "Search in Spotlight" fail to work on text selected in a frame
       
 17994 
       
 17995         Use selectedFrame to get the frame with the text selection.
       
 17996 
       
 17997         * WebView/WebView.m:
       
 17998         (-[WebView _searchWithGoogleFromMenu:]):
       
 17999         (-[WebView _searchWithSpotlightFromMenu:]):
       
 18000 
       
 18001 2006-07-31  Darin Adler  <darin@apple.com>
       
 18002 
       
 18003         Reviewed by Tim Hatcher.
       
 18004 
       
 18005         - http://bugs.webkit.org/show_bug.cgi?id=10168
       
 18006           add a first cut at a Metrics pane to the inspector
       
 18007 
       
 18008         * WebInspector/webInspector/inspector.css: Add styles for the new metrics pane.
       
 18009         * WebInspector/webInspector/inspector.html: Add the new metrics pane, starting with
       
 18010         the table to show the box model.
       
 18011         * WebInspector/webInspector/inspector.js: Add the new metrics pane. Add back some
       
 18012         "title" attributes so we have more tooltips. Removed the optional parameter to
       
 18013         getComputedStyle.
       
 18014 
       
 18015 2006-07-31  Anders Carlsson  <acarlsson@apple.com>
       
 18016 
       
 18017         Reviewed by John.
       
 18018 
       
 18019         * Plugins/WebPluginDatabase.m:
       
 18020         (-[WebPluginDatabase refresh]):
       
 18021         Create a mutable set instead of a mutable array.
       
 18022 
       
 18023 2006-07-30  Darin Adler  <darin@apple.com>
       
 18024 
       
 18025         Reviewed by Tim Hatcher.
       
 18026 
       
 18027         * WebInspector/webInspector/inspector.js: Fix bug where a null property value
       
 18028         leads to an empty style pane.
       
 18029 
       
 18030 2006-07-30  Darin Adler  <darin@apple.com>
       
 18031 
       
 18032         Reviewed by Tim Hatcher.
       
 18033 
       
 18034         - http://bugs.webkit.org/show_bug.cgi?id=10163
       
 18035           some improvements for the inspector
       
 18036 
       
 18037         * WebInspector/WebInspector.m:
       
 18038         (+[WebInspector sharedWebInspector:]): Fixed bug that could cause the inspector
       
 18039         to be garbage collected if used in an application with GC enabled.
       
 18040         (-[WebInspector dealloc]): Removed a call to a non-existent close method.
       
 18041         (-[WebInspector window]): Added a custom WebPreferences object and called
       
 18042         setPrivateBrowsingEnabled:YES so the inspector won't appear in the history menu.
       
 18043         Also call setProhibitsMainFrameScrolling:YES to try to get rid of trouble where
       
 18044         the inspector scrolls when dragging.
       
 18045 
       
 18046         * WebInspector/webInspector/inspector.css: Added style for the new color swatch,
       
 18047         and JavaScript properties. More of the style should be shared between the panes,
       
 18048         but this should be OK for now.
       
 18049 
       
 18050         * WebInspector/webInspector/inspector.html: Added a first cut at a JavaScript
       
 18051         properties pane. Needs work, but better than nothing.
       
 18052 
       
 18053         * WebInspector/webInspector/inspector.js: Lots of improvements:
       
 18054         - Omit "typical" property values from computed style display, making it much shorter.
       
 18055         - Use the words "black", "white", and "transparent" when appropriate for color values.
       
 18056         - Refactored the loaded() function to get rid of repetitive scrollbar setup.
       
 18057         - Added a new scrollarea for the JavaScript properties pane.
       
 18058         - Simplified refreshScrollbars() -- we now refresh all scrollbars every time, which does no harm.
       
 18059         - Removed unused resultsWithXpathQuery().
       
 18060         - Use [] instead of "new Array()" and {} instead of "new Object()".
       
 18061         - Removed unused xpathForNode().
       
 18062         - Changed style pane to display the style for a text node's parent instead of saying
       
 18063           it can't display the style for text.
       
 18064         - Fixed regression I caused a while back by checking the length of a computed style
       
 18065           and not trying to display anything if its length is 0. Before this change and the
       
 18066           corresponding change in WebCore, we'd see a complete list of all styles with the
       
 18067           empty string as the value for each one.
       
 18068         - Changed the name of the computedStyle flag on the style rules array to isComputedStyle
       
 18069           to make it easier to understand it's a boolean.
       
 18070         - Fixed an error in the code that does !important scanning where it was trying to
       
 18071           do a special case for computed style, but was checking the computed style flag on
       
 18072           the wrong object.
       
 18073         - Added populateStyleListItem() function to factor out things in common between the
       
 18074           items in the top level list and the expanded tree for shorthand properties.
       
 18075         - Added code to make a color swatch next to the textual representation for any
       
 18076           property that contains a color.
       
 18077         - Implemented a first cut at a simple JavaScript properties pane.
       
 18078 
       
 18079 2006-07-29  Darin Adler  <darin@apple.com>
       
 18080 
       
 18081         - Removed tabs from these source files that still had them.
       
 18082           We don't use them; that way source files look fine in editors
       
 18083           that have tabs set to 8 spaces or to 4 spaces.
       
 18084         - Removed allow-tabs Subversion property from the files too.
       
 18085 
       
 18086         * DefaultDelegates/WebDefaultPolicyDelegate.m:
       
 18087         * History/WebHistory.m:
       
 18088         * Misc/WebDownload.m:
       
 18089         * Misc/WebIconDatabase.m:
       
 18090         * Misc/WebKitErrors.m:
       
 18091         * Misc/WebKitLogging.m:
       
 18092         * Misc/WebNSDataExtras.m:
       
 18093         * Misc/WebNSFileManagerExtras.m:
       
 18094         * Panels/WebPanelAuthenticationHandler.m:
       
 18095         * Plugins/WebBaseNetscapePluginView.m:
       
 18096         * Plugins/npfunctions.h:
       
 18097         * WebCoreSupport/WebSubresourceLoader.m:
       
 18098         * WebView/WebMainResourceLoader.m:
       
 18099         * WebView/WebView.h:
       
 18100         * WebView/WebView.m:
       
 18101 
       
 18102 2006-07-29  Sam Weinig  <sam.weinig@gmail.com>
       
 18103 
       
 18104         Reviewed by Darin.
       
 18105 
       
 18106         - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
       
 18107           Adopt pedantic changes from the Unity project to improve 
       
 18108           cross-compiler compatibility
       
 18109 
       
 18110           Changes include:
       
 18111           * Adding missing newline to the end of the file.
       
 18112           * Turning on gcc warning for missing newline at the end of a source file
       
 18113             (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
       
 18114 
       
 18115         * WebKit.xcodeproj/project.pbxproj:
       
 18116         * WebView/WebResourcePrivate.h:
       
 18117 
       
 18118 2006-07-29  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 18119 
       
 18120         Reviewed by John Sullivan.
       
 18121 
       
 18122          - fix http://bugs.webkit.org/show_bug.cgi?id=9984
       
 18123           ASSERTION FAILURE: _private->mouseDownEvent != nil
       
 18124           (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
       
 18125 
       
 18126         * WebView/WebHTMLView.m:
       
 18127         (-[WebHTMLView _setMouseDownEvent:]): Moved into the WebHTMLViewFileInternal category and changed
       
 18128         to accept nil.
       
 18129         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 18130         Copy the hit HTMLView's mouse down event to the top HTMLView.
       
 18131         (-[WebHTMLView acceptsFirstMouse:]): Added a call to _setMouseDownEvent:nil before returning.
       
 18132         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): Added a call to _setMouseDownEvent:nil
       
 18133         before returning.
       
 18134         (-[WebHTMLView mouseUp:]): Added a call to _setMouseDownEvent:nil to clear the event set in
       
 18135         mouseDown: (and used during dragging).
       
 18136         (-[WebHTMLView _delegateDragSourceActionMask]): Copy the hit HTMLView's mouse down event to
       
 18137         the top HTMLView.
       
 18138 
       
 18139 2006-07-28  Timothy Hatcher  <timothy@apple.com>
       
 18140 
       
 18141         Reviewed by John.
       
 18142 
       
 18143         <rdar://problem/4657473> REGRESSION: Spell check not available from contextual menu in Mail
       
 18144 
       
 18145         The context menu code should be checking isContentEditable
       
 18146         on DOMNode not just DOMElement. This is needed because DOMText
       
 18147         will be the node class of any text that is clicked.
       
 18148 
       
 18149         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 18150         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
       
 18151 
       
 18152 2006-07-25  Geoffrey Garen  <ggaren@apple.com>
       
 18153 
       
 18154         Reviewed by Maciej, inspired by John.
       
 18155         
       
 18156         - Fixed <rdar://problem/4651931> 1% REGRESSION on iBench HTML due to 
       
 18157         repeated requests for non-existent favicon
       
 18158         
       
 18159         An optimization to avoid serializing favicon data for missing icons had stomped an
       
 18160         optimization to avoid GETing a missing favicon more than once. The solution
       
 18161         is a happy marriage of optimizations, ensuring that we *retain* the missing
       
 18162         favicon's "i am missing" data without posting a notification or saving it to disk.
       
 18163 
       
 18164         * Misc/WebIconDatabase.m:
       
 18165         (-[WebIconDatabase _setIconURL:forURL:]):
       
 18166 
       
 18167 2006-07-25  David Harrison  <harrison@apple.com>
       
 18168 
       
 18169         Reviewed by timo and Darin.
       
 18170 
       
 18171         <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
       
 18172         
       
 18173         * WebKit.xcodeproj/project.pbxproj:
       
 18174         * WebView/WebView.m:
       
 18175         (-[WebView replaceSelectionWithNode:]):
       
 18176         (-[WebView _replaceSelectionWithNode:matchStyle:]):
       
 18177         * WebView/WebViewPrivate.h:
       
 18178         (-[WebView _replaceSelectionWithNode:matchStyle::]):
       
 18179         New SPI that is same as replaceSelectionWithNode: with added parameter whether to match existing style.
       
 18180 
       
 18181 2006-07-24  Darin Adler  <darin@apple.com>
       
 18182 
       
 18183         Reviewed by Adele and Justin.
       
 18184 
       
 18185         - update for change to require context when creating fragments from text
       
 18186           (needed to handle whitespace properly)
       
 18187 
       
 18188         * WebView/WebHTMLView.m:
       
 18189         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:chosePlainText:]):
       
 18190         Added context parameter, pass through to bridge.
       
 18191         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Pass selection range as context
       
 18192         when calling above method.
       
 18193         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Pass drag caret as context when
       
 18194         calling above method.
       
 18195 
       
 18196 2006-07-24  Maciej Stachowiak  <mjs@apple.com>
       
 18197 
       
 18198         Reviewed by Geoff.
       
 18199         
       
 18200         - fix <rdar://problem/4609195> Help Viewer loads empty window (not getting didFailLoadingWithError: callback)
       
 18201         (without re-introducing http://bugs.webkit.org/show_bug.cgi?id=10062 )
       
 18202 
       
 18203         * WebView/WebLoader.h:
       
 18204         * WebView/WebMainResourceLoader.m:
       
 18205         (-[WebMainResourceLoader receivedError:]): Copy in some code from the base class to do it in the proper
       
 18206         order, surrounding the call to [ds _receivedMainResourceError:error complete:YES].
       
 18207 
       
 18208 2006-07-24  Anders Carlsson  <acarlsson@apple.com>
       
 18209 
       
 18210         Reviewed by Tim O.
       
 18211 
       
 18212         * Misc/WebIconDatabase.m:
       
 18213         (-[WebIconDatabase removeAllIcons]):
       
 18214         Make an array of the keys and iterate through it to avoid modifying the
       
 18215         dictionary while enumerating it.
       
 18216 
       
 18217 2006-07-24  Timothy Hatcher  <timothy@apple.com>
       
 18218 
       
 18219         Reviewed by John and Darin.
       
 18220 
       
 18221         <rdar://problem/4634290> Cannot selectively install a custom
       
 18222         scroller that differs from the default Aqua frame size.
       
 18223 
       
 18224         Adds two new private methods to WebFrameView that allows
       
 18225         an application to set a custom scroll view class. This is needed
       
 18226         if the application wants to install a custom scroller that is wider
       
 18227         than the typical scroller, because NSScrollView does the content
       
 18228         rect calculations in a class method (ignoring custom scrollers.)
       
 18229         The _setScrollViewClass method requires the class to be a subclass
       
 18230         of WebDynamicScrollBarView, or nil can be passed to reset to the default class.
       
 18231         A new scroll view of the specified class will then replace the previous
       
 18232         one without the need to reload content of the frame.
       
 18233 
       
 18234         * WebView/WebFrameView.m:
       
 18235         (-[WebFrameView _customScrollViewClass]):
       
 18236         (-[WebFrameView _setCustomScrollViewClass:]):
       
 18237         * WebView/WebFrameViewPrivate.h:
       
 18238 
       
 18239 2006-07-24  Alexey Proskuryakov  <ap@nypop.com>
       
 18240 
       
 18241         Reviewed by Darin.
       
 18242 
       
 18243         Fix http://bugs.webkit.org/show_bug.cgi?id=10009
       
 18244         REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
       
 18245 
       
 18246         * WebView/WebView.m:
       
 18247         (+[WebView _viewClass:andRepresentationClass:forMIMEType:]): If we've got a type supported by WebPDFView,
       
 18248         make sure to initialize the plugin database, in case a plugin wants to handle it.
       
 18249 
       
 18250 2006-07-23  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 18251 
       
 18252         Reviewed by Maciej.
       
 18253 
       
 18254         Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
       
 18255         http://bugs.webkit.org/show_bug.cgi?id=9686
       
 18256 
       
 18257         WebKit portion of the fix.
       
 18258 
       
 18259         * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
       
 18260         (-[WebDefaultScriptDebugDelegate webView:exceptionWasRaised:sourceId:line:forWebFrame:]):
       
 18261         * DefaultDelegates/WebScriptDebugServer.h:
       
 18262         * DefaultDelegates/WebScriptDebugServer.m:
       
 18263         (-[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:]): Notify
       
 18264         listeners that an exception has been raised.
       
 18265         * WebView/WebScriptDebugDelegate.h:
       
 18266         * WebView/WebScriptDebugDelegate.m:
       
 18267         (-[WebScriptCallFrame exceptionRaised:sourceId:line:]): Dispatch through to delegate and
       
 18268         WebScriptDebugServer.
       
 18269 
       
 18270 2006-07-23  Adele Peterson  <adele@apple.com>
       
 18271 
       
 18272         Reviewed by Darin.
       
 18273 
       
 18274         - Fix for <rdar://problem/4646276> CrashTracer: 7 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::paint + 155
       
 18275 
       
 18276         * WebView/WebHTMLView.m: (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]):
       
 18277         needsDisplay was returning NO even though the view has a dirty rect (see <rdar://problem/4647062>).  Since we know about
       
 18278         the dirty rect, we don't actually need to check needsDisplay.
       
 18279 
       
 18280 2006-07-22  Timothy Hatcher  <timothy@apple.com>
       
 18281 
       
 18282         Rolling out r15572.
       
 18283         
       
 18284         Bug 10062: REGRESSION: dom/xhtml/level2/html/HTMLIFrameElement11.xhtml asserts/crashes
       
 18285         http://bugs.webkit.org/show_bug.cgi?id=10062
       
 18286 
       
 18287     2006-07-21  Timothy Hatcher  <timothy@apple.com>
       
 18288 
       
 18289         Reviewed by Maciej.
       
 18290 
       
 18291         <rdar://problem/4609195> Help Viewer loads empty window
       
 18292         (not getting didFailLoadingWithError: callback)
       
 18293 
       
 18294         Call super's didFailWithError before _receivedMainResourceError
       
 18295         because _receivedMainResourceError will cause the datasource's
       
 18296         frame to be set to nil before the didFailLoadingWithError delegate
       
 18297         callback is sent. (This order is needed now that WebDataSource does
       
 18298         not hold on to the WebView; it uses the WebFrame to get to the WebView.
       
 18299         If the WebFrame is nil we can't get to the WebView's resource load delegate.)
       
 18300 
       
 18301         * WebView/WebMainResourceLoader.m:
       
 18302         (-[WebMainResourceLoader receivedError:]):
       
 18303 
       
 18304 
       
 18305 2006-07-22  Timothy Hatcher  <timothy@apple.com>
       
 18306 
       
 18307         Reviewed by Adele.
       
 18308 
       
 18309         <rdar://problem/4646318> REGRESSION: Ctrl-clicking on a selection containing a word doesn't display a complete contextual menu
       
 18310         
       
 18311         Show the editing context menu if the WebView is editible.
       
 18312         The original change only checked if the DOM element was editable,
       
 18313         and isContentEditable returns NO if entire WebView is editable.
       
 18314 
       
 18315         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 18316         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
       
 18317 
       
 18318 2006-07-21  Timothy Hatcher  <timothy@apple.com>
       
 18319 
       
 18320         Reviewed by Maciej.
       
 18321 
       
 18322         <rdar://problem/4609195> Help Viewer loads empty window
       
 18323         (not getting didFailLoadingWithError: callback)
       
 18324 
       
 18325         Call super's didFailWithError before _receivedMainResourceError
       
 18326         because _receivedMainResourceError will cause the datasource's
       
 18327         frame to be set to nil before the didFailLoadingWithError delegate
       
 18328         callback is sent. (This order is needed now that WebDataSource does
       
 18329         not hold on to the WebView; it uses the WebFrame to get to the WebView.
       
 18330         If the WebFrame is nil we can't get to the WebView's resource load delegate.)
       
 18331 
       
 18332         * WebView/WebMainResourceLoader.m:
       
 18333         (-[WebMainResourceLoader receivedError:]):
       
 18334 
       
 18335 === Safari-521.20 ===
       
 18336 
       
 18337 2006-07-21  Timothy Hatcher  <timothy@apple.com>
       
 18338 
       
 18339         Reviewed by John.
       
 18340 
       
 18341         <rdar://problem/4607572> REGRESSION (521.10.1 - 521.13): most context menu items missing when a form field is focused (common on google.com) (9680)
       
 18342 
       
 18343         Do not use _isEditable call since that only checks if the current
       
 18344         selection or frame is editible. We now check if the currently clicked element
       
 18345         is a content editible area, a textarea, an isindex or an input element that
       
 18346         return YES to _isTextField.
       
 18347 
       
 18348         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 18349         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
       
 18350 
       
 18351 2006-07-20  John Sullivan  <sullivan@apple.com>
       
 18352 
       
 18353         Reviewed by Maciej
       
 18354 
       
 18355         - WebKit part of fix for:
       
 18356         <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving 
       
 18357         closing tabs after clicking in a web page
       
 18358 
       
 18359         * WebCoreSupport/WebFrameBridge.m:
       
 18360         (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
       
 18361         renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)        
       
 18362         
       
 18363         * WebView/WebHTMLViewInternal.h:
       
 18364         * WebView/WebHTMLView.m:
       
 18365         (-[WebTextCompleteController dealloc]):
       
 18366         updated for name change
       
 18367         (-[NSArray _setMouseDownEvent:]):
       
 18368         Now only retains the first responder if it's a textView, since that's the only case that the only client
       
 18369         actually cares about. This avoids a reference cycle caused by retaining self. This is the only substantive
       
 18370         part of the patch; all the rest is just renaming for clarity, and comments.
       
 18371         (-[NSArray mouseDown:]):
       
 18372         updated for name change
       
 18373         (-[WebHTMLView _textViewWasFirstResponderAtMouseDownTime:]):
       
 18374         renamed to be more specific (formerly _wasFirstResponderAtMouseDownTime:)        
       
 18375 
       
 18376 2006-07-19  Tim Omernick  <timo@apple.com>
       
 18377 
       
 18378         Reviewed by Darin.
       
 18379 
       
 18380         <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or other WebPreferences changes)
       
 18381 
       
 18382         * Plugins/WebBaseNetscapePluginView.m:
       
 18383         (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
       
 18384         Stop the plug-in when it is removed from its superview.  It is not sufficient to do this in -viewWillMoveToWindow:nil, because
       
 18385         the WebView might still has a hostWindow at that point, which prevents the plug-in from being destroyed.
       
 18386         There is no need to start the plug-in when moving into a superview.  -viewDidMoveToWindow takes care of that.
       
 18387 
       
 18388 === Safari-521.19 ===
       
 18389 
       
 18390 2006-07-17  Tim Omernick  <timo@apple.com>
       
 18391 
       
 18392         Reviewed by Maciej.
       
 18393 
       
 18394         <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
       
 18395         by script
       
 18396 
       
 18397         * WebView/WebViewPrivate.h:
       
 18398         * WebView/WebView.m:
       
 18399         (-[WebView setProhibitsMainFrameScrolling:]):
       
 18400         New method.  Prohibits scrolling in the WebView's main frame.  Used to "lock" a WebView to a specific
       
 18401         scroll position.
       
 18402 
       
 18403 2006-07-17  Timothy Hatcher  <timothy@apple.com>
       
 18404 
       
 18405         Reviewed by Darin.
       
 18406         
       
 18407         <rdar://problem/4635311> REGRESSION: WebKit should call windowScriptObjectAvailable before attaching the script debugger
       
 18408 
       
 18409         * WebCoreSupport/WebFrameBridge.m:
       
 18410         (-[WebFrameBridge windowObjectCleared]):
       
 18411 
       
 18412 2006-07-17  Timothy Hatcher  <timothy@apple.com>
       
 18413 
       
 18414         Reviewed by Maciej.
       
 18415 
       
 18416         <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
       
 18417 
       
 18418         Copy WebScriptObject.h from WebCore's private headers, not JavaScriptCore.
       
 18419 
       
 18420         * WebKit.xcodeproj/project.pbxproj:
       
 18421 
       
 18422 2006-07-17  John Sullivan  <sullivan@apple.com>
       
 18423 
       
 18424         Reviewed by Tim Omernick.
       
 18425         
       
 18426         - fixed <rdar://problem/4604366> Orange Find highlight displays text in wrong size on PDF pages 
       
 18427         if they're not at "actual size"
       
 18428         
       
 18429         To match WebHTMLView, I made the methods that return attributed strings take the view's scale
       
 18430         factor into account.
       
 18431 
       
 18432         * WebView/WebPDFView.m:
       
 18433         (-[WebPDFView _scaledAttributedString:]):
       
 18434         new helper method, takes an attributed string and returns one that's scaled by the view's
       
 18435         current scale factor
       
 18436         (-[WebPDFView attributedString]):
       
 18437         pass result through _scaledAttributedString:
       
 18438         (-[WebPDFView selectedAttributedString]):
       
 18439         ditto
       
 18440 
       
 18441 2006-07-17  Justin Garcia  <justin.garcia@apple.com>
       
 18442 
       
 18443         Reviewed by levi
       
 18444         
       
 18445         Rolled the first fix for:
       
 18446         <http://bugs.webkit.org/show_bug.cgi?id=9642>
       
 18447         GMail Editor: Operations that use drop down menus blow away the selection
       
 18448         back in and removed the call to _clearSelectionInOtherFrames from 
       
 18449         -[WebHTMLView becomeFirstResponder] to fix the bug.
       
 18450 
       
 18451         * WebView/WebHTMLView.m:
       
 18452         (-[NSArray maintainsInactiveSelection]):
       
 18453         (-[NSArray becomeFirstResponder]):
       
 18454         * WebView/WebView.m:
       
 18455         (-[WebView maintainsInactiveSelection]):
       
 18456 
       
 18457 2006-07-15  Darin Adler  <darin@apple.com>
       
 18458 
       
 18459         Reviewed by John Sullivan.
       
 18460 
       
 18461         - fix http://bugs.webkit.org/show_bug.cgi?id=9928
       
 18462           REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
       
 18463 
       
 18464         * WebView/WebHTMLView.m:
       
 18465         (-[WebHTMLView _documentRange]): Moved into WebHTMLViewFileInternal category.
       
 18466         (-[WebHTMLView selectionRect]): Moved into WebDocumentPrivateProtocols category.
       
 18467         (-[WebHTMLView selectionView]): Ditto.
       
 18468         (-[WebHTMLView selectionImageForcingWhiteText:]): Ditto.
       
 18469         (-[WebHTMLView selectionImageRect]): Ditto.
       
 18470         (-[WebHTMLView pasteboardTypesForSelection]): Ditto.
       
 18471         (-[WebHTMLView selectAll]): Ditto.
       
 18472         (-[WebHTMLView deselectAll]): Ditto.
       
 18473         (-[WebHTMLView string]): Ditto.
       
 18474         (-[WebHTMLView _attributeStringFromDOMRange:]): Ditto.
       
 18475         (-[WebHTMLView attributedString]): Ditto.
       
 18476         (-[WebHTMLView selectedString]): Ditto.
       
 18477         (-[WebHTMLView selectedAttributedString]): Ditto.
       
 18478         (-[WebHTMLView supportsTextEncoding]): Ditto.
       
 18479         (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Moved into WebDocumentInternalProtocols.
       
 18480         (-[WebHTMLView _isMoveDrag]): Ditto.
       
 18481         (-[WebHTMLView _isNSColorDrag:]): Ditto.
       
 18482         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
       
 18483         (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
       
 18484         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto.
       
 18485         (-[WebHTMLView elementAtPoint:]): Ditto.
       
 18486         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Ditto.
       
 18487 
       
 18488         * WebKit.xcodeproj/project.pbxproj: Let Xcode 2.3 do its thing.
       
 18489 
       
 18490 === Safari-521.17 ===
       
 18491 
       
 18492 2006-07-14  Timothy Hatcher  <timothy@apple.com>
       
 18493 
       
 18494         Rolling out this fix from r15358 since it isn't resolved.
       
 18495 
       
 18496     2006-07-11  Justin Garcia  <justin.garcia@apple.com>
       
 18497 
       
 18498         Reviewed by levi & thatcher
       
 18499 
       
 18500         <http://bugs.webkit.org/show_bug.cgi?id=9642>
       
 18501         GMail Editor: Operations that use drop down menus blow away the selection
       
 18502 
       
 18503         * WebView/WebHTMLView.m:
       
 18504         (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
       
 18505         when resigning as first responder if the selection is editable
       
 18506         or if the WebView tells us to.
       
 18507         * WebView/WebView.m:
       
 18508         (-[WebView maintainsInactiveSelection]): Just because a WebView is
       
 18509         editable doesn't mean selections inside subframes will be.  Return
       
 18510         NO by default.
       
 18511 
       
 18512 2006-07-14  Timothy Hatcher  <timothy@apple.com>
       
 18513 
       
 18514         <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
       
 18515 
       
 18516         Build fix with the new GCC. Removes forward declarations of protocols.
       
 18517 
       
 18518         * Misc/WebSearchableTextView.h:
       
 18519         * WebCoreSupport/WebSubresourceLoader.h:
       
 18520         * WebKit.xcodeproj/project.pbxproj:
       
 18521         * WebView/WebDocumentInternal.h:
       
 18522         * WebView/WebDocumentPrivate.h:
       
 18523         * WebView/WebHTMLView.h:
       
 18524         * WebView/WebPDFView.h:
       
 18525         * WebView/WebScriptDebugDelegatePrivate.h:
       
 18526 
       
 18527 2006-06-28  Darin Adler  <darin@apple.com>
       
 18528 
       
 18529         Reviewed by Adele.
       
 18530 
       
 18531         - fix http://bugs.webkit.org/show_bug.cgi?id=9625
       
 18532           <rdar://problem/4604703>
       
 18533           REGRESSION: Focus not removed from password field after ctrl-click in text field
       
 18534 
       
 18535         * WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Set handlingMouseDownEvent to
       
 18536         YES while calling sendContextMenuEvent: on the bridge.
       
 18537 
       
 18538 2006-07-14  Timothy Hatcher  <timothy@apple.com>
       
 18539 
       
 18540         Reviewed by Maciej.
       
 18541 
       
 18542         Moved JavaScriptCore to be a public framework.
       
 18543 
       
 18544         * WebKit.xcodeproj/project.pbxproj:
       
 18545 
       
 18546 2006-07-13  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 18547 
       
 18548         Reviewed by Darin.
       
 18549 
       
 18550         - fix http://bugs.webkit.org/show_bug.cgi?id=9795
       
 18551           REGRESSION: Crash in [WebHTMLView(WebPrivate) 
       
 18552           _updateMouseoverWithEvent:]
       
 18553           and http://bugs.webkit.org/show_bug.cgi?id=9850
       
 18554           REGRESSION: Assertion failure (SHOULD NEVER BE REACHED) in -
       
 18555           [WebHTMLView(WebPrivate) removeTrackingRect:]
       
 18556 
       
 18557         * WebView/WebHTMLView.m:
       
 18558         (-[WebHTMLView _updateMouseoverWithEvent:]): Return immediately if 
       
 18559         the view has already been closed.
       
 18560 
       
 18561 2006-07-13  David Harrison  <harrison@apple.com>
       
 18562 
       
 18563         Reviewed by Justin and Levi.
       
 18564 
       
 18565         <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
       
 18566 
       
 18567         * Tests:
       
 18568         editing/deleting/delete-by-word-001.html
       
 18569         editing/deleting/delete-by-word-002.html
       
 18570 
       
 18571         * WebView/WebHTMLView.m:
       
 18572         (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
       
 18573 
       
 18574 2006-07-13  Timothy Hatcher  <timothy@apple.com>
       
 18575 
       
 18576         Rolling out this earlier change (r15378) now that it is fixed on AGL's end.
       
 18577         Fixes <rdar://problem/4624865> Restore 64-bit OpenGL plug-in support once AGL is 64-bit
       
 18578 
       
 18579         <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
       
 18580 
       
 18581         * Plugins/WebBaseNetscapePluginView.h:
       
 18582         * Plugins/WebBaseNetscapePluginView.m:
       
 18583 
       
 18584 2006-07-13  Timothy Hatcher  <timothy@apple.com>
       
 18585 
       
 18586         Reviewed by Darin.
       
 18587 
       
 18588         <rdar://problem/4616920> REGRESSION: tabbing in mail moves focus
       
 18589         to next control instead of inserting a tab space.
       
 18590 
       
 18591         Change editible WebView's tabKeyCyclesThroughElements to NO only
       
 18592         if the setTabKeyCyclesThroughElements SPI wasn't called.
       
 18593 
       
 18594         * WebView/WebView.m:
       
 18595         (-[WebView setEditable:]):
       
 18596 
       
 18597 2006-07-12  Anders Carlsson  <acarlsson@apple.com>
       
 18598 
       
 18599         Reviewed by Darin.
       
 18600 
       
 18601         http://bugs.webkit.org/show_bug.cgi?id=9624
       
 18602         REGRESSION: After ctrl-clicking in a EMPTY input or textarea field, the contextual menu shows "Search in Google" and "Search in Spotlight" as active menu items
       
 18603 
       
 18604         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 18605         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 18606         Don't create Dictionary, Spotlight or Google lookup items if there's no selection.
       
 18607 
       
 18608 2006-07-12  Mark Rowe  <opendarwin.org@bdash.net.nz>
       
 18609 
       
 18610         Reviewed by Timothy.
       
 18611 
       
 18612         http://bugs.webkit.org/show_bug.cgi?id=9868
       
 18613         Applications shown in Drosera's "Attach" window remain after exit
       
 18614 
       
 18615         * DefaultDelegates/WebScriptDebugServer.m:
       
 18616         (-[WebScriptDebugServer init]): Register for NSApplicationWillTerminateNotification so we will
       
 18617         know when the application is being exited.
       
 18618         (-[WebScriptDebugServer dealloc]): Unregister notification before we are deallocated.
       
 18619         (-[WebScriptDebugServer applicationTerminating:]): Inform anyone listening that we are going away.
       
 18620 
       
 18621 2006-07-12  Tim Omernick  <timo@apple.com>
       
 18622 
       
 18623         Reviewed by Tim Hatcher.
       
 18624 
       
 18625         <rdar://problem/4624858> AGL isn't 64-bit yet; temporarily remove it from WebKit 64-bit build
       
 18626 
       
 18627         Also, fixed a LOG_ERROR() so that it uses the CGL error instead of the AGL error; Tim H missed this in his build fix
       
 18628         from earlier.
       
 18629 
       
 18630         * Plugins/WebBaseNetscapePluginView.h:
       
 18631         * Plugins/WebBaseNetscapePluginView.m:
       
 18632 
       
 18633 2006-07-11  John Sullivan  <sullivan@apple.com>
       
 18634 
       
 18635         Reviewed by Kevin and Tim O
       
 18636 
       
 18637         - added support for creating a selection image with white text
       
 18638 
       
 18639         * WebView/WebDocumentPrivate.h:
       
 18640         added -selectionImageForcingWhiteText: and -selectionImageRect to the private
       
 18641         <WebDocumentSelection> protocol
       
 18642 
       
 18643         * Misc/WebSearchableTextView.m:
       
 18644         (-[NSString selectionImageForcingWhiteText:]):
       
 18645         added stub for this new method to this obsolete class to satisfy the compiler
       
 18646         (-[NSString selectionImageRect]):
       
 18647         ditto
       
 18648         
       
 18649         * WebView/WebHTMLView.m:
       
 18650         (-[WebHTMLView _selectionDraggingImage]):
       
 18651         now calls -selectionImageForcingWhiteText:NO instead of just -selectionImage
       
 18652         (-[WebHTMLView _selectionDraggingRect]):
       
 18653         now calls selectionImageRect, to which the implementation moved
       
 18654         (-[WebHTMLView selectionImageForcingWhiteText:]):
       
 18655         implemented this new method by calling through to new bridge method selectionImageForcingWhiteText:
       
 18656         (-[WebHTMLView selectionImageRect]):
       
 18657         implemented this new method by using existing _selectionDraggingRect implementation
       
 18658         
       
 18659         * WebView/WebPDFView.m:
       
 18660         (-[WebPDFView selectionImageForcingWhiteText:]):
       
 18661         implemented by using code that was formerly in Safari
       
 18662         (-[WebPDFView selectionImageRect]):
       
 18663         implemented by returning selectionRect
       
 18664 
       
 18665 2006-07-11  Tim Omernick  <timo@apple.com>
       
 18666 
       
 18667         Reviewed by Geoff.
       
 18668 
       
 18669         <http://bugs.webkit.org/show_bug.cgi?id=9843>:
       
 18670         Give Netscape plug-ins access to their own DOM element
       
 18671 
       
 18672         * Plugins/WebBaseNetscapePluginView.h:
       
 18673         * Plugins/WebBaseNetscapePluginView.m:
       
 18674         (-[WebBaseNetscapePluginView dealloc]):
       
 18675         Release DOM element.
       
 18676         (-[WebBaseNetscapePluginView getVariable:value:]):
       
 18677         Return NPObject for plugin DOM element.
       
 18678 
       
 18679         * Plugins/WebNetscapePluginEmbeddedView.h:
       
 18680         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 18681         (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]):
       
 18682         Now takes a DOMElement, in much the same way that WebKit plug-in views take a DOMElement.
       
 18683 
       
 18684         * WebCoreSupport/WebFrameBridge.m:
       
 18685         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
 18686         Pass DOMElement to Netscape plug-ins.
       
 18687         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
 18688         ditto
       
 18689 
       
 18690 2006-07-11  Justin Garcia  <justin.garcia@apple.com>
       
 18691 
       
 18692         Reviewed by levi & thatcher
       
 18693         
       
 18694         <http://bugs.webkit.org/show_bug.cgi?id=9642>
       
 18695         GMail Editor: Operations that use drop down menus blow away the selection
       
 18696         
       
 18697         * WebView/WebHTMLView.m:
       
 18698         (-[WebHTMLView maintainsInactiveSelection]): Maintain an inactive selection
       
 18699         when resigning as first responder if the selection is editable
       
 18700         or if the WebView tells us to.
       
 18701         * WebView/WebView.m:
       
 18702         (-[WebView maintainsInactiveSelection]): Just because a WebView is
       
 18703         editable doesn't mean selections inside subframes will be.  Return
       
 18704         NO by default.
       
 18705 
       
 18706 2006-07-11  Tim Omernick  <timo@apple.com>
       
 18707 
       
 18708         Reviewed by Tim Hatcher.
       
 18709 
       
 18710         <rdar://problem/4622748> WebKit now uses deprecated AGL functions
       
 18711 
       
 18712         * Plugins/WebBaseNetscapePluginView.m:
       
 18713         (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
       
 18714         aglSetDrawable() is deprecated in AGL 3.0.  Use aglSetWindowRef() instead.
       
 18715         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
       
 18716         aglSetOffScreen() is deprecated in AGL 3.0.  Use CGLSetOffScreen(), which does the same thing.
       
 18717 
       
 18718 2006-07-11  Alexey Proskuryakov  <ap@nypop.com>
       
 18719 
       
 18720         Reviewed by Tim O.
       
 18721 
       
 18722         - http://bugs.webkit.org/show_bug.cgi?id=7808
       
 18723         Assertion failure in -[WebBaseNetscapePluginStream dealloc] when requesting an invalid URL
       
 18724 
       
 18725         * Plugins/WebNetscapePluginStream.m:
       
 18726         (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
       
 18727         Remove the early return when requesting an invalid (unsupported) URL.
       
 18728 
       
 18729 === Safari-521.16 ===
       
 18730 
       
 18731 2006-07-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 18732 
       
 18733         Reviewed by John Sullivan.
       
 18734 
       
 18735         - fix <rdar://problem/4621541>, aka <http://bugs.webkit.org/show_bug.cgi?id=9838>
       
 18736           REGRESSION (r14968-r14977): View Source doesn't work for pages from the back/forward cache
       
 18737 
       
 18738         * WebView/WebDataSource.m:
       
 18739         (-[WebDataSource _setPrimaryLoadComplete:]): Set our data only if the frame loader is
       
 18740         has just loaded it (when coming from the back/forward cache, it hasn't).
       
 18741 
       
 18742 2006-07-10  Brady Eidson  <beidson@apple.com>
       
 18743 
       
 18744         Reviewed by Alexey
       
 18745 
       
 18746         Resolved the console error messages people got from the new DB even if they didn't have it enabled
       
 18747 
       
 18748         * Misc/WebIconDatabase.m:
       
 18749         (-[WebIconDatabase init]):
       
 18750         Disabled initializing the IconDatabaseBridge if user is living on the old DB
       
 18751 
       
 18752 2006-07-10  Darin Adler  <darin@apple.com>
       
 18753 
       
 18754         - try to fix Windows build
       
 18755 
       
 18756         * COM/WebFrame.h: Qualify DeprecatedString and KURL with WebCore:: prefixes.
       
 18757 
       
 18758 2006-07-09  Darin Adler  <darin@apple.com>
       
 18759 
       
 18760         - try to fix Windows build
       
 18761 
       
 18762         * COM/WebFrame.cpp: Rename QChar to DeprecatedChar.
       
 18763 
       
 18764 2006-07-09  Darin Adler  <darin@apple.com>
       
 18765 
       
 18766         - fix newlines to be consistent for all files in the COM directory
       
 18767           (many had mixed style) and set the EOL style to "native" on them.
       
 18768 
       
 18769         * COM/*: Set properties and changed files.
       
 18770 
       
 18771 2006-07-09  Tim Omernick  <timo@apple.com>
       
 18772 
       
 18773         Reviewed by Maciej.
       
 18774 
       
 18775         <rdar://problem/4404652> Netscape plug-in mouse events broken in HiDPI
       
 18776 
       
 18777         Multiply global mouse coordinates by the window scale factor so that plug-ins can use GlobalToLocal() in HiDPI.
       
 18778         This fixes many bugs involving plug-in mouse event handling in HiDPI.  Most notably, the Flash player will now
       
 18779         correctly respond to clicks.
       
 18780 
       
 18781         * Plugins/WebBaseNetscapePluginView.m:
       
 18782         (+[WebBaseNetscapePluginView getCarbonEvent:]):
       
 18783         (-[WebBaseNetscapePluginView getCarbonEvent:withEvent:]):
       
 18784 
       
 18785 2006-07-09  Darin Adler  <darin@apple.com>
       
 18786 
       
 18787         Reviewed by Tim Hatcher.
       
 18788 
       
 18789         - fix assertion firing in plug-in layout tests
       
 18790 
       
 18791         * Plugins/WebBaseNetscapePluginView.m:
       
 18792         (-[WebBaseNetscapePluginView restartNullEvents]):
       
 18793         Don't start null events if the plug-in is not in the
       
 18794         started state. This happens when the plug-in moves within
       
 18795         its view hierarchy after it has been stopped.
       
 18796 
       
 18797 2006-07-09  Timothy Hatcher  <timothy@apple.com>
       
 18798 
       
 18799         Reviewed by Darin.
       
 18800 
       
 18801         Bug 9820: Move new DOM API that has been through API review to public headers
       
 18802         http://bugs.webkit.org/show_bug.cgi?id=9820
       
 18803 
       
 18804         * Misc/WebElementDictionary.m: include DOMExtensions.h
       
 18805         * Misc/WebNSViewExtras.m: include DOMExtensions.h
       
 18806         * WebKit.xcodeproj/project.pbxproj: make DOMXPath.h public
       
 18807 
       
 18808 2006-07-09  Timothy Hatcher  <timothy@apple.com>
       
 18809 
       
 18810         Reviewed by Kevin.
       
 18811 
       
 18812         Bug 9818: move new UIDelegate API that has been through API review to public headers
       
 18813         http://bugs.webkit.org/show_bug.cgi?id=9818
       
 18814 
       
 18815         <rdar://problem/4387541> API: Remove webView:setContentRect: & webViewContentRect: delegate methods?
       
 18816         The fix for 4310363 removed the only use of webViewContentRect: in our code. webView:setContentRect:
       
 18817         was never used to begin with. There's no harm in leaving these around in the API, but they'll cruft it up.
       
 18818 
       
 18819         Also removes the never used webViewPrint: SPI that was replaced by webView:printFrameView:.
       
 18820 
       
 18821         * DefaultDelegates/WebDefaultUIDelegate.m:
       
 18822         * WebCoreSupport/WebFrameBridge.m:
       
 18823         (-[WebFrameBridge print]):
       
 18824         * WebView/WebFrameView.h:
       
 18825         * WebView/WebFrameView.m:
       
 18826         * WebView/WebFrameViewPrivate.h:
       
 18827         * WebView/WebUIDelegate.h:
       
 18828         * WebView/WebUIDelegatePrivate.h:
       
 18829 
       
 18830 2006-07-09  Timothy Hatcher  <timothy@apple.com>
       
 18831 
       
 18832         Reviewed by Darin.
       
 18833 
       
 18834         Bug 9814: Move new WebView API that has been through API review to public headers
       
 18835         http://bugs.webkit.org/show_bug.cgi?id=9814
       
 18836 
       
 18837         * WebView/WebView.h:
       
 18838         * WebView/WebView.m:
       
 18839         (-[WebView close]):
       
 18840         (-[WebView setShouldCloseWithWindow:]):
       
 18841         (-[WebView shouldCloseWithWindow]):
       
 18842         (-[WebView selectedFrame]):
       
 18843         (-[WebView setMainFrameURL:]):
       
 18844         (-[WebView mainFrameURL]):
       
 18845         (-[WebView isLoading]):
       
 18846         (-[WebView mainFrameTitle]):
       
 18847         (-[WebView mainFrameIcon]):
       
 18848         (-[WebView mainFrameDocument]):
       
 18849         (-[WebView setDrawsBackground:]):
       
 18850         (-[WebView drawsBackground]):
       
 18851         (-[WebView toggleSmartInsertDelete:]):
       
 18852         (-[WebView toggleContinuousSpellChecking:]):
       
 18853         (-[WebView canMakeTextStandardSize]):
       
 18854         (-[WebView makeTextStandardSize:]):
       
 18855         (-[WebView maintainsInactiveSelection]):
       
 18856         * WebView/WebViewPrivate.h:
       
 18857 
       
 18858 2006-07-09  Timothy Hatcher  <timothy@apple.com>
       
 18859 
       
 18860         Reviewed by Maciej.
       
 18861 
       
 18862         Bug 9487: The XPath section should be removed and/or moved.
       
 18863         http://bugs.webkit.org/show_bug.cgi?id=9487
       
 18864 
       
 18865         * WebInspector/webInspector/inspector.css:
       
 18866         * WebInspector/webInspector/inspector.html:
       
 18867         * WebInspector/webInspector/inspector.js:
       
 18868 
       
 18869 2006-07-09  Anders Carlsson  <acarlsson@apple.com>
       
 18870 
       
 18871         Reviewed by Tim O.
       
 18872 
       
 18873         * WebCoreSupport/WebSystemInterface.m:
       
 18874         (InitWebCoreSystemInterface):
       
 18875         Initialize wkPathFromFont.
       
 18876 
       
 18877 2006-07-09  Darin Adler  <darin@apple.com>
       
 18878 
       
 18879         - fix release build
       
 18880 
       
 18881         * Plugins/WebBaseNetscapePluginView.m:
       
 18882         (-[WebBaseNetscapePluginView restorePortState:]): Cast inside the assertion so
       
 18883         that we don't have an unused variable in versions with assertions disabled.
       
 18884         The alternative would be to wrap the whole thing in an #if statement.
       
 18885 
       
 18886 2006-07-08  Tim Omernick  <timo@apple.com>
       
 18887 
       
 18888         Reviewed by John Sullivan.
       
 18889 
       
 18890         * Plugins/WebBaseNetscapePluginView.h:
       
 18891         - Added ivars for OpenGL support.  Someday it would be nice to refactor this class so
       
 18892           that each drawing model is encapsulated in a class; this would allow
       
 18893           WebBaseNetscapePluginView to make more efficient use of space, for example by not
       
 18894           keeping OpenGL-related ivars for Quickdraw plug-ins.
       
 18895         
       
 18896         * Plugins/WebBaseNetscapePluginView.m:
       
 18897         - Declared a bunch of internal methods for OpenGL support (see below).
       
 18898         - Removed "forUpdate" from CoreGraphics port state struct; it was always set to "YES",
       
 18899           so I just cleaned up the silly code that used it.
       
 18900         - Declared OpenGL port state struct.
       
 18901         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
 18902         - Moved a CoreGraphics-related assertion down to the big "switch" statement.
       
 18903         - Don't set window.type here -- according to the Netscape Plug-in API docs, the plug-in
       
 18904           should default to "windowed" mode, and may call NPN_SetValue() during its NPN_New() to
       
 18905           request that the browser use a "windowless" (offscreen) context instead.
       
 18906         - Moved the assertion from the top of this method here; removed a less restrictive
       
 18907           assertion that is now obsolete.
       
 18908         - Removed "forUpdate" flag from CoreGraphics port state struct.
       
 18909         - Fill in OpenGL port state struct.  Set up the viewport appropriately for both windowed
       
 18910           and windowless OpenGL plug-ins.  Windowed plug-ins need to have their GL viewport
       
 18911           transformed by the amount the plug-in is clipped; windowless plug-ins are drawn off-screen
       
 18912           into a surface whose geometry is never changed or clipped, so they may always draw with
       
 18913           a viewport origin of (0, 0).
       
 18914         (-[WebBaseNetscapePluginView restorePortState:]):
       
 18915         - Removed "forUpdate" flag from CoreGraphics port state struct.
       
 18916         - Restore the old OpenGL context saved by -saveAndSetNewPortStateForUpdate:.
       
 18917         (-[WebBaseNetscapePluginView sendEvent:]):
       
 18918         - Updated an assertion to also include OpenGL.  To ensure that attached plug-in window movements
       
 18919           happen atomically with web page redisplays, we assert that the plug-in's window is set only while
       
 18920           the plug-in view is redrawing.
       
 18921         - Same deal as with the assertion; only save/set port state when redrawing the plug-in view.  Plug-ins
       
 18922           that use the new drawing models are only allowed to draw when the web page draws.  I might consider
       
 18923           changing this for windowed OpenGL plug-ins, since they always obscure the page content anyway.
       
 18924         (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
       
 18925         - Compare new NP_GLContext structs.
       
 18926         (-[WebBaseNetscapePluginView updateAndSetWindow]):
       
 18927         - In OpenGL mode, can only set window when updating plug-in view.
       
 18928         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
       
 18929         - ditto
       
 18930         - Updated logging for OpenGL drawing mode.
       
 18931         (-[WebBaseNetscapePluginView addWindowObservers]):
       
 18932         - No need to observe frame/bounds change notifications for this and all parent views.  See -renewGState
       
 18933           comments below.
       
 18934         (-[WebBaseNetscapePluginView removeWindowObservers]):
       
 18935         - Don't need to remove frame/bounds observers anymore.
       
 18936         (-[WebBaseNetscapePluginView start]):
       
 18937         - Plug-ins are "windowed" by default.  This is not a change from our previous behavior, but this is a
       
 18938           better place to set the default value as it allows the plug-in to override it later.
       
 18939         (-[WebBaseNetscapePluginView stop]):
       
 18940         - Destroy AGL context when the plug-in stops.
       
 18941         (-[WebBaseNetscapePluginView dealloc]):
       
 18942         - Assert that the AGL stuff has been cleaned up.
       
 18943         (-[WebBaseNetscapePluginView drawRect:]):
       
 18944         - If this is a windowless OpenGL plugin, blit its contents back into this view.
       
 18945         (-[WebBaseNetscapePluginView renewGState]):
       
 18946         - This method is called when the view or one of its parents is moved or resized (see comments).
       
 18947         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
       
 18948         - Hide the AGL window if the plug-in view is about to be removed from its window.
       
 18949         (-[WebBaseNetscapePluginView viewHasMoved:]):
       
 18950         - Renamed and moved to the "Internal" category.
       
 18951         (-[WebBaseNetscapePluginView invalidateRegion:]):
       
 18952         - Style changes.
       
 18953         - Add support for OpenGL (uses the same region type as CoreGraphics).
       
 18954         (-[WebBaseNetscapePluginView getVariable:value:]):
       
 18955         - Style changes.
       
 18956         - Implemented NPNVsupportsOpenGLBool; returns YES since we now support the OpenGL drawing model.
       
 18957         (-[WebBaseNetscapePluginView setVariable:value:]):
       
 18958         - Implemented NPPVpluginWindowBool, which allows plug-ins to specify whether they should be rendered in
       
 18959           "windowed" or "windowless" mode.  This is an older part of the Netscape Plug-in API that was never
       
 18960           implemented in WebKit.  "Windowed" Quickdraw plug-ins do not actually reside in a separate window, and
       
 18961           can already do many of the same things (such as transparency) that only "windowless" plug-ins can do on
       
 18962           other platforms.  However, we need the "windowed" vs. "windowless" distinction for OpenGL plug-ins so
       
 18963           that they have some way of specifying whether they should be rendered on an accelerated overlay surface,
       
 18964           composited into the browser window.
       
 18965         - Support for setting the drawing model to OpenGL.
       
 18966         (-[WebBaseNetscapePluginView _viewHasMoved]):
       
 18967         - Renamed from -viewHasMoved:, and moved down in the file.
       
 18968         - None of this work is necessary when the plug-in is not in a window; the plug-in's state will be properly
       
 18969           restored when it is moved back into a window.
       
 18970         - Reshape OpenGL surface window here.
       
 18971         (-[WebBaseNetscapePluginView _createAGLContextIfNeeded]):
       
 18972         - Creates the AGL context of the appropriate type (windowed/windowless).
       
 18973         (-[WebBaseNetscapePluginView _createWindowedAGLContext]):
       
 18974         - Creates a windowed AGL context, which is an AGL context attached to a child window.  This is the only way
       
 18975           to get true hardware acceleration.
       
 18976         (-[WebBaseNetscapePluginView _createWindowlessAGLContext]):
       
 18977         - Creates a windowless AGL context, which is an AGL context attached to an offscreen buffer.  This buffer can
       
 18978           then be blitted back into the browser window with a different alpha, or scaled, or whatever.
       
 18979         (-[WebBaseNetscapePluginView _cglContext]):
       
 18980         - Returns the underlying CGL context from the AGL context.  We give the plug-in access to the CGL context because
       
 18981           CGL is the more primitive of the GL drawable APIs and allows for finer control over the context.
       
 18982         (-[WebBaseNetscapePluginView _getAGLOffscreenBuffer:width:height:]):
       
 18983         - Returns the buffer allocated for the offscreen AGL context, if there is one.
       
 18984         (-[WebBaseNetscapePluginView _destroyAGLContext]):
       
 18985         - Destroys the AGL context, as well as the associated offscreen buffer or child window.
       
 18986         (-[WebBaseNetscapePluginView _reshapeAGLWindow]):
       
 18987         - Positions the AGL window over the browser window.
       
 18988         (-[WebBaseNetscapePluginView _hideAGLWindow]):
       
 18989         - Hides the AGL window.
       
 18990         (-[WebBaseNetscapePluginView _aglOffscreenImageForDrawingInRect:]):
       
 18991         - Returns an NSImage representation of the offscreen AGL context's framebuffer.  This is used to draw the offscreen
       
 18992           bits back into the plug-in view.  This is kind of tricky because it has to convert the offscreen buffer in-place
       
 18993           from BGRA to RGBA so that it can be wrapped in an NSBitmapImageRep.  See comments.
       
 18994 
       
 18995         * WebKit.xcodeproj/project.pbxproj:
       
 18996         Link OpenGL and AGL.
       
 18997 
       
 18998 2006-07-09  Brady Eidson  <beidson@apple.com>
       
 18999 
       
 19000         Reviewed by Maciej
       
 19001 
       
 19002         The ICONDEBUG flag now chooses either the new icon database or the old one
       
 19003         No longer any need to live side by side to compare results
       
 19004 
       
 19005         * Misc/WebIconDatabase.m:
       
 19006         (-[NSMutableDictionary iconURLForURL:]):
       
 19007         (-[NSMutableDictionary retainIconForURL:]):
       
 19008         (-[NSMutableDictionary releaseIconForURL:]):
       
 19009         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 19010         (-[WebIconDatabase _setIconURL:forURL:]):
       
 19011         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 19012 
       
 19013 2006-07-08  Timothy Hatcher  <timothy@apple.com>
       
 19014 
       
 19015         Reviewed by Maciej.
       
 19016 
       
 19017         Bug 5312: comments aren't available via DOM
       
 19018         http://bugs.webkit.org/show_bug.cgi?id=5312
       
 19019 
       
 19020         Makes the Web Inspector show comment node contents.
       
 19021 
       
 19022         * WebInspector/WebInspector.m:
       
 19023         (-[DOMNode _displayName]): return the contents of the comment
       
 19024         * WebInspector/webInspector/inspector.js: check for comment nodes
       
 19025 
       
 19026 2006-07-09  Alexey Proskuryakov  <ap@nypop.com>
       
 19027 
       
 19028         Reviewed by Darin.
       
 19029 
       
 19030         - http://bugs.webkit.org/show_bug.cgi?id=9572
       
 19031         Add application/xhtml+xml to the Accept header
       
 19032 
       
 19033         * WebView/WebFrame.m:
       
 19034         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
       
 19035         to main resource requests.
       
 19036         * English.lproj/StringsNotToBeLocalized.txt: Added new strings.
       
 19037 
       
 19038 2006-07-08  Darin Adler  <darin@apple.com>
       
 19039 
       
 19040         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 19041         (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
       
 19042         Removed misleading old comment.
       
 19043 
       
 19044 === Safari-521.15 ===
       
 19045 
       
 19046 2006-07-07  Levi Weintraub  <lweintraub@apple.com>
       
 19047 
       
 19048         Reviewed by justin
       
 19049 
       
 19050         Finished moving deletion selection expansion across the bridge... say that 3 times fast.
       
 19051 
       
 19052         * WebView/WebHTMLView.m:  Pass granularity to WebCore to handle expansion
       
 19053         (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:granularity:]):
       
 19054         (-[WebHTMLView _deleteSelection]):
       
 19055         (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
       
 19056         (-[WebHTMLView deleteToMark:]):
       
 19057 
       
 19058 2006-07-07  Brady Eidson  <beidson@apple.com>
       
 19059 
       
 19060         Reviewed by John
       
 19061 
       
 19062         Changed an ASSERT to a LOG_ERROR for an error that could be handled gracefully, but
       
 19063         whose assertion was reproducibly causing a build bot failure
       
 19064 
       
 19065         * Misc/WebIconDatabase.m:
       
 19066         (-[WebIconDatabase _releaseIconForIconURLString:]):
       
 19067 
       
 19068 2006-07-06  Levi Weintraub  <lweintraub@apple.com>
       
 19069 
       
 19070         Reviewed by justin
       
 19071 
       
 19072         Improved table editing
       
 19073 
       
 19074         * WebCoreSupport/WebFrameBridge.m: Added method to allow WebCore to trigger
       
 19075         deletion editing delegate
       
 19076         (-[WebFrameBridge shouldDeleteSelectedDOMRange:]):
       
 19077         * WebView/WebHTMLView.m: Moved code that expanded a selection when the delete
       
 19078         key is pressed over to WebCore so we can be more intelligent about how to handle it
       
 19079         (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
       
 19080         (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
       
 19081 
       
 19082 2006-07-07  John Sullivan  <sullivan@apple.com>
       
 19083 
       
 19084         Reviewed by Tim Hatcher
       
 19085         
       
 19086         - fixed <rdar://problem/4606857> WebKit: WebPreferencesChangedNotification not exported
       
 19087 
       
 19088         * WebKit.exp:
       
 19089         added surprisingly missing _WebPreferencesChangedNotification, defined in
       
 19090         WebPreferences.h
       
 19091 
       
 19092 2006-07-06  Brady Eidson  <beidson@apple.com>
       
 19093 
       
 19094         Reviewed by John.
       
 19095 
       
 19096         Small fix to my previous small fix that only lets the ASSERT off the hook if the DB
       
 19097         is closing
       
 19098 
       
 19099         * Misc/WebIconDatabase.m:
       
 19100         (-[WebIconDatabase _releaseIconForIconURLString:]):
       
 19101 
       
 19102 2006-07-05  Brady Eidson  <beidson@apple.com>
       
 19103 
       
 19104         Reviewed by Maciej
       
 19105 
       
 19106         Small fix that prevents an assertion from triggering if the DB is being cleaned up 
       
 19107         (ie, the app being shut down)
       
 19108 
       
 19109         * Misc/WebIconDatabase.h:
       
 19110         * Misc/WebIconDatabase.m:
       
 19111         (-[NSMutableDictionary init]):
       
 19112         (-[WebIconDatabase _applicationWillTerminate:]):
       
 19113         (-[WebIconDatabase _releaseIconForIconURLString:]):
       
 19114 
       
 19115 2006-07-05  Adele Peterson  <adele@apple.com>
       
 19116 
       
 19117         Reviewed by Maciej and Hyatt.
       
 19118 
       
 19119         WebKit part of initial popup menu implementation.
       
 19120 
       
 19121         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
       
 19122         Initialize WKPopupMenu.
       
 19123 
       
 19124 2006-07-05  Anders Carlsson  <acarlsson@apple.com>
       
 19125 
       
 19126         Reviewed by Maciej.
       
 19127 
       
 19128         http://bugs.webkit.org/show_bug.cgi?id=3581
       
 19129         iFrames set to display:none are Missing from frames array
       
 19130         
       
 19131         * WebCoreSupport/WebFrameBridge.m:
       
 19132         (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
       
 19133         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
       
 19134         Modify to pass the owner element instead of the owner renderer.
       
 19135         
       
 19136         * WebView/WebHTMLView.m:
       
 19137         (-[WebHTMLView _topHTMLView]):
       
 19138         Remove assertion, it's not valid anymore.
       
 19139 
       
 19140 2006-07-05  Timothy Hatcher  <timothy@apple.com>
       
 19141 
       
 19142         Reviewed by Harrison.
       
 19143 
       
 19144         <rdar://problem/4608423> HIViewAdapter used but not defined
       
 19145         Adds a new export file to fix the build.
       
 19146 
       
 19147         * WebKit.LP64.exp: Added.
       
 19148         * WebKit.xcodeproj/project.pbxproj:
       
 19149 
       
 19150 2006-07-04  Timothy Hatcher  <timothy@apple.com>
       
 19151 
       
 19152         Reviewed by Maciej.
       
 19153 
       
 19154         Bug 9731: [Drosera] crash when trying to access the scope chain
       
 19155         http://bugs.webkit.org/show_bug.cgi?id=9731
       
 19156 
       
 19157         Because of <rdar://problem/4608404> the WebScriptObject, _globalObj, that
       
 19158         WebCoreScriptDebugger holds is unprotected each time the page changes.
       
 19159         This causes Drosera to crash Safari when trying to access the scope chain.
       
 19160         We simply need to detach and re-attach the debugger when the window script
       
 19161         object is cleared until 4608404 is fixed. This change also attaches the
       
 19162         debugger before we call the windowScriptObjectAvailable: delegate method,
       
 19163         so the debugger is ready before anyone might use the window object.
       
 19164 
       
 19165         * WebCoreSupport/WebFrameBridge.m:
       
 19166         (-[WebFrameBridge windowObjectCleared]):
       
 19167 
       
 19168 2006-07-04  Timothy Hatcher  <timothy@apple.com>
       
 19169 
       
 19170         Reviewed by Darin.
       
 19171 
       
 19172         Bug 9732: [Drosera] calling removeListener to many times will cause
       
 19173                   WebKit's listener count to underflow/wraparound
       
 19174         http://bugs.webkit.org/show_bug.cgi?id=9732
       
 19175 
       
 19176         Adds a check to make sure the listener was in our listeners set before
       
 19177         decrementing the global listener count. Also checks for nil in addListner
       
 19178         to prevent a possible exception when adding the object to the set.
       
 19179 
       
 19180         * DefaultDelegates/WebScriptDebugServer.m:
       
 19181         (-[WebScriptDebugServer addListener:]):
       
 19182         (-[WebScriptDebugServer removeListener:]):
       
 19183 
       
 19184 2006-07-04  Alexey Proskuryakov  <ap@nypop.com>
       
 19185 
       
 19186         Reviewed by Maciej.
       
 19187 
       
 19188         - http://bugs.webkit.org/show_bug.cgi?id=8210
       
 19189         Conditional XMLHttpRequest gets should pass 304 responses unchanged
       
 19190 
       
 19191         Test: http/tests/xmlhttprequest/cache-override.html
       
 19192 
       
 19193         * Misc/WebNSURLRequestExtras.h: Added _web_isConditionalRequest
       
 19194         * Misc/WebNSURLRequestExtras.m:
       
 19195         (-[NSURLRequest _web_isConditionalRequest]):
       
 19196         * WebCoreSupport/WebFrameBridge.m:
       
 19197         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 19198         Bypass the cache for conditional requests.
       
 19199         * WebCoreSupport/WebSubresourceLoader.m:
       
 19200         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): Ditto.
       
 19201 
       
 19202 2006-07-01  David Kilzer  <ddkilzer@kilzer.net>
       
 19203 
       
 19204         Reviewed by NOBODY (fixed Tim's build fix).
       
 19205 
       
 19206         * WebView/WebView.m: Added back missing '/' at the beginning of the file.
       
 19207 
       
 19208 2006-07-01  Tim Omernick  <timo@apple.com>
       
 19209 
       
 19210         Reviewed by NOBODY (build fix)
       
 19211 
       
 19212         * WebView/WebView.m:
       
 19213         (-[WebView _isMIMETypeRegisteredAsPlugin:]):
       
 19214         Changed nil to NO (typo).
       
 19215 
       
 19216 === Safari-521.14 ===
       
 19217 
       
 19218 2006-06-30  Timothy Hatcher  <timothy@apple.com>
       
 19219 
       
 19220         Reviewed by Darin.
       
 19221 
       
 19222         Only enable shouldCloseWithWindow when ObjC GC is enabled.
       
 19223         This maintains backwards compatibility with applications
       
 19224         that expect a WebView to be usable after the window closes.
       
 19225 
       
 19226         * WebView/WebView.m:
       
 19227         (-[WebViewPrivate init]):
       
 19228 
       
 19229 2006-06-30  Timothy Hatcher  <timothy@apple.com>
       
 19230 
       
 19231         Reviewed by Anders.
       
 19232 
       
 19233         Call _close in dealloc to ensure we cleanup for backwards
       
 19234         compatibility. This will safeguard and cleanup even if the
       
 19235         application doesn't use the new close API yet, like Mail.
       
 19236 
       
 19237         * WebView/WebView.m:
       
 19238         (-[WebView dealloc]):
       
 19239 
       
 19240 2006-06-29  Timothy Hatcher  <timothy@apple.com>
       
 19241 
       
 19242         Reviewed by Darin.
       
 19243 
       
 19244         <rdar://problem/4484405> WebKit leaks, improper tear-down
       
 19245         <rdar://problem/3694059> -[WebBackForwardList finalize] is incorrect; design change needed
       
 19246         <rdar://problem/3694103> -[WebFrame finalize] is incorrect; design change needed
       
 19247         <rdar://problem/3694104> -[WebHTMLView finalize] is incorrect; design change needed
       
 19248 
       
 19249         Adds a close method to WebView, this needs to be called when the 
       
 19250         WebView is no longer needed. To make this easier for the common cases
       
 19251         there is now an "auto close" on WebView that listens to the view's
       
 19252         parent window. If the parent window closes and the WebView has no
       
 19253         hostWindow then the WebView is automatically closed if autoClose is YES.
       
 19254         To manage WebView closing yourself call setAutoClose: and pass NO.
       
 19255 
       
 19256         When a WebView closes it will tear-down and not be usable anymore.
       
 19257         Close will will called on various other internal objects as a part
       
 19258         of this, to ensure proper tear-down in GC without relying on finalize.
       
 19259 
       
 19260         * History/WebBackForwardList.m:
       
 19261         (-[WebBackForwardList dealloc]):
       
 19262         (-[WebBackForwardList finalize]):
       
 19263         (-[WebBackForwardList _close]):
       
 19264         * History/WebHistoryItem.m:
       
 19265         (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
       
 19266         (+[WebHistoryItem _releaseAllPendingPageCaches]):
       
 19267         * History/WebHistoryItemPrivate.h:
       
 19268         * WebCoreSupport/WebFrameBridge.m:
       
 19269         (-[WebFrameBridge close]):
       
 19270         (-[WebFrameBridge saveDocumentToPageCache:]):
       
 19271         (-[WebFrameBridge canGoBackOrForward:]):
       
 19272         * WebView/WebFrame.m:
       
 19273         (-[WebFrame _detachFromParent]):
       
 19274         (-[WebFrame dealloc]):
       
 19275         (-[WebFrame finalize]):
       
 19276         * WebView/WebFrameView.m:
       
 19277         (-[WebFrameView _setWebFrame:]):
       
 19278         (-[WebFrameView finalize]):
       
 19279         * WebView/WebHTMLView.m:
       
 19280         (-[WebHTMLView close]):
       
 19281         (-[WebHTMLView dealloc]):
       
 19282         (-[WebHTMLView finalize]):
       
 19283         * WebView/WebHTMLViewInternal.h:
       
 19284         * WebView/WebHTMLViewPrivate.h:
       
 19285         * WebView/WebScriptDebugDelegate.m:
       
 19286         (-[WebScriptCallFrame _initWithFrame:initWithWebFrame:]):
       
 19287         (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
       
 19288         (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
       
 19289         (-[WebScriptCallFrame hitStatement:sourceId:line:]):
       
 19290         (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
       
 19291         * WebView/WebScriptDebugDelegatePrivate.h:
       
 19292         * WebView/WebView.m:
       
 19293         (-[WebViewPrivate init]):
       
 19294         (-[WebView _close]):
       
 19295         (-[WebView dealloc]):
       
 19296         (-[WebView finalize]):
       
 19297         (-[WebView viewWillMoveToWindow:]):
       
 19298         (-[WebView _windowWillClose:]):
       
 19299         (-[WebView setPreferencesIdentifier:]):
       
 19300         (-[WebView mainFrame]):
       
 19301         (-[WebView setHostWindow:]):
       
 19302         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 19303         (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
       
 19304         (-[WebView close]):
       
 19305         (-[WebView setAutoClose:]):
       
 19306         (-[WebView autoClose]):
       
 19307         (-[WebView _frameViewAtWindowPoint:]):
       
 19308         * WebView/WebViewPrivate.h:
       
 19309 
       
 19310 2006-06-29  Kevin Decker  <kdecker@apple.com>
       
 19311 
       
 19312         Reviewed by mjs and timo.
       
 19313         
       
 19314         Fixed: <rdar://problem/4609119> handleAuthenticationFromResource was removed; needed by the Dashboard
       
 19315 
       
 19316         * WebView/WebViewPrivate.h: Added handleAuthenticationFromResource back into the header. Needed by the
       
 19317         Dashboard, but was removed in r.14028 on 2006-04-23. 
       
 19318 
       
 19319 2006-06-29  Tim Omernick  <timo@apple.com>
       
 19320 
       
 19321         Reviewed by Kevin Decker.
       
 19322 
       
 19323         <rdar://problem/4608487> REGRESSION: reproducible crash in +[WebCoreFrameBridge supportedImageMIMETypes]
       
 19324 
       
 19325         * Plugins/WebPluginDatabase.m:
       
 19326         (+[WebPluginDatabase setAdditionalWebPlugInPaths:]):
       
 19327         One might be tempted to add additionalWebPlugInPaths to the global WebPluginDatabase here.
       
 19328         For backward compatibility with earlier versions of the +setAdditionalWebPlugInPaths: SPI,
       
 19329         we need to save a copy of the additional paths and not cause a refresh of the plugin DB
       
 19330         at this time.
       
 19331         (-[WebPluginDatabase _plugInPaths]):
       
 19332         Include additionalWebPlugInPaths if this is the global DB.
       
 19333         (-[WebPluginDatabase refresh]):
       
 19334         Call -_plugInPaths to get the modified array of paths.  This is similar to what the old code
       
 19335         (before we had per-WebView plugin search paths).
       
 19336 
       
 19337 2006-06-29  Tim Omernick  <timo@apple.com>
       
 19338 
       
 19339         Reviewed by John Sullivan.
       
 19340 
       
 19341         WebHistoryItem now supports getting and setting arbitrary properties via _transientPropertyForKey: and
       
 19342         -_setTransientProperty:forKey:.
       
 19343         For now, these properties do not persist with the rest of the history data.  They are intended to hold transient
       
 19344         per-history-item state, which is something that was until now difficult for a WebKit client app to do.
       
 19345         
       
 19346         * History/WebHistoryItemPrivate.h:
       
 19347         * History/WebHistoryItem.m:
       
 19348         (-[WebHistoryItemPrivate dealloc]):
       
 19349         (-[WebHistoryItem _transientPropertyForKey:]):
       
 19350         (-[WebHistoryItem _setTransientProperty:forKey:]):
       
 19351 
       
 19352 2006-06-29  Timothy Hatcher  <timothy@apple.com>
       
 19353 
       
 19354         Reviewed by Harrison.
       
 19355 
       
 19356         Smart insert and delete, continuous spell checking and autoscroll
       
 19357         can now be used for any WebView, not just editable ones. All of
       
 19358         these make sense for documents that might contain content editable 
       
 19359         areas or our new text fields. Autoscroll is usefull for dragging
       
 19360         for file input controls also.
       
 19361 
       
 19362         Added a SPI to toggle WebViews tab key behavior, tabKeyCyclesThroughElements.
       
 19363         WebHTMLView's _interceptEditingKeyEvent now uses WebView's
       
 19364         tabKeyCyclesThroughElements state to determine whether or not
       
 19365         to process tab key events. The idea here is that tabKeyCyclesThroughElements
       
 19366         will be YES when this WebView is being used in a browser, and we
       
 19367         desire the behavior where tab moves to the next element in tab order.
       
 19368         If tabKeyCyclesThroughElements is NO, it is likely that the WebView
       
 19369         is being embedded as the whole view, as in Mail, and tabs should input
       
 19370         tabs as expected in a text editor. Using Option-Tab always cycles
       
 19371         through elements.
       
 19372 
       
 19373         * WebView/WebHTMLRepresentation.m:
       
 19374         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
       
 19375         * WebView/WebHTMLView.m:
       
 19376         (-[WebHTMLView _interceptEditingKeyEvent:]):
       
 19377         * WebView/WebView.m:
       
 19378         (-[WebViewPrivate init]):
       
 19379         (-[WebView _autoscrollForDraggingInfo:timeDelta:]):
       
 19380         (-[WebView _shouldAutoscrollForDraggingInfo:]):
       
 19381         (-[WebView validateUserInterfaceItem:]):
       
 19382         (-[WebView toggleSmartInsertDelete:]):
       
 19383         (-[WebView toggleContinuousSpellChecking:]):
       
 19384         (-[WebView setTabKeyCyclesThroughElements:]):
       
 19385         (-[WebView tabKeyCyclesThroughElements]):
       
 19386         * WebView/WebViewPrivate.h:
       
 19387 
       
 19388 2006-06-29  Anders Carlsson  <acarlsson@apple.com>
       
 19389 
       
 19390         Reviewed by Tim O.
       
 19391 
       
 19392         * WebKit.xcodeproj/project.pbxproj:
       
 19393         Add DOMXPath.h header.
       
 19394 
       
 19395 2006-06-28  David Hyatt  <hyatt@apple.com>
       
 19396 
       
 19397         Fix custom highlighting so that you can paint the entire line (and go
       
 19398         outside the bounds of the line).
       
 19399 
       
 19400         Reviewed by harrison
       
 19401 
       
 19402         * WebCoreSupport/WebFrameBridge.m:
       
 19403         (-[WebFrameBridge customHighlightRect:forLine:]):
       
 19404         (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:entireLine:]):
       
 19405         * WebKit.xcodeproj/project.pbxproj:
       
 19406         * WebView/WebHTMLViewPrivate.h:
       
 19407 
       
 19408 2006-06-28  Maciej Stachowiak  <mjs@apple.com>
       
 19409 
       
 19410         Reviewed by Anders.
       
 19411         
       
 19412         - fix Frame leak on layout tests
       
 19413 
       
 19414         * WebCoreSupport/WebPageBridge.m:
       
 19415         (-[WebPageBridge outerView]): Return WebFrameView for main frame instead
       
 19416         of WebView to avoid reference cycle between WebView and Page.
       
 19417 
       
 19418 2006-06-28  Timothy Hatcher  <timothy@apple.com>
       
 19419 
       
 19420         Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
       
 19421 
       
 19422         * WebKit.xcodeproj/project.pbxproj:
       
 19423 
       
 19424 2006-06-28  Levi Weintraub  <lweintraub@apple.com>
       
 19425 
       
 19426         Reviewed by justin
       
 19427 
       
 19428         http://bugs.webkit.org/show_bug.cgi?id=7568
       
 19429         Bug 7568: Implement Indent/Outdent
       
 19430         Added undo action strings and enum values
       
 19431 
       
 19432         * English.lproj/Localizable.strings:
       
 19433         * WebCoreSupport/WebFrameBridge.m: 
       
 19434         (-[WebFrameBridge nameForUndoAction:]):
       
 19435 
       
 19436 2006-06-27  Brady Eidson  <beidson@apple.com>
       
 19437 
       
 19438         Reviewed by Maciej
       
 19439 
       
 19440         Hookup the new semi-functional SQLite icon database.
       
 19441         For now, it is living side-by-side with the old DB so one can compare the
       
 19442         two for debugging purposes.  Also, it is disabled (in WebKit) by default unless you
       
 19443         compile with ICONDEBUG #defined.
       
 19444         Note:  To repeat that, if you want to try the new DB, #define ICONDEBUG (WebKitPrefix.h is a good place to do it)
       
 19445 
       
 19446         * Misc/WebIconDatabase.m:
       
 19447         (-[NSMutableDictionary iconForURL:withSize:cache:]):
       
 19448         (-[NSMutableDictionary iconURLForURL:]):
       
 19449         (-[NSMutableDictionary retainIconForURL:]):
       
 19450         (-[NSMutableDictionary releaseIconForURL:]):
       
 19451         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 19452         (-[WebIconDatabase _setIconURL:forURL:]):
       
 19453         (-[WebIconDatabase _hasIconForIconURL:]):
       
 19454         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 19455         * Misc/WebIconLoader.m:
       
 19456         (-[WebIconLoader didFinishLoading]):
       
 19457         * WebKit.xcodeproj/project.pbxproj:
       
 19458 
       
 19459 2006-06-26  David Hyatt  <hyatt@apple.com>
       
 19460 
       
 19461         Fix for 9538, support syntax highlighting for HTML source.
       
 19462 
       
 19463         Reviewed by darin
       
 19464 
       
 19465         * WebKit.xcodeproj/project.pbxproj:
       
 19466         * WebView/WebView.m:
       
 19467         (-[WebView _setInViewSourceMode:]):
       
 19468         (-[WebView _inViewSourceMode]):
       
 19469         * WebView/WebViewPrivate.h:
       
 19470 
       
 19471 2006-06-25  Timothy Hatcher  <timothy@apple.com>
       
 19472 
       
 19473         Reviewed by Darin.
       
 19474 
       
 19475         Bug 9574: Drosera should show inline scripts within the original HTML
       
 19476         http://bugs.webkit.org/show_bug.cgi?id=9574
       
 19477 
       
 19478         * Adds a new version of the didParseSource delegate callback with base line number.
       
 19479         * Adds a new delegate callback for when a script fails to parse.
       
 19480         * These new callbacks use NSURLs for the url parameter.
       
 19481         * Adds a new script listener callback to notify when the main resource loads.
       
 19482         * Adds a WebScriptErrorDomian and other keys for use with NSError.
       
 19483 
       
 19484         * DefaultDelegates/WebDefaultScriptDebugDelegate.m:
       
 19485         (-[WebDefaultScriptDebugDelegate webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
       
 19486         (-[WebDefaultScriptDebugDelegate webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
       
 19487         * DefaultDelegates/WebScriptDebugServer.h:
       
 19488         * DefaultDelegates/WebScriptDebugServer.m:
       
 19489         (-[WebScriptDebugServer webView:didLoadMainResourceForDataSource:]):
       
 19490         (-[WebScriptDebugServer webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]):
       
 19491         (-[WebScriptDebugServer webView:failedToParseSource:baseLineNumber:fromURL:withError:forWebFrame:]):
       
 19492         * DefaultDelegates/WebScriptDebugServerPrivate.h:
       
 19493         * WebKit.exp:
       
 19494         * WebView/WebDataSource.m:
       
 19495         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 19496         * WebView/WebScriptDebugDelegate.h:
       
 19497         * WebView/WebScriptDebugDelegate.m:
       
 19498         (-[WebScriptCallFrame parsedSource:fromURL:sourceId:startLine:errorLine:errorMessage:]):
       
 19499 
       
 19500 2006-06-24  David Kilzer  <ddkilzer@kilzer.net>
       
 19501 
       
 19502         Reviewed by Timothy.
       
 19503 
       
 19504         * Info.plist: Fixed copyright to include 2003-2006.
       
 19505 
       
 19506 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
       
 19507 
       
 19508         Reviewed by Darin.
       
 19509 
       
 19510         - http://bugs.webkit.org/show_bug.cgi?id=9418
       
 19511         WebKit will not build when Space exists in path
       
 19512 
       
 19513         * WebKit.xcodeproj/project.pbxproj: Enclose search paths in quotes.
       
 19514 
       
 19515 2006-06-23  Tim Omernick  <timo@apple.com>
       
 19516 
       
 19517         Reviewed by John Sullivan.
       
 19518 
       
 19519         * Plugins/WebBaseNetscapePluginView.m:
       
 19520         (-[WebBaseNetscapePluginView sendEvent:]):
       
 19521         Fixed a bug I found in the CoreGraphics drawing model that was preventing certain types of
       
 19522         events from being dispatched to the plugin, unless the plugin was being updated.  The check
       
 19523         for portState was only required to call -setWindowIfNecessary, not required for the entire
       
 19524         event dispatch.
       
 19525         Also, don't paint the green debug rect unless this is a QuickDraw plugin.  Otherwise the
       
 19526         current QD port is not set, and the green rect fills the entire screen.  Pretty awesome
       
 19527         looking, but not intended behavior.
       
 19528         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
       
 19529         Improved the logging here to include the NPWindow's width and height.
       
 19530 
       
 19531 2006-06-23  Timothy Hatcher  <timothy@apple.com>
       
 19532 
       
 19533         Reviewed by Tim O.
       
 19534 
       
 19535         Adds back SPI that Mail is still depending on.
       
 19536 
       
 19537         * WebView/WebDataSource.m:
       
 19538         (-[WebDataSource _addSubframeArchives:]):
       
 19539         * WebView/WebDataSourcePrivate.h:
       
 19540 
       
 19541 === WebKit-521.13 ===
       
 19542 
       
 19543 2006-06-23  Timothy Hatcher  <timothy@apple.com>
       
 19544 
       
 19545         Reviewed by Geoff.
       
 19546 
       
 19547         script debugger should only attach to JavaScriptCore when there are listeners
       
 19548         http://bugs.webkit.org/show_bug.cgi?id=9552
       
 19549 
       
 19550         Attaches the debugger to all WebFrames when the first listener
       
 19551         is added. Detaches when the last listener is removed.
       
 19552         Also detach when the script debug delegate is set to nil.
       
 19553 
       
 19554         * DefaultDelegates/WebScriptDebugServer.m:
       
 19555         (+[WebScriptDebugServer listenerCount]):
       
 19556         (-[WebScriptDebugServer dealloc]):
       
 19557         (-[WebScriptDebugServer attachScriptDebuggerToAllWebViews]):
       
 19558         (-[WebScriptDebugServer detachScriptDebuggerFromAllWebViews]):
       
 19559         (-[WebScriptDebugServer listenerConnectionDidDie:]):
       
 19560         (-[WebScriptDebugServer addListener:]):
       
 19561         (-[WebScriptDebugServer removeListener:]):
       
 19562         * DefaultDelegates/WebScriptDebugServerPrivate.h:
       
 19563         * WebCoreSupport/WebFrameBridge.m:
       
 19564         (-[WebFrameBridge windowObjectCleared]):
       
 19565         * WebView/WebFrame.m:
       
 19566         (-[WebFrame _attachScriptDebugger]):
       
 19567         (-[WebFrame _detachScriptDebugger]):
       
 19568         * WebView/WebFramePrivate.h:
       
 19569         * WebView/WebScriptDebugDelegate.m:
       
 19570         (-[WebScriptCallFrame parsedSource:fromURL:sourceId:]):
       
 19571         (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
       
 19572         (-[WebScriptCallFrame hitStatement:sourceId:line:]):
       
 19573         (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
       
 19574         * WebView/WebView.m:
       
 19575         (-[WebView _attachScriptDebuggerToAllFrames]):
       
 19576         (-[WebView _detachScriptDebuggerFromAllFrames]):
       
 19577         (-[WebView setScriptDebugDelegate:]):
       
 19578         * WebView/WebViewPrivate.h:
       
 19579 
       
 19580 2006-06-22  John Sullivan  <sullivan@apple.com>
       
 19581 
       
 19582         Reviewed by Tim Omernick
       
 19583         
       
 19584         - added support for UIDelegate to be notified of scrolling in any WebHTMLView
       
 19585         - cleaned up recently-added UIDelegate code
       
 19586 
       
 19587         * WebView/WebUIDelegatePrivate.h:
       
 19588         declared webView:didScrollDocumentInFrameView: method
       
 19589 
       
 19590         * DefaultDelegates/WebDefaultUIDelegate.m:
       
 19591         (-[NSApplication webView:didDrawRect:]):
       
 19592         provide default (empty) implementation of this recently-added method, so the
       
 19593         DelegateForwarder mechanism will work for it
       
 19594         (-[NSApplication webView:didScrollDocumentInFrameView:]):
       
 19595         same thing for the new method
       
 19596         
       
 19597         * WebView/WebHTMLView.m:
       
 19598         (-[WebHTMLView _frameOrBoundsChanged]):
       
 19599         use _UIDelegateForwarder mechanism to notify delegate that scrolling occurred
       
 19600         (-[WebHTMLView drawSingleRect:]):
       
 19601         use _UIDelegateForwarder mechanism instead of checking respondsToSelector stuff
       
 19602         here (that's packaged up nicely by the forwarder mechanism)
       
 19603         
       
 19604 2006-06-22  Tim Omernick  <timo@apple.com>
       
 19605 
       
 19606         Reviewed by NOBODY (build fix)
       
 19607 
       
 19608         * WebView/WebFrameLoader.m:
       
 19609         Import WebMainResourceLoader instead of using @class so that we can call WebMainResourceLoader
       
 19610         methods.
       
 19611         
       
 19612 2006-06-22  Tim Omernick  <timo@apple.com>
       
 19613 
       
 19614         Reviewed by NOBODY (build fix)
       
 19615 
       
 19616         * WebView/WebFrameLoader.m:
       
 19617         Import JavaScriptCore/Assertions.h instead of WebKit/WebAssertions.h (which no longer exists)
       
 19618 
       
 19619 2006-06-22  Maciej Stachowiak  <mjs@apple.com>
       
 19620 
       
 19621         Reviewed by Adele.
       
 19622         
       
 19623         - start moving loading logic to new WebFrameLoader class; move management of WebLoaders there
       
 19624 
       
 19625         * Misc/WebIconLoader.h:
       
 19626         * Misc/WebIconLoader.m:
       
 19627         (-[WebIconLoader didFinishLoading]):
       
 19628         * WebKit.xcodeproj/project.pbxproj:
       
 19629         * WebView/WebDataSource.m:
       
 19630         (-[WebDataSourcePrivate dealloc]):
       
 19631         (-[WebDataSource _updateLoading]):
       
 19632         (-[WebDataSource _loadIcon]):
       
 19633         (-[WebDataSource _setPrimaryLoadComplete:]):
       
 19634         (-[WebDataSource _stopLoading]):
       
 19635         (-[WebDataSource _startLoading]):
       
 19636         (-[WebDataSource _addSubresourceLoader:]):
       
 19637         (-[WebDataSource _removeSubresourceLoader:]):
       
 19638         (-[WebDataSource _addPlugInStreamLoader:]):
       
 19639         (-[WebDataSource _removePlugInStreamLoader:]):
       
 19640         (-[WebDataSource _iconLoaderReceivedPageIcon:]):
       
 19641         (-[WebDataSource _defersCallbacksChanged]):
       
 19642         (-[WebDataSource _stopLoadingWithError:]):
       
 19643         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 19644         (-[WebDataSource initWithRequest:]):
       
 19645         (-[WebDataSource dealloc]):
       
 19646         (-[WebDataSource finalize]):
       
 19647         (-[WebDataSource data]):
       
 19648         (-[WebDataSource isLoading]):
       
 19649         * WebView/WebFrameLoader.h: Added.
       
 19650         * WebView/WebFrameLoader.m: Added.
       
 19651         (-[WebFrameLoader initWithDataSource:]):
       
 19652         (-[WebFrameLoader dealloc]):
       
 19653         (-[WebFrameLoader hasIconLoader]):
       
 19654         (-[WebFrameLoader loadIconWithRequest:]):
       
 19655         (-[WebFrameLoader stopLoadingIcon]):
       
 19656         (-[WebFrameLoader addPlugInStreamLoader:]):
       
 19657         (-[WebFrameLoader removePlugInStreamLoader:]):
       
 19658         (-[WebFrameLoader setDefersCallbacks:]):
       
 19659         (-[WebFrameLoader stopLoadingPlugIns]):
       
 19660         (-[WebFrameLoader isLoadingMainResource]):
       
 19661         (-[WebFrameLoader isLoadingSubresources]):
       
 19662         (-[WebFrameLoader isLoading]):
       
 19663         (-[WebFrameLoader stopLoadingSubresources]):
       
 19664         (-[WebFrameLoader addSubresourceLoader:]):
       
 19665         (-[WebFrameLoader removeSubresourceLoader:]):
       
 19666         (-[WebFrameLoader mainResourceData]):
       
 19667         (-[WebFrameLoader releaseMainResourceLoader]):
       
 19668         (-[WebFrameLoader cancelMainResourceLoad]):
       
 19669         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
       
 19670         (-[WebFrameLoader stopLoadingWithError:]):
       
 19671 
       
 19672 2006-06-21  Brady Eidson  <beidson@apple.com>
       
 19673 
       
 19674         Reviewed by Maciej
       
 19675 
       
 19676         The WebCoreIconDatabaseBridge was getting messages sent to it after it had been closed, resulting in a crash
       
 19677         on an ASSERT().  After closing the databaseBridge, we simply set it to nil so this can't happen.
       
 19678         anymore.
       
 19679 
       
 19680         * Misc/WebIconDatabase.m:
       
 19681         (-[WebIconDatabase _applicationWillTerminate:]):
       
 19682 
       
 19683 2006-06-21  Tim Omernick  <timo@apple.com>
       
 19684 
       
 19685         Reviewed by Geoff Garen.
       
 19686 
       
 19687         <rdar://problem/4564131> WebPluginDatabase setAdditionalWebPlugInPaths needs to be per WebView
       
 19688 
       
 19689         Added some WebView SPI so that individual WebViews may have different plugin search paths.  There are some 
       
 19690         limitations with the approach taken here:
       
 19691 
       
 19692         - JavaScript may only access the global plugin DB.
       
 19693         - When this SPI is in use, certain WebView methods may not give accurate results, such as +canShowMIMEType:.
       
 19694         - This only works for plugins referenced using the <object> or <embed> tags; plugins that reside in non-standard
       
 19695         file system locations may not be loaded directly into frames.
       
 19696         
       
 19697         None of these issues are important to the client that needs this SPI.  Rather than re-architect our entire
       
 19698         plugin database, I think it is better to simply accept these limitations for now.
       
 19699 
       
 19700         * Plugins/WebPluginDatabase.h:
       
 19701         Added "plugInPaths" ivar, so different plugin databases can have different search paths.
       
 19702         * Plugins/WebPluginDatabase.m:
       
 19703         (+[WebPluginDatabase installedPlugins]):
       
 19704         Give the global plugin database the default plugin search paths.
       
 19705         (+[WebPluginDatabase setAdditionalWebPlugInPaths:]):
       
 19706         Removed static global; this method now sets the plugin paths on the global plugin database.
       
 19707         (-[WebPluginDatabase setPlugInPaths:]):
       
 19708         Setter method for plugin paths.
       
 19709         (-[WebPluginDatabase close]):
       
 19710         New method; called when the plugin database is no longer needed (when its WebView is being destroyed).
       
 19711         (-[WebPluginDatabase init]):
       
 19712         Don't refresh in -init, so that callers can set the DB's plugin path array before it refreshes.
       
 19713         (-[WebPluginDatabase dealloc]):
       
 19714         Moved here from near the bottom of the file.  Release new ivar.
       
 19715         (-[WebPluginDatabase refresh]):
       
 19716         Use the plugInPaths ivar instead of calling pluginLocations().
       
 19717         Notify plugin packages when they are added to and removed from a plugin database.  A plugin package will
       
 19718         unload itself when it is removed from all of its plugin databases.
       
 19719         The only really tricky thing here is that the global MIME <-> view class registrations are only modified
       
 19720         by the shared plugin DB.
       
 19721         (+[WebPluginDatabase _defaultPlugInPaths]):
       
 19722         Refactored from the old pluginLocations() function; returns the default set of plugin search paths.
       
 19723 
       
 19724         * Plugins/WebBasePluginPackage.h:
       
 19725         * Plugins/WebBasePluginPackage.m:
       
 19726         (-[WebBasePluginPackage dealloc]):
       
 19727         Assert that this package has been removed from all of its containing plugin databases.
       
 19728         (-[WebBasePluginPackage finalize]):
       
 19729         ditto
       
 19730         (-[WebBasePluginPackage wasAddedToPluginDatabase:]):
       
 19731         Add plugin database to set.
       
 19732         (-[WebBasePluginPackage wasRemovedFromPluginDatabase:]):
       
 19733         Remove plugin database from set.  If it was the last DB, then unload the plugin package.
       
 19734 
       
 19735         * WebView/WebViewInternal.h:
       
 19736         Added instance methods to find the view class or plugin package, given a MIME type or file extension.
       
 19737         * WebView/WebViewPrivate.h:
       
 19738         Added SPI to set plugin search paths per WebView.
       
 19739         * WebView/WebView.m:
       
 19740         (-[WebView _viewClass:andRepresentationClass:forMIMEType:]):
       
 19741         New method; tries the global MIME <-> view map first; failing that, it checks the WebView's plugin DB.
       
 19742         (-[WebView _close]):
       
 19743         Close the plugin DB.
       
 19744         (-[WebView _setAdditionalWebPlugInPaths:]):
       
 19745         Create the plugin DB if necessary, and set its plugin paths.
       
 19746         (-[WebView _pluginForMIMEType:]):
       
 19747         Checks global plugin DB, falls back on WebView DB.
       
 19748         (-[WebView _pluginForExtension:]):
       
 19749         ditto
       
 19750         (-[WebView _isMIMETypeRegisteredAsPlugin:]):
       
 19751         ditto
       
 19752 
       
 19753         * WebCoreSupport/WebFrameBridge.m:
       
 19754         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
 19755         Use new WebView instance methods to look for plugins.
       
 19756         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
 19757         ditto
       
 19758         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 19759         ditto
       
 19760 
       
 19761 2006-06-20  Brady Eidson  <beidson@apple.com>
       
 19762 
       
 19763         Reviewed by Maciej
       
 19764 
       
 19765         Added calls through to the WebCoreIconDatabaseBridge for all the major WebIconDatabase API.  For now these calls
       
 19766         are wrapped with #ifdef's and are for debugging only.
       
 19767 
       
 19768         * Misc/WebIconDatabase.h:
       
 19769         * Misc/WebIconDatabase.m:
       
 19770         (-[NSMutableDictionary _scaleIcon:toSize:]):
       
 19771         (-[NSMutableDictionary init]):
       
 19772         (-[NSMutableDictionary iconForURL:withSize:cache:]):
       
 19773         (-[NSMutableDictionary iconURLForURL:]):
       
 19774         (-[NSMutableDictionary retainIconForURL:]):
       
 19775         (-[NSMutableDictionary releaseIconForURL:]):
       
 19776         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 19777         (-[WebIconDatabase _setIconURL:forURL:]):
       
 19778         (-[WebIconDatabase _hasIconForIconURL:]):
       
 19779         * Misc/WebIconLoader.m:
       
 19780         (-[WebIconLoader didFinishLoading]):
       
 19781 
       
 19782         * Misc/WebKitLogging.h:  Added a logging channel for WebIconDatabase debugging
       
 19783         * Misc/WebKitLogging.m:
       
 19784         (WebKitInitializeLoggingChannelsIfNecessary):
       
 19785 
       
 19786 2006-06-20  Adele Peterson  <adele@apple.com>
       
 19787 
       
 19788         Reviewed by Tim Hatcher.
       
 19789 
       
 19790         * WebView/WebMainResourceLoader.m: Added missing header to fix build on Leopard.
       
 19791 
       
 19792 2006-06-20  Timothy Hatcher  <timothy@apple.com>
       
 19793 
       
 19794         Reviewed by Darin.
       
 19795 
       
 19796         Removes the @try/@catch from the callbacks to improve performance,
       
 19797         simply check if the proxy object's connection is still valid first.
       
 19798         Listener objects are now required to be NSDistantObjects.
       
 19799 
       
 19800         Adds pause, resume and step support. The debugger process use to handle this,
       
 19801         but it caused problems when there were multiple listeners.
       
 19802 
       
 19803         Sends the bundle identifier in the notification userInfo dictionary along with
       
 19804         process name and process ID.
       
 19805 
       
 19806         * DefaultDelegates/WebScriptDebugServer.h:
       
 19807         * DefaultDelegates/WebScriptDebugServer.m:
       
 19808         (-[WebScriptDebugServer serverQuery:]):
       
 19809         (-[WebScriptDebugServer addListener:]):
       
 19810         (-[WebScriptDebugServer removeListener:]):
       
 19811         (-[WebScriptDebugServer step]):
       
 19812         (-[WebScriptDebugServer pause]):
       
 19813         (-[WebScriptDebugServer resume]):
       
 19814         (-[WebScriptDebugServer isPaused]):
       
 19815         (-[WebScriptDebugServer suspendProcessIfPaused]):
       
 19816         (-[WebScriptDebugServer webView:didParseSource:fromURL:sourceId:forWebFrame:]):
       
 19817         (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
       
 19818         (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
       
 19819         (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
       
 19820         * DefaultDelegates/WebScriptDebugServerPrivate.h:
       
 19821         * WebKit.exp:
       
 19822 
       
 19823 2006-06-19  Alexey Proskuryakov  <ap@nypop.com>
       
 19824 
       
 19825         Reviewed by Darin.
       
 19826 
       
 19827         - http://bugs.webkit.org/show_bug.cgi?id=5499
       
 19828         Page reload does not send any cache control headers
       
 19829 
       
 19830         * WebView/WebFrame.m:
       
 19831         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Set a proper Cache-Control header for 
       
 19832         reload requests.
       
 19833         (-[WebFrame loadRequest:]): Reset loadType to WebFrameLoadTypeStandard (after a reload, it stayed at 
       
 19834         WebFrameLoadTypeReload, so _addExtraFieldsToRequest erroneously added a Cache-Control header to them).
       
 19835 
       
 19836 2006-06-19  John Sullivan  <sullivan@apple.com>
       
 19837 
       
 19838         Reviewed by Darin.
       
 19839         
       
 19840         - added mechanism to notify UIDelegate when part of the webview is redrawn. For now, it only
       
 19841           works for HTML views.
       
 19842 
       
 19843         * WebView/WebUIDelegatePrivate.h:
       
 19844         Define a new UIDelegate method -webView:didDrawRect:
       
 19845         * WebView/WebHTMLView.m:
       
 19846         (-[WebView drawSingleRect:]):
       
 19847         Call through to UIDelegate if it implements that method. I tested that this does not impact PLT numbers
       
 19848         in the case where the delegate implements the method but does nothing in it.
       
 19849 
       
 19850 2006-06-19  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 19851 
       
 19852         Reviewed by Maciej.
       
 19853 
       
 19854         - fix http://bugs.webkit.org/show_bug.cgi?id=9452
       
 19855           Assertion failure in -[WebFramePrivate setProvisionalDataSource:]
       
 19856 
       
 19857         * WebView/WebFrame.m:
       
 19858         (-[WebFrame _checkLoadCompleteForThisFrame]): Avoid re-entering the delegate's
       
 19859         -[webView:didFailProvisionalLoadWithError:forFrame].
       
 19860 
       
 19861 2006-06-18  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 19862 
       
 19863         Reviewed by xenon.
       
 19864 
       
 19865         - http://bugs.webkit.org/show_bug.cgi?id=9479
       
 19866           Disassociate the inspector from the frame when it detaches from its parent
       
 19867 
       
 19868         * WebInspector/WebInspector.m:
       
 19869         (-[NSWindow setWebFrame:]): Added code to (de)register with the WebFrame
       
 19870         the inspector is (no longer) targeting.
       
 19871         (-[WebInspector _webFrameDetached:]): Added. Moved the code that was previously
       
 19872         in -[inspectedWindowWillClose:] here. This is called by the WebFrame when it
       
 19873         is detached from its parent.
       
 19874         * WebInspector/WebInspectorInternal.h:
       
 19875         * WebView/WebFrame.m:
       
 19876         (-[WebFramePrivate dealloc]):
       
 19877         (-[WebFrame _detachFromParent]): Added code to notify all registered inspectors
       
 19878         that the WebFrame is detaching.
       
 19879         (-[WebFrame _addInspector:]): Added.
       
 19880         (-[WebFrame _removeInspector:]): Added.
       
 19881         * WebView/WebFrameInternal.h:
       
 19882 
       
 19883 2006-06-18  Anders Carlsson  <acarlsson@apple.com>
       
 19884 
       
 19885         Reviewed by Geoff.
       
 19886 
       
 19887         * WebCoreSupport/WebFrameBridge.m:
       
 19888         (-[WebFrameBridge shouldInterruptJavaScript]):
       
 19889         Ask the UI delegate if the script should be interrupted.
       
 19890         
       
 19891         * WebView/WebUIDelegatePrivate.h:
       
 19892         Declare webViewShouldInterruptJavaScript: delegate method
       
 19893 
       
 19894 2006-06-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 19895 
       
 19896         Reviewed by Darin.
       
 19897 
       
 19898         - fix http://bugs.webkit.org/show_bug.cgi?id=9466
       
 19899           Assertion failure when dragging an image from the document into Safari's address bar
       
 19900 
       
 19901         * WebView/WebFrameView.m:
       
 19902         (-[WebFrameView _setDocumentView:]): Reset the WebView's initiatedDrag flag
       
 19903         when the document view is changed.
       
 19904         * WebView/WebHTMLView.m:
       
 19905         (-[WebHTMLView draggedImage:endedAt:operation:]): Changed the ASSERT to allow
       
 19906         for drags that end after the view has been removed from the WebView.
       
 19907 
       
 19908 2006-06-16  Timothy Hatcher  <timothy@apple.com>
       
 19909 
       
 19910         Reviewed by Tim O.
       
 19911 
       
 19912         Exposes a distributed objects server for clients to register for script debugger calls.
       
 19913         For preformance concerns this is disabled by default, you will need to enable this per application.
       
 19914         To enable for Safari do this: defaults write com.apple.Safari WebKitScriptDebuggerEnabled -bool true
       
 19915 
       
 19916         Clients will need to listen to the following distributed notification to discover servers:
       
 19917         WebScriptDebugServerDidLoadNotification
       
 19918 
       
 19919         To discover servers that previously loaded before the client, the client needs to send the following notification:
       
 19920         WebScriptDebugServerQueryNotification
       
 19921 
       
 19922         All servers will reply with the WebScriptDebugServerQueryReplyNotification notification that contains the
       
 19923         registered server connection name to use with distributed objects.
       
 19924 
       
 19925         * DefaultDelegates/WebScriptDebugServer.h: Added.
       
 19926         * DefaultDelegates/WebScriptDebugServer.m: Added.
       
 19927         (+[WebScriptDebugServer sharedScriptDebugServer]):
       
 19928         (-[WebScriptDebugServer init]):
       
 19929         (-[WebScriptDebugServer dealloc]):
       
 19930         (-[WebScriptDebugServer serverQuery:]):
       
 19931         (-[WebScriptDebugServer listenerConnectionDidDie:]):
       
 19932         (-[WebScriptDebugServer addListener:]):
       
 19933         (-[WebScriptDebugServer removeListener:]):
       
 19934         (-[WebScriptDebugServer webView:didParseSource:fromURL:sourceId:forWebFrame:]):
       
 19935         (-[WebScriptDebugServer webView:didEnterCallFrame:sourceId:line:forWebFrame:]):
       
 19936         (-[WebScriptDebugServer webView:willExecuteStatement:sourceId:line:forWebFrame:]):
       
 19937         (-[WebScriptDebugServer webView:willLeaveCallFrame:sourceId:line:forWebFrame:]):
       
 19938         * DefaultDelegates/WebScriptDebugServerPrivate.h: Added.
       
 19939         * WebCoreSupport/WebFrameBridge.m:
       
 19940         (-[WebFrameBridge windowObjectCleared]):
       
 19941         * WebKit.exp:
       
 19942         * WebKit.xcodeproj/project.pbxproj:
       
 19943         * WebView/WebScriptDebugDelegate.m:
       
 19944         (-[WebScriptCallFrame parsedSource:fromURL:sourceId:]):
       
 19945         (-[WebScriptCallFrame enteredFrame:sourceId:line:]):
       
 19946         (-[WebScriptCallFrame hitStatement:sourceId:line:]):
       
 19947         (-[WebScriptCallFrame leavingFrame:sourceId:line:]):
       
 19948         * WebView/WebView.m:
       
 19949         (+[WebView _developerExtrasEnabled]):
       
 19950         (+[WebView _scriptDebuggerEnabled]):
       
 19951         (-[WebView _menuForElement:defaultItems:]):
       
 19952         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 19953         * WebView/WebViewPrivate.h:
       
 19954 
       
 19955 2006-06-16  Adele Peterson  <adele@apple.com>
       
 19956 
       
 19957         Reviewed by Alice.
       
 19958 
       
 19959         Added initialization for WKDrawBezeledTextArea.
       
 19960 
       
 19961         * WebCoreSupport/WebSystemInterface.m:
       
 19962         (InitWebCoreSystemInterface):
       
 19963 
       
 19964 2006-06-15  Timothy Hatcher  <timothy@apple.com>
       
 19965 
       
 19966         Reviewed by Geoff and Darin.
       
 19967         
       
 19968         Prefer the DWARF debugging symbols format for use in Xcode 2.3.
       
 19969 
       
 19970         * WebKit.xcodeproj/project.pbxproj:
       
 19971 
       
 19972 2006-06-15  John Sullivan  <sullivan@apple.com>
       
 19973 
       
 19974         Reviewed by Tim O.
       
 19975         
       
 19976         Fixed bug in WebKit support for computing but not highlighting rects for text matches.
       
 19977 
       
 19978         * WebView/WebView.m:
       
 19979         (-[WebView rectsForTextMatches]):
       
 19980         leave out empty rects, and convert rects to WebView coordinates. Since this makes a batch
       
 19981         of autoreleased NSValue objects, use a local autorelease pool
       
 19982 
       
 19983 2006-02-11  David Kilzer  <ddkilzer@kilzer.net>
       
 19984 
       
 19985         Reviewed by John Sullivan.
       
 19986 
       
 19987         * Plugins/WebPluginController.m:
       
 19988         (-[WebPluginController _cancelOutstandingChecks]):
       
 19989         add nil check before calling CFSetApplyFunction
       
 19990 
       
 19991 2006-06-14  Levi Weintraub  <lweintraub@apple.com>
       
 19992 
       
 19993         Reviewed by justin
       
 19994         
       
 19995         <http://bugs.webkit.org/show_bug.cgi?id=7580>
       
 19996         TinyMCE: Implement execCommand(formatBlock, ...)
       
 19997         
       
 19998         * English.lproj/Localizable.strings:
       
 19999         * WebCoreSupport/WebFrameBridge.m:
       
 20000         (-[WebFrameBridge nameForUndoAction:]):
       
 20001 
       
 20002 2006-06-14  Tim Omernick  <timo@apple.com>
       
 20003 
       
 20004         Reviewed by John Sullivan.
       
 20005 
       
 20006         <rdar://problem/4577988> GC: WebPluginController uses inefficient resurrecting enumeration
       
 20007 
       
 20008         * Plugins/WebPluginController.m:
       
 20009         (cancelOutstandingCheck):
       
 20010         (-[WebPluginController _cancelOutstandingChecks]):
       
 20011         Use CFSetApplyFunction() instead of an enumerator to guard against modifications to the set while enumerating.
       
 20012 
       
 20013 2006-06-13  John Sullivan  <sullivan@apple.com>
       
 20014 
       
 20015         Reviewed by Tim O.
       
 20016         
       
 20017         - fixed <rdar://problem/4498606> REGRESSION (417.8-420+): 3 missing items (but extra separators) in context 
       
 20018         menu in Mail message body
       
 20019 
       
 20020         * WebView/WebView.m:
       
 20021         (-[WebView _menuForElement:defaultItems:]):
       
 20022         Add special-case hackery to recover from this SPI -> API mismatch.
       
 20023 
       
 20024 2006-06-13  Tim Omernick  <timo@apple.com>
       
 20025 
       
 20026         Reviewed by Anders.
       
 20027 
       
 20028         Fixed a recently-introduced assertion failure when handling 404 errors.
       
 20029 
       
 20030         * WebView/WebDataSource.m:
       
 20031         (-[WebDataSource _handleFallbackContent]):
       
 20032         Use the -[WebFrame _bridge] instead of -[WebDataSource _bridge].  The former is not valid until the data
       
 20033         source has been committed, which is not the case when the resource fails to load.  The latter is safe to call
       
 20034         at any time.  This broke last night with Maciej's change to WebFrameResourceLoader.  The old code used to
       
 20035         call -[WebFrame _bridge].
       
 20036 
       
 20037 2006-06-13  Anders Carlsson  <acarlsson@apple.com>
       
 20038 
       
 20039         Reviewed by Geoff.
       
 20040 
       
 20041         http://bugs.webkit.org/show_bug.cgi?id=9406
       
 20042         REGRESSION: fix for bug 9390 broke two layout tests
       
 20043 
       
 20044         * Plugins/WebPluginDatabase.h:
       
 20045         (-[WebPluginDatabase isMIMETypeRegistered:]):
       
 20046         Add new function isMIMETypeRegistered which returns whether a given MIME type has a 
       
 20047         plugin registered. 
       
 20048 
       
 20049         * Plugins/WebPluginDatabase.m:
       
 20050         (-[WebPluginDatabase init]):        
       
 20051         Init set of registered MIME types.
       
 20052         
       
 20053         (-[WebPluginDatabase refresh]):
       
 20054         Add and remove MIME types from the set of registered MIME types when registering and unregistering
       
 20055         plugin MIME types.
       
 20056         
       
 20057         (-[WebPluginDatabase dealloc]):
       
 20058         Release set of registered MIME types.
       
 20059         
       
 20060         * WebCoreSupport/WebFrameBridge.m:
       
 20061         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 20062         Use isMIMETypeRegistered here.
       
 20063 
       
 20064 2006-06-12  Maciej Stachowiak  <mjs@apple.com>
       
 20065 
       
 20066         - fix for cocoa exception (whoops)
       
 20067 
       
 20068         * WebView/WebView.m:
       
 20069         (+[WebView _generatedMIMETypeForURLScheme:]): put this back
       
 20070         * WebView/WebDataSource.m:
       
 20071         (+[WebDataSource _generatedMIMETypeForURLScheme:]): call WebView
       
 20072 
       
 20073 2006-06-12  Maciej Stachowiak  <mjs@apple.com>
       
 20074 
       
 20075         Reviewed by Darin.
       
 20076         
       
 20077         - remove use of WebView and related from WebMainResourceLoader
       
 20078 
       
 20079         * WebKit.xcodeproj/project.pbxproj:
       
 20080         * WebView/WebDataSource.m:
       
 20081         (+[WebDataSource _generatedMIMETypeForURLScheme:]):
       
 20082         (+[WebDataSource _representationExistsForURLScheme:]):
       
 20083         (+[WebDataSource _canShowMIMEType:]):
       
 20084         (-[WebDataSource _handleFallbackContent]):
       
 20085         (-[WebDataSource _decidePolicyForMIMEType:decisionListener:]):
       
 20086         * WebView/WebDataSourceInternal.h:
       
 20087         * WebView/WebFrame.m:
       
 20088         (-[WebFrame _isMainFrame]):
       
 20089         * WebView/WebFrameInternal.h:
       
 20090         * WebView/WebMainResourceLoader.m:
       
 20091         (-[WebMainResourceLoader willSendRequest:redirectResponse:]):
       
 20092         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 20093         (-[WebMainResourceLoader checkContentPolicyForResponse:]):
       
 20094         (-[WebMainResourceLoader loadWithRequestNow:]):
       
 20095         * WebView/WebView.m:
       
 20096 
       
 20097 2006-06-12  Tim Omernick  <timo@apple.com>
       
 20098 
       
 20099         Reviewed by Maciej.
       
 20100 
       
 20101         <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc] running layout tests
       
 20102 
       
 20103         * Plugins/WebNetscapePluginPackage.m:
       
 20104         (-[WebNetscapePluginPackage _initWithPath:]):
       
 20105         Renamed from -initWithPath:.  Instead of releasing/deallocating self on error, return NO.
       
 20106         (-[WebNetscapePluginPackage initWithPath:]):
       
 20107         Call the new -_initWithPath:.  If it returns NO, unload the plugin package before deallocating it.
       
 20108 
       
 20109 2006-06-11  Darin Adler  <darin@apple.com>
       
 20110 
       
 20111         - try to fix Windows build
       
 20112 
       
 20113         * COM/WebKitDLL.cpp: (loadResourceIntoArray): Use Vector<char> instead of
       
 20114         DeprecatedByteArray.
       
 20115 
       
 20116 2006-06-11  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 20117 
       
 20118         Reviewed by Tim H.
       
 20119 
       
 20120         - fix http://bugs.webkit.org/show_bug.cgi?id=8672
       
 20121           Red outline from web inspector reappears after inspector is closed
       
 20122 
       
 20123         * WebInspector/WebInspector.m:
       
 20124         (-[NSWindow windowWillClose:]): Added a call to setWebFrame to avoid further
       
 20125         load progress notifications.
       
 20126         (-[NSWindow setWebFrame:]): Changed to resign the WebView's hostWindow rather
       
 20127         than its window for close notifications, to avoid resigning from all windows' close
       
 20128         notifications (including the inspector window's) when the WebView is in a hidden tab.
       
 20129         Also changed to prevent highlighting the initial focused node.
       
 20130 
       
 20131 2006-06-11  Anders Carlsson  <acarlsson@apple.com>
       
 20132 
       
 20133         Reviewed by Tim.
       
 20134 
       
 20135         http://bugs.webkit.org/show_bug.cgi?id=9390
       
 20136         Move full-frame plugins to WebCore
       
 20137 
       
 20138         * Plugins/WebBaseNetscapePluginStream.h:
       
 20139         * Plugins/WebBaseNetscapePluginStream.m:
       
 20140         (-[WebBaseNetscapePluginStream instance]):
       
 20141         Add instance method which returns the plugin instance.
       
 20142         
       
 20143         * Plugins/WebBasePluginPackage.h:
       
 20144         Add WebPluginManualLoader protocol
       
 20145         
       
 20146         * Plugins/WebNetscapePluginDocumentView.h: Removed.
       
 20147         * Plugins/WebNetscapePluginDocumentView.m: Removed.
       
 20148 
       
 20149         * Plugins/WebNetscapePluginEmbeddedView.h:
       
 20150         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 20151         (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:]):
       
 20152         (-[WebNetscapePluginEmbeddedView dealloc]):
       
 20153         (-[WebNetscapePluginEmbeddedView didStart]):
       
 20154         (-[WebNetscapePluginEmbeddedView pluginView:receivedResponse:]):
       
 20155         (-[WebNetscapePluginEmbeddedView pluginView:receivedData:]):
       
 20156         (-[WebNetscapePluginEmbeddedView pluginView:receivedError:]):
       
 20157         (-[WebNetscapePluginEmbeddedView pluginViewFinishedLoading:]):
       
 20158         (-[WebNetscapePluginEmbeddedView redeliverStream]):
       
 20159         Make WebNetscapePluginEmbeddedView support the WebPluginManualLoader protocol. It creates a plugin stream and feeds the
       
 20160         data manually. Much of this code has been copied from WebNetscapePluginRepresentation.
       
 20161 
       
 20162         * Plugins/WebNetscapePluginRepresentation.h: Removed.
       
 20163         * Plugins/WebNetscapePluginRepresentation.m: Removed.
       
 20164 
       
 20165         * Plugins/WebPluginController.h:
       
 20166         * Plugins/WebPluginController.m:
       
 20167         (-[WebPluginController pluginView:receivedResponse:]):
       
 20168         (-[WebPluginController pluginView:receivedData:]):
       
 20169         (-[WebPluginController pluginView:receivedError:]):
       
 20170         (-[WebPluginController pluginViewFinishedLoading:]):
       
 20171         Make WebPluginController support the WebPluginManualLoader protocol so it can feed data manually to WebKit plugins.
       
 20172 
       
 20173         * Plugins/WebPluginDatabase.m:        
       
 20174         (-[WebPluginDatabase refresh]):
       
 20175         Use WebHTMLView and WebHTMLRepresentation when registering/unregistering plug-in MIME types.
       
 20176         
       
 20177         * Plugins/WebPluginDocumentView.h: Removed.
       
 20178         * Plugins/WebPluginDocumentView.m: Removed.
       
 20179 
       
 20180         * WebCoreSupport/WebFrameBridge.m:
       
 20181         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
       
 20182         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
       
 20183         Add loadManually argument.
       
 20184         
       
 20185         (-[WebFrameBridge redirectDataToPlugin:]):
       
 20186         Call down to the HTML representation.
       
 20187         
       
 20188         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
 20189         Pass NO to loadManually.
       
 20190         
       
 20191         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 20192         Explicitly check if the MIME type is supported by a plug-in instead of checking the view class.
       
 20193         
       
 20194         * WebCoreSupport/WebViewFactory.m:
       
 20195         (-[WebViewFactory pluginSupportsMIMEType:]):
       
 20196         New function which returns whether any plugins support a given MIME type.
       
 20197         
       
 20198         * WebKit.xcodeproj/project.pbxproj:
       
 20199         Update for removed files.
       
 20200         
       
 20201         * WebView/WebFrame.m:
       
 20202         (-[WebFrame _reloadForPluginChanges]):
       
 20203         Remove view type checks.
       
 20204         
       
 20205         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
       
 20206         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
       
 20207         Remove FIXME comments.
       
 20208         
       
 20209         * WebView/WebHTMLRepresentation.m:
       
 20210         (-[WebHTMLRepresentation _redirectDataToManualLoader:forPluginView:]):        
       
 20211         New function which redirects incoming data to a manual loader.
       
 20212         
       
 20213         (-[WebHTMLRepresentation receivedData:withDataSource:]):
       
 20214         (-[WebHTMLRepresentation receivedError:withDataSource:]):
       
 20215         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
       
 20216         Optionally redirect incoming data.
       
 20217         
       
 20218         * WebView/WebHTMLRepresentationPrivate.h:
       
 20219 
       
 20220 2006-06-09  John Sullivan  <sullivan@apple.com>
       
 20221 
       
 20222         Reviewed by Tim Omernick and Dave Hyatt.
       
 20223 
       
 20224         WebKit support for computing but not highlighting rects for text matches.
       
 20225 
       
 20226         * WebView/WebHTMLViewPrivate.h:
       
 20227         added markedTextMatchesAreHighlighted/setMarkedTextMatchesAreHighlighted and
       
 20228         rectsForTextMatches, and renamed related methods for clarity/consistency
       
 20229         * WebView/WebHTMLView.m:
       
 20230         (-[WebHTMLView markAllMatchesForText:caseSensitive:]):
       
 20231         renamed, calls similarly-renamed method
       
 20232         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
       
 20233         new method, calls through to bridge
       
 20234         (-[WebHTMLView markedTextMatchesAreHighlighted]):
       
 20235         ditto
       
 20236         (-[WebHTMLView unmarkAllTextMatches]):
       
 20237         renamed
       
 20238         (-[WebHTMLView rectsForTextMatches]):
       
 20239         new method, calls through to bridge
       
 20240 
       
 20241         * WebView/WebViewPrivate.h:
       
 20242         added rectsForTextMatches, renamed other methods (and added highlight: parameter)
       
 20243         * WebView/WebView.m:
       
 20244         (-[WebView markAllMatchesForText:caseSensitive:highlight:]):
       
 20245         renamed for clarity/consistency, and now has highlight: parameter, which is passed down
       
 20246         (-[WebView unmarkAllTextMatches]):
       
 20247         renamed for clarity/consistency, and calls similarly-renamed method lower down. diff got
       
 20248         confused with the end of this and the end of the next method.
       
 20249         (-[WebView rectsForTextMatches]):
       
 20250         new method, calls through to WebHTMLView as related methods currently do
       
 20251 
       
 20252 2006-06-10  Graham Dennis  <Graham.Dennis@gmail.com>
       
 20253 
       
 20254         <http://bugs.webkit.org/show_bug.cgi?id=9384>
       
 20255         WebView's initWithCoder: method does not set useBackForwardList
       
 20256         correctly
       
 20257         
       
 20258         Reviewed by John Sullivan.
       
 20259 
       
 20260         * WebView/WebView.m:
       
 20261         (-[WebView initWithCoder:]):
       
 20262         Make sure that the function variable useBackForwardList is correctly
       
 20263         set, so that the copy in the _private ivar is set.
       
 20264 
       
 20265 2006-06-09  David Hyatt  <hyatt@apple.com>
       
 20266 
       
 20267         Rename updateFocusState to updateActiveState.
       
 20268 
       
 20269         * WebView/WebHTMLView.m:
       
 20270         (-[WebHTMLView _updateActiveState]):
       
 20271         (-[WebHTMLView viewDidMoveToWindow]):
       
 20272         (-[WebHTMLView windowDidBecomeKey:]):
       
 20273         (-[WebHTMLView windowDidResignKey:]):
       
 20274         (-[WebHTMLView becomeFirstResponder]):
       
 20275         (-[WebHTMLView resignFirstResponder]):
       
 20276         (-[WebHTMLView _formControlIsBecomingFirstResponder:]):
       
 20277         (-[WebHTMLView _formControlIsResigningFirstResponder:]):
       
 20278         * WebView/WebHTMLViewPrivate.h:
       
 20279 
       
 20280 2006-06-09  David Hyatt  <hyatt@apple.com>
       
 20281 
       
 20282         Rename displaysWithFocusAttributes to isActive.
       
 20283 
       
 20284         Reviewed by sfalken
       
 20285 
       
 20286         * WebKit.xcodeproj/project.pbxproj:
       
 20287         * WebView/WebHTMLView.m:
       
 20288         (-[WebHTMLView _updateFocusState]):
       
 20289 
       
 20290 2006-06-08  Justin Garcia  <justin.garcia@apple.com>
       
 20291 
       
 20292         Reviewed by levi
       
 20293         
       
 20294         <http://bugs.webkit.org/show_bug.cgi?id=4468>
       
 20295         Implement execCommand(Insert{Un}OrderedList)
       
 20296 
       
 20297         * WebView/WebFrame.m:
       
 20298         (-[WebFrame _findFrameWithSelection]): Removed an assertion
       
 20299         that we only have one frame with a selection.  
       
 20300         * WebView/WebView.m:
       
 20301         (-[WebView selectedFrame]): Ditto.
       
 20302 
       
 20303 2006-06-08  Timothy Hatcher  <timothy@apple.com>
       
 20304 
       
 20305         Reviewed by Darin and John.
       
 20306 
       
 20307         <rdar://problem/3600734> API: please add a way to turn vertical scrollbar
       
 20308         always on (for Mail, to avoid reflow when typing)
       
 20309 
       
 20310         Adds new methods to lock the scrolling mode on WebDynamicScrollBarsView.
       
 20311         Locking the scroll mode prevents WebCore from changing it as needed.
       
 20312         Also adds an SPI on WebView that will lock the "always on" mode
       
 20313         for each scroller.
       
 20314 
       
 20315         * WebKit.xcodeproj/project.pbxproj:
       
 20316         * WebView/WebDynamicScrollBarsView.h:
       
 20317         * WebView/WebDynamicScrollBarsView.m:
       
 20318         (-[WebDynamicScrollBarsView setAllowsScrolling:]):
       
 20319         (-[WebDynamicScrollBarsView allowsScrolling]):
       
 20320         (-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
       
 20321         (-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
       
 20322         (-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
       
 20323         (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
       
 20324         (-[WebDynamicScrollBarsView setScrollingMode:]):
       
 20325         (-[WebDynamicScrollBarsView setHorizontalScrollingModeLocked:]):
       
 20326         (-[WebDynamicScrollBarsView setVerticalScrollingModeLocked:]):
       
 20327         (-[WebDynamicScrollBarsView setScrollingModesLocked:]):
       
 20328         (-[WebDynamicScrollBarsView horizontalScrollingModeLocked]):
       
 20329         (-[WebDynamicScrollBarsView verticalScrollingModeLocked]):
       
 20330         * WebView/WebView.m:
       
 20331         (-[WebView setAlwaysShowVerticalScroller:]):
       
 20332         (-[WebView alwaysShowVerticalScroller]):
       
 20333         (-[WebView setAlwaysShowHorizontalScroller:]):
       
 20334         (-[WebView alwaysShowHorizontalScroller]):
       
 20335         * WebView/WebViewPrivate.h:
       
 20336 
       
 20337 2006-06-08  Darin Adler  <darin@apple.com>
       
 20338 
       
 20339         Reviewed by Justin.
       
 20340 
       
 20341         - fix http://bugs.webkit.org/show_bug.cgi?id=8616
       
 20342           REGRESSION: TinyMCE: Crash on Undo
       
 20343 
       
 20344         * WebView/WebHTMLView.m:
       
 20345         (-[WebHTMLView _topHTMLView]): Added.
       
 20346         (-[WebHTMLView _isTopHTMLView]): Added.
       
 20347         (-[WebHTMLView _insideAnotherHTMLView]): Changed to use _topHTMLView.
       
 20348         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 20349         Forward to the top HTML view, so that only the top view ever starts a dragging operation.
       
 20350         Change dragging code to not assume that the dragged node is in the current view's document.
       
 20351         Added checks that the node is an element in a couple places and coordinate conversions.
       
 20352         (-[WebHTMLView _mayStartDragAtEventLocation:]): Forward to the top HTML view.
       
 20353         (-[WebHTMLView addMouseMovedObserver]): Change to do nothing when the dataSource field is 0,
       
 20354         since we now use the dataSource field to get to the WebView.
       
 20355         (-[WebHTMLView removeMouseMovedObserver]): Added a comment.
       
 20356         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
       
 20357         Forward to the top HTML view.
       
 20358         (-[WebHTMLView draggingSourceOperationMaskForLocal:]): Assert that it's the top HTML view.
       
 20359         (-[WebHTMLView draggedImage:movedTo:]): Ditto.
       
 20360         (-[WebHTMLView draggedImage:endedAt:operation:]): Ditto.
       
 20361         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
       
 20362         (-[WebHTMLView _canProcessDragWithDraggingInfo:]): Ditto.
       
 20363         (-[WebHTMLView _isMoveDrag]): Ditto.
       
 20364         (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Ditto.
       
 20365         (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
       
 20366         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Ditto. Also added code to work
       
 20367         with the appropriate bridge when receiving a drag. This fixes the problem where the
       
 20368         top level frame got a selection intended for the inner frame; the source of the bug.
       
 20369         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Added code to convert the coordinates
       
 20370         so this works properly when returning an element from an inner frame.
       
 20371         (-[WebHTMLView setDataSource:]): Added a call to addMouseMovedObserver, needed now that
       
 20372         addMouseMovedObserver won't do anything if called when dataSource is nil.
       
 20373         (-[WebHTMLView _delegateDragSourceActionMask]): Forward to the top HTML view.
       
 20374 
       
 20375         * WebView/WebView.m:
       
 20376         (-[WebViewPrivate dealloc]): Removed code to release dragCaretBridge since that field
       
 20377         is now gone.
       
 20378         (-[WebView moveDragCaretToPoint:]): Always call the main frame's bridge, since the
       
 20379         drag caret is now a page-level item. Later we'll move it to the page bridge.
       
 20380         (-[WebView removeDragCaret]): Ditto.
       
 20381 
       
 20382 2006-06-07  David Hyatt  <hyatt@apple.com>
       
 20383 
       
 20384         Add support for custom highlighting to WebKit.
       
 20385 
       
 20386         Reviewed by justin
       
 20387 
       
 20388         * WebCoreSupport/WebFrameBridge.m:
       
 20389         (-[WebFrameBridge paintCustomHighlight:forBox:onLine:behindText:]):
       
 20390         * WebView/WebHTMLView.m:
       
 20391         (-[WebHTMLView _highlighterForType:]):
       
 20392         * WebView/WebHTMLViewInternal.h:
       
 20393         * WebView/WebHTMLViewPrivate.h:
       
 20394 
       
 20395 2006-06-07  Adele Peterson  <adele@apple.com>
       
 20396 
       
 20397         Reviewed by Hyatt. 
       
 20398 
       
 20399         Added resources for missingImage and textAreaResizeCorner.
       
 20400 
       
 20401         * COM/WebKitDLL.cpp:
       
 20402         (loadResourceIntoArray): Added. Returns a DeprecatedByteArray with the resource's data.
       
 20403         * WebKit.vcproj/WebKit.rc: Added missing image and resize pngs as resources. 
       
 20404         * WebKit.vcproj/WebKit.vcproj: Added pngs.
       
 20405         * WebKit.vcproj/missingImage.png: Added.
       
 20406         * WebKit.vcproj/resource.h: Added entries for pngs.
       
 20407         * WebKit.vcproj/textAreaResizeCorner.png: Added.
       
 20408 
       
 20409 2006-06-07  David Hyatt  <hyatt@apple.com>
       
 20410 
       
 20411         Add SPI for setting and removing custom highlighters.
       
 20412 
       
 20413         Reviewed by Tim H
       
 20414 
       
 20415         * WebView/WebHTMLView.m:
       
 20416         (-[WebTextCompleteController dealloc]):
       
 20417         (-[WebHTMLView _setHighlighter:ofType:]):
       
 20418         (-[WebHTMLView _removeHighlighterOfType:]):
       
 20419         * WebView/WebHTMLViewInternal.h:
       
 20420         * WebView/WebHTMLViewPrivate.h:
       
 20421 
       
 20422 2006-06-06  Adele Peterson  <adele@apple.com>
       
 20423 
       
 20424         Reviewed by Justin. 
       
 20425 
       
 20426         * COM/WebView.cpp:
       
 20427         (WebView::keyPress): Added case for VK_RETURN. 
       
 20428 
       
 20429 2006-06-06  Anders Carlsson  <acarlsson@apple.com>
       
 20430 
       
 20431         Reviewed by John.
       
 20432 
       
 20433         * WebView/WebFrame.m:
       
 20434         (-[WebFrame _reloadForPluginChanges]):
       
 20435         Don't traverse the view hierarchy looking for plugin views. Instead, just
       
 20436         ask the frame whether it contains any plugins.
       
 20437 
       
 20438 2006-06-03  Steve Falkenburg  <sfalken@apple.com>
       
 20439 
       
 20440         Reviewed by hyatt.
       
 20441         
       
 20442         Add implementation of loadHTMLString for Spinneret
       
 20443 
       
 20444         * COM/WebFrame.cpp:
       
 20445         (WebFrame::loadHTMLString):
       
 20446 
       
 20447 2006-06-02  Steve Falkenburg  <sfalken@apple.com>
       
 20448 
       
 20449         Reviewed by darin.
       
 20450 
       
 20451         New hosting for Spinneret to avoid static linking
       
 20452 
       
 20453         * COM: Added.
       
 20454         * COM/Interfaces: Added.
       
 20455         * COM/Interfaces/DOMCSS.idl: Added.
       
 20456         * COM/Interfaces/DOMCore.idl: Added.
       
 20457         * COM/Interfaces/DOMHTML.idl: Added.
       
 20458         * COM/Interfaces/DOMRange.idl: Added.
       
 20459         * COM/Interfaces/IWebArchive.idl: Added.
       
 20460         * COM/Interfaces/IWebAttributedString.idl: Added.
       
 20461         * COM/Interfaces/IWebBackForwardList.idl: Added.
       
 20462         * COM/Interfaces/IWebDataSource.idl: Added.
       
 20463         * COM/Interfaces/IWebDocument.idl: Added.
       
 20464         * COM/Interfaces/IWebDownload.idl: Added.
       
 20465         * COM/Interfaces/IWebEditingDelegate.idl: Added.
       
 20466         * COM/Interfaces/IWebError.idl: Added.
       
 20467         * COM/Interfaces/IWebFrame.idl: Added.
       
 20468         * COM/Interfaces/IWebFrameLoadDelegate.idl: Added.
       
 20469         * COM/Interfaces/IWebFrameView.idl: Added.
       
 20470         * COM/Interfaces/IWebHistoryItem.idl: Added.
       
 20471         * COM/Interfaces/IWebIconDatabase.idl: Added.
       
 20472         * COM/Interfaces/IWebImage.idl: Added.
       
 20473         * COM/Interfaces/IWebMutableURLRequest.idl: Added.
       
 20474         * COM/Interfaces/IWebNotification.idl: Added.
       
 20475         * COM/Interfaces/IWebPolicyDelegate.idl: Added.
       
 20476         * COM/Interfaces/IWebPreferences.idl: Added.
       
 20477         * COM/Interfaces/IWebResource.idl: Added.
       
 20478         * COM/Interfaces/IWebResourceLoadDelegate.idl: Added.
       
 20479         * COM/Interfaces/IWebScriptObject.idl: Added.
       
 20480         * COM/Interfaces/IWebUIDelegate.idl: Added.
       
 20481         * COM/Interfaces/IWebURLAuthenticationChallenge.idl: Added.
       
 20482         * COM/Interfaces/IWebURLRequest.idl: Added.
       
 20483         * COM/Interfaces/IWebURLResponse.idl: Added.
       
 20484         * COM/Interfaces/IWebUndoManager.idl: Added.
       
 20485         * COM/Interfaces/IWebView.idl: Added.
       
 20486         * COM/Interfaces/WebKit.idl: Added.
       
 20487         * COM/WebBackForwardList.cpp: Added.
       
 20488         (WebBackForwardList::WebBackForwardList):
       
 20489         (WebBackForwardList::~WebBackForwardList):
       
 20490         (WebBackForwardList::createInstance):
       
 20491         (WebBackForwardList::QueryInterface):
       
 20492         (WebBackForwardList::AddRef):
       
 20493         (WebBackForwardList::Release):
       
 20494         (WebBackForwardList::addItem):
       
 20495         (WebBackForwardList::goBack):
       
 20496         (WebBackForwardList::goForward):
       
 20497         (WebBackForwardList::goToItem):
       
 20498         (WebBackForwardList::backItem):
       
 20499         (WebBackForwardList::currentItem):
       
 20500         (WebBackForwardList::forwardItem):
       
 20501         (WebBackForwardList::backListWithLimit):
       
 20502         (WebBackForwardList::forwardListWithLimit):
       
 20503         (WebBackForwardList::capacity):
       
 20504         (WebBackForwardList::setCapacity):
       
 20505         (WebBackForwardList::backListCount):
       
 20506         (WebBackForwardList::forwardListCount):
       
 20507         (WebBackForwardList::containsItem):
       
 20508         (WebBackForwardList::itemAtIndex):
       
 20509         (WebBackForwardList::setPageCacheSize):
       
 20510         (WebBackForwardList::pageCacheSize):
       
 20511         * COM/WebBackForwardList.h: Added.
       
 20512         * COM/WebDataSource.cpp: Added.
       
 20513         (WebDataSource::WebDataSource):
       
 20514         (WebDataSource::~WebDataSource):
       
 20515         (WebDataSource::createInstance):
       
 20516         (WebDataSource::QueryInterface):
       
 20517         (WebDataSource::AddRef):
       
 20518         (WebDataSource::Release):
       
 20519         (WebDataSource::initWithRequest):
       
 20520         (WebDataSource::data):
       
 20521         (WebDataSource::representation):
       
 20522         (WebDataSource::webFrame):
       
 20523         (WebDataSource::initialRequest):
       
 20524         (WebDataSource::request):
       
 20525         (WebDataSource::response):
       
 20526         (WebDataSource::textEncodingName):
       
 20527         (WebDataSource::isLoading):
       
 20528         (WebDataSource::pageTitle):
       
 20529         (WebDataSource::unreachableURL):
       
 20530         (WebDataSource::webArchive):
       
 20531         (WebDataSource::mainResource):
       
 20532         (WebDataSource::subresources):
       
 20533         (WebDataSource::subresourceForURL):
       
 20534         (WebDataSource::addSubresource):
       
 20535         * COM/WebDataSource.h: Added.
       
 20536         * COM/WebFrame.cpp: Added.
       
 20537         (WebFrame::WebFramePrivate::WebFramePrivate):
       
 20538         (WebFrame::WebFramePrivate::~WebFramePrivate):
       
 20539         (WebFrame::WebFrame):
       
 20540         (WebFrame::~WebFrame):
       
 20541         (WebFrame::createInstance):
       
 20542         (WebFrame::QueryInterface):
       
 20543         (WebFrame::AddRef):
       
 20544         (WebFrame::Release):
       
 20545         (WebFrame::initWithName):
       
 20546         (WebFrame::name):
       
 20547         (WebFrame::webView):
       
 20548         (WebFrame::frameView):
       
 20549         (WebFrame::DOMDocument):
       
 20550         (WebFrame::frameElement):
       
 20551         (WebFrame::loadRequest):
       
 20552         (WebFrame::loadData):
       
 20553         (WebFrame::loadHTMLString):
       
 20554         (WebFrame::loadAlternateHTMLString):
       
 20555         (WebFrame::loadArchive):
       
 20556         (WebFrame::dataSource):
       
 20557         (WebFrame::provisionalDataSource):
       
 20558         (WebFrame::stopLoading):
       
 20559         (WebFrame::reload):
       
 20560         (WebFrame::findFrameNamed):
       
 20561         (WebFrame::parentFrame):
       
 20562         (WebFrame::childFrames):
       
 20563         (WebFrame::paint):
       
 20564         (WebFrame::impl):
       
 20565         (WebFrame::loadDataSource):
       
 20566         (WebFrame::loading):
       
 20567         (WebFrame::goToItem):
       
 20568         (WebFrame::loadItem):
       
 20569         (WebSystemMainMemory):
       
 20570         (WebFrame::getObjectCacheSize):
       
 20571         (WebFrame::receivedRedirect):
       
 20572         (WebFrame::receivedResponse):
       
 20573         (WebFrame::receivedData):
       
 20574         (WebFrame::receivedAllData):
       
 20575         (WebFrame::openURL):
       
 20576         (WebFrame::submitForm):
       
 20577         (WebFrame::setTitle):
       
 20578         (WebFrame::setStatusText):
       
 20579         * COM/WebFrame.h: Added.
       
 20580         * COM/WebHistoryItem.cpp: Added.
       
 20581         (WebHistoryItem::WebHistoryItem):
       
 20582         (WebHistoryItem::~WebHistoryItem):
       
 20583         (WebHistoryItem::createInstance):
       
 20584         (WebHistoryItem::QueryInterface):
       
 20585         (WebHistoryItem::AddRef):
       
 20586         (WebHistoryItem::Release):
       
 20587         (WebHistoryItem::initWithURLString):
       
 20588         (WebHistoryItem::originalURLString):
       
 20589         (WebHistoryItem::URLString):
       
 20590         (WebHistoryItem::title):
       
 20591         (WebHistoryItem::lastVisitedTimeInterval):
       
 20592         (WebHistoryItem::setAlternateTitle):
       
 20593         (WebHistoryItem::alternateTitle):
       
 20594         (WebHistoryItem::icon):
       
 20595         * COM/WebHistoryItem.h: Added.
       
 20596         * COM/WebIconDatabase.cpp: Added.
       
 20597         (WebIconDatabase::WebIconDatabase):
       
 20598         (WebIconDatabase::~WebIconDatabase):
       
 20599         (WebIconDatabase::createInstance):
       
 20600         (WebIconDatabase::QueryInterface):
       
 20601         (WebIconDatabase::AddRef):
       
 20602         (WebIconDatabase::Release):
       
 20603         (WebIconDatabase::sharedIconDatabase):
       
 20604         (WebIconDatabase::iconForURL):
       
 20605         (WebIconDatabase::defaultIconWithSize):
       
 20606         (WebIconDatabase::retainIconForURL):
       
 20607         (WebIconDatabase::releaseIconForURL):
       
 20608         (WebIconDatabase::delayDatabaseCleanup):
       
 20609         (WebIconDatabase::allowDatabaseCleanup):
       
 20610         * COM/WebIconDatabase.h: Added.
       
 20611         * COM/WebKitClassFactory.cpp: Added.
       
 20612         (WebKitClassFactory::WebKitClassFactory):
       
 20613         (WebKitClassFactory::~WebKitClassFactory):
       
 20614         (WebKitClassFactory::QueryInterface):
       
 20615         (WebKitClassFactory::AddRef):
       
 20616         (WebKitClassFactory::Release):
       
 20617         (WebKitClassFactory::CreateInstance):
       
 20618         (WebKitClassFactory::LockServer):
       
 20619         * COM/WebKitClassFactory.h: Added.
       
 20620         * COM/WebKitDLL.cpp: Added.
       
 20621         (DllMain):
       
 20622         (DllGetClassObject):
       
 20623         (DllCanUnloadNow):
       
 20624         (DllUnregisterServer):
       
 20625         (DllRegisterServer):
       
 20626         * COM/WebKitDLL.h: Added.
       
 20627         * COM/WebMutableURLRequest.cpp: Added.
       
 20628         (WebMutableURLRequest::WebMutableURLRequest):
       
 20629         (WebMutableURLRequest::~WebMutableURLRequest):
       
 20630         (WebMutableURLRequest::createInstance):
       
 20631         (WebMutableURLRequest::QueryInterface):
       
 20632         (WebMutableURLRequest::AddRef):
       
 20633         (WebMutableURLRequest::Release):
       
 20634         (WebMutableURLRequest::requestWithURL):
       
 20635         (WebMutableURLRequest::allHTTPHeaderFields):
       
 20636         (WebMutableURLRequest::cachePolicy):
       
 20637         (WebMutableURLRequest::HTTPBody):
       
 20638         (WebMutableURLRequest::HTTPBodyStream):
       
 20639         (WebMutableURLRequest::HTTPMethod):
       
 20640         (WebMutableURLRequest::HTTPShouldHandleCookies):
       
 20641         (WebMutableURLRequest::initWithURL):
       
 20642         (WebMutableURLRequest::mainDocumentURL):
       
 20643         (WebMutableURLRequest::timeoutInterval):
       
 20644         (WebMutableURLRequest::URL):
       
 20645         (WebMutableURLRequest::valueForHTTPHeaderField):
       
 20646         (WebMutableURLRequest::addValue):
       
 20647         (WebMutableURLRequest::setAllHTTPHeaderFields):
       
 20648         (WebMutableURLRequest::setCachePolicy):
       
 20649         (WebMutableURLRequest::setHTTPBody):
       
 20650         (WebMutableURLRequest::setHTTPBodyStream):
       
 20651         (WebMutableURLRequest::setHTTPMethod):
       
 20652         (WebMutableURLRequest::setHTTPShouldHandleCookies):
       
 20653         (WebMutableURLRequest::setMainDocumentURL):
       
 20654         (WebMutableURLRequest::setTimeoutInterval):
       
 20655         (WebMutableURLRequest::setURL):
       
 20656         (WebMutableURLRequest::setValue):
       
 20657         (WebMutableURLRequest::setFormData):
       
 20658         (WebMutableURLRequest::formData):
       
 20659         * COM/WebMutableURLRequest.h: Added.
       
 20660         * COM/WebView.cpp: Added.
       
 20661         (WebView::WebView):
       
 20662         (WebView::~WebView):
       
 20663         (WebView::createInstance):
       
 20664         (WebView::mouseMoved):
       
 20665         (WebView::mouseDown):
       
 20666         (WebView::mouseUp):
       
 20667         (WebView::mouseDoubleClick):
       
 20668         (WebView::keyPress):
       
 20669         (registerWebView):
       
 20670         (WebViewWndProc):
       
 20671         (calculateScrollDelta):
       
 20672         (scrollMessageForKey):
       
 20673         (WebView::goToItem):
       
 20674         (WebView::QueryInterface):
       
 20675         (WebView::AddRef):
       
 20676         (WebView::Release):
       
 20677         (WebView::canShowMIMEType):
       
 20678         (WebView::canShowMIMETypeAsHTML):
       
 20679         (WebView::MIMETypesShownAsHTML):
       
 20680         (WebView::setMIMETypesShownAsHTML):
       
 20681         (WebView::URLFromPasteboard):
       
 20682         (WebView::URLTitleFromPasteboard):
       
 20683         (WebView::initWithFrame):
       
 20684         (WebView::setUIDelegate):
       
 20685         (WebView::uiDelegate):
       
 20686         (WebView::setResourceLoadDelegate):
       
 20687         (WebView::resourceLoadDelegate):
       
 20688         (WebView::setDownloadDelegate):
       
 20689         (WebView::downloadDelegate):
       
 20690         (WebView::setFrameLoadDelegate):
       
 20691         (WebView::frameLoadDelegate):
       
 20692         (WebView::setPolicyDelegate):
       
 20693         (WebView::policyDelegate):
       
 20694         (WebView::mainFrame):
       
 20695         (WebView::backForwardList):
       
 20696         (WebView::setMaintainsBackForwardList):
       
 20697         (WebView::goBack):
       
 20698         (WebView::goForward):
       
 20699         (WebView::goToBackForwardItem):
       
 20700         (WebView::setTextSizeMultiplier):
       
 20701         (WebView::textSizeMultiplier):
       
 20702         (WebView::setApplicationNameForUserAgent):
       
 20703         (WebView::applicationNameForUserAgent):
       
 20704         (WebView::setCustomUserAgent):
       
 20705         (WebView::customUserAgent):
       
 20706         (WebView::userAgentForURL):
       
 20707         (WebView::supportsTextEncoding):
       
 20708         (WebView::setCustomTextEncodingName):
       
 20709         (WebView::customTextEncodingName):
       
 20710         (WebView::setMediaStyle):
       
 20711         (WebView::mediaStyle):
       
 20712         (WebView::stringByEvaluatingJavaScriptFromString):
       
 20713         (WebView::windowScriptObject):
       
 20714         (WebView::setPreferences):
       
 20715         (WebView::preferences):
       
 20716         (WebView::setPreferencesIdentifier):
       
 20717         (WebView::preferencesIdentifier):
       
 20718         (WebView::setHostWindow):
       
 20719         (WebView::hostWindow):
       
 20720         (WebView::searchFor):
       
 20721         (WebView::registerViewClass):
       
 20722         (WebView::takeStringURLFrom):
       
 20723         (WebView::stopLoading):
       
 20724         (WebView::reload):
       
 20725         (WebView::canGoBack):
       
 20726         (WebView::canGoForward):
       
 20727         (WebView::canMakeTextLarger):
       
 20728         (WebView::makeTextLarger):
       
 20729         (WebView::canMakeTextSmaller):
       
 20730         (WebView::makeTextSmaller):
       
 20731         (WebView::computedStyleForElement):
       
 20732         (WebView::editableDOMRangeForPoint):
       
 20733         (WebView::setSelectedDOMRange):
       
 20734         (WebView::selectedDOMRange):
       
 20735         (WebView::selectionAffinity):
       
 20736         (WebView::setEditable):
       
 20737         (WebView::isEditable):
       
 20738         (WebView::setTypingStyle):
       
 20739         (WebView::typingStyle):
       
 20740         (WebView::setSmartInsertDeleteEnabled):
       
 20741         (WebView::smartInsertDeleteEnabled):
       
 20742         (WebView::setContinuousSpellCheckingEnabled):
       
 20743         (WebView::isContinuousSpellCheckingEnabled):
       
 20744         (WebView::spellCheckerDocumentTag):
       
 20745         (WebView::undoManager):
       
 20746         (WebView::setEditingDelegate):
       
 20747         (WebView::editingDelegate):
       
 20748         (WebView::styleDeclarationWithText):
       
 20749         (WebView::replaceSelectionWithNode):
       
 20750         (WebView::replaceSelectionWithText):
       
 20751         (WebView::replaceSelectionWithMarkupString):
       
 20752         (WebView::replaceSelectionWithArchive):
       
 20753         (WebView::deleteSelection):
       
 20754         (WebView::applyStyle):
       
 20755         (WebView::copy):
       
 20756         (WebView::cut):
       
 20757         (WebView::paste):
       
 20758         (WebView::copyFont):
       
 20759         (WebView::pasteFont):
       
 20760         (WebView::delete_):
       
 20761         (WebView::pasteAsPlainText):
       
 20762         (WebView::pasteAsRichText):
       
 20763         (WebView::changeFont):
       
 20764         (WebView::changeAttributes):
       
 20765         (WebView::changeDocumentBackgroundColor):
       
 20766         (WebView::changeColor):
       
 20767         (WebView::alignCenter):
       
 20768         (WebView::alignJustified):
       
 20769         (WebView::alignLeft):
       
 20770         (WebView::alignRight):
       
 20771         (WebView::checkSpelling):
       
 20772         (WebView::showGuessPanel):
       
 20773         (WebView::performFindPanelAction):
       
 20774         (WebView::startSpeaking):
       
 20775         (WebView::stopSpeaking):
       
 20776         (WebView::viewWindow):
       
 20777         * COM/WebView.h: Added.
       
 20778         * WebKit.vcproj: Added.
       
 20779         * WebKit.vcproj/Interfaces.vcproj: Added.
       
 20780         * WebKit.vcproj/WebKit.def: Added.
       
 20781         * WebKit.vcproj/WebKit.rc: Added.
       
 20782         * WebKit.vcproj/WebKit.sln: Added.
       
 20783         * WebKit.vcproj/WebKit.vcproj: Added.
       
 20784         * WebKit.vcproj/WebKitGUID.vcproj: Added.
       
 20785         * WebKit.vcproj/autoversion.h: Added.
       
 20786         * WebKit.vcproj/resource.h: Added.
       
 20787 
       
 20788 2006-06-02  Darin Adler  <darin@apple.com>
       
 20789 
       
 20790         * WebCoreSupport/WebImageRendererFactory.m: Fix crash on Safari startup
       
 20791         by include NSObject as a superclass (oops!).
       
 20792 
       
 20793 2006-06-01  Darin Adler  <darin@apple.com>
       
 20794 
       
 20795         Reviewed by Maciej.
       
 20796 
       
 20797         - WebCore doesn't need to load WebKit images any more; removed code for that
       
 20798 
       
 20799         * Resources/missing_image.tiff: Removed.
       
 20800         * WebCoreSupport/WebImageRendererFactory.h: Removed.
       
 20801 
       
 20802         * WebCoreSupport/WebImageRendererFactory.m: Moved @interface in here.
       
 20803         Removed all but the "threaded decoding" calls that older Safari calls.
       
 20804         This file can go altogether when compatibility with that older Safari
       
 20805         is no longer needed.
       
 20806 
       
 20807         * WebKit.xcodeproj/project.pbxproj: Removed WebImageRendererFactory.h
       
 20808         and missing_image.tiff.
       
 20809 
       
 20810         * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Removed call
       
 20811         to [WebImageRendererFactory createSharedFactory].
       
 20812 
       
 20813 2006-06-01  Brady Eidson  <beidson@apple.com>
       
 20814 
       
 20815         Reviewed by Maciej.
       
 20816 
       
 20817         Simple changes to hook up the new WebCore based Icon Database
       
 20818         for testing.
       
 20819 
       
 20820         * ChangeLog:
       
 20821         * Misc/WebIconDatabase.m:
       
 20822         (-[WebIconDatabase _applicationWillTerminate:]):
       
 20823         * Misc/WebIconDatabasePrivate.h:
       
 20824         * WebKit.xcodeproj/project.pbxproj:
       
 20825 
       
 20826 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
       
 20827 
       
 20828         Reviewed by Darin.
       
 20829 
       
 20830         http://bugs.webkit.org/show_bug.cgi?id=6309
       
 20831         multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
       
 20832 
       
 20833         * Misc/WebNSURLExtras.m:
       
 20834         (-[NSString _webkit_URLFragment]):
       
 20835         Don't include the "#" character in the fragment.
       
 20836         
       
 20837         * WebCoreSupport/WebFrameBridge.m:
       
 20838         (-[WebFrameBridge historyURL:]):
       
 20839         New function, returns the history URL for a given position in the back/forward list
       
 20840         
       
 20841         * WebView/WebFrame.m:
       
 20842         (-[WebFrame _loadItem:withLoadType:]):
       
 20843         Always call scrollToAnchorWithURL, even if there is no fragment. This way we keep the WebCore frame's
       
 20844         URL up-to-date.
       
 20845 
       
 20846 2006-06-01  Maciej Stachowiak  <mjs@apple.com>
       
 20847 
       
 20848         Reviewed by Anders.
       
 20849         
       
 20850         - fixed "REGRESSION: Can't order from Pizza Hut (ToT, 05/24/06)"
       
 20851         http://bugs.webkit.org/show_bug.cgi?id=9103
       
 20852 
       
 20853         * WebView/WebDataSource.m:
       
 20854         (-[WebDataSource _willSendRequest:forResource:redirectResponse:]): Set up the
       
 20855         User-Agent header.
       
 20856         * WebView/WebDataSourceInternal.h:
       
 20857         * WebView/WebLoader.m:
       
 20858         (-[NSURLProtocol willSendRequest:redirectResponse:]): Pass a mutable URL request
       
 20859         so the above can work.
       
 20860 
       
 20861 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
       
 20862 
       
 20863         Reviewed by Darin.
       
 20864 
       
 20865         * WebView/WebFrameView.m:
       
 20866         (+[WebFrameView _canShowMIMETypeAsHTML:]):
       
 20867         Use _webkit_objectForMIMEType here so we'll get an object back for "text/".
       
 20868 
       
 20869 2006-05-31  David Hyatt  <hyatt@apple.com>
       
 20870 
       
 20871         Make programmatic focus/blur actually work on sub-frames.  Make the
       
 20872         top-level UI delegate get called for deactivation of windows.
       
 20873 
       
 20874         Reviewed by darin
       
 20875 
       
 20876         * WebCoreSupport/WebFrameBridge.m:
       
 20877         (-[WebFrameBridge activateWindow]):
       
 20878         (-[WebFrameBridge deactivateWindow]):
       
 20879         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 20880         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 20881         * WebKit.xcodeproj/project.pbxproj:
       
 20882 
       
 20883 === WebKit-521.12 ===
       
 20884 
       
 20885 2006-05-26  David Harrison  <harrison@apple.com>
       
 20886 
       
 20887         Reviewed by John Sullivan.
       
 20888 
       
 20889         <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
       
 20890 
       
 20891         * WebView/WebHTMLView.m:
       
 20892         (-[WebHTMLView _increaseSelectionListLevel]):
       
 20893         - Now returns DOMNode*
       
 20894 
       
 20895         (-[WebHTMLView _increaseSelectionListLevelOrdered]):
       
 20896         (-[WebHTMLView _increaseSelectionListLevelUnordered]):
       
 20897         - Added.  These also return DOMNode*
       
 20898 
       
 20899         * WebView/WebHTMLViewPrivate.h:
       
 20900         - Updated as above
       
 20901 
       
 20902 2006-05-25  Tim Omernick  <timo@apple.com>
       
 20903 
       
 20904         Reviewed by Anders.
       
 20905 
       
 20906         <http://bugs.webkit.org/show_bug.cgi?id=8347>
       
 20907         REGRESSION: Flash movie audible but not visible until window is resized
       
 20908 
       
 20909         * Plugins/WebNetscapePluginDocumentView.m:
       
 20910         (-[WebNetscapePluginDocumentView dataSourceUpdated:]):
       
 20911         Layout if needed here.  Maciej recently removed the "LayoutAcceptable" frame state, which used to
       
 20912         cause plugin document views to lay out immediately upon receiving data.  This call to -layout has
       
 20913         the same effect.
       
 20914 
       
 20915 === WebKit-521.11.1 ===
       
 20916 
       
 20917 2006-05-25  Timothy Hatcher  <timothy@apple.com>
       
 20918 
       
 20919         Reviewed by Tim O.
       
 20920 
       
 20921         <rdar://problem/4559808> WebKit fails to compile for ppc64
       
 20922         <rdar://problem/4522085> 64-bit: WebKit uses FSSpec which is not available in 64-bit
       
 20923         Gets WebKit building under 64-bit. Rename WebNSInt and WebNSUInt to WebNSInteger and WebNSUInteger.
       
 20924         Start using WebNSInteger where we need to match AppKit API usage of NSInteger.
       
 20925 
       
 20926         HIWebView and a couple of helper functions are disabled until they can be moved off of QuickDraw.
       
 20927         <rdar://problem/4561772> HIWebView needs to be reworked to not use QuickDraw, needed for 64-bit
       
 20928 
       
 20929         * Carbon/CarbonUtils.m: disabled this file in 64-bit <rdar://problem/4561772>
       
 20930         * Carbon/CarbonWindowAdapter.m:
       
 20931         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
       
 20932         * Carbon/CarbonWindowFrame.m:
       
 20933         (+[CarbonWindowFrame frameRectForContentRect:styleMask:]):
       
 20934         (+[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
       
 20935         (+[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
       
 20936         (-[CarbonWindowFrame frameRectForContentRect:styleMask:]):
       
 20937         (-[CarbonWindowFrame contentRectForFrameRect:styleMask:]):
       
 20938         (-[CarbonWindowFrame minFrameSizeForMinContentSize:styleMask:]):
       
 20939         * Carbon/HIViewAdapter.m: disabled this file in 64-bit <rdar://problem/4561772>
       
 20940         * Carbon/HIWebView.m: disabled this file in 64-bit <rdar://problem/4561772>
       
 20941         (HIWebViewEventHandler):
       
 20942         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
       
 20943         (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveContentLength:fromDataSource:]):
       
 20944         * History/WebBackForwardList.m:
       
 20945         (-[WebBackForwardList removeItem:]):
       
 20946         (-[WebBackForwardList goToItem:]):
       
 20947         * Misc/WebDownload.m:
       
 20948         (-[WebDownloadInternal download:didReceiveDataOfLength:]):
       
 20949         * Misc/WebFileDatabase.m:
       
 20950         (UniqueFilePathForKey):
       
 20951         * Misc/WebIconDatabase.m:
       
 20952         (-[NSMutableDictionary retainIconForURL:]):
       
 20953         (-[NSMutableDictionary releaseIconForURL:]):
       
 20954         (-[WebIconDatabase _totalRetainCountForIconURLString:]):
       
 20955         (-[WebIconDatabase _retainIconForIconURLString:]):
       
 20956         (-[WebIconDatabase _releaseIconForIconURLString:]):
       
 20957         * Misc/WebSearchableTextView.m:
       
 20958         (-[NSString selectionRect]):
       
 20959         * Misc/WebTypesInternal.h: Added.
       
 20960         * Plugins/WebBaseNetscapePluginStream.m:
       
 20961         (-[WebBaseNetscapePluginStream _destroyStream]):
       
 20962         (CarbonPathFromPOSIXPath):
       
 20963         * Plugins/WebBaseNetscapePluginView.m:
       
 20964         (-[WebBaseNetscapePluginView sendActivateEvent:]):
       
 20965         (-[WebBaseNetscapePluginView sendUpdateEvent]):
       
 20966         (TSMEventHandler):
       
 20967         (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
       
 20968         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
 20969         (-[NSData _web_locationAfterFirstBlankLine]):
       
 20970         * Plugins/WebBasePluginPackage.m:
       
 20971         (-[WebBasePluginPackage hash]):
       
 20972         * Plugins/WebNetscapePluginPackage.m:
       
 20973         (-[WebNetscapePluginPackage load]):
       
 20974         (functionPointerForTVector):
       
 20975         * WebInspector/WebInspector.m:
       
 20976         (-[WebInspector _updateSystemColors]):
       
 20977         * WebKit.xcodeproj/project.pbxproj:
       
 20978         * WebView/WebDataSource.m:
       
 20979         (-[WebDataSource _didReceiveData:contentLength:forResource:]):
       
 20980         * WebView/WebFrame.m:
       
 20981         (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 20982         * WebView/WebHTMLView.m:
       
 20983         (-[WebHTMLView drawRect:]):
       
 20984         (-[WebHTMLView characterIndexForPoint:]):
       
 20985         (-[WebHTMLView conversationIdentifier]):
       
 20986         * WebView/WebResourceLoadDelegate.h:
       
 20987         * WebView/WebUIDelegate.h:
       
 20988         * WebView/WebView.h:
       
 20989         * WebView/WebView.m:
       
 20990         (-[WebView _mouseDidMoveOverElement:modifierFlags:]):
       
 20991         (-[WebView spellCheckerDocumentTag]):
       
 20992         * WebView/WebViewInternal.h:
       
 20993         * WebView/WebViewPrivate.h:
       
 20994 
       
 20995 === WebKit-521.11 ===
       
 20996 
       
 20997 2006-05-23  Maciej Stachowiak  <mjs@apple.com>
       
 20998 
       
 20999         Reviewed by Tim.
       
 21000         
       
 21001         - more loader refactoring to simplify things and remove knowledge of WebView from WebSubresourceLoader
       
 21002 
       
 21003         * WebCoreSupport/WebSubresourceLoader.m:
       
 21004         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
       
 21005         (-[WebSubresourceLoader didReceiveResponse:]):
       
 21006         * WebView/WebDataSource.m:
       
 21007         (-[WebDataSource _loadIcon]):
       
 21008         (-[WebDataSource _startLoading]):
       
 21009         * WebView/WebFrame.m:
       
 21010         (-[WebFrame _loadRequest:archive:]):
       
 21011         (-[WebFrame _loadItem:withLoadType:]):
       
 21012         (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
       
 21013         (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 21014         (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
       
 21015         * WebView/WebFrameInternal.h:
       
 21016         * WebView/WebFramePrivate.h:
       
 21017         * WebView/WebLoader.h:
       
 21018         * WebView/WebLoader.m:
       
 21019         * WebView/WebMainResourceLoader.m:
       
 21020         (-[WebMainResourceLoader initWithDataSource:]):
       
 21021         (-[WebMainResourceLoader didReceiveResponse:]):
       
 21022 
       
 21023 2006-05-23  Tim Omernick  <timo@apple.com>
       
 21024 
       
 21025         Reviewed by John Sullivan.
       
 21026 
       
 21027         <rdar://problem/4558301> REGRESSION (420+): After clearing history and closing bookmark view window,
       
 21028         attempting to select Safari's menu bar results in a crash
       
 21029 
       
 21030         * Misc/WebNSWindowExtras.m:
       
 21031         (replacementPostWindowNeedsDisplay):
       
 21032         My fix yesterday for 4557117 was not quite good enough.  Now that we cancel the display timer for a
       
 21033         window *before* it deallocates, we need to make sure that while a window deallocates, no new display
       
 21034         timers are scheduled for that window.  This is actually possible, as 4558301 demonstrates.
       
 21035         Luckily, NSWindow sets a handy "windowDying" flag when it deallocates, so we can just check that flag
       
 21036         and bail out of the throttle hack if it is set.  This should fix the last of the crashes involving
       
 21037         display timers scheduled for deallocated or deallocating windows.
       
 21038 
       
 21039 2006-05-23  Maciej Stachowiak  <mjs@apple.com>
       
 21040 
       
 21041         Reviewed by Eric.
       
 21042         
       
 21043         - remove knowledge of WebView from WebLoader in preparation for moving the code down
       
 21044 
       
 21045         * WebView/WebDataSource.m:
       
 21046         (-[WebDataSource _defersCallbacks]):
       
 21047         (-[WebDataSource _identifierForInitialRequest:]):
       
 21048         (-[WebDataSource _willSendRequest:forResource:redirectResponse:]):
       
 21049         (-[WebDataSource _didReceiveAuthenticationChallenge:forResource:]):
       
 21050         (-[WebDataSource _didCancelAuthenticationChallenge:forResource:]):
       
 21051         (-[WebDataSource _didReceiveResponse:forResource:]):
       
 21052         (-[WebDataSource _didReceiveData:contentLength:forResource:]):
       
 21053         (-[WebDataSource _didFinishLoadingForResource:]):
       
 21054         (-[WebDataSource _didFailLoadingWithError:forResource:]):
       
 21055         (-[WebDataSource _downloadWithLoadingConnection:request:response:proxy:]):
       
 21056         (-[WebDataSource _privateBrowsingEnabled]):
       
 21057         * WebView/WebDataSourceInternal.h:
       
 21058         * WebView/WebLoader.h:
       
 21059         * WebView/WebLoader.m:
       
 21060         (-[WebLoader releaseResources]):
       
 21061         (-[WebLoader setDataSource:]):
       
 21062         (-[WebLoader willSendRequest:redirectResponse:]):
       
 21063         (-[WebLoader didReceiveAuthenticationChallenge:]):
       
 21064         (-[WebLoader didCancelAuthenticationChallenge:]):
       
 21065         (-[WebLoader didReceiveResponse:]):
       
 21066         (-[WebLoader didReceiveData:lengthReceived:]):
       
 21067         (-[WebLoader signalFinish]):
       
 21068         (-[WebLoader didFinishLoading]):
       
 21069         (-[WebLoader didFailWithError:]):
       
 21070         (-[WebLoader willCacheResponse:]):
       
 21071         (-[WebLoader cancelWithError:]):
       
 21072         * WebView/WebMainResourceLoader.m:
       
 21073         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 21074         * WebView/WebView.m:
       
 21075         (-[WebView _incrementProgressForIdentifier:response:]):
       
 21076         (-[WebView _incrementProgressForIdentifier:data:]):
       
 21077         (-[WebView _completeProgressForIdentifier:]):
       
 21078         * WebView/WebViewInternal.h:
       
 21079 
       
 21080 === WebKit-521.10 ===
       
 21081 
       
 21082 2006-05-22  Tim Omernick  <timo@apple.com>
       
 21083 
       
 21084         Reviewed by Geoff.
       
 21085 
       
 21086         <rdar://problem/4557117> TOT REGRESSION: Repro crash in cancelPendingWindowDisplay --> _timerRelease when
       
 21087         opening file from file open dialog
       
 21088 
       
 21089         Note that I could not reproduce this situation at all on any of my machines; I had to debug this on Geoff's
       
 21090         machine.
       
 21091 
       
 21092         * Misc/WebNSWindowExtras.m:
       
 21093         (replacementDealloc):
       
 21094         Cancel display timer before dealloc, not after.  Cancelling the timer can cause a message to be sent to the
       
 21095         window; best to do that before the window deallocates.
       
 21096         (replacementFinalize):
       
 21097         ditto
       
 21098 
       
 21099 2006-05-20  Maciej Stachowiak  <mjs@apple.com>
       
 21100 
       
 21101         Reviewed by Beth.
       
 21102         
       
 21103         - fix assertion failure on layout tests
       
 21104 
       
 21105         * WebView/WebDataSource.m:
       
 21106         (-[WebDataSource _mainReceivedError:complete:]): Don't do anything
       
 21107         if this data source is no longer connected to a frame. Used to be
       
 21108         this couldn't happen because the WebView would have been nil, but
       
 21109         we no longer go through the WebView.
       
 21110 
       
 21111 2006-05-20  Timothy Hatcher  <timothy@apple.com>
       
 21112 
       
 21113         Reviewed by Anders.
       
 21114 
       
 21115         Bug 9018: REGRESSION: resizing the top area of the inspector does not grow as expected
       
 21116         http://bugs.webkit.org/show_bug.cgi?id=9018
       
 21117         
       
 21118         Use clientHeight now that offsetHeight includes the border and padding.
       
 21119         clientHeight should have been used initially.
       
 21120 
       
 21121         * WebInspector/WebInspector.m:
       
 21122         (-[WebInspector resizeTopArea]):
       
 21123 
       
 21124 2006-05-18  Maciej Stachowiak  <mjs@apple.com>
       
 21125 
       
 21126         Reviewed by Eric.
       
 21127         
       
 21128         - remove loading-related code from WebView
       
 21129         http://bugs.webkit.org/show_bug.cgi?id=8981
       
 21130 
       
 21131         * Plugins/WebNetscapePluginStream.m:
       
 21132         (-[WebNetscapePlugInStreamLoader didFinishLoading]):
       
 21133         (-[WebNetscapePlugInStreamLoader didFailWithError:]):
       
 21134         * WebCoreSupport/WebSubresourceLoader.m:
       
 21135         (-[WebSubresourceLoader receivedError:]):
       
 21136         (-[WebSubresourceLoader signalFinish]):
       
 21137         * WebView/WebDataSource.m:
       
 21138         (-[WebDataSource _stopLoading]):
       
 21139         (-[WebDataSource _receivedMainResourceError:complete:]):
       
 21140         (-[WebDataSource _finishedLoadingResource]):
       
 21141         (-[WebDataSource _mainReceivedBytesSoFar:complete:]):
       
 21142         (-[WebDataSource _receivedError:]):
       
 21143         (-[WebDataSource _mainReceivedError:complete:]):
       
 21144         * WebView/WebDataSourceInternal.h:
       
 21145         * WebView/WebFrame.m:
       
 21146         (-[WebFrame _sendRemainingDelegateMessagesWithIdentifier:response:length:error:]):
       
 21147         * WebView/WebMainResourceLoader.m:
       
 21148         (-[WebMainResourceLoader didReceiveData:lengthReceived:]):
       
 21149         (-[WebMainResourceLoader didFinishLoading]):
       
 21150         * WebView/WebView.m:
       
 21151         * WebView/WebViewInternal.h:
       
 21152 
       
 21153 2006-05-18  Tim Omernick  <timo@apple.com>
       
 21154 
       
 21155         Reviewed by John Sullivan.
       
 21156 
       
 21157         <rdar://problem/4551938> More options needed for window display throttle
       
 21158 
       
 21159         We decided to play it safe and leave our window flushing behavior unchanged from the previous
       
 21160         public release.  By default, CoreGraphics deferred updates are once again OFF, and the window
       
 21161         display throttle is OFF.
       
 21162 
       
 21163         Individual applications should set the WebKitThrottleWindowDisplayPreferenceKey and 
       
 21164         WebKitEnableDeferredUpdatesPreferenceKey defaults to suit their needs.
       
 21165 
       
 21166         Old behavior (like 10.4.6): WebKitThrottleWindowDisplayPreferenceKey=0 (or unset), 
       
 21167         WebKitEnableDeferredUpdatesPreferenceKey (or unset).
       
 21168 
       
 21169         Tear-free scrolling/animations: WebKitThrottleWindowDisplayPreferenceKey=0 (or unset),
       
 21170         WebKitEnableDeferredUpdatesPreferenceKey=1.  While this configuration fixes the tearing issues
       
 21171         caused by over-flushing, some applications will experience performance problems as over-flushing
       
 21172         with CG deferred updates enabled will cause the app to block.
       
 21173 
       
 21174         Tear-free scrolling/animations, high performance: WebKitThrottleWindowDisplayPreferenceKey=1, 
       
 21175         WebKitEnableDeferredUpdatesPreferenceKey=1.  This is the riskiest configuration in that it
       
 21176         enables the window display throttle "feature", potentially breaking applications' assumptions
       
 21177         about when displays occur.  However, it provides the "best of both worlds", in that updates
       
 21178         are tear-free, and performance impact should me minimal.
       
 21179 
       
 21180         * WebView/WebPreferenceKeysPrivate.h:
       
 21181         Declared WebKitThrottleWindowDisplayPreferenceKey and WebKitEnableDeferredUpdatesPreferenceKey.
       
 21182 
       
 21183         * WebView/WebFrameView.m:
       
 21184         (-[WebFrameView initWithFrame:]):
       
 21185         Turn off CG deferred updates if WebKitEnableDeferredUpdatesPreferenceKey is NO or has no value.
       
 21186         Added some comments.
       
 21187 
       
 21188 2006-05-18  John Sullivan  <sullivan@apple.com>
       
 21189 
       
 21190         Reviewed by Darin Adler.
       
 21191         
       
 21192         - fixed <rdar://problem/4552713> REGRESSION: WebFrameView no longer responds to responder methods sent by Safari code
       
 21193 
       
 21194         * WebView/WebView.m:
       
 21195         (-[WebView _responderForResponderOperations]):
       
 21196         Treat sibling views of the main frameView the same as views outside of the webview for the purposes of this mechanism.
       
 21197 
       
 21198 2006-05-18  Tim Omernick  <timo@apple.com>
       
 21199 
       
 21200         Reviewed by John Sullivan.
       
 21201 
       
 21202         <rdar://problem/4553450> Make disabling window throttle safer
       
 21203 
       
 21204         * Misc/WebNSWindowExtras.m:
       
 21205         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
       
 21206         Don't assume that +_webkit_disableWindowDisplayThrottle restored the NSWindow method implementations; 
       
 21207         now we'll only swizzle them once, and our replacement IMPs will call the old IMPs when the window
       
 21208         throttle is disabled.  This is a safer approach when other components/"haxies" override the same methods
       
 21209         that we are overriding, as it allows the overrides to "chain" properly.
       
 21210         Moved the dictionary initialization code down a bit.  The order doesn't matter here.
       
 21211         (disableWindowDisplayThrottleApplierFunction):
       
 21212         Noticed that this could have been written safer with respect to the timer having the last reference to
       
 21213         the window.  I never experienced a crash here, but this code is definitely safer.
       
 21214         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
       
 21215         Don't restore NSWindow method implementations; just clear the flag, flush pending displays, and destroy
       
 21216         the dictionary.
       
 21217         (replacementPostWindowNeedsDisplay):
       
 21218         If throttling is disabled, just call the original IMP.
       
 21219         (clearWindowDisplayInfo):
       
 21220         Added an assert.
       
 21221         (replacementDealloc):
       
 21222         Don't call clearWindowDisplayInfo() when throttling is disabled.
       
 21223         (replacementFinalize):
       
 21224         ditto
       
 21225         (cancelPendingWindowDisplay):
       
 21226         Removed an unnecessary assertion.
       
 21227 
       
 21228 2006-05-17  Tim Omernick  <timo@apple.com>
       
 21229 
       
 21230         Reviewed by Kevin Decker and John Sullivan.
       
 21231 
       
 21232         <rdar://problem/4550801> REGRESSION: Window throttle code can sometimes leak NSWindows
       
 21233 
       
 21234         The window display throttle depended on windows being closed before they were deallocated; this is
       
 21235         not guaranteed by AppKit.  Windows that were being released without being closed were getting stuck
       
 21236         in our NSWindow -> WindowDisplayInfo dictionary.
       
 21237         
       
 21238         * Misc/WebNSWindowExtras.m:
       
 21239         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
       
 21240         Don't retain the NSWindow keys in the window display info dictionary.
       
 21241         Instead of overriding -close, override -dealloc and -finalize so that we can remove the NSWindow ->
       
 21242         WindowDisplayInfo mapping when a window deallocates.
       
 21243         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
       
 21244         Restore -dealloc and -finalize.
       
 21245         (clearWindowDisplayInfo):
       
 21246         Factored the WindowDisplayInfo cleanup code out of the now-defunct replacementClose().
       
 21247         (replacementClose):
       
 21248         Removed; no longer needed.
       
 21249         (replacementDealloc):
       
 21250         Clear the WindowDisplayInfo for the window after deallocation.
       
 21251         (replacementFinalize):
       
 21252         ditto
       
 21253         (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
       
 21254         Rewrote this method to be safe in the case where the firing display timer has the last reference to the
       
 21255         window.
       
 21256         Added comments.
       
 21257         
       
 21258 2006-05-17  bradeeoh  <beidson@apple.com>
       
 21259 
       
 21260         Reviewed by Tim Hatcher
       
 21261 
       
 21262         Consolidated WebDatabase base class into WebFileDatabase as the inheritance relationship became 
       
 21263         obsolete.  This improves readability and sets the stage for a further in-depth rewrite of the 
       
 21264         WebIcon* code.
       
 21265 
       
 21266         * Misc/WebDatabase.h: Removed.
       
 21267         * Misc/WebDatabase.m: Removed.
       
 21268         * Misc/WebFileDatabase.h:
       
 21269         * Misc/WebFileDatabase.m:
       
 21270         (-[WebFileDatabaseOp dealloc]): 
       
 21271         (-[WebFileDatabase dealloc]):  
       
 21272         (-[WebFileDatabase path]):
       
 21273         (-[WebFileDatabase isOpen]):
       
 21274         (-[WebFileDatabase sizeLimit]):
       
 21275         * WebKit.xcodeproj/project.pbxproj:
       
 21276 
       
 21277 2006-05-17  Adele Peterson  <adele@apple.com>
       
 21278 
       
 21279         Reviewed by Hyatt.
       
 21280 
       
 21281         WebKit part of initial checkin to prepare for http://bugs.webkit.org/show_bug.cgi?id=8948
       
 21282         Switch to use new text field implementation for <textarea>
       
 21283 
       
 21284         * WebView/WebHTMLView.m:
       
 21285         (-[WebHTMLView insertNewline:]): If we're in plain text mode, insert a line break instead of a paragraph separator.
       
 21286         (-[WebHTMLView insertParagraphSeparator:]): ditto.
       
 21287         * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
       
 21288         Checks for textareas as well as textfields before allowing the delegate to control
       
 21289         the context menu.  This won't affect the old textareas because AppKit handles those context menus.
       
 21290 
       
 21291 2006-05-17  John Sullivan  <sullivan@apple.com>
       
 21292 
       
 21293         Reviewed by Maciej.
       
 21294 
       
 21295         First step towards making text-matching mechanism more flexible; updated for changes
       
 21296         to WebCoreFrameBridge calls.
       
 21297 
       
 21298         * WebView/WebHTMLView.m:
       
 21299         (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
       
 21300         updated for name change in WebCoreFrameBridge, also now calls setMarkedTextMatchesAreHighlighted:
       
 21301         (-[WebHTMLView clearHighlightedMatches]):
       
 21302         updated for name change in WebCoreFrameBridge
       
 21303 
       
 21304 2006-05-16  Matt Gough  <matt@softchaos.com>
       
 21305 
       
 21306         Reviewed by Geoff.
       
 21307         
       
 21308         Ensured all the public headers have a newline at their end.
       
 21309 
       
 21310         Client code can now have 'Missing Newline at end of File' warnings enabled without emitting
       
 21311         such warnings against any WebKit includes.
       
 21312 
       
 21313         * Misc/WebDownload.h:
       
 21314         * Plugins/npfunctions.h:
       
 21315         * WebView/WebResourceLoadDelegate.h:
       
 21316         * WebView/WebUIDelegate.h:
       
 21317         * WebView/WebView.h:
       
 21318 
       
 21319 2006-05-16  Tim Omernick  <timo@apple.com>
       
 21320 
       
 21321         Reviewed by Tim Hatcher.
       
 21322 
       
 21323         http://bugs.webkit.org/show_bug.cgi?id=8945 (REGRESSION: Scrolling is very slow when dragging
       
 21324         the thumb)
       
 21325 
       
 21326         Rolled out one of my tweaks to the window display throttle hack (remember the last flush time instead
       
 21327         of the last display time).  While that was technically a better approach, we discovered a problem
       
 21328         with how it interacts with NSView scroll tracking.  Rather than further complicate this already
       
 21329         crazy hack, I'm reverting back to the simple version.  This should yield similar numbers on iBench,
       
 21330         but not exhibit the nasty scrolling problem.
       
 21331         
       
 21332         * Misc/WebNSWindowExtras.m:
       
 21333         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
       
 21334         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
       
 21335         (getWindowDisplayInfo):
       
 21336         (requestWindowDisplay):
       
 21337 
       
 21338 2006-05-16  bradeeoh  <beidson@apple.com>
       
 21339 
       
 21340         Reviewed by Maciej Stachowiak
       
 21341 
       
 21342         - Fixed an old deprecated method in Misc/WebFileDatabase.m
       
 21343 
       
 21344         * Misc/WebFileDatabase.m:
       
 21345         (UniqueFilePathForKey):  changed `lossyCString` to `UTF8String`
       
 21346 
       
 21347 2006-05-16  Darin Adler  <darin@apple.com>
       
 21348 
       
 21349         Reviewed by Anders.
       
 21350 
       
 21351         - did the name change from "ImageElement" to "ImageForElement" that I said I would
       
 21352           (oops!)
       
 21353 
       
 21354         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 21355         (-[WebDefaultUIDelegate copyImageToClipboard:]):
       
 21356         * Misc/WebNSPasteboardExtras.h:
       
 21357         * Misc/WebNSPasteboardExtras.m:
       
 21358         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
       
 21359         * Misc/WebNSViewExtras.h:
       
 21360         * Misc/WebNSViewExtras.m:
       
 21361         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
       
 21362         * WebView/WebHTMLView.m:
       
 21363         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 21364         * WebView/WebView.m:
       
 21365         (-[WebView _writeImageForElement:withPasteboardTypes:toPasteboard:]):
       
 21366         (-[WebView writeElement:withPasteboardTypes:toPasteboard:]):
       
 21367         * WebView/WebViewInternal.h:
       
 21368 
       
 21369 2006-05-16  Darin Adler  <darin@apple.com>
       
 21370 
       
 21371         Reviewed by Anders.
       
 21372 
       
 21373         - http://bugs.webkit.org/show_bug.cgi?id=8940
       
 21374           remove extra copy of image code
       
 21375 
       
 21376         * English.lproj/StringsNotToBeLocalized.txt: Updated for many recent changes.
       
 21377 
       
 21378         * WebKit.xcodeproj/project.pbxproj: Removed files.
       
 21379         * WebCoreSupport/WebImageData.h: Removed.
       
 21380         * WebCoreSupport/WebImageData.m: Removed.
       
 21381         * WebCoreSupport/WebImageDecodeItem.h: Removed.
       
 21382         * WebCoreSupport/WebImageDecodeItem.m: Removed.
       
 21383         * WebCoreSupport/WebImageDecoder.h: Removed.
       
 21384         * WebCoreSupport/WebImageDecoder.m: Removed.
       
 21385         * WebCoreSupport/WebImageRenderer.h: Removed.
       
 21386         * WebCoreSupport/WebImageRenderer.m: Removed.
       
 21387 
       
 21388         * WebCoreSupport/WebImageRendererFactory.h:
       
 21389         * WebCoreSupport/WebImageRendererFactory.m: Removed everything except for
       
 21390         shouldUseThreadedDecoding, setShouldUseThreadedDecoding, and imageDataForName:.
       
 21391 
       
 21392         * Misc/WebNSPasteboardExtras.h: Removed WebImageRenderer parameter from
       
 21393         _web_declareAndWriteDragImage and renamed _web_declareAndWriteDragImageElement.
       
 21394         * Misc/WebNSPasteboardExtras.m:
       
 21395         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Changed to
       
 21396         call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
       
 21397         -[WebImageRendererFactory supportedMIMETypes].
       
 21398         (-[NSPasteboard _web_declareAndWriteDragImageElement:URL:title:archive:source:]):
       
 21399         Removed WebImageRenderer parameter, and updated code since it was always nil.
       
 21400 
       
 21401         * Misc/WebNSViewExtras.h: Removed WebImageRenderer parameter from
       
 21402         _web_dragImage and renamed _web_dragImageElement.
       
 21403         * Misc/WebNSViewExtras.m:
       
 21404         (-[NSView _web_dragImageElement:rect:event:pasteboard:source:offset:]):
       
 21405         Removed WebImageRenderer parameter, and updated code since it was always nil.
       
 21406 
       
 21407         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Added some new
       
 21408         functions now used by WebCore.
       
 21409 
       
 21410         * WebView/WebDataSource.m: (-[WebDataSource _documentFragmentWithArchive:]):
       
 21411         Call +[WebFrameBridge supportedImageResourceMIMETypes] instead of
       
 21412         -[WebImageRendererFactory supportedMIMETypes].
       
 21413 
       
 21414         * WebView/WebFrameView.m: Removed include of WebImageRenderer.h.
       
 21415 
       
 21416         * WebView/WebHTMLRepresentation.m: (+[WebHTMLRepresentation supportedImageMIMETypes]):
       
 21417         Removed call to +[WebImageRendererFactory createSharedFactory].
       
 21418 
       
 21419         * WebView/WebHTMLView.m:
       
 21420         (-[WebHTMLView _imageExistsAtPaths:]): Call +[WebFrameBridge supportedImageResourceMIMETypes]
       
 21421         instead of -[WebImageRendererFactory supportedMIMETypes].
       
 21422         (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
       
 21423         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Update
       
 21424         to no longer pass nil for an image to _web_declareAndWriteDragImageElement and to
       
 21425         _web_dragImageElement.
       
 21426         (-[WebHTMLView dealloc]): Remove call to now-unneeded _reset.
       
 21427         (-[WebHTMLView finalize]): Ditto.
       
 21428         (-[WebHTMLView viewDidMoveToWindow]): Remove logic for calling _reset, including the inWindow
       
 21429         boolean field.
       
 21430 
       
 21431         * WebView/WebHTMLViewInternal.h: Removed inWindow boolean.
       
 21432         * WebView/WebHTMLViewPrivate.h: Removed _reset method.
       
 21433 
       
 21434 2006-05-16  Darin Adler  <darin@apple.com>
       
 21435 
       
 21436         Reviewed by Hyatt.
       
 21437 
       
 21438         - fix http://bugs.webkit.org/show_bug.cgi?id=8898
       
 21439           REGRESSION: Attempting to right-click image in own tab on website causes crash
       
 21440         - fix http://bugs.webkit.org/show_bug.cgi?id=8919
       
 21441           REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
       
 21442 
       
 21443         These fixes may become obsolete when Anders lands his standalone image viewer
       
 21444         patch, but in my tree they are needed to make Copy Image work after the fix
       
 21445         over on the WebCore side to avoid the crashes.
       
 21446 
       
 21447         * Misc/WebNSPasteboardExtras.h: Change _web_writeImage parameter to an NSImage.
       
 21448         * Misc/WebNSPasteboardExtras.m:
       
 21449         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]): Change parameter
       
 21450         to an NSImage instead of a WebImageRenderer.
       
 21451         (-[NSPasteboard _web_declareAndWriteDragImage:element:URL:title:archive:source:]):
       
 21452         Call -[WebImageRenderer image] to get an NSImage to pass to _web_writeImage.
       
 21453 
       
 21454         * WebView/WebView.m: (-[WebView _writeImageElement:withPasteboardTypes:toPasteboard:]):
       
 21455         Get the image using WebElementImageKey if WebElementDOMNodeKey is nil.
       
 21456 
       
 21457 2006-05-16  Anders Carlsson  <acarlsson@apple.com>
       
 21458 
       
 21459         Reviewed by Maciej.
       
 21460 
       
 21461         http://bugs.webkit.org/show_bug.cgi?id=8921
       
 21462         Use WebCore to render full-frame images
       
 21463         
       
 21464         * WebCoreSupport/WebFrameBridge.m:
       
 21465         (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
       
 21466         Remove WebImageView handling.
       
 21467         
       
 21468         (-[WebFrameBridge mainResourceURLResponse]):
       
 21469         New function which returns the URL response for the main resource. This is used by the
       
 21470         manual loading of images.
       
 21471         
       
 21472         (-[WebFrameBridge imageTitleForFilename:size:]):
       
 21473         New function which returns a correctly translated image title given a filename and a size.
       
 21474         
       
 21475         * WebCoreSupport/WebImageRenderer.m:
       
 21476         (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
       
 21477         Remove WebImageView handling.
       
 21478         
       
 21479         * WebKit.xcodeproj/project.pbxproj:
       
 21480         Remove WebImageRepresentation and WebImageView.
       
 21481         
       
 21482         * WebView/WebArchiver.h:
       
 21483         * WebView/WebArchiver.m:
       
 21484         (+[WebArchiver archiveMainResourceForFrame:]):
       
 21485         New functions which returns a WebArchive with just the main resource, ignoring any subresources.
       
 21486         
       
 21487         * WebView/WebDataSource.m:
       
 21488         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
       
 21489         Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
       
 21490         
       
 21491         * WebView/WebFrameView.m:
       
 21492         (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
       
 21493         Use MIME types from WebHTMLRepresentation instead of WebImageRepresentation.
       
 21494         
       
 21495         (+[WebHTMLRepresentation supportedMIMETypes]):
       
 21496         Create an array of image and non-image MIME Types.
       
 21497         
       
 21498         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
       
 21499         (+[WebHTMLRepresentation supportedImageMIMETypes]):
       
 21500         New functions, separating the list of MIME types into image and non-image ones.
       
 21501         
       
 21502         * WebView/WebHTMLView.m:
       
 21503         (+[WebHTMLView supportedImageMIMETypes]):
       
 21504         (+[WebHTMLView supportedNonImageMIMETypes]):
       
 21505         New functions which call down to WebHTMLRepresentation.
       
 21506         
       
 21507         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 21508         If the image element comes from an ImageDocument, just use an archive of the main resource
       
 21509         instead of the generated HTML document.
       
 21510         
       
 21511         * WebView/WebHTMLViewPrivate.h:
       
 21512         Declare new functions.
       
 21513         
       
 21514         * WebView/WebImageRepresentation.h: Removed.
       
 21515         * WebView/WebImageRepresentation.m: Removed.
       
 21516         * WebView/WebImageView.h: Removed.
       
 21517         * WebView/WebImageView.m: Removed.
       
 21518         
       
 21519 2006-05-15  Tim Omernick  <timo@apple.com>
       
 21520 
       
 21521         Reviewed by John Sullivan.
       
 21522 
       
 21523         Part of <rdar://problem/4466508> Add 64-bit support to the Netscape Plugin API
       
 21524 
       
 21525         Added to the Netscape Plugin API the concept of "plugin drawing models".  The drawing model
       
 21526         determines the kind of graphics context created by the browser for the plugin, as well as 
       
 21527         the Mac types of various Netscape Plugin API data structures.
       
 21528 
       
 21529         There is a drawing model to represent the old QuickDraw-based API.  It is used by default
       
 21530         if QuickDraw is available on the system, unless the plugin specifies another drawing model.
       
 21531 
       
 21532         The big change is the addition of the CoreGraphics drawing model.  A plugin may request this
       
 21533         drawing model to obtain access to a CGContextRef for drawing, instead of a QuickDraw CGrafPtr.
       
 21534 
       
 21535         * Plugins/WebBaseNetscapePluginView.h:
       
 21536         Added PluginPort union, which wraps a NP_Port and a NP_CGContext.  This is to make access to
       
 21537         the nPort and lastSetPort ivars more convenient now that the port type differs based on the 
       
 21538         drawing model.
       
 21539         Changed types of nPort and lastSetPort to PluginPort so they can be used with any drawing model.
       
 21540         Added drawingModel ivar.
       
 21541         * Plugins/WebBaseNetscapePluginView.m:
       
 21542         Renamed PortState to PortState_QD.  PortState is now an opaque pointer.  PortState_QD cannot be
       
 21543         used if QuickDraw is unavailable.
       
 21544         (-[WebBaseNetscapePluginView fixWindowPort]):
       
 21545         Cannot be used if QuickDraw is unavailable.
       
 21546         (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
       
 21547         Only fix window port if drawing model is QuickDraw.
       
 21548         Re-ordered some code so I could group QuickDraw-specific stuff into switch and if blocks (that's
       
 21549         why the diff here is so terrible).
       
 21550         Now returns a malloc()'ed PortState that the caller is responsible for freeing.  Renamed to
       
 21551         better reflect this behavior.
       
 21552         Support for the CoreGraphics drawing model -- fill PortState_CG struct, save CGContext state.
       
 21553         (-[WebBaseNetscapePluginView restorePortState:]):
       
 21554         Switch based on drawing model.
       
 21555         Support for the CoreGraphics drawing model -- restore CGContext state saved earlier.
       
 21556         (-[WebBaseNetscapePluginView sendEvent:]):
       
 21557         Formatting.
       
 21558         Don't set save/set port state or set the window in CoreGraphics mode unless the event being
       
 21559         sent is an updateEvt.  We can't provide the plugin with a CGContext outside of our view display
       
 21560         cycle.
       
 21561         Don't restore PortState if it's NULL (didn't used to be a pointer).  Free when we're done with it.
       
 21562         (-[WebBaseNetscapePluginView isNewWindowEqualToOldWindow]):
       
 21563         Formatting.
       
 21564         Switch how we compare ports based on the drawing model.
       
 21565         (-[WebBaseNetscapePluginView updateAndSetWindow]):
       
 21566         Fixed for CoreGraphics by triggering a redisplay instead of sending an update event to the plugin
       
 21567         outside of the view display cycle.
       
 21568         Don't restore PortState if it's NULL (didn't used to be a pointer).  Free when we're done with it.
       
 21569         (-[WebBaseNetscapePluginView setWindowIfNecessary]):
       
 21570         Assert that the window is only set when updating in CoreGraphics mode.
       
 21571         Log differently depending on the drawing model.
       
 21572         (-[WebBaseNetscapePluginView start]):
       
 21573         Fall back on QuickDraw if the plugin does not specify a drawing model.
       
 21574         (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
       
 21575         Cannot be used if QuickDraw is unavailable.
       
 21576         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
       
 21577         Only call -tellQuickTimeToChill in QuickDraw mode.
       
 21578         (-[WebBaseNetscapePluginView viewHasMoved:]):
       
 21579         ditto
       
 21580         (-[WebBaseNetscapePluginView invalidateRegion:]):
       
 21581         NPRegion is a CGPathRef in CoreGraphics mode.
       
 21582         (-[WebBaseNetscapePluginView getVariable:value:]):
       
 21583         Added support for retriveing the NPNVpluginDrawingModel, NPNVsupportsQuickDrawBool, and
       
 21584         NPNVsupportsCoreGraphicsBool browser variables.
       
 21585         (-[WebBaseNetscapePluginView setVariable:value:]):
       
 21586         Added support for setting the NPNVpluginDrawingModel variable.
       
 21587 
       
 21588 2006-05-15  Tim Omernick  <timo@apple.com>
       
 21589 
       
 21590         Reviewed by Kevin Decker.
       
 21591 
       
 21592         Follow-up to my previous PLT fix.  I found upon further testing (by dramatically decreasing the
       
 21593         allowed display rate) that +_webkit_displayThrottledWindows did not always force a display when
       
 21594         necessary.  The reason is that I was not giving a proper timeout to CFRunLoopRunInMode().  I was
       
 21595         passing 0, which was causing only "expired" timers to fire.  This method is actually supposed to
       
 21596         block until all currently scheduled display timers fire.
       
 21597 
       
 21598         I tested this change and found that it did not affect my PLT times when the display rate was
       
 21599         capped to 60 fps.  It also behaves as expected when the display rate is set much lower (say, 1
       
 21600         display per second); my previous fix did not work well at such display rates.
       
 21601 
       
 21602         * Misc/WebNSWindowExtras.m:
       
 21603         (+[NSWindow _webkit_displayThrottledWindows]):
       
 21604         Run the runloop for an amount of time equal to the minimum allowed interval between displays.
       
 21605         This ensures that we'll block until all currently scheduled display timers fire (but we won't
       
 21606         block for future display timers).
       
 21607 
       
 21608 2006-05-15  John Sullivan  <sullivan@apple.com>
       
 21609 
       
 21610         Reviewed by Tim Omernick.
       
 21611         
       
 21612         - followup to previous fix; I hadn't tested quitting adequately
       
 21613 
       
 21614         * WebView/WebHTMLView.m:
       
 21615         (-[WebHTMLView dealloc]):
       
 21616         call removeAllToolTips before clearing _private so that removeTrackingRect: override can work 
       
 21617         properly. Normally removeAllToolTips would be called by super, but that's too late.
       
 21618         (-[WebHTMLView finalize]):
       
 21619         ditto
       
 21620 
       
 21621 2006-05-15  John Sullivan  <sullivan@apple.com>
       
 21622 
       
 21623         Reviewed by Darin.
       
 21624         
       
 21625         - fixed <rdar://problem/4503016> TOT assertion failure in -[WebHTMLView(WebPrivate) removeTrackingRect:]
       
 21626         
       
 21627         We have some tricky code to deal with tracking rects, which succumbed to a fix in AppKit. Updated our
       
 21628         tricky code to work with the AppKit fix.
       
 21629 
       
 21630         * WebView/WebHTMLViewInternal.h:
       
 21631         new instance variable lastToolTipTag
       
 21632         
       
 21633         * WebView/WebHTMLView.m:
       
 21634         (-[WebHTMLView removeTrackingRect:]):
       
 21635         handle removing lastToolTipTag by calling super
       
 21636         (-[WebHTMLView _setToolTip:]):
       
 21637         save tool tip tag in lastToolTipTag; this apparently used to always return 0, so we formerly had no way
       
 21638         to distinguish it from the no-tool-tips-yet case.
       
 21639 
       
 21640         * WebKit.xcodeproj/project.pbxproj:
       
 21641         Xcode removed some old cruft
       
 21642 
       
 21643 2006-05-15  Tim Omernick  <timo@apple.com>
       
 21644 
       
 21645         Reviewed by Darin.
       
 21646 
       
 21647         Safari's Page Load Test (PLT) saturates the runloop with so many sources that timers are not allowed to fire 
       
 21648         as frequently as they should.  This is a general problem with the PLT -- because of this, it does not measure
       
 21649         work done in timer callbacks during/after the page load process.
       
 21650 
       
 21651         Unfortunately, this aspect of the PLT interferes with our window display throttle hack.  Because we throttle
       
 21652         display using timers, and the PLT starves timers, most of the pages loaded by the PLT do not actually display.
       
 21653         This makes the PLT run "too fast", yielding ridiculously fast numbers compared to when throttling is disabled.
       
 21654 
       
 21655         I've added a new method that the PLT can call after each page load to force any starved display throttle timers
       
 21656         to fire.  By doing this, Safari's PLT will be guaranteed to display each page at least once.
       
 21657 
       
 21658         * Misc/WebNSWindowExtras.h:
       
 21659         * Misc/WebNSWindowExtras.m:
       
 21660         Added a special internal runloop mode for the throttle timers.
       
 21661         (+[NSWindow _webkit_displayThrottledWindows]):
       
 21662         Run the runloop in our special internal mode until there are no more sources to handle.
       
 21663         (requestWindowDisplay):
       
 21664         Schedule the timer in the new mode as well as the standard modes.
       
 21665         
       
 21666 2006-05-15  Anders Carlsson  <acarlsson@apple.com>
       
 21667 
       
 21668         Reviewed by Maciej.
       
 21669 
       
 21670         http://bugs.webkit.org/show_bug.cgi?id=8913
       
 21671         REGRESSION: Can view source for text files
       
 21672 
       
 21673         * WebView/WebDocumentPrivate.h:
       
 21674         Add canSaveAsWebArchive.
       
 21675         
       
 21676         * WebView/WebHTMLRepresentation.m:
       
 21677         (-[WebHTMLRepresentation canProvideDocumentSource]):
       
 21678         Call the bridge.
       
 21679         
       
 21680         (-[WebHTMLRepresentation canSaveAsWebArchive]):
       
 21681         New function. This will be used in Safari ToT to determine if a page can be saved as an archive.
       
 21682 
       
 21683 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 21684 
       
 21685         Reviewed by Darin.
       
 21686 
       
 21687         - fix http://bugs.webkit.org/show_bug.cgi?id=8739
       
 21688           Crash in RenderTableSection::paint due to manipulating DOM on resize
       
 21689 
       
 21690         Manual test: manual-tests/dom-manipulation-on-resize.html
       
 21691 
       
 21692         * WebView/WebHTMLView.m:
       
 21693         (-[WebHTMLView layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]): Relayout if necessary
       
 21694         after sending the resize event.
       
 21695 
       
 21696 2006-05-12  Maciej Stachowiak  <mjs@apple.com>
       
 21697 
       
 21698         Reviewed by Brady.
       
 21699         
       
 21700         http://bugs.webkit.org/show_bug.cgi?id=8876
       
 21701         - move most private WebDataSource methods to uninstalled header
       
 21702         
       
 21703         I put the declarations for the ones only used in WebKit in WebDataSourceInternal.h
       
 21704         and removed two entirey unused ones.
       
 21705 
       
 21706         * Plugins/WebNetscapePluginRepresentation.m:
       
 21707         * Plugins/WebNetscapePluginStream.m:
       
 21708         * Plugins/WebPluginController.m:
       
 21709         * Plugins/WebPluginDocumentView.m:
       
 21710         * WebCoreSupport/WebFrameBridge.m:
       
 21711         (-[WebFrameBridge dataSource]):
       
 21712         * WebCoreSupport/WebSubresourceLoader.m:
       
 21713         * WebKit.xcodeproj/project.pbxproj:
       
 21714         * WebView/WebDataSource.m:
       
 21715         (-[WebDataSource _updateIconDatabaseWithURL:]):
       
 21716         (-[WebDataSource _loadIcon]):
       
 21717         (-[WebDataSource _clearErrors]):
       
 21718         (-[WebDataSource _commitLoadWithData:]):
       
 21719         (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
       
 21720         (-[WebDataSource _addResponse:]):
       
 21721         * WebView/WebDataSourceInternal.h: Added.
       
 21722         * WebView/WebDataSourcePrivate.h:
       
 21723         * WebView/WebFrame.m:
       
 21724         * WebView/WebHTMLRepresentation.m:
       
 21725         * WebView/WebHTMLView.m:
       
 21726         * WebView/WebImageView.m:
       
 21727         * WebView/WebLoader.m:
       
 21728         * WebView/WebMainResourceLoader.m:
       
 21729         * WebView/WebPDFView.m:
       
 21730         * WebView/WebRenderNode.m:
       
 21731         * WebView/WebView.m:
       
 21732 
       
 21733 2006-05-12  Tim Omernick  <timo@apple.com>
       
 21734 
       
 21735         Reviewed by John Sullivan.
       
 21736 
       
 21737         <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
       
 21738         <http://bugs.webkit.org/show_bug.cgi?id=8740>
       
 21739 
       
 21740         Improvement to my NSWindow display throttle hack.  Remember the last flush time instead of the last display time.
       
 21741         Our goal is to never draw less than 1/60th of a second after the window is flushed in order to avoid blocking on
       
 21742         a CG coalesced update.  Using the last display time is close, but this is much more accurate.  I have verified that
       
 21743         this further improves our score on BenchJS Test 1 (by 9.8% with the status bar shown compared to the previous build),
       
 21744         as well as on our internal PLT scores by a smaller percentage.
       
 21745 
       
 21746         * Misc/WebNSWindowExtras.m:
       
 21747         Renamed lastDisplayTime to lastFlushTime.
       
 21748         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
       
 21749         Replace -[NSWindow flushWindow] with our own implementation.
       
 21750         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
       
 21751         Restore -[NSWindow flushWindow].
       
 21752         (replacementFlushWindow):
       
 21753         Use the last flush time instead of the last display time.
       
 21754         (getWindowDisplayInfo):
       
 21755         Renamed lastDisplayTime to lastFlushTime.
       
 21756         (requestWindowDisplay):
       
 21757         Moved some code to replacementFlushWindow().
       
 21758 
       
 21759 2006-05-11  Timothy Hatcher  <timothy@apple.com>
       
 21760 
       
 21761         Reviewed by Darin.
       
 21762 
       
 21763         Bug 8856: Web Inspector should show the Xpath for the selected node
       
 21764         http://bugs.webkit.org/show_bug.cgi?id=8856
       
 21765         
       
 21766         Adds an Xpath area to the Node panel.
       
 21767 
       
 21768         * WebInspector/webInspector/inspector.css:
       
 21769         * WebInspector/webInspector/inspector.html:
       
 21770         * WebInspector/webInspector/inspector.js:
       
 21771 
       
 21772 2006-05-11  Timothy Hatcher  <timothy@apple.com>
       
 21773 
       
 21774         Reviewed by Anders.
       
 21775 
       
 21776         Fixes <rdar://problem/4411845> lots of SPOD trying to scroll through
       
 21777         Markup & Content inspecting body at apple.com (6614)
       
 21778         http://bugs.webkit.org/show_bug.cgi?id=6614
       
 21779 
       
 21780         Removed the Markup & Content pane when viewing a element.
       
 21781         This pane was not that useful and made the inspector really slow
       
 21782         when the markup was large. Only show this pane for text nodes.
       
 21783 
       
 21784         * WebInspector/webInspector/inspector.css: use -webkit prefix
       
 21785         * WebInspector/webInspector/inspector.html:
       
 21786         * WebInspector/webInspector/inspector.js:
       
 21787 
       
 21788 2006-05-11  Sam Weinig  <sam.weinig@gmail.com>
       
 21789 
       
 21790         Reviewed by Timothy.
       
 21791 
       
 21792         Patch for <http://bugs.webkit.org/show_bug.cgi?id=8810>
       
 21793         Bug 8810: Scrollbars in WebInspector rendered incorrectly
       
 21794 
       
 21795         * WebInspector/webInspector/inspector.css: 
       
 21796         Make scroll bars absolutely positioned.
       
 21797 
       
 21798 2006-05-10  Tim Omernick  <timo@apple.com>
       
 21799 
       
 21800         Reviewed by Darin.
       
 21801 
       
 21802         <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
       
 21803         <http://bugs.webkit.org/show_bug.cgi?id=8740>
       
 21804 
       
 21805         * Misc/WebNSWindowExtras.h:
       
 21806         * Misc/WebNSWindowExtras.m:
       
 21807         (+[NSWindow _webkit_enableWindowDisplayThrottle]):
       
 21808         Overrides certain NSWindow methods so that window autodisplay can be throttled to 60Hz.
       
 21809 
       
 21810         (disableWindowDisplayThrottleApplierFunction):
       
 21811         CFDictionary applier function for when the throttle is disabled.  Cancels all pending window displays,
       
 21812         and calls -displayIfNeeded on each window with a pending display.
       
 21813 
       
 21814         (+[NSWindow _webkit_disableWindowDisplayThrottle]):
       
 21815         Restores default NSWindow method implementations and clears pending window displays.
       
 21816 
       
 21817         (swizzleInstanceMethod):
       
 21818         Helper function to swizzle ObjC method implementations.
       
 21819 
       
 21820         (replacementPostWindowNeedsDisplay):
       
 21821         Don't call into -[NSWindow _postWindowNeedsDisplay] if requestWindowDisplay() returns NO (this is the
       
 21822         function that throttles display).
       
 21823 
       
 21824         (replacementClose):
       
 21825         Clean up the WindowDisplayInfo struct for the window, since it's about to go away.
       
 21826 
       
 21827         (getWindowDisplayInfo):
       
 21828         Gets the WindowDisplayInfo struct for the window, or creates it if absent.
       
 21829 
       
 21830         (requestWindowDisplay):
       
 21831         Returns YES if a display is allowed right now.  Returns NO otherwise, and schedules a timer to try the
       
 21832         display again.
       
 21833 
       
 21834         (cancelPendingWindowDisplay):
       
 21835         Cancels the pending display for the window, if any.
       
 21836 
       
 21837         (-[NSWindow _webkit_doPendingPostWindowNeedsDisplay:]):
       
 21838         Try to call _postWindowNeedsDisplay again.
       
 21839 
       
 21840         * WebView/WebFrameView.m:
       
 21841         (-[WebFrameView initWithFrame:]):
       
 21842         If the secret "WebKitThrottleWindowDisplay" default is set, then enable the NSWindow throttle.
       
 21843 
       
 21844 2006-05-10  Anders Carlsson  <acarlsson@apple.com>
       
 21845 
       
 21846         Reviewed by Maciej.
       
 21847 
       
 21848         * WebView/WebHTMLView.m:
       
 21849         (+[WebHTMLView unsupportedTextMIMETypes]):
       
 21850         Add text/rtf
       
 21851         
       
 21852 2006-05-09  Levi Weintraub  <lweintraub@apple.com>
       
 21853 
       
 21854         Reviewed by justin.
       
 21855 
       
 21856         <rdar://problem/4442395>
       
 21857         Tiny MCE: Link isn't inserted after dragging into textarea field
       
 21858         
       
 21859         * WebView/WebHTMLView.m:
       
 21860         (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]):
       
 21861         Modified to create an anchor object with a title as opposed to just the URL as text.
       
 21862 
       
 21863 2006-05-09  Tim Omernick  <timo@apple.com>
       
 21864 
       
 21865         Reviewed by Dave Harrison.
       
 21866 
       
 21867         <rdar://problem/4523432> safari crashed right after disabling "block pop up windows" (or
       
 21868         other WebPreferences changes)
       
 21869 
       
 21870         * Plugins/WebBaseNetscapePluginView.m:
       
 21871         (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
       
 21872         When the plugin view is removed from both its window and its hostWindow, stop observing
       
 21873         WebPreferences.
       
 21874 
       
 21875 2006-05-09  Anders Carlsson  <acarlsson@apple.com>
       
 21876 
       
 21877         Reviewed by Darin.
       
 21878 
       
 21879         http://bugs.webkit.org/show_bug.cgi?id=8808
       
 21880         WebCore should handle text files
       
 21881 
       
 21882         * WebKit.exp:
       
 21883         Remove WebTextView.
       
 21884         
       
 21885         * WebKit.xcodeproj/project.pbxproj:
       
 21886         Get rid of WebTextView and WebTextRepresentation.
       
 21887         
       
 21888         * WebView/WebDataSource.m:
       
 21889         (+[WebDataSource _repTypesAllowImageTypeOmission:]):
       
 21890         * WebView/WebFrameView.m:
       
 21891         (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
       
 21892         * WebView/WebHTMLView.m:
       
 21893         The text MIME types are now handled by WebHTMLView.
       
 21894         
       
 21895         (+[WebHTMLView unsupportedTextMIMETypes]):
       
 21896         New function, moved here from WebTextView.
       
 21897         
       
 21898         * WebView/WebHTMLViewPrivate.h:
       
 21899         * WebView/WebTextRepresentation.h: Removed.
       
 21900         * WebView/WebTextRepresentation.m: Removed.
       
 21901         * WebView/WebTextView.h: Removed.
       
 21902         * WebView/WebTextView.m: Removed.
       
 21903         
       
 21904         * WebView/WebView.m:
       
 21905         (+[WebView _viewClass:andRepresentationClass:forMIMEType:]):
       
 21906         Now special-case WebHTMLView instead of WebTextView for MIME types
       
 21907         that shouldn't be shown.
       
 21908 
       
 21909 2006-05-09  Maciej Stachowiak  <mjs@apple.com>
       
 21910 
       
 21911         Rubber stamped by Anders.
       
 21912         
       
 21913         - renamed kxmlcore to wtf
       
 21914         
       
 21915         kxmlcore --> wtf
       
 21916         KXMLCore --> WTF
       
 21917         KXC --> WTF
       
 21918 
       
 21919         * Misc/WebKitLogging.h:
       
 21920         * Misc/WebKitLogging.m:
       
 21921         (initializeLogChannel):
       
 21922 
       
 21923 2006-05-09  Timothy Hatcher  <timothy@apple.com>
       
 21924 
       
 21925         Reviewed by Anders.
       
 21926 
       
 21927         Bug 8804: Inspector should support searching by Xpath query
       
 21928         http://bugs.webkit.org/show_bug.cgi?id=8804
       
 21929 
       
 21930         * WebInspector/WebInspector.m:
       
 21931         (-[WebInspector _refreshSearch]):
       
 21932         * WebInspector/webInspector/inspector.js:
       
 21933 
       
 21934 2006-05-08  Maciej Stachowiak  <mjs@apple.com>
       
 21935 
       
 21936         Reviewed by Tim Hatcher.
       
 21937         
       
 21938         - refactor things so that WebKit doesn't save a WebResource for every loaded URL,
       
 21939         but rather retrieves the data from the WebCore cache as needed.
       
 21940         http://bugs.webkit.org/show_bug.cgi?id=8802
       
 21941 
       
 21942         * WebCoreSupport/WebFrameBridge.m:
       
 21943         (-[WebFrameBridge objectLoadedFromCacheWithURL:response:data:]):
       
 21944         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 21945         * WebCoreSupport/WebSubresourceLoader.m:
       
 21946         (-[WebSubresourceLoader didReceiveResponse:]):
       
 21947         * WebView/WebDataSource.m:
       
 21948         (-[WebDataSourcePrivate dealloc]):
       
 21949         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 21950         (-[WebDataSource _archivedSubresourceForURL:]):
       
 21951         (-[WebDataSource initWithRequest:]):
       
 21952         (-[WebDataSource subresources]):
       
 21953         (-[WebDataSource subresourceForURL:]):
       
 21954         (-[WebDataSource addSubresource:]):
       
 21955         * WebView/WebDataSourcePrivate.h:
       
 21956         * WebView/WebFrame.m:
       
 21957         * WebView/WebFrameInternal.h:
       
 21958         * WebView/WebHTMLView.m:
       
 21959         * WebView/WebLoader.h:
       
 21960         * WebView/WebLoader.m:
       
 21961         (-[NSURLProtocol loadWithRequest:]):
       
 21962         (-[NSURLProtocol didFinishLoading]):
       
 21963         * WebView/WebUnarchivingState.h:
       
 21964         * WebView/WebUnarchivingState.m:
       
 21965         (-[WebUnarchivingState addResource:]):
       
 21966 
       
 21967 2006-05-04  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 21968 
       
 21969         Reviewed by Darin.
       
 21970 
       
 21971         - fix http://bugs.webkit.org/show_bug.cgi?id=8594
       
 21972           REGRESSION: Exception on closing a page containing (just) an mp3
       
 21973 
       
 21974         Test: plugins/pluginDocumentView-deallocated-dataSource.html
       
 21975 
       
 21976         * Plugins/WebPluginDocumentView.m:
       
 21977         (-[WebPluginDocumentView dealloc]): Release the dataSource.
       
 21978         (-[WebPluginDocumentView setDataSource:]): Retain the dataSource.
       
 21979 
       
 21980 2006-05-04  Tim Omernick  <timo@apple.com>
       
 21981 
       
 21982         Reviewed by Darin.
       
 21983 
       
 21984         <rdar://problem/4537606> Give Java WebKit plugin access to its own DOM element
       
 21985 
       
 21986         * WebCoreSupport/WebFrameBridge.m:
       
 21987         (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
       
 21988         Pass the DOMElement to the plugin if it's a WebKit plugin (we need to handle Netscape plugins
       
 21989         differently).
       
 21990 
       
 21991 2006-05-04  Tim Omernick  <timo@apple.com>
       
 21992 
       
 21993         Reviewed by John Sullivan.
       
 21994 
       
 21995         <rdar://problem/4480186> Give WebKit plugins access to their own DOM element
       
 21996 
       
 21997         This does not fix <rdar://problem/4480187> Give Netscape plugins access to their own DOM element --
       
 21998         we're not going to use the ObjC DOM API for that, but rather the NP bindings API.
       
 21999 
       
 22000         * Plugins/WebPluginPackage.m:
       
 22001         Declared WebPlugInContainingElementKey.  This is not a new plugin argument -- it's been in our public
       
 22002         headers since all along, but has never been concretely declared -- plugins that referenced it would not
       
 22003         link.
       
 22004 
       
 22005         * WebCoreSupport/WebFrameBridge.m:
       
 22006         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:]):
       
 22007         Added DOMElement parameter, which is now included in the plugin arguments dictionary.
       
 22008         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:]):
       
 22009         ditto
       
 22010 
       
 22011         * WebKit.exp:
       
 22012         Export WebPlugInContainingElementKey.
       
 22013 
       
 22014 2006-05-02  Darin Adler  <darin@apple.com>
       
 22015 
       
 22016         Reviewed by Eric.
       
 22017 
       
 22018         - http://bugs.webkit.org/show_bug.cgi?id=8677
       
 22019           REGRESSION: wkSetUpFontCache() may be called before the SPIs are connected.
       
 22020 
       
 22021         I don't know how reproduce this without one of Rosyna's hacks installed, so I
       
 22022         did not include a test.
       
 22023 
       
 22024         * Misc/WebStringTruncator.m: (+[WebStringTruncator initialize]): Add call to
       
 22025         InitWebCoreSystemInterface.
       
 22026 
       
 22027         * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Add a boolean
       
 22028         so we will only do this one time.
       
 22029 
       
 22030 2006-05-02  Adele Peterson  <adele@apple.com>
       
 22031 
       
 22032         Reviewed by Tim O.
       
 22033 
       
 22034         - fix http://bugs.webkit.org/show_bug.cgi?id=6988
       
 22035         REGRESSION: Display correct context menus for new text fields
       
 22036 
       
 22037         * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
       
 22038         Don't let the UI delegate have control over the context menu for text fields.
       
 22039 
       
 22040 2006-05-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 22041 
       
 22042         Reviewed by Darin.
       
 22043 
       
 22044         - fix http://bugs.webkit.org/show_bug.cgi?id=8658
       
 22045           Assertion failure in -[WebPluginContainerCheck _isForbiddenFileLoad]
       
 22046           (bridge is null) when clicking QuickTime object with href
       
 22047 
       
 22048         * WebView/WebHTMLView.m:
       
 22049        (-[WebHTMLView setDataSource:]): Set the pluginController's dataSource.
       
 22050 
       
 22051 2006-05-01  Maciej Stachowiak  <mjs@apple.com>
       
 22052 
       
 22053         - fix build
       
 22054 
       
 22055         * WebKit.exp: Add symbol that the new Safari will need.
       
 22056 
       
 22057 2006-05-01  John Sullivan  <sullivan@apple.com>
       
 22058 
       
 22059         Reviewed by Tim Omernick.
       
 22060         
       
 22061         - fixed <rdar://problem/3126419> history load enforces history limit, but deletes the newest instead of oldest items
       
 22062         - added notification reporting items discarded during load because the age limit or item count limit is exceeded
       
 22063         - a few other minor tweaks
       
 22064 
       
 22065         * History/WebHistory.h:
       
 22066         fixed a typo and an incorrect method name
       
 22067         
       
 22068         * History/WebHistoryPrivate.h:
       
 22069         Added declaration of WebHistoryItemsDiscardedWhileLoadingNotification. Also changed signature of
       
 22070         WebHistoryPrivate method -loadFromURL:error: to have new collectDiscardedItemsInto: parameter.
       
 22071         Also deleted declarations of two methods that didn't actually exist (loadHistory and initWithFile:), 
       
 22072         and added comments about which methods should become public API, WebKit-internal, or file-internal.
       
 22073 
       
 22074         * History/WebHistory.m:
       
 22075         (-[WebHistoryPrivate arrayRepresentation]):
       
 22076         This method, called only by _saveHistoryGuts:, used to deliberately leave out items that violated
       
 22077         either the age limit or the item count limit. Now all the items are included (and thus saved), and
       
 22078         all the pruning is done at load time, so clients can keep track of the pruned items by observing
       
 22079         the new WebHistoryItemsDiscardedWhileLoadingNotification
       
 22080         (-[WebHistoryPrivate _loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
       
 22081         Now keeps track of all the items that violated the age limit or item count limit in the new
       
 22082         collectedDiscardedItemsInto: parameter. Also, now processes items in forward order rather than
       
 22083         reverse order to fix 3126419. Now uses compare: rather than _webkit_compareDay: to check against
       
 22084         age limit; this is faster and also more correct (most noticeable with small age limits).
       
 22085         (-[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]):
       
 22086         new collectDiscardedItemsInto: parameter, passed into _loadHistoryGuts:...
       
 22087         (-[WebHistory loadFromURL:error:]):
       
 22088         Now sends new WebHistoryItemsDiscardedWhileLoadingNotification if any items were discarded due
       
 22089         to age limit or item count limit.
       
 22090         
       
 22091         * WebKit.exp:
       
 22092         exported symbol for WebHistoryItemsDiscardedWhileLoadingNotification
       
 22093 
       
 22094 2006-04-29  Timothy Hatcher  <timothy@apple.com>
       
 22095 
       
 22096         Reviewed by Maciej.
       
 22097 
       
 22098         Bug 8577: [TabBarView _web_superviewOfClass:stoppingAtClass:]
       
 22099         http://bugs.webkit.org/show_bug.cgi?id=8577
       
 22100 
       
 22101         Added back _web_superviewOfClass:stoppingAtClass:.
       
 22102         This method was removed in r14032 (bug 8562), but Safari 2.0 still uses it.
       
 22103         We should remove this method once Open Source users have a new version
       
 22104         to use with TOT WebKit.
       
 22105 
       
 22106         * Misc/WebNSViewExtras.m:
       
 22107         (-[NSView _web_superviewOfClass:stoppingAtClass:]):
       
 22108 
       
 22109 2006-04-28  David Hyatt  <hyatt@apple.com>
       
 22110 
       
 22111         Double the cache size to account for our revised (more accurate)
       
 22112         measurement of the image buffers.
       
 22113 
       
 22114         Reviewed by darin
       
 22115 
       
 22116         * WebView/WebPreferences.m:
       
 22117         (+[WebPreferences initialize]):
       
 22118 
       
 22119 2006-04-28  David Hyatt  <hyatt@apple.com>
       
 22120 
       
 22121         Fix for 8586, move WebTextRenderer into WebCore.
       
 22122 
       
 22123         Reviewed by darin
       
 22124 
       
 22125         * Misc/WebKitNSStringExtras.m:
       
 22126         (-[NSString _web_drawAtPoint:font:textColor:]):
       
 22127         (-[NSString _web_widthWithFont:]):
       
 22128         * Misc/WebStringTruncator.m:
       
 22129         (+[WebStringTruncator centerTruncateString:toWidth:]):
       
 22130         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
       
 22131         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
       
 22132         (+[WebStringTruncator widthOfString:font:]):
       
 22133         * WebCoreSupport/WebSystemInterface.m:
       
 22134         (InitWebCoreSystemInterface):
       
 22135         * WebCoreSupport/WebTextRenderer.h: Removed.
       
 22136         * WebCoreSupport/WebTextRenderer.m: Removed.
       
 22137         * WebCoreSupport/WebTextRendererFactory.h: Removed.
       
 22138         * WebCoreSupport/WebTextRendererFactory.m: Removed.
       
 22139         * WebKit.xcodeproj/project.pbxproj:
       
 22140         * WebView/WebFrameView.m:
       
 22141         (-[WebFrameView initWithFrame:]):
       
 22142         * WebView/WebHTMLView.m:
       
 22143         (-[WebHTMLView _addToStyle:fontA:fontB:]):
       
 22144         * WebView/WebTextView.m:
       
 22145         (-[WebTextView setFixedWidthFont]):
       
 22146         * WebView/WebView.m:
       
 22147         (+[WebView _setAlwaysUseATSU:]):
       
 22148         (+[WebView _setShouldUseFontSmoothing:]):
       
 22149         (+[WebView _shouldUseFontSmoothing]):
       
 22150 
       
 22151 2006-04-28  Eric Seidel  <eseidel@apple.com>
       
 22152 
       
 22153         Reviewed by darin.
       
 22154 
       
 22155         Misc. style cleanup.
       
 22156         http://bugs.webkit.org/show_bug.cgi?id=8643
       
 22157 
       
 22158         * Misc/WebIconDatabase.m:
       
 22159         (-[NSMutableDictionary iconForURL:withSize:cache:]):
       
 22160         (-[NSMutableDictionary iconURLForURL:]):
       
 22161         (-[NSMutableDictionary retainIconForURL:]):
       
 22162         (-[NSMutableDictionary releaseIconForURL:]):
       
 22163         (-[WebIconDatabase _setIcon:forIconURL:]):
       
 22164         (-[WebIconDatabase _iconsForIconURLString:]):
       
 22165         (-[WebIconDatabase _forgetIconForIconURLString:]):
       
 22166         (-[WebIconDatabase _releaseIconForIconURLString:]):
       
 22167         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
       
 22168         * Plugins/WebBasePluginPackage.m:
       
 22169         (+[WebBasePluginPackage pluginWithPath:]):
       
 22170         (-[WebBasePluginPackage pathByResolvingSymlinksAndAliasesInPath:]):
       
 22171         (-[WebBasePluginPackage initWithPath:]):
       
 22172         (-[WebBasePluginPackage getPluginInfoFromBundleAndMIMEDictionary:]):
       
 22173         (-[WebBasePluginPackage pListForPath:createFile:]):
       
 22174         (-[WebBasePluginPackage getPluginInfoFromPLists]):
       
 22175         (-[WebBasePluginPackage load]):
       
 22176         (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
       
 22177         (-[WebBasePluginPackage isNativeLibraryData:]):
       
 22178         (-[NSArray _web_lowercaseStrings]):
       
 22179         * Plugins/WebNetscapePluginPackage.m:
       
 22180         (-[WebNetscapePluginPackage openResourceFile]):
       
 22181         (-[WebNetscapePluginPackage closeResourceFile:]):
       
 22182         (-[WebNetscapePluginPackage stringForStringListID:andIndex:]):
       
 22183         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
       
 22184         (-[WebNetscapePluginPackage initWithPath:]):
       
 22185         (-[WebNetscapePluginPackage executableType]):
       
 22186         (-[WebNetscapePluginPackage unloadWithoutShutdown]):
       
 22187         (-[WebNetscapePluginPackage load]):
       
 22188         (-[WebNetscapePluginPackage unload]):
       
 22189         * Plugins/WebNetscapePluginRepresentation.m:
       
 22190         (-[WebNetscapePluginRepresentation redeliverStream]):
       
 22191         * Plugins/WebPluginDatabase.m:
       
 22192         (+[WebPluginDatabase installedPlugins]):
       
 22193         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
       
 22194         (-[WebPluginDatabase pluginForExtension:]):
       
 22195         (pluginLocations):
       
 22196         (-[WebPluginDatabase init]):
       
 22197         (-[WebPluginDatabase refresh]):
       
 22198         * Plugins/npapi.m:
       
 22199         (NPN_MemAlloc):
       
 22200         (NPN_MemFree):
       
 22201         (pluginViewForInstance):
       
 22202         * WebCoreSupport/WebSubresourceLoader.m:
       
 22203         (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
       
 22204         (-[WebSubresourceLoader willSendRequest:redirectResponse:]):
       
 22205         * WebView/WebDataSource.m:
       
 22206         (-[WebDataSource isLoading]):
       
 22207         * WebView/WebFrame.m:
       
 22208         (-[WebFrame _loadDataSource:withLoadType:formState:]):
       
 22209         (-[WebFrame _subframeIsLoading]):
       
 22210         * WebView/WebView.m:
       
 22211         (-[WebView initWithFrame:]):
       
 22212         (-[WebView initWithFrame:frameName:groupName:]):
       
 22213 
       
 22214 2006-04-26  Tim Omernick  <timo@apple.com>
       
 22215 
       
 22216         Reviewed by Geoff.
       
 22217 
       
 22218         <rdar://problem/4525105> Repro TOT crash in [WebBaseNetscapePluginView dealloc] at coachella.com
       
 22219         <http://bugs.webkit.org/show_bug.cgi?id=8564> crashed when closing a tab
       
 22220 
       
 22221         * WebView/WebFrame.m:
       
 22222         (-[WebFramePrivate dealloc]):
       
 22223         Assert that plugInViews has been released.
       
 22224         (-[WebFrame _addPlugInView:]):
       
 22225         New method.  Adds the plug-in view to the plugInViews set and calls -setWebFrame: on it.
       
 22226         (-[WebFrame _removeAllPlugInViews]):
       
 22227         New method.  Calls -setWebFrame:nil on all plug-in views and releases the plugInViews set.
       
 22228         (-[WebFrame _willCloseURL]):
       
 22229         New method.  Dispose of plug-in views when leaving a page (or closing the WebView).
       
 22230 
       
 22231         * WebView/WebFrameInternal.h:
       
 22232         Declared -_addPlugInView:, -_removeAllPlugInViews, -_willCloseURL
       
 22233 
       
 22234         * WebCoreSupport/WebFrameBridge.m:
       
 22235         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
       
 22236         Call -[WebFrame _addPlugInView:] instead of directly setting plug-in views' frames.  This
       
 22237         allows us to keep track of them so that we can explicitly dispose of them when leaving the page.
       
 22238         (-[WebFrameBridge closeURL]):
       
 22239         Override -[WebCoreFrameBridge closeURL] so that we can perform our own teardown when leaving
       
 22240         a page or closing the WebView.
       
 22241 
       
 22242         * Plugins/WebBaseNetscapePluginView.h:
       
 22243         Declared -stop so that subclass WebNetscapePluginEmbeddedView can call it.
       
 22244 
       
 22245         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 22246         (-[WebNetscapePluginEmbeddedView setWebFrame:]):
       
 22247         Stop the plug-in when it is removed from its WebFrame.
       
 22248 
       
 22249 2006-04-25  Tim Omernick  <timo@apple.com>
       
 22250 
       
 22251         Reviewed by John Sullivan.
       
 22252 
       
 22253         <rdar://problem/4472035> SPI that checks for URL policy fails in plugin documents
       
 22254 
       
 22255         * Plugins/WebPluginController.h:
       
 22256         * Plugins/WebPluginController.m:
       
 22257         (-[WebPluginController URLPolicyCheckReferrer]):
       
 22258         New method.  Get the referrer from the frame's data source's NSURLResponse.  Note that for
       
 22259         document types loaded by WebCore, this URL is the same as -[WebCorePageBridge referrer],
       
 22260         since the response URL is what we pass to -[WebCorePageBridge openURL:].
       
 22261 
       
 22262         * Plugins/WebPluginContainerCheck.m:
       
 22263         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
       
 22264         Use the WebPluginController's -URLPolicyCheckReferrer instead of assuming that the bridge's
       
 22265         -referrer is valid.  -[WebCorePageBridge referrer] is only set during the normal WebCore page
       
 22266         load process, which has nothing to do with loading standalone plugin documents.
       
 22267 
       
 22268 2006-04-25  Tim Omernick  <timo@apple.com>
       
 22269 
       
 22270         Reviewed by Eric.
       
 22271 
       
 22272         <rdar://problem/4526052> intermittent assertion failure in -[WebBasePluginPackage dealloc]
       
 22273         running layout tests
       
 22274 
       
 22275         * Plugins/WebPluginPackage.m:
       
 22276         (-[WebPluginPackage unload]):
       
 22277         Clear isLoaded here.  It turns out that only WebNetscapePluginPackage cleared its isLoaded
       
 22278         flag in -unload.  We need to also do it here, because the superclass (WebBasePluginPackage)
       
 22279         asserts in -dealloc that -unload has been called.
       
 22280 
       
 22281 2006-04-25  Tim Omernick  <timo@apple.com>
       
 22282 
       
 22283         Reviewed by Eric.
       
 22284 
       
 22285         <rdar://problem/4526120> -[WebBasePluginPackage finalize] leaks the CFBundle (under GC only)
       
 22286 
       
 22287         * Plugins/WebBasePluginPackage.m:
       
 22288         (-[WebBasePluginPackage finalize]):
       
 22289         Release the CFBundle here.
       
 22290 
       
 22291 2006-04-25  Tim Omernick  <timo@apple.com>
       
 22292 
       
 22293         Reviewed by Geoff.
       
 22294 
       
 22295         <rdar://problem/4472037>
       
 22296         
       
 22297         Private extensions to the WebPlugin interface.  A plugin may implement these methods to receive loading callbacks
       
 22298         for its main resource.  Plug-ins that implement this SPI show better loading progress in the browser, can be saved
       
 22299         to disk, and are more efficient by avoiding making duplicate GET or POST requests for the plug-in's main resource.
       
 22300 
       
 22301         I want to provide a solid API for plug-in networking, but time constraints require that I first provide this simple
       
 22302         SPI for internal clients.
       
 22303 
       
 22304         * Plugins/WebPluginViewFactoryPrivate.h:
       
 22305         Added a new plugin argument, WebPlugInShouldLoadMainResourceKey.  If YES, the plugin is responsible
       
 22306         for loading its own content.  If NO, the plugin should wait for WebKit to send it the data via the
       
 22307         new request-sharing SPI.
       
 22308 
       
 22309         * Plugins/WebPluginPrivate.h: Added.
       
 22310         Request-sharing SPI.  See comments in code.
       
 22311 
       
 22312         * Plugins/WebPluginDocumentView.h:
       
 22313         Hang onto the plugin view as an ivar so we can call the new resource loading methods on it.
       
 22314         * Plugins/WebPluginDocumentView.m:
       
 22315         (-[WebPluginDocumentView dealloc]):
       
 22316         Release pluginView ivar.
       
 22317         (-[WebPluginDocumentView setDataSource:]):
       
 22318         Pass NO for WebPlugInShouldLoadMainResourceKey to indicate to the plugin that it should not 
       
 22319         load its own main resource -- the data will come from WebKit.  This is only necessary for plugin
       
 22320         documents.  By the time we create the view for a plugin document, we already have fetched some
       
 22321         of its main resource's data.  Embedded plugins do not have this issue because WebKit is not
       
 22322         involved in loading their content.
       
 22323         Call -webPlugInMainResourceDidReceivResponse: on the plugin if necessary.  This lets the plugin
       
 22324         know how much and what kind of data is going to be received.
       
 22325         (-[WebPluginDocumentView dataSourceUpdated:]):
       
 22326         If the plugin implements the new request-sharing SPI, don't cancel the in-progress request.
       
 22327         (-[WebPluginDocumentView receivedData:withDataSource:]):
       
 22328         Forward to the plugin via the new request-sharing SPI.
       
 22329         (-[WebPluginDocumentView receivedError:withDataSource:]):
       
 22330         ditto
       
 22331         (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
       
 22332         ditto
       
 22333 
       
 22334         * Plugins/WebPluginPackage.m:
       
 22335         Added WebPlugInShouldLoadMainResourceKey, tweaked some style a bit.
       
 22336 
       
 22337         * WebCoreSupport/WebFrameBridge.m:
       
 22338         (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
       
 22339         Pass YES for WebPlugInShouldLoadMainResourceKey.  Embedded plugins must load their own data.
       
 22340         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
       
 22341         ditto
       
 22342         
       
 22343         * WebKit.xcodeproj/project.pbxproj:
       
 22344         Added WebPluginPrivate.h
       
 22345 
       
 22346 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
       
 22347 
       
 22348         Reviewed by Geoff.
       
 22349         
       
 22350         <rdar://problem/4525364> REGRESSION (yesterday?): LOG() mechanism is broken
       
 22351         
       
 22352         - initialize WebKit's log channels
       
 22353 
       
 22354         * Misc/WebKitLogging.h:
       
 22355         * Misc/WebKitLogging.m:
       
 22356         (initializeLogChannel):
       
 22357         (WebKitInitializeLoggingChannelsIfNecessary):
       
 22358         * WebView/WebPreferences.m:
       
 22359         (+[WebPreferences initialize]):
       
 22360         * WebView/WebView.m:
       
 22361         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 22362 
       
 22363 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
       
 22364 
       
 22365         Build fix:
       
 22366         
       
 22367         - move some prematurely moved code back
       
 22368 
       
 22369         * WebCoreSupport/WebFrameBridge.h:
       
 22370         * WebCoreSupport/WebFrameBridge.m:
       
 22371         (-[WebFrameBridge fini]):
       
 22372         (-[WebFrameBridge _preferences]):
       
 22373         (-[WebFrameBridge _retrieveKeyboardUIModeFromPreferences:]):
       
 22374         (-[WebFrameBridge keyboardUIMode]):
       
 22375 
       
 22376 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
       
 22377 
       
 22378         Reviewed by Darin.
       
 22379 
       
 22380         - move more code from WebFrameBridge to WebCoreFrameBridge
       
 22381 
       
 22382         * WebCoreSupport/WebFrameBridge.h:
       
 22383         * WebCoreSupport/WebFrameBridge.m:
       
 22384         (-[WebFrameBridge fini]):
       
 22385         (-[WebFrameBridge expiresTimeForResponse:]):
       
 22386         (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
       
 22387         (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
       
 22388         (-[WebFrameBridge valueForKey:keys:values:]):
       
 22389         (-[WebFrameBridge _preferences]):
       
 22390 
       
 22391 2006-04-24  Maciej Stachowiak  <mjs@apple.com>
       
 22392 
       
 22393         Reviewed by Anders.
       
 22394         
       
 22395         - Remove use of _webSuperviewOfClass: and related
       
 22396         http://bugs.webkit.org/show_bug.cgi?id=8562
       
 22397         
       
 22398         I removed all use of these, now objects get at each other via
       
 22399         actual pointers, not using the view hierarchy. However, I left two
       
 22400         of the calls in because other clients rely on them as SPI (ugh).
       
 22401 
       
 22402         * History/WebHistoryItem.m:
       
 22403         * Misc/WebNSViewExtras.h:
       
 22404         * Misc/WebNSViewExtras.m:
       
 22405         (-[NSView _web_superviewOfClass:]):
       
 22406         (-[NSView _web_parentWebFrameView]):
       
 22407         * Plugins/WebNetscapePluginDocumentView.m:
       
 22408         (-[WebNetscapePluginDocumentView layout]):
       
 22409         * Plugins/WebNetscapePluginEmbeddedView.h:
       
 22410         * Plugins/WebNetscapePluginEmbeddedView.m:
       
 22411         (-[WebNetscapePluginEmbeddedView setWebFrame:]):
       
 22412         (-[WebNetscapePluginEmbeddedView dataSource]):
       
 22413         * Plugins/WebNullPluginView.h:
       
 22414         * Plugins/WebNullPluginView.m:
       
 22415         (-[WebNullPluginView setWebFrame:]):
       
 22416         (-[WebNullPluginView viewDidMoveToWindow]):
       
 22417         * Plugins/WebPluginController.h:
       
 22418         * Plugins/WebPluginController.m:
       
 22419         (-[WebPluginController setDataSource:]):
       
 22420         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
       
 22421         (-[WebPluginController webPlugInContainerShowStatus:]):
       
 22422         (-[WebPluginController webPlugInContainerSelectionColor]):
       
 22423         (-[WebPluginController webFrame]):
       
 22424         * Plugins/WebPluginDocumentView.h:
       
 22425         * Plugins/WebPluginDocumentView.m:
       
 22426         (-[WebPluginDocumentView setDataSource:]):
       
 22427         (-[WebPluginDocumentView layout]):
       
 22428         (-[WebPluginDocumentView currentWindow]):
       
 22429         (-[WebPluginDocumentView viewWillMoveToWindow:]):
       
 22430         * WebCoreSupport/WebFrameBridge.m:
       
 22431         (-[WebFrameBridge formControlIsBecomingFirstResponder:]):
       
 22432         (-[WebFrameBridge formControlIsResigningFirstResponder:]):
       
 22433         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
       
 22434         * WebCoreSupport/WebViewFactory.m:
       
 22435         (-[WebViewFactory bridgeForView:]):
       
 22436         * WebView/WebClipView.m:
       
 22437         (-[NSView initWithFrame:]):
       
 22438         * WebView/WebFrameView.m:
       
 22439         (-[WebFrameView _shouldDrawBorder]):
       
 22440         (-[WebFrameView webCoreBridge]):
       
 22441         * WebView/WebHTMLView.m:
       
 22442         (-[WebTextCompleteController dealloc]):
       
 22443         (-[WebHTMLView _dataSource]):
       
 22444         (-[WebHTMLView _bridge]):
       
 22445         (-[WebHTMLView _webView]):
       
 22446         (-[WebHTMLView _frameView]):
       
 22447         (-[WebHTMLView _web_firstResponderCausesFocusDisplay]):
       
 22448         (-[WebHTMLView becomeFirstResponder]):
       
 22449         (-[WebHTMLView setDataSource:]):
       
 22450         (-[WebHTMLView pageUp:]):
       
 22451         (-[WebHTMLView pageDown:]):
       
 22452         (-[WebHTMLView pageUpAndModifySelection:]):
       
 22453         (-[WebHTMLView pageDownAndModifySelection:]):
       
 22454         (-[WebHTMLView _frame]):
       
 22455         * WebView/WebHTMLViewInternal.h:
       
 22456         * WebView/WebImageView.h:
       
 22457         * WebView/WebImageView.m:
       
 22458         (-[WebImageView drawRect:]):
       
 22459         (-[WebImageView adjustFrameSize]):
       
 22460         (-[WebImageView setDataSource:]):
       
 22461         (-[WebImageView webView]):
       
 22462         (-[WebImageView writeImageToPasteboard:types:]):
       
 22463         (-[WebImageView copy:]):
       
 22464         (-[WebImageView elementAtPoint:]):
       
 22465         (-[WebImageView mouseDragged:]):
       
 22466         * WebView/WebPDFView.h:
       
 22467         * WebView/WebPDFView.m:
       
 22468         (-[WebPDFView _applyPDFDefaults]):
       
 22469         (-[WebPDFView _trackFirstResponder]):
       
 22470         (-[PDFPrefUpdatingProxy forwardInvocation:]):
       
 22471         * WebView/WebRenderNode.m:
       
 22472         (-[WebRenderNode initWithWebFrameView:]):
       
 22473         * WebView/WebTextView.h:
       
 22474         * WebView/WebTextView.m:
       
 22475         (-[WebTextView _textSizeMultiplierFromWebView]):
       
 22476         (-[WebTextView _preferences]):
       
 22477         (-[WebTextView setDataSource:]):
       
 22478         (-[WebTextView _webFrame]):
       
 22479         (-[WebTextView dragSelectionWithEvent:offset:slideBack:]):
       
 22480         (-[WebTextView menuForEvent:]):
       
 22481         (-[WebTextView resignFirstResponder]):
       
 22482         (-[WebTextView drawPageBorderWithSize:]):
       
 22483         (-[WebTextView knowsPageRange:]):
       
 22484         * WebView/WebView.m:
       
 22485         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 22486         (containingFrameView):
       
 22487         (-[WebView _focusedFrame]):
       
 22488         (-[WebView _frameViewAtWindowPoint:]):
       
 22489 
       
 22490 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
       
 22491 
       
 22492         Reviewed by Darin.
       
 22493         
       
 22494         - push WebFileButton and WebStringTruncator code down to WebCore
       
 22495         http://bugs.webkit.org/show_bug.cgi?id=8552
       
 22496 
       
 22497         * Misc/WebStringTruncator.m:
       
 22498         (+[WebStringTruncator centerTruncateString:toWidth:]):
       
 22499         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
       
 22500         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
       
 22501         (+[WebStringTruncator widthOfString:font:]):
       
 22502         * WebCoreSupport/WebFileButton.h: Removed.
       
 22503         * WebCoreSupport/WebFileButton.m: Removed.
       
 22504         * WebCoreSupport/WebFrameBridge.h:
       
 22505         * WebCoreSupport/WebFrameBridge.m:
       
 22506         (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
       
 22507         * WebCoreSupport/WebViewFactory.m:
       
 22508         (-[WebViewFactory fileButtonChooseFileLabel]):
       
 22509         (-[WebViewFactory fileButtonNoFileSelectedLabel]):
       
 22510         * WebKit.xcodeproj/project.pbxproj:
       
 22511 
       
 22512 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
       
 22513 
       
 22514         Reviewed by Eric.
       
 22515         
       
 22516         - remove WebCookieAdapter, WebCore can just use Foundation directly.
       
 22517 
       
 22518         * WebCoreSupport/WebCookieAdapter.h: Removed.
       
 22519         * WebCoreSupport/WebCookieAdapter.m: Removed.
       
 22520         * WebKit.xcodeproj/project.pbxproj:
       
 22521         * WebView/WebFrameView.m:
       
 22522         (-[WebFrameView initWithFrame:]):
       
 22523 
       
 22524 2006-04-23  Maciej Stachowiak  <mjs@apple.com>
       
 22525 
       
 22526         Reviewed by Adele.
       
 22527         
       
 22528         - prune WebView SPI of unused calls
       
 22529         
       
 22530         Specifically I moved methods that have no callers outside WebKit
       
 22531         to WebViewInternal.h or removed them entirely.
       
 22532 
       
 22533         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 22534         * Plugins/WebBaseNetscapePluginView.m:
       
 22535         * Plugins/WebNetscapePluginDocumentView.m:
       
 22536         * Plugins/WebNetscapePluginStream.m:
       
 22537         * Plugins/WebNullPluginView.m:
       
 22538         * Plugins/WebPluginContainerCheck.m:
       
 22539         * Plugins/WebPluginController.m:
       
 22540         * WebCoreSupport/WebFrameBridge.m:
       
 22541         * WebCoreSupport/WebPageBridge.m:
       
 22542         * WebCoreSupport/WebSubresourceLoader.m:
       
 22543         * WebView/WebDataSource.m:
       
 22544         * WebView/WebHTMLView.m:
       
 22545         * WebView/WebImageView.m:
       
 22546         * WebView/WebLoader.m:
       
 22547         * WebView/WebMainResourceLoader.m:
       
 22548         * WebView/WebPDFView.m:
       
 22549         * WebView/WebScriptDebugDelegate.m:
       
 22550         * WebView/WebView.m:
       
 22551         (-[WebView _downloadURL:]):
       
 22552         * WebView/WebViewInternal.h:
       
 22553         * WebView/WebViewPrivate.h:
       
 22554 
       
 22555 2006-04-22  Maciej Stachowiak  <mjs@apple.com>
       
 22556 
       
 22557         Reviewed by Eric.
       
 22558 
       
 22559         - remove WebKit copy of assertions code, use the assertions
       
 22560         stuff from JavaScriptCore instead.
       
 22561 
       
 22562         * Carbon/HIViewAdapter.m:
       
 22563         * DOM/WebDOMOperations.m:
       
 22564         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 22565         * DefaultDelegates/WebDefaultPolicyDelegate.m:
       
 22566         (-[WebDefaultPolicyDelegate webView:unableToImplementPolicyWithError:frame:]):
       
 22567         * History/WebBackForwardList.m:
       
 22568         * History/WebHistory.m:
       
 22569         (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
       
 22570         (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
       
 22571         * History/WebHistoryItem.m:
       
 22572         * Misc/WebAssertions.h: Removed.
       
 22573         * Misc/WebAssertions.m: Removed.
       
 22574         * Misc/WebDatabase.m:
       
 22575         * Misc/WebDownload.m:
       
 22576         * Misc/WebFileDatabase.m:
       
 22577         (SetThreadPriority):
       
 22578         * Misc/WebIconDatabase.m:
       
 22579         (-[NSMutableDictionary iconForURL:withSize:cache:]):
       
 22580         (-[NSMutableDictionary releaseIconForURL:]):
       
 22581         (-[NSMutableDictionary delayDatabaseCleanup]):
       
 22582         (-[NSMutableDictionary allowDatabaseCleanup]):
       
 22583         (-[WebIconDatabase _loadIconDictionaries]):
       
 22584         (-[WebIconDatabase _updateFileDatabase]):
       
 22585         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]):
       
 22586         * Misc/WebIconLoader.m:
       
 22587         * Misc/WebKitLogging.h:
       
 22588         * Misc/WebKitLogging.m:
       
 22589         * Misc/WebKitSystemBits.m:
       
 22590         (initCapabilities):
       
 22591         * Misc/WebLRUFileList.m:
       
 22592         (WebLRUFileListRemoveOldestFileFromList):
       
 22593         (WebLRUFileListGetFileSize):
       
 22594         * Misc/WebLocalizableStrings.m:
       
 22595         * Misc/WebNSCalendarDateExtras.m:
       
 22596         * Misc/WebNSDataExtras.m:
       
 22597         * Misc/WebNSDictionaryExtras.m:
       
 22598         * Misc/WebNSFileManagerExtras.m:
       
 22599         * Misc/WebNSPasteboardExtras.m:
       
 22600         * Misc/WebNSURLExtras.m:
       
 22601         (hexDigit):
       
 22602         (hexDigitValue):
       
 22603         (allCharactersInIDNScriptWhiteList):
       
 22604         * Misc/WebNSURLRequestExtras.m:
       
 22605         * Misc/WebNSUserDefaultsExtras.m:
       
 22606         * Misc/WebStringTruncator.m:
       
 22607         * Panels/WebAuthenticationPanel.m:
       
 22608         (-[WebAuthenticationPanel loadNib]):
       
 22609         * Panels/WebPanelAuthenticationHandler.m:
       
 22610         * Plugins/WebBaseNetscapePluginStream.m:
       
 22611         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
 22612         (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
       
 22613         * Plugins/WebBaseNetscapePluginView.m:
       
 22614         (TSMEventHandler):
       
 22615         (-[WebBaseNetscapePluginView start]):
       
 22616         (-[WebBaseNetscapePluginView status:]):
       
 22617         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
 22618         * Plugins/WebBasePluginPackage.m:
       
 22619         * Plugins/WebNetscapePluginDocumentView.m:
       
 22620         * Plugins/WebNetscapePluginPackage.m:
       
 22621         (-[WebNetscapePluginPackage load]):
       
 22622         * Plugins/WebNetscapePluginRepresentation.m:
       
 22623         * Plugins/WebPluginContainerCheck.m:
       
 22624         * Plugins/WebPluginController.m:
       
 22625         (-[WebPluginController addPlugin:]):
       
 22626         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
       
 22627         (-[WebPluginController webPlugInContainerShowStatus:]):
       
 22628         * Plugins/WebPluginDatabase.m:
       
 22629         * Plugins/WebPluginDocumentView.m:
       
 22630         * WebCoreSupport/WebCookieAdapter.m:
       
 22631         * WebCoreSupport/WebFileButton.m:
       
 22632         * WebCoreSupport/WebFrameBridge.m:
       
 22633         (-[WebFrameBridge runModal]):
       
 22634         * WebCoreSupport/WebImageData.m:
       
 22635         (-[WebImageData _checkSolidColor:]):
       
 22636         (-[WebImageData tileInRect:fromPoint:context:]):
       
 22637         (-[WebImageData scaleAndTileInRect:fromRect:withHorizontalTileRule:withVerticalTileRule:context:]):
       
 22638         * WebCoreSupport/WebImageDecoder.m:
       
 22639         * WebCoreSupport/WebImageRenderer.m:
       
 22640         (-[WebImageRenderer TIFFRepresentation]):
       
 22641         * WebCoreSupport/WebImageRendererFactory.m:
       
 22642         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
       
 22643         * WebCoreSupport/WebKeyGenerator.m:
       
 22644         * WebCoreSupport/WebPageBridge.m:
       
 22645         * WebCoreSupport/WebSubresourceLoader.m:
       
 22646         * WebCoreSupport/WebTextRenderer.m:
       
 22647         (widthForGlyph):
       
 22648         (-[WebTextRenderer initWithFont:]):
       
 22649         (drawGlyphs):
       
 22650         (initializeATSUStyle):
       
 22651         (createATSULayoutParameters):
       
 22652         (getTextBounds):
       
 22653         (ATSU_draw):
       
 22654         * WebCoreSupport/WebTextRendererFactory.m:
       
 22655         * WebCoreSupport/WebViewFactory.m:
       
 22656         * WebKit.exp:
       
 22657         * WebKit.xcodeproj/project.pbxproj:
       
 22658         * WebKitPrefix.h:
       
 22659         * WebView/WebArchiver.m:
       
 22660         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
       
 22661         * WebView/WebClipView.m:
       
 22662         * WebView/WebDataProtocol.m:
       
 22663         * WebView/WebDataSource.m:
       
 22664         (-[WebDataSource _startLoading]):
       
 22665         * WebView/WebFormDataStream.m:
       
 22666         (formEventCallback):
       
 22667         (webSetHTTPBody):
       
 22668         * WebView/WebFrame.m:
       
 22669         (-[WebFrame _transitionToCommitted:]):
       
 22670         * WebView/WebFrameView.m:
       
 22671         * WebView/WebHTMLRepresentation.m:
       
 22672         * WebView/WebHTMLView.m:
       
 22673         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
       
 22674         (-[WebHTMLView drawSingleRect:]):
       
 22675         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
       
 22676         (-[WebHTMLView _scaleFactorForPrintOperation:]):
       
 22677         (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]):
       
 22678         (-[WebHTMLView checkSpelling:]):
       
 22679         (-[WebHTMLView showGuessPanel:]):
       
 22680         (-[WebHTMLView _changeSpellingToWord:]):
       
 22681         (-[WebHTMLView ignoreSpelling:]):
       
 22682         (-[WebHTMLView performFindPanelAction:]):
       
 22683         (-[WebTextCompleteController doCompletion]):
       
 22684         * WebView/WebImageView.m:
       
 22685         * WebView/WebLoader.m:
       
 22686         (-[NSURLProtocol connection:willCacheResponse:]):
       
 22687         * WebView/WebPDFRepresentation.m:
       
 22688         (+[WebPDFRepresentation PDFDocumentClass]):
       
 22689         * WebView/WebPDFView.m:
       
 22690         (+[WebPDFView PDFKitBundle]):
       
 22691         (+[WebPDFView PDFViewClass]):
       
 22692         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
       
 22693         * WebView/WebTextRepresentation.m:
       
 22694         * WebView/WebTextView.m:
       
 22695         * WebView/WebUnarchivingState.m:
       
 22696         * WebView/WebView.m:
       
 22697 
       
 22698 2006-04-22  Timothy Hatcher  <timothy@apple.com>
       
 22699 
       
 22700         Reviewed by Eric.
       
 22701 
       
 22702         http://bugs.webkit.org/show_bug.cgi?id=8514
       
 22703         Bug 8514: Web Inspector hides when the app is in the background
       
 22704 
       
 22705         Makes the inspector not hide in the background. Since the inspector is a floating panel
       
 22706         we need to call setFloatingPanel:NO when the app is switching into the background. Then
       
 22707         call setFloatingPanel:YES when the app is activated again. Without this the inspector
       
 22708         would float above all applications.
       
 22709 
       
 22710         * WebInspector/WebInspector.m:
       
 22711         (-[NSWindow window]): setHidesOnDeactivate:NO
       
 22712         (-[NSWindow windowWillClose:]): de-regiser appliction active notifications
       
 22713         (-[NSWindow showWindow:]): register for appliction active notifications
       
 22714         (-[WebInspector _applicationWillResignActive]): setFloatingPanel:NO
       
 22715         (-[WebInspector _applicationDidBecomeActive]): setFloatingPanel:YES
       
 22716 
       
 22717 2006-04-21  Adele Peterson  <adele@apple.com>
       
 22718 
       
 22719         Reviewed by Darin.
       
 22720 
       
 22721         - Fix for http://bugs.webkit.org/show_bug.cgi?id=8181
       
 22722         REGRESSION: After tabbing in page's field, attempting to tab from Google toolbar search to page fails on first try
       
 22723 
       
 22724         Test: manual-tests/tabbing-input-google.html
       
 22725 
       
 22726         * WebView/WebHTMLView.m: (-[WebHTMLView resignFirstResponder]):
       
 22727         When resigning first responder, reset willBecomeFirstResponderForNodeFocus, so when the WebHTMLView gets focus again
       
 22728         it knows it can start moving through the tab cycle.
       
 22729 
       
 22730 2006-04-20  Tim Omernick  <timo@apple.com>
       
 22731 
       
 22732         Reviewed by John Sullivan.
       
 22733 
       
 22734         <rdar://problem/4476875> Support printing for embedded Netscape plugins
       
 22735 
       
 22736         NOTE: This only works with the Flash plugin right now.  It appears that the other
       
 22737         major plugins either have awful printing support, or no printing support.  If someone
       
 22738         can find an example of any other embedded Netscape plugin printing in any browser on
       
 22739         the Mac, I will be happy to eat my own words!
       
 22740 
       
 22741         * Plugins/WebBaseNetscapePluginView.m:
       
 22742         (-[WebBaseNetscapePluginView drawRect:]):
       
 22743         When printing, get the printed bitmap via -_printedPluginBitmap, and draw it into the
       
 22744         plugin view.
       
 22745         (-[WebBaseNetscapePluginView _printedPluginBitmap]):
       
 22746         Call NPP_Print on the plugin to render it into a GWorld.  This GWorld has the same
       
 22747         underlying buffer as an NSBitmapImageRep, which is returned to the caller.
       
 22748 
       
 22749 2006-04-20 Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 22750 
       
 22751         Reviewed by Darin.
       
 22752 
       
 22753         WebKit part of:
       
 22754         - fix http://bugs.webkit.org/show_bug.cgi?id=8276
       
 22755           REGRESSION (NativeTextField): Pasting a Finder item into a text field results in
       
 22756             a file: URL being pasted instead of just the file name
       
 22757         - fix http://bugs.webkit.org/show_bug.cgi?id=8283
       
 22758           REGRESSION: File's path doesn't appear after dragging file into input field
       
 22759 
       
 22760         * WebView/WebHTMLView.m:
       
 22761         (-[WebHTMLView _plainTextFromPasteboard:]): Added method that tries to copy AppKit
       
 22762         text fields' logic for extracting plain text from the pasteboard.
       
 22763         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added helper method.
       
 22764         (-[WebHTMLView _shouldInsertText:replacingDOMRange:givenAction:]):
       
 22765         (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]):
       
 22766         (-[WebHTMLView readSelectionFromPasteboard:]): Paste as plain text if
       
 22767         rich text is not allowed.
       
 22768         (-[WebHTMLView validateUserInterfaceItem:]): Changed to not allow pasteAsRichText:
       
 22769         if the paste is not going to be handled by the DOM and the selection
       
 22770         does not allow pasting rich text.
       
 22771         (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Paste as plain text if
       
 22772         rich text is not allowed.
       
 22773         (-[WebHTMLView paste:]): Ditto.
       
 22774         (-[WebHTMLView pasteAsPlainText:]):
       
 22775 
       
 22776 2006-04-20  Darin Adler  <darin@apple.com>
       
 22777 
       
 22778         Reviewed by Adele.
       
 22779 
       
 22780         - WebKit part of http://bugs.webkit.org/show_bug.cgi?id=8505
       
 22781           eliminate WebCoreGraphics bridge, demonstrate new SystemInterface technique
       
 22782 
       
 22783         * WebCoreSupport/WebGraphicsBridge.h: Removed.
       
 22784         * WebCoreSupport/WebGraphicsBridge.m: Removed.
       
 22785         * WebCoreSupport/WebSystemInterface.h: Added.
       
 22786         * WebCoreSupport/WebSystemInterface.m: Added.
       
 22787 
       
 22788         * WebKit.xcodeproj/project.pbxproj: Updated for removed and added files.
       
 22789 
       
 22790         * WebCoreSupport/WebImageData.m: Removed unneeded include of WebGraphicsBridge.h.
       
 22791         * WebCoreSupport/WebImageRenderer.m: Ditto.
       
 22792         * WebCoreSupport/WebTextRenderer.m: Ditto.
       
 22793 
       
 22794         * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Guarded all the one-time
       
 22795         initialization inside a boolean, just in case some things take a little time. Added
       
 22796         a call to InitWebCoreSystemInterface to the one-time initialization here. Later, we
       
 22797         will need to add it in some other places if we call code that requires the use of
       
 22798         WebCoreSystemInterface functions from anywhere that can be invoked before creations
       
 22799         of the first WebFrameView, but for now there is no need.
       
 22800 
       
 22801 2006-04-19  James G. Speth  <speth@end.com>
       
 22802 
       
 22803         Reviewed by Timothy.
       
 22804 
       
 22805         http://bugs.webkit.org/show_bug.cgi?id=8442
       
 22806         Bug 8442: improvements to Cocoa bindings support in WebView - code simplification
       
 22807 
       
 22808         Removes the WebController class added earlier; changes NSTreeController and 
       
 22809         WebView to together without it. Now you can just bind the contentObject binding
       
 22810         of the tree controller directly to the mainFrameDocument key of the WebView.
       
 22811 
       
 22812         * WebCoreSupport/WebFrameBridge.m:
       
 22813         (-[WebFrameBridge windowObjectCleared]):
       
 22814         * WebView/WebDataSource.m:
       
 22815         (-[WebDataSource _setTitle:]):
       
 22816         * WebView/WebFrame.m:
       
 22817         (-[WebFrame _closeOldDataSources]):
       
 22818         * WebView/WebView.m:
       
 22819         (-[WebView _progressStarted:]):
       
 22820         (-[WebView _finalProgressComplete]):
       
 22821         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 22822         (-[WebView setMainFrameDocumentReady:]):
       
 22823         (-[WebView mainFrameDocument]):
       
 22824         * WebView/WebViewPrivate.h:
       
 22825 
       
 22826 2006-04-19  James G. Speth  <speth@end.com>
       
 22827 
       
 22828         Reviewed by Timothy.
       
 22829 
       
 22830         http://bugs.webkit.org/show_bug.cgi?id=6635
       
 22831         Bug 6635: Crash selecting inspector nodes for tabs that aren't foremost
       
 22832 
       
 22833         Stop observing window will close notifications before we tell the highlight window to close,
       
 22834         this prevents the crash. Also prevent drawing highlights for hidden tabs.
       
 22835 
       
 22836         * WebInspector/WebInspector.m:
       
 22837         (-[WebInspector _highlightNode:]):
       
 22838         * WebInspector/WebNodeHighlight.m:
       
 22839         (-[WebNodeHighlight expire]):
       
 22840 
       
 22841 2006-04-19  James G. Speth  <speth@end.com>
       
 22842 
       
 22843         Reviewed by Timothy.
       
 22844 
       
 22845         http://bugs.webkit.org/show_bug.cgi?id=6637
       
 22846         Bug 6637: selecting node in Inspector after closing window crashes Safari
       
 22847 
       
 22848         When the window the Web Inspector was inspecting is closed, the inspector goes into its
       
 22849         no-selection state. Choosing to inspect another element activates it again. The inspector
       
 22850         will also follow the WebView if the URL changes and select the root element on the new page.
       
 22851 
       
 22852         * WebInspector/WebInspector.m:
       
 22853         (-[NSWindow setWebFrame:]):
       
 22854         (-[NSWindow setRootDOMNode:]):
       
 22855         (-[WebInspector _revealAndSelectNodeInTree:]):
       
 22856         (-[WebInspector _update]):
       
 22857         (-[WebInspector _updateRoot]):
       
 22858         (-[WebInspector inspectedWebViewProgressFinished:]):
       
 22859         (-[WebInspector inspectedWindowWillClose:]):
       
 22860         (-[WebInspector webView:didFinishLoadForFrame:]):
       
 22861         * WebInspector/WebInspectorPanel.m:
       
 22862         (-[WebInspectorPanel canBecomeMainWindow]):
       
 22863 
       
 22864 2006-04-18  Darin Adler  <darin@apple.com>
       
 22865 
       
 22866         Reviewed by Beth.
       
 22867 
       
 22868         * WebInspector/webInspector/inspector.css: Add "-webkit-" prefixes to the border
       
 22869         radius properties to make the corners rounded again.
       
 22870 
       
 22871 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 22872 
       
 22873         Reviewed by Darin.
       
 22874 
       
 22875         - WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=8324
       
 22876           REGRESSION: textarea :focus not applied immediately
       
 22877 
       
 22878         * WebCoreSupport/WebFrameBridge.m:
       
 22879         (-[WebFrameBridge formControlIsBecomingFirstResponder:]): Added. Calls the ancestor
       
 22880         WebHTMLView's _formControlIsBecomingFirstResponder:
       
 22881         * WebView/WebHTMLView.m:
       
 22882         (-[WebHTMLView _updateFocusState:]): If a descendant is becoming first responder,
       
 22883         enable focused appearance.
       
 22884         (-[WebHTMLView _formControlIsBecomingFirstResponder:]): Added. Calls _updateFocusState,
       
 22885         causing the frame to display with focus attributes.
       
 22886         * WebView/WebHTMLViewInternal.h:
       
 22887 
       
 22888 2006-04-14  James G. Speth  <speth@end.com>
       
 22889 
       
 22890         Reviewed by Timothy.
       
 22891 
       
 22892         Bug 8389: support for Cocoa bindings - binding an NSTreeController to the WebView's DOM
       
 22893         http://bugs.webkit.org/show_bug.cgi?id=8389
       
 22894 
       
 22895         Added a controller class, WebController, that is a subclass of
       
 22896         NSTreeController that has a new outlet/binding for the WebView.
       
 22897 
       
 22898         * WebCoreSupport/WebFrameBridge.m:
       
 22899         (-[WebFrameBridge windowObjectCleared]): notify bindings about the document change
       
 22900         * WebView/WebView.m:
       
 22901         (-[WebView _progressStarted:]): notify bindings about the document change
       
 22902         (-[WebView _finalProgressComplete]): notify bindings about the document change
       
 22903         (-[WebView _declaredKeys]): added a key for the main frame document
       
 22904         (-[WebController init]):
       
 22905         (-[WebController exposedBindings]):
       
 22906         (-[WebController valueClassForBinding:]):
       
 22907         (-[WebController setContent:]):
       
 22908         (-[WebController webView]):
       
 22909         (-[WebController setWebView:]):
       
 22910         (-[WebView mainFrameDocument]): get the main frame's DOMDocument
       
 22911         * WebView/WebViewPrivate.h: Adds mainFrameDocument to pending public.
       
 22912 
       
 22913 2006-04-12  David Harrison  <harrison@apple.com>
       
 22914 
       
 22915         Reviewed by Darin.
       
 22916         
       
 22917         <rdar://problem/4386640> AX: AXPreviousSentenceStartTextMarkerForTextMarker does not respect paragraph boundary
       
 22918         <rdar://problem/4414575> AX: Dictionary popup cannot find some words on Dictionary.app
       
 22919         
       
 22920         (see related changes in WebCore)
       
 22921         
       
 22922         Tests added:
       
 22923         * editing/selection/extend-by-sentence-001.html: Added.
       
 22924         * fast/dom/inner-text-001.html: Added.
       
 22925 
       
 22926         * WebView/WebHTMLView.m:
       
 22927         (-[WebHTMLView validateUserInterfaceItem:]):
       
 22928         (-[WebHTMLView moveToBeginningOfSentence:]):
       
 22929         (-[WebHTMLView moveToBeginningOfSentenceAndModifySelection:]):
       
 22930         (-[WebHTMLView moveToEndOfSentence:]):
       
 22931         (-[WebHTMLView moveToEndOfSentenceAndModifySelection:]):
       
 22932         (-[WebHTMLView selectSentence:]):
       
 22933         * WebView/WebView.m:
       
 22934         * WebView/WebViewPrivate.h:
       
 22935         Add sentence navigation and selection.
       
 22936 
       
 22937 2006-04-12  Tim Omernick  <timo@apple.com>
       
 22938 
       
 22939         Reviewed by Darin.
       
 22940 
       
 22941         Part of <rdar://problem/4482530>
       
 22942 
       
 22943         * WebView/WebView.m:
       
 22944         (-[WebView _focusedFrame]):
       
 22945         Fixed up the logic here to take into account immediate subviews of WebView, which are not actually in a WebFrameView
       
 22946         (they are peers to the main frame's WebFrameView).
       
 22947 
       
 22948 2006-04-10  John Sullivan  <sullivan@apple.com>
       
 22949 
       
 22950         Reviewed by Tim Omernick.
       
 22951         
       
 22952         - fixed <rdar://problem/4139799> Seed: Safari: Private Browsing leaves traces in Icon Cache
       
 22953         
       
 22954         * Misc/WebIconDatabasePrivate.h:
       
 22955         new ivars: pageURLsBoundDuringPrivateBrowsing, iconURLsBoundDuringPrivateBrowsing, and privateBrowsingEnabled
       
 22956 
       
 22957         * Misc/WebIconDatabase.m:
       
 22958         (-[NSMutableDictionary init]):
       
 22959         initialize new ivars, and listen for notifications that WebPreferences changed so we can react to changes
       
 22960         to private browsing.
       
 22961         (-[NSMutableDictionary iconForURL:withSize:cache:]):
       
 22962         Don't remove icon URL from extraRetain dictionary; that's now done in _forgetIconForIconURLString. (I left a
       
 22963         comment here earlier about why I was worried about this change, but I convinced myself that it's fine.)
       
 22964         (-[WebIconDatabase removeAllIcons]):
       
 22965         Removed no-longer-true (and never very clear) comment, and braces. Also remove all objects from the two
       
 22966         private-browsing-related dictionaries.
       
 22967         (-[WebIconDatabase _setIcon:forIconURL:]):
       
 22968         remember icon URL if private browsing is enabled
       
 22969         (-[WebIconDatabase _setHaveNoIconForIconURL:]):
       
 22970         remember icon URL if private browsing is enabled
       
 22971         (-[WebIconDatabase _setIconURL:forURL:]):
       
 22972         added an assert that helped me out at one point
       
 22973         (-[WebIconDatabase _clearDictionaries]):
       
 22974         clear the two new dictionaries too
       
 22975         (-[WebIconDatabase _loadIconDictionaries]):
       
 22976         made an existing ERROR not fire in the expected case where there are no icons at all on disk
       
 22977         (-[WebIconDatabase _updateFileDatabase]):
       
 22978         when saving the pageURLToIconURL dictionary to disk, first remove any values that were created during
       
 22979         private browsing
       
 22980         (-[WebIconDatabase _retainIconForIconURLString:]):
       
 22981         skip the code that deals with saving changes to disk if private browsing is enabled
       
 22982         (-[WebIconDatabase _forgetIconForIconURLString:]):
       
 22983         Remove the icon URL from extraRetain dictionary here. We're forgetting everything about this icon URL
       
 22984         so we should forget its former extraRetain count too.
       
 22985         (-[WebIconDatabase _resetCachedWebPreferences:]):
       
 22986         Cache the new value of private browsing. If it has now been turned off, forget everything we learned
       
 22987         while it was on. This causes (e.g.) icons for bookmarks or pre-existing history items to be forgotten
       
 22988         if the icon was only learned during private browsing.
       
 22989 
       
 22990         * History/WebHistoryItem.m:
       
 22991         removed an unnecessary #import I happened to notice
       
 22992         
       
 22993 2006-04-10  David Hyatt  <hyatt@apple.com>
       
 22994 
       
 22995         Make the broken CG focus ring painting work when WebCore sets a clip
       
 22996         (in addition to respecting the dirty rect clip).
       
 22997 
       
 22998         Reviewed by darin
       
 22999 
       
 23000         * WebCoreSupport/WebGraphicsBridge.m:
       
 23001         (-[WebGraphicsBridge drawFocusRingWithPath:radius:color:clipRect:]):
       
 23002 
       
 23003 2006-04-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 23004 
       
 23005         Reviewed by Darin.
       
 23006 
       
 23007         - fix http://bugs.webkit.org/show_bug.cgi?id=8100
       
 23008           REGRESSION (NativeTextField): Right-aligned and RTL text jitters in new text fields
       
 23009 
       
 23010         * WebCoreSupport/WebTextRenderer.m:
       
 23011         (overrideLayoutOperation): For RTL runs, apply the word-rounding on the left.
       
 23012         (CG_floatWidthForRun): For RTL runs, apply the last character's rounding
       
 23013         on the left by adjusting the start position.
       
 23014         (initializeWidthIterator): Added finalRoundingWidth field to WidthIterator.
       
 23015         (advanceWidthIterator): For RTL runs, apply rounding on the left of the character,
       
 23016         by increasing the width of the next character (which is the character to the left). For
       
 23017         the last character, keep the rounding width in the iterator's finalRoundingWidth, to be used by
       
 23018         CG_floatWidthForRun().
       
 23019 
       
 23020 2006-04-08  John Sullivan  <sullivan@apple.com>
       
 23021 
       
 23022         Reviewed by Adele Peterson.
       
 23023 
       
 23024         - fixed http://bugs.webkit.org/show_bug.cgi?id=8260
       
 23025         REGRESSION: Assertion failure: ![_private->iconsToSaveWithURLs containsObject:iconURLString] 
       
 23026         in WebIconDatabase.m:695-[WebIconDatabase(WebInternal) _retainIconForIconURLString:]
       
 23027 
       
 23028         * Misc/WebIconDatabase.m:
       
 23029         (-[WebIconDatabase _retainIconForIconURLString:]):
       
 23030         This new assertion was one block too high; moved it in.
       
 23031 
       
 23032 2006-04-07  David Hyatt  <hyatt@apple.com>
       
 23033 
       
 23034         A fix that makes coalesced updates work much better (and makes our
       
 23035         single animated GIF timer work better).  The new rect painting algorithm
       
 23036         for WebHTMLView will use the single unioned rect if the # of rects exceeds
       
 23037         a threshold (10 is my initial cut), or if the union has enough "wasted"
       
 23038         additional pixels (conservatively set at 75%).
       
 23039 
       
 23040         Reviewed by darin
       
 23041 
       
 23042         * WebView/WebHTMLView.m:
       
 23043         (-[WebHTMLView drawSingleRect:]):
       
 23044         (-[WebHTMLView drawRect:]):
       
 23045 
       
 23046 2006-04-07  Maciej Stachowiak  <mjs@apple.com>
       
 23047 
       
 23048         Reviewed by Darin.
       
 23049         
       
 23050         - simplify archive loading
       
 23051 
       
 23052         * WebView/WebDataSource.m:
       
 23053         (-[WebDataSource representation]): fix whitespace
       
 23054         * WebView/WebHTMLRepresentation.m:
       
 23055         (-[WebHTMLRepresentation loadArchive]): Use WebFrame's loadArchive: instead
       
 23056         of trying to do a manual load here.
       
 23057         (-[WebHTMLRepresentation documentSource]): No more special case for WebArchive.
       
 23058 
       
 23059 2006-04-07  John Sullivan  <sullivan@apple.com>
       
 23060 
       
 23061         Reviewed by Tim Omernick.
       
 23062         
       
 23063         - fixed <rdar://problem/4507054> If an icon file is removed from disk behind Safari's back, 
       
 23064         Safari will not try to refetch it
       
 23065         
       
 23066         In addition to letting WebIconDatabase recover from disk/memory mismatches as per 4507054, I also found
       
 23067         a bug in the way icons are remembered that could account for some of the other cases where
       
 23068         site icons didn't appear (and you'd get an ERROR on debug builds about WebIconDatabase saying it
       
 23069         had some icon when it really doesn't).
       
 23070 
       
 23071         * Misc/WebIconDatabase.m:
       
 23072         (-[WebIconDatabase iconForURL:withSize:cache:]):
       
 23073         When the icon file for a previously-saved site icon isn't found, forget about the darn icon URL thoroughly
       
 23074         so that this situation is self-correcting. Formerly, once you got into this state WebKit would never find
       
 23075         the icon again (short of removing the entire icon database cleanly). Note that this does *not* change
       
 23076         the behavior of sites that didn't have a site icon when WebKit checked -- these will continue to not
       
 23077         return a site icon indefinitely (that's a separate, possibly performance-sensitive issue).
       
 23078         (-[WebIconDatabase _retainIconForIconURLString:]):
       
 23079         This code did the wrong thing in the case where an icon was in the process of being forgotten about. In
       
 23080         that case, the icon would still be in _private->iconsOnDiskWithURLs, so we wouldn't try to save it here,
       
 23081         so the new icon wouldn't stick.
       
 23082 
       
 23083 2006-04-07  David Hyatt  <hyatt@apple.com>
       
 23084 
       
 23085         Re-enable coalesced updates.  Our move to a single timer has essentially
       
 23086         implemented coalescing of updates anyway, so the regression has already
       
 23087         come back.  Since we have to deal with that now anyway, there's no reason
       
 23088         to visually tear also. :)
       
 23089 
       
 23090         Reviewed by darin
       
 23091 
       
 23092         * ChangeLog:
       
 23093         * WebView/WebView.m:
       
 23094         (-[WebView _commonInitializationWithFrameName:groupName:]):
       
 23095 
       
 23096 2006-04-05  Darin Adler  <darin@apple.com>
       
 23097 
       
 23098         - fixed a storage leak from that last check-in
       
 23099 
       
 23100         * WebView/WebUnarchivingState.m: (-[WebUnarchivingState dealloc]):
       
 23101         Release the two dictionaries.
       
 23102 
       
 23103 2006-04-05  Maciej Stachowiak  <mjs@apple.com>
       
 23104 
       
 23105         Reviewed by Eric.
       
 23106         
       
 23107         - start on factoring WebArchive unpacking more into a separate class.
       
 23108         http://bugs.webkit.org/show_bug.cgi?id=8208
       
 23109         
       
 23110         * WebKit.xcodeproj/project.pbxproj:
       
 23111         * WebView/WebDataSource.m:
       
 23112         (-[WebDataSourcePrivate dealloc]):
       
 23113         (-[WebDataSource _addToUnarchiveState:]):
       
 23114         (-[WebDataSource _popSubframeArchiveWithName:]):
       
 23115         (-[WebDataSource _documentFragmentWithArchive:]):
       
 23116         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 23117         (-[WebDataSource subresourceForURL:]):
       
 23118         * WebView/WebDataSourcePrivate.h:
       
 23119         * WebView/WebFrame.m:
       
 23120         (-[WebFrame _loadRequest:archive:]):
       
 23121         (-[WebFrame loadRequest:]):
       
 23122         (-[WebFrame loadArchive:]):
       
 23123         * WebView/WebFramePrivate.h:
       
 23124         * WebView/WebHTMLRepresentation.m:
       
 23125         (-[WebHTMLRepresentation loadArchive]):
       
 23126         * WebView/WebUnarchivingState.h: Added.
       
 23127         * WebView/WebUnarchivingState.m: Added.
       
 23128         (-[WebUnarchivingState init]):
       
 23129         (-[WebUnarchivingState addArchive:]):
       
 23130         (-[WebUnarchivingState archivedResourceForURL:]):
       
 23131         (-[WebUnarchivingState popSubframeArchiveWithFrameName:]):
       
 23132 
       
 23133 2006-04-04  Timothy Hatcher  <timothy@apple.com>
       
 23134 
       
 23135         Reviewed by Darin.
       
 23136 
       
 23137         The Debug and Release frameworks are now built with install paths relative to the build products directory.
       
 23138         This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore. 
       
 23139 
       
 23140         * WebKit.xcodeproj/project.pbxproj:
       
 23141 
       
 23142 2006-04-04  John Sullivan  <sullivan@apple.com>
       
 23143 
       
 23144         Reviewed by Adele Peterson.
       
 23145 
       
 23146         - WebKit part of <rdar://problem/4498418> "Autosaved" searchterms are saved during private browsing
       
 23147 
       
 23148         * WebView/WebView.m:
       
 23149         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
 23150         Pass private browsing setting down to WebCore.
       
 23151 
       
 23152 2006-04-03  John Sullivan  <sullivan@apple.com>
       
 23153 
       
 23154         Reviewed by Tim Hatcher.
       
 23155         
       
 23156         - re-fixed <rdar://problem/4481198> REGRESSION (TOT): search results list in bookmarks view 
       
 23157         remains when search text is deleted
       
 23158 
       
 23159         * WebView/WebView.m:
       
 23160         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 23161         I fixed this recently, but then broke it again by adding an early bail-out to this method. So
       
 23162         now I'm removing the early bail-out.
       
 23163 
       
 23164 2006-04-02  Trey Matteson  <trey@usa.net>
       
 23165 
       
 23166         Reviewed by Maciej.
       
 23167 
       
 23168         fix http://bugs.webkit.org/show_bug.cgi?id=8121
       
 23169         REGRESSION: 404s are not displayed
       
 23170 
       
 23171         * WebView/WebMainResourceLoader.m:
       
 23172         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 23173         Only cancel failed loads for object elements, not for frames or a whole page.
       
 23174 
       
 23175 2006-04-02  Maciej Stachowiak  <mjs@apple.com>
       
 23176 
       
 23177         Reviewed by Hyatt.
       
 23178 
       
 23179         - fixed <rdar://problem/4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
       
 23180         - fixed <rdar://problem/4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
       
 23181         (http://bugs.webkit.org/show_bug.cgi?id=6811)
       
 23182         - fixed tab and shift tab don't select the right things
       
 23183         http://bugs.webkit.org/show_bug.cgi?id=5685
       
 23184 
       
 23185         * WebCoreSupport/WebFrameBridge.m:
       
 23186         (-[WebFrameBridge willMakeFirstResponderForNodeFocus]): New method
       
 23187         - let WebHTMLView know that the next time it becomes first
       
 23188         responder, it's to change focus within the page and the right node
       
 23189         has already been set, so it should not move focus forward or
       
 23190         backward inside it.
       
 23191         * WebView/WebHTMLView.m:
       
 23192         (-[WebHTMLView needsPanelToBecomeKey]): Override to return YES, oddly enough this
       
 23193         is the right way to tell AppKit that you should be in the tab cycle loop.
       
 23194         (-[WebHTMLView becomeFirstResponder]): Don't move forward or back in tab cycle
       
 23195         when this becomeFirstResponder is for tabbing from a control in the page.
       
 23196         (-[WebHTMLView _willMakeFirstResponderForNodeFocus]): Note that the next
       
 23197         time this view becomes first responder, it will be for in-page focus 
       
 23198         navigation.
       
 23199         * WebView/WebHTMLViewInternal.h:
       
 23200 
       
 23201 2006-04-01  Darin Adler  <darin@apple.com>
       
 23202 
       
 23203         Reviewed by Maciej.
       
 23204 
       
 23205         - fix http://bugs.webkit.org/show_bug.cgi?id=8105
       
 23206           REGRESSION (NativeTextField): Option-delete deletes one space before the deleted word
       
 23207 
       
 23208         Test: fast/forms/input-text-option-delete.html
       
 23209 
       
 23210         * WebView/WebHTMLView.m:
       
 23211         (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Pass NO for
       
 23212         smartDeleteOK. Smart deletion only applies to deleting a word at a time, and none of
       
 23213         the callers of this function that delete a word at a time want smart deletion.
       
 23214         (-[WebHTMLView deleteToEndOfLine:]): Fixed tiny formatting glitch.
       
 23215 
       
 23216 2006-03-31  Timothy Hatcher  <timothy@apple.com>
       
 23217 
       
 23218         Reviewed by Darin.
       
 23219 
       
 23220         We need to set reachedTerminalState to YES before we release
       
 23221         the resources to prevent a double dealloc of WebView
       
 23222 
       
 23223         Fixes <rdar://problem/4372628> crash deallocating a WebView in -[WebFrame stopLoading]
       
 23224 
       
 23225         * WebView/WebLoader.m:
       
 23226         (-[NSURLProtocol releaseResources]): set reachedTerminalState earlier
       
 23227 
       
 23228 2006-03-31  John Sullivan  <sullivan@apple.com>
       
 23229 
       
 23230         Reviewed by Tim Omernick.
       
 23231         
       
 23232         Some cleanup in the WebIconDatabase code in a fruitless search for the cause
       
 23233         of the mysterious -[WebFileDatabase performSetObject:forKey] crash
       
 23234 
       
 23235         * Misc/WebIconDatabase.m:
       
 23236         (-[WebIconDatabase _createFileDatabase]):
       
 23237         removed obsolete comment
       
 23238         (-[WebIconDatabase _loadIconDictionaries]):
       
 23239         Added ERRORs for unexpected early returns. Made dictionaries be autoreleased until
       
 23240         the end of the method where they are retained, so that the early returns don't leak;
       
 23241         added ASSERTs that the _private->dictionary values aren't being leaked.
       
 23242         (-[WebIconDatabase _updateFileDatabase]):
       
 23243         Added an ERROR for an unexpected early return, and made a trivial style fix.
       
 23244 
       
 23245 2006-03-31  Trey Matteson  <trey@usa.net>
       
 23246 
       
 23247         Reviewed by Maciej, landed by ap.
       
 23248 
       
 23249         http://bugs.webkit.org/show_bug.cgi?id=7739
       
 23250         REGRESSION: Assertion failure loading acid2 test in -[WebCoreFrameBridge installInFrame:]
       
 23251 
       
 23252         Tests: http/tests/misc/acid2.html, http/tests/misc/acid2-pixel.html
       
 23253 
       
 23254         The gist of this change is that we must cancel the load from the Webkit side when we
       
 23255         realize we're switching to the fallback content.  This is somewhat a temp workaround
       
 23256         since control of loading will be moving to WebCore.
       
 23257 
       
 23258         * WebView/WebMainResourceLoader.m:
       
 23259         (-[WebMainResourceLoader continueAfterContentPolicy:response:]):
       
 23260 
       
 23261 2006-03-30  Justin Garcia  <justin.garcia@apple.com>
       
 23262 
       
 23263         Reviewed by darin
       
 23264         
       
 23265         http://bugs.webkit.org/show_bug.cgi?id=6989
       
 23266         REGRESSION: Plain-text mode needed for contenteditable area used in new text field
       
 23267 
       
 23268         * WebView/WebHTMLView.m:
       
 23269         (-[WebHTMLView _canEditRichly]): Added.
       
 23270         (-[WebHTMLView _canIncreaseSelectionListLevel]): Use _canEditRichly
       
 23271         (-[WebHTMLView _canDecreaseSelectionListLevel]): Ditto.
       
 23272         (-[WebHTMLView _increaseSelectionListLevel]):
       
 23273         (-[WebHTMLView _decreaseSelectionListLevel]):
       
 23274         (-[WebHTMLView validateUserInterfaceItem:]): 
       
 23275         Split rich text editing actions off from ones that can be applied anywhere.
       
 23276         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
       
 23277         (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]):
       
 23278         (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
       
 23279         * WebView/WebHTMLViewPrivate.h:
       
 23280 
       
 23281 2006-03-29  Tim Omernick  <timo@apple.com>
       
 23282 
       
 23283         Reviewed by John Sullivan.
       
 23284 
       
 23285         <rdar://problem/4495316> REGRESSION (420+): After page has loaded, spinning progress indicator is displayed on
       
 23286         tab at versiontracker.com
       
 23287 
       
 23288         * WebView/WebFrame.m:
       
 23289         (-[WebFrame _receivedMainResourceError:]):
       
 23290         Call -_clientRedirectCancelledOrFinished: here so that the frame load delegate is notified that the redirect's
       
 23291         status has changed, if there was a redirect.  The frame load delegate may have saved some state about
       
 23292         the redirect in its -webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:.  Since we are definitely
       
 23293         not going to use this provisional resource, as it was cancelled, notify the frame load delegate that the redirect
       
 23294         has ended.
       
 23295         The fix for 4432562 was similar to this, but only took care of the case where the redirect load was actually
       
 23296         committed to the frame.  The new call to -_clientRedirectCancelledOrFinished: handles the case where the redirect
       
 23297         load was successful, but was not committed.  This happens with downloads.
       
 23298         
       
 23299 2006-03-29  John Sullivan  <sullivan@apple.com>
       
 23300 
       
 23301         Reviewed by Tim Omernick.
       
 23302         
       
 23303         - fixed these bugs:
       
 23304         <rdar://problem/4483806> REGRESSION (417.8-TOT): PDFs don't scale correctly with auto-size (5356)
       
 23305         <rdar://problem/3874856> Safari PDF display should be full width by default rather than 
       
 23306         sized to show the entire page
       
 23307 
       
 23308         * WebView/WebPDFRepresentation.m:
       
 23309         (-[WebPDFRepresentation finishedLoadingWithDataSource:]):
       
 23310         Let the WebPDFView handle setting the document, because that's the best time to apply
       
 23311         the sizing-related preferences.
       
 23312         
       
 23313         * WebView/WebPDFView.h:
       
 23314         eliminated firstLayoutDone ivar and -PDFSubview public method; added -setPDFDocument:
       
 23315         
       
 23316         * WebView/WebPDFView.m:
       
 23317         (-[WebPDFView initWithFrame:]):
       
 23318         eliminate use of obsolete firstLayoutDone ivar
       
 23319         (-[WebPDFView _applyPDFDefaults]):
       
 23320         renamed from _readPDFDefaults for clarity
       
 23321         (-[WebPDFView layout]):
       
 23322         removed code that applied the preferences here. This was too early to handle auto-sizing correctly,
       
 23323         because -layout can be called before the document exists, and calling setAutoSize:YES at that
       
 23324         point confuses PDFView into setting the scale factor to 20 (the maximum).
       
 23325         (-[WebPDFView setPDFDocument:]):
       
 23326         New method, does what WebPDFRepresentation used to do and also applies the preferences here.
       
 23327         This is a good place to apply them because the document is guaranteed to now exist (of course).
       
 23328         (-[WebPDFView PDFSubview]):
       
 23329         Moved this into a new FileInternal category because it's still needed by another class in
       
 23330         this file but no longer needs to be public.
       
 23331         
       
 23332         * WebView/WebPreferences.m:
       
 23333         (+[WebPreferences initialize]):
       
 23334         Change WebKitPDFScaleFactorPreferenceKey to 0, which represents auto-size. This fixes 3874856,
       
 23335         but wasn't feasible until 4483806 was fixed.
       
 23336 
       
 23337 2006-03-28  Darin Adler  <darin@apple.com>
       
 23338 
       
 23339         Reviewed by Geoff.
       
 23340 
       
 23341         - added a build step that checks for init routines
       
 23342 
       
 23343         * WebKit.xcodeproj/project.pbxproj: Added a custom build phase that invokes the
       
 23344         check-for-global-initializers script.
       
 23345 
       
 23346 2006-03-28  Tim Omernick  <timo@apple.com>
       
 23347 
       
 23348         Reviewed by Darin.
       
 23349 
       
 23350         <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
       
 23351 
       
 23352         * Plugins/WebBaseNetscapePluginView.m:
       
 23353         (-[WebBaseNetscapePluginView initWithFrame:]):
       
 23354         Don't observe preferences changes here -- we only want to observe preferences while the view is 
       
 23355         installed in the view hierarchy.  Plugins will appropriately start and stop themselves when added to
       
 23356         or removed from a window.
       
 23357         (-[WebBaseNetscapePluginView dealloc]):
       
 23358         Don't remove observers here -- they should have been removed when the view was removed from its
       
 23359         window.
       
 23360         (-[WebBaseNetscapePluginView finalize]):
       
 23361         ditto
       
 23362         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
       
 23363         Stop observing preferences when the view is removed from its window.
       
 23364         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
       
 23365         Start observing preferences when the view is added to a window.
       
 23366 
       
 23367 2006-03-27  Tim Omernick  <timo@apple.com>
       
 23368 
       
 23369         Reviewed by Eric.
       
 23370 
       
 23371         <rdar://problem/3694090> -[WebBaseNetscapePluginView finalize] is incorrect; design change needed
       
 23372 
       
 23373         * ChangeLog:
       
 23374         * Plugins/WebBaseNetscapePluginView.m:
       
 23375         (-[WebBaseNetscapePluginView dealloc]):
       
 23376         Instead of calling -stop, assert that the plugin is not running.  A plugin view cannot be deallocated
       
 23377         until it is removed from its window.  When a plugin view is removed from its window, it calls -stop
       
 23378         on itself.  Therefore I believe that this call to -stop is unnecessary; if I'm wrong, then the
       
 23379         assertion will help catch any edge cases.
       
 23380         (-[WebBaseNetscapePluginView finalize]):
       
 23381         ditto
       
 23382 
       
 23383 2006-03-27  Tim Omernick  <timo@apple.com>
       
 23384 
       
 23385         Reviewed by Eric.
       
 23386 
       
 23387         <rdar://problem/3694086> -[WebBaseNetscapePluginStream finalize] is incorrect; design change needed
       
 23388 
       
 23389         * Plugins/WebBaseNetscapePluginStream.m:
       
 23390         (-[WebBaseNetscapePluginStream dealloc]):
       
 23391         Assert that the stream file path either never existed, or was deleted and NULL-ed out.  The stream file
       
 23392         is now deleted immediately after calling NPP_StreamAsFile().
       
 23393         (-[WebBaseNetscapePluginStream finalize]):
       
 23394         ditto
       
 23395         (-[WebBaseNetscapePluginStream _destroyStream]):
       
 23396         Delete the file after calling NPP_StreamAsFile(), instead of in -dealloc/-finalize.  It should be OK
       
 23397         to delete the file here -- NPP_StreamAsFile() is always called immediately before NPP_DestroyStream()
       
 23398         (the stream destruction function), so there can be no expectation that a plugin will read the stream file
       
 23399         asynchronously after NPP_StreamAsFile() is called.
       
 23400 
       
 23401 2006-03-27  Tim Omernick  <timo@apple.com>
       
 23402 
       
 23403         Reviewed by Eric.
       
 23404 
       
 23405         <rdar://problem/3694093> -[WebBasePluginPackage finalize] is incorrect; design change needed
       
 23406 
       
 23407         Call -unload on plug-in packages instead of relying on -dealloc/-finalize to do it.  Currently
       
 23408         the only place plug-in packages are deallocated is when refreshing the set of plugins, as when
       
 23409         handling JavaScript's navigator.plugins.refresh().
       
 23410 
       
 23411         * Plugins/WebBasePluginPackage.m:
       
 23412         (-[WebBasePluginPackage dealloc]):
       
 23413         Assert that the plug-in has been unloaded by the time -dealloc is called.
       
 23414         (-[WebBasePluginPackage finalize]):
       
 23415         ditto
       
 23416 
       
 23417         * Plugins/WebPluginDatabase.m:
       
 23418         (-[WebPluginDatabase refresh]):
       
 23419         Call -unload on the plug-in packages before releasing them.
       
 23420 
       
 23421 2006-03-27  Tim Omernick  <timo@apple.com>
       
 23422 
       
 23423         Reviewed by Tim Hatcher.
       
 23424 
       
 23425         Part of <rdar://problem/4448350> Deprecated ObjC language API used in JavaScriptCore, WebCore,
       
 23426         WebKit and WebBrowser
       
 23427 
       
 23428         * Carbon/HIViewAdapter.h:
       
 23429         HIViewAdapter is no longer an NSView subclass, since we no longer pose it as NSView.
       
 23430         * Carbon/HIViewAdapter.m:
       
 23431         (+[NSView bindHIViewToNSView:nsView:]):
       
 23432         Replace individual NSView methods instead of posing as NSView.
       
 23433         (_webkit_NSView_setNeedsDisplay):
       
 23434         Replacement implementation of -[NSView setNeedsDisplay:].
       
 23435         (_webkit_NSView_setNeedsDisplayInRect):
       
 23436         Replacement implementation of -[NSView setNeedsDisplayInRect:]
       
 23437         (_webkit_NSView_nextValidKeyView):
       
 23438         Replacement implementation of -[NSView nextValidKeyView]
       
 23439 
       
 23440 2006-03-27  John Sullivan  <sullivan@apple.com>
       
 23441 
       
 23442         Reviewed by Darin Adler.
       
 23443         
       
 23444         Removed two overzealous assertions that the steps to reproduce 4451831 were running into.
       
 23445         Improved comments to match.
       
 23446 
       
 23447         * WebCoreSupport/WebFrameBridge.m:
       
 23448         (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
       
 23449         Remove assertion that _inNextKeyViewOutsideWebFrameViews should always be false here.
       
 23450         
       
 23451         * WebView/WebHTMLView.m:
       
 23452         (-[WebHTMLView nextValidKeyView]):
       
 23453         Removed assertion that the frame should never be the main frame here.
       
 23454 
       
 23455 2006-03-27  Tim Omernick  <timo@apple.com>
       
 23456 
       
 23457         Reviewed by Tim Hatcher.
       
 23458 
       
 23459         Removed tabs & reformatted code.
       
 23460         
       
 23461         * Carbon/HIViewAdapter.m:
       
 23462         (+[NSView bindHIViewToNSView:nsView:]):
       
 23463         (+[NSView getHIViewForNSView:]):
       
 23464         (+[NSView unbindNSView:]):
       
 23465         (-[NSView setNeedsDisplay:]):
       
 23466         (-[NSView setNeedsDisplayInRect:]):
       
 23467         (-[NSView nextValidKeyView]):
       
 23468         (SetViewNeedsDisplay):
       
 23469 
       
 23470 2006-03-26  Justin Garcia  <justin.garcia@apple.com>
       
 23471 
       
 23472         Reviewed by darin
       
 23473         
       
 23474         <http://bugs.webkit.org/show_bug.cgi?id=7974>
       
 23475         Add EditActions and WebUndoActions for CreateLink and Unlink
       
 23476 
       
 23477         * English.lproj/Localizable.strings:
       
 23478         * WebCoreSupport/WebFrameBridge.m:
       
 23479         (-[WebFrameBridge nameForUndoAction:]):
       
 23480 
       
 23481 2006-03-23  Tim Omernick  <timo@apple.com>
       
 23482 
       
 23483         Reviewed by John Sullivan.
       
 23484 
       
 23485         At John's suggestion, renamed a private WebFrame method and tightened up some of the redirect logic I recently touched.
       
 23486 
       
 23487         * WebView/WebFramePrivate.h:
       
 23488         Renamed -_clientRedirectCancelled: to -_clientRedirectCancelledOrFinished:, since we call this both when a redirect is
       
 23489         cancelled and when a redirect is successfully committed.
       
 23490         * WebCoreSupport/WebFrameBridge.m:
       
 23491         (-[WebFrameBridge reportClientRedirectCancelled:]):
       
 23492         Call renamed WebFrame method.
       
 23493         * WebView/WebFrame.m:
       
 23494         Added sentRedirectNotification flag to WebFramePrivate.  This flag is set when we notify the frame load delegate that a
       
 23495         redirect will occur.  We check this flag when committing a provisional load to ensure that the frame load delegate is
       
 23496         notified that the redirect finished.
       
 23497         (-[WebFrame _commitProvisionalLoad:]):
       
 23498         After committing a provisional load, make sure that the frame load delegate is notified that there is no longer a pending
       
 23499         redirect.
       
 23500         (-[WebFrame _clientRedirectedTo:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
       
 23501         Set the new sentRedirectNotification flag.
       
 23502         (-[WebFrame _clientRedirectCancelledOrFinished:]):
       
 23503         Renamed method.
       
 23504         Clear the sentRedirectNotification flag.
       
 23505         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 23506         Call renamed method.
       
 23507 
       
 23508 2006-03-23  Tim Omernick  <timo@apple.com>
       
 23509 
       
 23510         Reviewed by John Sullivan.
       
 23511 
       
 23512         <rdar://problem/4439752> TinyMCE: "Search in Google" context menu is active but fails to work when selection is active
       
 23513         in textarea field.
       
 23514 
       
 23515         * DefaultDelegates/WebDefaultContextMenuDelegate.m:
       
 23516         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
       
 23517         Added a representedObject parameter, which is set on the newly created menu item.
       
 23518         (-[WebDefaultUIDelegate contextMenuItemsForElement:defaultMenuItems:]):
       
 23519         Instead of setting the representedObject on each menu item after creating them all, pass the element to
       
 23520         -menuItemWithTag:target:representedObject:.
       
 23521         (-[WebDefaultUIDelegate editingContextMenuItemsForElement:defaultMenuItems:]):
       
 23522         ditto.  This fixes 4439752 because this method failed to set the representedObject on the menu items as
       
 23523         -contextMenuItemsForElement:defaultMenuItems: did.
       
 23524 
       
 23525 2006-03-23  Darin Adler  <darin@apple.com>
       
 23526 
       
 23527         Reviewed by Eric.
       
 23528 
       
 23529         - fix <rdar://problem/4380465> repro crash when unsuccessfully attempting to import image from Services menu
       
 23530 
       
 23531         * WebView/WebDataSource.m:
       
 23532         (-[WebDataSource _imageElementWithImageResource:]): Quietly do nothing if passed nil.
       
 23533         (-[WebDataSource _documentFragmentWithImageResource:]): Ditto.
       
 23534 
       
 23535 2006-03-22  Tim Omernick  <timo@apple.com>
       
 23536 
       
 23537         Reviewed by Kevin Decker.
       
 23538 
       
 23539         Even better fix for <rdar://problem/4432562>.  We need to notify the frame delegate of a finished redirect for both
       
 23540         "fast" and "slow" redirects, after committing the load.  My previous change only notified for "fast", history-locking
       
 23541         redirects.  Now we notify the frame delegate after committing any kind of provisional load, not just in the case of
       
 23542         a fast redirect.
       
 23543 
       
 23544         * WebView/WebFrame.m:
       
 23545         (-[WebFrame _transitionToCommitted:]):
       
 23546         (-[WebFrame _commitProvisionalLoad:]):
       
 23547 
       
 23548 2006-03-22  Tim Omernick  <timo@apple.com>
       
 23549 
       
 23550         Reviewed by Kevin Decker.
       
 23551 
       
 23552         Better fix for <rdar://problem/4432562> REGRESSION (TOT): Safari's "stop loading" active, "view source" inactive after page load [7058]
       
 23553 
       
 23554         * WebView/WebFrame.m:
       
 23555         (-[WebFrame _transitionToCommitted:]):
       
 23556         Cancel the client redirect when we commit the provisional load, if we were waiting for a redirect.
       
 23557         This is a better fix for 7058 (<rdar://problem/4432562>).  The original fix for 7058 changed the timing of the redirect cancel
       
 23558         in such a way that WebKit was precluded from ever reusing back/forward list entries for redirects.  Clearing the redirect state
       
 23559         here actually makes logical sense, as the redirect's target page is being committed at this point.
       
 23560 
       
 23561 2006-03-21  Darin Adler  <darin@apple.com>
       
 23562 
       
 23563         - fix http://bugs.webkit.org/show_bug.cgi?id=3784
       
 23564           <rdar://problem/4483827> JavaScript save dialog disappears right away (sheet triggers blur event) (3784)
       
 23565 
       
 23566         * WebView/WebHTMLView.m:
       
 23567         (-[WebHTMLView _updateFocusState]): Treat window as having focus if its sheet is key.
       
 23568         (-[WebHTMLView addWindowObservers]): Observe all focus notifications, not just the ones involving this window.
       
 23569         (-[WebHTMLView removeWindowObservers]): Ditto.
       
 23570         (-[WebHTMLView windowDidBecomeKey:]): Add checks so that we call the methods only when appropriate,
       
 23571         since this will now be called for all windows.
       
 23572         (-[WebHTMLView windowDidResignKey:]): Ditto.
       
 23573 
       
 23574 2006-03-21  Adele Peterson  <adele@apple.com>
       
 23575 
       
 23576         Reviewed by Darin.
       
 23577 
       
 23578         - Fix for http://bugs.webkit.org/show_bug.cgi?id=6813
       
 23579         elementAtPoint needs to return input element when clicking on new text field
       
 23580 
       
 23581         * WebView/WebDocumentInternal.h: Added elementAtPoint:allowShadowContent:
       
 23582         * WebView/WebHTMLView.m:
       
 23583         (-[WebHTMLView elementAtPoint:]): Does not allow shadow content.  This way, by default, callers would get the input element instead of the inner div.
       
 23584         (-[WebHTMLView elementAtPoint:allowShadowContent:]): Allows callers to specify whether or not the element can be a shadow node.
       
 23585         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): Allows shadow content when getting element.
       
 23586         (-[WebHTMLView _mayStartDragAtEventLocation:]): ditto.
       
 23587         (-[WebHTMLView _isSelectionEvent:]): ditto.
       
 23588         (-[WebHTMLView _canProcessDragWithDraggingInfo:]): ditto.
       
 23589         * WebView/WebFrame.m: (-[WebFrame _actionInformationForNavigationType:event:originalURL:]): Does not allow shadow content when getting element.
       
 23590         * WebView/WebImageView.m: (-[WebImageView elementAtPoint:allowShadowContent:]): Added to conform to the WebDocumentElement protocol.
       
 23591         * WebView/WebPDFView.m: (-[WebPDFView elementAtPoint:allowShadowContent:]): ditto.
       
 23592         * WebView/WebTextView.m: (-[WebTextView elementAtPoint:allowShadowContent:]): ditto.
       
 23593 
       
 23594 2006-03-21  Tim Omernick  <timo@apple.com>
       
 23595 
       
 23596         Reviewed by Tim Hatcher and Darin.
       
 23597 
       
 23598         <rdar://problem/4427068> LMGetCurApRefNum, CloseConnection and GetDiskFragment deprecated, used in Netscape
       
 23599         plugin code
       
 23600 
       
 23601         * Plugins/WebNetscapeDeprecatedFunctions.h: Added.
       
 23602         * Plugins/WebNetscapeDeprecatedFunctions.c: Added.
       
 23603         Added wrappers for deprecated CFM and LowMem functions.  These exist in a separate file so that we can set
       
 23604         -Wno-deprecated-declarations on this one file without ignoring other deprecated function usage elsewhere.
       
 23605         (WebGetDiskFragment):
       
 23606         (WebCloseConnection):
       
 23607         (WebLMGetCurApRefNum):
       
 23608         (WebLMSetCurApRefNum):
       
 23609 
       
 23610         * Plugins/WebNetscapePluginPackage.h:
       
 23611         Don't include connID ivar in 64-bit, since CFM is not supported in 64-bit.
       
 23612         * Plugins/WebNetscapePluginPackage.m:
       
 23613         (+[WebNetscapePluginPackage initialize]):
       
 23614         Don't bother setting the resource refNum in 64-bit, because the API to get and set it does not exist.
       
 23615         A theoretical 64-bit plugin couldn't possibly rely this, since there is no API.
       
 23616         (-[WebNetscapePluginPackage unloadWithoutShutdown]):
       
 23617         No need to close the connID in 64-bit.
       
 23618         (-[WebNetscapePluginPackage load]):
       
 23619         Don't load CFM bundles in 64-bit, because CFM is not supported.
       
 23620 
       
 23621         * WebKit.xcodeproj/project.pbxproj:
       
 23622         Added WebNetscapeDeprecatedFunctions.[hm].
       
 23623 
       
 23624 2006-03-21  John Sullivan  <sullivan@apple.com>
       
 23625 
       
 23626         Reviewed by Kevin Decker.
       
 23627         
       
 23628         - fixed <rdar://problem/4485637> Implementors of searchFor:direction:caseSensitive:wrap: should bail 
       
 23629         out early if search string is empty
       
 23630         
       
 23631         This doesn't change any existing behavior, but avoids unnecessary work.
       
 23632 
       
 23633         * Misc/WebSearchableTextView.m:
       
 23634         (-[WebSearchableTextView searchFor:direction:caseSensitive:wrap:]):
       
 23635         bail out immediately (returning NO) if search string is empty
       
 23636         
       
 23637         * WebView/WebHTMLView.m:
       
 23638         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 23639         ditto
       
 23640         
       
 23641         * WebView/WebPDFView.m:
       
 23642         (-[WebPDFView searchFor:direction:caseSensitive:wrap:]):
       
 23643         ditto
       
 23644         
       
 23645         * WebView/WebView.m:
       
 23646         (-[WebView searchFor:direction:caseSensitive:wrap:]):
       
 23647         ditto
       
 23648 
       
 23649 2006-03-20  Tim Omernick  <timo@apple.com>
       
 23650 
       
 23651         Reviewed by John Sullivan.
       
 23652 
       
 23653         Moved -_contentView from WebFrameViewInternal to WebFrameViewPrivate.  Safari
       
 23654         needs this.
       
 23655 
       
 23656         * WebView/WebFrameView.m:
       
 23657         (-[WebFrameView _contentView]):
       
 23658         * WebView/WebFrameViewInternal.h:
       
 23659         * WebView/WebFrameViewPrivate.h:
       
 23660 
       
 23661 2006-03-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 23662 
       
 23663         Reviewed by Darin, landed by Beth.
       
 23664 
       
 23665         - fix http://bugs.webkit.org/show_bug.cgi?id=7693
       
 23666           WebKit relies on unpredictable timing for onload events
       
 23667 
       
 23668         * WebView/WebDataSource.m:
       
 23669         (-[WebDataSource _receivedMainResourceError:complete:]): Check for 
       
 23670         completion on the WebCore side before checking on the WebKit side, 
       
 23671         to ensure that the onload event is emitted before the WebFrame load 
       
 23672         delegate is sent the webView:didFinishLoadForFrame: message. For 
       
 23673         DumpRenderTree, this ensures that the render tree is dumped after 
       
 23674         the onload handler is run.
       
 23675         * WebView/WebLoader.m:
       
 23676         (-[NSURLProtocol didFailWithError:]): If load has already been 
       
 23677         cancelled (which could happen if the parent's onload handler caused 
       
 23678         the frame to detach), do nothing.
       
 23679 
       
 23680 2006-03-17  John Sullivan  <sullivan@apple.com>
       
 23681 
       
 23682         Reviewed by Beth Dakin
       
 23683         
       
 23684         - fixed <rdar://problem/4239051> Sometimes "Copy Link" in Safari results in a 
       
 23685         URL on the pasteboard with no usable "title"
       
 23686 
       
 23687         * History/WebURLsWithTitles.m:
       
 23688         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]):
       
 23689         trim whitespace from titles that are put on pasteboard. This leaves an empty string
       
 23690         for the title in cases where there's no displayed text, like an image in an <a> element
       
 23691         that happens to have whitespace in the source, e.g. <a href="foo"> <img whatever></a>
       
 23692 
       
 23693 2006-03-17  Darin Adler  <darin@apple.com>
       
 23694 
       
 23695         - missing bit of my check-in yesterday
       
 23696 
       
 23697         Maciej moved setWindowFrame for me, but I also had removed
       
 23698         setWindowContentRect.
       
 23699 
       
 23700         * WebCoreSupport/WebFrameBridge.m: Removed unused setWindowContextRect and
       
 23701         windowContentRect methods.
       
 23702 
       
 23703 2006-03-17  Adele Peterson  <adele@apple.com>
       
 23704 
       
 23705         Reviewed by Hyatt.
       
 23706 
       
 23707         WebKit part of fix for:
       
 23708         http://bugs.webkit.org/show_bug.cgi?id=7797 
       
 23709         Can't set background color on new text fields
       
 23710 
       
 23711         Added function to draw bezeled text field without drawing background.
       
 23712 
       
 23713         * WebCoreSupport/WebGraphicsBridge.m:
       
 23714         (-[WebGraphicsBridge drawBezeledTextFieldCell:enabled:]): Added.
       
 23715 
       
 23716 2006-03-16  Maciej Stachowiak  <mjs@apple.com>
       
 23717 
       
 23718         Reviewed by Eric.
       
 23719         
       
 23720         - move setWindowFrame / windowFrame to WebPageBridge to fix build
       
 23721 
       
 23722         * WebCoreSupport/WebFrameBridge.m:
       
 23723         * WebCoreSupport/WebPageBridge.m:
       
 23724         (-[WebPageBridge setWindowFrame:]):
       
 23725         (-[WebPageBridge windowFrame]):
       
 23726 
       
 23727 2006-03-15  Darin Adler  <darin@apple.com>
       
 23728 
       
 23729         Fix by Patrick Beard, reviewed by me.
       
 23730 
       
 23731         - fix <rdar://problem/4478181> WebPluginController leaks NSArray and NSMutableSet objects
       
 23732 
       
 23733         * Plugins/WebPluginController.m:
       
 23734         (-[WebPluginController initWithDocumentView:]): Call CFMakeCollectable on the CFSet
       
 23735         so we can act like it's an NSSet.
       
 23736         (-[WebPluginController dealloc]): Release _views and _checksInProgress.
       
 23737 
       
 23738 2006-03-13  Tim Omernick  <timo@apple.com>
       
 23739 
       
 23740         Reviewed by Maciej.
       
 23741 
       
 23742         <rdar://problem/4476873> Support printing for plugin documents (not embedded plugins)
       
 23743 
       
 23744         * WebView/WebFrameViewPrivate.h:
       
 23745         * WebView/WebFrameView.m:
       
 23746         (-[WebFrameView documentViewShouldHandlePrint]):
       
 23747         Called by the host application before it initializes and runs a print operation.  If NO
       
 23748         is returned, the host application will abort its print operation and call
       
 23749         -printDocumentView on the WebFrameView.  The document view is then expected to run its
       
 23750         own print operation.  If YES is returned, the host application's print operation will
       
 23751         continue as normal.
       
 23752         (-[WebFrameView printDocumentView]):
       
 23753         Called by the host application when the WebFrameView returns YES from -documentViewShouldHandlePrint.
       
 23754 
       
 23755         * Plugins/WebNetscapePluginDocumentView.m:
       
 23756         (-[WebNetscapePluginDocumentView documentViewShouldHandlePrint]):
       
 23757         Allow the plugin to take over printing if it defines an NPP_Print function
       
 23758         (-[WebNetscapePluginDocumentView printDocumentView]):
       
 23759         Print the plugin document.
       
 23760 
       
 23761 2006-03-13  Geoffrey Garen  <ggaren@apple.com>
       
 23762 
       
 23763         Reviewed by timo.
       
 23764 
       
 23765         - Fixed the load progress indicator to give more incremental feedback, 
       
 23766         and to stop spending so much time near 100%.
       
 23767 
       
 23768         I did two things:
       
 23769         (1) Fixed some bugs and a misspelling in the previous heuristic's 
       
 23770         implementation
       
 23771         (2) Added two new rules to the heuristic:
       
 23772             (a) Treat the first layout as the half-way point.
       
 23773             (b) Just like we jump the first 10% to indicate that a load has
       
 23774             started, jump the last 10% to indicate that a load has finished.
       
 23775 
       
 23776         Rule 2a is good for two reasons. First, it seems unnatural for loading
       
 23777         to be "more than half done" when you can't even see anything. Second,
       
 23778         in the early stages of laading our estimate of how much we'll need to
       
 23779         load is often off by as much as 6000% (e.g., cnn.com). So anything that
       
 23780         makes the progress indicator more conservative in the early stages of 
       
 23781         loading is helpful.
       
 23782 
       
 23783         Rule 2b is good because it's confusing for loading to be "100% done"
       
 23784         but still ongoing.
       
 23785 
       
 23786         FIXME: The indicator still isn't perfect. For example, the old behavior
       
 23787         shows up @ moviefone.com. Two areas for future work:
       
 23788         (1) Estimate number of linked resources. Our code estimates the size
       
 23789         of a single resource, but does nothing to estimate the number of
       
 23790         resources that resource might link to. This is the key to why we're
       
 23791         so wrong at the beginning.
       
 23792         (2) Improve "when to do first layout" heuristic. A JavaScript query
       
 23793         for a style property forces layout, creating a phantom first layout 
       
 23794         with no content, essentially nullifying 2a for certain pages.
       
 23795         
       
 23796         Filed <rdar://problem/4475834> to track estimating the number of 
       
 23797         linked resources. Phantom layouts are already on Hyatt's radar.
       
 23798 
       
 23799         * WebView/WebFrame.m:
       
 23800         (-[WebFrame _setState:]): Update firstLayoutDone
       
 23801         (-[WebFrame _numPendingOrLoadingRequests:]): Bug fix: In the recurisve 
       
 23802         case, query 'frame' instead of 'self', so that we actually recurse.
       
 23803         (-[WebFrame _firstLayoutDone]): New method
       
 23804         (-[WebFrame _didFirstLayout]): Update firstLayoutDone
       
 23805         * WebView/WebFramePrivate.h: Added firstLayoutDone ivar
       
 23806         * WebView/WebView.m:
       
 23807         (-[WebView _incrementProgressForConnectionDelegate:data:]):
       
 23808         (1) Implemented 2a and 2b
       
 23809         (2) Bug fix: only update the 'last time I sent a notification' time if 
       
 23810         we actually send a notification.
       
 23811         (3) Don't test for progress < 0 because ensuring progress < max
       
 23812         also ensures max - progress > 0. (Do still test for progress > max 
       
 23813         because rounding errors make that a possibility -- although a very 
       
 23814         minor one.)
       
 23815         (4) Query only the loading frame and its subframes for pending
       
 23816         requests instead of defaulting to the main frame. This is a slight
       
 23817         optimization in cases where the main frame did not begin the load,
       
 23818         and it makes the code more consistent.
       
 23819 
       
 23820 2006-03-13  John Sullivan  <sullivan@apple.com>
       
 23821 
       
 23822         Reviewed by Tim Omernick.
       
 23823         
       
 23824         - fixed <rdar://problem/4475857> API: Setting a history item limit programmatically doesn't work
       
 23825 
       
 23826         * History/WebHistory.m:
       
 23827         (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
       
 23828         use [self historyItemLimit], which prefers the explicitly-set value and falls back to the
       
 23829         NSUserDefaults value, instead of using the NSUserDefaults value explicitly.
       
 23830 
       
 23831 2006-03-10  Darin Adler  <darin@apple.com>
       
 23832 
       
 23833         Reviewed by Adele.
       
 23834 
       
 23835         * WebCoreSupport/WebFrameBridge.m: Remove unused requestedURLString method.
       
 23836 
       
 23837 2006-03-10  Darin Adler  <darin@apple.com>
       
 23838 
       
 23839         Reviewed by Geoff.
       
 23840 
       
 23841         - change how frame namespacing works to be more completely on the WebCore side
       
 23842 
       
 23843         * WebView/WebFrameInternal.h: Remove _setFrameNamespace: and _frameNamespace.
       
 23844         * WebView/WebFrame.m: Ditto.
       
 23845 
       
 23846         * WebView/WebView.m:
       
 23847         (-[WebView setGroupName:]): Call -[WebCorePageBridge setGroupName:].
       
 23848         (-[WebView groupName]): Call -[WebCorePageBridge groupName].
       
 23849 
       
 23850 2006-03-09  Alexey Proskuryakov  <ap@nypop.com>
       
 23851 
       
 23852         Reviewed by Darin.
       
 23853 
       
 23854         - http://bugs.webkit.org/show_bug.cgi?id=7656
       
 23855          Query string always appended to Flash URLs, instead of being replaced.
       
 23856 
       
 23857         * Misc/WebNSURLExtras.h: Added _webkit_URLByRemovingResourceSpecifier.
       
 23858         * Misc/WebNSURLExtras.m:
       
 23859         (+[NSURL _web_URLWithData:relativeToURL:]): Call _webkit_URLByRemovingResourceSpecifier to
       
 23860         work around CFURL not removing non-path components from base URLs in some cases.
       
 23861         (-[NSURL _webkit_URLByRemovingComponent:]): New generic function for removing URL components.
       
 23862         (-[NSURL _webkit_URLByRemovingFragment]): Moved implementation to the above method.
       
 23863         (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Added.
       
 23864 
       
 23865 2006-03-07  Darin Adler  <darin@apple.com>
       
 23866 
       
 23867         Reviewed by Anders.
       
 23868 
       
 23869         - fix http://bugs.webkit.org/show_bug.cgi?id=7655
       
 23870           unwanted output while running layout tests
       
 23871 
       
 23872         * WebView/WebDataSourcePrivate.h:
       
 23873         * WebView/WebDataSource.m:
       
 23874         (-[WebDataSource _setRepresentation:]): Clear the flag that records whether we've sent
       
 23875         all the data to the representation or not; need this to prevent telling the same representation
       
 23876         both that we've succeeded and then later that we've failed.
       
 23877         (-[WebDataSource _setMainDocumentError:]): Don't send an error if representationFinishedLoading
       
 23878         is already YES. Set representationFinishedLoading.
       
 23879         (-[WebDataSource _finishedLoading]): Set representationFinishedLoading.
       
 23880         (-[WebDataSource _setupForReplaceByMIMEType:]): Ditto.
       
 23881 
       
 23882 2006-03-06  Tim Omernick  <timo@apple.com>
       
 23883 
       
 23884         Reviewed by Kevin Decker.
       
 23885 
       
 23886         <rdar://problem/4457574> assertion failure watching trailers at netflix.com -[WebNetscapePluginRepresentation
       
 23887         receivedData:withDataSource:] + 684
       
 23888 
       
 23889         * Plugins/WebNetscapePluginRepresentation.m:
       
 23890         (-[WebNetscapePluginRepresentation receivedData:withDataSource:]):
       
 23891         Moved the ASSERT(instance) to the block that actually requires an assertion -- the plugin view should never
       
 23892         have a NULL instance by the time we start the NPStream (by calling -startStreamWithResponse:).
       
 23893         Some stream teardown logic changed with my fix to 4153419: when a WebBaseNetscapePluginStream is destroyed,
       
 23894         it now clears its NPP instance backpointer.  The WebBaseNetscapePluginStream may be destroyed from within
       
 23895         -startStreamWithResponse: if NPP_NewStream() returns an error.  We can handle this gracefully by changing
       
 23896         the assertion before -receivedData: to a simple NULL check.
       
 23897         This is unrelated to the Radar, but prior to this fix, we would attempt an NPP_Write() with the initial
       
 23898         stream data even if NPP_NewStream() returned an error.  Seems like that alone could cause issues, though
       
 23899         I'm guessing that plugins handle this in practice.
       
 23900 
       
 23901 2006-03-03  Timothy Hatcher  <timothy@apple.com>
       
 23902 
       
 23903         Reviewed by Darin.
       
 23904         
       
 23905         <rdar://problem/4411822> wrong element shown in Inspector inspecting main image at apple.com
       
 23906         <rdar://problem/4411908> in the Web Inspector, state of disclosure triangles should be preserved after search
       
 23907         http://bugs.webkit.org/show_bug.cgi?id=6616
       
 23908         Bug 6616: Double-clicking on a search result seems broken
       
 23909         http://bugs.webkit.org/show_bug.cgi?id=6709
       
 23910         Bug 6709: TypeError: Value undefined (result of expression treeScrollbar.refresh) is not object.
       
 23911 
       
 23912         Code clean up and move more code into JavaScript.
       
 23913         Removes a few unused ObjC methods.
       
 23914         Many search fixes. Reveals the focused node when exiting the search.
       
 23915         Shows a "No Selection" screen when there are no search results.
       
 23916         Shows a node count for the number of results.
       
 23917         Fixes a couple of TypeErrors that show on the console.
       
 23918         Uses the system selection color in the Style pane tables.
       
 23919 
       
 23920         * English.lproj/Localizable.strings: removed localized strings
       
 23921         * WebInspector.subproj/WebInspector.m:
       
 23922         (-[WebInspector init]):
       
 23923         (-[WebInspector dealloc]):
       
 23924         (-[WebInspector window]):
       
 23925         (-[WebInspector setSearchQuery:]):
       
 23926         (-[WebInspector resizeTopArea]):
       
 23927         (-[WebInspector searchPerformed:]): called from JavaScript when a search happens
       
 23928         (-[WebInspector _toggleIgnoreWhitespace:]):
       
 23929         (-[WebInspector _exitSearch:]): exit search results on double click
       
 23930         (-[WebInspector _focusRootNode:]):
       
 23931         (-[WebInspector _revealAndSelectNodeInTree:]):
       
 23932         (-[WebInspector _refreshSearch]):
       
 23933         (-[WebInspector _update]):
       
 23934         (-[WebInspector _updateTraversalButtons]):
       
 23935         (-[WebInspector _updateRoot]):
       
 23936         (-[WebInspector _updateTreeScrollbar]):
       
 23937         (-[WebInspector _updateSystemColors]): update CSS with system colors
       
 23938         (-[WebInspector webView:didFinishLoadForFrame:]):
       
 23939         (-[WebInspector webView:plugInViewWithArguments:]):
       
 23940         (-[WebInspector outlineViewSelectionDidChange:]): test for webViewLoaded
       
 23941         (-[WebInspectorPrivate init]): alloc rightArrowImage and downArrowImage
       
 23942         (-[WebInspectorPrivate dealloc]): no more matchedRules
       
 23943         (-[DOMNode _displayName]): removed localization UI_STRING calls.
       
 23944         * WebInspector.subproj/WebInspectorInternal.h:
       
 23945         * WebInspector.subproj/webInspector/inspector.css:
       
 23946         * WebInspector.subproj/webInspector/inspector.html:
       
 23947         * WebInspector.subproj/webInspector/inspector.js:
       
 23948 
       
 23949 2006-03-02  Alexey Proskuryakov  <ap@nypop.com>
       
 23950 
       
 23951         Fixed a typo in the comments added in the previous checkin.
       
 23952 
       
 23953         * WebCoreSupport/WebFrameBridge.m:
       
 23954         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 23955         * WebCoreSupport/WebSubresourceLoader.m:
       
 23956         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
       
 23957         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
       
 23958 
       
 23959 2006-03-02  Alexey Proskuryakov  <ap@nypop.com>
       
 23960 
       
 23961         Reviewed by Darin.
       
 23962 
       
 23963         - http://bugs.webkit.org/show_bug.cgi?id=7540
       
 23964           REGRESSION: frequent cache-related crashes
       
 23965 
       
 23966         - http://bugs.webkit.org/show_bug.cgi?id=7393
       
 23967           A stale comment about XMLHttpRequest responses being never cached
       
 23968 
       
 23969         * WebCoreSupport/WebFrameBridge.m: Don't call setHTTPHeader if the method is GET.
       
 23970         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 23971         * WebCoreSupport/WebSubresourceLoader.m: Ditto. Also removed a stale comment about
       
 23972         XMLHTTPRequests.
       
 23973         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
       
 23974         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
       
 23975 
       
 23976 2006-02-23  David Harrison  <harrison@apple.com>
       
 23977 
       
 23978         Reviewed by Justin.
       
 23979 
       
 23980         <rdar://problem/4359736> Support outlining ability with lists
       
 23981 
       
 23982         Added Mail SPI for list level changes.  It is SPI because it is not complete support
       
 23983         for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
       
 23984         
       
 23985         * WebView/WebHTMLView.m:
       
 23986         (-[WebHTMLView _canIncreaseSelectionListLevel]):
       
 23987         (-[WebHTMLView _canDecreaseSelectionListLevel]):
       
 23988         (-[WebHTMLView _increaseSelectionListLevel]):
       
 23989         (-[WebHTMLView _decreaseSelectionListLevel]):
       
 23990         * WebView/WebHTMLViewPrivate.h:
       
 23991 
       
 23992 2006-03-01  Alexey Proskuryakov  <ap@nypop.com>
       
 23993 
       
 23994         Reviewed by Darin.
       
 23995 
       
 23996         - http://bugs.webkit.org/show_bug.cgi?id=3812
       
 23997           XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.
       
 23998 
       
 23999         All WebKit changes are to use the method parameter passed from WebCore.
       
 24000 
       
 24001         * WebCoreSupport/WebFrameBridge.m:
       
 24002         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
       
 24003         (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
       
 24004         (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 24005         * WebCoreSupport/WebSubresourceLoader.h:
       
 24006         * WebCoreSupport/WebSubresourceLoader.m:
       
 24007         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
       
 24008         (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
       
 24009 
       
 24010 2006-03-01  Timothy Hatcher  <timothy@apple.com>
       
 24011 
       
 24012         Reviewed by Darin.
       
 24013 
       
 24014         http://bugs.webkit.org/show_bug.cgi?id=7450
       
 24015         elementAtPoint is expensive and should return a smart dictionary
       
 24016         
       
 24017         <rdar://problem/2952761> moving the mouse around eats more CPU than I would expect (7450)
       
 24018         
       
 24019         elementAtPoint for WebHTMLView now returns a WebElementDictionary,
       
 24020         when objectForKey is called it will lookup in the DOM, cache and return the value
       
 24021 
       
 24022         * Misc/WebElementDictionary.h: Added.
       
 24023         * Misc/WebElementDictionary.m: Added.
       
 24024         (addLookupKey):
       
 24025         (cacheValueForKey):
       
 24026         (+[WebElementDictionary initializeLookupTable]):
       
 24027         (-[WebElementDictionary initWithInnerNonSharedNode:innerNode:URLElement:andPoint:]):
       
 24028         (-[WebElementDictionary dealloc]):
       
 24029         (-[WebElementDictionary _fillCache]):
       
 24030         (-[WebElementDictionary count]):
       
 24031         (-[WebElementDictionary keyEnumerator]):
       
 24032         (-[WebElementDictionary objectForKey:]):
       
 24033         (-[WebElementDictionary _domNode]):
       
 24034         (-[WebElementDictionary _webFrame]):
       
 24035         (-[WebElementDictionary _targetWebFrame]):
       
 24036         (-[WebElementDictionary _title]):
       
 24037         (-[WebElementDictionary _imageRect]):
       
 24038         (-[WebElementDictionary _isSelected]):
       
 24039         * Misc/WebNSViewExtras.m:
       
 24040         (-[NSView _web_dragImage:element:rect:event:pasteboard:source:offset:]):
       
 24041         * WebKit.xcodeproj/project.pbxproj:
       
 24042         * WebView/WebHTMLView.m:
       
 24043         (-[WebHTMLView _updateMouseoverWithEvent:]):
       
 24044         (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
       
 24045         (-[WebHTMLView elementAtPoint:]):
       
 24046         * WebView/WebView.m:
       
 24047         * WebView/WebViewPrivate.h:
       
 24048 
       
 24049 2006-02-28  Darin Adler  <darin@apple.com>
       
 24050 
       
 24051         Reviewed by Adele.
       
 24052 
       
 24053         - remove obsolete WebCoreScrollView class
       
 24054 
       
 24055         * WebView/WebDynamicScrollBarsView.h: Change base class to NSScrollView instead of WebCoreScrollView.
       
 24056         * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView autoforwardsScrollWheelEvents]): Added.
       
 24057 
       
 24058 2006-02-28  John Sullivan  <sullivan@apple.com>
       
 24059 
       
 24060         Reviewed by Eric Seidel
       
 24061         
       
 24062         Wean WebKit from one more SPI call. We learned about this new-to-Tiger
       
 24063         API from filing Radar 4433222.
       
 24064 
       
 24065         * WebView/WebHTMLView.m:
       
 24066         (-[WebHTMLView _autoscroll]):
       
 24067         use public CGEventSourceButtonState() instead of WKMouseIsDown() (which was using SPI internally)
       
 24068 
       
 24069 2006-02-27  Tim Omernick  <timo@apple.com>
       
 24070 
       
 24071         Reviewed by Adele.
       
 24072 
       
 24073         <rdar://problem/4222043> Safari should reduce null events sent to invisible plugins
       
 24074 
       
 24075         * Plugins/WebBaseNetscapePluginView.h:
       
 24076         * Plugins/WebBaseNetscapePluginView.m:
       
 24077         (-[WebBaseNetscapePluginView restartNullEvents]):
       
 24078         Check to see if the plugin view is completely obscured (scrolled out of view, for example).  If it is
       
 24079         obscured and it wasn't before, or the other way around, then restart the null event timer so it can
       
 24080         fire at the appropriate rate.
       
 24081         (-[WebBaseNetscapePluginView viewHasMoved:]):
       
 24082         If a plugin is obscured, send it null events as if it were in an inactive window.
       
 24083 
       
 24084 2006-02-26  Mitz Pettel  <opendarwin.org@mitzpettel.com>
       
 24085 
       
 24086         Test: fast/frames/empty-frame-document.html
       
 24087 
       
 24088         Reviewed by Darin.
       
 24089 
       
 24090         - fix http://bugs.webkit.org/show_bug.cgi?id=7293
       
 24091           REGRESSION: Using Javascript Bookmarklets that reference location.href on a blank tab crashes WebKit
       
 24092 
       
 24093         The crash happened because an empty frame did not have a document.
       
 24094 
       
 24095         * WebView/WebFrame.m:
       
 24096         (-[WebFrame _commitProvisionalLoad:]): Use "about:blank" instead of an empty URL for empty
       
 24097         frames. This causes a document to be created for the frame.
       
 24098 
       
 24099 2006-02-21  Kevin Decker  <kdecker@apple.com>
       
 24100 
       
 24101         Reviewed by Darin.
       
 24102 
       
 24103         Backed out my previous check in. Since these methods are internal to WebKit (and not private)
       
 24104         it's perfectly OK for them to remain as categories. 
       
 24105         * ChangeLog:
       
 24106         * WebView/WebPreferences.m:
       
 24107         (-[WebPreferences _integerValueForKey:]):
       
 24108         (-[WebPreferences _setIntegerValue:forKey:]):
       
 24109         (-[WebPreferences _floatValueForKey:]):
       
 24110         (-[WebPreferences _setFloatValue:forKey:]):
       
 24111         (-[WebPreferences _boolValueForKey:]):
       
 24112         (-[WebPreferences _setBoolValue:forKey:]):
       
 24113         * WebView/WebPreferencesPrivate.h:
       
 24114 
       
 24115 2006-02-20  Darin Adler  <darin@apple.com>
       
 24116 
       
 24117         Collaborated with Graham Dennis <Graham.Dennis@gmail.com> on this.
       
 24118 
       
 24119         - WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=6831
       
 24120           contentEditable outline darkens as caret moves
       
 24121 
       
 24122         * WebCoreSupport/WebGraphicsBridge.m:
       
 24123         (-[WebGraphicsBridge drawFocusRingWithPath:radius:color:]):
       
 24124         Replaced the old bridge function that set up style with this one that renders a path.
       
 24125 
       
 24126 2006-02-19  Darin Adler  <darin@apple.com>
       
 24127 
       
 24128         Reviewed by Maciej.
       
 24129 
       
 24130         - cut out a little unneeded bridge code
       
 24131 
       
 24132         * WebCoreSupport/WebFrameBridge.m:
       
 24133         (-[WebFrameBridge webView]): Added. Helper, since the WebCore side of the bridge no longer
       
 24134         has this method.
       
 24135         (-[WebFrameBridge createWindowWithURL:]): Removed the frameName parameter -- this is now
       
 24136         handled on the WebCore side. Also return a page bridge instead of a frame bridge.
       
 24137         (-[WebFrameBridge createModalDialogWithURL:]): Changed to return a page bridge instead of
       
 24138         a frame bridge.
       
 24139 
       
 24140         * WebView/WebFrame.m: (-[WebFrame webView]): Change to get the webView from the page bridge
       
 24141         instead of the frame bridge, since it's a per-page thing.
       
 24142 
       
 24143         * WebView/WebView.m: Removed init method since it just does what the default does (calls
       
 24144         initWithFrame: with a zero rect).
       
 24145         (-[WebView initWithCoder:]): Added checking so that if the obejcts have the wrong type
       
 24146         we will fail gracefully instead of hitting "method not found" and the like.
       
 24147         (-[WebView setPreferencesIdentifier:]): Fix storage leak. The WebPreferences object was
       
 24148         not released.
       
 24149         (-[WebView mainFrame]): Removed excess "return nil".
       
 24150         (-[WebView _pageBridge]): Added. Helper to let you go from the WebView to the bridge
       
 24151         from outside the WebView class.
       
 24152         * WebView/WebViewInternal.h: Put _pageBridge into an internal header.
       
 24153 
       
 24154         * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge outerView]): Added. Replaces "webView"
       
 24155         as public method to tell the WebCore side about the view everything's embedded in.
       
 24156 
       
 24157         - other cleanup
       
 24158 
       
 24159         * WebCoreSupport/WebPageBridge.h: Removed some unneeded declarations.
       
 24160 
       
 24161         * Plugins/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView loadPluginRequest:]):
       
 24162         Rearrange code so it doesn't have to get the main frame twice.
       
 24163 
       
 24164 2006-02-18  Maciej Stachowiak  <mjs@apple.com>
       
 24165 
       
 24166         Not reviewed.
       
 24167         
       
 24168         - fix build broken by my last checkin, the remaining code was not doing anything.
       
 24169 
       
 24170         * WebView/WebDataSource.m:
       
 24171         * WebView/WebDataSourcePrivate.h:
       
 24172         * WebView/WebFrame.m:
       
 24173         (-[WebFrame _createPageCacheForItem:]):
       
 24174 
       
 24175 2006-02-16  Maciej Stachowiak  <mjs@apple.com>
       
 24176 
       
 24177         Reviewed by Darin.
       
 24178         
       
 24179         - removed a few unused fields and methods of WebDataSource
       
 24180 
       
 24181         * WebView/WebDataSource.m:
       
 24182         * WebView/WebDataSourcePrivate.h:
       
 24183         * WebView/WebView.m:
       
 24184         (+[WebView _MIMETypeForFile:]):
       
 24185         (-[WebView _updateWebCoreSettingsFromPreferences:]):
       
 24186 
       
 24187 2006-02-15  Justin Garcia  <justin.garcia@apple.com>
       
 24188 
       
 24189         Reviewed by darin
       
 24190         
       
 24191         <http://bugs.webkit.org/show_bug.cgi?id=7148>
       
 24192         Add drag and drop support to DumpRenderTree
       
 24193         
       
 24194         Added a UI delegate method so that DumpRenderTree can perform dragging on its own.
       
 24195         Made _updateFocusState SPI, to allow us to test the behavior and appearance of
       
 24196         windows that have or don't have focus.
       
 24197 
       
 24198         * WebView/WebHTMLView.m:
       
 24199         (-[WebHTMLView _updateFocusState]):
       
 24200         (-[WebHTMLView viewDidMoveToWindow]):
       
 24201         (-[WebHTMLView windowDidBecomeKey:]):
       
 24202         (-[WebHTMLView windowDidResignKey:]):
       
 24203         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
       
 24204         (-[WebHTMLView becomeFirstResponder]):
       
 24205         (-[WebHTMLView resignFirstResponder]):
       
 24206         (-[WebHTMLView _formControlIsResigningFirstResponder:]):
       
 24207         * WebView/WebHTMLViewInternal.h:
       
 24208         * WebView/WebHTMLViewPrivate.h:
       
 24209         * WebView/WebUIDelegatePrivate.h:
       
 24210         * WebView/WebView.m:
       
 24211 
       
 24212 2006-02-15  Darin Adler  <darin@apple.com>
       
 24213 
       
 24214         * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
       
 24215 
       
 24216 2006-02-15  Maciej Stachowiak  <mjs@apple.com>
       
 24217 
       
 24218         Rubber stamped by Anders.
       
 24219 
       
 24220         * WebView/WebControllerPolicyHandlerDelegate.h: Removed.
       
 24221 
       
 24222 2006-02-15  Maciej Stachowiak  <mjs@apple.com>
       
 24223 
       
 24224         Reviewed by Anders.
       
 24225         
       
 24226         - remove some voodoo code
       
 24227 
       
 24228         * WebView/WebDataSource.m:
       
 24229         (-[WebDataSource _setLoading:]): Removed useless ref/deref of self and WebView.
       
 24230         A WebDataSource cannot be loading unless it is still connected to the WebView that
       
 24231         owns it and retained by it, because getting disconnected stops loading.
       
 24232 
       
 24233 2006-02-13  Maciej Stachowiak  <mjs@apple.com>
       
 24234 
       
 24235         Reviewed by Anders.
       
 24236         
       
 24237         Improvements to frame loading:
       
 24238         
       
 24239         - remove LayoutAcceptable state entirely
       
 24240         - fix WebImageView to work right without LayoutAcceptable state
       
 24241         - move guts of commitIfReady: to WebFrame
       
 24242         - try to separate page cache loading from normal loading a bit more
       
 24243 
       
 24244         * English.lproj/StringsNotToBeLocalized.txt:
       
 24245         * WebView/WebDataSource.m:
       
 24246         (-[WebDataSource _prepareForLoadStart]):
       
 24247         (-[WebDataSource _loadFromPageCache:]):
       
 24248         (-[WebDataSource _startLoading]):
       
 24249         (-[WebDataSource _commitIfReady]):
       
 24250         (-[WebDataSource _setupForReplaceByMIMEType:]):
       
 24251         * WebView/WebDataSourcePrivate.h:
       
 24252         * WebView/WebFrame.m:
       
 24253         (-[WebFrame _transitionToCommitted:]):
       
 24254         (-[WebFrame _commitProvisionalLoad:]):
       
 24255         (-[WebFrame _checkLoadCompleteForThisFrame]):
       
 24256         (-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
       
 24257         * WebView/WebFramePrivate.h:
       
 24258         * WebView/WebImageRepresentation.h:
       
 24259         * WebView/WebImageRepresentation.m:
       
 24260         * WebView/WebImageView.m:
       
 24261         (-[WebImageView dataSourceUpdated:]):
       
 24262         (-[WebImageView setNeedsLayout:]):
       
 24263         (-[WebImageView writeImageToPasteboard:types:]):
       
 24264         (-[WebImageView copy:]):
       
 24265         (-[WebImageView mouseDragged:]):
       
 24266         * WebView/WebView.m:
       
 24267         (-[WebView _finishedLoadingResourceFromDataSource:]):
       
 24268         (-[WebView _mainReceivedBytesSoFar:fromDataSource:complete:]):
       
 24269 
       
 24270 2006-02-13  John Sullivan  <sullivan@apple.com>
       
 24271 
       
 24272         Reviewed by Tim Omernick.
       
 24273 
       
 24274         Support for highlighting multiple text matches.
       
 24275 
       
 24276         * WebView/WebHTMLViewPrivate.h:
       
 24277         * WebView/WebHTMLView.m:
       
 24278         (-[WebHTMLView highlightAllMatchesForString:caseSensitive:]):
       
 24279         new method, calls through to bridge
       
 24280         (-[WebHTMLView clearHighlightedMatches]):
       
 24281         ditto
       
 24282 
       
 24283         * WebView/WebViewPrivate.h:
       
 24284         * WebView/WebView.m:
       
 24285         (-[WebView highlightAllMatchesForString:caseSensitive:]):
       
 24286         new method, calls through to documentView. For now this is hardwired to only work
       
 24287         with WebHTMLViews.
       
 24288         (-[WebView clearHighlightedMatches]):
       
 24289         ditto
       
 24290 
       
 24291 2006-02-13  Darin Adler  <darin@apple.com>
       
 24292 
       
 24293         Reviewed by Maciej.
       
 24294 
       
 24295         - move pointer from frame to page over to WebCore
       
 24296 
       
 24297         * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge initWithMainFrameName:webView:frameView:]):
       
 24298         Call super init to create the page before creating the main frame and calling setMainFrame: with it.
       
 24299 
       
 24300         * WebCoreSupport/WebFrameBridge.h: Remove page pointer, and change init function parameters.
       
 24301         * WebCoreSupport/WebFrameBridge.m:
       
 24302         (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): New function that is used only for
       
 24303         the main frame. Passes the page over to the other side of the bridge.
       
 24304         (-[WebFrameBridge initSubframeWithRenderer:frameName:view:]): New function that is used only for
       
 24305         subframes. Passes the renderer over to the other side of the bridge.
       
 24306         (-[WebFrameBridge mainFrame]):
       
 24307         (-[WebFrameBridge webView]):
       
 24308         (-[WebFrameBridge createWindowWithURL:frameName:]):
       
 24309         (-[WebFrameBridge showWindow]):
       
 24310         (-[WebFrameBridge areToolbarsVisible]):
       
 24311         (-[WebFrameBridge setToolbarsVisible:]):
       
 24312         (-[WebFrameBridge isStatusbarVisible]):
       
 24313         (-[WebFrameBridge setStatusbarVisible:]):
       
 24314         (-[WebFrameBridge setWindowFrame:]):
       
 24315         (-[WebFrameBridge windowFrame]):
       
 24316         (-[WebFrameBridge setWindowContentRect:]):
       
 24317         (-[WebFrameBridge windowContentRect]):
       
 24318         (-[WebFrameBridge setWindowIsResizable:]):
       
 24319         (-[WebFrameBridge windowIsResizable]):
       
 24320         (-[WebFrameBridge firstResponder]):
       
 24321         (-[WebFrameBridge makeFirstResponder:]):
       
 24322         (-[WebFrameBridge closeWindowSoon]):
       
 24323         (-[WebFrameBridge runJavaScriptAlertPanelWithMessage:]):
       
 24324         (-[WebFrameBridge runJavaScriptConfirmPanelWithMessage:]):
       
 24325         (-[WebFrameBridge canRunBeforeUnloadConfirmPanel]):
       
 24326         (-[WebFrameBridge runBeforeUnloadConfirmPanelWithMessage:]):
       
 24327         (-[WebFrameBridge runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]):
       
 24328         (-[WebFrameBridge addMessageToConsole:]):
       
 24329         (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
       
 24330         (-[WebFrameBridge setStatusText:]):
       
 24331         (-[WebFrameBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
       
 24332         (-[WebFrameBridge focusWindow]):
       
 24333         (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
       
 24334         (-[WebFrameBridge userAgentForURL:]):
       
 24335         (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
       
 24336         (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
       
 24337         (-[WebFrameBridge defersLoading]):
       
 24338         (-[WebFrameBridge setDefersLoading:]):
       
 24339         (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
       
 24340         (-[WebFrameBridge _preferences]):
       
 24341         (-[WebFrameBridge selectWordBeforeMenuEvent]):
       
 24342         (-[WebFrameBridge historyLength]):
       
 24343         (-[WebFrameBridge canGoBackOrForward:]):
       
 24344         (-[WebFrameBridge goBackOrForward:]):
       
 24345         (-[WebFrameBridge print]):
       
 24346         (-[WebFrameBridge pollForAppletInView:]):
       
 24347         (-[WebFrameBridge respondToChangedContents]):
       
 24348         (-[WebFrameBridge respondToChangedSelection]):
       
 24349         (-[WebFrameBridge undoManager]):
       
 24350         (-[WebFrameBridge issueCutCommand]):
       
 24351         (-[WebFrameBridge issueCopyCommand]):
       
 24352         (-[WebFrameBridge issuePasteCommand]):
       
 24353         (-[WebFrameBridge issuePasteAndMatchStyleCommand]):
       
 24354         (-[WebFrameBridge canPaste]):
       
 24355         (-[WebFrameBridge overrideMediaType]):
       
 24356         (-[WebFrameBridge isEditable]):
       
 24357         (-[WebFrameBridge shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
       
 24358         (-[WebFrameBridge shouldBeginEditing:]):
       
 24359         (-[WebFrameBridge shouldEndEditing:]):
       
 24360         (-[WebFrameBridge windowObjectCleared]):
       
 24361         (-[WebFrameBridge spellCheckerDocumentTag]):
       
 24362         (-[WebFrameBridge isContinuousSpellCheckingEnabled]):
       
 24363         (-[WebFrameBridge didFirstLayout]):
       
 24364         (-[WebFrameBridge dashboardRegionsChanged:]):
       
 24365         (-[WebFrameBridge createModalDialogWithURL:]):
       
 24366         (-[WebFrameBridge canRunModal]):
       
 24367         (-[WebFrameBridge runModal]):
       
 24368         Change all calls to [_page webView] to use [self webView] instead.
       
 24369 
       
 24370 === WebKit-521.7
       
 24371 
       
 24372 2006-02-11  Maciej Stachowiak  <mjs@apple.com>
       
 24373 
       
 24374         Reviewed by Hyatt.
       
 24375         
       
 24376         - factor WebArchive creation code out of other classes into new WebArchiver
       
 24377         http://bugs.webkit.org/show_bug.cgi?id=7208
       
 24378 
       
 24379         * DOM/WebDOMOperations.m:
       
 24380         (-[DOMNode webArchive]):
       
 24381         (-[DOMRange webArchive]):
       
 24382         * WebKit.xcodeproj/project.pbxproj:
       
 24383         * WebView/WebArchiver.h: Added.
       
 24384         * WebView/WebArchiver.m: Added.
       
 24385         (+[WebArchiver _subframeArchivesForFrame:]):
       
 24386         (+[WebArchiver archiveFrame:]):
       
 24387         (+[WebArchiver _archiveCurrentStateForFrame:]):
       
 24388         (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
       
 24389         (+[WebArchiver archiveRange:]):
       
 24390         (+[WebArchiver archiveNode:]):
       
 24391         (+[WebArchiver archiveSelectionInFrame:]):
       
 24392         * WebView/WebDataSource.m:
       
 24393         (-[WebDataSource webArchive]):
       
 24394         * WebView/WebDataSourcePrivate.h:
       
 24395         * WebView/WebHTMLView.m:
       
 24396         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
       
 24397         (-[WebHTMLView _writeSelectionToPasteboard:]):
       
 24398         * WebView/WebHTMLViewPrivate.h:
       
 24399 
       
 24400 2006-02-11  Darin Adler  <darin@apple.com>
       
 24401 
       
 24402         * English.lproj/StringsNotToBeLocalized.txt: Updated paths for recent changes in directory structure.
       
 24403 
       
 24404 2006-02-11  David Kilzer  <ddkilzer@kilzer.net>
       
 24405 
       
 24406         Reviewed by John Sullivan.
       
 24407 
       
 24408         - Fix http://bugs.webkit.org/show_bug.cgi?id=7171
       
 24409         No description in WebKitErrors.m for WebKitErrorPlugInWillHandleLoad
       
 24410 
       
 24411         * English.lproj/Localizable.strings: Added new UI_STRING().
       
 24412         * Misc/WebKitErrors.m: Added #define for description.
       
 24413         (registerErrors): Added dictionary entry.
       
 24414 
       
 24415 2006-02-09  Tim Omernick  <timo@apple.com>
       
 24416 
       
 24417         Reviewed by Tim Hatcher.
       
 24418 
       
 24419         <rdar://problem/4153419> CrashTracer: 576 crashes in Safari at com.apple.WebKit: NPN_DestroyStream + 56
       
 24420 
       
 24421         I never could reproduce this crasher, which seems to be caused by the Speed Download plugin.  However,
       
 24422         I did find a way to make the affected code more bulletproof for those who are experiencing the crash.
       
 24423         
       
 24424         * Plugins/WebBaseNetscapePluginStream.h:
       
 24425         Keep a WebBaseNetscapePluginView instead of the WebNetscapePluginPackage, since the plugin view could
       
 24426         potentially be deallocated before the stream finishes loading.
       
 24427         * Plugins/WebBaseNetscapePluginStream.m:
       
 24428         (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]):
       
 24429         Use pluginView instead of plugin.
       
 24430         (-[WebBaseNetscapePluginStream dealloc]):
       
 24431         Assert that the plugin instance has been nulled out, since that's now part of the stream's teardown
       
 24432         phase.
       
 24433         Release pluginView instead of plugin.
       
 24434         (-[WebBaseNetscapePluginStream setPluginPointer:]):
       
 24435         Retain the plugin view instead of the plugin package, since the plugin view could be deallocated while
       
 24436         the stream is running.
       
 24437         This method now accepts a NULL argument so that we can easily clear out the pluginView backpointer
       
 24438         (and other ivars derived from it).
       
 24439         (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]):
       
 24440         Use pluginView instead of plugin.
       
 24441         (-[WebBaseNetscapePluginStream _destroyStream]):
       
 24442         ditto
       
 24443         (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
       
 24444         ditto
       
 24445         (-[WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError]):
       
 24446         Set the plugin instance to NULL, so that the pluginView backpointer is released.  This method is called
       
 24447         for every plugin view's stream when the plugin view is stopped/destroyed.
       
 24448         (-[WebBaseNetscapePluginStream _deliverData]):
       
 24449         Use pluginView instead of plugin.
       
 24450 
       
 24451 == Rolled over to ChangeLog-2006-02-09 ==