2007-11-06 Mark Rowe Rubber-stamped by Dave Kilzer. Move Mac files from WebKit into WebKit/mac. * Carbon: Copied from WebKit/Carbon. * ChangeLog: Copied from WebKit/ChangeLog. * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03. * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09. * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14. * Configurations: Copied from WebKit/Configurations. * DOM: Copied from WebKit/DOM. * DefaultDelegates: Copied from WebKit/DefaultDelegates. * ForwardingHeaders: Copied from WebKit/ForwardingHeaders. * History: Copied from WebKit/History. * Info.plist: Copied from WebKit/Info.plist. * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make. * Misc: Copied from WebKit/Misc. * Panels: Copied from WebKit/Panels. * Plugins: Copied from WebKit/Plugins. * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt. * Resources: Copied from WebKit/Resources. * WebCoreSupport: Copied from WebKit/WebCoreSupport. * WebInspector: Copied from WebKit/WebInspector. * WebKit.exp: Copied from WebKit/WebKit.exp. * WebKit.order: Copied from WebKit/WebKit.order. * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h. * WebView: Copied from WebKit/WebView. * icu: Copied from WebKit/icu. 2007-11-06 Alexey Proskuryakov Reviewed by Darin. http://bugs.webkit.org/show_bug.cgi?id=15847 Some editing cleanup No change in functionality. * WebView/WebHTMLView.mm: (-[WebHTMLView deleteToEndOfLine:]): (-[WebHTMLView deleteToEndOfParagraph:]): WebCore had a duplicate of the same logic already. We are passing a boundary value to a function that expects granularity, this may need to be straightened out in the future. 2007-11-05 John Sullivan * WebView/WebView.mm: (-[WebView _searchWithSpotlightFromMenu:]): Teeny style tweak to test svn access on other machine 2007-11-05 John Sullivan * WebView/WebView.mm: (-[WebView computedStyleForElement:pseudoElement:]): Teeny style tweak to test svn access 2007-11-02 Tristan O'Tierney Reviewed by Darin Adler. * DefaultDelegates/WebDefaultUIDelegate.m: (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]): Forward the UI delegate to call webView:createWebViewWithRequest: if this method doesn't exist. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchCreatePage): * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView loadPluginRequest:]): * WebView/WebView.mm: (-[WebView _openNewWindowWithRequest:]): Revised to use new webView:createWebViewWithRequest:windowFeatures: callback. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::createWindow): Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome. Removed createModalDialog to use new createWindow function. * WebView/WebUIDelegatePrivate.h: Added new webView:createWebViewWithRequest:windowFeatures: method. 2007-11-05 Geoffrey Garen Reviewed by Darin Adler. http://bugs.webkit.org/show_bug.cgi?id=15835 Small adaptations to new KJS::List class. * ForwardingHeaders/kjs/value.h: Added. 2007-11-03 David D. Kilzer Sort files(...); sections of Xcode project files. Rubber-stamped by Darin. * WebKit.xcodeproj/project.pbxproj: 2007-11-02 Antti Koivisto Reviewed by Darin. Add method to enable video composition. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): 2007-11-02 Darin Adler Reviewed by Mitz. - fix problem I ran into while doing some testing on Mac for WebKit does not show fallback content when both URL and MIME type is omitted I don't know how to reproduce this failure in DumpRenderTree, so there is no regression test. * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including the didSendError local variable. Instead we just set the error to nil once we've sent it. * Plugins/WebNullPluginView.mm: (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that the null plug-in image code is separate from the rest of the function and so that the whole thing is not inside an if statement. Also don't hold a reference to the DOM element if there is no error to report. (-[WebNullPluginView reportFailure]): Added. Does the actual delegate callback. Happens back at the top level of the run loop so it doesn't fire deep inside layout. Also wrote this so that it is guaranteed not to reenter and so that it can handle the case where the delegate destroys the world (including this object). NOTE: This is not a real, general solution to the problem of plug-ins that do work inside layout. We will need a more general fix that works for other plug-ins, and we'll track that with a separate bug report. (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code; changed so it just does a performSelector:afterDelay:0. 2007-11-02 Mark Rowe Reviewed by Darin Adler. Fix http://bugs.webkit.org/show_bug.cgi?id=15780 Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates in the page coordinate system rather than the client area coordinate system. 2007-11-01 Dan Bernstein Reviewed by Oliver Hunt. - fix an assertion failure when Command-Tabbing out of Safari * WebView/WebHTMLView.mm: (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to webCore. 2007-11-01 Justin Garcia Reviewed by Oliver Hunt. Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply No need to match style when pasting plain text, since the fragment we build for plain text won't have any style information on it. * WebView/WebHTMLView.mm: (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no longer a need to know whether this function chosePlaintext. (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): (-[WebHTMLView _documentFragmentFromPasteboard:]): 2007-10-31 Timothy Hatcher Reviewed by John Sullivan. Move the developer extras preference to WebPreferences. * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey * WebView/WebPreferences.m: (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO. (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey. (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey. * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:. * WebView/WebView.mm: (+[WebView _developerExtrasEnabled]): Removed. (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled. * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled. 2007-10-30 David D. Kilzer Generated files missing from WebCore's Xcode project file Reviewed by Darin. Added the following private header files to MigrateHeaders.make: - DOMCSSStyleSheetPrivate.h - DOMEventPrivate.h - DOMHTMLCollectionPrivate.h - DOMHTMLEmbedElementPrivate.h - DOMHTMLIFrameElementPrivate.h - DOMHTMLObjectElementPrivate.h - DOMHTMLSelectElementPrivate.h * MigrateHeaders.make: 2007-10-29 Antti Koivisto Reviewed by Maciej. Some SPIs for media support. * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): 2007-10-29 Timothy Hatcher Reviewed by John Sullivan. Various semi-related changes: - A WebView can now be asked for it's WebInspector. There is one WebInspector per WebView. - Refactor the WebInspector class and move obsolete methods to a special category. - Add new WebInspector methods to show, hide and show the console/timeline panels. - Add an isDisabled method to WebCache. - Allow WebLocalizableStrings.h to be used in C files. * Misc/WebCache.h: Add isDisabled. * Misc/WebCache.mm: (+[WebCache isDisabled]): New method. * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController showWindow:]): Call super if already visible so the window will be ordered front. (-[WebInspectorWindowController showWebInspector:]): Method used by menu items, so they are enabled and work when the Inspector window is key. (-[WebInspectorWindowController showErrorConsole:]): Ditto. (-[WebInspectorWindowController showNetworkTimeline:]): Ditto. * WebInspector/WebInspector.h: Add and remove methods. * WebInspector/WebInspector.mm: (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced. Clears the _webView pointer. (-[WebInspector show:]): Calls thru to the Page's InspectorController. (-[WebInspector showConsole:]): Ditto. (-[WebInspector showTimeline:]): Ditto. (-[WebInspector close:]): Ditto. (-[WebInspector attach:]): Ditto. (-[WebInspector detach:]): Ditto. (+[WebInspector sharedWebInspector]): Moved to the obsolete category. (+[WebInspector webInspector]): Ditto. (-[WebInspector setWebFrame:]): Ditto. (-[WebInspector window]): Ditto. (-[WebInspector showWindow:]): Ditto. * WebView/WebView.mm: (-[WebViewPrivate dealloc]): Release the WebInspector. (-[WebView _close]): Call webViewClosed on the WebInspector. (-[WebView inspector]): Create a WebInspector if needed and return it. * WebView/WebViewPrivate.h: Add the inspector method. 2007-10-30 Adele Peterson Reviewed by Darin. WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577 REGRESSION: Caps lock icon should show in password fields * WebView/WebHTMLView.mm: (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field. (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged. (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this. 2007-10-27 Mark Ambachtsheer Reviewed by Darin. Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at (0, 0) the clipping rectangle is not correct. Added the origin to the window clip rectangle coordinates to account for plugins that don't originate at (0,0); affects code for offscreen GWorlds only. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]): 2007-10-26 Adele Peterson Reviewed by Oliver. Adding WebKitSystemInterface support for the caps lock indicator * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): 2007-10-25 David Hyatt Fix for bug 15672, backgrounds don't tile properly inside transforms. This patch fixes tiling of backgrounds inside CSS transforms and also of HTML content with background images inside SVG transforms. Reviewed by aroben and mmitz * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): * WebKit.xcodeproj/project.pbxproj: 2007-10-25 John Sullivan Reviewed by Tim Hatcher Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it always does, when available. * WebView/WebPreferencesPrivate.h: removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with a comment that says that they can be removed when no longer needed. That time is now. * WebView/WebPreferences.m: (+[WebPreferences initialize]): removed WebKitUsePDFPreviewViewPreferenceKey (-[WebPreferences _usePDFPreviewView]): removed (-[WebPreferences _setUsePDFPreviewView:]): removed * WebView/WebPDFView.mm: (-[WebPDFView initWithFrame:]): don't check _usePDFPreviewView * WebView/WebPreferenceKeysPrivate.h: removed WebKitUsePDFPreviewViewPreferenceKey 2007-10-24 Timothy Hatcher Reviewed by Mark Rowe. OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard Use the WebKitSystemInterface that matches the system version. * Configurations/DebugRelease.xcconfig: * WebKit.xcodeproj/project.pbxproj: 2007-10-24 Brady Eidson Reviewed by Anders DatabaseTracker.o has a global initializer * Misc/WebDatabaseManager.mm: (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one 2007-10-23 Mark Rowe Build fix for Eric's build fix in r26916. * MigrateHeaders.make: 2007-10-22 Eric Seidel Reviewed by Maciej. * MigrateHeaders.make: copy over font-face related DOM headers 2007-10-22 Andrew Wellington Reviewed by Mark Rowe. Fix for local database support after r26879 Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set * Configurations/WebKit.xcconfig: 2007-10-19 Brady Eidson Reviewed by Tim Hatcher Added support for Chrome prompts required by the Storage API Added support API for future managing of databases from the WebKit client Added preference and initialization for the databases path * Misc/WebDatabaseManager.h: Added. WebDatabaseManager is how a WebKit application can list and remove the current available databases * Misc/WebDatabaseManager.mm: Added. (+[WebDatabaseManager origins]): (+[WebDatabaseManager databasesWithOrigin:]): (+[WebDatabaseManager deleteAllDatabases]): (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]): (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]): (WebKitSetWebDatabasesPathIfNecessary): Setup the database path * Misc/WebDatabaseManagerPrivate.h: Added. * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for an origin exceeding its size limit * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::runDatabaseSizeLimitPrompt): * WebKit.xcodeproj/project.pbxproj: * WebView/WebUIDelegate.h: * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path * WebView/WebViewInternal.h: 2007-10-19 John Sullivan Reviewed by Tim Hatcher - fixed REGRESSION (2.0.4-3): History menu looks odd after clearing history * History/WebHistory.mm: (-[WebHistoryPrivate removeAllItems]): This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition to the other places where it's cleared. 2007-10-18 Dan Bernstein Tiger build fix. * WebView/WebDataSource.mm: (-[WebDataSource _MIMETypeOfResponse:]): 2007-10-18 Dan Bernstein Reviewed by Adam Roben. - fix REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType. * WebView/WebDataSource.mm: (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around by testing for the case of an NSHTTPURLResponse with a MIMEType of application/octet-stream and a Content-Type header starting with text/plain and returning text/plain as the MIME type in that case. (-[WebDataSource _responseMIMEType]): Added. Used to get the correct response MIME type. (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType. (-[WebDataSource _makeRepresentation]): Ditto. (-[WebDataSource mainResource]): Ditto. (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and pass the MIME type explicitly. (-[WebDataSource subresourceForURL:]): Ditto. * WebView/WebDataSourcePrivate.h: * WebView/WebFrameView.mm: (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use _responseMIMEType. * WebView/WebResource.mm: (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this method to take a MIME type instead of extracting it from the response, so that WebDataSource could pass the correct MIME type. * WebView/WebResourcePrivate.h: >>>>>>> trunk:WebKit/ChangeLog 2007-10-17 Darin Adler Reviewed by Mark Rowe. - fix Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers] * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]): Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object. It's safe to do that for functions that return integers or pointers, but not structures. 2007-10-16 David Kilzer Reviewed by Timothy. Wrong delegate method called in WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad() * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name. 2007-10-16 Darin Adler Reviewed by Adele. - moved transpose command implementation into WebCore * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding. 2007-10-16 Darin Adler Reviewed by Maciej and Geoff (and looked over by Eric). - http://bugs.webkit.org/show_bug.cgi?id=15519 eliminate use of for processing ASCII * ForwardingHeaders/wtf/ASCIICType.h: Added. * ForwardingHeaders/wtf/DisallowCType.h: Added. * WebKitPrefix.h: Include DisallowCType.h. * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower. * WebView/WebHTMLView.mm: (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper. (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes, instead of using ispunct. 2007-10-16 John Sullivan Reviewed by Adam Roben Cleaned up localizable strings * English.lproj/Localizable.strings: updated * StringsNotToBeLocalized.txt: updated * WebKit.xcodeproj/project.pbxproj: StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is 2007-10-15 Kevin Decker Reviewed by Darin Adler. Fixed: REGRESSION: Broken image when forwarding certain email on Tiger * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will load during first layout and not attach time. For this plug-in, loading at first layout is expected and is consistent with Safari 2 behavior. 2007-10-15 John Sullivan Reviewed by Geoff Garen Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit I made the following changes: - replaced NS_DURING with @try, and added opening brace if there wasn't one - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any - removed NS_ENDHANDLER, and added a closing brace if there wasn't one - in a couple of places, fixed indentation therein * Misc/WebIconDatabase.mm: (objectFromPathForKey): * WebView/WebHTMLView.mm: (-[WebHTMLView drawSingleRect:]): (-[WebHTMLView beginDocument]): (-[WebHTMLView deleteToMark:]): * WebView/WebView.mm: (-[WebView initWithCoder:]): == Rolled over to ChangeLog-2007-10-14 ==