1 2005-02-03 Chris Blumenberg <cblu@apple.com>
3 * English.lproj/StringsNotToBeLocalized.txt: updated
5 2005-02-03 Chris Blumenberg <cblu@apple.com>
7 Fixed: <rdar://problem/3989611> Evite style "add vCalendar to calendar" do not work
11 * WebView.subproj/WebTextView.m:
12 (+[WebTextView unsupportedTextMIMETypes]): added "text/x-vcalendar" to the list of MIME types our text view doesn't handle
14 2005-02-03 Vicki Murley <vicki@apple.com>
18 - fix deployment build breakage on Panther
20 * WebView.subproj/WebHTMLView.m:
21 (-[WebHTMLView toggleBaseWritingDirection:]):
23 2005-02-02 John Sullivan <sullivan@apple.com>
27 - WebKit part of fix for <rdar://problem/3980651> REGRESSION (125-180): Huge number of pages printed from certain page,
30 This also fixes the problems with printing from GMail, yay!
32 * WebView.subproj/WebHTMLView.m:
33 (-[WebHTMLView _setPrinting:minimumPageWidth:maximumPageWidth:adjustViewSize:]):
34 Don't adjust margins for header/footer here, because this is called for each subframe.
35 (-[WebHTMLView knowsPageRange:]):
36 Do adjust margins for header/footer here (analogous to WebTextView and WebImageView).
37 Also, round the page height to an integer here (noticed in passing).
39 2005-02-02 Chris Blumenberg <cblu@apple.com>
41 Fixed: <rdar://problem/3986546> Cut, delete, and paste menu items are active when a image is opened in window
45 * WebView.subproj/WebView.m:
46 (-[WebView _responderValidateUserInterfaceItem:]): new, has the responder validate the item
47 (-[WebView validateUserInterfaceItem:]): call VALIDATE for each repsonder selector using FOR_EACH_RESPONDER_SELECTOR macro
48 (-[WebView _performResponderOperation:with:]): call factored out method _responderForResponderOperations
49 (-[WebView _responderForResponderOperations]): new, code from _performResponderOperation:with:
51 2005-02-02 Chris Blumenberg <cblu@apple.com>
53 Fixed: <rdar://problem/3983628> control-click on WebView is not selecting the word under the cursor (Mail, non-editable WebView)
57 * WebCoreSupport.subproj/WebBridge.m:
58 (-[WebBridge selectWordBeforeMenuEvent]): new
59 * WebView.subproj/WebView.m:
60 (-[WebView _selectWordBeforeMenuEvent]): new SPI
61 (-[WebView _setSelectWordBeforeMenuEvent:]): new SPI
62 * WebView.subproj/WebViewInternal.h:
63 * WebView.subproj/WebViewPrivate.h:
65 2005-02-02 Chris Blumenberg <cblu@apple.com>
67 Fixed: <rdar://problem/3986013> Assertion failure going back after page load error (no apparent problem in nondebug build)
71 * WebView.subproj/WebDataSource.m:
72 (-[WebDataSource _setPrimaryLoadComplete:]): don't set the data source data when the main client is nil
74 2005-02-02 Ken Kocienda <kocienda@apple.com>
80 <rdar://problem/3823109> WebKit should support -toggleBaseWritingDirection: (bidi editing support)
82 * WebView.subproj/WebHTMLView.m:
83 (-[WebHTMLView _applyParagraphStyleToSelection:withUndoAction:]): New function that calls through to
84 new feature that allows callers to force all properties in a style to be applied as block styles.
85 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]): Removed FIXME comment for something that has been fixed.
86 (-[WebHTMLView toggleBaseWritingDirection:]): Implemented.
88 2005-02-01 Richard Williamson <rjw@apple.com>
90 Fixed <rdar://problem/3977727> WebKit should use new SPI to support faster GIF rendering
92 Note: This REQUIRES build >= 3A362 when building on Tiger.
96 * WebCoreSupport.subproj/WebImageData.m:
97 (-[WebImageData _imageSourceOptions]):
101 2005-02-01 Richard Williamson <rjw@apple.com>
103 Added new SPI for <rdar://problem/3967063> need spi on WebView to turn of lcd text for Dashboard
107 * WebCoreSupport.subproj/WebTextRenderer.m:
109 * WebView.subproj/WebView.m:
110 (-[WebView drawRect:]):
111 (-[WebView _dashboardBehavior:]):
112 (+[WebView _setShouldUseFontSmoothing:]):
113 (+[WebView _shouldUseFontSmoothing]):
114 * WebView.subproj/WebViewInternal.h:
115 * WebView.subproj/WebViewPrivate.h:
117 2005-01-31 Chris Blumenberg <cblu@apple.com>
119 Fixed: <rdar://problem/3949806> REGRESSION: Source window fails to refresh correctly on reload
121 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.
125 * WebView.subproj/WebDataSource.m:
126 (-[WebDataSource _setData:]): moved within file
127 (-[WebDataSource _setPrimaryLoadComplete:]): call _setData: with the data from the main client before letting go of the main client
128 * WebView.subproj/WebDataSourcePrivate.h:
129 * WebView.subproj/WebMainResourceClient.m:
130 (-[WebMainResourceClient releaseResources]): removed call to _setData: since the data source may need the data before releaseResources is called
132 2005-01-31 Chris Blumenberg <cblu@apple.com>
134 Fixed: <rdar://problem/3946285> Seed: Safari crashed by selecting all at internet-moebel.com
138 * WebView.subproj/WebHTMLView.m:
139 (-[WebHTMLView _hitViewForEvent:]): new, factored hit test hack to this method
140 (-[WebHTMLView _updateMouseoverWithEvent:): call _hitViewForEvent:
141 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent: and _isSelectionEvent: on the hit HTMLView or else when it's asked to drag it will assert
142 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
144 2005-01-31 David Harrison <harrison@apple.com>
148 <rdar://problem/3961239> AX Setting AXFocused on AXScrollArea of AXWebArea will cause keyboard selection change
150 * WebView.subproj/WebHTMLView.m:
151 (-[WebHTMLView maintainsInactiveSelection]):
152 Keep the selection when the new first respomder is our own scrollview, in both editable and non-editaqble content.
154 2005-01-31 Jens Alfke <jens@apple.com>
158 - Fixed <rdar://problem/3903199> REGRESSION: Large background patterns slide around while loading
160 * WebCoreSupport.subproj/WebImageData.m:
162 (-[WebImageData tileInRect:fromPoint:context:]):
164 2005-01-30 Darin Adler <darin@apple.com>
168 - fixed <rdar://problem/3965265> Safari displays HTML as source when default encoding is Hebrew (due to direction overrides added by encoding converter)
170 * WebView.subproj/WebPreferencesPrivate.h: Added _systemCFStringEncoding, and changed
171 _setInitialDefaultTextEncodingToSystemEncoding to be a class method.
172 * WebView.subproj/WebPreferences.m:
173 (+[WebPreferences _systemCFStringEncoding]): Added. New SPI to be used by Safari. Broken out of
174 _setInitialDefaultTextEncodingToSystemEncoding, but also added cases for MacArabic and MacHebrew.
175 (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Refactor to use _systemCFStringEncoding.
177 2005-01-28 Jens Alfke <jens@apple.com>
181 <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)
183 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.)
185 * WebCoreSupport.subproj/WebImageData.h:
186 * WebCoreSupport.subproj/WebImageData.m:
187 (-[WebImageData _invalidateImages]):
188 (-[WebImageData _checkSolidColor:]):
189 (-[WebImageData _cacheImages:allImages:]):
190 (-[WebImageData _fillSolidColorInRect:compositeOperation:context:]):
191 (-[WebImageData tileInRect:fromPoint:context:]):
193 2005-01-28 David Harrison <harrison@apple.com>
197 <rdar://problem/3584942> AX: Safari Accessibility parent-child mismatch
199 Use AppKit SPI _accessibilityParentForSubview to return KWQAccObject parent of AppKit AX object.
201 * WebView.subproj/WebHTMLView.m:
202 (-[WebHTMLView _accessibilityParentForSubview:]):
205 2005-01-28 Chris Blumenberg <cblu@apple.com>
207 WebKit side of: <rdar://problem/3951283> can view pages from the back/forward cache that should be disallowed by Parental Controls
211 * WebView.subproj/WebDefaultPolicyDelegate.m:
212 (-[WebDefaultPolicyDelegate webView:shouldGoToHistoryItem:]): new private delegate method
213 * WebView.subproj/WebFrame.m:
214 (-[WebFrame _goToItem:withLoadType:]): call new delegate method
215 * WebView.subproj/WebPolicyDelegatePrivate.h:
217 2005-01-26 Maciej Stachowiak <mjs@apple.com>
219 Reviewed by Darin, Hyatt and Ken.
221 <rdar://problem/3790449> REGRESSION (Mail): underline behavior is flaky because of how CSS handles text-decoration
223 * WebView.subproj/WebHTMLView.m:
224 (-[WebHTMLView _styleFromFontAttributes:]): Use new -khtml-text-decorations-in-effect
226 (-[WebHTMLView _styleForAttributeChange:]): likewise
227 (-[WebHTMLView underline:]): likewise
229 2005-01-27 Ken Kocienda <kocienda@apple.com>
233 * WebView.subproj/WebHTMLView.m:
234 (-[WebHTMLView _handleKillRing:prepend:]): New helper function. Code factored out from
235 _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:.
236 (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:isTypingAction:]): No longer takes
237 unused preflight argument. Now takes new isTypingAction argument. Uses isTypingAction to
238 determine which flavor of delete command to call.
239 (-[WebHTMLView _deleteSelection]): No longer passes unused preflight argument. Now passes new isTypingAction argument.
240 (-[WebHTMLView _deleteWithDirection:granularity:killRing:isTypingAction:]): Rearranged code to call
241 correct flavor of delete command, based on whether typing should be preserved. Some other cleanups.
242 (-[WebHTMLView deleteForward:]): Add _isEditable check.
243 (-[WebHTMLView deleteBackward:]): Now calls _deleteWithDirection instead of having unique behavior different
245 (-[WebHTMLView deleteWordForward:]): Add new isTypingAction flag to _deleteWithDirection call.
246 (-[WebHTMLView deleteWordBackward:]): Ditto.
247 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
248 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
249 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
250 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto.
251 (-[WebHTMLView deleteToMark:]): Ditto.
255 2005-01-27 Chris Blumenberg <cblu@apple.com>
257 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
261 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
263 2005-01-26 Darin Adler <darin@apple.com>
267 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
269 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
270 draw the white "no document" background if it's NO. This fixes things for frames with no document.
271 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
272 for frames with just an image.
273 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
274 document view if it implements it. This fixes things for frames with plain text.
276 2005-01-25 John Sullivan <sullivan@apple.com>
280 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
281 in WebKit needs "Look Up in Dictionary" item
283 * WebView.subproj/WebDefaultContextMenuDelegate.m:
284 (localizedMenuTitleFromAppKit):
285 return English string in the case where AppKit bundle is found but doesn't
286 contain the expected string. This case will be hit by people testing with
288 (-[WebDefaultUIDelegate menuItemWithTag:]):
289 create Look Up in Dictionary item
290 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
291 add Look Up in Dictionary item and separator
292 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
295 * WebView.subproj/WebHTMLView.m:
296 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
297 new method, handles bringing up the Dictionary window. Includes FIXMEs
298 for a couple of the known loose ends.
299 (-[WebHTMLView validateUserInterfaceItem:]):
300 handle Look Up in Dictionary item like the other new items
302 * WebView.subproj/WebUIDelegatePrivate.h:
303 added SPI constant for Look Up in Dictionary menu item
305 2005-01-24 Maciej Stachowiak <mjs@apple.com>
307 Fixed Panther build (missing ifdef)
309 * WebView.subproj/WebDefaultContextMenuDelegate.m:
311 2005-01-24 John Sullivan <sullivan@apple.com>
315 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
317 * WebView.subproj/WebDefaultContextMenuDelegate.m:
318 (localizedMenuTitleFromAppKit):
319 new function, gets localized string from AppKit so we can avoid adding localized
320 strings to WebKit at this late date in Tiger. Returns the non-localized English
321 string if we can't find the localized string in AppKit.
322 (-[WebDefaultUIDelegate menuItemWithTag:]):
323 handle the two new menu items by tag name
324 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
325 add menu items for Search in Google and Search in Spotlight to selected-text menu item
326 for the noneditable case
327 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
328 add menu items for Search in Google and Search in Spotlight to selected-text menu item
329 for the editable case
331 * WebView.subproj/WebHTMLView.m:
332 (-[WebHTMLView _searchWithGoogleFromMenu:]):
333 implement this menu item action method, using same method name and implementation as NSTextView
334 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
335 implement this menu item action method, using same basic implementation as NSTextView
336 (-[WebHTMLView validateUserInterfaceItem:]):
337 validate new menu items
339 * WebView.subproj/WebUIDelegatePrivate.h:
340 define new tags for new menu items
342 * English.lproj/StringsNotToBeLocalized.txt:
343 updated for these changes
345 2005-01-24 Darin Adler <darin@apple.com>
347 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
348 Do the same check as for view types, so the representation types are consistent.
350 2005-01-24 Darin Adler <darin@apple.com>
354 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
356 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
357 few loose ends here: strikethrough and underline.
359 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
361 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
362 Leave the PDF-handling classes out of the dictionary if the secret default is set.
364 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
366 2005-01-20 Darin Adler <darin@apple.com>
368 Reviewed by Kristin Forster.
370 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
372 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
373 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
374 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
375 to the event. Tested with both Contribute and CarbonWeb.
377 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
379 2005-01-20 Richard Williamson <rjw@apple.com>
381 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
383 The AppKit's font substitution API doesn't match font traits!
384 It only find fonts that contain the appropriate glyphs. This
385 patch attempts to find the best variation within a family.
389 * WebCoreSupport.subproj/WebTextRenderer.m:
390 (-[WebTextRenderer _substituteFontForString:families:]):
394 2005-01-20 Ken Kocienda <kocienda@apple.com>
400 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
402 * WebView.subproj/WebHTMLView.m:
403 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
404 with FIXME's in them for make bigger and make smaller with real working code.
406 2005-01-19 David Hyatt <hyatt@apple.com>
408 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
413 * WebCoreSupport.subproj/WebTextRenderer.m:
414 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
416 2005-01-19 Darin Adler <darin@apple.com>
420 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
422 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
424 2005-01-19 Chris Blumenberg <cblu@apple.com>
426 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
430 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
431 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
433 2005-01-17 Darin Adler <darin@apple.com>
435 * DOM.subproj/DOMPrivate.h: Check in generated file.
437 2005-01-17 Darin Adler <darin@apple.com>
439 Reviewed by John and Richard.
441 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
443 * WebView.subproj/WebFrameViewPrivate.h: Added.
444 * WebView.subproj/WebFrameView.m:
445 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
446 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
447 the work is compatible with our header and footer code.
448 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
449 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
450 the NSPrintOperation, and also the PDFKit SPI works this way.
452 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
453 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
454 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
456 * WebView.subproj/WebPDFView.m:
457 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
458 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
460 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
462 2005-01-13 Chris Blumenberg <cblu@apple.com>
464 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
466 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
467 which allows plug-ins create an auxiliary MIME types file.
471 * Plugins.subproj/WebBasePluginPackage.h:
472 * Plugins.subproj/WebBasePluginPackage.m:
473 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
474 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
475 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
476 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
477 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
478 * Plugins.subproj/WebNetscapePluginPackage.h:
479 * Plugins.subproj/WebNetscapePluginPackage.m:
480 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
481 * Plugins.subproj/WebPluginPackage.m:
482 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
483 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
485 2005-01-13 Richard Williamson <rjw@apple.com>
487 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
491 * Plugins.subproj/WebJavaPlugIn.h:
495 2005-01-13 Vicki Murley <vicki@apple.com>
499 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
501 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
503 2005-01-13 Richard Williamson <rjw@apple.com>
505 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
507 Draw last image after animation loop terminates. (We
508 were drawing the image at index+1, which doesn't exist!)
512 * WebCoreSupport.subproj/WebImageData.m:
513 (-[WebImageData _nextFrame:]):
515 2005-01-13 Richard Williamson <rjw@apple.com>
517 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
519 Turn off use of new CGContextStrokeLineSegments API. We should
520 turn back on when 3952944 is fixed.
524 * WebCoreSupport.subproj/WebTextRenderer.m:
525 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
527 2005-01-13 Chris Blumenberg <cblu@apple.com>
529 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
533 * Misc.subproj/WebNSViewExtras.m:
534 (-[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
535 * WebCoreSupport.subproj/WebImageRendererFactory.m:
536 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
537 * WebView.subproj/WebImageView.m:
538 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
540 2005-01-10 Maciej Stachowiak <mjs@apple.com>
544 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
546 * WebCoreSupport.subproj/WebTextRenderer.m:
547 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
548 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
549 .5 pixels, since the rendering engine can't give a fractional pixel offset.
550 * WebView.subproj/WebHTMLView.m:
551 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
552 clause attributes. Others that NSText supports are unimplemented for now.
553 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
554 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
555 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
556 and ranges out of an attributed string.
557 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
558 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
561 2005-01-12 Darin Adler <darin@apple.com>
565 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
567 * WebView.subproj/WebHTMLView.m:
568 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
569 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
570 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
571 optimize by only doing layouts you really need, and doing them later on is safe because we
572 know we don't need to draw any of the views behind us.
573 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
574 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
576 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
577 _layoutIfNeeded method above. Otherwise unchanged.
578 (-[NSView _web_layoutIfNeededRecursive]): Added.
580 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
581 on the scroll view when changing the frame to no longer be in "draws background" mode. This
582 is needed because the frame manages the "draws background" mode of the scroll view. It won't
583 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
584 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
585 This was hidden before because the HTML view was filling with transparent color, which blew away
586 the fill that was done by NSScrollView.
588 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
590 * WebCoreSupport.subproj/WebImageData.m:
591 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
592 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
593 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
594 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
595 all the renderers because the process of stopping modifies the active sets.
597 2005-01-12 Richard Williamson <rjw@apple.com>
599 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
601 Get loop count from file properties, not image properties.
603 Reviewed by Ken Kocienda.
605 * WebCoreSupport.subproj/WebImageData.h:
606 * WebCoreSupport.subproj/WebImageData.m:
607 (-[WebImageData _commonTermination]):
608 (-[WebImageData fileProperties]):
609 (-[WebImageData _floatProperty:type:at:]):
610 (-[WebImageData _floatFileProperty:type:]):
611 (-[WebImageData _repetitionCount]):
613 2005-01-11 Chris Blumenberg <cblu@apple.com>
615 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
619 * Plugins.subproj/WebBaseNetscapePluginView.m:
620 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
622 2005-01-11 John Sullivan <sullivan@apple.com>
626 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
627 (e.g. <strike>, underline)
629 * WebCoreSupport.subproj/WebTextRenderer.m:
630 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
631 This bottleneck routine for drawing a line was setting the linewidth to 0 when
632 the graphics context was not drawing to the screen. Thus, no lines. Now links
633 are underlined when printing from Safari (as well as Mail).
635 2005-01-11 Richard Williamson <rjw@apple.com>
637 Fixed 3949145. CG has a much faster API for drawing lines.
638 Switched over to that new API (CGContextStrokeLineSegments).
640 Reviewed by John Sullivan.
642 * WebCoreSupport.subproj/WebTextRenderer.m:
643 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
645 2005-01-10 Chris Blumenberg <cblu@apple.com>
647 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
649 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.
653 * WebView.subproj/WebHTMLView.m:
654 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
655 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
659 2005-01-06 David Harrison <harrison@apple.com>
661 Reviewed by Dave Hyatt
663 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
665 * WebView.subproj/WebHTMLView.m:
666 (-[WebHTMLView accessibilityFocusedUIElement]):
667 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
669 2005-01-05 Chris Blumenberg <cblu@apple.com>
671 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
675 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
677 2005-01-04 Chris Blumenberg <cblu@apple.com>
679 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
681 Reviewed by kocienda.
683 * WebView.subproj/WebHTMLView.m:
684 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
686 2004-12-21 Maciej Stachowiak <mjs@apple.com>
690 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
692 Implement a security check on name frame visbility. This is the
693 same rule as mozilla. You can only target frames by name if you
694 are in the same window, have the same domain as the frame or an
695 ancestor, or if it's a top level window have the same domain as
698 * WebView.subproj/WebFrame.m:
699 (-[WebFrame _shouldAllowAccessFrom:]):
700 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
701 (-[WebFrame findFrameNamed:]):
702 * WebView.subproj/WebFramePrivate.h:
703 * WebView.subproj/WebView.m:
704 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
705 (-[WebView _findFrameNamed:sourceFrame:]):
706 * WebView.subproj/WebViewPrivate.h:
712 2004-12-20 Richard Williamson <rjw@apple.com>
714 Add call to new API. ImageIO deprecated some older (although
715 quite new!) API. This caused us to fail to build on 337 or later.
717 Developers wanting to build on older versions of Tiger must define
718 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
722 * WebCoreSupport.subproj/WebImageData.m:
723 (-[WebImageData propertiesAtIndex:]):
725 2004-12-20 Richard Williamson <rjw@apple.com>
727 Don't call Tiger SPI on Panther.
731 * WebCoreSupport.subproj/WebTextRendererFactory.m:
732 (+[WebTextRendererFactory createSharedFactory]):
734 2004-12-20 Richard Williamson <rjw@apple.com>
736 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
738 Enable mutli-tier font caching. We should see a performance boost with this
743 * WebCoreSupport.subproj/WebTextRendererFactory.m:
744 (+[WebTextRendererFactory createSharedFactory]):
746 2004-12-20 Richard Williamson <rjw@apple.com>
748 Fix image decoding to separately decode image meta data from actual image bits. I
749 incorrectly consolidated decode of meta data and image bits resulting in a huge
750 performance regression.
752 Double size of WebCore cache on lower end machines. On the PLT run on machines with
753 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
754 Upping the lower limit of the cache size ensure that no images are evicted (this
755 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
759 * WebCoreSupport.subproj/WebImageData.h:
760 * WebCoreSupport.subproj/WebImageData.m:
761 (+[WebImageData initialize]):
762 (-[WebImageData _commonTermination]):
763 (-[WebImageData _invalidateImages]):
764 (-[WebImageData _invalidateImageProperties]):
765 (-[WebImageData imageAtIndex:]):
766 (-[WebImageData propertiesAtIndex:]):
767 (-[WebImageData _cacheImages:allImages:]):
768 (-[WebImageData decodeData:isComplete:callback:]):
769 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
770 * WebView.subproj/WebPreferences.m:
771 (+[WebPreferences initialize]):
773 2004-12-20 Richard Williamson <rjw@apple.com>
775 Fixed build problem caused by change to ImageIO API.
779 * WebCoreSupport.subproj/WebImageData.m:
781 2004-12-19 Darin Adler <darin@apple.com>
785 - some garbage collection fixes
787 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
788 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
790 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
791 get rid of an unnecessary use of WebNSRetainCFRelease.
792 * Misc.subproj/WebNSURLExtras.m:
793 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
794 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
795 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
796 work correctly under GC.
797 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
798 Use WebCFAutorelease here; the old code would not work correctly under GC.
800 2004-12-18 Chris Blumenberg <cblu@apple.com>
802 Fixed: <rdar://problem/3766915> PDF content needs search to work
804 Reviewed by kevin, john.
806 * WebView.subproj/WebPDFView.m:
807 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
808 (-[WebPDFView takeFindStringFromSelection:]): new
809 (-[WebPDFView jumpToSelection:]): new
810 (-[WebPDFView validateUserInterfaceItem:]): new
812 2004-12-17 Richard Williamson <rjw@apple.com>
814 Make image decoding as lazy as possible for non threaded case; in some cases
815 can avoid unnecessary decoding work.
819 * WebCoreSupport.subproj/WebImageData.h:
820 * WebCoreSupport.subproj/WebImageData.m:
821 (-[WebImageData imageAtIndex:]):
822 (-[WebImageData propertiesAtIndex:]):
823 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
825 2004-12-16 John Sullivan <sullivan@apple.com>
829 One of the assertions from my previous checkin fired, so
830 I made this code more robust.
832 * WebCoreSupport.subproj/WebBridge.m:
833 (-[WebBridge _preferences]):
834 new helper method, returns global preferences if webView is nil,
835 otherwise returns webView's preferences
836 (-[WebBridge getObjectCacheSize]):
837 use new helper method, remove now-unnecessary assert
838 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
841 2004-12-16 John Sullivan <sullivan@apple.com>
845 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
846 - cleaned up some calls to +[WebPreferences standardPreferences] that should
847 have been using -[WebView preferences]
849 This adds a (currently SPI-only) new feature that shows the URL of the link
850 under the mouse in a toolTip. I tested this in Safari, but we're adding this
851 feature for Mail, and Safari won't use it (unless of course you know the
852 magic defaults command)
854 * Plugins.subproj/WebBaseNetscapePluginView.m:
855 (-[WebBaseNetscapePluginView start]):
856 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
858 * WebCoreSupport.subproj/WebBridge.m:
859 (-[WebBridge getObjectCacheSize]):
861 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
864 * WebView.subproj/WebBaseResourceHandleDelegate.m:
865 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
868 * WebView.subproj/WebFrame.m:
869 (-[WebFrame _transitionToCommitted:]):
871 (-[WebFrame _loadItem:withLoadType:]):
874 * WebView.subproj/WebHTMLViewInternal.h:
875 private struct now keeps ivar for cached value of showsURLsInToolTips
876 so it doesn't have look it up in preferences a zillion times
878 * WebView.subproj/WebHTMLView.m:
879 (-[WebHTMLView _updateMouseoverWithEvent:]):
880 if private->showsURLsInToolTips is true, set the toolTip from the URL.
881 Fall back to showing the title attribute in case some element has a title
882 attribute but no URL.
883 (-[WebHTMLView _mayStartDragAtEventLocation:]):
884 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
885 (-[WebHTMLView _resetCachedWebPreferences:]):
886 get a fresh value for private->showsURLsInToolTips
887 (-[WebHTMLView initWithFrame:]):
888 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
889 (-[WebHTMLView _handleStyleKeyEquivalent:]):
890 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
892 * WebView.subproj/WebPreferenceKeysPrivate.h:
893 added WebKitShowsURLsInToolTipsPreferenceKey
895 * WebView.subproj/WebPreferences.m:
896 (+[WebPreferences initialize]):
897 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
898 (-[WebPreferences showsURLsInToolTips]):
899 return WebKitShowsURLsInToolTipsPreferenceKey value
900 (-[WebPreferences setShowsURLsInToolTips:]):
901 set WebKitShowsURLsInToolTipsPreferenceKey value
903 * WebView.subproj/WebPreferencesPrivate.h:
904 add declarations for showsURLsInToolTips and setter
906 * WebView.subproj/WebTextView.m:
907 (-[WebTextView _preferences]):
908 new helper method that gets preferences from webView if there is a webView,
909 otherwise gets global preferences
910 (-[WebTextView setFixedWidthFont]):
911 use new helper method rather than always using global preferences
912 (-[WebTextView initWithFrame:]):
913 observe WebPreferencesChangedNotification instead of unnecessarily general
914 NSUserDefaultsChangedNotification
916 2004-12-14 John Sullivan <sullivan@apple.com>
920 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
921 in the menu, no specific action names
923 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
924 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
926 * WebView.subproj/WebHTMLView.m:
927 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
928 use WebUndoActionSetColor when dragging color swatch
929 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
930 new WebUndoAction parameter, passed across bridge
931 (-[WebHTMLView _toggleBold]):
932 use WebUndoActionSetFont
933 (-[WebHTMLView _toggleItalic]):
934 use WebUndoActionSetFont
935 (-[WebHTMLView pasteFont:]):
936 use WebUndoActionPasteFont
937 (-[WebHTMLView changeFont:]):
938 use WebUndoActionSetFont
939 (-[WebHTMLView changeAttributes:]):
940 use WebUndoActionChangeAttributes
941 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
942 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
943 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
944 now calls _undoActionFromColorPanelWithSelector
945 (-[WebHTMLView changeColor:]):
946 use WebUndoActionSetColor
947 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
948 new WebUndoAction parameter, passed through
949 (-[WebHTMLView alignCenter:]):
950 use WebUndoActionCenter
951 (-[WebHTMLView alignJustified:]):
952 use WebUndoActionJustify
953 (-[WebHTMLView alignLeft:]):
954 use WebUndoActionAlignLeft
955 (-[WebHTMLView alignRight:]):
956 use WebUndoActionAlignRight
957 (-[WebHTMLView subscript:]):
958 use WebUndoActionAlignSubscript
959 (-[WebHTMLView superscript:]):
960 use WebUndoActionAlignSuperscript
961 (-[WebHTMLView unscript:]):
962 use WebUndoActionAlignUnscript
963 (-[WebHTMLView underline:]):
964 use WebUndoActionAlignUnderline
966 * WebView.subproj/WebView.m:
967 (-[WebView setTypingStyle:]):
968 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
969 (-[WebView applyStyle:]):
972 2004-12-14 Richard Williamson <rjw@apple.com>
974 Helper method to get URL of plugin view.
978 * Misc.subproj/WebNSViewExtras.m:
979 (-[NSView _webViewURL]):
981 2004-12-14 Vicki Murley <vicki@apple.com>
985 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
987 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
988 file as well, as requested in the bug report
990 2004-12-13 Maciej Stachowiak <mjs@apple.com>
994 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
996 * WebView.subproj/WebHTMLView.m:
997 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
998 we end up with no marked text, since that case fails and is unnecessary.
1000 2004-12-14 John Sullivan <sullivan@apple.com>
1004 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
1005 no specific action names
1007 * WebCoreSupport.subproj/WebBridge.m:
1008 (-[WebBridge nameForUndoAction:]):
1009 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
1010 handled new "unspecified" case as a fallback
1012 2004-12-13 Richard Williamson <rjw@apple.com>
1014 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
1018 * Plugins.subproj/WebJavaPlugIn.h:
1020 2004-12-13 John Sullivan <sullivan@apple.com>
1024 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
1025 that can't be cancelled.
1027 The proper fix for this would be to change the class of the NSPanel in the nib file.
1028 But since this would require a localization change, I did a run-time hack instead.
1029 I'll file a bug about fixing this when we're out of localization freeze.
1031 * Panels.subproj/WebAuthenticationPanel.m:
1032 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
1033 new method, creates a new panel that is identical to the original one except that
1034 it's our subclass, and moves all the subviews of the original panel into the new one.
1035 (-[WebAuthenticationPanel loadNib]):
1036 call replacePanelWithSubclassHack
1037 (-[NonBlockingPanel _blocksActionWhenModal:]):
1038 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
1039 when one of these panels/sheets is on-screen
1041 2004-12-10 Richard Williamson <rjw@apple.com>
1043 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
1044 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
1046 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
1050 * WebCoreSupport.subproj/WebImageData.h:
1051 * WebCoreSupport.subproj/WebImageData.m:
1052 (-[WebImageData setIsPDF:]):
1053 (-[WebImageData isPDF]):
1054 (-[WebImageData dealloc]):
1055 (-[WebImageData decodeData:isComplete:callback:]):
1056 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1057 (-[WebImageData size]):
1058 (-[WebImageData animate]):
1059 (-[WebImageData _createPDFWithData:]):
1060 (-[WebImageData _PDFDocumentRef]):
1061 (-[WebImageData _PDFDrawInContext:]):
1062 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
1063 * WebCoreSupport.subproj/WebImageRenderer.h:
1064 * WebCoreSupport.subproj/WebImageRenderer.m:
1065 (-[WebImageRenderer size]):
1066 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
1067 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1070 2004-12-10 John Sullivan <sullivan@apple.com>
1074 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
1075 if there's no default printer set
1077 * WebView.subproj/WebHTMLView.m:
1078 (-[WebHTMLView beginDocument]):
1079 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
1080 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
1081 However, it turns out that if there's an exception in [super beginDocument], then endDocument
1082 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
1083 exiting the "printing mode" in beginDocument when it occurs.
1085 2004-12-09 Richard Williamson <rjw@apple.com>
1087 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
1089 Restrict our support for animated images to GIF. We used to
1090 use presence of more than one image in a resource to determine
1091 if an image should be animated. This caused us to animate icns!
1092 If we ever support any other animated image formats we'll have
1097 * WebCoreSupport.subproj/WebImageData.h:
1098 * WebCoreSupport.subproj/WebImageData.m:
1099 (-[WebImageData shouldAnimate]):
1100 * WebCoreSupport.subproj/WebImageRenderer.m:
1101 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
1103 2004-12-09 Richard Williamson <rjw@apple.com>
1105 Make WebPluginDatabase.h private (Dashboard needs SPI).
1107 * WebKit.pbproj/project.pbxproj:
1111 2004-12-09 Chris Blumenberg <cblu@apple.com>
1113 Workaround for this exception being raised during download:
1114 [WebDownload connection:willStopBufferingData:]: selector not recognized
1118 * Misc.subproj/WebDownload.m:
1119 (-[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.
1121 2004-12-08 Richard Williamson <rjw@apple.com>
1123 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
1124 Account for scaling correctly when taking into account progressively
1127 Also added implementation of repetition count for animated GIF images.
1128 Also replaced strings with new constants from CFImageProperties.h
1130 Also fixed possible problem with -(NSSize)size implementation,
1131 relevant to Panther only.
1135 * WebCoreSupport.subproj/WebImageData.m:
1136 (-[WebImageData _floatProperty:type:at:]):
1137 (-[WebImageData _frameDurationAt:]):
1138 (-[WebImageData _repetitionCount]):
1139 * WebCoreSupport.subproj/WebImageRenderer.m:
1140 (-[WebImageRenderer size]):
1142 2004-12-08 Chris Blumenberg <cblu@apple.com>
1144 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
1145 since 3828925 has been fixed.
1149 * Plugins.subproj/WebNetscapePluginPackage.m:
1150 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
1151 * Plugins.subproj/npapi.m: removed NPN wrappers
1152 * WebKit.exp: removed symbols
1154 2004-12-08 Ken Kocienda <kocienda@apple.com>
1158 * WebView.subproj/WebHTMLView.m:
1159 (-[WebHTMLView drawRect:]): Work around for this bug:
1160 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
1161 The reason for the workaround is that this method is called explicitly from the code
1162 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
1163 This code change uses the passed-in rect when the count is zero.
1165 2004-12-07 Administrator <cblu@apple.com>
1167 Support for fix for:
1168 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
1172 * Misc.subproj/WebNSURLExtras.h:
1173 * Misc.subproj/WebNSURLExtras.m:
1174 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
1175 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
1177 2004-12-07 Richard Williamson <rjw@apple.com>
1179 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
1183 * WebCoreSupport.subproj/WebImageRenderer.m:
1184 (-[WebImageRenderer size]):
1186 2004-12-07 Richard Williamson <rjw@apple.com>
1188 Support threaded image decoding on machines w/ >= 2 CPUs.
1190 Reviewed by Maciej and Chris.
1192 * Misc.subproj/WebKitSystemBits.h:
1193 * Misc.subproj/WebKitSystemBits.m:
1194 (WebSystemMainMemory):
1196 * WebCoreSupport.subproj/WebImageData.h:
1197 * WebCoreSupport.subproj/WebImageData.m:
1198 (+[WebImageData initialize]):
1199 (-[WebImageData init]):
1200 (-[WebImageData _commonTermination]):
1201 (-[WebImageData dealloc]):
1202 (-[WebImageData _invalidateImages]):
1203 (-[WebImageData _imageSourceOptions]):
1204 (-[WebImageData imageAtIndex:]):
1205 (-[WebImageData propertiesAtIndex:]):
1206 (-[WebImageData _createImages]):
1207 (-[WebImageData decodeData:isComplete:callback:]):
1208 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
1210 (-[WebImageData tileInRect:fromPoint:context:]):
1211 (-[WebImageData isNull]):
1212 (-[WebImageData size]):
1213 (-[WebImageData _frameDurationAt:]):
1214 (-[WebImageData _frameDuration]):
1215 (+[WebImageData stopAnimationsInView:]):
1216 (-[WebImageData addAnimatingRenderer:inView:]):
1217 (-[WebImageData removeAnimatingRenderer:]):
1218 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
1219 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
1220 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
1221 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
1222 (-[WebImageDecodeItem finalize]):
1223 (-[WebImageDecodeItem dealloc]):
1224 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
1225 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
1226 (decoderNotifications):
1227 (+[WebImageDecoder initialize]):
1228 (+[WebImageDecoder notifyMainThread]):
1229 (+[WebImageDecoder sharedDecoder]):
1230 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
1231 (+[WebImageDecoder imageDecodesPending]):
1232 (+[WebImageDecoder decodeComplete:status:]):
1233 (-[WebImageDecoder init]):
1234 (-[WebImageDecoder dealloc]):
1235 (-[WebImageDecoder finalize]):
1236 (-[WebImageDecoder removeItem]):
1237 (-[WebImageDecoder addItem:]):
1238 (-[WebImageDecoder decodeItem:]):
1240 (startDecoderThread):
1241 * WebCoreSupport.subproj/WebImageRenderer.m:
1242 (-[WebImageRenderer initWithData:MIMEType:]):
1243 (-[WebImageRenderer initWithContentsOfFile:]):
1244 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
1245 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
1246 * WebKit.pbproj/project.pbxproj:
1247 * WebView.subproj/WebImageRepresentation.m:
1248 (-[WebImageRepresentation receivedData:withDataSource:]):
1249 (-[WebImageRepresentation receivedError:withDataSource:]):
1250 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
1252 2004-12-07 Chris Blumenberg <cblu@apple.com>
1254 Fix for performance regression.
1258 * WebCoreSupport.subproj/WebBridge.m:
1259 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
1261 2004-12-07 Chris Blumenberg <cblu@apple.com>
1263 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
1267 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1268 * WebView.subproj/WebMainResourceClient.m:
1269 (-[WebMainResourceClient addData:]): call super so it buffers the data
1271 2004-12-06 Richard Williamson <rjw@apple.com>
1273 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
1274 and resolve why metrics have changed for Courier. This may be caused by changes in
1279 * WebCoreSupport.subproj/WebTextRenderer.m:
1280 (_AppkitGetCGRenderingMode):
1284 2004-12-06 Chris Blumenberg <cblu@apple.com>
1286 Forgot to commit copied header.
1288 * DOM.subproj/DOMPrivate.h:
1290 2004-12-06 Chris Blumenberg <cblu@apple.com>
1292 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
1296 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1297 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1298 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
1299 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
1300 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
1301 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
1302 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
1303 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
1304 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
1305 * WebView.subproj/WebDataSource.m:
1306 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
1307 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
1308 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
1309 * WebView.subproj/WebDataSourcePrivate.h:
1310 * WebView.subproj/WebMainResourceClient.m:
1311 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
1312 (-[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
1313 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
1314 * WebView.subproj/WebResource.m:
1315 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
1316 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
1317 * WebView.subproj/WebResourcePrivate.h:
1319 2004-12-06 Richard Williamson <rjw@apple.com>
1321 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
1323 Use CGFontRef direction when both getting font metrics and drawing
1324 glyphs, instead on depending on [NSFont set].
1328 * WebCoreSupport.subproj/WebTextRenderer.m:
1332 2004-12-06 Ken Kocienda <kocienda@apple.com>
1334 Reviewed by Harrison
1338 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
1340 * WebView.subproj/WebHTMLView.m:
1341 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
1344 2004-12-04 Darin Adler <darin@apple.com>
1348 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
1349 - 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
1350 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
1352 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
1353 * WebView.subproj/WebHTMLView.m:
1354 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
1355 tracking number of 0, which means no existing tracking number.
1356 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
1357 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
1358 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1359 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
1360 field since that field is set up too early in the mouse down event handling process.
1361 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
1363 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
1365 * WebCoreSupport.subproj/WebBridge.m:
1366 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1367 Changed code around so that it won't try to create a WebResource when the load fails.
1369 - moved next/previous links into private structure with the rest of WebFrame fields
1370 (We have a rule against putting new fields into obejcts that are part of our public API.)
1372 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
1373 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
1374 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
1375 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
1376 (-[WebFrame _removeChild:]): Ditto.
1377 (-[WebFrame _nextFrameWithWrap:]): Ditto.
1378 (-[WebFrame _previousFrameWithWrap:]): Ditto.
1380 2004-12-04 Chris Blumenberg <cblu@apple.com>
1383 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1384 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1385 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
1386 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
1388 Reviewed by darin, rjw, kocienda.
1390 * WebCoreSupport.subproj/WebBridge.m:
1391 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
1392 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1393 * WebCoreSupport.subproj/WebSubresourceClient.m:
1394 (-[WebSubresourceClient didFinishLoading]):
1395 * WebView.subproj/WebFrame.m:
1396 (-[WebFrame _opened]):
1397 (-[WebFrame _internalLoadDelegate]):
1398 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
1399 * WebView.subproj/WebFrameInternal.h:
1401 2004-12-04 Darin Adler <darin@apple.com>
1405 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1407 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
1408 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
1409 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
1411 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
1415 2004-12-03 Ken Kocienda <kocienda@apple.com>
1419 Roll out some recent changes by Chris that caused a performance regression.
1420 Fix is in hand, but it is a little risky this close to a submission. So,
1421 we have decided to roll back the change with the regression and roll in
1422 the new code after we submit.
1424 * WebCoreSupport.subproj/WebBridge.m:
1425 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
1426 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1427 * WebCoreSupport.subproj/WebSubresourceClient.m:
1428 (-[WebSubresourceClient didFinishLoading]):
1429 * WebView.subproj/WebFrame.m:
1430 (-[WebFrame _opened]):
1431 (-[WebFrame _internalLoadDelegate]):
1432 * WebView.subproj/WebFrameInternal.h:
1434 2004-12-02 Richard Williamson <rjw@apple.com>
1436 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
1438 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
1439 the b/f cache won't incorrectly trash the previous state when restoring.
1443 * WebView.subproj/WebFrame.m:
1444 (-[WebFrame _setState:]):
1446 2004-12-02 Ken Kocienda <kocienda@apple.com>
1450 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
1451 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
1453 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
1454 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
1455 did a conversion of the passed-in point to the document view's coordinate space, whereas
1456 editableDOMRangeForPoint: did not. Now it does.
1458 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
1459 attempts to work around this problem (unsuccessfully), and actually manages to block the
1460 real fix (which needs to be in WebKit).
1462 * WebView.subproj/WebView.m:
1463 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
1465 2004-12-02 Richard Williamson <rjw@apple.com>
1467 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
1469 We have a hack to replace Times with Times New Roman if we fail
1470 to setup Times. If we then fail to setup Times New Roman we
1471 don't attempt to further fallback to the system font. Added
1472 that additional fallback.
1476 * WebCoreSupport.subproj/WebTextRenderer.m:
1477 (+[WebTextRenderer webFallbackFontFamily]):
1478 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1480 2004-12-02 Richard Williamson <rjw@apple.com>
1482 Fixed build problem on Tiger8A821. Private macro and function
1483 we were using have been deprecated,
1487 * WebCoreSupport.subproj/WebTextRenderer.m:
1488 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1490 2004-12-01 Chris Blumenberg <cblu@apple.com>
1492 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
1493 Also improved and cleaned-up the plug-in stream termination code.
1497 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1498 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1499 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
1500 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
1501 (-[WebBaseNetscapePluginStream errorForReason:]): new
1502 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
1503 (-[WebBaseNetscapePluginStream setMIMEType:]): new
1504 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
1505 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
1506 (-[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
1507 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
1508 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
1509 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
1510 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
1511 * Plugins.subproj/WebBaseNetscapePluginView.m:
1512 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
1513 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1514 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
1515 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
1516 * Plugins.subproj/WebNetscapePluginStream.m:
1517 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
1518 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
1519 (-[WebNetscapePluginConnectionDelegate isDone]): new
1520 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
1521 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
1523 2004-12-01 Kevin Decker <kdecker@apple.com>
1525 Reviewed by Harrison.
1527 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
1529 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
1531 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
1532 * WebView.subproj/WebFrame.m:
1533 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
1534 (-[WebFrame _removeChild:]): ditto
1535 (-[WebFrame _nextSibling]): just return the pointer now
1536 (-[WebFrame _previousSibling]): ditto
1538 2004-11-30 Chris Blumenberg <cblu@apple.com>
1541 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1542 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1546 * WebCoreSupport.subproj/WebBridge.m:
1547 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
1548 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
1549 * WebCoreSupport.subproj/WebSubresourceClient.m:
1550 (-[WebSubresourceClient didFinishLoading]): call renamed method
1551 * WebView.subproj/WebFrame.m:
1552 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
1553 (-[WebFrame _internalLoadDelegate]):
1554 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
1555 * WebView.subproj/WebFrameInternal.h:
1557 2004-11-29 Darin Adler <darin@apple.com>
1561 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
1562 without first checking if it's implemented
1564 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
1565 Implemented. Calls floatValue on the scroller.
1567 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1569 2004-11-23 Chris Blumenberg <cblu@apple.com>
1571 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
1575 * Misc.subproj/WebIconDatabase.h:
1576 * Misc.subproj/WebIconDatabase.m:
1577 (-[WebIconDatabase init]): don't create dictionaries if disabled
1578 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
1579 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
1580 (-[WebIconDatabase retainIconForURL:]): return if disabled
1581 (-[WebIconDatabase releaseIconForURL:]): ditto
1582 (-[WebIconDatabase delayDatabaseCleanup]): ditto
1583 (-[WebIconDatabase allowDatabaseCleanup]): ditto
1584 (-[WebIconDatabase _isEnabled]): new
1585 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
1586 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
1587 (-[WebIconDatabase _setIconURL:forURL:]): ditto
1588 (-[WebIconDatabase _createFileDatabase]): tweak
1589 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
1590 * Misc.subproj/WebIconDatabasePrivate.h:
1591 * Misc.subproj/WebIconLoader.m:
1592 * WebView.subproj/WebDataSource.m:
1593 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
1594 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
1596 2004-11-22 David Hyatt <hyatt@apple.com>
1598 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
1602 * WebCoreSupport.subproj/WebBridge.m:
1603 (-[WebBridge getObjectCacheSize]):
1605 2004-11-22 Richard Williamson <rjw@apple.com>
1607 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
1609 John found this problem and suggested the fix.
1611 Reviewed by John Louch.
1613 * WebView.subproj/WebView.m:
1614 (-[WebView setPreferences:]):
1616 2004-11-22 Ken Kocienda <kocienda@apple.com>
1618 Reviewed by Harrison
1620 * WebCoreSupport.subproj/WebBridge.m:
1621 (-[WebBridge canPaste]): Call WebView _canPaste.
1622 * WebView.subproj/WebView.m:
1623 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
1624 answers right now. Returns NO otherwise.
1625 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
1627 2004-11-22 Maciej Stachowiak <mjs@apple.com>
1629 Back out the window closing fix, it seems to be causing crashes.
1631 * WebView.subproj/WebFrame.m:
1632 (-[WebFrame _detachFromParent]):
1634 2004-11-20 Maciej Stachowiak <mjs@apple.com>
1638 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
1640 * Misc.subproj/WebNSURLExtras.h:
1641 * Misc.subproj/WebNSURLExtras.m:
1642 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
1643 string is already in user-visible form (i.e. converting it to an
1644 NSURL and then back via _web_userVisibleString would not change
1647 2004-11-19 Maciej Stachowiak <mjs@apple.com>
1651 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
1653 * WebView.subproj/WebFrame.m:
1654 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
1655 to make window and tab closing more responsive - this way the deallocation happens
1656 after the windoow or tab appears to close.
1660 2004-11-19 Chris Blumenberg <cblu@apple.com>
1662 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
1666 * Plugins.subproj/WebBaseNetscapePluginView.m:
1667 (-[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
1669 2004-11-19 Ken Kocienda <kocienda@apple.com>
1671 Reviewed by Harrison
1675 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
1677 * WebCoreSupport.subproj/WebBridge.m:
1678 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
1679 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
1681 (-[WebBridge respondToChangedSelection]): Ditto.
1682 * WebView.subproj/WebView.m:
1683 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
1684 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
1685 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
1686 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
1688 2004-11-18 John Sullivan <sullivan@apple.com>
1692 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
1693 parsing, reading and writing is faster
1695 * History.subproj/WebHistory.m:
1696 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
1697 convert dictionary to binary data before saving
1699 2004-11-18 Chris Blumenberg <cblu@apple.com>
1701 * WebView.subproj/WebHTMLRepresentation.m:
1702 (-[WebHTMLRepresentation currentForm]): removed stray ";"
1704 2004-11-18 Chris Blumenberg <cblu@apple.com>
1706 Fixed development build failure.
1708 * Misc.subproj/WebIconDatabase.m:
1709 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
1711 2004-11-18 Chris Blumenberg <cblu@apple.com>
1713 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
1715 Reviewed by sullivan.
1717 * Misc.subproj/WebIconDatabase.m:
1718 (+[WebIconDatabase sharedIconDatabase]): added timing code
1719 (-[WebIconDatabase _clearDictionaries]): new
1720 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1721 (-[WebIconDatabase _updateFileDatabase]): fixed comment
1722 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1723 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
1724 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
1726 2004-11-17 Richard Williamson <rjw@apple.com>
1728 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
1730 Correctly account for scaled image size and clipping.
1734 * WebCoreSupport.subproj/WebImageData.h:
1735 * WebCoreSupport.subproj/WebImageData.m:
1736 * WebCoreSupport.subproj/WebImageRenderer.m:
1737 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1739 2004-11-17 Maciej Stachowiak <mjs@apple.com>
1741 Reviewed by Richard.
1743 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
1746 * Misc.subproj/WebNSURLExtras.m:
1747 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
1748 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
1749 check for localhost, no longer needed.
1751 2004-11-17 Richard Williamson <rjw@apple.com>
1753 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
1755 and added call to SPI for
1757 <rdar://problem/3884448> WebKit should turn on CG local font cache
1759 currently disabled until a Tiger build shows up with the SPI.
1761 Reviewed by David Harrison.
1763 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1764 (+[WebTextRendererFactory createSharedFactory]):
1766 2004-11-17 Richard Williamson <rjw@apple.com>
1768 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
1769 Fixed <rdar://problem/3884088> Crash terminating image load
1771 Also added code to turn off color correction for images created
1772 via CGImageSources. This code is currently disabled because CG
1773 can't change the color space of images loaded progressively.
1774 Further, according to Dave Hayward, CG will no longer attempt
1775 to color correct images that don't have embedded profiles as of
1780 * WebCoreSupport.subproj/WebImageData.m:
1781 (-[WebImageData _commonTermination]):
1782 (-[WebImageData dealloc]):
1783 (-[WebImageData _invalidateImageProperties]):
1784 (-[WebImageData imageAtIndex:]):
1785 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1786 (-[WebImageData propertiesAtIndex:]):
1788 2004-11-16 Chris Blumenberg <cblu@apple.com>
1790 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
1794 * WebView.subproj/WebPDFView.m:
1795 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
1796 (-[WebPDFView menuForEvent:]): use the PDFView subview
1798 2004-11-15 Chris Blumenberg <cblu@apple.com>
1800 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
1804 * WebKit.pbproj/project.pbxproj:
1805 * WebView.subproj/WebPDFRepresentation.m:
1806 (+[WebPDFRepresentation PDFDocumentClass]): new
1807 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
1808 * WebView.subproj/WebPDFView.h:
1809 * WebView.subproj/WebPDFView.m:
1810 (+[WebPDFView PDFKitBundle]): new
1811 (+[WebPDFView PDFViewClass]): new
1812 (-[WebPDFView initWithFrame:]): create a PDFView subview
1813 (-[WebPDFView dealloc]): release the PDFView subview
1814 (-[WebPDFView PDFSubview]): new
1816 2004-11-15 Chris Blumenberg <cblu@apple.com>
1818 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
1822 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
1824 2004-11-15 Richard Williamson <rjw@apple.com>
1826 Fixed missing retain of image property data.
1830 * WebCoreSupport.subproj/WebImageData.h:
1831 * WebCoreSupport.subproj/WebImageData.m:
1832 (-[WebImageData dealloc]):
1833 (-[WebImageData _invalidateImages]):
1834 (-[WebImageData imageAtIndex:]):
1835 (-[WebImageData propertiesAtIndex:]):
1836 (-[WebImageData _frameDuration]):
1838 2004-11-15 Richard Williamson <rjw@apple.com>
1840 Cache image properties and frame durations.
1841 Create NSImage and TIFF representations from CGImage, lazily, as needed for
1842 dragging and element info dictionary.
1846 * WebCoreSupport.subproj/WebImageData.h:
1847 * WebCoreSupport.subproj/WebImageData.m:
1848 (-[WebImageData dealloc]):
1849 (-[WebImageData size]):
1850 (-[WebImageData propertiesAtIndex:]):
1851 (-[WebImageData _frameDurationAt:]):
1852 (-[WebImageData _frameDuration]):
1853 * WebCoreSupport.subproj/WebImageRenderer.h:
1854 * WebCoreSupport.subproj/WebImageRenderer.m:
1855 (-[WebImageRenderer dealloc]):
1856 (-[WebImageRenderer TIFFRepresentation]):
1857 (-[WebImageRenderer image]):
1859 2004-11-14 Maciej Stachowiak <mjs@apple.com>
1863 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
1865 * Misc.subproj/WebIconDatabase.m:
1866 (-[WebIconDatabase init]):
1867 (-[WebIconDatabase _setIconURL:forURL:]):
1868 (-[WebIconDatabase _retainIconForIconURLString:]):
1869 (-[WebIconDatabase _releaseIconForIconURLString:]):
1870 (-[WebIconDatabase _retainFutureIconForURL:]):
1871 (-[WebIconDatabase _releaseFutureIconForURL:]):
1872 * Misc.subproj/WebIconDatabasePrivate.h:
1874 2004-11-15 John Sullivan <sullivan@apple.com>
1878 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
1880 * WebView.subproj/WebArchive.m:
1881 (-[WebArchive _propertyListRepresentation]):
1882 the array holding the subresources was not released after use, oops!
1884 2004-11-12 Chris Blumenberg <cblu@apple.com>
1886 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
1890 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1891 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
1895 2004-11-11 Richard Williamson <rjw@apple.com>
1897 Report actual size (not partial size) but use partial size
1902 * WebCoreSupport.subproj/WebImageData.h:
1903 * WebCoreSupport.subproj/WebImageData.m:
1904 (-[WebImageData size]):
1906 2004-11-11 Darin Adler <darin@apple.com>
1910 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
1911 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
1912 with a subsequent change to WebCore.
1914 * WebCoreSupport.subproj/WebBridge.m:
1915 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
1917 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
1918 (_getPostSmartSet): Ditto.
1920 * WebView.subproj/WebHTMLView.m:
1921 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
1922 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
1923 Set firstResponderAtMouseDownTime to the first responder.
1924 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
1925 the mouseDown event.
1926 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
1927 firstResponderAtMouseDownTime field.
1928 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
1929 and _wasFirstResponderAtMouseDownTime method.
1931 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1933 2004-11-11 Richard Williamson <rjw@apple.com>
1937 Work-around to minimize impact of 3876764. Cache frame durations
1938 after first call. So we'll still leak 1K for each animated
1939 image, but that's better than 1K each time the frame is drawn!
1940 * WebCoreSupport.subproj/WebImageData.h:
1941 * WebCoreSupport.subproj/WebImageData.m:
1942 (-[WebImageData _frameDuration]):
1944 Simplified animation cleanup code. Fixed leak due to
1945 incorrect key passed to CFDictionaryRemoveValue.
1947 (+[WebImageData stopAnimationsInView:]):
1948 (-[WebImageData addAnimatingRenderer:inView:]):
1949 (-[WebImageData removeAnimatingRenderer:]):
1950 (-[WebImageData _stopAnimation]):
1952 2004-11-11 Darin Adler <darin@apple.com>
1956 - 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
1958 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
1959 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
1960 using the passed-in rectangle.
1962 2004-11-11 Richard Williamson <rjw@apple.com>
1964 Work-arounds to make new ImageIO code work correctly. Still
1965 disabled for now. Requires at least Tiger 300. Testing does
1966 show a 3% improvement in PLT tests! That's huge!
1970 * WebCoreSupport.subproj/WebImageData.m:
1971 (-[WebImageData imageAtIndex:]):
1972 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1973 (-[WebImageData isNull]):
1975 2004-11-10 Chris Blumenberg <cblu@apple.com>
1977 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
1981 * Misc.subproj/WebFileDatabase.m:
1982 (-[WebFileDatabase objectForKey:]): added logging code
1983 * Misc.subproj/WebIconDatabase.m:
1984 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
1985 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
1986 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
1988 2004-11-09 David Hyatt <hyatt@apple.com>
1990 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
1991 loading large local files.
1995 * WebCoreSupport.subproj/WebBridge.m:
1996 (-[WebBridge tokenizerProcessedData]):
1997 * WebView.subproj/WebDataSource.m:
1998 (-[WebDataSource _receivedMainResourceError:complete:]):
1999 (-[WebDataSource isLoading]):
2001 2004-11-09 Richard Williamson <rjw@apple.com>
2003 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
2005 Add "text/pdf" as an acceptable PDF MIME type.
2009 * WebView.subproj/WebDataSource.m:
2010 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2011 * WebView.subproj/WebFrameView.m:
2012 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2014 2004-11-08 Chris Blumenberg <cblu@apple.com>
2016 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
2020 * WebCoreSupport.subproj/WebBridge.m:
2021 (-[WebBridge control:textView:shouldHandleEvent:]): new
2022 * WebView.subproj/WebFormDelegate.h:
2023 * WebView.subproj/WebFormDelegate.m:
2024 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
2026 2004-11-05 Chris Blumenberg <cblu@apple.com>
2028 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
2030 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
2032 2004-11-05 Chris Blumenberg <cblu@apple.com>
2034 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
2038 * WebCoreSupport.subproj/WebBridge.m:
2039 (_getPreSmartSet): copied from AppKit
2040 (_getPostSmartSet): ditto
2041 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
2043 2004-11-05 Richard Williamson <rjw@apple.com>
2045 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
2047 Reviewed by Maciej (a long time ago).
2049 * WebView.subproj/WebFrame.m:
2050 (-[WebFrame _loadDataSource:withLoadType:formState:]):
2052 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
2054 As suggested in the bug, the fix is to actually call
2055 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
2056 exporting the symbol.
2060 * Carbon.subproj/CarbonUtils.m:
2062 * Carbon.subproj/HIWebView.m:
2063 * WebKit.pbproj/project.pbxproj:
2067 2004-11-05 Darin Adler <darin@apple.com>
2071 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
2073 * WebView.subproj/WebHTMLView.m:
2074 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
2075 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
2076 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
2077 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
2078 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
2080 2004-11-04 David Hyatt <hyatt@apple.com>
2082 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
2084 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
2085 totally bogus in both CG and AppKit.
2089 * WebCoreSupport.subproj/WebTextRenderer.m:
2090 (-[WebTextRenderer xHeight]):
2091 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
2092 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
2093 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2094 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
2095 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
2097 2004-11-02 Maciej Stachowiak <mjs@apple.com>
2099 Reviewed by Dave Hyatt (when I originally coded it).
2101 Redid WebKit part of fix for:
2103 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
2105 * WebView.subproj/WebHTMLView.m:
2106 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
2107 and translate to screen coordinates.
2109 2004-11-02 John Sullivan <sullivan@apple.com>
2113 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
2114 very large bookmarks menu, so I cached this one NSFont object.
2116 * Misc.subproj/WebStringTruncator.m:
2118 new function, caches the font used when no font is specified
2119 (+[WebStringTruncator centerTruncateString:toWidth:]):
2122 2004-11-02 Ken Kocienda <kocienda@apple.com>
2126 WebCore now implements a command to insert a block in response to typing a return key, and
2127 some names were improved in the course of this work.
2129 * WebView.subproj/WebHTMLView.m:
2130 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
2131 (-[WebHTMLView insertLineBreak:]): New method.
2132 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
2133 * WebView.subproj/WebView.m:
2137 2004-10-29 Chris Blumenberg <cblu@apple.com>
2139 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
2141 2004-10-29 Darin Adler <darin@apple.com>
2143 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
2145 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
2146 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
2147 report to match the contents of the file.
2149 2004-10-27 Ken Kocienda <kocienda@apple.com>
2153 Added new SPI for Mail so it can get the behavior it needs when the user hits
2154 the return key with the selection in quoted content.
2156 * WebView.subproj/WebView.m
2157 * WebView.subproj/WebViewPrivate.h
2159 2004-10-26 Chris Blumenberg <cblu@apple.com>
2161 Fixed exception that Darin encountered in Mail.
2165 * Plugins.subproj/WebPluginController.m:
2166 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
2168 2004-10-25 Chris Blumenberg <cblu@apple.com>
2170 Darin made an internal notification have the Web prefix.
2174 * Plugins.subproj/WebBaseNetscapePluginView.m:
2175 (-[WebBaseNetscapePluginView addWindowObservers]):
2176 (-[WebBaseNetscapePluginView removeWindowObservers]):
2177 (ConsoleConnectionChangeNotifyProc):
2179 2004-10-25 John Sullivan <sullivan@apple.com>
2183 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
2184 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
2186 * History.subproj/WebHistoryItem.m:
2187 removed notificationsSuppressed ivar from private data object
2188 (-[WebHistoryItem setAlternateTitle:]):
2189 remove notificationsSuppressed guard
2190 (-[WebHistoryItem setURLString:]):
2192 (-[WebHistoryItem setOriginalURLString:]):
2194 (-[WebHistoryItem setTitle:]):
2196 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
2198 (-[WebHistoryItem setNotificationsSuppressed:]):
2200 (-[WebHistoryItem notificationsSuppressed]):
2203 * History.subproj/WebHistoryItemPrivate.h:
2204 removed notificationsSuppressed and setNotificationsSuppressed
2206 2004-10-22 Chris Blumenberg <cblu@apple.com>
2208 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
2212 * WebView.subproj/WebFrameView.m:
2213 (+[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
2217 2004-10-22 Ken Kocienda <kocienda@apple.com>
2221 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
2223 2004-10-21 Darin Adler <darin@apple.com>
2227 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
2229 * WebCoreSupport.subproj/WebImageRenderer.m:
2230 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
2231 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
2232 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
2233 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
2234 or retains self and returns self.
2236 2004-10-20 Darin Adler <darin@apple.com>
2240 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
2242 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
2243 rather than NSImage and contain a pointer to a WebInternalImage.
2244 * WebCoreSupport.subproj/WebImageRenderer.m:
2245 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
2246 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
2247 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
2248 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
2249 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
2250 (-[WebImageRenderer image]): Added. Returns pointer to image.
2251 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
2252 (-[WebImageRenderer TIFFRepresentation]): Ditto.
2253 (-[WebImageRenderer frameCount]): Ditto.
2254 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
2255 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
2256 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
2257 (-[WebImageRenderer size]): Ditto.
2258 (-[WebImageRenderer resize:]): Ditto.
2259 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
2260 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
2261 (-[WebImageRenderer stopAnimation]): Ditto.
2262 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
2263 (-[WebImageRenderer isNull]): Ditto.
2264 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
2265 (-[WebImageRenderer increaseUseCount]): Ditto.
2266 (-[WebImageRenderer decreaseUseCount]): Ditto.
2267 (-[WebImageRenderer flushRasterCache]): Ditto.
2268 (-[WebImageRenderer imageRef]): Ditto.
2269 (-[WebImageRenderer copyWithZone:]): Ditto.
2271 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
2272 Update for slight changes to WebImageRenderer API.
2273 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2274 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
2275 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
2276 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
2277 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
2278 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
2280 2004-10-20 Chris Blumenberg <cblu@apple.com>
2282 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
2286 * Plugins.subproj/WebBasePluginPackage.h:
2287 * Plugins.subproj/WebBasePluginPackage.m:
2288 (-[WebBasePluginPackage isJavaPlugIn]): new
2289 * Plugins.subproj/WebPluginDatabase.m:
2290 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
2292 2004-10-20 Chris Blumenberg <cblu@apple.com>
2295 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
2296 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
2300 * Plugins.subproj/WebPluginDocumentView.m:
2301 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
2302 * Plugins.subproj/WebPluginPackage.m:
2303 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
2304 * WebCoreSupport.subproj/WebBridge.m:
2305 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
2306 * WebKit.pbproj/project.pbxproj:
2308 2004-10-19 Vicki Murley <vicki@apple.com>
2310 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
2312 * WebKit.pbproj/project.pbxproj:
2314 2004-10-19 Darin Adler <darin@apple.com>
2316 Change suggested by Maciej during code review.
2318 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
2319 of private memory, and doesn't require an initialization function.
2320 (+[WebTextRenderer initialize]): Removed initialization.
2322 2004-10-19 Darin Adler <darin@apple.com>
2326 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
2327 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
2328 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
2330 * WebCoreSupport.subproj/WebTextRenderer.m:
2331 (isSpace): Merged in isAlternateSpace, never used.
2332 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
2333 since globals start out zeroed automatically.
2334 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
2335 Also removed explicit compare with 1; check for non-zero is just fine.
2336 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
2337 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
2338 the underlying problem.
2339 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
2340 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
2341 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
2342 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
2343 \n and non-break spaces.
2344 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
2345 are handled by the CG case.
2346 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
2347 would not handle cases with '\n' coming across from WebCore properly.
2349 2004-10-18 Chris Blumenberg <cblu@apple.com>
2351 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
2355 * Plugins.subproj/WebNetscapePluginPackage.m:
2356 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
2358 2004-10-18 Chris Blumenberg <cblu@apple.com>
2360 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
2362 2004-10-18 John Sullivan <sullivan@apple.com>
2366 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
2368 * WebView.subproj/WebHTMLView.m:
2369 (-[WebHTMLView doCommandBySelector:]):
2370 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
2374 2004-10-14 Ken Kocienda <kocienda@apple.com>
2378 Final fix for these bugs:
2380 <rdar://problem/3806306> HTML editing puts spaces at start of line
2381 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
2383 This change sets some new CSS properties that have been added to WebCore to
2384 enable whitespace-handling and line-breaking features that make WebView work
2385 more like a text editor.
2387 * WebView.subproj/WebHTMLRepresentation.m:
2388 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
2389 CSS properties when loading an HTML document into a WebView that is editable.
2390 * WebView.subproj/WebView.m:
2391 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
2392 document being displayed.
2394 2004-10-14 Richard Williamson <rjw@apple.com>
2396 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
2398 Careful testing shows a small performance gain on very large text files.
2399 I saw large variations in timings, but taking the lowest PLT timing
2400 with and without this change showed a 0.9% gain. Note the cvs-base showed
2401 no improvement. The improvement was for the large page attached to the
2406 * WebCoreSupport.subproj/WebTextRenderer.m:
2407 (setupRoundingHackCharacterTable):
2408 (isRoundingHackCharacter):
2409 (+[WebTextRenderer initialize]):
2411 2004-10-14 Ken Kocienda <kocienda@apple.com>
2415 Fix build breakage. These three functions need to return the values from their
2416 calls to WebCGColorSpaceCreateXXX.
2418 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2419 (-[WebGraphicsBridge createRGBColorSpace])
2420 (-[WebGraphicsBridge createGrayColorSpace])
2421 (-[WebGraphicsBridge createCMYKColorSpace])
2423 2004-10-13 Richard Williamson <rjw@apple.com>
2425 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
2427 In practice I saw NO improvement in performance. Although,
2428 special-case tests could possibly show improvement. Anyway,
2429 the changes don't hurt performance.
2433 * Misc.subproj/WebNSURLExtras.m:
2434 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
2436 2004-10-13 Maciej Stachowiak <mjs@apple.com>
2440 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
2442 - I fixed this by turning off all colormatching for WebKit
2443 content. We might turn it back on later. For now, it's possible to
2444 turn it on temporarily by defining COLORMATCH_EVERYTHING.
2446 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2447 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
2448 (-[WebGraphicsBridge additionalPatternPhase]):
2449 (-[WebGraphicsBridge createRGBColorSpace]):
2450 (-[WebGraphicsBridge createGrayColorSpace]):
2451 (-[WebGraphicsBridge createCMYKColorSpace]):
2452 * WebCoreSupport.subproj/WebImageData.m:
2453 * WebCoreSupport.subproj/WebImageRenderer.h:
2454 * WebCoreSupport.subproj/WebImageRenderer.m:
2455 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
2456 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2457 (-[WebImageRenderer _adjustColorSpace]):
2458 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
2459 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2461 (WebCGColorSpaceCreateRGB):
2462 (WebCGColorSpaceCreateGray):
2463 (WebCGColorSpaceCreateCMYK):
2466 2004-10-13 Richard Williamson <rjw@apple.com>
2468 Don't fill background with transparency unless debug flag
2473 * WebView.subproj/WebHTMLView.m:
2474 (-[WebHTMLView drawRect:]):
2476 2004-10-12 Richard Williamson <rjw@apple.com>
2478 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
2482 * WebView.subproj/WebHTMLView.m:
2483 (-[WebHTMLView _transparentBackground]):
2484 (-[WebHTMLView _setTransparentBackground:]):
2485 (-[WebHTMLView drawRect:]):
2486 * WebView.subproj/WebHTMLViewInternal.h:
2487 * WebView.subproj/WebHTMLViewPrivate.h:
2489 2004-10-11 Chris Blumenberg <cblu@apple.com>
2491 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
2495 * WebView.subproj/WebHTMLView.m:
2496 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
2497 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
2498 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
2499 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
2501 2004-10-11 Darin Adler <darin@apple.com>
2505 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
2507 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
2509 2004-10-11 Darin Adler <darin@apple.com>
2513 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
2515 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
2516 Do nothing if filename is the same as before.
2518 2004-10-11 Ken Kocienda <kocienda@apple.com>
2522 * WebView.subproj/WebHTMLView.m:
2523 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
2524 now takes an affinity: caretRectAtNode:offset:affinity:.
2526 2004-10-10 Ken Kocienda <kocienda@apple.com>
2532 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
2534 * WebView.subproj/WebHTMLView.m:
2535 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
2536 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
2537 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
2538 else do what we did before.
2539 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
2540 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
2542 2004-10-11 Darin Adler <darin@apple.com>
2546 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
2548 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
2549 Don't send an event through WebCore if it has already been through once.
2551 2004-10-10 John Sullivan <sullivan@apple.com>
2555 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
2557 * WebView.subproj/WebMainResourceClient.m:
2558 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
2559 add retain/autorelease to the request returned from call to super. In this case, the return value
2560 was being dealloc'ed before being returned.
2562 2004-10-09 Chris Blumenberg <cblu@apple.com>
2565 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
2566 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
2570 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2571 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
2572 * Plugins.subproj/WebNetscapePluginStream.m:
2573 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2574 * WebView.subproj/WebFramePrivate.h:
2575 * WebView.subproj/WebFrameView.m:
2576 (-[WebFrameView _bridge]): new
2577 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
2578 (-[WebFrameView scrollToEndOfDocument:]): ditto
2579 (-[WebFrameView _pageVertically:]): ditto
2580 (-[WebFrameView _pageHorizontally:]): ditto
2581 (-[WebFrameView _scrollLineVertically:]): ditto
2582 (-[WebFrameView _scrollLineHorizontally:]): ditto
2583 * WebView.subproj/WebHTMLView.m:
2584 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
2588 2004-10-05 Chris Blumenberg <cblu@apple.com>
2590 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
2594 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2595 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
2596 * Plugins.subproj/WebNetscapePluginStream.m:
2597 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2599 2004-10-05 John Sullivan <sullivan@apple.com>
2601 * WebCoreSupport.subproj/WebBridge.m:
2602 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2603 initialize "arguments" var to nil to satisfy compiler on deployment build.
2605 2004-10-05 Richard Williamson <rjw@apple.com>
2607 Fixed <rdar://problem/3825442> first click lost for Dashboard
2608 Allow dashboard to force acceptsFirstMouse:
2612 * WebView.subproj/WebHTMLView.m:
2613 (-[WebHTMLView acceptsFirstMouse:]):
2614 * WebView.subproj/WebView.m:
2615 (-[WebView _dashboardBehavior:]):
2616 * WebView.subproj/WebViewInternal.h:
2617 * WebView.subproj/WebViewPrivate.h:
2619 * WebCoreSupport.subproj/WebImageRenderer.h:
2622 2004-10-05 Chris Blumenberg <cblu@apple.com>
2624 Fixed: <rdar://problem/3760920> Need to record plugin view instances
2628 * Plugins.subproj/WebPluginController.h:
2629 * Plugins.subproj/WebPluginController.m:
2630 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
2631 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
2632 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
2633 * Plugins.subproj/WebPluginDocumentView.m:
2634 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
2635 * WebCoreSupport.subproj/WebBridge.m:
2636 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
2637 * WebView.subproj/WebFrame.m:
2638 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
2639 * WebView.subproj/WebHTMLView.m:
2640 (-[WebHTMLView addSubview:]): ditto
2642 2004-10-05 David Hyatt <hyatt@apple.com>
2644 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
2645 needs to try to fill gaps around text.
2647 Reviewed by kocienda
2649 * WebCoreSupport.subproj/WebTextRenderer.m:
2650 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
2651 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2653 2004-10-05 Darin Adler <darin@apple.com>
2657 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
2659 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
2660 setFlipped that fixes the problem, even though I don't know why.
2662 2004-10-04 Darin Adler <darin@apple.com>
2666 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
2668 * WebView.subproj/WebHTMLView.m:
2669 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
2670 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
2671 this to have the word "start" in it.
2672 (-[WebHTMLView copyFont:]): Updated for name change.
2674 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2676 2004-10-04 Chris Blumenberg <cblu@apple.com>
2678 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
2680 2004-10-04 Chris Blumenberg <cblu@apple.com>
2682 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
2683 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
2687 * Plugins.subproj/WebBaseNetscapePluginStream.h:
2688 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
2689 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
2690 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
2691 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2692 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
2693 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
2694 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
2695 (-[WebBaseNetscapePluginStream finalize]): added assert
2696 (-[WebBaseNetscapePluginStream setRequestURL:]): new
2697 (-[WebBaseNetscapePluginStream setResponseURL:]): new
2698 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
2699 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
2700 (-[WebBaseNetscapePluginStream destroyStream]):
2701 - do nothing if terminated
2702 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
2703 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
2704 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
2705 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
2706 * Plugins.subproj/WebBaseNetscapePluginView.h:
2707 - added observingFrameLoadNotification boolean
2708 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
2709 * Plugins.subproj/WebBaseNetscapePluginView.m:
2710 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
2711 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
2712 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
2713 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
2714 (-[WebBaseNetscapePluginView dealloc]): ditto
2715 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
2716 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2717 - call NPP_URLNotify depending of value of sendNotification
2718 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
2719 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
2720 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
2721 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
2722 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
2723 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
2724 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
2725 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
2726 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
2727 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
2728 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
2729 (-[WebPluginRequest sendNotification]): new
2730 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
2731 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2732 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
2733 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2734 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
2735 * Plugins.subproj/WebNetscapePluginStream.h:
2736 * Plugins.subproj/WebNetscapePluginStream.m:
2737 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
2738 (-[WebNetscapePluginStream dealloc]): use renamed ivar
2739 (-[WebNetscapePluginStream start]): ditto
2740 * WebView.subproj/WebFrame.m:
2741 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
2742 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
2743 (-[WebFrame _loadItem:withLoadType:]): ditto
2744 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
2745 (-[WebFrame _setInternalLoadDelegate:]): new
2746 (-[WebFrame _internalLoadDelegate]): new
2747 * WebView.subproj/WebFrameInternal.h:
2748 * WebView.subproj/WebFramePrivate.h:
2750 2004-10-04 Chris Blumenberg <cblu@apple.com>
2752 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
2754 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.
2758 * Plugins.subproj/WebBaseNetscapePluginView.m:
2759 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
2761 2004-10-04 Darin Adler <darin@apple.com>
2765 - fixed a potential storage leak when we turn on CGImageRef image rendering
2767 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
2768 by adding [super dealloc], but leak was not real yet because the code is commented out.
2770 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
2771 Copy/paste style does not set color in Mail compose window
2773 * WebView.subproj/WebHTMLView.m:
2774 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
2775 For now I haven't added any yet.
2776 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
2777 (-[WebHTMLView _shadowAsString:]): Ditto.
2778 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
2780 2004-09-30 Richard Williamson <rjw@apple.com>
2782 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
2784 Also changed dashboard regions dictionary to use "control"
2785 for scroller region label, instead of "scroller, per
2790 * Plugins.subproj/npruntime.h:
2791 * WebView.subproj/WebView.m:
2792 (-[WebView _addScrollerDashboardRegions:from:]):
2794 2004-09-30 Chris Blumenberg <cblu@apple.com>
2796 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
2800 * Plugins.subproj/WebBaseNetscapePluginView.m:
2801 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
2802 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
2803 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
2804 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
2805 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
2806 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
2808 2004-09-30 Chris Blumenberg <cblu@apple.com>
2810 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
2814 * Plugins.subproj/WebBaseNetscapePluginView.h:
2815 * Plugins.subproj/WebBaseNetscapePluginView.m:
2816 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
2817 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
2818 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
2819 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
2821 2004-09-30 Chris Blumenberg <cblu@apple.com>
2824 Assertion failure when loading standalone netscape plug-in content.
2825 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
2829 * Misc.subproj/WebKitErrors.m: removed deprecated method
2830 * Misc.subproj/WebKitErrorsPrivate.h:
2831 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2832 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
2833 * Plugins.subproj/WebPluginDocumentView.h:
2834 * Plugins.subproj/WebPluginDocumentView.m:
2835 (-[WebPluginDocumentView dealloc]): remove retained plug-in
2836 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
2838 2004-09-29 Chris Blumenberg <cblu@apple.com>
2841 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
2842 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
2846 * History.subproj/WebHistoryItem.m:
2847 * Misc.subproj/WebNSViewExtras.h:
2848 * Misc.subproj/WebNSViewExtras.m:
2849 (-[NSView _web_firstResponderCausesFocusDisplay]):
2850 (-[NSView _webView]):
2852 (-[NSView _bridge]):
2853 (-[NSView _dataSource]):
2854 * Plugins.subproj/WebBasePluginPackage.h:
2855 * Plugins.subproj/WebBasePluginPackage.m:
2856 (-[WebBasePluginPackage hash]):
2857 (-[WebBasePluginPackage isQuickTimePlugIn]):
2858 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2859 (-[WebNetscapePluginDocumentView setDataSource:]):
2860 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2861 * Plugins.subproj/WebPluginController.h:
2862 * Plugins.subproj/WebPluginController.m:
2863 (-[WebPluginController initWithDocumentView:]):
2864 (-[WebPluginController addPlugin:]):
2865 (-[WebPluginController destroyAllPlugins]):
2866 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2867 (-[WebPluginController webPlugInContainerShowStatus:]):
2868 (-[WebPluginController webPlugInContainerSelectionColor]):
2869 (-[WebPluginController webFrame]):
2870 * Plugins.subproj/WebPluginDatabase.h:
2871 * Plugins.subproj/WebPluginDatabase.m:
2872 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
2873 (-[WebPluginDatabase refresh]):
2874 (WebPluginDocumentView::while):
2875 * Plugins.subproj/WebPluginDocumentView.h: Added.
2876 * Plugins.subproj/WebPluginDocumentView.m: Added.
2877 (-[WebPluginDocumentView initWithFrame:]):
2878 (-[WebPluginDocumentView dealloc]):
2879 (-[WebPluginDocumentView drawRect:]):
2880 (-[WebPluginDocumentView setDataSource:]):
2881 (-[WebPluginDocumentView setNeedsLayout:]):
2882 (-[WebPluginDocumentView layout]):
2883 (-[WebPluginDocumentView currentWindow]):
2884 (-[WebPluginDocumentView viewWillMoveToWindow:]):
2885 (-[WebPluginDocumentView viewDidMoveToWindow]):
2886 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
2887 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
2888 (-[WebPluginDocumentView receivedData:withDataSource:]):
2889 (-[WebPluginDocumentView receivedError:withDataSource:]):
2890 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
2891 (-[WebPluginDocumentView canProvideDocumentSource]):
2892 (-[WebPluginDocumentView documentSource]):
2893 (-[WebPluginDocumentView title]):
2894 * Plugins.subproj/npapi.m:
2895 (NPN_ReleaseVariantValue):
2896 (NPN_GetStringIdentifier):
2897 (NPN_GetStringIdentifiers):
2898 (NPN_GetIntIdentifier):
2899 (NPN_IdentifierIsString):
2900 (NPN_UTF8FromIdentifier):
2901 (NPN_IntFromIdentifier):
2904 (NPN_ReleaseObject):
2906 (NPN_InvokeDefault):
2910 (NPN_RemoveProperty):
2915 * WebCoreSupport.subproj/WebBridge.m:
2916 (-[WebBridge frameRequiredForMIMEType:URL:]):
2917 * WebCoreSupport.subproj/WebViewFactory.m:
2919 * WebKit.pbproj/project.pbxproj:
2920 * WebView.subproj/WebDebugDOMNode.m:
2921 * WebView.subproj/WebDocumentInternal.h:
2922 * WebView.subproj/WebHTMLView.m:
2923 (-[WebHTMLView initWithFrame:]):
2924 * WebView.subproj/WebHTMLViewPrivate.h:
2925 * WebView.subproj/WebImageRepresentation.h:
2926 * WebView.subproj/WebRenderNode.m:
2927 * WebView.subproj/WebView.m:
2929 2004-09-29 Richard Williamson <rjw@apple.com>
2931 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
2933 The fix has two parts, 1) make onblur and onfocus work for windows,
2934 and 2), allow the dashboard to override WebKit's special key/non-key
2939 * Plugins.subproj/WebBaseNetscapePluginView.m:
2940 (-[WebBaseNetscapePluginView restartNullEvents]):
2941 * WebView.subproj/WebHTMLView.m:
2942 (-[WebHTMLView addMouseMovedObserver]):
2943 (-[WebHTMLView removeMouseMovedObserver]):
2944 * WebView.subproj/WebView.m:
2945 (-[WebView _dashboardBehavior:]):
2946 * WebView.subproj/WebViewInternal.h:
2947 * WebView.subproj/WebViewPrivate.h:
2949 2004-09-29 Maciej Stachowiak <mjs@apple.com>
2953 - consolidated OS version checks into prefix header
2955 * Misc.subproj/WebFileDatabase.m:
2956 (-[WebFileDatabase _createLRUList:]):
2957 (+[WebFileDatabase _syncLoop:]):
2958 * Misc.subproj/WebKitErrors.m:
2960 * Misc.subproj/WebNSObjectExtras.h:
2961 (WebNSRetainCFRelease):
2962 * Misc.subproj/WebNSPasteboardExtras.m:
2963 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
2964 * Misc.subproj/WebUnicode.m:
2965 (_unicodeDirection):
2966 * WebCoreSupport.subproj/WebImageData.h:
2967 * WebCoreSupport.subproj/WebImageRenderer.h:
2968 * WebCoreSupport.subproj/WebKeyGenerator.h:
2969 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
2971 * WebView.subproj/WebDataSource.m:
2972 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2973 (-[WebDataSource isLoading]):
2974 * WebView.subproj/WebFrameView.m:
2975 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2976 * WebView.subproj/WebHTMLView.m:
2977 * WebView.subproj/WebPDFRepresentation.h:
2978 * WebView.subproj/WebPDFRepresentation.m:
2979 * WebView.subproj/WebPDFView.h:
2980 * WebView.subproj/WebPDFView.m:
2982 2004-09-29 Ken Kocienda <kocienda@apple.com>
2988 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
2990 * WebView.subproj/WebHTMLView.m:
2991 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
2992 bridge function instead of ensureCaretVisible. Now handles caret selections and range
2993 selections correctly.
2995 2004-09-28 Chris Blumenberg <cblu@apple.com>
2997 Added timing code so that Doug can time RTF conversion.
2999 * WebView.subproj/WebHTMLView.m:
3000 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
3001 (-[WebHTMLView _attributeStringFromDOMRange:]):
3003 2004-09-28 Richard Williamson <rjw@apple.com>
3005 <rdar://problem/3817421> add getter for dashboard regions (debugging)
3007 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
3012 * WebCoreSupport.subproj/WebBridge.m:
3013 (-[WebBridge dashboardRegionsChanged:]):
3014 * WebView.subproj/WebView.m:
3015 (-[WebView _setInitiatedDrag:]):
3016 (-[WebView _addScrollerDashboardRegions:from:]):
3017 (-[WebView _addScrollerDashboardRegions:]):
3018 (-[WebView _dashboardRegions]):
3019 * WebView.subproj/WebViewPrivate.h:
3021 2004-09-27 John Sullivan <sullivan@apple.com>
3023 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
3025 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
3026 changed "Remember this password" to "Remember this password in my keychain";
3027 this will need to go through CCC for this week's build.
3029 2004-09-27 Chris Blumenberg <cblu@apple.com>
3031 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
3035 * Plugins.subproj/WebBaseNetscapePluginView.m:
3037 2004-09-27 Chris Blumenberg <cblu@apple.com>
3039 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
3043 * WebView.subproj/WebTextView.m:
3044 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
3046 2004-09-27 John Sullivan <sullivan@apple.com>
3050 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
3051 like Cmd-B while editing rich text
3053 * WebView.subproj/WebHTMLView.m:
3054 (-[WebHTMLView _toggleBold]):
3055 new method, toggles font-weight from "bold" to "normal"
3056 (-[WebHTMLView _toggleItalic]):
3057 new method, toggles font-style from "italic" to "normal"
3058 (-[WebHTMLView _handleStyleKeyEquivalent:]):
3059 new method, if the new preference is set and we're in an editable state, check for standard
3060 key equivalents for toggling styles (just command-B and command-I for now).
3061 (-[WebHTMLView performKeyEquivalent:]):
3062 Moved in file, now calls _handleStyleKeyEquivalent:
3064 * WebView.subproj/WebPreferenceKeysPrivate.h:
3065 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3066 * WebView.subproj/WebPreferences.m:
3067 (+[WebPreferences initialize]):
3068 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
3069 change our minds about this, but this is more guaranteed to be backward-compatible)
3070 (-[WebPreferences respectStandardStyleKeyEquivalents]):
3071 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3072 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
3073 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
3075 * WebView.subproj/WebPreferencesPrivate.h:
3076 declare getter and setter
3078 * English.lproj/StringsNotToBeLocalized.txt:
3079 updated for these and other recent changes
3081 2004-09-27 Chris Blumenberg <cblu@apple.com>
3083 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
3087 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3088 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
3090 2004-09-27 Chris Blumenberg <cblu@apple.com>
3092 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
3096 * WebView.subproj/WebHTMLView.m:
3097 (-[WebHTMLView _setMouseDownEvent:]): new
3098 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
3099 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
3100 (-[WebHTMLView mouseDown:]): ditto
3101 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
3103 2004-09-27 Darin Adler <darin@apple.com>
3105 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
3107 2004-09-24 Chris Blumenberg <cblu@apple.com>
3111 * WebView.subproj/WebHTMLView.m:
3112 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
3116 2004-09-24 Chris Blumenberg <cblu@apple.com>
3118 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
3122 * WebView.subproj/WebHTMLView.m:
3123 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
3125 2004-09-24 Ken Kocienda <kocienda@apple.com>
3131 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
3133 We were doing a laughably bad job at preventing edits in documents that were not editable.
3134 This change fixes the specific case of the bug mentioned above, and makes an attempt to
3135 fix similar bugs by checking for whether the view is in editing mode before making edits.
3137 * WebView.subproj/WebHTMLView.m:
3138 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
3139 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
3140 was actually performing a correct check before.
3141 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
3142 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
3143 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
3144 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
3145 (-[WebHTMLView pasteAsPlainText:]): Ditto.
3146 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
3147 (-[WebHTMLView insertNewline:]): Ditto.
3148 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
3149 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
3150 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
3151 (-[WebHTMLView complete:]): Ditto.
3152 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
3153 (-[WebHTMLView ignoreSpelling:]): Ditto.
3154 (-[WebHTMLView yank:]): Bail if !_canEdit.
3155 (-[WebHTMLView yankAndSelect:]): Ditto.
3156 (-[WebHTMLView deleteToMark:]): Ditto.
3157 (-[WebHTMLView swapWithMark:]): Ditto.
3158 (-[WebHTMLView transpose:]): Ditto.
3159 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
3160 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
3161 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
3162 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
3164 2004-09-24 Ken Kocienda <kocienda@apple.com>
3168 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
3170 2004-09-23 Maciej Stachowiak <mjs@apple.com>
3174 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
3176 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
3177 link dragging if the element under the mouse pointer is
3178 editable. This way, you can drag-select starting inside a link.
3180 2004-09-23 John Sullivan <sullivan@apple.com>
3184 - WebKit part of fix for <rdar://problem/3415264>
3185 Default encoding should initially be set to current system encoding
3187 * WebView.subproj/WebPreferences.m:
3188 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
3189 new SPI that sets the initial value of the default text encoding to
3190 be the system encoding, with a special-case conversion of MacRoman->Latin1.
3191 This is not done automatically for WebKit clients for fear of breaking them.
3193 * WebView.subproj/WebPreferencesPrivate.h:
3196 2004-09-23 Darin Adler <darin@apple.com>
3200 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
3202 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
3203 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
3204 while using a button.
3206 * WebView.subproj/WebMainResourceClient.m:
3207 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
3208 for the specific case of "about:blank" even if the defers callbacks flag is true.
3209 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
3210 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
3211 as above. Changed code to return a new request if we get a new request back that is not empty
3212 when the defers callbacks flag is true.
3213 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
3214 URL is one that gives us an empty document, then do the work right away, don't defer it.
3216 2004-09-23 Darin Adler <darin@apple.com>
3218 - fixed B&I builds by checking in generated file
3220 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
3222 2004-09-22 Richard Williamson <rjw@apple.com>
3224 Pass dashboard regions to UI delegate.
3228 * WebCoreSupport.subproj/WebBridge.m:
3229 (-[WebBridge dashboardRegionsChanged:]):
3230 * WebView.subproj/WebUIDelegatePrivate.h:
3231 * copy-webcore-files-to-webkit:
3233 2004-09-22 Chris Blumenberg <cblu@apple.com>
3235 Fixed build that I just broke.
3237 * WebView.subproj/WebHTMLView.m:
3238 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
3240 2004-09-22 Chris Blumenberg <cblu@apple.com>
3242 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
3246 * WebView.subproj/WebHTMLView.m:
3247 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
3249 2004-09-22 Chris Blumenberg <cblu@apple.com>
3252 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
3253 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
3257 * WebCoreSupport.subproj/WebSubresourceClient.m:
3258 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
3259 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3260 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
3262 2004-09-22 Ken Kocienda <kocienda@apple.com>
3266 * WebView.subproj/WebFrameView.m:
3267 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
3268 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
3269 unwanted firstResponder switching.
3270 * WebView.subproj/WebView.m:
3271 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
3273 2004-09-21 Chris Blumenberg <cblu@apple.com
3276 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
3277 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
3281 * WebView.subproj/WebDataSource.m:
3282 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
3283 * WebView.subproj/WebHTMLView.m:
3284 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3285 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
3286 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
3287 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
3288 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3289 (-[WebHTMLView delete:]): call _deleteSelection
3290 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
3291 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3292 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
3293 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
3294 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
3295 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
3296 (-[WebHTMLView transpose:]): pass NO for smartReplace
3297 (-[WebHTMLView _shouldDeleteRange:]): moved
3298 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
3299 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
3300 (-[WebHTMLView _deleteSelection]): new
3301 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
3302 (-[WebHTMLView _canSmartCopyOrDelete]): new
3303 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
3304 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
3305 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
3306 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
3307 * WebView.subproj/WebHTMLViewInternal.h:
3308 * WebView.subproj/WebView.m:
3309 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
3310 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
3311 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
3312 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
3313 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
3315 2004-09-21 John Sullivan <sullivan@apple.com>
3319 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
3320 Option-tab doesn't always work as expected
3322 * WebCoreSupport.subproj/WebBridge.m:
3323 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3324 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
3325 after all; these need to be tested independently to get the option-tab behavior
3328 2004-09-21 John Sullivan <sullivan@apple.com>
3330 * WebView.subproj/WebHTMLView.m:
3331 (-[WebHTMLView doCommandBySelector:]):
3332 Commented out part of previous change; it breaks Mail editing until Mail
3335 2004-09-21 John Sullivan <sullivan@apple.com>
3339 * WebView.subproj/WebHTMLView.m:
3340 (-[WebHTMLView doCommandBySelector:]):
3341 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
3343 2004-09-21 John Sullivan <sullivan@apple.com>
3347 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
3349 * WebView.subproj/WebHTMLView.m:
3350 (-[WebHTMLView doCommandBySelector:]):
3351 Call through to editing delegate. If editing delegate returns YES, don't call super.
3353 * WebView.subproj/WebDefaultEditingDelegate.m:
3354 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
3355 default implementation (which was never called) was returning YES, but it should
3356 return NO to signal that it didn't handle the selector.
3358 2004-09-21 Chris Blumenberg <cblu@apple.com>
3360 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
3364 * Plugins.subproj/WebBaseNetscapePluginView.m:
3365 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
3366 (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:]): set the plug-in before calling setting the attributes, so we can avoid passing certain attributes to the WMP plug-in that cause it to crash
3368 2004-09-20 Chris Blumenberg <cblu@apple.com>
3370 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
3372 Reviewed by kocienda.
3374 * WebView.subproj/WebView.m:
3375 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
3377 2004-09-20 Chris Blumenberg <cblu@apple.com>
3379 Changes to implement renamed bridge methods.
3384 * DOM.subproj/WebDOMOperations.m:
3385 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
3386 * WebCoreSupport.subproj/WebBridge.m:
3387 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
3388 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
3390 2004-09-20 Darin Adler <darin@apple.com>
3394 * WebView.subproj/WebFramePrivate.h: Added back.
3395 * WebView.subproj/WebFrameViewPrivate.h: Removed.
3397 2004-09-20 Darin Adler <darin@apple.com>
3401 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
3402 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
3404 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
3405 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
3406 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
3407 * WebView.subproj/WebFrameView.m:
3408 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
3409 (-[WebFrameView _shouldDrawBorder]): Ditto.
3410 (-[WebFrameView _tile]): Ditto.
3411 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
3412 by the code to implement pageDown:.
3413 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
3414 (-[WebFrameView _goBack]): Ditto.
3415 (-[WebFrameView _goForward]): Ditto.
3416 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
3417 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
3418 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
3419 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
3420 vertical method above.
3421 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
3422 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
3423 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
3424 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
3425 (-[WebFrameView scrollPageUp:]): Ditto.
3426 (-[WebFrameView scrollPageDown:]): Ditto.
3427 (-[WebFrameView scrollLineUp:]): Ditto.
3428 (-[WebFrameView scrollLineDown:]): Ditto.
3429 (-[WebFrameView _firstResponderIsControl]): Ditto.
3430 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
3432 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
3434 * WebView.subproj/WebHTMLView.m:
3435 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
3436 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
3437 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3438 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
3439 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3440 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
3441 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
3442 (-[WebHTMLView pageUp:]): Added.
3443 (-[WebHTMLView pageDown:]): Added.
3444 (-[WebHTMLView pageUpAndModifySelection:]): Added.
3445 (-[WebHTMLView pageDownAndModifySelection:]): Added.
3446 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
3447 This fixes the problem with spell checking.
3449 * WebView.subproj/WebImageView.m:
3450 (-[WebImageView webView]): Changed to use _web_parentWebView.
3451 (-[WebImageView menuForEvent:]): Changed to use [self webView].
3452 (-[WebImageView mouseDown:]): Ditto.
3453 (-[WebImageView mouseDragged:]): Ditto.
3454 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
3456 * WebView.subproj/WebTextView.m:
3457 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
3458 (-[WebTextView menuForEvent:]): Ditto.
3459 (-[WebTextView drawPageBorderWithSize:]): Ditto.
3460 (-[WebTextView knowsPageRange:]): Ditto.
3462 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
3463 * WebCoreSupport.subproj/WebBridge.m: Ditto.
3464 * WebKit.pbproj/project.pbxproj: Ditto.
3465 * WebView.subproj/WebFrame.m: Ditto.
3466 * WebView.subproj/WebView.m: Ditto.
3467 * Misc.subproj/WebNSViewExtras.m: Ditto.
3469 2004-09-20 Darin Adler <darin@apple.com>
3473 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
3475 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
3476 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
3480 2004-09-17 Chris Blumenberg <cblu@apple.com>
3483 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
3484 <rdar://problem/3805756> strip attachments before generating RTF
3488 * WebView.subproj/WebHTMLView.m:
3489 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
3491 2004-09-16 Darin Adler <darin@apple.com>
3495 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
3497 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
3498 Check _private for nil before dereferencing it.
3500 2004-09-16 Chris Blumenberg <cblu@apple.com>
3502 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
3506 * WebView.subproj/WebHTMLView.m:
3507 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
3508 * WebView.subproj/WebHTMLViewPrivate.h:
3510 2004-09-15 Darin Adler <darin@apple.com>
3514 - fixed assertion I saw using the font panel
3516 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
3517 Convert color space before trying to get R, G, and B components.
3519 2004-09-15 Chris Blumenberg <cblu@apple.com>
3521 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
3523 Reviewed by kocienda.
3525 * WebView.subproj/WebHTMLView.m:
3526 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
3527 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
3528 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
3530 2004-09-14 Darin Adler <darin@apple.com>
3534 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
3535 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
3537 * WebView.subproj/WebHTMLView.m:
3538 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
3539 (-[WebHTMLView transpose:]): Added.
3541 2004-09-14 Richard Williamson <rjw@apple.com>
3543 1. Add class parameter to object allocation function. This is somewhat redundant, given that
3544 the allocation function is in the class function vector, but people wanted to use the same
3545 allocation function for different classes.
3547 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
3549 3. Add support for a default function on an object. This is a feature that ActiveX supports,
3550 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
3551 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
3552 'Objective-C' bindings.
3554 There bugs are covered by
3556 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
3557 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
3558 <rdar://problem/3674754> Need to implement latest npruntime.h
3562 * Plugins.subproj/WebNetscapePluginPackage.m:
3563 (-[WebNetscapePluginPackage load]):
3564 * Plugins.subproj/WebScriptObject.h:
3565 * Plugins.subproj/npfunctions.h:
3566 * Plugins.subproj/npruntime.h:
3568 2004-09-13 Richard Williamson <rjw@apple.com>
3570 D'oh. How many times can I screw up a simple fix!
3572 * WebCoreSupport.subproj/WebTextRenderer.m:
3573 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3575 2004-09-13 Richard Williamson <rjw@apple.com>
3577 Fixed snafu from 3782533 checkin.
3581 * WebCoreSupport.subproj/WebTextRenderer.m:
3582 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3584 2004-09-12 Chris Blumenberg <cblu@apple.com>
3586 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
3590 * Misc.subproj/WebStringTruncator.h:
3591 * Misc.subproj/WebStringTruncator.m:
3592 (+[WebStringTruncator widthOfString:font:]): new
3594 2004-09-10 Richard Williamson <rjw@apple.com>
3596 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
3598 We were explicitly failing when we encountered deprecated fonts.
3599 (Those with unsupported glyph packings).
3600 Deprecated fonts should only appear on a system that have
3601 stuff migrated from OS 9. Ugh, thats probably why we've never seen
3606 * WebCoreSupport.subproj/WebTextRenderer.m:
3607 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3609 2004-09-10 John Sullivan <sullivan@apple.com>
3613 - added _isFrameSet as a private method, so it can be used in WebBrowser.
3614 This is needed to merge the fix for 3123987 to SUPanNavy.
3616 * WebView.subproj/WebFrame.m:
3617 (-[WebFrame _isFrameSet]):
3620 * WebView.subproj/WebFramePrivate.h:
3623 2004-09-09 Chris Blumenberg <cblu@apple.com>
3625 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
3629 * WebCoreSupport.subproj/WebBridge.m:
3630 (-[WebBridge didFirstLayout]): new
3631 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
3632 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
3633 * WebView.subproj/WebViewPrivate.h:
3635 2004-09-09 Richard Williamson <rjw@apple.com>
3637 Alternate implementation of image rendering. Use CGImageRefs instead
3640 Mostly works, but currently disabled because of issues w/ CG.
3645 * WebCoreSupport.subproj/WebImageData.h: Added.
3646 * WebCoreSupport.subproj/WebImageData.m: Added.
3647 (-[WebImageData _commonTermination]):
3648 (-[WebImageData dealloc]):
3649 (-[WebImageData finalize]):
3650 (-[WebImageData copyWithZone:]):
3651 (-[WebImageData numberOfImages]):
3652 (-[WebImageData currentFrame]):
3653 (-[WebImageData _invalidateImages]):
3654 (-[WebImageData imageAtIndex:]):
3655 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
3657 (-[WebImageData tileInRect:fromPoint:context:]):
3658 (-[WebImageData isNull]):
3659 (-[WebImageData size]):
3660 (-[WebImageData _frameDuration]):
3661 (-[WebImageData _repetitionCount]):
3662 (-[WebImageData isAnimationFinished]):
3663 (+[WebImageData stopAnimationsInView:]):
3664 (-[WebImageData addAnimatingRenderer:inView:]):
3665 (-[WebImageData removeAnimatingRenderer:]):
3666 (-[WebImageData _stopAnimation]):
3667 (-[WebImageData _nextFrame:]):
3668 (-[WebImageData animate]):
3669 * WebCoreSupport.subproj/WebImageRenderer.h:
3670 * WebCoreSupport.subproj/WebImageRenderer.m:
3671 (-[WebImageRenderer initWithMIMEType:]):
3672 (-[WebImageRenderer initWithData:MIMEType:]):
3673 (-[WebImageRenderer initWithContentsOfFile:]):
3674 (-[WebImageRenderer dealloc]):
3675 (-[WebImageRenderer copyWithZone:]):
3676 (-[WebImageRenderer retainOrCopyIfNeeded]):
3677 (-[WebImageRenderer resize:]):
3678 (-[WebImageRenderer size]):
3679 (-[WebImageRenderer MIMEType]):
3680 (-[WebImageRenderer frameCount]):
3681 (-[WebImageRenderer isNull]):
3682 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
3683 (-[WebImageRenderer drawImageInRect:fromRect:]):
3684 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3685 (-[WebImageRenderer tileInRect:fromPoint:context:]):
3686 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3687 (+[WebImageRenderer stopAnimationsInView:]):
3688 (-[WebImageRenderer stopAnimation]):
3689 (-[WebImageRenderer targetAnimationRect]):
3690 (-[WebImageRenderer increaseUseCount]):
3691 (-[WebImageRenderer decreaseUseCount]):
3692 (-[WebImageRenderer flushRasterCache]):
3693 (-[WebImageRenderer imageRef]):
3694 (-[WebImageRenderer TIFFRepresentation]):
3695 (-[WebImageRenderer image]):
3696 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3697 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
3698 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
3699 (-[WebImageRendererFactory imageRendererWithSize:]):
3700 (-[WebImageRendererFactory imageRendererWithName:]):
3701 * WebKit.pbproj/project.pbxproj:
3702 * WebView.subproj/WebImageView.m:
3703 (-[WebImageView image]):
3707 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3709 - rolled out last two changes, they seem to cause a performance regression
3711 * WebView.subproj/WebHTMLView.m:
3712 (-[WebHTMLView firstRectForCharacterRange:]):
3714 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3718 * WebView.subproj/WebHTMLView.m:
3719 (-[WebHTMLView firstRectForCharacterRange:]):
3721 2004-09-08 Maciej Stachowiak <mjs@apple.com>
3725 WebKit part of fix for:
3727 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
3729 * WebView.subproj/WebHTMLView.m:
3730 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
3731 and translate to screen coordinates.
3733 2004-09-09 Darin Adler <darin@apple.com>
3737 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
3739 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
3740 so we can use new exceptions.
3742 * WebView.subproj/WebHTMLView.m:
3743 (-[WebHTMLView setMark:]): Added.
3744 (unionDOMRanges): Added.
3745 (-[WebHTMLView deleteToMark:]): Added.
3746 (-[WebHTMLView selectToMark:]): Added.
3747 (-[WebHTMLView swapWithMark:]): Added.
3748 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
3749 (-[WebHTMLView hasMarkedText]): Ditto.
3750 (-[WebHTMLView unmarkText]): Ditto.
3751 (-[WebHTMLView _selectMarkedText]): Ditto.
3752 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
3753 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
3754 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
3755 should not be filtered out here. We need to allow inserting an empty string.
3756 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
3757 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
3759 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
3760 Changed to use selectionDOMRange instead of selectionStart.
3762 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
3763 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
3765 2004-09-08 John Sullivan <sullivan@apple.com>
3769 - fixed the localization aspect of:
3770 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
3772 We now have all the strings ready for localization; we just don't actually use them yet.
3774 * English.lproj/Localizable.strings:
3775 updated for this change
3777 * WebCoreSupport.subproj/WebBridge.m:
3778 (-[WebBridge setUndoActionNamePlaceholder]):
3779 added this placeholder method whose purpose is to hold localizable strings for all the Undo
3780 action names that NSTextView uses. Later we will use some or all of these, but we can do
3781 that part after the localization freeze.
3783 2004-09-08 Chris Blumenberg <cblu@apple.com>
3785 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
3787 Reviewed by kocienda.
3789 * WebView.subproj/WebHTMLView.m:
3790 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
3792 2004-09-08 Chris Blumenberg <cblu@apple.com>
3794 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
3798 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3799 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
3800 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
3802 2004-09-08 Chris Blumenberg <cblu@apple.com>
3804 Forgot to add this in previous check-in.
3806 * English.lproj/WebViewEditingContextMenu.nib: Added.
3808 2004-09-08 Chris Blumenberg <cblu@apple.com>
3810 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
3814 * English.lproj/StringsNotToBeLocalized.txt:
3815 * WebKit.pbproj/project.pbxproj:
3816 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3817 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
3819 2004-09-07 Darin Adler <darin@apple.com>
3821 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
3823 2004-09-07 Chris Blumenberg <cblu@apple.com>
3825 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
3827 (checked in with last check-in)
3829 2004-09-07 Chris Blumenberg <cblu@apple.com>
3832 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
3833 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
3837 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
3838 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
3839 (-[WebBaseNetscapePluginView cut:]):
3840 (-[WebBaseNetscapePluginView copy:]):
3841 (-[WebBaseNetscapePluginView paste:]):
3842 (-[WebBaseNetscapePluginView selectAll:]):
3844 2004-09-07 Darin Adler <darin@apple.com>
3846 - fixed deployment build
3848 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
3849 Initialize prepend variable.
3851 2004-09-06 Darin Adler <darin@apple.com>
3855 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
3856 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
3857 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
3858 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
3859 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
3860 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
3861 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
3862 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
3863 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
3864 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
3865 - dealt with a couple of FIXMEs in WebHTMLView.m
3866 - updated list of not-yet-implemented methods in WebHTMLView.m
3867 - fixed many deletion operations to call the correct editing delegate methods
3869 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
3870 No one was calling them anyway, so they should really have been marked internal and not private.
3871 * WebView.subproj/WebFrameView.m:
3872 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
3873 would start working with the key bindings machinery.
3874 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
3875 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
3876 control-arrow keys here (probably not necessary, but good anyway).
3878 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
3879 and nextResponderDisabledOnce flags.
3880 * WebView.subproj/WebHTMLView.m:
3881 Rearrange declarations at the top of the file so that external things are up with
3882 the #import directives and things inside this file are declared below.
3883 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
3884 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
3885 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
3886 (-[WebHTMLView _selectedRange]): Added.
3887 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
3888 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
3889 with the AppKit. Chris will look at this later, and he can delete it then.
3890 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
3891 (-[WebHTMLView _documentRange]): Added.
3892 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
3893 string and then getting the text from there.
3894 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
3895 will create a new kill ring entry.
3896 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
3897 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3898 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
3899 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
3900 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3901 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
3902 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
3903 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3904 (-[WebHTMLView moveToEndOfLine:]): Ditto.
3905 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
3906 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3907 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
3908 (-[WebHTMLView _shouldDeleteRange:]): Added.
3909 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
3910 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
3911 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
3912 (-[WebHTMLView _selectionFontAttributes]): Added.
3913 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
3914 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
3915 (-[WebHTMLView _emptyStyle]): Added.
3916 (-[WebHTMLView _styleFromFontAttributes:]): Added.
3917 (-[WebHTMLView _applyStyleToSelection:]): Added.
3918 (-[WebHTMLView copyFont:]): Implemented.
3919 (-[WebHTMLView pasteFont:]): Implemented.
3920 (-[WebHTMLView _originalFontA]): Added.
3921 (-[WebHTMLView _originalFontB]): Added.
3922 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
3923 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
3924 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
3925 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
3926 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
3928 (-[WebHTMLView _shadowAsString:]): Added.
3929 (-[WebHTMLView _styleForAttributeChange:]): Added.
3930 (-[WebHTMLView changeAttributes:]): Implemented.
3931 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
3932 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
3933 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
3934 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
3935 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
3936 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
3937 of methods to possibly implement later in the file.
3938 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
3939 instead of WebViewInsertActionPasted.
3940 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
3941 Added to list of methods to possibly implement later in the file.
3942 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
3943 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
3944 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
3945 deleteBackward for now; probably better than doing nothing.
3946 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
3947 so that we delete the selection if there is one, get the appropriate delegate calls, handle
3948 the kill ring properly, and don't do any selection if we can't delete.
3949 (-[WebHTMLView deleteWordBackward:]): Ditto.
3950 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
3951 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
3952 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
3953 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
3954 is bound to Control-K, so it's not really just delete to end of paragraph.
3955 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
3956 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
3957 (-[WebHTMLView subscript:]): Added.
3958 (-[WebHTMLView superscript:]): Added.
3959 (-[WebHTMLView unscript:]): Added.
3960 (-[WebHTMLView underline:]): Added.
3961 (-[WebHTMLView yank:]): Added.
3962 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
3963 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
3964 control-arrow key trouble.
3965 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
3966 (-[WebHTMLView nextResponder:]): Added. More of workaround.
3967 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
3968 will create a new kill ring entry.
3969 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
3970 because it walked a DOM range incorrectly, and instead use the new method that does all the
3971 right stuff on the other side of the bridge.
3972 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
3973 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
3974 (-[WebHTMLView insertText:]): Call the new _insertText.
3976 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
3977 Updated the list to include a few methods it didn't before.
3979 2004-09-06 John Sullivan <sullivan@apple.com>
3983 - put preference keys in a private header file so Safari can use them for Managed Preferences
3985 * WebView.subproj/WebPreferenceKeysPrivate.h:
3986 new Private header file, includes the #defines for NSUserDefaults preference keys
3988 * WebView.subproj/WebPreferences.m:
3989 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
3991 * WebKit.pbproj/project.pbxproj:
3992 updated for new file
3994 2004-09-03 Chris Blumenberg <cblu@apple.com>
3996 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
4000 * Plugins.subproj/WebNetscapePluginPackage.m:
4001 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
4003 2004-09-03 Chris Blumenberg <cblu@apple.com>
4006 <rdar://problem/3788328> assertion failure when moving an image
4007 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
4009 Reviewed by NOBODY (OOPS!).
4011 * DOM.subproj/WebDOMOperations.m:
4012 (-[DOMDocument _createRangeWithNode:]): new, convenience
4013 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
4014 * DOM.subproj/WebDOMOperationsPrivate.h:
4015 * WebView.subproj/WebHTMLView.m:
4016 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): set the selection to the image when starting the drag. This allows "move selection" to work and this matches NSText's behavior
4020 2004-09-02 Richard Williamson <rjw@apple.com>
4022 Support for patterns in <canvas>.
4023 (These changes attempt to create a CGImageRef from a WebImageRenderer that
4024 is used by the pattern drawing function.)
4028 * WebCoreSupport.subproj/WebImageRenderer.h:
4029 * WebCoreSupport.subproj/WebImageRenderer.m:
4030 (-[WebImageRenderer dealloc]):
4031 (-[WebImageRenderer finalize]):
4032 (-[WebImageRenderer imageRef]):
4034 * WebView.subproj/WebPDFView.h:
4035 * WebView.subproj/WebPDFView.m:
4037 2004-09-01 Chris Blumenberg <cblu@apple.com>
4039 Fixed deployment build failure.
4041 * WebView.subproj/WebDefaultContextMenuDelegate.m:
4042 (-[WebDefaultUIDelegate menuItemWithTag:]):
4044 2004-08-31 Chris Blumenberg <cblu@apple.com>
4047 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
4048 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
4050 Reviewed by kocienda.
4052 * English.lproj/Localizable.strings:
4053 * WebView.subproj/WebDefaultContextMenuDelegate.m:
4054 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
4055 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
4056 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
4057 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
4058 * WebView.subproj/WebDefaultUIDelegate.h:
4059 * WebView.subproj/WebHTMLView.m:
4060 (-[WebHTMLView _isSelectionMisspelled]): new
4061 (-[WebHTMLView _guessesForMisspelledSelection]): new
4062 (-[WebHTMLView _changeSpellingFromMenu:]): new
4063 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
4064 (-[WebHTMLView _learnSpellingFromMenu:]): new
4065 * WebView.subproj/WebHTMLViewPrivate.h:
4066 * WebView.subproj/WebUIDelegate.h:
4068 2004-08-31 Darin Adler <darin@apple.com>
4070 - fixed B&I build failure
4072 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
4073 Work around unwanted warning by adding a cast.
4075 2004-08-27 Maciej Stachowiak <mjs@apple.com>
4079 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
4081 Because we will stop parsing when there is a pending redirection,
4082 avoid setting one if no navigation would actually take place
4083 because the number of steps is out of range.
4085 * WebCoreSupport.subproj/WebBridge.m:
4086 (-[WebBridge canGoBackOrForward:]):
4088 2004-08-30 Darin Adler <darin@apple.com>
4092 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
4094 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
4095 Call [super clearCaches].
4097 2004-08-30 Darin Adler <darin@apple.com>