1 2007-11-06 Mark Rowe <mrowe@apple.com>
3 Rubber-stamped by Dave Kilzer.
5 Move Mac files from WebKit into WebKit/mac.
7 * Carbon: Copied from WebKit/Carbon.
8 * ChangeLog: Copied from WebKit/ChangeLog.
9 * ChangeLog-2002-12-03: Copied from WebKit/ChangeLog-2002-12-03.
10 * ChangeLog-2006-02-09: Copied from WebKit/ChangeLog-2006-02-09.
11 * ChangeLog-2007-10-14: Copied from WebKit/ChangeLog-2007-10-14.
12 * Configurations: Copied from WebKit/Configurations.
13 * DOM: Copied from WebKit/DOM.
14 * DefaultDelegates: Copied from WebKit/DefaultDelegates.
15 * ForwardingHeaders: Copied from WebKit/ForwardingHeaders.
16 * History: Copied from WebKit/History.
17 * Info.plist: Copied from WebKit/Info.plist.
18 * MigrateHeaders.make: Copied from WebKit/MigrateHeaders.make.
19 * Misc: Copied from WebKit/Misc.
20 * Panels: Copied from WebKit/Panels.
21 * Plugins: Copied from WebKit/Plugins.
22 * PublicHeaderChangesFromTiger.txt: Copied from WebKit/PublicHeaderChangesFromTiger.txt.
23 * Resources: Copied from WebKit/Resources.
24 * WebCoreSupport: Copied from WebKit/WebCoreSupport.
25 * WebInspector: Copied from WebKit/WebInspector.
26 * WebKit.exp: Copied from WebKit/WebKit.exp.
27 * WebKit.order: Copied from WebKit/WebKit.order.
28 * WebKitPrefix.h: Copied from WebKit/WebKitPrefix.h.
29 * WebView: Copied from WebKit/WebView.
30 * icu: Copied from WebKit/icu.
32 2007-11-06 Alexey Proskuryakov <ap@webkit.org>
36 http://bugs.webkit.org/show_bug.cgi?id=15847
39 No change in functionality.
41 * WebView/WebHTMLView.mm:
42 (-[WebHTMLView deleteToEndOfLine:]):
43 (-[WebHTMLView deleteToEndOfParagraph:]):
44 WebCore had a duplicate of the same logic already. We are passing a boundary value to
45 a function that expects granularity, this may need to be straightened out in the future.
47 2007-11-05 John Sullivan <sullivan@apple.com>
50 (-[WebView _searchWithSpotlightFromMenu:]):
52 Teeny style tweak to test svn access on other machine
54 2007-11-05 John Sullivan <sullivan@apple.com>
57 (-[WebView computedStyleForElement:pseudoElement:]):
59 Teeny style tweak to test svn access
61 2007-11-02 Tristan O'Tierney <tristan@apple.com>
63 Reviewed by Darin Adler.
65 * DefaultDelegates/WebDefaultUIDelegate.m:
66 (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
67 Forward the UI delegate to call webView:createWebViewWithRequest: if
68 this method doesn't exist.
70 * WebCoreSupport/WebFrameLoaderClient.mm:
71 (WebFrameLoaderClient::dispatchCreatePage):
72 * Plugins/WebBaseNetscapePluginView.mm:
73 (-[WebBaseNetscapePluginView loadPluginRequest:]):
75 (-[WebView _openNewWindowWithRequest:]):
76 Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
78 * WebCoreSupport/WebChromeClient.h:
79 * WebCoreSupport/WebChromeClient.mm:
80 (WebChromeClient::createWindow):
81 Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
82 Removed createModalDialog to use new createWindow function.
84 * WebView/WebUIDelegatePrivate.h:
85 Added new webView:createWebViewWithRequest:windowFeatures: method.
87 2007-11-05 Geoffrey Garen <ggaren@apple.com>
89 Reviewed by Darin Adler.
91 http://bugs.webkit.org/show_bug.cgi?id=15835
93 Small adaptations to new KJS::List class.
95 * ForwardingHeaders/kjs/value.h: Added.
97 2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
99 Sort files(...); sections of Xcode project files.
101 Rubber-stamped by Darin.
103 * WebKit.xcodeproj/project.pbxproj:
105 2007-11-02 Antti Koivisto <antti@apple.com>
109 Add method to enable video composition.
111 * WebCoreSupport/WebSystemInterface.m:
112 (InitWebCoreSystemInterface):
114 2007-11-02 Darin Adler <darin@apple.com>
118 - fix problem I ran into while doing some testing on Mac for
119 <rdar://problem/5530185> WebKit does not show <object>
120 fallback content when both URL and MIME type is omitted
122 I don't know how to reproduce this failure in DumpRenderTree, so there is no
125 * Plugins/WebNullPluginView.h: Removed some unneeded declarations, including
126 the didSendError local variable. Instead we just set the error to nil once
128 * Plugins/WebNullPluginView.mm:
129 (-[WebNullPluginView initWithFrame:error:DOMElement:]): Refactored so that
130 the null plug-in image code is separate from the rest of the function and
131 so that the whole thing is not inside an if statement. Also don't hold a
132 reference to the DOM element if there is no error to report.
133 (-[WebNullPluginView reportFailure]): Added. Does the actual delegate
134 callback. Happens back at the top level of the run loop so it doesn't
135 fire deep inside layout. Also wrote this so that it is guaranteed not to
136 reenter and so that it can handle the case where the delegate destroys
137 the world (including this object). NOTE: This is not a real, general
138 solution to the problem of plug-ins that do work inside layout. We will need
139 a more general fix that works for other plug-ins, and we'll track that with
140 a separate bug report.
141 (-[WebNullPluginView viewDidMoveToWindow]): Removed most of the code;
142 changed so it just does a performSelector:afterDelay:0.
144 2007-11-02 Mark Rowe <mrowe@apple.com>
146 Reviewed by Darin Adler.
148 Fix http://bugs.webkit.org/show_bug.cgi?id=15780
149 Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
151 * WebCoreSupport/WebFrameLoaderClient.mm:
152 (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
153 in the page coordinate system rather than the client area coordinate system.
155 2007-11-01 Dan Bernstein <mitz@apple.com>
157 Reviewed by Oliver Hunt.
159 - fix an assertion failure when Command-Tabbing out of Safari
161 * WebView/WebHTMLView.mm:
162 (-[WebHTMLView flagsChanged:]): Avoid passing key code 0 down to
165 2007-11-01 Justin Garcia <justin.garcia@apple.com>
167 Reviewed by Oliver Hunt.
169 <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
171 No need to match style when pasting plain text, since the fragment we build for plain text
172 won't have any style information on it.
174 * WebView/WebHTMLView.mm:
175 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): There's no
176 longer a need to know whether this function chosePlaintext.
177 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
178 (-[WebHTMLView _documentFragmentFromPasteboard:]):
180 2007-10-31 Timothy Hatcher <timothy@apple.com>
182 Reviewed by John Sullivan.
184 Move the developer extras preference to WebPreferences.
186 * WebView/WebPreferenceKeysPrivate.h: Add WebKitDeveloperExtrasEnabledPreferenceKey
187 * WebView/WebPreferences.m:
188 (+[WebPreferences initialize]): Initialize WebKitDeveloperExtrasEnabledPreferenceKey to NO.
189 (-[WebPreferences developerExtrasEnabled]): Check DisableWebKitDeveloperExtras, WebKitDeveloperExtras
190 and IncludeDebugMenu in addition to WebKitDeveloperExtrasEnabledPreferenceKey.
191 (-[WebPreferences setDeveloperExtrasEnabled:]): Set WebKitDeveloperExtrasEnabledPreferenceKey.
192 * WebView/WebPreferencesPrivate.h: Add developerExtrasEnabled and setDeveloperExtrasEnabled:.
193 * WebView/WebView.mm:
194 (+[WebView _developerExtrasEnabled]): Removed.
195 (-[WebView _preferencesChangedNotification:]): Check the WebPreferences object for developerExtrasEnabled.
196 * WebView/WebViewPrivate.h: Removed _developerExtrasEnabled.
198 2007-10-30 David D. Kilzer <ddkilzer@webkit.org>
200 Generated files missing from WebCore's Xcode project file
201 <http://bugs.webkit.org/show_bug.cgi?id=15406>
205 Added the following private header files to MigrateHeaders.make:
207 - DOMCSSStyleSheetPrivate.h
209 - DOMHTMLCollectionPrivate.h
210 - DOMHTMLEmbedElementPrivate.h
211 - DOMHTMLIFrameElementPrivate.h
212 - DOMHTMLObjectElementPrivate.h
213 - DOMHTMLSelectElementPrivate.h
215 * MigrateHeaders.make:
217 2007-10-29 Antti Koivisto <antti@apple.com>
221 Some SPIs for media support.
223 * WebCoreSupport/WebSystemInterface.m:
224 (InitWebCoreSystemInterface):
226 2007-10-29 Timothy Hatcher <timothy@apple.com>
228 Reviewed by John Sullivan.
230 Various semi-related changes:
231 - A WebView can now be asked for it's WebInspector. There is one
232 WebInspector per WebView.
233 - Refactor the WebInspector class and move obsolete methods to
235 - Add new WebInspector methods to show, hide and show the
236 console/timeline panels.
237 - Add an isDisabled method to WebCache.
238 - Allow WebLocalizableStrings.h to be used in C files.
240 * Misc/WebCache.h: Add isDisabled.
242 (+[WebCache isDisabled]): New method.
244 * Misc/WebLocalizableStrings.h: Changes to allow use in plain C files.
246 * WebCoreSupport/WebInspectorClient.mm:
247 (-[WebInspectorWindowController showWindow:]): Call super if already visible
248 so the window will be ordered front.
249 (-[WebInspectorWindowController showWebInspector:]): Method used by menu items,
250 so they are enabled and work when the Inspector window is key.
251 (-[WebInspectorWindowController showErrorConsole:]): Ditto.
252 (-[WebInspectorWindowController showNetworkTimeline:]): Ditto.
254 * WebInspector/WebInspector.h: Add and remove methods.
255 * WebInspector/WebInspector.mm:
256 (-[WebInspector webViewClosed]): Called when the WebView is closed/dealloced.
257 Clears the _webView pointer.
258 (-[WebInspector show:]): Calls thru to the Page's InspectorController.
259 (-[WebInspector showConsole:]): Ditto.
260 (-[WebInspector showTimeline:]): Ditto.
261 (-[WebInspector close:]): Ditto.
262 (-[WebInspector attach:]): Ditto.
263 (-[WebInspector detach:]): Ditto.
264 (+[WebInspector sharedWebInspector]): Moved to the obsolete category.
265 (+[WebInspector webInspector]): Ditto.
266 (-[WebInspector setWebFrame:]): Ditto.
267 (-[WebInspector window]): Ditto.
268 (-[WebInspector showWindow:]): Ditto.
270 * WebView/WebView.mm:
271 (-[WebViewPrivate dealloc]): Release the WebInspector.
272 (-[WebView _close]): Call webViewClosed on the WebInspector.
273 (-[WebView inspector]): Create a WebInspector if needed and return it.
274 * WebView/WebViewPrivate.h: Add the inspector method.
276 2007-10-30 Adele Peterson <adele@apple.com>
280 WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
281 <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
283 * WebView/WebHTMLView.mm:
284 (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
285 (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
286 (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
288 2007-10-27 Mark Ambachtsheer <mark.a@apple.com>
292 Fix for bug 15710, When QD plugins draw to an offscreen bitmap and the plugin is not at
293 (0, 0) the clipping rectangle is not correct.
294 Added the origin to the window clip rectangle coordinates to account for plugins that
295 don't originate at (0,0); affects code for offscreen GWorlds only.
297 * Plugins/WebBaseNetscapePluginView.mm:
298 (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
300 2007-10-26 Adele Peterson <adele@apple.com>
304 Adding WebKitSystemInterface support for the caps lock indicator
306 * WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface):
308 2007-10-25 David Hyatt <hyatt@apple.com>
310 Fix for bug 15672, backgrounds don't tile properly inside transforms. This patch fixes tiling
311 of backgrounds inside CSS transforms and also of HTML content with background images inside SVG
314 Reviewed by aroben and mmitz
316 * WebCoreSupport/WebSystemInterface.m:
317 (InitWebCoreSystemInterface):
318 * WebKit.xcodeproj/project.pbxproj:
320 2007-10-25 John Sullivan <sullivan@apple.com>
322 Reviewed by Tim Hatcher
324 Removed the support for toggling whether WebKit uses the 10.5 PDFKit improvements. Now it
325 always does, when available.
327 * WebView/WebPreferencesPrivate.h:
328 removed _usePDFPreviewView and _setUsePDFPreviewView:. Note that these were guarded with
329 a comment that says that they can be removed when no longer needed. That time is now.
331 * WebView/WebPreferences.m:
332 (+[WebPreferences initialize]):
333 removed WebKitUsePDFPreviewViewPreferenceKey
334 (-[WebPreferences _usePDFPreviewView]):
336 (-[WebPreferences _setUsePDFPreviewView:]):
339 * WebView/WebPDFView.mm:
340 (-[WebPDFView initWithFrame:]):
341 don't check _usePDFPreviewView
343 * WebView/WebPreferenceKeysPrivate.h:
344 removed WebKitUsePDFPreviewViewPreferenceKey
346 2007-10-24 Timothy Hatcher <timothy@apple.com>
348 Reviewed by Mark Rowe.
350 <rdar://problem/5069711> OpenSource version of libWebKitSystemInterface.a is Tiger only, causes issues if used on Leopard
352 Use the WebKitSystemInterface that matches the system version.
354 * Configurations/DebugRelease.xcconfig:
355 * WebKit.xcodeproj/project.pbxproj:
357 2007-10-24 Brady Eidson <beidson@apple.com>
361 <rdar://problem/5554130> DatabaseTracker.o has a global initializer
363 * Misc/WebDatabaseManager.mm:
364 (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
366 2007-10-23 Mark Rowe <mrowe@apple.com>
368 Build fix for Eric's build fix in r26916.
370 * MigrateHeaders.make:
372 2007-10-22 Eric Seidel <eric@webkit.org>
376 * MigrateHeaders.make: copy over font-face related DOM headers
378 2007-10-22 Andrew Wellington <proton@wiretapped.net>
380 Reviewed by Mark Rowe.
382 Fix for local database support after r26879
383 Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
385 * Configurations/WebKit.xcconfig:
387 2007-10-19 Brady Eidson <beidson@apple.com>
389 Reviewed by Tim Hatcher
391 Added support for Chrome prompts required by the Storage API
392 Added support API for future managing of databases from the WebKit client
393 Added preference and initialization for the databases path
395 * Misc/WebDatabaseManager.h: Added. WebDatabaseManager is how a WebKit application can list and
396 remove the current available databases
397 * Misc/WebDatabaseManager.mm: Added.
398 (+[WebDatabaseManager origins]):
399 (+[WebDatabaseManager databasesWithOrigin:]):
400 (+[WebDatabaseManager deleteAllDatabases]):
401 (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
402 (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
403 (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
404 * Misc/WebDatabaseManagerPrivate.h: Added.
406 * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for
407 an origin exceeding its size limit
408 * WebCoreSupport/WebChromeClient.mm:
409 (WebChromeClient::runDatabaseSizeLimitPrompt):
410 * WebKit.xcodeproj/project.pbxproj:
411 * WebView/WebUIDelegate.h:
413 * WebView/WebView.mm:
414 (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
415 * WebView/WebViewInternal.h:
417 2007-10-19 John Sullivan <sullivan@apple.com>
419 Reviewed by Tim Hatcher
421 - fixed <rdar://problem/5540325> REGRESSION (2.0.4-3): History menu looks odd after clearing history
423 * History/WebHistory.mm:
424 (-[WebHistoryPrivate removeAllItems]):
425 This was fallout from r25275. We need to clear the orderedLastVisitedDays cache here, in addition
426 to the other places where it's cleared.
428 2007-10-18 Dan Bernstein <mitz@apple.com>
432 * WebView/WebDataSource.mm:
433 (-[WebDataSource _MIMETypeOfResponse:]):
435 2007-10-18 Dan Bernstein <mitz@apple.com>
437 Reviewed by Adam Roben.
439 - fix <rdar://problem/5313523>
440 REGRESSION(Leopard): http/tests/incremental/slow-utf8-text.pl fails on Leopard
442 * WebCoreSupport/WebFrameLoaderClient.mm:
443 (WebFrameLoaderClient::makeDocumentView): Changed to use _responseMIMEType.
444 * WebView/WebDataSource.mm:
445 (-[WebDataSource _MIMETypeOfResponse:]): Added. Works around
446 <rdar://problem/5321972> by testing for the case of an NSHTTPURLResponse
447 with a MIMEType of application/octet-stream and a Content-Type header
448 starting with text/plain and returning text/plain as the MIME type in
450 (-[WebDataSource _responseMIMEType]): Added. Used to get the correct
452 (-[WebDataSource _isDocumentHTML]): Changed to use _responseMIMEType.
453 (-[WebDataSource _makeRepresentation]): Ditto.
454 (-[WebDataSource mainResource]): Ditto.
455 (-[WebDataSource subresources]): Changed to use _MIMETypeOfResponse and
456 pass the MIME type explicitly.
457 (-[WebDataSource subresourceForURL:]): Ditto.
458 * WebView/WebDataSourcePrivate.h:
459 * WebView/WebFrameView.mm:
460 (-[WebFrameView _makeDocumentViewForDataSource:]): Changed to use
462 * WebView/WebResource.mm:
463 (-[WebResource _initWithData:URL:response:MIMEType:]): Changed this
464 method to take a MIME type instead of extracting it from the response,
465 so that WebDataSource could pass the correct MIME type.
466 * WebView/WebResourcePrivate.h:
468 2007-10-17 Darin Adler <darin@apple.com>
470 Reviewed by Mark Rowe.
472 - fix <rdar://problem/5183775> Uninitialized memory in -[WebDynamicScrollBarsView updateScrollers]
474 * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView updateScrollers]):
475 Change code path so it doesn't dispatch a method that returns an NSSize passing a nil object.
476 It's safe to do that for functions that return integers or pointers, but not structures.
478 2007-10-16 David Kilzer <ddkilzer@apple.com>
482 <rdar://problem/5544354> Wrong delegate method called in
483 WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
485 * WebCoreSupport/WebFrameLoaderClient.mm:
486 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Fixed selector name.
488 2007-10-16 Darin Adler <darin@apple.com>
492 - moved transpose command implementation into WebCore
494 * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
496 2007-10-16 Darin Adler <darin@apple.com>
498 Reviewed by Maciej and Geoff (and looked over by Eric).
500 - http://bugs.webkit.org/show_bug.cgi?id=15519
501 eliminate use of <ctype.h> for processing ASCII
503 * ForwardingHeaders/wtf/ASCIICType.h: Added.
504 * ForwardingHeaders/wtf/DisallowCType.h: Added.
506 * WebKitPrefix.h: Include DisallowCType.h.
508 * Misc/WebNSURLExtras.mm: (-[NSURL _web_URLWithLowercasedScheme]): Use toASCIILower.
509 * WebView/WebHTMLView.mm:
510 (-[WebHTMLView callWebCoreCommand:]): Use toASCIIUpper.
511 (-[WebTextCompleteController filterKeyDown:]): Add a list of specific character codes,
512 instead of using ispunct.
514 2007-10-16 John Sullivan <sullivan@apple.com>
516 Reviewed by Adam Roben
518 Cleaned up localizable strings
520 * English.lproj/Localizable.strings:
522 * StringsNotToBeLocalized.txt:
524 * WebKit.xcodeproj/project.pbxproj:
525 StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
527 2007-10-15 Kevin Decker <kdecker@apple.com>
529 Reviewed by Darin Adler.
531 Fixed: <rdar://problem/5520541> REGRESSION: Broken image when forwarding certain email on Tiger
533 * WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
534 too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
535 that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
536 load during first layout and not attach time. For this plug-in, loading at first layout is
537 expected and is consistent with Safari 2 behavior.
539 2007-10-15 John Sullivan <sullivan@apple.com>
541 Reviewed by Geoff Garen
543 Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
545 I made the following changes:
546 - replaced NS_DURING with @try, and added opening brace if there wasn't one
547 - replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
548 - removed NS_ENDHANDLER, and added a closing brace if there wasn't one
549 - in a couple of places, fixed indentation therein
551 * Misc/WebIconDatabase.mm:
552 (objectFromPathForKey):
553 * WebView/WebHTMLView.mm:
554 (-[WebHTMLView drawSingleRect:]):
555 (-[WebHTMLView beginDocument]):
556 (-[WebHTMLView deleteToMark:]):
557 * WebView/WebView.mm:
558 (-[WebView initWithCoder:]):
560 == Rolled over to ChangeLog-2007-10-14 ==