1 2005-01-27 Chris Blumenberg <cblu@apple.com>
3 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
7 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
9 2005-01-26 Darin Adler <darin@apple.com>
13 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
15 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
16 draw the white "no document" background if it's NO. This fixes things for frames with no document.
17 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
18 for frames with just an image.
19 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
20 document view if it implements it. This fixes things for frames with plain text.
22 2005-01-25 John Sullivan <sullivan@apple.com>
26 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
27 in WebKit needs "Look Up in Dictionary" item
29 * WebView.subproj/WebDefaultContextMenuDelegate.m:
30 (localizedMenuTitleFromAppKit):
31 return English string in the case where AppKit bundle is found but doesn't
32 contain the expected string. This case will be hit by people testing with
34 (-[WebDefaultUIDelegate menuItemWithTag:]):
35 create Look Up in Dictionary item
36 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
37 add Look Up in Dictionary item and separator
38 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
41 * WebView.subproj/WebHTMLView.m:
42 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
43 new method, handles bringing up the Dictionary window. Includes FIXMEs
44 for a couple of the known loose ends.
45 (-[WebHTMLView validateUserInterfaceItem:]):
46 handle Look Up in Dictionary item like the other new items
48 * WebView.subproj/WebUIDelegatePrivate.h:
49 added SPI constant for Look Up in Dictionary menu item
51 2005-01-24 Maciej Stachowiak <mjs@apple.com>
53 Fixed Panther build (missing ifdef)
55 * WebView.subproj/WebDefaultContextMenuDelegate.m:
57 2005-01-24 John Sullivan <sullivan@apple.com>
61 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
63 * WebView.subproj/WebDefaultContextMenuDelegate.m:
64 (localizedMenuTitleFromAppKit):
65 new function, gets localized string from AppKit so we can avoid adding localized
66 strings to WebKit at this late date in Tiger. Returns the non-localized English
67 string if we can't find the localized string in AppKit.
68 (-[WebDefaultUIDelegate menuItemWithTag:]):
69 handle the two new menu items by tag name
70 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
71 add menu items for Search in Google and Search in Spotlight to selected-text menu item
72 for the noneditable case
73 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
74 add menu items for Search in Google and Search in Spotlight to selected-text menu item
77 * WebView.subproj/WebHTMLView.m:
78 (-[WebHTMLView _searchWithGoogleFromMenu:]):
79 implement this menu item action method, using same method name and implementation as NSTextView
80 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
81 implement this menu item action method, using same basic implementation as NSTextView
82 (-[WebHTMLView validateUserInterfaceItem:]):
83 validate new menu items
85 * WebView.subproj/WebUIDelegatePrivate.h:
86 define new tags for new menu items
88 * English.lproj/StringsNotToBeLocalized.txt:
89 updated for these changes
91 2005-01-24 Darin Adler <darin@apple.com>
93 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
94 Do the same check as for view types, so the representation types are consistent.
96 2005-01-24 Darin Adler <darin@apple.com>
100 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
102 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
103 few loose ends here: strikethrough and underline.
105 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
107 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
108 Leave the PDF-handling classes out of the dictionary if the secret default is set.
110 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
112 2005-01-20 Darin Adler <darin@apple.com>
114 Reviewed by Kristin Forster.
116 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
118 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
119 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
120 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
121 to the event. Tested with both Contribute and CarbonWeb.
123 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
125 2005-01-20 Richard Williamson <rjw@apple.com>
127 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
129 The AppKit's font substitution API doesn't match font traits!
130 It only find fonts that contain the appropriate glyphs. This
131 patch attempts to find the best variation within a family.
135 * WebCoreSupport.subproj/WebTextRenderer.m:
136 (-[WebTextRenderer _substituteFontForString:families:]):
140 2005-01-20 Ken Kocienda <kocienda@apple.com>
146 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
148 * WebView.subproj/WebHTMLView.m:
149 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
150 with FIXME's in them for make bigger and make smaller with real working code.
152 2005-01-19 David Hyatt <hyatt@apple.com>
154 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
159 * WebCoreSupport.subproj/WebTextRenderer.m:
160 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
162 2005-01-19 Darin Adler <darin@apple.com>
166 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
168 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
170 2005-01-19 Chris Blumenberg <cblu@apple.com>
172 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
176 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
177 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
179 2005-01-17 Darin Adler <darin@apple.com>
181 * DOM.subproj/DOMPrivate.h: Check in generated file.
183 2005-01-17 Darin Adler <darin@apple.com>
185 Reviewed by John and Richard.
187 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
189 * WebView.subproj/WebFrameViewPrivate.h: Added.
190 * WebView.subproj/WebFrameView.m:
191 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
192 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
193 the work is compatible with our header and footer code.
194 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
195 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
196 the NSPrintOperation, and also the PDFKit SPI works this way.
198 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
199 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
200 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
202 * WebView.subproj/WebPDFView.m:
203 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
204 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
206 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
208 2005-01-13 Chris Blumenberg <cblu@apple.com>
210 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
212 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
213 which allows plug-ins create an auxiliary MIME types file.
217 * Plugins.subproj/WebBasePluginPackage.h:
218 * Plugins.subproj/WebBasePluginPackage.m:
219 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
220 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
221 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
222 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
223 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
224 * Plugins.subproj/WebNetscapePluginPackage.h:
225 * Plugins.subproj/WebNetscapePluginPackage.m:
226 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
227 * Plugins.subproj/WebPluginPackage.m:
228 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
229 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
231 2005-01-13 Richard Williamson <rjw@apple.com>
233 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
237 * Plugins.subproj/WebJavaPlugIn.h:
241 2005-01-13 Vicki Murley <vicki@apple.com>
245 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
247 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
249 2005-01-13 Richard Williamson <rjw@apple.com>
251 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
253 Draw last image after animation loop terminates. (We
254 were drawing the image at index+1, which doesn't exist!)
258 * WebCoreSupport.subproj/WebImageData.m:
259 (-[WebImageData _nextFrame:]):
261 2005-01-13 Richard Williamson <rjw@apple.com>
263 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
265 Turn off use of new CGContextStrokeLineSegments API. We should
266 turn back on when 3952944 is fixed.
270 * WebCoreSupport.subproj/WebTextRenderer.m:
271 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
273 2005-01-13 Chris Blumenberg <cblu@apple.com>
275 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
279 * Misc.subproj/WebNSViewExtras.m:
280 (-[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
281 * WebCoreSupport.subproj/WebImageRendererFactory.m:
282 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
283 * WebView.subproj/WebImageView.m:
284 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
286 2005-01-10 Maciej Stachowiak <mjs@apple.com>
290 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
292 * WebCoreSupport.subproj/WebTextRenderer.m:
293 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
294 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
295 .5 pixels, since the rendering engine can't give a fractional pixel offset.
296 * WebView.subproj/WebHTMLView.m:
297 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
298 clause attributes. Others that NSText supports are unimplemented for now.
299 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
300 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
301 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
302 and ranges out of an attributed string.
303 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
304 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
307 2005-01-12 Darin Adler <darin@apple.com>
311 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
313 * WebView.subproj/WebHTMLView.m:
314 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
315 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
316 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
317 optimize by only doing layouts you really need, and doing them later on is safe because we
318 know we don't need to draw any of the views behind us.
319 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
320 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
322 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
323 _layoutIfNeeded method above. Otherwise unchanged.
324 (-[NSView _web_layoutIfNeededRecursive]): Added.
326 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
327 on the scroll view when changing the frame to no longer be in "draws background" mode. This
328 is needed because the frame manages the "draws background" mode of the scroll view. It won't
329 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
330 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
331 This was hidden before because the HTML view was filling with transparent color, which blew away
332 the fill that was done by NSScrollView.
334 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
336 * WebCoreSupport.subproj/WebImageData.m:
337 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
338 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
339 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
340 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
341 all the renderers because the process of stopping modifies the active sets.
343 2005-01-12 Richard Williamson <rjw@apple.com>
345 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
347 Get loop count from file properties, not image properties.
349 Reviewed by Ken Kocienda.
351 * WebCoreSupport.subproj/WebImageData.h:
352 * WebCoreSupport.subproj/WebImageData.m:
353 (-[WebImageData _commonTermination]):
354 (-[WebImageData fileProperties]):
355 (-[WebImageData _floatProperty:type:at:]):
356 (-[WebImageData _floatFileProperty:type:]):
357 (-[WebImageData _repetitionCount]):
359 2005-01-11 Chris Blumenberg <cblu@apple.com>
361 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
365 * Plugins.subproj/WebBaseNetscapePluginView.m:
366 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
368 2005-01-11 John Sullivan <sullivan@apple.com>
372 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
373 (e.g. <strike>, underline)
375 * WebCoreSupport.subproj/WebTextRenderer.m:
376 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
377 This bottleneck routine for drawing a line was setting the linewidth to 0 when
378 the graphics context was not drawing to the screen. Thus, no lines. Now links
379 are underlined when printing from Safari (as well as Mail).
381 2005-01-11 Richard Williamson <rjw@apple.com>
383 Fixed 3949145. CG has a much faster API for drawing lines.
384 Switched over to that new API (CGContextStrokeLineSegments).
386 Reviewed by John Sullivan.
388 * WebCoreSupport.subproj/WebTextRenderer.m:
389 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
391 2005-01-10 Chris Blumenberg <cblu@apple.com>
393 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
395 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.
399 * WebView.subproj/WebHTMLView.m:
400 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
401 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
405 2005-01-06 David Harrison <harrison@apple.com>
407 Reviewed by Dave Hyatt
409 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
411 * WebView.subproj/WebHTMLView.m:
412 (-[WebHTMLView accessibilityFocusedUIElement]):
413 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
415 2005-01-05 Chris Blumenberg <cblu@apple.com>
417 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
421 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
423 2005-01-04 Chris Blumenberg <cblu@apple.com>
425 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
427 Reviewed by kocienda.
429 * WebView.subproj/WebHTMLView.m:
430 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
432 2004-12-21 Maciej Stachowiak <mjs@apple.com>
436 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
438 Implement a security check on name frame visbility. This is the
439 same rule as mozilla. You can only target frames by name if you
440 are in the same window, have the same domain as the frame or an
441 ancestor, or if it's a top level window have the same domain as
444 * WebView.subproj/WebFrame.m:
445 (-[WebFrame _shouldAllowAccessFrom:]):
446 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
447 (-[WebFrame findFrameNamed:]):
448 * WebView.subproj/WebFramePrivate.h:
449 * WebView.subproj/WebView.m:
450 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
451 (-[WebView _findFrameNamed:sourceFrame:]):
452 * WebView.subproj/WebViewPrivate.h:
458 2004-12-20 Richard Williamson <rjw@apple.com>
460 Add call to new API. ImageIO deprecated some older (although
461 quite new!) API. This caused us to fail to build on 337 or later.
463 Developers wanting to build on older versions of Tiger must define
464 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
468 * WebCoreSupport.subproj/WebImageData.m:
469 (-[WebImageData propertiesAtIndex:]):
471 2004-12-20 Richard Williamson <rjw@apple.com>
473 Don't call Tiger SPI on Panther.
477 * WebCoreSupport.subproj/WebTextRendererFactory.m:
478 (+[WebTextRendererFactory createSharedFactory]):
480 2004-12-20 Richard Williamson <rjw@apple.com>
482 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
484 Enable mutli-tier font caching. We should see a performance boost with this
489 * WebCoreSupport.subproj/WebTextRendererFactory.m:
490 (+[WebTextRendererFactory createSharedFactory]):
492 2004-12-20 Richard Williamson <rjw@apple.com>
494 Fix image decoding to separately decode image meta data from actual image bits. I
495 incorrectly consolidated decode of meta data and image bits resulting in a huge
496 performance regression.
498 Double size of WebCore cache on lower end machines. On the PLT run on machines with
499 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
500 Upping the lower limit of the cache size ensure that no images are evicted (this
501 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
505 * WebCoreSupport.subproj/WebImageData.h:
506 * WebCoreSupport.subproj/WebImageData.m:
507 (+[WebImageData initialize]):
508 (-[WebImageData _commonTermination]):
509 (-[WebImageData _invalidateImages]):
510 (-[WebImageData _invalidateImageProperties]):
511 (-[WebImageData imageAtIndex:]):
512 (-[WebImageData propertiesAtIndex:]):
513 (-[WebImageData _cacheImages:allImages:]):
514 (-[WebImageData decodeData:isComplete:callback:]):
515 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
516 * WebView.subproj/WebPreferences.m:
517 (+[WebPreferences initialize]):
519 2004-12-20 Richard Williamson <rjw@apple.com>
521 Fixed build problem caused by change to ImageIO API.
525 * WebCoreSupport.subproj/WebImageData.m:
527 2004-12-19 Darin Adler <darin@apple.com>
531 - some garbage collection fixes
533 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
534 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
536 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
537 get rid of an unnecessary use of WebNSRetainCFRelease.
538 * Misc.subproj/WebNSURLExtras.m:
539 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
540 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
541 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
542 work correctly under GC.
543 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
544 Use WebCFAutorelease here; the old code would not work correctly under GC.
546 2004-12-18 Chris Blumenberg <cblu@apple.com>
548 Fixed: <rdar://problem/3766915> PDF content needs search to work
550 Reviewed by kevin, john.
552 * WebView.subproj/WebPDFView.m:
553 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
554 (-[WebPDFView takeFindStringFromSelection:]): new
555 (-[WebPDFView jumpToSelection:]): new
556 (-[WebPDFView validateUserInterfaceItem:]): new
558 2004-12-17 Richard Williamson <rjw@apple.com>
560 Make image decoding as lazy as possible for non threaded case; in some cases
561 can avoid unnecessary decoding work.
565 * WebCoreSupport.subproj/WebImageData.h:
566 * WebCoreSupport.subproj/WebImageData.m:
567 (-[WebImageData imageAtIndex:]):
568 (-[WebImageData propertiesAtIndex:]):
569 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
571 2004-12-16 John Sullivan <sullivan@apple.com>
575 One of the assertions from my previous checkin fired, so
576 I made this code more robust.
578 * WebCoreSupport.subproj/WebBridge.m:
579 (-[WebBridge _preferences]):
580 new helper method, returns global preferences if webView is nil,
581 otherwise returns webView's preferences
582 (-[WebBridge getObjectCacheSize]):
583 use new helper method, remove now-unnecessary assert
584 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
587 2004-12-16 John Sullivan <sullivan@apple.com>
591 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
592 - cleaned up some calls to +[WebPreferences standardPreferences] that should
593 have been using -[WebView preferences]
595 This adds a (currently SPI-only) new feature that shows the URL of the link
596 under the mouse in a toolTip. I tested this in Safari, but we're adding this
597 feature for Mail, and Safari won't use it (unless of course you know the
598 magic defaults command)
600 * Plugins.subproj/WebBaseNetscapePluginView.m:
601 (-[WebBaseNetscapePluginView start]):
602 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
604 * WebCoreSupport.subproj/WebBridge.m:
605 (-[WebBridge getObjectCacheSize]):
607 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
610 * WebView.subproj/WebBaseResourceHandleDelegate.m:
611 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
614 * WebView.subproj/WebFrame.m:
615 (-[WebFrame _transitionToCommitted:]):
617 (-[WebFrame _loadItem:withLoadType:]):
620 * WebView.subproj/WebHTMLViewInternal.h:
621 private struct now keeps ivar for cached value of showsURLsInToolTips
622 so it doesn't have look it up in preferences a zillion times
624 * WebView.subproj/WebHTMLView.m:
625 (-[WebHTMLView _updateMouseoverWithEvent:]):
626 if private->showsURLsInToolTips is true, set the toolTip from the URL.
627 Fall back to showing the title attribute in case some element has a title
628 attribute but no URL.
629 (-[WebHTMLView _mayStartDragAtEventLocation:]):
630 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
631 (-[WebHTMLView _resetCachedWebPreferences:]):
632 get a fresh value for private->showsURLsInToolTips
633 (-[WebHTMLView initWithFrame:]):
634 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
635 (-[WebHTMLView _handleStyleKeyEquivalent:]):
636 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
638 * WebView.subproj/WebPreferenceKeysPrivate.h:
639 added WebKitShowsURLsInToolTipsPreferenceKey
641 * WebView.subproj/WebPreferences.m:
642 (+[WebPreferences initialize]):
643 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
644 (-[WebPreferences showsURLsInToolTips]):
645 return WebKitShowsURLsInToolTipsPreferenceKey value
646 (-[WebPreferences setShowsURLsInToolTips:]):
647 set WebKitShowsURLsInToolTipsPreferenceKey value
649 * WebView.subproj/WebPreferencesPrivate.h:
650 add declarations for showsURLsInToolTips and setter
652 * WebView.subproj/WebTextView.m:
653 (-[WebTextView _preferences]):
654 new helper method that gets preferences from webView if there is a webView,
655 otherwise gets global preferences
656 (-[WebTextView setFixedWidthFont]):
657 use new helper method rather than always using global preferences
658 (-[WebTextView initWithFrame:]):
659 observe WebPreferencesChangedNotification instead of unnecessarily general
660 NSUserDefaultsChangedNotification
662 2004-12-14 John Sullivan <sullivan@apple.com>
666 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
667 in the menu, no specific action names
669 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
670 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
672 * WebView.subproj/WebHTMLView.m:
673 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
674 use WebUndoActionSetColor when dragging color swatch
675 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
676 new WebUndoAction parameter, passed across bridge
677 (-[WebHTMLView _toggleBold]):
678 use WebUndoActionSetFont
679 (-[WebHTMLView _toggleItalic]):
680 use WebUndoActionSetFont
681 (-[WebHTMLView pasteFont:]):
682 use WebUndoActionPasteFont
683 (-[WebHTMLView changeFont:]):
684 use WebUndoActionSetFont
685 (-[WebHTMLView changeAttributes:]):
686 use WebUndoActionChangeAttributes
687 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
688 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
689 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
690 now calls _undoActionFromColorPanelWithSelector
691 (-[WebHTMLView changeColor:]):
692 use WebUndoActionSetColor
693 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
694 new WebUndoAction parameter, passed through
695 (-[WebHTMLView alignCenter:]):
696 use WebUndoActionCenter
697 (-[WebHTMLView alignJustified:]):
698 use WebUndoActionJustify
699 (-[WebHTMLView alignLeft:]):
700 use WebUndoActionAlignLeft
701 (-[WebHTMLView alignRight:]):
702 use WebUndoActionAlignRight
703 (-[WebHTMLView subscript:]):
704 use WebUndoActionAlignSubscript
705 (-[WebHTMLView superscript:]):
706 use WebUndoActionAlignSuperscript
707 (-[WebHTMLView unscript:]):
708 use WebUndoActionAlignUnscript
709 (-[WebHTMLView underline:]):
710 use WebUndoActionAlignUnderline
712 * WebView.subproj/WebView.m:
713 (-[WebView setTypingStyle:]):
714 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
715 (-[WebView applyStyle:]):
718 2004-12-14 Richard Williamson <rjw@apple.com>
720 Helper method to get URL of plugin view.
724 * Misc.subproj/WebNSViewExtras.m:
725 (-[NSView _webViewURL]):
727 2004-12-14 Vicki Murley <vicki@apple.com>
731 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
733 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
734 file as well, as requested in the bug report
736 2004-12-13 Maciej Stachowiak <mjs@apple.com>
740 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
742 * WebView.subproj/WebHTMLView.m:
743 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
744 we end up with no marked text, since that case fails and is unnecessary.
746 2004-12-14 John Sullivan <sullivan@apple.com>
750 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
751 no specific action names
753 * WebCoreSupport.subproj/WebBridge.m:
754 (-[WebBridge nameForUndoAction:]):
755 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
756 handled new "unspecified" case as a fallback
758 2004-12-13 Richard Williamson <rjw@apple.com>
760 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
764 * Plugins.subproj/WebJavaPlugIn.h:
766 2004-12-13 John Sullivan <sullivan@apple.com>
770 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
771 that can't be cancelled.
773 The proper fix for this would be to change the class of the NSPanel in the nib file.
774 But since this would require a localization change, I did a run-time hack instead.
775 I'll file a bug about fixing this when we're out of localization freeze.
777 * Panels.subproj/WebAuthenticationPanel.m:
778 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
779 new method, creates a new panel that is identical to the original one except that
780 it's our subclass, and moves all the subviews of the original panel into the new one.
781 (-[WebAuthenticationPanel loadNib]):
782 call replacePanelWithSubclassHack
783 (-[NonBlockingPanel _blocksActionWhenModal:]):
784 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
785 when one of these panels/sheets is on-screen
787 2004-12-10 Richard Williamson <rjw@apple.com>
789 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
790 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
792 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
796 * WebCoreSupport.subproj/WebImageData.h:
797 * WebCoreSupport.subproj/WebImageData.m:
798 (-[WebImageData setIsPDF:]):
799 (-[WebImageData isPDF]):
800 (-[WebImageData dealloc]):
801 (-[WebImageData decodeData:isComplete:callback:]):
802 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
803 (-[WebImageData size]):
804 (-[WebImageData animate]):
805 (-[WebImageData _createPDFWithData:]):
806 (-[WebImageData _PDFDocumentRef]):
807 (-[WebImageData _PDFDrawInContext:]):
808 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
809 * WebCoreSupport.subproj/WebImageRenderer.h:
810 * WebCoreSupport.subproj/WebImageRenderer.m:
811 (-[WebImageRenderer size]):
812 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
813 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
816 2004-12-10 John Sullivan <sullivan@apple.com>
820 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
821 if there's no default printer set
823 * WebView.subproj/WebHTMLView.m:
824 (-[WebHTMLView beginDocument]):
825 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
826 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
827 However, it turns out that if there's an exception in [super beginDocument], then endDocument
828 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
829 exiting the "printing mode" in beginDocument when it occurs.
831 2004-12-09 Richard Williamson <rjw@apple.com>
833 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
835 Restrict our support for animated images to GIF. We used to
836 use presence of more than one image in a resource to determine
837 if an image should be animated. This caused us to animate icns!
838 If we ever support any other animated image formats we'll have
843 * WebCoreSupport.subproj/WebImageData.h:
844 * WebCoreSupport.subproj/WebImageData.m:
845 (-[WebImageData shouldAnimate]):
846 * WebCoreSupport.subproj/WebImageRenderer.m:
847 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
849 2004-12-09 Richard Williamson <rjw@apple.com>
851 Make WebPluginDatabase.h private (Dashboard needs SPI).
853 * WebKit.pbproj/project.pbxproj:
857 2004-12-09 Chris Blumenberg <cblu@apple.com>
859 Workaround for this exception being raised during download:
860 [WebDownload connection:willStopBufferingData:]: selector not recognized
864 * Misc.subproj/WebDownload.m:
865 (-[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.
867 2004-12-08 Richard Williamson <rjw@apple.com>
869 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
870 Account for scaling correctly when taking into account progressively
873 Also added implementation of repetition count for animated GIF images.
874 Also replaced strings with new constants from CFImageProperties.h
876 Also fixed possible problem with -(NSSize)size implementation,
877 relevant to Panther only.
881 * WebCoreSupport.subproj/WebImageData.m:
882 (-[WebImageData _floatProperty:type:at:]):
883 (-[WebImageData _frameDurationAt:]):
884 (-[WebImageData _repetitionCount]):
885 * WebCoreSupport.subproj/WebImageRenderer.m:
886 (-[WebImageRenderer size]):
888 2004-12-08 Chris Blumenberg <cblu@apple.com>
890 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
891 since 3828925 has been fixed.
895 * Plugins.subproj/WebNetscapePluginPackage.m:
896 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
897 * Plugins.subproj/npapi.m: removed NPN wrappers
898 * WebKit.exp: removed symbols
900 2004-12-08 Ken Kocienda <kocienda@apple.com>
904 * WebView.subproj/WebHTMLView.m:
905 (-[WebHTMLView drawRect:]): Work around for this bug:
906 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
907 The reason for the workaround is that this method is called explicitly from the code
908 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
909 This code change uses the passed-in rect when the count is zero.
911 2004-12-07 Administrator <cblu@apple.com>
914 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
918 * Misc.subproj/WebNSURLExtras.h:
919 * Misc.subproj/WebNSURLExtras.m:
920 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
921 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
923 2004-12-07 Richard Williamson <rjw@apple.com>
925 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
929 * WebCoreSupport.subproj/WebImageRenderer.m:
930 (-[WebImageRenderer size]):
932 2004-12-07 Richard Williamson <rjw@apple.com>
934 Support threaded image decoding on machines w/ >= 2 CPUs.
936 Reviewed by Maciej and Chris.
938 * Misc.subproj/WebKitSystemBits.h:
939 * Misc.subproj/WebKitSystemBits.m:
940 (WebSystemMainMemory):
942 * WebCoreSupport.subproj/WebImageData.h:
943 * WebCoreSupport.subproj/WebImageData.m:
944 (+[WebImageData initialize]):
945 (-[WebImageData init]):
946 (-[WebImageData _commonTermination]):
947 (-[WebImageData dealloc]):
948 (-[WebImageData _invalidateImages]):
949 (-[WebImageData _imageSourceOptions]):
950 (-[WebImageData imageAtIndex:]):
951 (-[WebImageData propertiesAtIndex:]):
952 (-[WebImageData _createImages]):
953 (-[WebImageData decodeData:isComplete:callback:]):
954 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
956 (-[WebImageData tileInRect:fromPoint:context:]):
957 (-[WebImageData isNull]):
958 (-[WebImageData size]):
959 (-[WebImageData _frameDurationAt:]):
960 (-[WebImageData _frameDuration]):
961 (+[WebImageData stopAnimationsInView:]):
962 (-[WebImageData addAnimatingRenderer:inView:]):
963 (-[WebImageData removeAnimatingRenderer:]):
964 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
965 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
966 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
967 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
968 (-[WebImageDecodeItem finalize]):
969 (-[WebImageDecodeItem dealloc]):
970 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
971 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
972 (decoderNotifications):
973 (+[WebImageDecoder initialize]):
974 (+[WebImageDecoder notifyMainThread]):
975 (+[WebImageDecoder sharedDecoder]):
976 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
977 (+[WebImageDecoder imageDecodesPending]):
978 (+[WebImageDecoder decodeComplete:status:]):
979 (-[WebImageDecoder init]):
980 (-[WebImageDecoder dealloc]):
981 (-[WebImageDecoder finalize]):
982 (-[WebImageDecoder removeItem]):
983 (-[WebImageDecoder addItem:]):
984 (-[WebImageDecoder decodeItem:]):
986 (startDecoderThread):
987 * WebCoreSupport.subproj/WebImageRenderer.m:
988 (-[WebImageRenderer initWithData:MIMEType:]):
989 (-[WebImageRenderer initWithContentsOfFile:]):
990 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
991 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
992 * WebKit.pbproj/project.pbxproj:
993 * WebView.subproj/WebImageRepresentation.m:
994 (-[WebImageRepresentation receivedData:withDataSource:]):
995 (-[WebImageRepresentation receivedError:withDataSource:]):
996 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
998 2004-12-07 Chris Blumenberg <cblu@apple.com>
1000 Fix for performance regression.
1004 * WebCoreSupport.subproj/WebBridge.m:
1005 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
1007 2004-12-07 Chris Blumenberg <cblu@apple.com>
1009 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
1013 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1014 * WebView.subproj/WebMainResourceClient.m:
1015 (-[WebMainResourceClient addData:]): call super so it buffers the data
1017 2004-12-06 Richard Williamson <rjw@apple.com>
1019 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
1020 and resolve why metrics have changed for Courier. This may be caused by changes in
1025 * WebCoreSupport.subproj/WebTextRenderer.m:
1026 (_AppkitGetCGRenderingMode):
1030 2004-12-06 Chris Blumenberg <cblu@apple.com>
1032 Forgot to commit copied header.
1034 * DOM.subproj/DOMPrivate.h:
1036 2004-12-06 Chris Blumenberg <cblu@apple.com>
1038 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
1042 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1043 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1044 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
1045 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
1046 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
1047 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
1048 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
1049 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
1050 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
1051 * WebView.subproj/WebDataSource.m:
1052 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
1053 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
1054 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
1055 * WebView.subproj/WebDataSourcePrivate.h:
1056 * WebView.subproj/WebMainResourceClient.m:
1057 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
1058 (-[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
1059 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
1060 * WebView.subproj/WebResource.m:
1061 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
1062 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
1063 * WebView.subproj/WebResourcePrivate.h:
1065 2004-12-06 Richard Williamson <rjw@apple.com>
1067 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
1069 Use CGFontRef direction when both getting font metrics and drawing
1070 glyphs, instead on depending on [NSFont set].
1074 * WebCoreSupport.subproj/WebTextRenderer.m:
1078 2004-12-06 Ken Kocienda <kocienda@apple.com>
1080 Reviewed by Harrison
1084 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
1086 * WebView.subproj/WebHTMLView.m:
1087 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
1090 2004-12-04 Darin Adler <darin@apple.com>
1094 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
1095 - 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
1096 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
1098 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
1099 * WebView.subproj/WebHTMLView.m:
1100 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
1101 tracking number of 0, which means no existing tracking number.
1102 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
1103 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
1104 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1105 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
1106 field since that field is set up too early in the mouse down event handling process.
1107 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
1109 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
1111 * WebCoreSupport.subproj/WebBridge.m:
1112 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1113 Changed code around so that it won't try to create a WebResource when the load fails.
1115 - moved next/previous links into private structure with the rest of WebFrame fields
1116 (We have a rule against putting new fields into obejcts that are part of our public API.)
1118 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
1119 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
1120 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
1121 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
1122 (-[WebFrame _removeChild:]): Ditto.
1123 (-[WebFrame _nextFrameWithWrap:]): Ditto.
1124 (-[WebFrame _previousFrameWithWrap:]): Ditto.
1126 2004-12-04 Chris Blumenberg <cblu@apple.com>
1129 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1130 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1131 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
1132 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
1134 Reviewed by darin, rjw, kocienda.
1136 * WebCoreSupport.subproj/WebBridge.m:
1137 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
1138 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1139 * WebCoreSupport.subproj/WebSubresourceClient.m:
1140 (-[WebSubresourceClient didFinishLoading]):
1141 * WebView.subproj/WebFrame.m:
1142 (-[WebFrame _opened]):
1143 (-[WebFrame _internalLoadDelegate]):
1144 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
1145 * WebView.subproj/WebFrameInternal.h:
1147 2004-12-04 Darin Adler <darin@apple.com>
1151 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1153 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
1154 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
1155 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
1157 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
1161 2004-12-03 Ken Kocienda <kocienda@apple.com>
1165 Roll out some recent changes by Chris that caused a performance regression.
1166 Fix is in hand, but it is a little risky this close to a submission. So,
1167 we have decided to roll back the change with the regression and roll in
1168 the new code after we submit.
1170 * WebCoreSupport.subproj/WebBridge.m:
1171 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
1172 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1173 * WebCoreSupport.subproj/WebSubresourceClient.m:
1174 (-[WebSubresourceClient didFinishLoading]):
1175 * WebView.subproj/WebFrame.m:
1176 (-[WebFrame _opened]):
1177 (-[WebFrame _internalLoadDelegate]):
1178 * WebView.subproj/WebFrameInternal.h:
1180 2004-12-02 Richard Williamson <rjw@apple.com>
1182 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
1184 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
1185 the b/f cache won't incorrectly trash the previous state when restoring.
1189 * WebView.subproj/WebFrame.m:
1190 (-[WebFrame _setState:]):
1192 2004-12-02 Ken Kocienda <kocienda@apple.com>
1196 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
1197 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
1199 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
1200 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
1201 did a conversion of the passed-in point to the document view's coordinate space, whereas
1202 editableDOMRangeForPoint: did not. Now it does.
1204 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
1205 attempts to work around this problem (unsuccessfully), and actually manages to block the
1206 real fix (which needs to be in WebKit).
1208 * WebView.subproj/WebView.m:
1209 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
1211 2004-12-02 Richard Williamson <rjw@apple.com>
1213 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
1215 We have a hack to replace Times with Times New Roman if we fail
1216 to setup Times. If we then fail to setup Times New Roman we
1217 don't attempt to further fallback to the system font. Added
1218 that additional fallback.
1222 * WebCoreSupport.subproj/WebTextRenderer.m:
1223 (+[WebTextRenderer webFallbackFontFamily]):
1224 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1226 2004-12-02 Richard Williamson <rjw@apple.com>
1228 Fixed build problem on Tiger8A821. Private macro and function
1229 we were using have been deprecated,
1233 * WebCoreSupport.subproj/WebTextRenderer.m:
1234 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1236 2004-12-01 Chris Blumenberg <cblu@apple.com>
1238 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
1239 Also improved and cleaned-up the plug-in stream termination code.
1243 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1244 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1245 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
1246 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
1247 (-[WebBaseNetscapePluginStream errorForReason:]): new
1248 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
1249 (-[WebBaseNetscapePluginStream setMIMEType:]): new
1250 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
1251 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
1252 (-[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
1253 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
1254 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
1255 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
1256 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
1257 * Plugins.subproj/WebBaseNetscapePluginView.m:
1258 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
1259 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1260 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
1261 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
1262 * Plugins.subproj/WebNetscapePluginStream.m:
1263 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
1264 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
1265 (-[WebNetscapePluginConnectionDelegate isDone]): new
1266 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
1267 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
1269 2004-12-01 Kevin Decker <kdecker@apple.com>
1271 Reviewed by Harrison.
1273 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
1275 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
1277 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
1278 * WebView.subproj/WebFrame.m:
1279 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
1280 (-[WebFrame _removeChild:]): ditto
1281 (-[WebFrame _nextSibling]): just return the pointer now
1282 (-[WebFrame _previousSibling]): ditto
1284 2004-11-30 Chris Blumenberg <cblu@apple.com>
1287 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1288 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1292 * WebCoreSupport.subproj/WebBridge.m:
1293 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
1294 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
1295 * WebCoreSupport.subproj/WebSubresourceClient.m:
1296 (-[WebSubresourceClient didFinishLoading]): call renamed method
1297 * WebView.subproj/WebFrame.m:
1298 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
1299 (-[WebFrame _internalLoadDelegate]):
1300 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
1301 * WebView.subproj/WebFrameInternal.h:
1303 2004-11-29 Darin Adler <darin@apple.com>
1307 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
1308 without first checking if it's implemented
1310 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
1311 Implemented. Calls floatValue on the scroller.
1313 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1315 2004-11-23 Chris Blumenberg <cblu@apple.com>
1317 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
1321 * Misc.subproj/WebIconDatabase.h:
1322 * Misc.subproj/WebIconDatabase.m:
1323 (-[WebIconDatabase init]): don't create dictionaries if disabled
1324 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
1325 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
1326 (-[WebIconDatabase retainIconForURL:]): return if disabled
1327 (-[WebIconDatabase releaseIconForURL:]): ditto
1328 (-[WebIconDatabase delayDatabaseCleanup]): ditto
1329 (-[WebIconDatabase allowDatabaseCleanup]): ditto
1330 (-[WebIconDatabase _isEnabled]): new
1331 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
1332 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
1333 (-[WebIconDatabase _setIconURL:forURL:]): ditto
1334 (-[WebIconDatabase _createFileDatabase]): tweak
1335 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
1336 * Misc.subproj/WebIconDatabasePrivate.h:
1337 * Misc.subproj/WebIconLoader.m:
1338 * WebView.subproj/WebDataSource.m:
1339 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
1340 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
1342 2004-11-22 David Hyatt <hyatt@apple.com>
1344 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
1348 * WebCoreSupport.subproj/WebBridge.m:
1349 (-[WebBridge getObjectCacheSize]):
1351 2004-11-22 Richard Williamson <rjw@apple.com>
1353 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
1355 John found this problem and suggested the fix.
1357 Reviewed by John Louch.
1359 * WebView.subproj/WebView.m:
1360 (-[WebView setPreferences:]):
1362 2004-11-22 Ken Kocienda <kocienda@apple.com>
1364 Reviewed by Harrison
1366 * WebCoreSupport.subproj/WebBridge.m:
1367 (-[WebBridge canPaste]): Call WebView _canPaste.
1368 * WebView.subproj/WebView.m:
1369 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
1370 answers right now. Returns NO otherwise.
1371 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
1373 2004-11-22 Maciej Stachowiak <mjs@apple.com>
1375 Back out the window closing fix, it seems to be causing crashes.
1377 * WebView.subproj/WebFrame.m:
1378 (-[WebFrame _detachFromParent]):
1380 2004-11-20 Maciej Stachowiak <mjs@apple.com>
1384 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
1386 * Misc.subproj/WebNSURLExtras.h:
1387 * Misc.subproj/WebNSURLExtras.m:
1388 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
1389 string is already in user-visible form (i.e. converting it to an
1390 NSURL and then back via _web_userVisibleString would not change
1393 2004-11-19 Maciej Stachowiak <mjs@apple.com>
1397 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
1399 * WebView.subproj/WebFrame.m:
1400 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
1401 to make window and tab closing more responsive - this way the deallocation happens
1402 after the windoow or tab appears to close.
1406 2004-11-19 Chris Blumenberg <cblu@apple.com>
1408 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
1412 * Plugins.subproj/WebBaseNetscapePluginView.m:
1413 (-[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
1415 2004-11-19 Ken Kocienda <kocienda@apple.com>
1417 Reviewed by Harrison
1421 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
1423 * WebCoreSupport.subproj/WebBridge.m:
1424 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
1425 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
1427 (-[WebBridge respondToChangedSelection]): Ditto.
1428 * WebView.subproj/WebView.m:
1429 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
1430 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
1431 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
1432 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
1434 2004-11-18 John Sullivan <sullivan@apple.com>
1438 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
1439 parsing, reading and writing is faster
1441 * History.subproj/WebHistory.m:
1442 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
1443 convert dictionary to binary data before saving
1445 2004-11-18 Chris Blumenberg <cblu@apple.com>
1447 * WebView.subproj/WebHTMLRepresentation.m:
1448 (-[WebHTMLRepresentation currentForm]): removed stray ";"
1450 2004-11-18 Chris Blumenberg <cblu@apple.com>
1452 Fixed development build failure.
1454 * Misc.subproj/WebIconDatabase.m:
1455 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
1457 2004-11-18 Chris Blumenberg <cblu@apple.com>
1459 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
1461 Reviewed by sullivan.
1463 * Misc.subproj/WebIconDatabase.m:
1464 (+[WebIconDatabase sharedIconDatabase]): added timing code
1465 (-[WebIconDatabase _clearDictionaries]): new
1466 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1467 (-[WebIconDatabase _updateFileDatabase]): fixed comment
1468 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1469 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
1470 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
1472 2004-11-17 Richard Williamson <rjw@apple.com>
1474 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
1476 Correctly account for scaled image size and clipping.
1480 * WebCoreSupport.subproj/WebImageData.h:
1481 * WebCoreSupport.subproj/WebImageData.m:
1482 * WebCoreSupport.subproj/WebImageRenderer.m:
1483 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1485 2004-11-17 Maciej Stachowiak <mjs@apple.com>
1487 Reviewed by Richard.
1489 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
1492 * Misc.subproj/WebNSURLExtras.m:
1493 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
1494 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
1495 check for localhost, no longer needed.
1497 2004-11-17 Richard Williamson <rjw@apple.com>
1499 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
1501 and added call to SPI for
1503 <rdar://problem/3884448> WebKit should turn on CG local font cache
1505 currently disabled until a Tiger build shows up with the SPI.
1507 Reviewed by David Harrison.
1509 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1510 (+[WebTextRendererFactory createSharedFactory]):
1512 2004-11-17 Richard Williamson <rjw@apple.com>
1514 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
1515 Fixed <rdar://problem/3884088> Crash terminating image load
1517 Also added code to turn off color correction for images created
1518 via CGImageSources. This code is currently disabled because CG
1519 can't change the color space of images loaded progressively.
1520 Further, according to Dave Hayward, CG will no longer attempt
1521 to color correct images that don't have embedded profiles as of
1526 * WebCoreSupport.subproj/WebImageData.m:
1527 (-[WebImageData _commonTermination]):
1528 (-[WebImageData dealloc]):
1529 (-[WebImageData _invalidateImageProperties]):
1530 (-[WebImageData imageAtIndex:]):
1531 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1532 (-[WebImageData propertiesAtIndex:]):
1534 2004-11-16 Chris Blumenberg <cblu@apple.com>
1536 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
1540 * WebView.subproj/WebPDFView.m:
1541 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
1542 (-[WebPDFView menuForEvent:]): use the PDFView subview
1544 2004-11-15 Chris Blumenberg <cblu@apple.com>
1546 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
1550 * WebKit.pbproj/project.pbxproj:
1551 * WebView.subproj/WebPDFRepresentation.m:
1552 (+[WebPDFRepresentation PDFDocumentClass]): new
1553 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
1554 * WebView.subproj/WebPDFView.h:
1555 * WebView.subproj/WebPDFView.m:
1556 (+[WebPDFView PDFKitBundle]): new
1557 (+[WebPDFView PDFViewClass]): new
1558 (-[WebPDFView initWithFrame:]): create a PDFView subview
1559 (-[WebPDFView dealloc]): release the PDFView subview
1560 (-[WebPDFView PDFSubview]): new
1562 2004-11-15 Chris Blumenberg <cblu@apple.com>
1564 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
1568 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
1570 2004-11-15 Richard Williamson <rjw@apple.com>
1572 Fixed missing retain of image property data.
1576 * WebCoreSupport.subproj/WebImageData.h:
1577 * WebCoreSupport.subproj/WebImageData.m:
1578 (-[WebImageData dealloc]):
1579 (-[WebImageData _invalidateImages]):
1580 (-[WebImageData imageAtIndex:]):
1581 (-[WebImageData propertiesAtIndex:]):
1582 (-[WebImageData _frameDuration]):
1584 2004-11-15 Richard Williamson <rjw@apple.com>
1586 Cache image properties and frame durations.
1587 Create NSImage and TIFF representations from CGImage, lazily, as needed for
1588 dragging and element info dictionary.
1592 * WebCoreSupport.subproj/WebImageData.h:
1593 * WebCoreSupport.subproj/WebImageData.m:
1594 (-[WebImageData dealloc]):
1595 (-[WebImageData size]):
1596 (-[WebImageData propertiesAtIndex:]):
1597 (-[WebImageData _frameDurationAt:]):
1598 (-[WebImageData _frameDuration]):
1599 * WebCoreSupport.subproj/WebImageRenderer.h:
1600 * WebCoreSupport.subproj/WebImageRenderer.m:
1601 (-[WebImageRenderer dealloc]):
1602 (-[WebImageRenderer TIFFRepresentation]):
1603 (-[WebImageRenderer image]):
1605 2004-11-14 Maciej Stachowiak <mjs@apple.com>
1609 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
1611 * Misc.subproj/WebIconDatabase.m:
1612 (-[WebIconDatabase init]):
1613 (-[WebIconDatabase _setIconURL:forURL:]):
1614 (-[WebIconDatabase _retainIconForIconURLString:]):
1615 (-[WebIconDatabase _releaseIconForIconURLString:]):
1616 (-[WebIconDatabase _retainFutureIconForURL:]):
1617 (-[WebIconDatabase _releaseFutureIconForURL:]):
1618 * Misc.subproj/WebIconDatabasePrivate.h:
1620 2004-11-15 John Sullivan <sullivan@apple.com>
1624 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
1626 * WebView.subproj/WebArchive.m:
1627 (-[WebArchive _propertyListRepresentation]):
1628 the array holding the subresources was not released after use, oops!
1630 2004-11-12 Chris Blumenberg <cblu@apple.com>
1632 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
1636 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1637 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
1641 2004-11-11 Richard Williamson <rjw@apple.com>
1643 Report actual size (not partial size) but use partial size
1648 * WebCoreSupport.subproj/WebImageData.h:
1649 * WebCoreSupport.subproj/WebImageData.m:
1650 (-[WebImageData size]):
1652 2004-11-11 Darin Adler <darin@apple.com>
1656 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
1657 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
1658 with a subsequent change to WebCore.
1660 * WebCoreSupport.subproj/WebBridge.m:
1661 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
1663 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
1664 (_getPostSmartSet): Ditto.
1666 * WebView.subproj/WebHTMLView.m:
1667 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
1668 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
1669 Set firstResponderAtMouseDownTime to the first responder.
1670 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
1671 the mouseDown event.
1672 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
1673 firstResponderAtMouseDownTime field.
1674 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
1675 and _wasFirstResponderAtMouseDownTime method.
1677 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1679 2004-11-11 Richard Williamson <rjw@apple.com>
1683 Work-around to minimize impact of 3876764. Cache frame durations
1684 after first call. So we'll still leak 1K for each animated
1685 image, but that's better than 1K each time the frame is drawn!
1686 * WebCoreSupport.subproj/WebImageData.h:
1687 * WebCoreSupport.subproj/WebImageData.m:
1688 (-[WebImageData _frameDuration]):
1690 Simplified animation cleanup code. Fixed leak due to
1691 incorrect key passed to CFDictionaryRemoveValue.
1693 (+[WebImageData stopAnimationsInView:]):
1694 (-[WebImageData addAnimatingRenderer:inView:]):
1695 (-[WebImageData removeAnimatingRenderer:]):
1696 (-[WebImageData _stopAnimation]):
1698 2004-11-11 Darin Adler <darin@apple.com>
1702 - 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
1704 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
1705 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
1706 using the passed-in rectangle.
1708 2004-11-11 Richard Williamson <rjw@apple.com>
1710 Work-arounds to make new ImageIO code work correctly. Still
1711 disabled for now. Requires at least Tiger 300. Testing does
1712 show a 3% improvement in PLT tests! That's huge!
1716 * WebCoreSupport.subproj/WebImageData.m:
1717 (-[WebImageData imageAtIndex:]):
1718 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1719 (-[WebImageData isNull]):
1721 2004-11-10 Chris Blumenberg <cblu@apple.com>
1723 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
1727 * Misc.subproj/WebFileDatabase.m:
1728 (-[WebFileDatabase objectForKey:]): added logging code
1729 * Misc.subproj/WebIconDatabase.m:
1730 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
1731 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
1732 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
1734 2004-11-09 David Hyatt <hyatt@apple.com>
1736 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
1737 loading large local files.
1741 * WebCoreSupport.subproj/WebBridge.m:
1742 (-[WebBridge tokenizerProcessedData]):
1743 * WebView.subproj/WebDataSource.m:
1744 (-[WebDataSource _receivedMainResourceError:complete:]):
1745 (-[WebDataSource isLoading]):
1747 2004-11-09 Richard Williamson <rjw@apple.com>
1749 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
1751 Add "text/pdf" as an acceptable PDF MIME type.
1755 * WebView.subproj/WebDataSource.m:
1756 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1757 * WebView.subproj/WebFrameView.m:
1758 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1760 2004-11-08 Chris Blumenberg <cblu@apple.com>
1762 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
1766 * WebCoreSupport.subproj/WebBridge.m:
1767 (-[WebBridge control:textView:shouldHandleEvent:]): new
1768 * WebView.subproj/WebFormDelegate.h:
1769 * WebView.subproj/WebFormDelegate.m:
1770 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
1772 2004-11-05 Chris Blumenberg <cblu@apple.com>
1774 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
1776 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
1778 2004-11-05 Chris Blumenberg <cblu@apple.com>
1780 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
1784 * WebCoreSupport.subproj/WebBridge.m:
1785 (_getPreSmartSet): copied from AppKit
1786 (_getPostSmartSet): ditto
1787 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
1789 2004-11-05 Richard Williamson <rjw@apple.com>
1791 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
1793 Reviewed by Maciej (a long time ago).
1795 * WebView.subproj/WebFrame.m:
1796 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1798 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
1800 As suggested in the bug, the fix is to actually call
1801 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
1802 exporting the symbol.
1806 * Carbon.subproj/CarbonUtils.m:
1808 * Carbon.subproj/HIWebView.m:
1809 * WebKit.pbproj/project.pbxproj:
1813 2004-11-05 Darin Adler <darin@apple.com>
1817 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
1819 * WebView.subproj/WebHTMLView.m:
1820 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
1821 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
1822 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
1823 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
1824 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1826 2004-11-04 David Hyatt <hyatt@apple.com>
1828 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
1830 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
1831 totally bogus in both CG and AppKit.
1835 * WebCoreSupport.subproj/WebTextRenderer.m:
1836 (-[WebTextRenderer xHeight]):
1837 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
1838 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
1839 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1840 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
1841 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
1843 2004-11-02 Maciej Stachowiak <mjs@apple.com>
1845 Reviewed by Dave Hyatt (when I originally coded it).
1847 Redid WebKit part of fix for:
1849 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1851 * WebView.subproj/WebHTMLView.m:
1852 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1853 and translate to screen coordinates.
1855 2004-11-02 John Sullivan <sullivan@apple.com>
1859 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
1860 very large bookmarks menu, so I cached this one NSFont object.
1862 * Misc.subproj/WebStringTruncator.m:
1864 new function, caches the font used when no font is specified
1865 (+[WebStringTruncator centerTruncateString:toWidth:]):
1868 2004-11-02 Ken Kocienda <kocienda@apple.com>
1872 WebCore now implements a command to insert a block in response to typing a return key, and
1873 some names were improved in the course of this work.
1875 * WebView.subproj/WebHTMLView.m:
1876 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
1877 (-[WebHTMLView insertLineBreak:]): New method.
1878 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
1879 * WebView.subproj/WebView.m:
1883 2004-10-29 Chris Blumenberg <cblu@apple.com>
1885 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
1887 2004-10-29 Darin Adler <darin@apple.com>
1889 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
1891 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
1892 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
1893 report to match the contents of the file.
1895 2004-10-27 Ken Kocienda <kocienda@apple.com>
1899 Added new SPI for Mail so it can get the behavior it needs when the user hits
1900 the return key with the selection in quoted content.
1902 * WebView.subproj/WebView.m
1903 * WebView.subproj/WebViewPrivate.h
1905 2004-10-26 Chris Blumenberg <cblu@apple.com>
1907 Fixed exception that Darin encountered in Mail.
1911 * Plugins.subproj/WebPluginController.m:
1912 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
1914 2004-10-25 Chris Blumenberg <cblu@apple.com>
1916 Darin made an internal notification have the Web prefix.
1920 * Plugins.subproj/WebBaseNetscapePluginView.m:
1921 (-[WebBaseNetscapePluginView addWindowObservers]):
1922 (-[WebBaseNetscapePluginView removeWindowObservers]):
1923 (ConsoleConnectionChangeNotifyProc):
1925 2004-10-25 John Sullivan <sullivan@apple.com>
1929 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
1930 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
1932 * History.subproj/WebHistoryItem.m:
1933 removed notificationsSuppressed ivar from private data object
1934 (-[WebHistoryItem setAlternateTitle:]):
1935 remove notificationsSuppressed guard
1936 (-[WebHistoryItem setURLString:]):
1938 (-[WebHistoryItem setOriginalURLString:]):
1940 (-[WebHistoryItem setTitle:]):
1942 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
1944 (-[WebHistoryItem setNotificationsSuppressed:]):
1946 (-[WebHistoryItem notificationsSuppressed]):
1949 * History.subproj/WebHistoryItemPrivate.h:
1950 removed notificationsSuppressed and setNotificationsSuppressed
1952 2004-10-22 Chris Blumenberg <cblu@apple.com>
1954 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
1958 * WebView.subproj/WebFrameView.m:
1959 (+[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
1963 2004-10-22 Ken Kocienda <kocienda@apple.com>
1967 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
1969 2004-10-21 Darin Adler <darin@apple.com>
1973 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
1975 * WebCoreSupport.subproj/WebImageRenderer.m:
1976 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
1977 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
1978 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
1979 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
1980 or retains self and returns self.
1982 2004-10-20 Darin Adler <darin@apple.com>
1986 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
1988 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
1989 rather than NSImage and contain a pointer to a WebInternalImage.
1990 * WebCoreSupport.subproj/WebImageRenderer.m:
1991 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
1992 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
1993 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
1994 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
1995 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
1996 (-[WebImageRenderer image]): Added. Returns pointer to image.
1997 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
1998 (-[WebImageRenderer TIFFRepresentation]): Ditto.
1999 (-[WebImageRenderer frameCount]): Ditto.
2000 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
2001 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
2002 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
2003 (-[WebImageRenderer size]): Ditto.
2004 (-[WebImageRenderer resize:]): Ditto.
2005 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
2006 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
2007 (-[WebImageRenderer stopAnimation]): Ditto.
2008 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
2009 (-[WebImageRenderer isNull]): Ditto.
2010 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
2011 (-[WebImageRenderer increaseUseCount]): Ditto.
2012 (-[WebImageRenderer decreaseUseCount]): Ditto.
2013 (-[WebImageRenderer flushRasterCache]): Ditto.
2014 (-[WebImageRenderer imageRef]): Ditto.
2015 (-[WebImageRenderer copyWithZone:]): Ditto.
2017 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
2018 Update for slight changes to WebImageRenderer API.
2019 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2020 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
2021 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
2022 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
2023 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
2024 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
2026 2004-10-20 Chris Blumenberg <cblu@apple.com>
2028 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
2032 * Plugins.subproj/WebBasePluginPackage.h:
2033 * Plugins.subproj/WebBasePluginPackage.m:
2034 (-[WebBasePluginPackage isJavaPlugIn]): new
2035 * Plugins.subproj/WebPluginDatabase.m:
2036 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
2038 2004-10-20 Chris Blumenberg <cblu@apple.com>
2041 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
2042 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
2046 * Plugins.subproj/WebPluginDocumentView.m:
2047 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
2048 * Plugins.subproj/WebPluginPackage.m:
2049 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
2050 * WebCoreSupport.subproj/WebBridge.m:
2051 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
2052 * WebKit.pbproj/project.pbxproj:
2054 2004-10-19 Vicki Murley <vicki@apple.com>
2056 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
2058 * WebKit.pbproj/project.pbxproj:
2060 2004-10-19 Darin Adler <darin@apple.com>
2062 Change suggested by Maciej during code review.
2064 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
2065 of private memory, and doesn't require an initialization function.
2066 (+[WebTextRenderer initialize]): Removed initialization.
2068 2004-10-19 Darin Adler <darin@apple.com>
2072 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
2073 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
2074 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
2076 * WebCoreSupport.subproj/WebTextRenderer.m:
2077 (isSpace): Merged in isAlternateSpace, never used.
2078 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
2079 since globals start out zeroed automatically.
2080 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
2081 Also removed explicit compare with 1; check for non-zero is just fine.
2082 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
2083 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
2084 the underlying problem.
2085 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
2086 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
2087 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
2088 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
2089 \n and non-break spaces.
2090 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
2091 are handled by the CG case.
2092 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
2093 would not handle cases with '\n' coming across from WebCore properly.
2095 2004-10-18 Chris Blumenberg <cblu@apple.com>
2097 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
2101 * Plugins.subproj/WebNetscapePluginPackage.m:
2102 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
2104 2004-10-18 Chris Blumenberg <cblu@apple.com>
2106 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
2108 2004-10-18 John Sullivan <sullivan@apple.com>
2112 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
2114 * WebView.subproj/WebHTMLView.m:
2115 (-[WebHTMLView doCommandBySelector:]):
2116 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
2120 2004-10-14 Ken Kocienda <kocienda@apple.com>
2124 Final fix for these bugs:
2126 <rdar://problem/3806306> HTML editing puts spaces at start of line
2127 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
2129 This change sets some new CSS properties that have been added to WebCore to
2130 enable whitespace-handling and line-breaking features that make WebView work
2131 more like a text editor.
2133 * WebView.subproj/WebHTMLRepresentation.m:
2134 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
2135 CSS properties when loading an HTML document into a WebView that is editable.
2136 * WebView.subproj/WebView.m:
2137 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
2138 document being displayed.
2140 2004-10-14 Richard Williamson <rjw@apple.com>
2142 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
2144 Careful testing shows a small performance gain on very large text files.
2145 I saw large variations in timings, but taking the lowest PLT timing
2146 with and without this change showed a 0.9% gain. Note the cvs-base showed
2147 no improvement. The improvement was for the large page attached to the
2152 * WebCoreSupport.subproj/WebTextRenderer.m:
2153 (setupRoundingHackCharacterTable):
2154 (isRoundingHackCharacter):
2155 (+[WebTextRenderer initialize]):
2157 2004-10-14 Ken Kocienda <kocienda@apple.com>
2161 Fix build breakage. These three functions need to return the values from their
2162 calls to WebCGColorSpaceCreateXXX.
2164 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2165 (-[WebGraphicsBridge createRGBColorSpace])
2166 (-[WebGraphicsBridge createGrayColorSpace])
2167 (-[WebGraphicsBridge createCMYKColorSpace])
2169 2004-10-13 Richard Williamson <rjw@apple.com>
2171 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
2173 In practice I saw NO improvement in performance. Although,
2174 special-case tests could possibly show improvement. Anyway,
2175 the changes don't hurt performance.
2179 * Misc.subproj/WebNSURLExtras.m:
2180 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
2182 2004-10-13 Maciej Stachowiak <mjs@apple.com>
2186 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
2188 - I fixed this by turning off all colormatching for WebKit
2189 content. We might turn it back on later. For now, it's possible to
2190 turn it on temporarily by defining COLORMATCH_EVERYTHING.
2192 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2193 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
2194 (-[WebGraphicsBridge additionalPatternPhase]):
2195 (-[WebGraphicsBridge createRGBColorSpace]):
2196 (-[WebGraphicsBridge createGrayColorSpace]):
2197 (-[WebGraphicsBridge createCMYKColorSpace]):
2198 * WebCoreSupport.subproj/WebImageData.m:
2199 * WebCoreSupport.subproj/WebImageRenderer.h:
2200 * WebCoreSupport.subproj/WebImageRenderer.m:
2201 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
2202 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2203 (-[WebImageRenderer _adjustColorSpace]):
2204 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
2205 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2207 (WebCGColorSpaceCreateRGB):
2208 (WebCGColorSpaceCreateGray):
2209 (WebCGColorSpaceCreateCMYK):
2212 2004-10-13 Richard Williamson <rjw@apple.com>
2214 Don't fill background with transparency unless debug flag
2219 * WebView.subproj/WebHTMLView.m:
2220 (-[WebHTMLView drawRect:]):
2222 2004-10-12 Richard Williamson <rjw@apple.com>
2224 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
2228 * WebView.subproj/WebHTMLView.m:
2229 (-[WebHTMLView _transparentBackground]):
2230 (-[WebHTMLView _setTransparentBackground:]):
2231 (-[WebHTMLView drawRect:]):
2232 * WebView.subproj/WebHTMLViewInternal.h:
2233 * WebView.subproj/WebHTMLViewPrivate.h:
2235 2004-10-11 Chris Blumenberg <cblu@apple.com>
2237 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
2241 * WebView.subproj/WebHTMLView.m:
2242 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
2243 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
2244 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
2245 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
2247 2004-10-11 Darin Adler <darin@apple.com>
2251 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
2253 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
2255 2004-10-11 Darin Adler <darin@apple.com>
2259 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
2261 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
2262 Do nothing if filename is the same as before.
2264 2004-10-11 Ken Kocienda <kocienda@apple.com>
2268 * WebView.subproj/WebHTMLView.m:
2269 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
2270 now takes an affinity: caretRectAtNode:offset:affinity:.
2272 2004-10-10 Ken Kocienda <kocienda@apple.com>
2278 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
2280 * WebView.subproj/WebHTMLView.m:
2281 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
2282 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
2283 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
2284 else do what we did before.
2285 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
2286 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
2288 2004-10-11 Darin Adler <darin@apple.com>
2292 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
2294 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
2295 Don't send an event through WebCore if it has already been through once.
2297 2004-10-10 John Sullivan <sullivan@apple.com>
2301 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
2303 * WebView.subproj/WebMainResourceClient.m:
2304 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
2305 add retain/autorelease to the request returned from call to super. In this case, the return value
2306 was being dealloc'ed before being returned.
2308 2004-10-09 Chris Blumenberg <cblu@apple.com>
2311 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
2312 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
2316 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2317 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
2318 * Plugins.subproj/WebNetscapePluginStream.m:
2319 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2320 * WebView.subproj/WebFramePrivate.h:
2321 * WebView.subproj/WebFrameView.m:
2322 (-[WebFrameView _bridge]): new
2323 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
2324 (-[WebFrameView scrollToEndOfDocument:]): ditto
2325 (-[WebFrameView _pageVertically:]): ditto
2326 (-[WebFrameView _pageHorizontally:]): ditto
2327 (-[WebFrameView _scrollLineVertically:]): ditto
2328 (-[WebFrameView _scrollLineHorizontally:]): ditto
2329 * WebView.subproj/WebHTMLView.m:
2330 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
2334 2004-10-05 Chris Blumenberg <cblu@apple.com>
2336 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
2340 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2341 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
2342 * Plugins.subproj/WebNetscapePluginStream.m:
2343 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2345 2004-10-05 John Sullivan <sullivan@apple.com>
2347 * WebCoreSupport.subproj/WebBridge.m:
2348 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2349 initialize "arguments" var to nil to satisfy compiler on deployment build.
2351 2004-10-05 Richard Williamson <rjw@apple.com>
2353 Fixed <rdar://problem/3825442> first click lost for Dashboard
2354 Allow dashboard to force acceptsFirstMouse:
2358 * WebView.subproj/WebHTMLView.m:
2359 (-[WebHTMLView acceptsFirstMouse:]):
2360 * WebView.subproj/WebView.m:
2361 (-[WebView _dashboardBehavior:]):
2362 * WebView.subproj/WebViewInternal.h:
2363 * WebView.subproj/WebViewPrivate.h:
2365 * WebCoreSupport.subproj/WebImageRenderer.h:
2368 2004-10-05 Chris Blumenberg <cblu@apple.com>
2370 Fixed: <rdar://problem/3760920> Need to record plugin view instances
2374 * Plugins.subproj/WebPluginController.h:
2375 * Plugins.subproj/WebPluginController.m:
2376 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
2377 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
2378 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
2379 * Plugins.subproj/WebPluginDocumentView.m:
2380 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
2381 * WebCoreSupport.subproj/WebBridge.m:
2382 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
2383 * WebView.subproj/WebFrame.m:
2384 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
2385 * WebView.subproj/WebHTMLView.m:
2386 (-[WebHTMLView addSubview:]): ditto
2388 2004-10-05 David Hyatt <hyatt@apple.com>
2390 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
2391 needs to try to fill gaps around text.
2393 Reviewed by kocienda
2395 * WebCoreSupport.subproj/WebTextRenderer.m:
2396 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
2397 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2399 2004-10-05 Darin Adler <darin@apple.com>
2403 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
2405 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
2406 setFlipped that fixes the problem, even though I don't know why.
2408 2004-10-04 Darin Adler <darin@apple.com>
2412 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
2414 * WebView.subproj/WebHTMLView.m:
2415 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
2416 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
2417 this to have the word "start" in it.
2418 (-[WebHTMLView copyFont:]): Updated for name change.
2420 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2422 2004-10-04 Chris Blumenberg <cblu@apple.com>
2424 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
2426 2004-10-04 Chris Blumenberg <cblu@apple.com>
2428 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
2429 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
2433 * Plugins.subproj/WebBaseNetscapePluginStream.h:
2434 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
2435 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
2436 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
2437 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2438 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
2439 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
2440 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
2441 (-[WebBaseNetscapePluginStream finalize]): added assert
2442 (-[WebBaseNetscapePluginStream setRequestURL:]): new
2443 (-[WebBaseNetscapePluginStream setResponseURL:]): new
2444 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
2445 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
2446 (-[WebBaseNetscapePluginStream destroyStream]):
2447 - do nothing if terminated
2448 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
2449 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
2450 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
2451 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
2452 * Plugins.subproj/WebBaseNetscapePluginView.h:
2453 - added observingFrameLoadNotification boolean
2454 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
2455 * Plugins.subproj/WebBaseNetscapePluginView.m:
2456 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
2457 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
2458 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
2459 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
2460 (-[WebBaseNetscapePluginView dealloc]): ditto
2461 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
2462 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2463 - call NPP_URLNotify depending of value of sendNotification
2464 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
2465 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
2466 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
2467 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
2468 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
2469 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
2470 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
2471 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
2472 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
2473 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
2474 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
2475 (-[WebPluginRequest sendNotification]): new
2476 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
2477 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2478 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
2479 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2480 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
2481 * Plugins.subproj/WebNetscapePluginStream.h:
2482 * Plugins.subproj/WebNetscapePluginStream.m:
2483 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
2484 (-[WebNetscapePluginStream dealloc]): use renamed ivar
2485 (-[WebNetscapePluginStream start]): ditto
2486 * WebView.subproj/WebFrame.m:
2487 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
2488 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
2489 (-[WebFrame _loadItem:withLoadType:]): ditto
2490 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
2491 (-[WebFrame _setInternalLoadDelegate:]): new
2492 (-[WebFrame _internalLoadDelegate]): new
2493 * WebView.subproj/WebFrameInternal.h:
2494 * WebView.subproj/WebFramePrivate.h:
2496 2004-10-04 Chris Blumenberg <cblu@apple.com>
2498 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
2500 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.
2504 * Plugins.subproj/WebBaseNetscapePluginView.m:
2505 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
2507 2004-10-04 Darin Adler <darin@apple.com>
2511 - fixed a potential storage leak when we turn on CGImageRef image rendering
2513 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
2514 by adding [super dealloc], but leak was not real yet because the code is commented out.
2516 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
2517 Copy/paste style does not set color in Mail compose window
2519 * WebView.subproj/WebHTMLView.m:
2520 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
2521 For now I haven't added any yet.
2522 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
2523 (-[WebHTMLView _shadowAsString:]): Ditto.
2524 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
2526 2004-09-30 Richard Williamson <rjw@apple.com>
2528 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
2530 Also changed dashboard regions dictionary to use "control"
2531 for scroller region label, instead of "scroller, per
2536 * Plugins.subproj/npruntime.h:
2537 * WebView.subproj/WebView.m:
2538 (-[WebView _addScrollerDashboardRegions:from:]):
2540 2004-09-30 Chris Blumenberg <cblu@apple.com>
2542 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
2546 * Plugins.subproj/WebBaseNetscapePluginView.m:
2547 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
2548 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
2549 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
2550 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
2551 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
2552 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
2554 2004-09-30 Chris Blumenberg <cblu@apple.com>
2556 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
2560 * Plugins.subproj/WebBaseNetscapePluginView.h:
2561 * Plugins.subproj/WebBaseNetscapePluginView.m:
2562 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
2563 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
2564 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
2565 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
2567 2004-09-30 Chris Blumenberg <cblu@apple.com>
2570 Assertion failure when loading standalone netscape plug-in content.
2571 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
2575 * Misc.subproj/WebKitErrors.m: removed deprecated method
2576 * Misc.subproj/WebKitErrorsPrivate.h:
2577 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2578 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
2579 * Plugins.subproj/WebPluginDocumentView.h:
2580 * Plugins.subproj/WebPluginDocumentView.m:
2581 (-[WebPluginDocumentView dealloc]): remove retained plug-in
2582 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
2584 2004-09-29 Chris Blumenberg <cblu@apple.com>
2587 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
2588 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
2592 * History.subproj/WebHistoryItem.m:
2593 * Misc.subproj/WebNSViewExtras.h:
2594 * Misc.subproj/WebNSViewExtras.m:
2595 (-[NSView _web_firstResponderCausesFocusDisplay]):
2596 (-[NSView _webView]):
2598 (-[NSView _bridge]):
2599 (-[NSView _dataSource]):
2600 * Plugins.subproj/WebBasePluginPackage.h:
2601 * Plugins.subproj/WebBasePluginPackage.m:
2602 (-[WebBasePluginPackage hash]):
2603 (-[WebBasePluginPackage isQuickTimePlugIn]):
2604 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2605 (-[WebNetscapePluginDocumentView setDataSource:]):
2606 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2607 * Plugins.subproj/WebPluginController.h:
2608 * Plugins.subproj/WebPluginController.m:
2609 (-[WebPluginController initWithDocumentView:]):
2610 (-[WebPluginController addPlugin:]):
2611 (-[WebPluginController destroyAllPlugins]):
2612 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2613 (-[WebPluginController webPlugInContainerShowStatus:]):
2614 (-[WebPluginController webPlugInContainerSelectionColor]):
2615 (-[WebPluginController webFrame]):
2616 * Plugins.subproj/WebPluginDatabase.h:
2617 * Plugins.subproj/WebPluginDatabase.m:
2618 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
2619 (-[WebPluginDatabase refresh]):
2620 (WebPluginDocumentView::while):
2621 * Plugins.subproj/WebPluginDocumentView.h: Added.
2622 * Plugins.subproj/WebPluginDocumentView.m: Added.
2623 (-[WebPluginDocumentView initWithFrame:]):
2624 (-[WebPluginDocumentView dealloc]):
2625 (-[WebPluginDocumentView drawRect:]):
2626 (-[WebPluginDocumentView setDataSource:]):
2627 (-[WebPluginDocumentView setNeedsLayout:]):
2628 (-[WebPluginDocumentView layout]):
2629 (-[WebPluginDocumentView currentWindow]):
2630 (-[WebPluginDocumentView viewWillMoveToWindow:]):
2631 (-[WebPluginDocumentView viewDidMoveToWindow]):
2632 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
2633 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
2634 (-[WebPluginDocumentView receivedData:withDataSource:]):
2635 (-[WebPluginDocumentView receivedError:withDataSource:]):
2636 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
2637 (-[WebPluginDocumentView canProvideDocumentSource]):
2638 (-[WebPluginDocumentView documentSource]):
2639 (-[WebPluginDocumentView title]):
2640 * Plugins.subproj/npapi.m:
2641 (NPN_ReleaseVariantValue):
2642 (NPN_GetStringIdentifier):
2643 (NPN_GetStringIdentifiers):
2644 (NPN_GetIntIdentifier):
2645 (NPN_IdentifierIsString):
2646 (NPN_UTF8FromIdentifier):
2647 (NPN_IntFromIdentifier):
2650 (NPN_ReleaseObject):
2652 (NPN_InvokeDefault):
2656 (NPN_RemoveProperty):
2661 * WebCoreSupport.subproj/WebBridge.m:
2662 (-[WebBridge frameRequiredForMIMEType:URL:]):
2663 * WebCoreSupport.subproj/WebViewFactory.m:
2665 * WebKit.pbproj/project.pbxproj:
2666 * WebView.subproj/WebDebugDOMNode.m:
2667 * WebView.subproj/WebDocumentInternal.h:
2668 * WebView.subproj/WebHTMLView.m:
2669 (-[WebHTMLView initWithFrame:]):
2670 * WebView.subproj/WebHTMLViewPrivate.h:
2671 * WebView.subproj/WebImageRepresentation.h:
2672 * WebView.subproj/WebRenderNode.m:
2673 * WebView.subproj/WebView.m:
2675 2004-09-29 Richard Williamson <rjw@apple.com>
2677 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
2679 The fix has two parts, 1) make onblur and onfocus work for windows,
2680 and 2), allow the dashboard to override WebKit's special key/non-key
2685 * Plugins.subproj/WebBaseNetscapePluginView.m:
2686 (-[WebBaseNetscapePluginView restartNullEvents]):
2687 * WebView.subproj/WebHTMLView.m:
2688 (-[WebHTMLView addMouseMovedObserver]):
2689 (-[WebHTMLView removeMouseMovedObserver]):
2690 * WebView.subproj/WebView.m:
2691 (-[WebView _dashboardBehavior:]):
2692 * WebView.subproj/WebViewInternal.h:
2693 * WebView.subproj/WebViewPrivate.h:
2695 2004-09-29 Maciej Stachowiak <mjs@apple.com>
2699 - consolidated OS version checks into prefix header
2701 * Misc.subproj/WebFileDatabase.m:
2702 (-[WebFileDatabase _createLRUList:]):
2703 (+[WebFileDatabase _syncLoop:]):
2704 * Misc.subproj/WebKitErrors.m:
2706 * Misc.subproj/WebNSObjectExtras.h:
2707 (WebNSRetainCFRelease):
2708 * Misc.subproj/WebNSPasteboardExtras.m:
2709 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
2710 * Misc.subproj/WebUnicode.m:
2711 (_unicodeDirection):
2712 * WebCoreSupport.subproj/WebImageData.h:
2713 * WebCoreSupport.subproj/WebImageRenderer.h:
2714 * WebCoreSupport.subproj/WebKeyGenerator.h:
2715 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
2717 * WebView.subproj/WebDataSource.m:
2718 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2719 (-[WebDataSource isLoading]):
2720 * WebView.subproj/WebFrameView.m:
2721 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2722 * WebView.subproj/WebHTMLView.m:
2723 * WebView.subproj/WebPDFRepresentation.h:
2724 * WebView.subproj/WebPDFRepresentation.m:
2725 * WebView.subproj/WebPDFView.h:
2726 * WebView.subproj/WebPDFView.m:
2728 2004-09-29 Ken Kocienda <kocienda@apple.com>
2734 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
2736 * WebView.subproj/WebHTMLView.m:
2737 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
2738 bridge function instead of ensureCaretVisible. Now handles caret selections and range
2739 selections correctly.
2741 2004-09-28 Chris Blumenberg <cblu@apple.com>
2743 Added timing code so that Doug can time RTF conversion.
2745 * WebView.subproj/WebHTMLView.m:
2746 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
2747 (-[WebHTMLView _attributeStringFromDOMRange:]):
2749 2004-09-28 Richard Williamson <rjw@apple.com>
2751 <rdar://problem/3817421> add getter for dashboard regions (debugging)
2753 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
2758 * WebCoreSupport.subproj/WebBridge.m:
2759 (-[WebBridge dashboardRegionsChanged:]):
2760 * WebView.subproj/WebView.m:
2761 (-[WebView _setInitiatedDrag:]):
2762 (-[WebView _addScrollerDashboardRegions:from:]):
2763 (-[WebView _addScrollerDashboardRegions:]):
2764 (-[WebView _dashboardRegions]):
2765 * WebView.subproj/WebViewPrivate.h:
2767 2004-09-27 John Sullivan <sullivan@apple.com>
2769 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
2771 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
2772 changed "Remember this password" to "Remember this password in my keychain";
2773 this will need to go through CCC for this week's build.
2775 2004-09-27 Chris Blumenberg <cblu@apple.com>
2777 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
2781 * Plugins.subproj/WebBaseNetscapePluginView.m:
2783 2004-09-27 Chris Blumenberg <cblu@apple.com>
2785 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
2789 * WebView.subproj/WebTextView.m:
2790 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
2792 2004-09-27 John Sullivan <sullivan@apple.com>
2796 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
2797 like Cmd-B while editing rich text
2799 * WebView.subproj/WebHTMLView.m:
2800 (-[WebHTMLView _toggleBold]):
2801 new method, toggles font-weight from "bold" to "normal"
2802 (-[WebHTMLView _toggleItalic]):
2803 new method, toggles font-style from "italic" to "normal"
2804 (-[WebHTMLView _handleStyleKeyEquivalent:]):
2805 new method, if the new preference is set and we're in an editable state, check for standard
2806 key equivalents for toggling styles (just command-B and command-I for now).
2807 (-[WebHTMLView performKeyEquivalent:]):
2808 Moved in file, now calls _handleStyleKeyEquivalent:
2810 * WebView.subproj/WebPreferenceKeysPrivate.h:
2811 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2812 * WebView.subproj/WebPreferences.m:
2813 (+[WebPreferences initialize]):
2814 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
2815 change our minds about this, but this is more guaranteed to be backward-compatible)
2816 (-[WebPreferences respectStandardStyleKeyEquivalents]):
2817 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2818 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
2819 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2821 * WebView.subproj/WebPreferencesPrivate.h:
2822 declare getter and setter
2824 * English.lproj/StringsNotToBeLocalized.txt:
2825 updated for these and other recent changes
2827 2004-09-27 Chris Blumenberg <cblu@apple.com>
2829 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
2833 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2834 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
2836 2004-09-27 Chris Blumenberg <cblu@apple.com>
2838 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2842 * WebView.subproj/WebHTMLView.m:
2843 (-[WebHTMLView _setMouseDownEvent:]): new
2844 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
2845 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2846 (-[WebHTMLView mouseDown:]): ditto
2847 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
2849 2004-09-27 Darin Adler <darin@apple.com>
2851 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
2853 2004-09-24 Chris Blumenberg <cblu@apple.com>
2857 * WebView.subproj/WebHTMLView.m:
2858 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
2862 2004-09-24 Chris Blumenberg <cblu@apple.com>
2864 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2868 * WebView.subproj/WebHTMLView.m:
2869 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
2871 2004-09-24 Ken Kocienda <kocienda@apple.com>
2877 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
2879 We were doing a laughably bad job at preventing edits in documents that were not editable.
2880 This change fixes the specific case of the bug mentioned above, and makes an attempt to
2881 fix similar bugs by checking for whether the view is in editing mode before making edits.
2883 * WebView.subproj/WebHTMLView.m:
2884 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
2885 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
2886 was actually performing a correct check before.
2887 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
2888 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
2889 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
2890 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
2891 (-[WebHTMLView pasteAsPlainText:]): Ditto.
2892 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
2893 (-[WebHTMLView insertNewline:]): Ditto.
2894 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
2895 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
2896 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
2897 (-[WebHTMLView complete:]): Ditto.
2898 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
2899 (-[WebHTMLView ignoreSpelling:]): Ditto.
2900 (-[WebHTMLView yank:]): Bail if !_canEdit.
2901 (-[WebHTMLView yankAndSelect:]): Ditto.
2902 (-[WebHTMLView deleteToMark:]): Ditto.
2903 (-[WebHTMLView swapWithMark:]): Ditto.
2904 (-[WebHTMLView transpose:]): Ditto.
2905 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
2906 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
2907 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
2908 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
2910 2004-09-24 Ken Kocienda <kocienda@apple.com>
2914 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
2916 2004-09-23 Maciej Stachowiak <mjs@apple.com>
2920 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
2922 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
2923 link dragging if the element under the mouse pointer is
2924 editable. This way, you can drag-select starting inside a link.
2926 2004-09-23 John Sullivan <sullivan@apple.com>
2930 - WebKit part of fix for <rdar://problem/3415264>
2931 Default encoding should initially be set to current system encoding
2933 * WebView.subproj/WebPreferences.m:
2934 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
2935 new SPI that sets the initial value of the default text encoding to
2936 be the system encoding, with a special-case conversion of MacRoman->Latin1.
2937 This is not done automatically for WebKit clients for fear of breaking them.
2939 * WebView.subproj/WebPreferencesPrivate.h:
2942 2004-09-23 Darin Adler <darin@apple.com>
2946 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
2948 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
2949 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
2950 while using a button.
2952 * WebView.subproj/WebMainResourceClient.m:
2953 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
2954 for the specific case of "about:blank" even if the defers callbacks flag is true.
2955 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
2956 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
2957 as above. Changed code to return a new request if we get a new request back that is not empty
2958 when the defers callbacks flag is true.
2959 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
2960 URL is one that gives us an empty document, then do the work right away, don't defer it.
2962 2004-09-23 Darin Adler <darin@apple.com>
2964 - fixed B&I builds by checking in generated file
2966 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
2968 2004-09-22 Richard Williamson <rjw@apple.com>
2970 Pass dashboard regions to UI delegate.
2974 * WebCoreSupport.subproj/WebBridge.m:
2975 (-[WebBridge dashboardRegionsChanged:]):
2976 * WebView.subproj/WebUIDelegatePrivate.h:
2977 * copy-webcore-files-to-webkit:
2979 2004-09-22 Chris Blumenberg <cblu@apple.com>
2981 Fixed build that I just broke.
2983 * WebView.subproj/WebHTMLView.m:
2984 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
2986 2004-09-22 Chris Blumenberg <cblu@apple.com>
2988 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
2992 * WebView.subproj/WebHTMLView.m:
2993 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
2995 2004-09-22 Chris Blumenberg <cblu@apple.com>
2998 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
2999 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
3003 * WebCoreSupport.subproj/WebSubresourceClient.m:
3004 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
3005 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3006 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
3008 2004-09-22 Ken Kocienda <kocienda@apple.com>
3012 * WebView.subproj/WebFrameView.m:
3013 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
3014 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
3015 unwanted firstResponder switching.
3016 * WebView.subproj/WebView.m:
3017 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
3019 2004-09-21 Chris Blumenberg <cblu@apple.com
3022 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
3023 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
3027 * WebView.subproj/WebDataSource.m:
3028 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
3029 * WebView.subproj/WebHTMLView.m:
3030 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3031 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
3032 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
3033 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
3034 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3035 (-[WebHTMLView delete:]): call _deleteSelection
3036 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
3037 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3038 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
3039 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
3040 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
3041 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
3042 (-[WebHTMLView transpose:]): pass NO for smartReplace
3043 (-[WebHTMLView _shouldDeleteRange:]): moved
3044 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
3045 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
3046 (-[WebHTMLView _deleteSelection]): new
3047 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
3048 (-[WebHTMLView _canSmartCopyOrDelete]): new
3049 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
3050 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
3051 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
3052 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
3053 * WebView.subproj/WebHTMLViewInternal.h:
3054 * WebView.subproj/WebView.m:
3055 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
3056 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
3057 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
3058 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
3059 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
3061 2004-09-21 John Sullivan <sullivan@apple.com>
3065 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
3066 Option-tab doesn't always work as expected
3068 * WebCoreSupport.subproj/WebBridge.m:
3069 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3070 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
3071 after all; these need to be tested independently to get the option-tab behavior
3074 2004-09-21 John Sullivan <sullivan@apple.com>
3076 * WebView.subproj/WebHTMLView.m:
3077 (-[WebHTMLView doCommandBySelector:]):
3078 Commented out part of previous change; it breaks Mail editing until Mail
3081 2004-09-21 John Sullivan <sullivan@apple.com>
3085 * WebView.subproj/WebHTMLView.m:
3086 (-[WebHTMLView doCommandBySelector:]):
3087 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
3089 2004-09-21 John Sullivan <sullivan@apple.com>
3093 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
3095 * WebView.subproj/WebHTMLView.m:
3096 (-[WebHTMLView doCommandBySelector:]):
3097 Call through to editing delegate. If editing delegate returns YES, don't call super.
3099 * WebView.subproj/WebDefaultEditingDelegate.m:
3100 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
3101 default implementation (which was never called) was returning YES, but it should
3102 return NO to signal that it didn't handle the selector.
3104 2004-09-21 Chris Blumenberg <cblu@apple.com>
3106 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
3110 * Plugins.subproj/WebBaseNetscapePluginView.m:
3111 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
3112 (-[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
3114 2004-09-20 Chris Blumenberg <cblu@apple.com>
3116 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
3118 Reviewed by kocienda.
3120 * WebView.subproj/WebView.m:
3121 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
3123 2004-09-20 Chris Blumenberg <cblu@apple.com>
3125 Changes to implement renamed bridge methods.
3130 * DOM.subproj/WebDOMOperations.m:
3131 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
3132 * WebCoreSupport.subproj/WebBridge.m:
3133 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
3134 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
3136 2004-09-20 Darin Adler <darin@apple.com>
3140 * WebView.subproj/WebFramePrivate.h: Added back.
3141 * WebView.subproj/WebFrameViewPrivate.h: Removed.
3143 2004-09-20 Darin Adler <darin@apple.com>
3147 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
3148 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
3150 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
3151 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
3152 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
3153 * WebView.subproj/WebFrameView.m:
3154 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
3155 (-[WebFrameView _shouldDrawBorder]): Ditto.
3156 (-[WebFrameView _tile]): Ditto.
3157 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
3158 by the code to implement pageDown:.
3159 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
3160 (-[WebFrameView _goBack]): Ditto.
3161 (-[WebFrameView _goForward]): Ditto.
3162 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
3163 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
3164 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
3165 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
3166 vertical method above.
3167 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
3168 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
3169 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
3170 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
3171 (-[WebFrameView scrollPageUp:]): Ditto.
3172 (-[WebFrameView scrollPageDown:]): Ditto.
3173 (-[WebFrameView scrollLineUp:]): Ditto.
3174 (-[WebFrameView scrollLineDown:]): Ditto.
3175 (-[WebFrameView _firstResponderIsControl]): Ditto.
3176 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
3178 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
3180 * WebView.subproj/WebHTMLView.m:
3181 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
3182 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
3183 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3184 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
3185 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3186 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
3187 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
3188 (-[WebHTMLView pageUp:]): Added.
3189 (-[WebHTMLView pageDown:]): Added.
3190 (-[WebHTMLView pageUpAndModifySelection:]): Added.
3191 (-[WebHTMLView pageDownAndModifySelection:]): Added.
3192 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
3193 This fixes the problem with spell checking.
3195 * WebView.subproj/WebImageView.m:
3196 (-[WebImageView webView]): Changed to use _web_parentWebView.
3197 (-[WebImageView menuForEvent:]): Changed to use [self webView].
3198 (-[WebImageView mouseDown:]): Ditto.
3199 (-[WebImageView mouseDragged:]): Ditto.
3200 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
3202 * WebView.subproj/WebTextView.m:
3203 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
3204 (-[WebTextView menuForEvent:]): Ditto.
3205 (-[WebTextView drawPageBorderWithSize:]): Ditto.
3206 (-[WebTextView knowsPageRange:]): Ditto.
3208 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
3209 * WebCoreSupport.subproj/WebBridge.m: Ditto.
3210 * WebKit.pbproj/project.pbxproj: Ditto.
3211 * WebView.subproj/WebFrame.m: Ditto.
3212 * WebView.subproj/WebView.m: Ditto.
3213 * Misc.subproj/WebNSViewExtras.m: Ditto.
3215 2004-09-20 Darin Adler <darin@apple.com>
3219 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
3221 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
3222 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
3226 2004-09-17 Chris Blumenberg <cblu@apple.com>
3229 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
3230 <rdar://problem/3805756> strip attachments before generating RTF
3234 * WebView.subproj/WebHTMLView.m:
3235 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
3237 2004-09-16 Darin Adler <darin@apple.com>
3241 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
3243 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
3244 Check _private for nil before dereferencing it.
3246 2004-09-16 Chris Blumenberg <cblu@apple.com>
3248 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
3252 * WebView.subproj/WebHTMLView.m:
3253 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
3254 * WebView.subproj/WebHTMLViewPrivate.h:
3256 2004-09-15 Darin Adler <darin@apple.com>
3260 - fixed assertion I saw using the font panel
3262 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
3263 Convert color space before trying to get R, G, and B components.
3265 2004-09-15 Chris Blumenberg <cblu@apple.com>
3267 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
3269 Reviewed by kocienda.
3271 * WebView.subproj/WebHTMLView.m:
3272 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
3273 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
3274 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
3276 2004-09-14 Darin Adler <darin@apple.com>
3280 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
3281 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
3283 * WebView.subproj/WebHTMLView.m:
3284 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
3285 (-[WebHTMLView transpose:]): Added.
3287 2004-09-14 Richard Williamson <rjw@apple.com>
3289 1. Add class parameter to object allocation function. This is somewhat redundant, given that
3290 the allocation function is in the class function vector, but people wanted to use the same
3291 allocation function for different classes.
3293 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
3295 3. Add support for a default function on an object. This is a feature that ActiveX supports,
3296 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
3297 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
3298 'Objective-C' bindings.
3300 There bugs are covered by
3302 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
3303 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
3304 <rdar://problem/3674754> Need to implement latest npruntime.h
3308 * Plugins.subproj/WebNetscapePluginPackage.m:
3309 (-[WebNetscapePluginPackage load]):
3310 * Plugins.subproj/WebScriptObject.h:
3311 * Plugins.subproj/npfunctions.h:
3312 * Plugins.subproj/npruntime.h:
3314 2004-09-13 Richard Williamson <rjw@apple.com>
3316 D'oh. How many times can I screw up a simple fix!
3318 * WebCoreSupport.subproj/WebTextRenderer.m:
3319 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3321 2004-09-13 Richard Williamson <rjw@apple.com>
3323 Fixed snafu from 3782533 checkin.
3327 * WebCoreSupport.subproj/WebTextRenderer.m:
3328 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3330 2004-09-12 Chris Blumenberg <cblu@apple.com>
3332 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
3336 * Misc.subproj/WebStringTruncator.h:
3337 * Misc.subproj/WebStringTruncator.m:
3338 (+[WebStringTruncator widthOfString:font:]): new
3340 2004-09-10 Richard Williamson <rjw@apple.com>
3342 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
3344 We were explicitly failing when we encountered deprecated fonts.
3345 (Those with unsupported glyph packings).
3346 Deprecated fonts should only appear on a system that have
3347 stuff migrated from OS 9. Ugh, thats probably why we've never seen
3352 * WebCoreSupport.subproj/WebTextRenderer.m:
3353 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3355 2004-09-10 John Sullivan <sullivan@apple.com>
3359 - added _isFrameSet as a private method, so it can be used in WebBrowser.
3360 This is needed to merge the fix for 3123987 to SUPanNavy.
3362 * WebView.subproj/WebFrame.m:
3363 (-[WebFrame _isFrameSet]):
3366 * WebView.subproj/WebFramePrivate.h:
3369 2004-09-09 Chris Blumenberg <cblu@apple.com>
3371 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
3375 * WebCoreSupport.subproj/WebBridge.m:
3376 (-[WebBridge didFirstLayout]): new
3377 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
3378 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
3379 * WebView.subproj/WebViewPrivate.h:
3381 2004-09-09 Richard Williamson <rjw@apple.com>
3383 Alternate implementation of image rendering. Use CGImageRefs instead
3386 Mostly works, but currently disabled because of issues w/ CG.
3391 * WebCoreSupport.subproj/WebImageData.h: Added.
3392 * WebCoreSupport.subproj/WebImageData.m: Added.
3393 (-[WebImageData _commonTermination]):
3394 (-[WebImageData dealloc]):
3395 (-[WebImageData finalize]):
3396 (-[WebImageData copyWithZone:]):
3397 (-[WebImageData numberOfImages]):
3398 (-[WebImageData currentFrame]):
3399 (-[WebImageData _invalidateImages]):
3400 (-[WebImageData imageAtIndex:]):
3401 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
3403 (-[WebImageData tileInRect:fromPoint:context:]):
3404 (-[WebImageData isNull]):
3405 (-[WebImageData size]):
3406 (-[WebImageData _frameDuration]):
3407 (-[WebImageData _repetitionCount]):
3408 (-[WebImageData isAnimationFinished]):
3409 (+[WebImageData stopAnimationsInView:]):
3410 (-[WebImageData addAnimatingRenderer:inView:]):
3411 (-[WebImageData removeAnimatingRenderer:]):
3412 (-[WebImageData _stopAnimation]):
3413 (-[WebImageData _nextFrame:]):
3414 (-[WebImageData animate]):
3415 * WebCoreSupport.subproj/WebImageRenderer.h:
3416 * WebCoreSupport.subproj/WebImageRenderer.m:
3417 (-[WebImageRenderer initWithMIMEType:]):
3418 (-[WebImageRenderer initWithData:MIMEType:]):
3419 (-[WebImageRenderer initWithContentsOfFile:]):
3420 (-[WebImageRenderer dealloc]):
3421 (-[WebImageRenderer copyWithZone:]):
3422 (-[WebImageRenderer retainOrCopyIfNeeded]):
3423 (-[WebImageRenderer resize:]):
3424 (-[WebImageRenderer size]):
3425 (-[WebImageRenderer MIMEType]):
3426 (-[WebImageRenderer frameCount]):
3427 (-[WebImageRenderer isNull]):
3428 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
3429 (-[WebImageRenderer drawImageInRect:fromRect:]):
3430 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3431 (-[WebImageRenderer tileInRect:fromPoint:context:]):
3432 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3433 (+[WebImageRenderer stopAnimationsInView:]):
3434 (-[WebImageRenderer stopAnimation]):
3435 (-[WebImageRenderer targetAnimationRect]):
3436 (-[WebImageRenderer increaseUseCount]):
3437 (-[WebImageRenderer decreaseUseCount]):
3438 (-[WebImageRenderer flushRasterCache]):
3439 (-[WebImageRenderer imageRef]):
3440 (-[WebImageRenderer TIFFRepresentation]):
3441 (-[WebImageRenderer image]):
3442 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3443 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
3444 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
3445 (-[WebImageRendererFactory imageRendererWithSize:]):
3446 (-[WebImageRendererFactory imageRendererWithName:]):
3447 * WebKit.pbproj/project.pbxproj:
3448 * WebView.subproj/WebImageView.m:
3449 (-[WebImageView image]):
3453 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3455 - rolled out last two changes, they seem to cause a performance regression
3457 * WebView.subproj/WebHTMLView.m:
3458 (-[WebHTMLView firstRectForCharacterRange:]):
3460 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3464 * WebView.subproj/WebHTMLView.m:
3465 (-[WebHTMLView firstRectForCharacterRange:]):
3467 2004-09-08 Maciej Stachowiak <mjs@apple.com>
3471 WebKit part of fix for:
3473 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
3475 * WebView.subproj/WebHTMLView.m:
3476 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
3477 and translate to screen coordinates.
3479 2004-09-09 Darin Adler <darin@apple.com>
3483 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
3485 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
3486 so we can use new exceptions.
3488 * WebView.subproj/WebHTMLView.m:
3489 (-[WebHTMLView setMark:]): Added.
3490 (unionDOMRanges): Added.
3491 (-[WebHTMLView deleteToMark:]): Added.
3492 (-[WebHTMLView selectToMark:]): Added.
3493 (-[WebHTMLView swapWithMark:]): Added.
3494 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
3495 (-[WebHTMLView hasMarkedText]): Ditto.
3496 (-[WebHTMLView unmarkText]): Ditto.
3497 (-[WebHTMLView _selectMarkedText]): Ditto.
3498 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
3499 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
3500 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
3501 should not be filtered out here. We need to allow inserting an empty string.
3502 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
3503 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
3505 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
3506 Changed to use selectionDOMRange instead of selectionStart.
3508 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
3509 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
3511 2004-09-08 John Sullivan <sullivan@apple.com>
3515 - fixed the localization aspect of:
3516 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
3518 We now have all the strings ready for localization; we just don't actually use them yet.
3520 * English.lproj/Localizable.strings:
3521 updated for this change
3523 * WebCoreSupport.subproj/WebBridge.m:
3524 (-[WebBridge setUndoActionNamePlaceholder]):
3525 added this placeholder method whose purpose is to hold localizable strings for all the Undo
3526 action names that NSTextView uses. Later we will use some or all of these, but we can do
3527 that part after the localization freeze.
3529 2004-09-08 Chris Blumenberg <cblu@apple.com>
3531 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
3533 Reviewed by kocienda.
3535 * WebView.subproj/WebHTMLView.m:
3536 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
3538 2004-09-08 Chris Blumenberg <cblu@apple.com>
3540 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
3544 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3545 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
3546 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
3548 2004-09-08 Chris Blumenberg <cblu@apple.com>
3550 Forgot to add this in previous check-in.
3552 * English.lproj/WebViewEditingContextMenu.nib: Added.
3554 2004-09-08 Chris Blumenberg <cblu@apple.com>
3556 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
3560 * English.lproj/StringsNotToBeLocalized.txt:
3561 * WebKit.pbproj/project.pbxproj:
3562 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3563 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
3565 2004-09-07 Darin Adler <darin@apple.com>
3567 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
3569 2004-09-07 Chris Blumenberg <cblu@apple.com>
3571 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
3573 (checked in with last check-in)
3575 2004-09-07 Chris Blumenberg <cblu@apple.com>
3578 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
3579 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
3583 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
3584 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
3585 (-[WebBaseNetscapePluginView cut:]):
3586 (-[WebBaseNetscapePluginView copy:]):
3587 (-[WebBaseNetscapePluginView paste:]):
3588 (-[WebBaseNetscapePluginView selectAll:]):
3590 2004-09-07 Darin Adler <darin@apple.com>
3592 - fixed deployment build
3594 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
3595 Initialize prepend variable.
3597 2004-09-06 Darin Adler <darin@apple.com>
3601 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
3602 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
3603 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
3604 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
3605 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
3606 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
3607 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
3608 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
3609 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
3610 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
3611 - dealt with a couple of FIXMEs in WebHTMLView.m
3612 - updated list of not-yet-implemented methods in WebHTMLView.m
3613 - fixed many deletion operations to call the correct editing delegate methods
3615 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
3616 No one was calling them anyway, so they should really have been marked internal and not private.
3617 * WebView.subproj/WebFrameView.m:
3618 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
3619 would start working with the key bindings machinery.
3620 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
3621 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
3622 control-arrow keys here (probably not necessary, but good anyway).
3624 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
3625 and nextResponderDisabledOnce flags.
3626 * WebView.subproj/WebHTMLView.m:
3627 Rearrange declarations at the top of the file so that external things are up with
3628 the #import directives and things inside this file are declared below.
3629 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
3630 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
3631 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
3632 (-[WebHTMLView _selectedRange]): Added.
3633 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
3634 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
3635 with the AppKit. Chris will look at this later, and he can delete it then.
3636 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
3637 (-[WebHTMLView _documentRange]): Added.
3638 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
3639 string and then getting the text from there.
3640 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
3641 will create a new kill ring entry.
3642 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
3643 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3644 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
3645 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
3646 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3647 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
3648 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
3649 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3650 (-[WebHTMLView moveToEndOfLine:]): Ditto.
3651 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
3652 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3653 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
3654 (-[WebHTMLView _shouldDeleteRange:]): Added.
3655 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
3656 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
3657 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
3658 (-[WebHTMLView _selectionFontAttributes]): Added.
3659 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
3660 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
3661 (-[WebHTMLView _emptyStyle]): Added.
3662 (-[WebHTMLView _styleFromFontAttributes:]): Added.
3663 (-[WebHTMLView _applyStyleToSelection:]): Added.
3664 (-[WebHTMLView copyFont:]): Implemented.
3665 (-[WebHTMLView pasteFont:]): Implemented.
3666 (-[WebHTMLView _originalFontA]): Added.
3667 (-[WebHTMLView _originalFontB]): Added.
3668 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
3669 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
3670 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
3671 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
3672 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
3674 (-[WebHTMLView _shadowAsString:]): Added.
3675 (-[WebHTMLView _styleForAttributeChange:]): Added.
3676 (-[WebHTMLView changeAttributes:]): Implemented.
3677 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
3678 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
3679 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
3680 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
3681 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
3682 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
3683 of methods to possibly implement later in the file.
3684 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
3685 instead of WebViewInsertActionPasted.
3686 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
3687 Added to list of methods to possibly implement later in the file.
3688 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
3689 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
3690 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
3691 deleteBackward for now; probably better than doing nothing.
3692 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
3693 so that we delete the selection if there is one, get the appropriate delegate calls, handle
3694 the kill ring properly, and don't do any selection if we can't delete.
3695 (-[WebHTMLView deleteWordBackward:]): Ditto.
3696 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
3697 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
3698 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
3699 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
3700 is bound to Control-K, so it's not really just delete to end of paragraph.
3701 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
3702 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
3703 (-[WebHTMLView subscript:]): Added.
3704 (-[WebHTMLView superscript:]): Added.
3705 (-[WebHTMLView unscript:]): Added.
3706 (-[WebHTMLView underline:]): Added.
3707 (-[WebHTMLView yank:]): Added.
3708 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
3709 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
3710 control-arrow key trouble.
3711 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
3712 (-[WebHTMLView nextResponder:]): Added. More of workaround.
3713 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
3714 will create a new kill ring entry.
3715 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
3716 because it walked a DOM range incorrectly, and instead use the new method that does all the
3717 right stuff on the other side of the bridge.
3718 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
3719 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
3720 (-[WebHTMLView insertText:]): Call the new _insertText.
3722 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
3723 Updated the list to include a few methods it didn't before.
3725 2004-09-06 John Sullivan <sullivan@apple.com>
3729 - put preference keys in a private header file so Safari can use them for Managed Preferences
3731 * WebView.subproj/WebPreferenceKeysPrivate.h:
3732 new Private header file, includes the #defines for NSUserDefaults preference keys
3734 * WebView.subproj/WebPreferences.m:
3735 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
3737 * WebKit.pbproj/project.pbxproj:
3738 updated for new file
3740 2004-09-03 Chris Blumenberg <cblu@apple.com>
3742 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
3746 * Plugins.subproj/WebNetscapePluginPackage.m:
3747 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
3749 2004-09-03 Chris Blumenberg <cblu@apple.com>
3752 <rdar://problem/3788328> assertion failure when moving an image
3753 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
3755 Reviewed by NOBODY (OOPS!).
3757 * DOM.subproj/WebDOMOperations.m:
3758 (-[DOMDocument _createRangeWithNode:]): new, convenience
3759 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
3760 * DOM.subproj/WebDOMOperationsPrivate.h:
3761 * WebView.subproj/WebHTMLView.m:
3762 (-[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
3766 2004-09-02 Richard Williamson <rjw@apple.com>
3768 Support for patterns in <canvas>.
3769 (These changes attempt to create a CGImageRef from a WebImageRenderer that
3770 is used by the pattern drawing function.)
3774 * WebCoreSupport.subproj/WebImageRenderer.h:
3775 * WebCoreSupport.subproj/WebImageRenderer.m:
3776 (-[WebImageRenderer dealloc]):
3777 (-[WebImageRenderer finalize]):
3778 (-[WebImageRenderer imageRef]):
3780 * WebView.subproj/WebPDFView.h:
3781 * WebView.subproj/WebPDFView.m:
3783 2004-09-01 Chris Blumenberg <cblu@apple.com>
3785 Fixed deployment build failure.
3787 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3788 (-[WebDefaultUIDelegate menuItemWithTag:]):
3790 2004-08-31 Chris Blumenberg <cblu@apple.com>
3793 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
3794 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
3796 Reviewed by kocienda.
3798 * English.lproj/Localizable.strings:
3799 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3800 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
3801 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
3802 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
3803 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
3804 * WebView.subproj/WebDefaultUIDelegate.h:
3805 * WebView.subproj/WebHTMLView.m:
3806 (-[WebHTMLView _isSelectionMisspelled]): new
3807 (-[WebHTMLView _guessesForMisspelledSelection]): new
3808 (-[WebHTMLView _changeSpellingFromMenu:]): new
3809 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
3810 (-[WebHTMLView _learnSpellingFromMenu:]): new
3811 * WebView.subproj/WebHTMLViewPrivate.h:
3812 * WebView.subproj/WebUIDelegate.h:
3814 2004-08-31 Darin Adler <darin@apple.com>
3816 - fixed B&I build failure
3818 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
3819 Work around unwanted warning by adding a cast.
3821 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3825 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3827 Because we will stop parsing when there is a pending redirection,
3828 avoid setting one if no navigation would actually take place
3829 because the number of steps is out of range.
3831 * WebCoreSupport.subproj/WebBridge.m:
3832 (-[WebBridge canGoBackOrForward:]):
3834 2004-08-30 Darin Adler <darin@apple.com>
3838 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
3840 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
3841 Call [super clearCaches].
3843 2004-08-30 Darin Adler <darin@apple.com>
3847 - did work to prepare for uploading files incrementally when submitting forms
3849 * History.subproj/WebHistoryItem.m:
3850 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
3851 (-[WebHistoryItem formData]): Ditto.
3852 * History.subproj/WebHistoryItemPrivate.h: Ditto.
3853 * WebCoreSupport.subproj/WebBridge.m:
3854 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
3855 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
3856 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3857 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
3858 * WebCoreSupport.subproj/WebSubresourceClient.m:
3859 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
3860 * WebView.subproj/WebFrame.m:
3861 (-[WebFrame _loadItem:withLoadType:]): Ditto.
3862 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3863 * WebView.subproj/WebFramePrivate.h: Ditto.
3865 * WebView.subproj/WebFormDataStream.h: Added.
3866 * WebView.subproj/WebFormDataStream.m:
3867 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
3868 (-[WebFormDataStream formDataArray]): Ditto.
3869 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
3871 2004-08-30 John Sullivan <sullivan@apple.com>
3875 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
3876 but should only print the frame
3878 * WebView.subproj/WebUIDelegatePrivate.h:
3879 declare new delegate method that includes which frame to print
3881 * WebView.subproj/WebDefaultUIDelegate.m:
3882 (-[WebDefaultUIDelegate webView:printFrameView:]):
3883 implement default (no-op) version of new delegate method
3885 * WebCoreSupport.subproj/WebBridge.m:
3886 (-[WebBridge print]):
3887 call new delegate method if available, otherwise call old delegate method, for
3888 backward compatibility.
3890 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3895 Ken comments: It looks like Maciej forgot to land this when he checked in the
3896 WebCore portion of this change.
3898 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3900 Because we will stop parsing when there is a pending redirection,
3901 avoid setting one if no navigation would actually take place
3902 because the number of steps is out of range.
3904 * WebCoreSupport.subproj/WebBridge.m:
3905 (-[WebBridge canGoBackOrForward:]):
3907 2004-08-27 Ken Kocienda <kocienda@apple.com>
3913 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
3915 * WebView.subproj/WebHTMLView.m:
3916 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
3917 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
3918 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
3923 2004-08-26 Chris Blumenberg <cblu@apple.com>
3925 Fixed build failure on Panther.
3929 * WebView.subproj/WebHTMLView.m:
3930 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
3931 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
3933 2004-08-26 Chris Blumenberg <cblu@apple.com>
3935 Tweak to last check-in.
3937 * WebView.subproj/WebHTMLView.m:
3938 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
3940 2004-08-26 Chris Blumenberg <cblu@apple.com>
3943 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
3944 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
3948 * DOM.subproj/WebDOMOperations.m:
3949 (-[DOMDocument _documentRange]): new
3950 * DOM.subproj/WebDOMOperationsPrivate.h:
3951 * WebView.subproj/WebHTMLView.m:
3952 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
3953 (-[WebHTMLView string]): added a FIXME
3954 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
3955 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
3956 (-[WebHTMLView selectedAttributedString]): ditto
3958 2004-08-26 Chris Blumenberg <cblu@apple.com>
3960 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
3964 * WebCoreSupport.subproj/WebBridge.m:
3965 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
3967 2004-08-26 Chris Blumenberg <cblu@apple.com>
3969 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
3973 * Carbon.subproj/HIWebView.m:
3974 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
3977 (MouseDragged): ditto
3978 (MouseWheelMoved): ditto
3979 (WindowHandler): ditto
3980 (HIWebViewEventHandler): ditto
3981 (UpdateObserver): ditto
3982 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
3984 2004-08-24 Chris Blumenberg <cblu@apple.com>
3986 Fixed with help from Trey:
3987 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
3991 * WebView.subproj/WebHTMLView.m:
3992 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
3993 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
3994 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
3996 2004-08-24 Ken Kocienda <kocienda@apple.com>
4000 Improved the checks used to see if certain operations can be done based
4001 on the state of the selection and whether the selection is editable. I
4002 added some helpers and improved some others to assist in making these
4005 This helps to fix this bug:
4006 <rdar://problem/3764987> Crash after adding newline to quoted text
4008 Since some editing methods expect the the selection to be in a certain state
4009 in order to work, these checks help obviate crashes like 3764987.
4011 * WebView.subproj/WebHTMLView.m:
4012 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
4013 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
4014 (-[WebHTMLView _canCut]): Ditto. Function added.
4015 (-[WebHTMLView _canDelete]): Ditto. Function refined.
4016 (-[WebHTMLView _canPaste]): Ditto. Function refined.
4017 (-[WebHTMLView _canType]): Ditto. Function added.
4018 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
4019 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
4020 (-[WebHTMLView _isEditable]): Added.
4021 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
4022 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
4023 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
4024 (-[WebHTMLView keyDown:]):
4025 (-[WebHTMLView copy:]): Uses new _canCopy check.
4026 (-[WebHTMLView cut:]): Uses new _canCut check.
4027 (-[WebHTMLView delete:]): Now uses _canDelete check.
4028 (-[WebHTMLView paste:]): Now uses _canPaste check.
4029 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
4030 * WebView.subproj/WebHTMLViewPrivate.h:
4031 * WebView.subproj/WebView.m:
4032 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
4033 determine whether or not operation can be done.
4035 2004-08-24 Richard Williamson <rjw@apple.com>
4037 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
4039 Set height resize flags on WebPDFView.
4043 * WebView.subproj/WebPDFView.m:
4044 (-[WebPDFView initWithFrame:]):
4046 2004-08-24 David Hyatt <hyatt@apple.com>
4048 Add Atom and RSS MIME types to set of supported XML types.
4052 * WebView.subproj/WebDataSource.m:
4053 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
4054 * WebView.subproj/WebFrameView.m:
4055 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
4057 2004-08-23 Maciej Stachowiak <mjs@apple.com>
4061 - remove annoying ERROR spew and replace with comment
4063 * WebView.subproj/WebHTMLView.m:
4064 (-[WebHTMLView validAttributesForMarkedText]):
4066 2004-08-23 Maciej Stachowiak <mjs@apple.com>
4068 Reviewed by Richard.
4070 - a bit of code cleanup
4072 * WebView.subproj/WebDataSource.m:
4073 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
4075 (-[WebDataSource textEncodingName]): Tweak formatting.
4077 2004-08-23 Chris Blumenberg <cblu@apple.com>
4081 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
4083 2004-08-23 Chris Blumenberg <cblu@apple.com>
4085 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
4089 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
4090 * WebCoreSupport.subproj/WebKeyGeneration.h:
4091 * WebCoreSupport.subproj/WebKeyGenerator.h:
4092 * WebCoreSupport.subproj/WebKeyGenerator.m:
4093 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
4094 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
4095 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
4096 (gnrAddContextAttribute):