3 2005-02-17 Vicki Murley <vicki@apple.com>
5 - roll out this change, since it causes a 1.5% performance regression
7 2005-02-15 Richard Williamson <rjw@apple.com>
9 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
11 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
12 strictly speaking it isn't. (Similar to what we do with
15 Reviewed by David Harrison.
17 * WebCoreSupport.subproj/WebTextRenderer.m:
18 (-[WebTextRenderer _computeWidthForSpace]):
19 * WebCoreSupport.subproj/WebTextRendererFactory.h:
20 * WebCoreSupport.subproj/WebTextRendererFactory.m:
21 (-[NSFont _web_isFakeFixedPitch]):
22 (-[WebTextRendererFactory isFontFixedPitch:]):
23 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
25 2005-02-17 John Sullivan <sullivan@apple.com>
29 - fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs
30 to lockup (resolved by re-boot only)
32 * WebCoreSupport.subproj/WebBridge.m:
33 (-[WebBridge nextKeyViewOutsideWebFrameViews]):
34 Don't allow recursion here; assert on debug build, return nil on deployment. I
35 couldn't get my machine into a state to repro this problem (and neither could the
36 originator), but it's obvious from the stack crawl that this method was recursing
37 when it shouldn't have.
39 2005-02-16 John Sullivan <sullivan@apple.com>
41 Written by Darin, reviewed by me.
43 - WebKit part of fix for <rdar://problem/4007384>
44 FILTER: Bookmark of RSS with Japanese search word & multiple RSS pages loses filter
46 * DOM.subproj/DOMPrivate.h:
47 updated this file, which is a copy of the WebCore version
49 2005-02-16 Richard Williamson <rjw@apple.com>
51 Fixed <rdar://problem/3966973> Tiger 8A357: Binary Compatiblity: frequent Webstractor.app crashes [WebImageData _nextFrame]
53 Webstractor.app was playing tricks to create thumbnails of
54 pages. This caused the 'focusView' to be incorrect during
55 animated GIF frame rendering.
59 * WebCoreSupport.subproj/WebImageRenderer.m:
60 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
62 2005-02-16 Vicki Murley <vicki@apple.com>
64 Reviewed by me, code change by Darin.
66 - fixed the build on Panther
68 * WebView.subproj/WebFormDataStream.m: (webSetHTTPBody):
69 Added a Panther-specific code path that just loads all the data into one big
70 NSData object. This means that bug 3686434 won't be fixed on SUPanWheat; we'll
71 still load the file into memory before sending it to the server on Panther.
73 2005-02-15 Richard Williamson <rjw@apple.com>
75 Fixed <rdar://problem/3998368> Tiger8A376: WebTextRenderer assertion failure in Safari while browsing news.bbc.co.uk
77 Removed use of FATAL_ALWAYS from getUncachedWidth(). It's unclear
78 why we would trigger the FATAL_ALWAYS. In the past we've seen
79 the message triggered because of corrupt fonts. Anyway, in this
80 particular case, we will now return 0 for the character width,
83 Reviewed by David Harrison.
85 * WebCoreSupport.subproj/WebTextRenderer.m:
88 2005-02-15 Richard Williamson <rjw@apple.com>
90 Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
92 Lie about Osaka-Mono. Treat it as fixed pitch, even though,
93 strictly speaking it isn't. (Similar to what we do with
96 Reviewed by David Harrison.
98 * WebCoreSupport.subproj/WebTextRenderer.m:
99 (-[WebTextRenderer _computeWidthForSpace]):
100 * WebCoreSupport.subproj/WebTextRendererFactory.h:
101 * WebCoreSupport.subproj/WebTextRendererFactory.m:
102 (-[NSFont _web_isFakeFixedPitch]):
103 (-[WebTextRendererFactory isFontFixedPitch:]):
104 (-[WebTextRendererFactory fontWithFamily:traits:size:]):
106 2005-02-14 Darin Adler <darin@apple.com>
110 - fixed <rdar://problem/3686434> Safari uses too much RAM on file upload, leading to malloc errors and crashes (HP printers)
112 * WebView.subproj/WebFormDataStream.h: Added webSetHTTPBody, which creates and connects an appropriate
113 stream to an NSMutableURLRequest.
114 * WebView.subproj/WebFormDataStream.m: Added implementation here.
116 * WebCoreSupport.subproj/WebBridge.m:
117 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
119 * WebCoreSupport.subproj/WebSubresourceClient.m:
120 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
122 * WebView.subproj/WebFrame.m:
123 (-[WebFrame _loadItem:withLoadType:]): Use webSetHTTPBody.
124 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
126 * English.lproj/StringsNotToBeLocalized.txt: Updated for this change and other recent changes.
128 2005-02-11 Richard Williamson <rjw@apple.com>
130 Fixed <rdar://problem/4002505> 8A378: Endlessly animating gif's on http://www.entropy.ch
132 If animated images had no loop count property we were incorrectly
133 looping forver. Note, that in the course of fixing this bug
134 I found that ImageIO is incorrectly NOT reporting the loop count
135 for a whole class of animated GIFs.
137 Reviewed by Ken Kocienda.
139 * WebCoreSupport.subproj/WebImageData.m:
140 (-[WebImageData _repetitionCount]):
144 2005-02-11 Vicki Murley <vicki@apple.com>
148 - fix deployment build on Panther
150 * WebView.subproj/WebHTMLView.m:
151 (-[WebHTMLView changeBaseWritingDirection:]): ifdef out NSWritingDirectionNatural
152 (-[WebHTMLView toggleBaseWritingDirection:]): fix a spacing issue
154 2005-02-10 David Harrison <harrison@apple.com>
158 <rdar://problem/3991652> REGRESSION (Mail): Deleting entire line in reply deletes extra blank line and moves insertion point
160 * WebView.subproj/WebHTMLView.m:
161 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]):
162 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
163 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
164 (-[WebHTMLView selectToMark:]):
165 (-[WebHTMLView swapWithMark:]):
166 (-[WebHTMLView transpose:]):
167 (-[WebHTMLView _selectMarkedText]):
168 (-[WebHTMLView _selectRangeInMarkedText:]):
169 Adopt new default affinity of NSSelectionAffinityDownstream as of <rdar://problem/3937447>.
171 2005-02-10 Darin Adler <darin@apple.com>
173 Reviewed by Harrison.
175 - fixed <rdar://problem/4002084> Setting ResourceLoadDelegate to nil can cause a crash
177 * WebView.subproj/WebView.m: (-[WebView _cacheResourceLoadDelegateImplementations]):
178 Set booleans to either YES or NO, rather than setting them only in the YES case.
180 2005-02-10 Darin Adler <darin@apple.com>
182 Reviewed by Harrison.
184 - fixed <rdar://problem/3991225> Format->Style->Underline menu item does not get checked when selected text is underlined
186 * WebView.subproj/WebHTMLView.m:
187 (-[WebHTMLView validateUserInterfaceItem:]): Added tons of additional cases in here for all the
188 "action" style methods in this class that don't always want to be valid. For the ones where state
189 makes sense, added the state-checking code too for the menu item case.
190 (-[WebHTMLView ignoreSpelling:]): Removed unnecessary "editable text only" check since this command
191 would work fine on a non-editable selection.
192 (-[WebHTMLView swapWithMark:]): Ditto.
193 (-[WebHTMLView changeBaseWritingDirection:]): Added. Like toggle, but based on the sender's tag.
195 2005-02-08 Darin Adler <darin@apple.com>
197 "Reviewed" by Richard (he told me the file was obsolete).
199 - got rid of an obsolete file
201 * Plugins.subproj/npsap.h: Removed.
202 * copy-webcore-files-to-webkit: Removed npsap.h.
204 2005-02-09 Richard Williamson <rjw@apple.com>
206 Fixed <rdar://problem/4000073> non-screen font error on www.worldofwarcraft.com
208 Reviewed by John Sullivan.
210 * WebCoreSupport.subproj/WebTextRenderer.m:
211 (-[WebTextRenderer _smallCapsFont]):
215 2005-02-07 Chris Blumenberg <cblu@apple.com>
217 Fixed: <rdar://problem/3993354> Safari claims to put RTFD on the pasteboard, but doesn't, in some cases
221 * WebView.subproj/WebHTMLView.m:
222 (-[WebHTMLView _stripAttachmentCharactersFromAttributedString:]): moved
223 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]): take cachedAttributedString parameter in case the attributed string was gotten already
224 (-[WebHTMLView _writeSelectionToPasteboard:]): omit RTFD from the types list when there are no attachments
226 2005-02-07 David Harrison <harrison@apple.com>
230 <rdar://problem/3990693> REGRESSION (8A373): ctrl-k now deletes just one character instead of line
232 * WebView.subproj/WebHTMLView.m:
233 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]):
234 Set the selection so that deleteKeyPressedWithSmartDelete knows what to delete.
236 2005-02-06 Darin Adler <darin@apple.com>
240 - fixed <rdar://problem/3963166> PDFView SPI print method is being deprecated, moving to PDFDocument; please update WebKit
242 * WebView.subproj/WebPDFView.m: (-[WebPDFView printOperationWithPrintInfo:]): Target the document instead of the view.
244 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes and also moved one translation to be a file-specific
245 item rather than a file-independent one.
247 2005-02-05 Chris Blumenberg <cblu@apple.com>
249 Fixed: <rdar://problem/3991974> REGRESSION: www.jabra.com world location screen does not work
253 * WebCoreSupport.subproj/WebBridge.m:
254 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): use the baseURL from the bridge rather than from the response
256 2005-02-04 Chris Blumenberg <cblu@apple.com>
258 Fixed: <rdar://problem/3802781> rtf->html pasteboard conversion using xhtml
260 Reviewed by kocienda.
262 * WebView.subproj/WebHTMLView.m:
263 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): new
264 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call _excludedElementsForAttributedStringConversion
266 2005-02-04 Chris Blumenberg <cblu@apple.com>
268 Fixed: <rdar://problem/3832973> copy text from PowerPoint, paste into Blot (or presumably Mail) and get a single missing image icon
272 * WebView.subproj/WebHTMLView.m:
273 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): prefer RTF and RTFD over images just as NSTextView does
275 2005-02-03 Chris Blumenberg <cblu@apple.com>
277 Fixed: <rdar://problem/3555137> REGRESSION (125-173): Flash animation can erase parts of chrome (bookmarks bar & tab bar)
279 convertRect:toView: returns incorrect results inside of viewWillMoveToWindow: with a nil window. Workaround this by catching this case.
283 * Plugins.subproj/WebBaseNetscapePluginView.m:
284 (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): new
285 (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]): clip out the plug-in view when superviewsHaveSuperviews returns NO
287 2005-02-03 Chris Blumenberg <cblu@apple.com>
289 Fixed: <rdar://problem/3893513> Sun iPlanet app: when saving to a file it brings up a window with the thing to be saved instead
293 * WebView.subproj/WebTextView.m:
294 (+[WebTextView unsupportedTextMIMETypes]): added "text/ldif" to the list of MIME types that our text view doesn't handle
298 2005-02-03 Chris Blumenberg <cblu@apple.com>
300 * English.lproj/StringsNotToBeLocalized.txt: updated
302 2005-02-03 Chris Blumenberg <cblu@apple.com>
304 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
308 * WebView.subproj/WebTextView.m:
309 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
311 2005-02-03 Vicki Murley <vicki@apple.com>
315 - fix deployment build breakage on Panther
317 * WebView.subproj/WebHTMLView.m:
318 (-[WebHTMLView toggleBaseWritingDirection:]):
320 2005-02-02 John Sullivan <sullivan@apple.com>
324 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
327 This also fixes the problems with printing from GMail, yay!
329 * WebView.subproj/WebHTMLView.m:
330 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
331 Don't adjust margins for header/footer here, because this is called for each subframe.
332 (-[WebHTMLView knowsPageRange:]):
333 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
334 Also, round the page height to an integer here (noticed in passing).
336 2005-02-02 Chris Blumenberg <cblu@apple.com>
338 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
342 * WebView.subproj/WebView.m:
343 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
344 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
345 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
346 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
348 2005-02-02 Chris Blumenberg <cblu@apple.com>
350 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
354 * WebCoreSupport.subproj/WebBridge.m:
355 (-[WebBridge selectWordBeforeMenuEvent]): new
356 * WebView.subproj/WebView.m:
357 (-[WebView _selectWordBeforeMenuEvent]): new SPI
358 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
359 * WebView.subproj/WebViewInternal.h:
360 * WebView.subproj/WebViewPrivate.h:
362 2005-02-02 Chris Blumenberg <cblu@apple.com>
364 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
368 * WebView.subproj/WebDataSource.m:
369 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
371 2005-02-02 Ken Kocienda <kocienda@apple.com>
377 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
379 * WebView.subproj/WebHTMLView.m:
380 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
381 new feature that allows callers to force all properties in a style to be applied as block styles.
382 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
383 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
385 2005-02-01 Richard Williamson <rjw@apple.com>
387 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
389 Note: This REQUIRES build >= 3A362 when building on Tiger.
393 * WebCoreSupport.subproj/WebImageData.m:
394 (-[WebImageData _imageSourceOptions]):
398 2005-02-01 Richard Williamson <rjw@apple.com>
400 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
404 * WebCoreSupport.subproj/WebTextRenderer.m:
406 * WebView.subproj/WebView.m:
407 (-[WebView drawRect:]):
408 (-[WebView _dashboardBehavior:]):
409 (+[WebView _setShouldUseFontSmoothing:]):
410 (+[WebView _shouldUseFontSmoothing]):
411 * WebView.subproj/WebViewInternal.h:
412 * WebView.subproj/WebViewPrivate.h:
414 2005-01-31 Chris Blumenberg <cblu@apple.com>
416 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
418 The data method was being called on WebDataSource before the data was set. This fix makes WebDataSource set the data before releasing the main client instead of waiting for the main client to set it when it is dealloced.
422 * WebView.subproj/WebDataSource.m:
423 (-[WebDataSource _setData:]): moved within file
424 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
425 * WebView.subproj/WebDataSourcePrivate.h:
426 * WebView.subproj/WebMainResourceClient.m:
427 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
429 2005-01-31 Chris Blumenberg <cblu@apple.com>
431 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
435 * WebView.subproj/WebHTMLView.m:
436 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
437 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
438 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
439 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
441 2005-01-31 David Harrison <harrison@apple.com>
445 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
447 * WebView.subproj/WebHTMLView.m:
448 (-[WebHTMLView maintainsInactiveSelection]):
449 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
451 2005-01-31 Jens Alfke <jens@apple.com>
455 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
457 * WebCoreSupport.subproj/WebImageData.m:
459 (-[WebImageData tileInRect:fromPoint:context:]):
461 2005-01-30 Darin Adler <darin@apple.com>
465 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
467 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
468 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
469 * WebView.subproj/WebPreferences.m:
470 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
471 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
472 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
474 2005-01-28 Jens Alfke <jens@apple.com>
478 <rdar://problem/3727680> printing some page with WebKit generates a PDF with a 1x1 image with soft mask (causes Acrobat to hang during print spooling)
480 Detect 1x1 images, extract and cache color of single pixel, reduce draw and tile operations to a color fill (or to a no-op if the pixel is clear.)
482 * WebCoreSupport.subproj/WebImageData.h:
483 * WebCoreSupport.subproj/WebImageData.m:
484 (-[WebImageData _invalidateImages]):
485 (-[WebImageData _checkSolidColor:]):
486 (-[WebImageData _cacheImages:allImages:]):
487 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
488 (-[WebImageData tileInRect:fromPoint:context:]):
490 2005-01-28 David Harrison <harrison@apple.com>
494 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
496 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
498 * WebView.subproj/WebHTMLView.m:
499 (-[WebHTMLView _accessibilityParentForSubview:]):
502 2005-01-28 Chris Blumenberg <cblu@apple.com>
504 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
508 * WebView.subproj/WebDefaultPolicyDelegate.m:
509 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
510 * WebView.subproj/WebFrame.m:
511 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
512 * WebView.subproj/WebPolicyDelegatePrivate.h:
514 2005-01-26 Maciej Stachowiak <mjs@apple.com>
516 Reviewed by Darin, Hyatt and Ken.
518 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
520 * WebView.subproj/WebHTMLView.m:
521 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
523 (-[WebHTMLView _styleForAttributeChange:]): likewise
524 (-[WebHTMLView underline:]): likewise
526 2005-01-27 Ken Kocienda <kocienda@apple.com>
530 * WebView.subproj/WebHTMLView.m:
531 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
532 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
533 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
534 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
535 determine which flavor of delete command to call.
536 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
537 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
538 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
539 (-[WebHTMLView deleteForward:]): Add _isEditable check.
540 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
542 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
543 (-[WebHTMLView deleteWordBackward:]): Ditto.
544 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
545 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
546 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
547 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
548 (-[WebHTMLView deleteToMark:]): Ditto.
552 2005-01-27 Chris Blumenberg <cblu@apple.com>
554 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
558 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
560 2005-01-26 Darin Adler <darin@apple.com>
564 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
566 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
567 draw the white "no document" background if it's NO. This fixes things for frames with no document.
568 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
569 for frames with just an image.
570 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
571 document view if it implements it. This fixes things for frames with plain text.
573 2005-01-25 John Sullivan <sullivan@apple.com>
577 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
578 in WebKit needs "Look Up in Dictionary" item
580 * WebView.subproj/WebDefaultContextMenuDelegate.m:
581 (localizedMenuTitleFromAppKit):
582 return English string in the case where AppKit bundle is found but doesn't
583 contain the expected string. This case will be hit by people testing with
585 (-[WebDefaultUIDelegate menuItemWithTag:]):
586 create Look Up in Dictionary item
587 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
588 add Look Up in Dictionary item and separator
589 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
592 * WebView.subproj/WebHTMLView.m:
593 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
594 new method, handles bringing up the Dictionary window. Includes FIXMEs
595 for a couple of the known loose ends.
596 (-[WebHTMLView validateUserInterfaceItem:]):
597 handle Look Up in Dictionary item like the other new items
599 * WebView.subproj/WebUIDelegatePrivate.h:
600 added SPI constant for Look Up in Dictionary menu item
602 2005-01-24 Maciej Stachowiak <mjs@apple.com>
604 Fixed Panther build (missing ifdef)
606 * WebView.subproj/WebDefaultContextMenuDelegate.m:
608 2005-01-24 John Sullivan <sullivan@apple.com>
612 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
614 * WebView.subproj/WebDefaultContextMenuDelegate.m:
615 (localizedMenuTitleFromAppKit):
616 new function, gets localized string from AppKit so we can avoid adding localized
617 strings to WebKit at this late date in Tiger. Returns the non-localized English
618 string if we can't find the localized string in AppKit.
619 (-[WebDefaultUIDelegate menuItemWithTag:]):
620 handle the two new menu items by tag name
621 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
622 add menu items for Search in Google and Search in Spotlight to selected-text menu item
623 for the noneditable case
624 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
625 add menu items for Search in Google and Search in Spotlight to selected-text menu item
626 for the editable case
628 * WebView.subproj/WebHTMLView.m:
629 (-[WebHTMLView _searchWithGoogleFromMenu:]):
630 implement this menu item action method, using same method name and implementation as NSTextView
631 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
632 implement this menu item action method, using same basic implementation as NSTextView
633 (-[WebHTMLView validateUserInterfaceItem:]):
634 validate new menu items
636 * WebView.subproj/WebUIDelegatePrivate.h:
637 define new tags for new menu items
639 * English.lproj/StringsNotToBeLocalized.txt:
640 updated for these changes
642 2005-01-24 Darin Adler <darin@apple.com>
644 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
645 Do the same check as for view types, so the representation types are consistent.
647 2005-01-24 Darin Adler <darin@apple.com>
651 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
653 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
654 few loose ends here: strikethrough and underline.
656 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
658 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
659 Leave the PDF-handling classes out of the dictionary if the secret default is set.
661 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
663 2005-01-20 Darin Adler <darin@apple.com>
665 Reviewed by Kristin Forster.
667 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
669 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
670 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
671 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
672 to the event. Tested with both Contribute and CarbonWeb.
674 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
676 2005-01-20 Richard Williamson <rjw@apple.com>
678 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
680 The AppKit's font substitution API doesn't match font traits!
681 It only find fonts that contain the appropriate glyphs. This
682 patch attempts to find the best variation within a family.
686 * WebCoreSupport.subproj/WebTextRenderer.m:
687 (-[WebTextRenderer _substituteFontForString:families:]):
691 2005-01-20 Ken Kocienda <kocienda@apple.com>
697 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
699 * WebView.subproj/WebHTMLView.m:
700 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
701 with FIXME's in them for make bigger and make smaller with real working code.
703 2005-01-19 David Hyatt <hyatt@apple.com>
705 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
710 * WebCoreSupport.subproj/WebTextRenderer.m:
711 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
713 2005-01-19 Darin Adler <darin@apple.com>
717 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
719 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
721 2005-01-19 Chris Blumenberg <cblu@apple.com>
723 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
727 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
728 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
730 2005-01-17 Darin Adler <darin@apple.com>
732 * DOM.subproj/DOMPrivate.h: Check in generated file.
734 2005-01-17 Darin Adler <darin@apple.com>
736 Reviewed by John and Richard.
738 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
740 * WebView.subproj/WebFrameViewPrivate.h: Added.
741 * WebView.subproj/WebFrameView.m:
742 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
743 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
744 the work is compatible with our header and footer code.
745 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
746 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
747 the NSPrintOperation, and also the PDFKit SPI works this way.
749 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
750 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
751 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
753 * WebView.subproj/WebPDFView.m:
754 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
755 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
757 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
759 2005-01-13 Chris Blumenberg <cblu@apple.com>
761 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
763 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
764 which allows plug-ins create an auxiliary MIME types file.
768 * Plugins.subproj/WebBasePluginPackage.h:
769 * Plugins.subproj/WebBasePluginPackage.m:
770 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
771 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
772 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
773 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
774 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
775 * Plugins.subproj/WebNetscapePluginPackage.h:
776 * Plugins.subproj/WebNetscapePluginPackage.m:
777 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
778 * Plugins.subproj/WebPluginPackage.m:
779 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
780 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
782 2005-01-13 Richard Williamson <rjw@apple.com>
784 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
788 * Plugins.subproj/WebJavaPlugIn.h:
792 2005-01-13 Vicki Murley <vicki@apple.com>
796 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
798 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
800 2005-01-13 Richard Williamson <rjw@apple.com>
802 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
804 Draw last image after animation loop terminates. (We
805 were drawing the image at index+1, which doesn't exist!)
809 * WebCoreSupport.subproj/WebImageData.m:
810 (-[WebImageData _nextFrame:]):
812 2005-01-13 Richard Williamson <rjw@apple.com>
814 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
816 Turn off use of new CGContextStrokeLineSegments API. We should
817 turn back on when 3952944 is fixed.
821 * WebCoreSupport.subproj/WebTextRenderer.m:
822 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
824 2005-01-13 Chris Blumenberg <cblu@apple.com>
826 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
830 * Misc.subproj/WebNSViewExtras.m:
831 (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]): if [WebImageRenderer image] returns nil, fallback to code that uses a file icon as the drag image
832 * WebCoreSupport.subproj/WebImageRendererFactory.m:
833 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
834 * WebView.subproj/WebImageView.m:
835 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
837 2005-01-10 Maciej Stachowiak <mjs@apple.com>
841 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
843 * WebCoreSupport.subproj/WebTextRenderer.m:
844 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
845 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
846 .5 pixels, since the rendering engine can't give a fractional pixel offset.
847 * WebView.subproj/WebHTMLView.m:
848 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
849 clause attributes. Others that NSText supports are unimplemented for now.
850 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
851 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
852 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
853 and ranges out of an attributed string.
854 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
855 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
858 2005-01-12 Darin Adler <darin@apple.com>
862 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
864 * WebView.subproj/WebHTMLView.m:
865 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
866 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
867 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
868 optimize by only doing layouts you really need, and doing them later on is safe because we
869 know we don't need to draw any of the views behind us.
870 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
871 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
873 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
874 _layoutIfNeeded method above. Otherwise unchanged.
875 (-[NSView _web_layoutIfNeededRecursive]): Added.
877 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
878 on the scroll view when changing the frame to no longer be in "draws background" mode. This
879 is needed because the frame manages the "draws background" mode of the scroll view. It won't
880 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
881 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
882 This was hidden before because the HTML view was filling with transparent color, which blew away
883 the fill that was done by NSScrollView.
885 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
887 * WebCoreSupport.subproj/WebImageData.m:
888 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
889 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
890 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
891 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
892 all the renderers because the process of stopping modifies the active sets.
894 2005-01-12 Richard Williamson <rjw@apple.com>
896 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
898 Get loop count from file properties, not image properties.
900 Reviewed by Ken Kocienda.
902 * WebCoreSupport.subproj/WebImageData.h:
903 * WebCoreSupport.subproj/WebImageData.m:
904 (-[WebImageData _commonTermination]):
905 (-[WebImageData fileProperties]):
906 (-[WebImageData _floatProperty:type:at:]):
907 (-[WebImageData _floatFileProperty:type:]):
908 (-[WebImageData _repetitionCount]):
910 2005-01-11 Chris Blumenberg <cblu@apple.com>
912 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
916 * Plugins.subproj/WebBaseNetscapePluginView.m:
917 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
919 2005-01-11 John Sullivan <sullivan@apple.com>
923 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
924 (e.g. <strike>, underline)
926 * WebCoreSupport.subproj/WebTextRenderer.m:
927 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
928 This bottleneck routine for drawing a line was setting the linewidth to 0 when
929 the graphics context was not drawing to the screen. Thus, no lines. Now links
930 are underlined when printing from Safari (as well as Mail).
932 2005-01-11 Richard Williamson <rjw@apple.com>
934 Fixed 3949145. CG has a much faster API for drawing lines.
935 Switched over to that new API (CGContextStrokeLineSegments).
937 Reviewed by John Sullivan.
939 * WebCoreSupport.subproj/WebTextRenderer.m:
940 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
942 2005-01-10 Chris Blumenberg <cblu@apple.com>
944 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
946 This problem occurred because we were creating image elements before creating corresponding image resources. The fix is to have AppKit call us back to create the resources before it creates the elements.
950 * WebView.subproj/WebHTMLView.m:
951 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
952 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
956 2005-01-06 David Harrison <harrison@apple.com>
958 Reviewed by Dave Hyatt
960 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
962 * WebView.subproj/WebHTMLView.m:
963 (-[WebHTMLView accessibilityFocusedUIElement]):
964 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
966 2005-01-05 Chris Blumenberg <cblu@apple.com>
968 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
972 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
974 2005-01-04 Chris Blumenberg <cblu@apple.com>
976 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
978 Reviewed by kocienda.
980 * WebView.subproj/WebHTMLView.m:
981 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
983 2004-12-21 Maciej Stachowiak <mjs@apple.com>
987 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
989 Implement a security check on name frame visbility. This is the
990 same rule as mozilla. You can only target frames by name if you
991 are in the same window, have the same domain as the frame or an
992 ancestor, or if it's a top level window have the same domain as
995 * WebView.subproj/WebFrame.m:
996 (-[WebFrame _shouldAllowAccessFrom:]):
997 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
998 (-[WebFrame findFrameNamed:]):
999 * WebView.subproj/WebFramePrivate.h:
1000 * WebView.subproj/WebView.m:
1001 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
1002 (-[WebView _findFrameNamed:sourceFrame:]):
1003 * WebView.subproj/WebViewPrivate.h:
1009 2004-12-20 Richard Williamson <rjw@apple.com>
1011 Add call to new API. ImageIO deprecated some older (although
1012 quite new!) API. This caused us to fail to build on 337 or later.
1014 Developers wanting to build on older versions of Tiger must define
1015 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
1019 * WebCoreSupport.subproj/WebImageData.m:
1020 (-[WebImageData propertiesAtIndex:]):
1022 2004-12-20 Richard Williamson <rjw@apple.com>
1024 Don't call Tiger SPI on Panther.
1028 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1029 (+[WebTextRendererFactory createSharedFactory]):
1031 2004-12-20 Richard Williamson <rjw@apple.com>
1033 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
1035 Enable mutli-tier font caching. We should see a performance boost with this
1040 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1041 (+[WebTextRendererFactory createSharedFactory]):
1043 2004-12-20 Richard Williamson <rjw@apple.com>
1045 Fix image decoding to separately decode image meta data from actual image bits. I
1046 incorrectly consolidated decode of meta data and image bits resulting in a huge
1047 performance regression.
1049 Double size of WebCore cache on lower end machines. On the PLT run on machines with
1050 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
1051 Upping the lower limit of the cache size ensure that no images are evicted (this
1052 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
1056 * WebCoreSupport.subproj/WebImageData.h:
1057 * WebCoreSupport.subproj/WebImageData.m:
1058 (+[WebImageData initialize]):
1059 (-[WebImageData _commonTermination]):
1060 (-[WebImageData _invalidateImages]):
1061 (-[WebImageData _invalidateImageProperties]):
1062 (-[WebImageData imageAtIndex:]):
1063 (-[WebImageData propertiesAtIndex:]):
1064 (-[WebImageData _cacheImages:allImages:]):
1065 (-[WebImageData decodeData:isComplete:callback:]):
1066 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1067 * WebView.subproj/WebPreferences.m:
1068 (+[WebPreferences initialize]):
1070 2004-12-20 Richard Williamson <rjw@apple.com>
1072 Fixed build problem caused by change to ImageIO API.
1076 * WebCoreSupport.subproj/WebImageData.m:
1078 2004-12-19 Darin Adler <darin@apple.com>
1082 - some garbage collection fixes
1084 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
1085 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
1087 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
1088 get rid of an unnecessary use of WebNSRetainCFRelease.
1089 * Misc.subproj/WebNSURLExtras.m:
1090 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
1091 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
1092 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
1093 work correctly under GC.
1094 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
1095 Use WebCFAutorelease here; the old code would not work correctly under GC.
1097 2004-12-18 Chris Blumenberg <cblu@apple.com>
1099 Fixed: <rdar://problem/3766915> PDF content needs search to work
1101 Reviewed by kevin, john.
1103 * WebView.subproj/WebPDFView.m:
1104 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
1105 (-[WebPDFView takeFindStringFromSelection:]): new
1106 (-[WebPDFView jumpToSelection:]): new
1107 (-[WebPDFView validateUserInterfaceItem:]): new
1109 2004-12-17 Richard Williamson <rjw@apple.com>
1111 Make image decoding as lazy as possible for non threaded case; in some cases
1112 can avoid unnecessary decoding work.
1116 * WebCoreSupport.subproj/WebImageData.h:
1117 * WebCoreSupport.subproj/WebImageData.m:
1118 (-[WebImageData imageAtIndex:]):
1119 (-[WebImageData propertiesAtIndex:]):
1120 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1122 2004-12-16 John Sullivan <sullivan@apple.com>
1126 One of the assertions from my previous checkin fired, so
1127 I made this code more robust.
1129 * WebCoreSupport.subproj/WebBridge.m:
1130 (-[WebBridge _preferences]):
1131 new helper method, returns global preferences if webView is nil,
1132 otherwise returns webView's preferences
1133 (-[WebBridge getObjectCacheSize]):
1134 use new helper method, remove now-unnecessary assert
1135 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1138 2004-12-16 John Sullivan <sullivan@apple.com>
1142 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
1143 - cleaned up some calls to +[WebPreferences standardPreferences] that should
1144 have been using -[WebView preferences]
1146 This adds a (currently SPI-only) new feature that shows the URL of the link
1147 under the mouse in a toolTip. I tested this in Safari, but we're adding this
1148 feature for Mail, and Safari won't use it (unless of course you know the
1149 magic defaults command)
1151 * Plugins.subproj/WebBaseNetscapePluginView.m:
1152 (-[WebBaseNetscapePluginView start]):
1153 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
1155 * WebCoreSupport.subproj/WebBridge.m:
1156 (-[WebBridge getObjectCacheSize]):
1158 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
1161 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1162 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
1165 * WebView.subproj/WebFrame.m:
1166 (-[WebFrame _transitionToCommitted:]):
1168 (-[WebFrame _loadItem:withLoadType:]):
1171 * WebView.subproj/WebHTMLViewInternal.h:
1172 private struct now keeps ivar for cached value of showsURLsInToolTips
1173 so it doesn't have look it up in preferences a zillion times
1175 * WebView.subproj/WebHTMLView.m:
1176 (-[WebHTMLView _updateMouseoverWithEvent:]):
1177 if private->showsURLsInToolTips is true, set the toolTip from the URL.
1178 Fall back to showing the title attribute in case some element has a title
1179 attribute but no URL.
1180 (-[WebHTMLView _mayStartDragAtEventLocation:]):
1181 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
1182 (-[WebHTMLView _resetCachedWebPreferences:]):
1183 get a fresh value for private->showsURLsInToolTips
1184 (-[WebHTMLView initWithFrame:]):
1185 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
1186 (-[WebHTMLView _handleStyleKeyEquivalent:]):
1187 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
1189 * WebView.subproj/WebPreferenceKeysPrivate.h:
1190 added WebKitShowsURLsInToolTipsPreferenceKey
1192 * WebView.subproj/WebPreferences.m:
1193 (+[WebPreferences initialize]):
1194 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
1195 (-[WebPreferences showsURLsInToolTips]):
1196 return WebKitShowsURLsInToolTipsPreferenceKey value
1197 (-[WebPreferences setShowsURLsInToolTips:]):
1198 set WebKitShowsURLsInToolTipsPreferenceKey value
1200 * WebView.subproj/WebPreferencesPrivate.h:
1201 add declarations for showsURLsInToolTips and setter
1203 * WebView.subproj/WebTextView.m:
1204 (-[WebTextView _preferences]):
1205 new helper method that gets preferences from webView if there is a webView,
1206 otherwise gets global preferences
1207 (-[WebTextView setFixedWidthFont]):
1208 use new helper method rather than always using global preferences
1209 (-[WebTextView initWithFrame:]):
1210 observe WebPreferencesChangedNotification instead of unnecessarily general
1211 NSUserDefaultsChangedNotification
1213 2004-12-14 John Sullivan <sullivan@apple.com>
1217 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
1218 in the menu, no specific action names
1220 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
1221 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
1223 * WebView.subproj/WebHTMLView.m:
1224 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
1225 use WebUndoActionSetColor when dragging color swatch
1226 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
1227 new WebUndoAction parameter, passed across bridge
1228 (-[WebHTMLView _toggleBold]):
1229 use WebUndoActionSetFont
1230 (-[WebHTMLView _toggleItalic]):
1231 use WebUndoActionSetFont
1232 (-[WebHTMLView pasteFont:]):
1233 use WebUndoActionPasteFont
1234 (-[WebHTMLView changeFont:]):
1235 use WebUndoActionSetFont
1236 (-[WebHTMLView changeAttributes:]):
1237 use WebUndoActionChangeAttributes
1238 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
1239 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
1240 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1241 now calls _undoActionFromColorPanelWithSelector
1242 (-[WebHTMLView changeColor:]):
1243 use WebUndoActionSetColor
1244 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
1245 new WebUndoAction parameter, passed through
1246 (-[WebHTMLView alignCenter:]):
1247 use WebUndoActionCenter
1248 (-[WebHTMLView alignJustified:]):
1249 use WebUndoActionJustify
1250 (-[WebHTMLView alignLeft:]):
1251 use WebUndoActionAlignLeft
1252 (-[WebHTMLView alignRight:]):
1253 use WebUndoActionAlignRight
1254 (-[WebHTMLView subscript:]):
1255 use WebUndoActionAlignSubscript
1256 (-[WebHTMLView superscript:]):
1257 use WebUndoActionAlignSuperscript
1258 (-[WebHTMLView unscript:]):
1259 use WebUndoActionAlignUnscript
1260 (-[WebHTMLView underline:]):
1261 use WebUndoActionAlignUnderline
1263 * WebView.subproj/WebView.m:
1264 (-[WebView setTypingStyle:]):
1265 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
1266 (-[WebView applyStyle:]):
1269 2004-12-14 Richard Williamson <rjw@apple.com>
1271 Helper method to get URL of plugin view.
1275 * Misc.subproj/WebNSViewExtras.m:
1276 (-[NSView _webViewURL]):
1278 2004-12-14 Vicki Murley <vicki@apple.com>
1282 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
1284 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
1285 file as well, as requested in the bug report
1287 2004-12-13 Maciej Stachowiak <mjs@apple.com>
1291 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
1293 * WebView.subproj/WebHTMLView.m:
1294 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
1295 we end up with no marked text, since that case fails and is unnecessary.
1297 2004-12-14 John Sullivan <sullivan@apple.com>
1301 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
1302 no specific action names
1304 * WebCoreSupport.subproj/WebBridge.m:
1305 (-[WebBridge nameForUndoAction:]):
1306 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
1307 handled new "unspecified" case as a fallback
1309 2004-12-13 Richard Williamson <rjw@apple.com>
1311 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
1315 * Plugins.subproj/WebJavaPlugIn.h:
1317 2004-12-13 John Sullivan <sullivan@apple.com>
1321 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
1322 that can't be cancelled.
1324 The proper fix for this would be to change the class of the NSPanel in the nib file.
1325 But since this would require a localization change, I did a run-time hack instead.
1326 I'll file a bug about fixing this when we're out of localization freeze.
1328 * Panels.subproj/WebAuthenticationPanel.m:
1329 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
1330 new method, creates a new panel that is identical to the original one except that
1331 it's our subclass, and moves all the subviews of the original panel into the new one.
1332 (-[WebAuthenticationPanel loadNib]):
1333 call replacePanelWithSubclassHack
1334 (-[NonBlockingPanel _blocksActionWhenModal:]):
1335 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
1336 when one of these panels/sheets is on-screen
1338 2004-12-10 Richard Williamson <rjw@apple.com>
1340 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
1341 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
1343 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
1347 * WebCoreSupport.subproj/WebImageData.h:
1348 * WebCoreSupport.subproj/WebImageData.m:
1349 (-[WebImageData setIsPDF:]):
1350 (-[WebImageData isPDF]):
1351 (-[WebImageData dealloc]):
1352 (-[WebImageData decodeData:isComplete:callback:]):
1353 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1354 (-[WebImageData size]):
1355 (-[WebImageData animate]):
1356 (-[WebImageData _createPDFWithData:]):
1357 (-[WebImageData _PDFDocumentRef]):
1358 (-[WebImageData _PDFDrawInContext:]):
1359 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
1360 * WebCoreSupport.subproj/WebImageRenderer.h:
1361 * WebCoreSupport.subproj/WebImageRenderer.m:
1362 (-[WebImageRenderer size]):
1363 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
1364 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1367 2004-12-10 John Sullivan <sullivan@apple.com>
1371 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
1372 if there's no default printer set
1374 * WebView.subproj/WebHTMLView.m:
1375 (-[WebHTMLView beginDocument]):
1376 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
1377 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
1378 However, it turns out that if there's an exception in [super beginDocument], then endDocument
1379 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
1380 exiting the "printing mode" in beginDocument when it occurs.
1382 2004-12-09 Richard Williamson <rjw@apple.com>
1384 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
1386 Restrict our support for animated images to GIF. We used to
1387 use presence of more than one image in a resource to determine
1388 if an image should be animated. This caused us to animate icns!
1389 If we ever support any other animated image formats we'll have
1394 * WebCoreSupport.subproj/WebImageData.h:
1395 * WebCoreSupport.subproj/WebImageData.m:
1396 (-[WebImageData shouldAnimate]):
1397 * WebCoreSupport.subproj/WebImageRenderer.m:
1398 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1400 2004-12-09 Richard Williamson <rjw@apple.com>
1402 Make WebPluginDatabase.h private (Dashboard needs SPI).
1404 * WebKit.pbproj/project.pbxproj:
1408 2004-12-09 Chris Blumenberg <cblu@apple.com>
1410 Workaround for this exception being raised during download:
1411 [WebDownload connection:willStopBufferingData:]: selector not recognized
1415 * Misc.subproj/WebDownload.m:
1416 (-[WebDownload connection:willStopBufferingData:]): implement this method so no exception is raised. It is a bug in Foundation that this method is being called, but it's too late to fix Foundation since it has already been submitted this week. This workaround will prevent any problems from affecting users.
1418 2004-12-08 Richard Williamson <rjw@apple.com>
1420 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
1421 Account for scaling correctly when taking into account progressively
1424 Also added implementation of repetition count for animated GIF images.
1425 Also replaced strings with new constants from CFImageProperties.h
1427 Also fixed possible problem with -(NSSize)size implementation,
1428 relevant to Panther only.
1432 * WebCoreSupport.subproj/WebImageData.m:
1433 (-[WebImageData _floatProperty:type:at:]):
1434 (-[WebImageData _frameDurationAt:]):
1435 (-[WebImageData _repetitionCount]):
1436 * WebCoreSupport.subproj/WebImageRenderer.m:
1437 (-[WebImageRenderer size]):
1439 2004-12-08 Chris Blumenberg <cblu@apple.com>
1441 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
1442 since 3828925 has been fixed.
1446 * Plugins.subproj/WebNetscapePluginPackage.m:
1447 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
1448 * Plugins.subproj/npapi.m: removed NPN wrappers
1449 * WebKit.exp: removed symbols
1451 2004-12-08 Ken Kocienda <kocienda@apple.com>
1455 * WebView.subproj/WebHTMLView.m:
1456 (-[WebHTMLView drawRect:]): Work around for this bug:
1457 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
1458 The reason for the workaround is that this method is called explicitly from the code
1459 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
1460 This code change uses the passed-in rect when the count is zero.
1462 2004-12-07 Administrator <cblu@apple.com>
1464 Support for fix for:
1465 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
1469 * Misc.subproj/WebNSURLExtras.h:
1470 * Misc.subproj/WebNSURLExtras.m:
1471 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
1472 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
1474 2004-12-07 Richard Williamson <rjw@apple.com>
1476 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
1480 * WebCoreSupport.subproj/WebImageRenderer.m:
1481 (-[WebImageRenderer size]):
1483 2004-12-07 Richard Williamson <rjw@apple.com>
1485 Support threaded image decoding on machines w/ >= 2 CPUs.
1487 Reviewed by Maciej and Chris.
1489 * Misc.subproj/WebKitSystemBits.h:
1490 * Misc.subproj/WebKitSystemBits.m:
1491 (WebSystemMainMemory):
1493 * WebCoreSupport.subproj/WebImageData.h:
1494 * WebCoreSupport.subproj/WebImageData.m:
1495 (+[WebImageData initialize]):
1496 (-[WebImageData init]):
1497 (-[WebImageData _commonTermination]):
1498 (-[WebImageData dealloc]):
1499 (-[WebImageData _invalidateImages]):
1500 (-[WebImageData _imageSourceOptions]):
1501 (-[WebImageData imageAtIndex:]):
1502 (-[WebImageData propertiesAtIndex:]):
1503 (-[WebImageData _createImages]):
1504 (-[WebImageData decodeData:isComplete:callback:]):
1505 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1507 (-[WebImageData tileInRect:fromPoint:context:]):
1508 (-[WebImageData isNull]):
1509 (-[WebImageData size]):
1510 (-[WebImageData _frameDurationAt:]):
1511 (-[WebImageData _frameDuration]):
1512 (+[WebImageData stopAnimationsInView:]):
1513 (-[WebImageData addAnimatingRenderer:inView:]):
1514 (-[WebImageData removeAnimatingRenderer:]):
1515 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
1516 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
1517 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
1518 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
1519 (-[WebImageDecodeItem finalize]):
1520 (-[WebImageDecodeItem dealloc]):
1521 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
1522 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
1523 (decoderNotifications):
1524 (+[WebImageDecoder initialize]):
1525 (+[WebImageDecoder notifyMainThread]):
1526 (+[WebImageDecoder sharedDecoder]):
1527 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
1528 (+[WebImageDecoder imageDecodesPending]):
1529 (+[WebImageDecoder decodeComplete:status:]):
1530 (-[WebImageDecoder init]):
1531 (-[WebImageDecoder dealloc]):
1532 (-[WebImageDecoder finalize]):
1533 (-[WebImageDecoder removeItem]):
1534 (-[WebImageDecoder addItem:]):
1535 (-[WebImageDecoder decodeItem:]):
1537 (startDecoderThread):
1538 * WebCoreSupport.subproj/WebImageRenderer.m:
1539 (-[WebImageRenderer initWithData:MIMEType:]):
1540 (-[WebImageRenderer initWithContentsOfFile:]):
1541 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
1542 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
1543 * WebKit.pbproj/project.pbxproj:
1544 * WebView.subproj/WebImageRepresentation.m:
1545 (-[WebImageRepresentation receivedData:withDataSource:]):
1546 (-[WebImageRepresentation receivedError:withDataSource:]):
1547 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
1549 2004-12-07 Chris Blumenberg <cblu@apple.com>
1551 Fix for performance regression.
1555 * WebCoreSupport.subproj/WebBridge.m:
1556 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
1558 2004-12-07 Chris Blumenberg <cblu@apple.com>
1560 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
1564 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1565 * WebView.subproj/WebMainResourceClient.m:
1566 (-[WebMainResourceClient addData:]): call super so it buffers the data
1568 2004-12-06 Richard Williamson <rjw@apple.com>
1570 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
1571 and resolve why metrics have changed for Courier. This may be caused by changes in
1576 * WebCoreSupport.subproj/WebTextRenderer.m:
1577 (_AppkitGetCGRenderingMode):
1581 2004-12-06 Chris Blumenberg <cblu@apple.com>
1583 Forgot to commit copied header.
1585 * DOM.subproj/DOMPrivate.h:
1587 2004-12-06 Chris Blumenberg <cblu@apple.com>
1589 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
1593 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1594 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1595 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
1596 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
1597 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
1598 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
1599 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
1600 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
1601 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
1602 * WebView.subproj/WebDataSource.m:
1603 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
1604 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
1605 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
1606 * WebView.subproj/WebDataSourcePrivate.h:
1607 * WebView.subproj/WebMainResourceClient.m:
1608 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
1609 (-[WebMainResourceClient connection:didReceiveData:lengthReceived:]):don't call [dataSource data] just to get the length of data received since [dataSource data] can now cause data to be copied
1610 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
1611 * WebView.subproj/WebResource.m:
1612 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
1613 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
1614 * WebView.subproj/WebResourcePrivate.h:
1616 2004-12-06 Richard Williamson <rjw@apple.com>
1618 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
1620 Use CGFontRef direction when both getting font metrics and drawing
1621 glyphs, instead on depending on [NSFont set].
1625 * WebCoreSupport.subproj/WebTextRenderer.m:
1629 2004-12-06 Ken Kocienda <kocienda@apple.com>
1631 Reviewed by Harrison
1635 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
1637 * WebView.subproj/WebHTMLView.m:
1638 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
1641 2004-12-04 Darin Adler <darin@apple.com>
1645 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
1646 - fixed <rdar://problem/3857737> REGRESSION (165-166): clicking in a text field that's scrolled to the right causes it to scroll all the way left
1647 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
1649 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
1650 * WebView.subproj/WebHTMLView.m:
1651 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
1652 tracking number of 0, which means no existing tracking number.
1653 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
1654 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
1655 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1656 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
1657 field since that field is set up too early in the mouse down event handling process.
1658 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
1660 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
1662 * WebCoreSupport.subproj/WebBridge.m:
1663 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1664 Changed code around so that it won't try to create a WebResource when the load fails.
1666 - moved next/previous links into private structure with the rest of WebFrame fields
1667 (We have a rule against putting new fields into obejcts that are part of our public API.)
1669 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
1670 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
1671 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
1672 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
1673 (-[WebFrame _removeChild:]): Ditto.
1674 (-[WebFrame _nextFrameWithWrap:]): Ditto.
1675 (-[WebFrame _previousFrameWithWrap:]): Ditto.
1677 2004-12-04 Chris Blumenberg <cblu@apple.com>
1680 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1681 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1682 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
1683 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
1685 Reviewed by darin, rjw, kocienda.
1687 * WebCoreSupport.subproj/WebBridge.m:
1688 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
1689 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1690 * WebCoreSupport.subproj/WebSubresourceClient.m:
1691 (-[WebSubresourceClient didFinishLoading]):
1692 * WebView.subproj/WebFrame.m:
1693 (-[WebFrame _opened]):
1694 (-[WebFrame _internalLoadDelegate]):
1695 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
1696 * WebView.subproj/WebFrameInternal.h:
1698 2004-12-04 Darin Adler <darin@apple.com>
1702 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1704 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
1705 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
1706 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
1708 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
1712 2004-12-03 Ken Kocienda <kocienda@apple.com>
1716 Roll out some recent changes by Chris that caused a performance regression.
1717 Fix is in hand, but it is a little risky this close to a submission. So,
1718 we have decided to roll back the change with the regression and roll in
1719 the new code after we submit.
1721 * WebCoreSupport.subproj/WebBridge.m:
1722 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
1723 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1724 * WebCoreSupport.subproj/WebSubresourceClient.m:
1725 (-[WebSubresourceClient didFinishLoading]):
1726 * WebView.subproj/WebFrame.m:
1727 (-[WebFrame _opened]):
1728 (-[WebFrame _internalLoadDelegate]):
1729 * WebView.subproj/WebFrameInternal.h:
1731 2004-12-02 Richard Williamson <rjw@apple.com>
1733 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
1735 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
1736 the b/f cache won't incorrectly trash the previous state when restoring.
1740 * WebView.subproj/WebFrame.m:
1741 (-[WebFrame _setState:]):
1743 2004-12-02 Ken Kocienda <kocienda@apple.com>
1747 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
1748 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
1750 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
1751 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
1752 did a conversion of the passed-in point to the document view's coordinate space, whereas
1753 editableDOMRangeForPoint: did not. Now it does.
1755 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
1756 attempts to work around this problem (unsuccessfully), and actually manages to block the
1757 real fix (which needs to be in WebKit).
1759 * WebView.subproj/WebView.m:
1760 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
1762 2004-12-02 Richard Williamson <rjw@apple.com>
1764 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
1766 We have a hack to replace Times with Times New Roman if we fail
1767 to setup Times. If we then fail to setup Times New Roman we
1768 don't attempt to further fallback to the system font. Added
1769 that additional fallback.
1773 * WebCoreSupport.subproj/WebTextRenderer.m:
1774 (+[WebTextRenderer webFallbackFontFamily]):
1775 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1777 2004-12-02 Richard Williamson <rjw@apple.com>
1779 Fixed build problem on Tiger8A821. Private macro and function
1780 we were using have been deprecated,
1784 * WebCoreSupport.subproj/WebTextRenderer.m:
1785 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1787 2004-12-01 Chris Blumenberg <cblu@apple.com>
1789 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
1790 Also improved and cleaned-up the plug-in stream termination code.
1794 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1795 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1796 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
1797 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
1798 (-[WebBaseNetscapePluginStream errorForReason:]): new
1799 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
1800 (-[WebBaseNetscapePluginStream setMIMEType:]): new
1801 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
1802 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
1803 (-[WebBaseNetscapePluginStream _destroyStreamWithReason:]): prepended underscore, only call _destroyStream if there is an error or if the load is complete and there is no more data to be streamed
1804 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
1805 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
1806 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
1807 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
1808 * Plugins.subproj/WebBaseNetscapePluginView.m:
1809 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
1810 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1811 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
1812 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
1813 * Plugins.subproj/WebNetscapePluginStream.m:
1814 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
1815 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
1816 (-[WebNetscapePluginConnectionDelegate isDone]): new
1817 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
1818 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
1820 2004-12-01 Kevin Decker <kdecker@apple.com>
1822 Reviewed by Harrison.
1824 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
1826 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
1828 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
1829 * WebView.subproj/WebFrame.m:
1830 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
1831 (-[WebFrame _removeChild:]): ditto
1832 (-[WebFrame _nextSibling]): just return the pointer now
1833 (-[WebFrame _previousSibling]): ditto
1835 2004-11-30 Chris Blumenberg <cblu@apple.com>
1838 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1839 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1843 * WebCoreSupport.subproj/WebBridge.m:
1844 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
1845 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
1846 * WebCoreSupport.subproj/WebSubresourceClient.m:
1847 (-[WebSubresourceClient didFinishLoading]): call renamed method
1848 * WebView.subproj/WebFrame.m:
1849 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
1850 (-[WebFrame _internalLoadDelegate]):
1851 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
1852 * WebView.subproj/WebFrameInternal.h:
1854 2004-11-29 Darin Adler <darin@apple.com>
1858 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
1859 without first checking if it's implemented
1861 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
1862 Implemented. Calls floatValue on the scroller.
1864 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1866 2004-11-23 Chris Blumenberg <cblu@apple.com>
1868 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
1872 * Misc.subproj/WebIconDatabase.h:
1873 * Misc.subproj/WebIconDatabase.m:
1874 (-[WebIconDatabase init]): don't create dictionaries if disabled
1875 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
1876 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
1877 (-[WebIconDatabase retainIconForURL:]): return if disabled
1878 (-[WebIconDatabase releaseIconForURL:]): ditto
1879 (-[WebIconDatabase delayDatabaseCleanup]): ditto
1880 (-[WebIconDatabase allowDatabaseCleanup]): ditto
1881 (-[WebIconDatabase _isEnabled]): new
1882 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
1883 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
1884 (-[WebIconDatabase _setIconURL:forURL:]): ditto
1885 (-[WebIconDatabase _createFileDatabase]): tweak
1886 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
1887 * Misc.subproj/WebIconDatabasePrivate.h:
1888 * Misc.subproj/WebIconLoader.m:
1889 * WebView.subproj/WebDataSource.m:
1890 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
1891 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
1893 2004-11-22 David Hyatt <hyatt@apple.com>
1895 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
1899 * WebCoreSupport.subproj/WebBridge.m:
1900 (-[WebBridge getObjectCacheSize]):
1902 2004-11-22 Richard Williamson <rjw@apple.com>
1904 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
1906 John found this problem and suggested the fix.
1908 Reviewed by John Louch.
1910 * WebView.subproj/WebView.m:
1911 (-[WebView setPreferences:]):
1913 2004-11-22 Ken Kocienda <kocienda@apple.com>
1915 Reviewed by Harrison
1917 * WebCoreSupport.subproj/WebBridge.m:
1918 (-[WebBridge canPaste]): Call WebView _canPaste.
1919 * WebView.subproj/WebView.m:
1920 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
1921 answers right now. Returns NO otherwise.
1922 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
1924 2004-11-22 Maciej Stachowiak <mjs@apple.com>
1926 Back out the window closing fix, it seems to be causing crashes.
1928 * WebView.subproj/WebFrame.m:
1929 (-[WebFrame _detachFromParent]):
1931 2004-11-20 Maciej Stachowiak <mjs@apple.com>
1935 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
1937 * Misc.subproj/WebNSURLExtras.h:
1938 * Misc.subproj/WebNSURLExtras.m:
1939 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
1940 string is already in user-visible form (i.e. converting it to an
1941 NSURL and then back via _web_userVisibleString would not change
1944 2004-11-19 Maciej Stachowiak <mjs@apple.com>
1948 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
1950 * WebView.subproj/WebFrame.m:
1951 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
1952 to make window and tab closing more responsive - this way the deallocation happens
1953 after the windoow or tab appears to close.
1957 2004-11-19 Chris Blumenberg <cblu@apple.com>
1959 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
1963 * Plugins.subproj/WebBaseNetscapePluginView.m:
1964 (-[NSData _web_locationAfterFirstBlankLine]): support both formats ("\r\n\n" and "\r\n\r\n") for separating header data from body data because Shockwave still sends the prior format
1966 2004-11-19 Ken Kocienda <kocienda@apple.com>
1968 Reviewed by Harrison
1972 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
1974 * WebCoreSupport.subproj/WebBridge.m:
1975 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
1976 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
1978 (-[WebBridge respondToChangedSelection]): Ditto.
1979 * WebView.subproj/WebView.m:
1980 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
1981 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
1982 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
1983 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
1985 2004-11-18 John Sullivan <sullivan@apple.com>
1989 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
1990 parsing, reading and writing is faster
1992 * History.subproj/WebHistory.m:
1993 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
1994 convert dictionary to binary data before saving
1996 2004-11-18 Chris Blumenberg <cblu@apple.com>
1998 * WebView.subproj/WebHTMLRepresentation.m:
1999 (-[WebHTMLRepresentation currentForm]): removed stray ";"
2001 2004-11-18 Chris Blumenberg <cblu@apple.com>
2003 Fixed development build failure.
2005 * Misc.subproj/WebIconDatabase.m:
2006 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
2008 2004-11-18 Chris Blumenberg <cblu@apple.com>
2010 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
2012 Reviewed by sullivan.
2014 * Misc.subproj/WebIconDatabase.m:
2015 (+[WebIconDatabase sharedIconDatabase]): added timing code
2016 (-[WebIconDatabase _clearDictionaries]): new
2017 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
2018 (-[WebIconDatabase _updateFileDatabase]): fixed comment
2019 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
2020 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
2021 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
2023 2004-11-17 Richard Williamson <rjw@apple.com>
2025 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
2027 Correctly account for scaled image size and clipping.
2031 * WebCoreSupport.subproj/WebImageData.h:
2032 * WebCoreSupport.subproj/WebImageData.m:
2033 * WebCoreSupport.subproj/WebImageRenderer.m:
2034 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
2036 2004-11-17 Maciej Stachowiak <mjs@apple.com>
2038 Reviewed by Richard.
2040 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
2043 * Misc.subproj/WebNSURLExtras.m:
2044 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
2045 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
2046 check for localhost, no longer needed.
2048 2004-11-17 Richard Williamson <rjw@apple.com>
2050 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
2052 and added call to SPI for
2054 <rdar://problem/3884448> WebKit should turn on CG local font cache
2056 currently disabled until a Tiger build shows up with the SPI.
2058 Reviewed by David Harrison.
2060 * WebCoreSupport.subproj/WebTextRendererFactory.m:
2061 (+[WebTextRendererFactory createSharedFactory]):
2063 2004-11-17 Richard Williamson <rjw@apple.com>
2065 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
2066 Fixed <rdar://problem/3884088> Crash terminating image load
2068 Also added code to turn off color correction for images created
2069 via CGImageSources. This code is currently disabled because CG
2070 can't change the color space of images loaded progressively.
2071 Further, according to Dave Hayward, CG will no longer attempt
2072 to color correct images that don't have embedded profiles as of
2077 * WebCoreSupport.subproj/WebImageData.m:
2078 (-[WebImageData _commonTermination]):
2079 (-[WebImageData dealloc]):
2080 (-[WebImageData _invalidateImageProperties]):
2081 (-[WebImageData imageAtIndex:]):
2082 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
2083 (-[WebImageData propertiesAtIndex:]):
2085 2004-11-16 Chris Blumenberg <cblu@apple.com>
2087 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
2091 * WebView.subproj/WebPDFView.m:
2092 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
2093 (-[WebPDFView menuForEvent:]): use the PDFView subview
2095 2004-11-15 Chris Blumenberg <cblu@apple.com>
2097 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
2101 * WebKit.pbproj/project.pbxproj:
2102 * WebView.subproj/WebPDFRepresentation.m:
2103 (+[WebPDFRepresentation PDFDocumentClass]): new
2104 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
2105 * WebView.subproj/WebPDFView.h:
2106 * WebView.subproj/WebPDFView.m:
2107 (+[WebPDFView PDFKitBundle]): new
2108 (+[WebPDFView PDFViewClass]): new
2109 (-[WebPDFView initWithFrame:]): create a PDFView subview
2110 (-[WebPDFView dealloc]): release the PDFView subview
2111 (-[WebPDFView PDFSubview]): new
2113 2004-11-15 Chris Blumenberg <cblu@apple.com>
2115 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
2119 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
2121 2004-11-15 Richard Williamson <rjw@apple.com>
2123 Fixed missing retain of image property data.
2127 * WebCoreSupport.subproj/WebImageData.h:
2128 * WebCoreSupport.subproj/WebImageData.m:
2129 (-[WebImageData dealloc]):
2130 (-[WebImageData _invalidateImages]):
2131 (-[WebImageData imageAtIndex:]):
2132 (-[WebImageData propertiesAtIndex:]):
2133 (-[WebImageData _frameDuration]):
2135 2004-11-15 Richard Williamson <rjw@apple.com>
2137 Cache image properties and frame durations.
2138 Create NSImage and TIFF representations from CGImage, lazily, as needed for
2139 dragging and element info dictionary.
2143 * WebCoreSupport.subproj/WebImageData.h:
2144 * WebCoreSupport.subproj/WebImageData.m:
2145 (-[WebImageData dealloc]):
2146 (-[WebImageData size]):
2147 (-[WebImageData propertiesAtIndex:]):
2148 (-[WebImageData _frameDurationAt:]):
2149 (-[WebImageData _frameDuration]):
2150 * WebCoreSupport.subproj/WebImageRenderer.h:
2151 * WebCoreSupport.subproj/WebImageRenderer.m:
2152 (-[WebImageRenderer dealloc]):
2153 (-[WebImageRenderer TIFFRepresentation]):
2154 (-[WebImageRenderer image]):
2156 2004-11-14 Maciej Stachowiak <mjs@apple.com>
2160 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
2162 * Misc.subproj/WebIconDatabase.m:
2163 (-[WebIconDatabase init]):
2164 (-[WebIconDatabase _setIconURL:forURL:]):
2165 (-[WebIconDatabase _retainIconForIconURLString:]):
2166 (-[WebIconDatabase _releaseIconForIconURLString:]):
2167 (-[WebIconDatabase _retainFutureIconForURL:]):
2168 (-[WebIconDatabase _releaseFutureIconForURL:]):
2169 * Misc.subproj/WebIconDatabasePrivate.h:
2171 2004-11-15 John Sullivan <sullivan@apple.com>
2175 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
2177 * WebView.subproj/WebArchive.m:
2178 (-[WebArchive _propertyListRepresentation]):
2179 the array holding the subresources was not released after use, oops!
2181 2004-11-12 Chris Blumenberg <cblu@apple.com>
2183 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
2187 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2188 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
2192 2004-11-11 Richard Williamson <rjw@apple.com>
2194 Report actual size (not partial size) but use partial size
2199 * WebCoreSupport.subproj/WebImageData.h:
2200 * WebCoreSupport.subproj/WebImageData.m:
2201 (-[WebImageData size]):
2203 2004-11-11 Darin Adler <darin@apple.com>
2207 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
2208 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
2209 with a subsequent change to WebCore.
2211 * WebCoreSupport.subproj/WebBridge.m:
2212 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
2214 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
2215 (_getPostSmartSet): Ditto.
2217 * WebView.subproj/WebHTMLView.m:
2218 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
2219 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
2220 Set firstResponderAtMouseDownTime to the first responder.
2221 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
2222 the mouseDown event.
2223 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
2224 firstResponderAtMouseDownTime field.
2225 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
2226 and _wasFirstResponderAtMouseDownTime method.
2228 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
2230 2004-11-11 Richard Williamson <rjw@apple.com>
2234 Work-around to minimize impact of 3876764. Cache frame durations
2235 after first call. So we'll still leak 1K for each animated
2236 image, but that's better than 1K each time the frame is drawn!
2237 * WebCoreSupport.subproj/WebImageData.h:
2238 * WebCoreSupport.subproj/WebImageData.m:
2239 (-[WebImageData _frameDuration]):
2241 Simplified animation cleanup code. Fixed leak due to
2242 incorrect key passed to CFDictionaryRemoveValue.
2244 (+[WebImageData stopAnimationsInView:]):
2245 (-[WebImageData addAnimatingRenderer:inView:]):
2246 (-[WebImageData removeAnimatingRenderer:]):
2247 (-[WebImageData _stopAnimation]):
2249 2004-11-11 Darin Adler <darin@apple.com>
2253 - fixed <rdar://problem/3605906> Flash scrolled off the top and bottom cause CPU spin when combined with something dirty on the visible part of the page
2255 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
2256 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
2257 using the passed-in rectangle.
2259 2004-11-11 Richard Williamson <rjw@apple.com>
2261 Work-arounds to make new ImageIO code work correctly. Still
2262 disabled for now. Requires at least Tiger 300. Testing does
2263 show a 3% improvement in PLT tests! That's huge!
2267 * WebCoreSupport.subproj/WebImageData.m:
2268 (-[WebImageData imageAtIndex:]):
2269 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
2270 (-[WebImageData isNull]):
2272 2004-11-10 Chris Blumenberg <cblu@apple.com>
2274 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
2278 * Misc.subproj/WebFileDatabase.m:
2279 (-[WebFileDatabase objectForKey:]): added logging code
2280 * Misc.subproj/WebIconDatabase.m:
2281 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
2282 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
2283 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
2285 2004-11-09 David Hyatt <hyatt@apple.com>
2287 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
2288 loading large local files.
2292 * WebCoreSupport.subproj/WebBridge.m:
2293 (-[WebBridge tokenizerProcessedData]):
2294 * WebView.subproj/WebDataSource.m:
2295 (-[WebDataSource _receivedMainResourceError:complete:]):
2296 (-[WebDataSource isLoading]):
2298 2004-11-09 Richard Williamson <rjw@apple.com>
2300 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
2302 Add "text/pdf" as an acceptable PDF MIME type.
2306 * WebView.subproj/WebDataSource.m:
2307 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2308 * WebView.subproj/WebFrameView.m:
2309 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2311 2004-11-08 Chris Blumenberg <cblu@apple.com>
2313 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
2317 * WebCoreSupport.subproj/WebBridge.m:
2318 (-[WebBridge control:textView:shouldHandleEvent:]): new
2319 * WebView.subproj/WebFormDelegate.h:
2320 * WebView.subproj/WebFormDelegate.m:
2321 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
2323 2004-11-05 Chris Blumenberg <cblu@apple.com>
2325 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
2327 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
2329 2004-11-05 Chris Blumenberg <cblu@apple.com>
2331 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
2335 * WebCoreSupport.subproj/WebBridge.m:
2336 (_getPreSmartSet): copied from AppKit
2337 (_getPostSmartSet): ditto
2338 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
2340 2004-11-05 Richard Williamson <rjw@apple.com>
2342 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
2344 Reviewed by Maciej (a long time ago).
2346 * WebView.subproj/WebFrame.m:
2347 (-[WebFrame _loadDataSource:withLoadType:formState:]):
2349 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
2351 As suggested in the bug, the fix is to actually call
2352 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
2353 exporting the symbol.
2357 * Carbon.subproj/CarbonUtils.m:
2359 * Carbon.subproj/HIWebView.m:
2360 * WebKit.pbproj/project.pbxproj:
2364 2004-11-05 Darin Adler <darin@apple.com>
2368 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
2370 * WebView.subproj/WebHTMLView.m:
2371 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
2372 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
2373 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
2374 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
2375 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
2377 2004-11-04 David Hyatt <hyatt@apple.com>
2379 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
2381 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
2382 totally bogus in both CG and AppKit.
2386 * WebCoreSupport.subproj/WebTextRenderer.m:
2387 (-[WebTextRenderer xHeight]):
2388 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2389 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
2390 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2391 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
2392 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
2394 2004-11-02 Maciej Stachowiak <mjs@apple.com>
2396 Reviewed by Dave Hyatt (when I originally coded it).
2398 Redid WebKit part of fix for:
2400 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
2402 * WebView.subproj/WebHTMLView.m:
2403 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
2404 and translate to screen coordinates.
2406 2004-11-02 John Sullivan <sullivan@apple.com>
2410 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
2411 very large bookmarks menu, so I cached this one NSFont object.
2413 * Misc.subproj/WebStringTruncator.m:
2415 new function, caches the font used when no font is specified
2416 (+[WebStringTruncator centerTruncateString:toWidth:]):
2419 2004-11-02 Ken Kocienda <kocienda@apple.com>
2423 WebCore now implements a command to insert a block in response to typing a return key, and
2424 some names were improved in the course of this work.
2426 * WebView.subproj/WebHTMLView.m:
2427 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
2428 (-[WebHTMLView insertLineBreak:]): New method.
2429 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
2430 * WebView.subproj/WebView.m:
2434 2004-10-29 Chris Blumenberg <cblu@apple.com>
2436 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
2438 2004-10-29 Darin Adler <darin@apple.com>
2440 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
2442 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
2443 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
2444 report to match the contents of the file.
2446 2004-10-27 Ken Kocienda <kocienda@apple.com>
2450 Added new SPI for Mail so it can get the behavior it needs when the user hits
2451 the return key with the selection in quoted content.
2453 * WebView.subproj/WebView.m
2454 * WebView.subproj/WebViewPrivate.h
2456 2004-10-26 Chris Blumenberg <cblu@apple.com>
2458 Fixed exception that Darin encountered in Mail.
2462 * Plugins.subproj/WebPluginController.m:
2463 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
2465 2004-10-25 Chris Blumenberg <cblu@apple.com>
2467 Darin made an internal notification have the Web prefix.
2471 * Plugins.subproj/WebBaseNetscapePluginView.m:
2472 (-[WebBaseNetscapePluginView addWindowObservers]):
2473 (-[WebBaseNetscapePluginView removeWindowObservers]):
2474 (ConsoleConnectionChangeNotifyProc):
2476 2004-10-25 John Sullivan <sullivan@apple.com>
2480 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
2481 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
2483 * History.subproj/WebHistoryItem.m:
2484 removed notificationsSuppressed ivar from private data object
2485 (-[WebHistoryItem setAlternateTitle:]):
2486 remove notificationsSuppressed guard
2487 (-[WebHistoryItem setURLString:]):
2489 (-[WebHistoryItem setOriginalURLString:]):
2491 (-[WebHistoryItem setTitle:]):
2493 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
2495 (-[WebHistoryItem setNotificationsSuppressed:]):
2497 (-[WebHistoryItem notificationsSuppressed]):
2500 * History.subproj/WebHistoryItemPrivate.h:
2501 removed notificationsSuppressed and setNotificationsSuppressed
2503 2004-10-22 Chris Blumenberg <cblu@apple.com>
2505 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
2509 * WebView.subproj/WebFrameView.m:
2510 (+[WebFrameView _canShowMIMETypeAsHTML:]): call _viewTypesAllowImageTypeOmission instead of using ivar since the ivar is nil until _viewTypesAllowImageTypeOmission is called, this was causing [WebView canShowMIMEType:] to check plug-ins
2514 2004-10-22 Ken Kocienda <kocienda@apple.com>
2518 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
2520 2004-10-21 Darin Adler <darin@apple.com>
2524 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
2526 * WebCoreSupport.subproj/WebImageRenderer.m:
2527 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
2528 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
2529 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
2530 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
2531 or retains self and returns self.
2533 2004-10-20 Darin Adler <darin@apple.com>
2537 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
2539 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
2540 rather than NSImage and contain a pointer to a WebInternalImage.
2541 * WebCoreSupport.subproj/WebImageRenderer.m:
2542 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
2543 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
2544 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
2545 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
2546 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
2547 (-[WebImageRenderer image]): Added. Returns pointer to image.
2548 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
2549 (-[WebImageRenderer TIFFRepresentation]): Ditto.
2550 (-[WebImageRenderer frameCount]): Ditto.
2551 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
2552 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
2553 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
2554 (-[WebImageRenderer size]): Ditto.
2555 (-[WebImageRenderer resize:]): Ditto.
2556 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
2557 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
2558 (-[WebImageRenderer stopAnimation]): Ditto.
2559 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
2560 (-[WebImageRenderer isNull]): Ditto.
2561 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
2562 (-[WebImageRenderer increaseUseCount]): Ditto.
2563 (-[WebImageRenderer decreaseUseCount]): Ditto.
2564 (-[WebImageRenderer flushRasterCache]): Ditto.
2565 (-[WebImageRenderer imageRef]): Ditto.
2566 (-[WebImageRenderer copyWithZone:]): Ditto.
2568 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
2569 Update for slight changes to WebImageRenderer API.
2570 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2571 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
2572 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
2573 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
2574 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
2575 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
2577 2004-10-20 Chris Blumenberg <cblu@apple.com>
2579 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
2583 * Plugins.subproj/WebBasePluginPackage.h:
2584 * Plugins.subproj/WebBasePluginPackage.m:
2585 (-[WebBasePluginPackage isJavaPlugIn]): new
2586 * Plugins.subproj/WebPluginDatabase.m:
2587 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
2589 2004-10-20 Chris Blumenberg <cblu@apple.com>
2592 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
2593 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
2597 * Plugins.subproj/WebPluginDocumentView.m:
2598 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
2599 * Plugins.subproj/WebPluginPackage.m:
2600 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
2601 * WebCoreSupport.subproj/WebBridge.m:
2602 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
2603 * WebKit.pbproj/project.pbxproj:
2605 2004-10-19 Vicki Murley <vicki@apple.com>
2607 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
2609 * WebKit.pbproj/project.pbxproj:
2611 2004-10-19 Darin Adler <darin@apple.com>
2613 Change suggested by Maciej during code review.
2615 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
2616 of private memory, and doesn't require an initialization function.
2617 (+[WebTextRenderer initialize]): Removed initialization.
2619 2004-10-19 Darin Adler <darin@apple.com>
2623 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
2624 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
2625 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
2627 * WebCoreSupport.subproj/WebTextRenderer.m:
2628 (isSpace): Merged in isAlternateSpace, never used.
2629 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
2630 since globals start out zeroed automatically.
2631 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
2632 Also removed explicit compare with 1; check for non-zero is just fine.
2633 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
2634 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
2635 the underlying problem.
2636 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
2637 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
2638 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
2639 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
2640 \n and non-break spaces.
2641 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
2642 are handled by the CG case.
2643 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
2644 would not handle cases with '\n' coming across from WebCore properly.
2646 2004-10-18 Chris Blumenberg <cblu@apple.com>
2648 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
2652 * Plugins.subproj/WebNetscapePluginPackage.m:
2653 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
2655 2004-10-18 Chris Blumenberg <cblu@apple.com>
2657 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
2659 2004-10-18 John Sullivan <sullivan@apple.com>
2663 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
2665 * WebView.subproj/WebHTMLView.m:
2666 (-[WebHTMLView doCommandBySelector:]):
2667 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
2671 2004-10-14 Ken Kocienda <kocienda@apple.com>
2675 Final fix for these bugs:
2677 <rdar://problem/3806306> HTML editing puts spaces at start of line
2678 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
2680 This change sets some new CSS properties that have been added to WebCore to
2681 enable whitespace-handling and line-breaking features that make WebView work
2682 more like a text editor.
2684 * WebView.subproj/WebHTMLRepresentation.m:
2685 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
2686 CSS properties when loading an HTML document into a WebView that is editable.
2687 * WebView.subproj/WebView.m:
2688 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
2689 document being displayed.
2691 2004-10-14 Richard Williamson <rjw@apple.com>
2693 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
2695 Careful testing shows a small performance gain on very large text files.
2696 I saw large variations in timings, but taking the lowest PLT timing
2697 with and without this change showed a 0.9% gain. Note the cvs-base showed
2698 no improvement. The improvement was for the large page attached to the
2703 * WebCoreSupport.subproj/WebTextRenderer.m:
2704 (setupRoundingHackCharacterTable):
2705 (isRoundingHackCharacter):
2706 (+[WebTextRenderer initialize]):
2708 2004-10-14 Ken Kocienda <kocienda@apple.com>
2712 Fix build breakage. These three functions need to return the values from their
2713 calls to WebCGColorSpaceCreateXXX.
2715 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2716 (-[WebGraphicsBridge createRGBColorSpace])
2717 (-[WebGraphicsBridge createGrayColorSpace])
2718 (-[WebGraphicsBridge createCMYKColorSpace])
2720 2004-10-13 Richard Williamson <rjw@apple.com>
2722 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
2724 In practice I saw NO improvement in performance. Although,
2725 special-case tests could possibly show improvement. Anyway,
2726 the changes don't hurt performance.
2730 * Misc.subproj/WebNSURLExtras.m:
2731 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
2733 2004-10-13 Maciej Stachowiak <mjs@apple.com>
2737 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
2739 - I fixed this by turning off all colormatching for WebKit
2740 content. We might turn it back on later. For now, it's possible to
2741 turn it on temporarily by defining COLORMATCH_EVERYTHING.
2743 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2744 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
2745 (-[WebGraphicsBridge additionalPatternPhase]):
2746 (-[WebGraphicsBridge createRGBColorSpace]):
2747 (-[WebGraphicsBridge createGrayColorSpace]):
2748 (-[WebGraphicsBridge createCMYKColorSpace]):
2749 * WebCoreSupport.subproj/WebImageData.m:
2750 * WebCoreSupport.subproj/WebImageRenderer.h:
2751 * WebCoreSupport.subproj/WebImageRenderer.m:
2752 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
2753 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2754 (-[WebImageRenderer _adjustColorSpace]):
2755 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
2756 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2758 (WebCGColorSpaceCreateRGB):
2759 (WebCGColorSpaceCreateGray):
2760 (WebCGColorSpaceCreateCMYK):
2763 2004-10-13 Richard Williamson <rjw@apple.com>
2765 Don't fill background with transparency unless debug flag
2770 * WebView.subproj/WebHTMLView.m:
2771 (-[WebHTMLView drawRect:]):
2773 2004-10-12 Richard Williamson <rjw@apple.com>
2775 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
2779 * WebView.subproj/WebHTMLView.m:
2780 (-[WebHTMLView _transparentBackground]):
2781 (-[WebHTMLView _setTransparentBackground:]):
2782 (-[WebHTMLView drawRect:]):
2783 * WebView.subproj/WebHTMLViewInternal.h:
2784 * WebView.subproj/WebHTMLViewPrivate.h:
2786 2004-10-11 Chris Blumenberg <cblu@apple.com>
2788 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
2792 * WebView.subproj/WebHTMLView.m:
2793 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
2794 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
2795 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
2796 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
2798 2004-10-11 Darin Adler <darin@apple.com>
2802 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
2804 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
2806 2004-10-11 Darin Adler <darin@apple.com>
2810 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
2812 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
2813 Do nothing if filename is the same as before.
2815 2004-10-11 Ken Kocienda <kocienda@apple.com>
2819 * WebView.subproj/WebHTMLView.m:
2820 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
2821 now takes an affinity: caretRectAtNode:offset:affinity:.
2823 2004-10-10 Ken Kocienda <kocienda@apple.com>
2829 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
2831 * WebView.subproj/WebHTMLView.m:
2832 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
2833 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
2834 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
2835 else do what we did before.
2836 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
2837 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
2839 2004-10-11 Darin Adler <darin@apple.com>
2843 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
2845 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
2846 Don't send an event through WebCore if it has already been through once.
2848 2004-10-10 John Sullivan <sullivan@apple.com>
2852 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
2854 * WebView.subproj/WebMainResourceClient.m:
2855 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
2856 add retain/autorelease to the request returned from call to super. In this case, the return value
2857 was being dealloc'ed before being returned.
2859 2004-10-09 Chris Blumenberg <cblu@apple.com>
2862 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
2863 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
2867 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2868 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
2869 * Plugins.subproj/WebNetscapePluginStream.m:
2870 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2871 * WebView.subproj/WebFramePrivate.h:
2872 * WebView.subproj/WebFrameView.m:
2873 (-[WebFrameView _bridge]): new
2874 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
2875 (-[WebFrameView scrollToEndOfDocument:]): ditto
2876 (-[WebFrameView _pageVertically:]): ditto
2877 (-[WebFrameView _pageHorizontally:]): ditto
2878 (-[WebFrameView _scrollLineVertically:]): ditto
2879 (-[WebFrameView _scrollLineHorizontally:]): ditto
2880 * WebView.subproj/WebHTMLView.m:
2881 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
2885 2004-10-05 Chris Blumenberg <cblu@apple.com>
2887 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
2891 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2892 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
2893 * Plugins.subproj/WebNetscapePluginStream.m:
2894 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2896 2004-10-05 John Sullivan <sullivan@apple.com>
2898 * WebCoreSupport.subproj/WebBridge.m:
2899 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2900 initialize "arguments" var to nil to satisfy compiler on deployment build.
2902 2004-10-05 Richard Williamson <rjw@apple.com>
2904 Fixed <rdar://problem/3825442> first click lost for Dashboard
2905 Allow dashboard to force acceptsFirstMouse:
2909 * WebView.subproj/WebHTMLView.m:
2910 (-[WebHTMLView acceptsFirstMouse:]):
2911 * WebView.subproj/WebView.m:
2912 (-[WebView _dashboardBehavior:]):
2913 * WebView.subproj/WebViewInternal.h:
2914 * WebView.subproj/WebViewPrivate.h:
2916 * WebCoreSupport.subproj/WebImageRenderer.h:
2919 2004-10-05 Chris Blumenberg <cblu@apple.com>
2921 Fixed: <rdar://problem/3760920> Need to record plugin view instances
2925 * Plugins.subproj/WebPluginController.h:
2926 * Plugins.subproj/WebPluginController.m:
2927 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
2928 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
2929 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
2930 * Plugins.subproj/WebPluginDocumentView.m:
2931 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
2932 * WebCoreSupport.subproj/WebBridge.m:
2933 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
2934 * WebView.subproj/WebFrame.m:
2935 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
2936 * WebView.subproj/WebHTMLView.m:
2937 (-[WebHTMLView addSubview:]): ditto
2939 2004-10-05 David Hyatt <hyatt@apple.com>
2941 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
2942 needs to try to fill gaps around text.
2944 Reviewed by kocienda
2946 * WebCoreSupport.subproj/WebTextRenderer.m:
2947 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
2948 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2950 2004-10-05 Darin Adler <darin@apple.com>
2954 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
2956 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
2957 setFlipped that fixes the problem, even though I don't know why.
2959 2004-10-04 Darin Adler <darin@apple.com>
2963 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
2965 * WebView.subproj/WebHTMLView.m:
2966 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
2967 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
2968 this to have the word "start" in it.
2969 (-[WebHTMLView copyFont:]): Updated for name change.
2971 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2973 2004-10-04 Chris Blumenberg <cblu@apple.com>
2975 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
2977 2004-10-04 Chris Blumenberg <cblu@apple.com>
2979 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
2980 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
2984 * Plugins.subproj/WebBaseNetscapePluginStream.h:
2985 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
2986 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
2987 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
2988 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2989 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
2990 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
2991 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
2992 (-[WebBaseNetscapePluginStream finalize]): added assert
2993 (-[WebBaseNetscapePluginStream setRequestURL:]): new
2994 (-[WebBaseNetscapePluginStream setResponseURL:]): new
2995 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
2996 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
2997 (-[WebBaseNetscapePluginStream destroyStream]):
2998 - do nothing if terminated
2999 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
3000 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
3001 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
3002 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
3003 * Plugins.subproj/WebBaseNetscapePluginView.h:
3004 - added observingFrameLoadNotification boolean
3005 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
3006 * Plugins.subproj/WebBaseNetscapePluginView.m:
3007 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
3008 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
3009 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
3010 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
3011 (-[WebBaseNetscapePluginView dealloc]): ditto
3012 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
3013 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
3014 - call NPP_URLNotify depending of value of sendNotification
3015 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
3016 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
3017 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
3018 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
3019 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
3020 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
3021 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
3022 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
3023 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
3024 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
3025 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
3026 (-[WebPluginRequest sendNotification]): new
3027 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
3028 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
3029 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
3030 * Plugins.subproj/WebNetscapePluginRepresentation.m:
3031 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
3032 * Plugins.subproj/WebNetscapePluginStream.h:
3033 * Plugins.subproj/WebNetscapePluginStream.m:
3034 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
3035 (-[WebNetscapePluginStream dealloc]): use renamed ivar
3036 (-[WebNetscapePluginStream start]): ditto
3037 * WebView.subproj/WebFrame.m:
3038 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
3039 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
3040 (-[WebFrame _loadItem:withLoadType:]): ditto
3041 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
3042 (-[WebFrame _setInternalLoadDelegate:]): new
3043 (-[WebFrame _internalLoadDelegate]): new
3044 * WebView.subproj/WebFrameInternal.h:
3045 * WebView.subproj/WebFramePrivate.h:
3047 2004-10-04 Chris Blumenberg <cblu@apple.com>
3049 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
3051 After bumping up our plug-in version, Flash now sends 2 CRLF's between the headers and body of their POST request. Our code was not prepared for this.
3055 * Plugins.subproj/WebBaseNetscapePluginView.m:
3056 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
3058 2004-10-04 Darin Adler <darin@apple.com>
3062 - fixed a potential storage leak when we turn on CGImageRef image rendering
3064 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
3065 by adding [super dealloc], but leak was not real yet because the code is commented out.
3067 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
3068 Copy/paste style does not set color in Mail compose window
3070 * WebView.subproj/WebHTMLView.m:
3071 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
3072 For now I haven't added any yet.
3073 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
3074 (-[WebHTMLView _shadowAsString:]): Ditto.
3075 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
3077 2004-09-30 Richard Williamson <rjw@apple.com>
3079 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
3081 Also changed dashboard regions dictionary to use "control"
3082 for scroller region label, instead of "scroller, per
3087 * Plugins.subproj/npruntime.h:
3088 * WebView.subproj/WebView.m:
3089 (-[WebView _addScrollerDashboardRegions:from:]):
3091 2004-09-30 Chris Blumenberg <cblu@apple.com>
3093 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
3097 * Plugins.subproj/WebBaseNetscapePluginView.m:
3098 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
3099 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
3100 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
3101 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
3102 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
3103 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
3105 2004-09-30 Chris Blumenberg <cblu@apple.com>
3107 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
3111 * Plugins.subproj/WebBaseNetscapePluginView.h:
3112 * Plugins.subproj/WebBaseNetscapePluginView.m:
3113 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
3114 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
3115 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
3116 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
3118 2004-09-30 Chris Blumenberg <cblu@apple.com>
3121 Assertion failure when loading standalone netscape plug-in content.
3122 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
3126 * Misc.subproj/WebKitErrors.m: removed deprecated method
3127 * Misc.subproj/WebKitErrorsPrivate.h:
3128 * Plugins.subproj/WebNetscapePluginDocumentView.m:
3129 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
3130 * Plugins.subproj/WebPluginDocumentView.h:
3131 * Plugins.subproj/WebPluginDocumentView.m:
3132 (-[WebPluginDocumentView dealloc]): remove retained plug-in
3133 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
3135 2004-09-29 Chris Blumenberg <cblu@apple.com>
3138 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
3139 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
3143 * History.subproj/WebHistoryItem.m:
3144 * Misc.subproj/WebNSViewExtras.h:
3145 * Misc.subproj/WebNSViewExtras.m:
3146 (-[NSView _web_firstResponderCausesFocusDisplay]):
3147 (-[NSView _webView]):
3149 (-[NSView _bridge]):
3150 (-[NSView _dataSource]):
3151 * Plugins.subproj/WebBasePluginPackage.h:
3152 * Plugins.subproj/WebBasePluginPackage.m:
3153 (-[WebBasePluginPackage hash]):
3154 (-[WebBasePluginPackage isQuickTimePlugIn]):
3155 * Plugins.subproj/WebNetscapePluginDocumentView.m:
3156 (-[WebNetscapePluginDocumentView setDataSource:]):
3157 * Plugins.subproj/WebNetscapePluginRepresentation.m:
3158 * Plugins.subproj/WebPluginController.h:
3159 * Plugins.subproj/WebPluginController.m:
3160 (-[WebPluginController initWithDocumentView:]):
3161 (-[WebPluginController addPlugin:]):
3162 (-[WebPluginController destroyAllPlugins]):
3163 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
3164 (-[WebPluginController webPlugInContainerShowStatus:]):
3165 (-[WebPluginController webPlugInContainerSelectionColor]):
3166 (-[WebPluginController webFrame]):
3167 * Plugins.subproj/WebPluginDatabase.h:
3168 * Plugins.subproj/WebPluginDatabase.m:
3169 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
3170 (-[WebPluginDatabase refresh]):
3171 (WebPluginDocumentView::while):
3172 * Plugins.subproj/WebPluginDocumentView.h: Added.
3173 * Plugins.subproj/WebPluginDocumentView.m: Added.
3174 (-[WebPluginDocumentView initWithFrame:]):
3175 (-[WebPluginDocumentView dealloc]):
3176 (-[WebPluginDocumentView drawRect:]):
3177 (-[WebPluginDocumentView setDataSource:]):
3178 (-[WebPluginDocumentView setNeedsLayout:]):
3179 (-[WebPluginDocumentView layout]):
3180 (-[WebPluginDocumentView currentWindow]):
3181 (-[WebPluginDocumentView viewWillMoveToWindow:]):
3182 (-[WebPluginDocumentView viewDidMoveToWindow]):
3183 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
3184 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
3185 (-[WebPluginDocumentView receivedData:withDataSource:]):
3186 (-[WebPluginDocumentView receivedError:withDataSource:]):
3187 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
3188 (-[WebPluginDocumentView canProvideDocumentSource]):
3189 (-[WebPluginDocumentView documentSource]):
3190 (-[WebPluginDocumentView title]):
3191 * Plugins.subproj/npapi.m:
3192 (NPN_ReleaseVariantValue):
3193 (NPN_GetStringIdentifier):
3194 (NPN_GetStringIdentifiers):
3195 (NPN_GetIntIdentifier):
3196 (NPN_IdentifierIsString):
3197 (NPN_UTF8FromIdentifier):
3198 (NPN_IntFromIdentifier):
3201 (NPN_ReleaseObject):
3203 (NPN_InvokeDefault):
3207 (NPN_RemoveProperty):
3212 * WebCoreSupport.subproj/WebBridge.m:
3213 (-[WebBridge frameRequiredForMIMEType:URL:]):
3214 * WebCoreSupport.subproj/WebViewFactory.m:
3216 * WebKit.pbproj/project.pbxproj:
3217 * WebView.subproj/WebDebugDOMNode.m:
3218 * WebView.subproj/WebDocumentInternal.h:
3219 * WebView.subproj/WebHTMLView.m:
3220 (-[WebHTMLView initWithFrame:]):
3221 * WebView.subproj/WebHTMLViewPrivate.h:
3222 * WebView.subproj/WebImageRepresentation.h:
3223 * WebView.subproj/WebRenderNode.m:
3224 * WebView.subproj/WebView.m:
3226 2004-09-29 Richard Williamson <rjw@apple.com>
3228 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
3230 The fix has two parts, 1) make onblur and onfocus work for windows,
3231 and 2), allow the dashboard to override WebKit's special key/non-key
3236 * Plugins.subproj/WebBaseNetscapePluginView.m:
3237 (-[WebBaseNetscapePluginView restartNullEvents]):
3238 * WebView.subproj/WebHTMLView.m:
3239 (-[WebHTMLView addMouseMovedObserver]):
3240 (-[WebHTMLView removeMouseMovedObserver]):
3241 * WebView.subproj/WebView.m:
3242 (-[WebView _dashboardBehavior:]):
3243 * WebView.subproj/WebViewInternal.h:
3244 * WebView.subproj/WebViewPrivate.h:
3246 2004-09-29 Maciej Stachowiak <mjs@apple.com>
3250 - consolidated OS version checks into prefix header
3252 * Misc.subproj/WebFileDatabase.m:
3253 (-[WebFileDatabase _createLRUList:]):
3254 (+[WebFileDatabase _syncLoop:]):
3255 * Misc.subproj/WebKitErrors.m:
3257 * Misc.subproj/WebNSObjectExtras.h:
3258 (WebNSRetainCFRelease):
3259 * Misc.subproj/WebNSPasteboardExtras.m:
3260 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
3261 * Misc.subproj/WebUnicode.m:
3262 (_unicodeDirection):
3263 * WebCoreSupport.subproj/WebImageData.h:
3264 * WebCoreSupport.subproj/WebImageRenderer.h:
3265 * WebCoreSupport.subproj/WebKeyGenerator.h:
3266 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
3268 * WebView.subproj/WebDataSource.m:
3269 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3270 (-[WebDataSource isLoading]):
3271 * WebView.subproj/WebFrameView.m:
3272 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3273 * WebView.subproj/WebHTMLView.m:
3274 * WebView.subproj/WebPDFRepresentation.h:
3275 * WebView.subproj/WebPDFRepresentation.m:
3276 * WebView.subproj/WebPDFView.h:
3277 * WebView.subproj/WebPDFView.m:
3279 2004-09-29 Ken Kocienda <kocienda@apple.com>
3285 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
3287 * WebView.subproj/WebHTMLView.m:
3288 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
3289 bridge function instead of ensureCaretVisible. Now handles caret selections and range
3290 selections correctly.
3292 2004-09-28 Chris Blumenberg <cblu@apple.com>
3294 Added timing code so that Doug can time RTF conversion.
3296 * WebView.subproj/WebHTMLView.m:
3297 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
3298 (-[WebHTMLView _attributeStringFromDOMRange:]):
3300 2004-09-28 Richard Williamson <rjw@apple.com>
3302 <rdar://problem/3817421> add getter for dashboard regions (debugging)
3304 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
3309 * WebCoreSupport.subproj/WebBridge.m:
3310 (-[WebBridge dashboardRegionsChanged:]):
3311 * WebView.subproj/WebView.m:
3312 (-[WebView _setInitiatedDrag:]):
3313 (-[WebView _addScrollerDashboardRegions:from:]):
3314 (-[WebView _addScrollerDashboardRegions:]):
3315 (-[WebView _dashboardRegions]):
3316 * WebView.subproj/WebViewPrivate.h:
3318 2004-09-27 John Sullivan <sullivan@apple.com>
3320 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
3322 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
3323 changed "Remember this password" to "Remember this password in my keychain";
3324 this will need to go through CCC for this week's build.
3326 2004-09-27 Chris Blumenberg <cblu@apple.com>
3328 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
3332 * Plugins.subproj/WebBaseNetscapePluginView.m:
3334 2004-09-27 Chris Blumenberg <cblu@apple.com>
3336 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
3340 * WebView.subproj/WebTextView.m:
3341 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
3343 2004-09-27 John Sullivan <sullivan@apple.com>
3347 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
3348 like Cmd-B while editing rich text
3350 * WebView.subproj/WebHTMLView.m:
3351 (-[WebHTMLView _toggleBold]):
3352 new method, toggles font-weight from "bold" to "normal"
3353 (-[WebHTMLView _toggleItalic]):
3354 new method, toggles font-style from "italic" to "normal"
3355 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3356 new method, if the new preference is set and we're in an editable state, check for standard
3357 key equivalents for toggling styles (just command-B and command-I for now).
3358 (-[WebHTMLView performKeyEquivalent:]):
3359 Moved in file, now calls _handleStyleKeyEquivalent:
3361 * WebView.subproj/WebPreferenceKeysPrivate.h:
3362 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3363 * WebView.subproj/WebPreferences.m:
3364 (+[WebPreferences initialize]):
3365 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
3366 change our minds about this, but this is more guaranteed to be backward-compatible)
3367 (-[WebPreferences respectStandardStyleKeyEquivalents]):
3368 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3369 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
3370 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3372 * WebView.subproj/WebPreferencesPrivate.h:
3373 declare getter and setter
3375 * English.lproj/StringsNotToBeLocalized.txt:
3376 updated for these and other recent changes
3378 2004-09-27 Chris Blumenberg <cblu@apple.com>
3380 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
3384 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3385 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
3387 2004-09-27 Chris Blumenberg <cblu@apple.com>
3389 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
3393 * WebView.subproj/WebHTMLView.m:
3394 (-[WebHTMLView _setMouseDownEvent:]): new
3395 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
3396 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
3397 (-[WebHTMLView mouseDown:]): ditto
3398 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
3400 2004-09-27 Darin Adler <darin@apple.com>
3402 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
3404 2004-09-24 Chris Blumenberg <cblu@apple.com>
3408 * WebView.subproj/WebHTMLView.m:
3409 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
3413 2004-09-24 Chris Blumenberg <cblu@apple.com>
3415 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
3419 * WebView.subproj/WebHTMLView.m:
3420 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
3422 2004-09-24 Ken Kocienda <kocienda@apple.com>
3428 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
3430 We were doing a laughably bad job at preventing edits in documents that were not editable.
3431 This change fixes the specific case of the bug mentioned above, and makes an attempt to
3432 fix similar bugs by checking for whether the view is in editing mode before making edits.
3434 * WebView.subproj/WebHTMLView.m:
3435 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
3436 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
3437 was actually performing a correct check before.
3438 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
3439 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
3440 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
3441 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
3442 (-[WebHTMLView pasteAsPlainText:]): Ditto.
3443 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
3444 (-[WebHTMLView insertNewline:]): Ditto.
3445 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
3446 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
3447 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
3448 (-[WebHTMLView complete:]): Ditto.
3449 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
3450 (-[WebHTMLView ignoreSpelling:]): Ditto.
3451 (-[WebHTMLView yank:]): Bail if !_canEdit.
3452 (-[WebHTMLView yankAndSelect:]): Ditto.
3453 (-[WebHTMLView deleteToMark:]): Ditto.
3454 (-[WebHTMLView swapWithMark:]): Ditto.
3455 (-[WebHTMLView transpose:]): Ditto.
3456 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
3457 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
3458 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
3459 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
3461 2004-09-24 Ken Kocienda <kocienda@apple.com>
3465 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
3467 2004-09-23 Maciej Stachowiak <mjs@apple.com>
3471 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
3473 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
3474 link dragging if the element under the mouse pointer is
3475 editable. This way, you can drag-select starting inside a link.
3477 2004-09-23 John Sullivan <sullivan@apple.com>
3481 - WebKit part of fix for <rdar://problem/3415264>
3482 Default encoding should initially be set to current system encoding
3484 * WebView.subproj/WebPreferences.m:
3485 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
3486 new SPI that sets the initial value of the default text encoding to
3487 be the system encoding, with a special-case conversion of MacRoman->Latin1.
3488 This is not done automatically for WebKit clients for fear of breaking them.
3490 * WebView.subproj/WebPreferencesPrivate.h:
3493 2004-09-23 Darin Adler <darin@apple.com>
3497 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
3499 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
3500 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
3501 while using a button.
3503 * WebView.subproj/WebMainResourceClient.m:
3504 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
3505 for the specific case of "about:blank" even if the defers callbacks flag is true.
3506 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
3507 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
3508 as above. Changed code to return a new request if we get a new request back that is not empty
3509 when the defers callbacks flag is true.
3510 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the