3 2005-01-27 Chris Blumenberg <cblu@apple.com>
5 Fixed: <rdar://problem/3973272> REGRESSION: Safari uses QT plugin to display PNG images
9 * Plugins.subproj/WebBasePluginPackage.m: use renamed QT bundle ID
11 2005-01-26 Darin Adler <darin@apple.com>
15 - fixed <rdar://problem/3829517> WebView still draws white when setDrawsBackground set to NO and no content loaded yet
17 * WebView.subproj/WebFrameView.m: (-[WebFrameView drawRect:]): Check drawsBackground, and don't
18 draw the white "no document" background if it's NO. This fixes things for frames with no document.
19 * WebView.subproj/WebImageView.m: (-[WebImageView drawRect:]): Same as above. This fixes things
20 for frames with just an image.
21 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the
22 document view if it implements it. This fixes things for frames with plain text.
24 2005-01-25 John Sullivan <sullivan@apple.com>
28 - WebKit part of fix for: <rdar://problem/3970670> Text context menu
29 in WebKit needs "Look Up in Dictionary" item
31 * WebView.subproj/WebDefaultContextMenuDelegate.m:
32 (localizedMenuTitleFromAppKit):
33 return English string in the case where AppKit bundle is found but doesn't
34 contain the expected string. This case will be hit by people testing with
36 (-[WebDefaultUIDelegate menuItemWithTag:]):
37 create Look Up in Dictionary item
38 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
39 add Look Up in Dictionary item and separator
40 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
43 * WebView.subproj/WebHTMLView.m:
44 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
45 new method, handles bringing up the Dictionary window. Includes FIXMEs
46 for a couple of the known loose ends.
47 (-[WebHTMLView validateUserInterfaceItem:]):
48 handle Look Up in Dictionary item like the other new items
50 * WebView.subproj/WebUIDelegatePrivate.h:
51 added SPI constant for Look Up in Dictionary menu item
53 2005-01-24 Maciej Stachowiak <mjs@apple.com>
55 Fixed Panther build (missing ifdef)
57 * WebView.subproj/WebDefaultContextMenuDelegate.m:
59 2005-01-24 John Sullivan <sullivan@apple.com>
63 - WebKit part of fix for <rdar://problem/3960231> Text context menu in WebKit needs Spotlight and Google items
65 * WebView.subproj/WebDefaultContextMenuDelegate.m:
66 (localizedMenuTitleFromAppKit):
67 new function, gets localized string from AppKit so we can avoid adding localized
68 strings to WebKit at this late date in Tiger. Returns the non-localized English
69 string if we can't find the localized string in AppKit.
70 (-[WebDefaultUIDelegate menuItemWithTag:]):
71 handle the two new menu items by tag name
72 (-[WebDefaultUIDelegate contextMenuItemsForElement:]):
73 add menu items for Search in Google and Search in Spotlight to selected-text menu item
74 for the noneditable case
75 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]):
76 add menu items for Search in Google and Search in Spotlight to selected-text menu item
79 * WebView.subproj/WebHTMLView.m:
80 (-[WebHTMLView _searchWithGoogleFromMenu:]):
81 implement this menu item action method, using same method name and implementation as NSTextView
82 (-[WebHTMLView _searchWithSpotlightFromMenu:]):
83 implement this menu item action method, using same basic implementation as NSTextView
84 (-[WebHTMLView validateUserInterfaceItem:]):
85 validate new menu items
87 * WebView.subproj/WebUIDelegatePrivate.h:
88 define new tags for new menu items
90 * English.lproj/StringsNotToBeLocalized.txt:
91 updated for these changes
93 2005-01-24 Darin Adler <darin@apple.com>
95 * WebView.subproj/WebDataSource.m: (+[WebDataSource _repTypesAllowImageTypeOmission:]):
96 Do the same check as for view types, so the representation types are consistent.
98 2005-01-24 Darin Adler <darin@apple.com>
102 - fixed <rdar://problem/3791158> REGRESSION (Mail): copyFont: and pasteFont: copy and paste only the NSFont, not other attributes
104 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): Added the last
105 few loose ends here: strikethrough and underline.
107 - fixed <rdar://problem/3967393> add a user default that lets you turn off WebKit PDF support
109 * WebView.subproj/WebFrameView.m: (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
110 Leave the PDF-handling classes out of the dictionary if the secret default is set.
112 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
114 2005-01-20 Darin Adler <darin@apple.com>
116 Reviewed by Kristin Forster.
118 - fixed <rdar://problem/3964972> update _initWithCGSEvent:eventRef: call in mouse moved workaround (breaks cursors in Carbon WebKit applications)
120 * Carbon.subproj/HIWebView.m: (MouseMoved): Instead of munging the event record's window number directly
121 before calling _initWithCGSEvent, on Tiger we call _eventRelativeToWindow on the event after creating it.
122 Also added a check so that with Macromedia Contribute's workaround in place we don't do anything at all
123 to the event. Tested with both Contribute and CarbonWeb.
125 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
127 2005-01-20 Richard Williamson <rjw@apple.com>
129 Fixed <rdar://problem/3815672> REGRESSION (Mail): Japanese text cannot be made bold
131 The AppKit's font substitution API doesn't match font traits!
132 It only find fonts that contain the appropriate glyphs. This
133 patch attempts to find the best variation within a family.
137 * WebCoreSupport.subproj/WebTextRenderer.m:
138 (-[WebTextRenderer _substituteFontForString:families:]):
142 2005-01-20 Ken Kocienda <kocienda@apple.com>
148 <rdar://problem/3786659> REGRESSION (Mail): editable WebViews don't work with "size up" and "size down" NSFontManager changes
150 * WebView.subproj/WebHTMLView.m:
151 (-[WebHTMLView _addToStyle:fontA:fontB:]): This is the WebKit side of the fix. Replaced unimplemented code blocks
152 with FIXME's in them for make bigger and make smaller with real working code.
154 2005-01-19 David Hyatt <hyatt@apple.com>
156 Fix for 3513067, spaces being lost when RTL text is rendered. Make sure not to allow hangers or spaces
161 * WebCoreSupport.subproj/WebTextRenderer.m:
162 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
164 2005-01-19 Darin Adler <darin@apple.com>
168 - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
170 * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
172 2005-01-19 Chris Blumenberg <cblu@apple.com>
174 Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
178 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
179 (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
181 2005-01-17 Darin Adler <darin@apple.com>
183 * DOM.subproj/DOMPrivate.h: Check in generated file.
185 2005-01-17 Darin Adler <darin@apple.com>
187 Reviewed by John and Richard.
189 - fixed <rdar://problem/3907453> printing a multi-page PDF document from Safari doesn't produce correct output
191 * WebView.subproj/WebFrameViewPrivate.h: Added.
192 * WebView.subproj/WebFrameView.m:
193 (-[WebFrameView canPrintHeadersAndFooters]): Added. Returnes NO for documents that can't print headers or footers,
194 and delegates to the document view to answer the question. Defaults to NO, since only a view that actively does
195 the work is compatible with our header and footer code.
196 (-[WebFrameView printOperationWithPrintInfo:]): Added. Returns an NSPrintOperation set up for printing. The reason
197 we return this rather than an NSView is that in the PDFView case, the print info is changed around before creating
198 the NSPrintOperation, and also the PDFKit SPI works this way.
200 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView canPrintHeadersAndFooters]): Added. Returns YES.
201 * WebView.subproj/WebImageView.m: (-[WebImageView canPrintHeadersAndFooters]): Ditto.
202 * WebView.subproj/WebTextView.m: (-[WebTextView canPrintHeadersAndFooters]): Ditto.
204 * WebView.subproj/WebPDFView.m:
205 (-[WebPDFView canPrintHeadersAndFooters]): Added. Returns NO.
206 (-[WebPDFView printOperationWithPrintInfo:]): Added. Calls getPrintOperationForPrintInfo: autoRotate:YES on the PDFView.
208 * WebKit.pbproj/project.pbxproj: Added WebFrameViewPrivate.h as a new private header.
210 2005-01-13 Chris Blumenberg <cblu@apple.com>
212 Fixed: <rdar://problem/3932107> Safari does not load QT Cocoa plug-in if the WebPluginMIMETypes key is not in the info.plist
214 Fixing this bug required that we allow WebKit plug-ins (as well as Netscape plug-ins) support BP_CreatePluginMIMETypesPreferences
215 which allows plug-ins create an auxiliary MIME types file.
219 * Plugins.subproj/WebBasePluginPackage.h:
220 * Plugins.subproj/WebBasePluginPackage.m:
221 (+[WebBasePluginPackage preferredLocalizationName]): moved from WebNetscapePluginPackage
222 (-[WebBasePluginPackage pListForPath:createFile:]): ditto
223 (-[WebBasePluginPackage getPluginInfoFromPLists]): ditto
224 (-[WebBasePluginPackage isLoaded]): return isLoaded ivar
225 (-[WebBasePluginPackage load]): if loaded, get BP_CreatePluginMIMETypesPreferences symbol
226 * Plugins.subproj/WebNetscapePluginPackage.h:
227 * Plugins.subproj/WebNetscapePluginPackage.m:
228 (-[WebNetscapePluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
229 * Plugins.subproj/WebPluginPackage.m:
230 (-[WebPluginPackage initWithPath:]): call getPluginInfoFromPLists
231 (-[WebPluginPackage load]): call super when done so BP_CreatePluginMIMETypesPreferences can be initialized
233 2005-01-13 Richard Williamson <rjw@apple.com>
235 Fixed <rdar://problem/3952809> WebJavaPlugIn.h comments need method name corrected (webPlugInCallJava)
239 * Plugins.subproj/WebJavaPlugIn.h:
243 2005-01-13 Vicki Murley <vicki@apple.com>
247 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
249 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
251 2005-01-13 Richard Williamson <rjw@apple.com>
253 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
255 Draw last image after animation loop terminates. (We
256 were drawing the image at index+1, which doesn't exist!)
260 * WebCoreSupport.subproj/WebImageData.m:
261 (-[WebImageData _nextFrame:]):
263 2005-01-13 Richard Williamson <rjw@apple.com>
265 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
267 Turn off use of new CGContextStrokeLineSegments API. We should
268 turn back on when 3952944 is fixed.
272 * WebCoreSupport.subproj/WebTextRenderer.m:
273 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
275 2005-01-13 Chris Blumenberg <cblu@apple.com>
277 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
281 * Misc.subproj/WebNSViewExtras.m:
282 (-[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
283 * WebCoreSupport.subproj/WebImageRendererFactory.m:
284 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
285 * WebView.subproj/WebImageView.m:
286 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
288 2005-01-10 Maciej Stachowiak <mjs@apple.com>
292 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
294 * WebCoreSupport.subproj/WebTextRenderer.m:
295 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
296 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
297 .5 pixels, since the rendering engine can't give a fractional pixel offset.
298 * WebView.subproj/WebHTMLView.m:
299 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
300 clause attributes. Others that NSText supports are unimplemented for now.
301 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
302 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
303 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
304 and ranges out of an attributed string.
305 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
306 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
309 2005-01-12 Darin Adler <darin@apple.com>
313 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
315 * WebView.subproj/WebHTMLView.m:
316 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
317 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
318 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
319 optimize by only doing layouts you really need, and doing them later on is safe because we
320 know we don't need to draw any of the views behind us.
321 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
322 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
324 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
325 _layoutIfNeeded method above. Otherwise unchanged.
326 (-[NSView _web_layoutIfNeededRecursive]): Added.
328 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
329 on the scroll view when changing the frame to no longer be in "draws background" mode. This
330 is needed because the frame manages the "draws background" mode of the scroll view. It won't
331 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
332 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
333 This was hidden before because the HTML view was filling with transparent color, which blew away
334 the fill that was done by NSScrollView.
336 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
338 * WebCoreSupport.subproj/WebImageData.m:
339 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
340 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
341 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
342 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
343 all the renderers because the process of stopping modifies the active sets.
345 2005-01-12 Richard Williamson <rjw@apple.com>
347 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
349 Get loop count from file properties, not image properties.
351 Reviewed by Ken Kocienda.
353 * WebCoreSupport.subproj/WebImageData.h:
354 * WebCoreSupport.subproj/WebImageData.m:
355 (-[WebImageData _commonTermination]):
356 (-[WebImageData fileProperties]):
357 (-[WebImageData _floatProperty:type:at:]):
358 (-[WebImageData _floatFileProperty:type:]):
359 (-[WebImageData _repetitionCount]):
361 2005-01-11 Chris Blumenberg <cblu@apple.com>
363 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
367 * Plugins.subproj/WebBaseNetscapePluginView.m:
368 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
370 2005-01-11 John Sullivan <sullivan@apple.com>
374 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
375 (e.g. <strike>, underline)
377 * WebCoreSupport.subproj/WebTextRenderer.m:
378 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
379 This bottleneck routine for drawing a line was setting the linewidth to 0 when
380 the graphics context was not drawing to the screen. Thus, no lines. Now links
381 are underlined when printing from Safari (as well as Mail).
383 2005-01-11 Richard Williamson <rjw@apple.com>
385 Fixed 3949145. CG has a much faster API for drawing lines.
386 Switched over to that new API (CGContextStrokeLineSegments).
388 Reviewed by John Sullivan.
390 * WebCoreSupport.subproj/WebTextRenderer.m:
391 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
393 2005-01-10 Chris Blumenberg <cblu@apple.com>
395 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
397 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.
401 * WebView.subproj/WebHTMLView.m:
402 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
403 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
407 2005-01-06 David Harrison <harrison@apple.com>
409 Reviewed by Dave Hyatt
411 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
413 * WebView.subproj/WebHTMLView.m:
414 (-[WebHTMLView accessibilityFocusedUIElement]):
415 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
417 2005-01-05 Chris Blumenberg <cblu@apple.com>
419 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
423 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
425 2005-01-04 Chris Blumenberg <cblu@apple.com>
427 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
429 Reviewed by kocienda.
431 * WebView.subproj/WebHTMLView.m:
432 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
434 2004-12-21 Maciej Stachowiak <mjs@apple.com>
438 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
440 Implement a security check on name frame visbility. This is the
441 same rule as mozilla. You can only target frames by name if you
442 are in the same window, have the same domain as the frame or an
443 ancestor, or if it's a top level window have the same domain as
446 * WebView.subproj/WebFrame.m:
447 (-[WebFrame _shouldAllowAccessFrom:]):
448 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
449 (-[WebFrame findFrameNamed:]):
450 * WebView.subproj/WebFramePrivate.h:
451 * WebView.subproj/WebView.m:
452 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
453 (-[WebView _findFrameNamed:sourceFrame:]):
454 * WebView.subproj/WebViewPrivate.h:
460 2004-12-20 Richard Williamson <rjw@apple.com>
462 Add call to new API. ImageIO deprecated some older (although
463 quite new!) API. This caused us to fail to build on 337 or later.
465 Developers wanting to build on older versions of Tiger must define
466 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
470 * WebCoreSupport.subproj/WebImageData.m:
471 (-[WebImageData propertiesAtIndex:]):
473 2004-12-20 Richard Williamson <rjw@apple.com>
475 Don't call Tiger SPI on Panther.
479 * WebCoreSupport.subproj/WebTextRendererFactory.m:
480 (+[WebTextRendererFactory createSharedFactory]):
482 2004-12-20 Richard Williamson <rjw@apple.com>
484 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
486 Enable mutli-tier font caching. We should see a performance boost with this
491 * WebCoreSupport.subproj/WebTextRendererFactory.m:
492 (+[WebTextRendererFactory createSharedFactory]):
494 2004-12-20 Richard Williamson <rjw@apple.com>
496 Fix image decoding to separately decode image meta data from actual image bits. I
497 incorrectly consolidated decode of meta data and image bits resulting in a huge
498 performance regression.
500 Double size of WebCore cache on lower end machines. On the PLT run on machines with
501 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
502 Upping the lower limit of the cache size ensure that no images are evicted (this
503 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
507 * WebCoreSupport.subproj/WebImageData.h:
508 * WebCoreSupport.subproj/WebImageData.m:
509 (+[WebImageData initialize]):
510 (-[WebImageData _commonTermination]):
511 (-[WebImageData _invalidateImages]):
512 (-[WebImageData _invalidateImageProperties]):
513 (-[WebImageData imageAtIndex:]):
514 (-[WebImageData propertiesAtIndex:]):
515 (-[WebImageData _cacheImages:allImages:]):
516 (-[WebImageData decodeData:isComplete:callback:]):
517 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
518 * WebView.subproj/WebPreferences.m:
519 (+[WebPreferences initialize]):
521 2004-12-20 Richard Williamson <rjw@apple.com>
523 Fixed build problem caused by change to ImageIO API.
527 * WebCoreSupport.subproj/WebImageData.m:
529 2004-12-19 Darin Adler <darin@apple.com>
533 - some garbage collection fixes
535 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
536 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
538 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
539 get rid of an unnecessary use of WebNSRetainCFRelease.
540 * Misc.subproj/WebNSURLExtras.m:
541 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
542 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
543 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
544 work correctly under GC.
545 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
546 Use WebCFAutorelease here; the old code would not work correctly under GC.
548 2004-12-18 Chris Blumenberg <cblu@apple.com>
550 Fixed: <rdar://problem/3766915> PDF content needs search to work
552 Reviewed by kevin, john.
554 * WebView.subproj/WebPDFView.m:
555 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
556 (-[WebPDFView takeFindStringFromSelection:]): new
557 (-[WebPDFView jumpToSelection:]): new
558 (-[WebPDFView validateUserInterfaceItem:]): new
560 2004-12-17 Richard Williamson <rjw@apple.com>
562 Make image decoding as lazy as possible for non threaded case; in some cases
563 can avoid unnecessary decoding work.
567 * WebCoreSupport.subproj/WebImageData.h:
568 * WebCoreSupport.subproj/WebImageData.m:
569 (-[WebImageData imageAtIndex:]):
570 (-[WebImageData propertiesAtIndex:]):
571 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
573 2004-12-16 John Sullivan <sullivan@apple.com>
577 One of the assertions from my previous checkin fired, so
578 I made this code more robust.
580 * WebCoreSupport.subproj/WebBridge.m:
581 (-[WebBridge _preferences]):
582 new helper method, returns global preferences if webView is nil,
583 otherwise returns webView's preferences
584 (-[WebBridge getObjectCacheSize]):
585 use new helper method, remove now-unnecessary assert
586 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
589 2004-12-16 John Sullivan <sullivan@apple.com>
593 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
594 - cleaned up some calls to +[WebPreferences standardPreferences] that should
595 have been using -[WebView preferences]
597 This adds a (currently SPI-only) new feature that shows the URL of the link
598 under the mouse in a toolTip. I tested this in Safari, but we're adding this
599 feature for Mail, and Safari won't use it (unless of course you know the
600 magic defaults command)
602 * Plugins.subproj/WebBaseNetscapePluginView.m:
603 (-[WebBaseNetscapePluginView start]):
604 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
606 * WebCoreSupport.subproj/WebBridge.m:
607 (-[WebBridge getObjectCacheSize]):
609 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
612 * WebView.subproj/WebBaseResourceHandleDelegate.m:
613 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
616 * WebView.subproj/WebFrame.m:
617 (-[WebFrame _transitionToCommitted:]):
619 (-[WebFrame _loadItem:withLoadType:]):
622 * WebView.subproj/WebHTMLViewInternal.h:
623 private struct now keeps ivar for cached value of showsURLsInToolTips
624 so it doesn't have look it up in preferences a zillion times
626 * WebView.subproj/WebHTMLView.m:
627 (-[WebHTMLView _updateMouseoverWithEvent:]):
628 if private->showsURLsInToolTips is true, set the toolTip from the URL.
629 Fall back to showing the title attribute in case some element has a title
630 attribute but no URL.
631 (-[WebHTMLView _mayStartDragAtEventLocation:]):
632 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
633 (-[WebHTMLView _resetCachedWebPreferences:]):
634 get a fresh value for private->showsURLsInToolTips
635 (-[WebHTMLView initWithFrame:]):
636 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
637 (-[WebHTMLView _handleStyleKeyEquivalent:]):
638 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
640 * WebView.subproj/WebPreferenceKeysPrivate.h:
641 added WebKitShowsURLsInToolTipsPreferenceKey
643 * WebView.subproj/WebPreferences.m:
644 (+[WebPreferences initialize]):
645 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
646 (-[WebPreferences showsURLsInToolTips]):
647 return WebKitShowsURLsInToolTipsPreferenceKey value
648 (-[WebPreferences setShowsURLsInToolTips:]):
649 set WebKitShowsURLsInToolTipsPreferenceKey value
651 * WebView.subproj/WebPreferencesPrivate.h:
652 add declarations for showsURLsInToolTips and setter
654 * WebView.subproj/WebTextView.m:
655 (-[WebTextView _preferences]):
656 new helper method that gets preferences from webView if there is a webView,
657 otherwise gets global preferences
658 (-[WebTextView setFixedWidthFont]):
659 use new helper method rather than always using global preferences
660 (-[WebTextView initWithFrame:]):
661 observe WebPreferencesChangedNotification instead of unnecessarily general
662 NSUserDefaultsChangedNotification
664 2004-12-14 John Sullivan <sullivan@apple.com>
668 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
669 in the menu, no specific action names
671 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
672 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
674 * WebView.subproj/WebHTMLView.m:
675 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
676 use WebUndoActionSetColor when dragging color swatch
677 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
678 new WebUndoAction parameter, passed across bridge
679 (-[WebHTMLView _toggleBold]):
680 use WebUndoActionSetFont
681 (-[WebHTMLView _toggleItalic]):
682 use WebUndoActionSetFont
683 (-[WebHTMLView pasteFont:]):
684 use WebUndoActionPasteFont
685 (-[WebHTMLView changeFont:]):
686 use WebUndoActionSetFont
687 (-[WebHTMLView changeAttributes:]):
688 use WebUndoActionChangeAttributes
689 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
690 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
691 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
692 now calls _undoActionFromColorPanelWithSelector
693 (-[WebHTMLView changeColor:]):
694 use WebUndoActionSetColor
695 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
696 new WebUndoAction parameter, passed through
697 (-[WebHTMLView alignCenter:]):
698 use WebUndoActionCenter
699 (-[WebHTMLView alignJustified:]):
700 use WebUndoActionJustify
701 (-[WebHTMLView alignLeft:]):
702 use WebUndoActionAlignLeft
703 (-[WebHTMLView alignRight:]):
704 use WebUndoActionAlignRight
705 (-[WebHTMLView subscript:]):
706 use WebUndoActionAlignSubscript
707 (-[WebHTMLView superscript:]):
708 use WebUndoActionAlignSuperscript
709 (-[WebHTMLView unscript:]):
710 use WebUndoActionAlignUnscript
711 (-[WebHTMLView underline:]):
712 use WebUndoActionAlignUnderline
714 * WebView.subproj/WebView.m:
715 (-[WebView setTypingStyle:]):
716 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
717 (-[WebView applyStyle:]):
720 2004-12-14 Richard Williamson <rjw@apple.com>
722 Helper method to get URL of plugin view.
726 * Misc.subproj/WebNSViewExtras.m:
727 (-[NSView _webViewURL]):
729 2004-12-14 Vicki Murley <vicki@apple.com>
733 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
735 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
736 file as well, as requested in the bug report
738 2004-12-13 Maciej Stachowiak <mjs@apple.com>
742 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
744 * WebView.subproj/WebHTMLView.m:
745 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
746 we end up with no marked text, since that case fails and is unnecessary.
748 2004-12-14 John Sullivan <sullivan@apple.com>
752 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
753 no specific action names
755 * WebCoreSupport.subproj/WebBridge.m:
756 (-[WebBridge nameForUndoAction:]):
757 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
758 handled new "unspecified" case as a fallback
760 2004-12-13 Richard Williamson <rjw@apple.com>
762 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
766 * Plugins.subproj/WebJavaPlugIn.h:
768 2004-12-13 John Sullivan <sullivan@apple.com>
772 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
773 that can't be cancelled.
775 The proper fix for this would be to change the class of the NSPanel in the nib file.
776 But since this would require a localization change, I did a run-time hack instead.
777 I'll file a bug about fixing this when we're out of localization freeze.
779 * Panels.subproj/WebAuthenticationPanel.m:
780 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
781 new method, creates a new panel that is identical to the original one except that
782 it's our subclass, and moves all the subviews of the original panel into the new one.
783 (-[WebAuthenticationPanel loadNib]):
784 call replacePanelWithSubclassHack
785 (-[NonBlockingPanel _blocksActionWhenModal:]):
786 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
787 when one of these panels/sheets is on-screen
789 2004-12-10 Richard Williamson <rjw@apple.com>
791 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
792 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
794 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
798 * WebCoreSupport.subproj/WebImageData.h:
799 * WebCoreSupport.subproj/WebImageData.m:
800 (-[WebImageData setIsPDF:]):
801 (-[WebImageData isPDF]):
802 (-[WebImageData dealloc]):
803 (-[WebImageData decodeData:isComplete:callback:]):
804 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
805 (-[WebImageData size]):
806 (-[WebImageData animate]):
807 (-[WebImageData _createPDFWithData:]):
808 (-[WebImageData _PDFDocumentRef]):
809 (-[WebImageData _PDFDrawInContext:]):
810 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
811 * WebCoreSupport.subproj/WebImageRenderer.h:
812 * WebCoreSupport.subproj/WebImageRenderer.m:
813 (-[WebImageRenderer size]):
814 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
815 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
818 2004-12-10 John Sullivan <sullivan@apple.com>
822 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
823 if there's no default printer set
825 * WebView.subproj/WebHTMLView.m:
826 (-[WebHTMLView beginDocument]):
827 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
828 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
829 However, it turns out that if there's an exception in [super beginDocument], then endDocument
830 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
831 exiting the "printing mode" in beginDocument when it occurs.
833 2004-12-09 Richard Williamson <rjw@apple.com>
835 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
837 Restrict our support for animated images to GIF. We used to
838 use presence of more than one image in a resource to determine
839 if an image should be animated. This caused us to animate icns!
840 If we ever support any other animated image formats we'll have
845 * WebCoreSupport.subproj/WebImageData.h:
846 * WebCoreSupport.subproj/WebImageData.m:
847 (-[WebImageData shouldAnimate]):
848 * WebCoreSupport.subproj/WebImageRenderer.m:
849 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
851 2004-12-09 Richard Williamson <rjw@apple.com>
853 Make WebPluginDatabase.h private (Dashboard needs SPI).
855 * WebKit.pbproj/project.pbxproj:
859 2004-12-09 Chris Blumenberg <cblu@apple.com>
861 Workaround for this exception being raised during download:
862 [WebDownload connection:willStopBufferingData:]: selector not recognized
866 * Misc.subproj/WebDownload.m:
867 (-[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.
869 2004-12-08 Richard Williamson <rjw@apple.com>
871 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
872 Account for scaling correctly when taking into account progressively
875 Also added implementation of repetition count for animated GIF images.
876 Also replaced strings with new constants from CFImageProperties.h
878 Also fixed possible problem with -(NSSize)size implementation,
879 relevant to Panther only.
883 * WebCoreSupport.subproj/WebImageData.m:
884 (-[WebImageData _floatProperty:type:at:]):
885 (-[WebImageData _frameDurationAt:]):
886 (-[WebImageData _repetitionCount]):
887 * WebCoreSupport.subproj/WebImageRenderer.m:
888 (-[WebImageRenderer size]):
890 2004-12-08 Chris Blumenberg <cblu@apple.com>
892 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
893 since 3828925 has been fixed.
897 * Plugins.subproj/WebNetscapePluginPackage.m:
898 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
899 * Plugins.subproj/npapi.m: removed NPN wrappers
900 * WebKit.exp: removed symbols
902 2004-12-08 Ken Kocienda <kocienda@apple.com>
906 * WebView.subproj/WebHTMLView.m:
907 (-[WebHTMLView drawRect:]): Work around for this bug:
908 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
909 The reason for the workaround is that this method is called explicitly from the code
910 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
911 This code change uses the passed-in rect when the count is zero.
913 2004-12-07 Administrator <cblu@apple.com>
916 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
920 * Misc.subproj/WebNSURLExtras.h:
921 * Misc.subproj/WebNSURLExtras.m:
922 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
923 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
925 2004-12-07 Richard Williamson <rjw@apple.com>
927 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
931 * WebCoreSupport.subproj/WebImageRenderer.m:
932 (-[WebImageRenderer size]):
934 2004-12-07 Richard Williamson <rjw@apple.com>
936 Support threaded image decoding on machines w/ >= 2 CPUs.
938 Reviewed by Maciej and Chris.
940 * Misc.subproj/WebKitSystemBits.h:
941 * Misc.subproj/WebKitSystemBits.m:
942 (WebSystemMainMemory):
944 * WebCoreSupport.subproj/WebImageData.h:
945 * WebCoreSupport.subproj/WebImageData.m:
946 (+[WebImageData initialize]):
947 (-[WebImageData init]):
948 (-[WebImageData _commonTermination]):
949 (-[WebImageData dealloc]):
950 (-[WebImageData _invalidateImages]):
951 (-[WebImageData _imageSourceOptions]):
952 (-[WebImageData imageAtIndex:]):
953 (-[WebImageData propertiesAtIndex:]):
954 (-[WebImageData _createImages]):
955 (-[WebImageData decodeData:isComplete:callback:]):
956 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
958 (-[WebImageData tileInRect:fromPoint:context:]):
959 (-[WebImageData isNull]):
960 (-[WebImageData size]):
961 (-[WebImageData _frameDurationAt:]):
962 (-[WebImageData _frameDuration]):
963 (+[WebImageData stopAnimationsInView:]):
964 (-[WebImageData addAnimatingRenderer:inView:]):
965 (-[WebImageData removeAnimatingRenderer:]):
966 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
967 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
968 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
969 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
970 (-[WebImageDecodeItem finalize]):
971 (-[WebImageDecodeItem dealloc]):
972 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
973 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
974 (decoderNotifications):
975 (+[WebImageDecoder initialize]):
976 (+[WebImageDecoder notifyMainThread]):
977 (+[WebImageDecoder sharedDecoder]):
978 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
979 (+[WebImageDecoder imageDecodesPending]):
980 (+[WebImageDecoder decodeComplete:status:]):
981 (-[WebImageDecoder init]):
982 (-[WebImageDecoder dealloc]):
983 (-[WebImageDecoder finalize]):
984 (-[WebImageDecoder removeItem]):
985 (-[WebImageDecoder addItem:]):
986 (-[WebImageDecoder decodeItem:]):
988 (startDecoderThread):
989 * WebCoreSupport.subproj/WebImageRenderer.m:
990 (-[WebImageRenderer initWithData:MIMEType:]):
991 (-[WebImageRenderer initWithContentsOfFile:]):
992 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
993 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
994 * WebKit.pbproj/project.pbxproj:
995 * WebView.subproj/WebImageRepresentation.m:
996 (-[WebImageRepresentation receivedData:withDataSource:]):
997 (-[WebImageRepresentation receivedError:withDataSource:]):
998 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
1000 2004-12-07 Chris Blumenberg <cblu@apple.com>
1002 Fix for performance regression.
1006 * WebCoreSupport.subproj/WebBridge.m:
1007 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
1009 2004-12-07 Chris Blumenberg <cblu@apple.com>
1011 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
1015 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1016 * WebView.subproj/WebMainResourceClient.m:
1017 (-[WebMainResourceClient addData:]): call super so it buffers the data
1019 2004-12-06 Richard Williamson <rjw@apple.com>
1021 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
1022 and resolve why metrics have changed for Courier. This may be caused by changes in
1027 * WebCoreSupport.subproj/WebTextRenderer.m:
1028 (_AppkitGetCGRenderingMode):
1032 2004-12-06 Chris Blumenberg <cblu@apple.com>
1034 Forgot to commit copied header.
1036 * DOM.subproj/DOMPrivate.h:
1038 2004-12-06 Chris Blumenberg <cblu@apple.com>
1040 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
1044 * WebView.subproj/WebBaseResourceHandleDelegate.h:
1045 * WebView.subproj/WebBaseResourceHandleDelegate.m:
1046 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
1047 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
1048 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
1049 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
1050 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
1051 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
1052 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
1053 * WebView.subproj/WebDataSource.m:
1054 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
1055 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
1056 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
1057 * WebView.subproj/WebDataSourcePrivate.h:
1058 * WebView.subproj/WebMainResourceClient.m:
1059 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
1060 (-[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
1061 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
1062 * WebView.subproj/WebResource.m:
1063 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
1064 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
1065 * WebView.subproj/WebResourcePrivate.h:
1067 2004-12-06 Richard Williamson <rjw@apple.com>
1069 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
1071 Use CGFontRef direction when both getting font metrics and drawing
1072 glyphs, instead on depending on [NSFont set].
1076 * WebCoreSupport.subproj/WebTextRenderer.m:
1080 2004-12-06 Ken Kocienda <kocienda@apple.com>
1082 Reviewed by Harrison
1086 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
1088 * WebView.subproj/WebHTMLView.m:
1089 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
1092 2004-12-04 Darin Adler <darin@apple.com>
1096 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
1097 - 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
1098 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
1100 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
1101 * WebView.subproj/WebHTMLView.m:
1102 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
1103 tracking number of 0, which means no existing tracking number.
1104 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
1105 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
1106 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1107 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
1108 field since that field is set up too early in the mouse down event handling process.
1109 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
1111 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
1113 * WebCoreSupport.subproj/WebBridge.m:
1114 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1115 Changed code around so that it won't try to create a WebResource when the load fails.
1117 - moved next/previous links into private structure with the rest of WebFrame fields
1118 (We have a rule against putting new fields into obejcts that are part of our public API.)
1120 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
1121 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
1122 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
1123 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
1124 (-[WebFrame _removeChild:]): Ditto.
1125 (-[WebFrame _nextFrameWithWrap:]): Ditto.
1126 (-[WebFrame _previousFrameWithWrap:]): Ditto.
1128 2004-12-04 Chris Blumenberg <cblu@apple.com>
1131 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1132 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1133 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
1134 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
1136 Reviewed by darin, rjw, kocienda.
1138 * WebCoreSupport.subproj/WebBridge.m:
1139 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
1140 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1141 * WebCoreSupport.subproj/WebSubresourceClient.m:
1142 (-[WebSubresourceClient didFinishLoading]):
1143 * WebView.subproj/WebFrame.m:
1144 (-[WebFrame _opened]):
1145 (-[WebFrame _internalLoadDelegate]):
1146 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
1147 * WebView.subproj/WebFrameInternal.h:
1149 2004-12-04 Darin Adler <darin@apple.com>
1153 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
1155 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
1156 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
1157 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
1159 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
1163 2004-12-03 Ken Kocienda <kocienda@apple.com>
1167 Roll out some recent changes by Chris that caused a performance regression.
1168 Fix is in hand, but it is a little risky this close to a submission. So,
1169 we have decided to roll back the change with the regression and roll in
1170 the new code after we submit.
1172 * WebCoreSupport.subproj/WebBridge.m:
1173 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
1174 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1175 * WebCoreSupport.subproj/WebSubresourceClient.m:
1176 (-[WebSubresourceClient didFinishLoading]):
1177 * WebView.subproj/WebFrame.m:
1178 (-[WebFrame _opened]):
1179 (-[WebFrame _internalLoadDelegate]):
1180 * WebView.subproj/WebFrameInternal.h:
1182 2004-12-02 Richard Williamson <rjw@apple.com>
1184 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
1186 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
1187 the b/f cache won't incorrectly trash the previous state when restoring.
1191 * WebView.subproj/WebFrame.m:
1192 (-[WebFrame _setState:]):
1194 2004-12-02 Ken Kocienda <kocienda@apple.com>
1198 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
1199 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
1201 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
1202 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
1203 did a conversion of the passed-in point to the document view's coordinate space, whereas
1204 editableDOMRangeForPoint: did not. Now it does.
1206 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
1207 attempts to work around this problem (unsuccessfully), and actually manages to block the
1208 real fix (which needs to be in WebKit).
1210 * WebView.subproj/WebView.m:
1211 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
1213 2004-12-02 Richard Williamson <rjw@apple.com>
1215 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
1217 We have a hack to replace Times with Times New Roman if we fail
1218 to setup Times. If we then fail to setup Times New Roman we
1219 don't attempt to further fallback to the system font. Added
1220 that additional fallback.
1224 * WebCoreSupport.subproj/WebTextRenderer.m:
1225 (+[WebTextRenderer webFallbackFontFamily]):
1226 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1228 2004-12-02 Richard Williamson <rjw@apple.com>
1230 Fixed build problem on Tiger8A821. Private macro and function
1231 we were using have been deprecated,
1235 * WebCoreSupport.subproj/WebTextRenderer.m:
1236 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
1238 2004-12-01 Chris Blumenberg <cblu@apple.com>
1240 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
1241 Also improved and cleaned-up the plug-in stream termination code.
1245 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1246 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1247 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
1248 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
1249 (-[WebBaseNetscapePluginStream errorForReason:]): new
1250 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
1251 (-[WebBaseNetscapePluginStream setMIMEType:]): new
1252 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
1253 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
1254 (-[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
1255 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
1256 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
1257 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
1258 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
1259 * Plugins.subproj/WebBaseNetscapePluginView.m:
1260 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
1261 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1262 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
1263 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
1264 * Plugins.subproj/WebNetscapePluginStream.m:
1265 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
1266 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
1267 (-[WebNetscapePluginConnectionDelegate isDone]): new
1268 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
1269 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
1271 2004-12-01 Kevin Decker <kdecker@apple.com>
1273 Reviewed by Harrison.
1275 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
1277 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
1279 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
1280 * WebView.subproj/WebFrame.m:
1281 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
1282 (-[WebFrame _removeChild:]): ditto
1283 (-[WebFrame _nextSibling]): just return the pointer now
1284 (-[WebFrame _previousSibling]): ditto
1286 2004-11-30 Chris Blumenberg <cblu@apple.com>
1289 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1290 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1294 * WebCoreSupport.subproj/WebBridge.m:
1295 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
1296 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
1297 * WebCoreSupport.subproj/WebSubresourceClient.m:
1298 (-[WebSubresourceClient didFinishLoading]): call renamed method
1299 * WebView.subproj/WebFrame.m:
1300 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
1301 (-[WebFrame _internalLoadDelegate]):
1302 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
1303 * WebView.subproj/WebFrameInternal.h:
1305 2004-11-29 Darin Adler <darin@apple.com>
1309 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
1310 without first checking if it's implemented
1312 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
1313 Implemented. Calls floatValue on the scroller.
1315 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1317 2004-11-23 Chris Blumenberg <cblu@apple.com>
1319 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
1323 * Misc.subproj/WebIconDatabase.h:
1324 * Misc.subproj/WebIconDatabase.m:
1325 (-[WebIconDatabase init]): don't create dictionaries if disabled
1326 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
1327 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
1328 (-[WebIconDatabase retainIconForURL:]): return if disabled
1329 (-[WebIconDatabase releaseIconForURL:]): ditto
1330 (-[WebIconDatabase delayDatabaseCleanup]): ditto
1331 (-[WebIconDatabase allowDatabaseCleanup]): ditto
1332 (-[WebIconDatabase _isEnabled]): new
1333 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
1334 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
1335 (-[WebIconDatabase _setIconURL:forURL:]): ditto
1336 (-[WebIconDatabase _createFileDatabase]): tweak
1337 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
1338 * Misc.subproj/WebIconDatabasePrivate.h:
1339 * Misc.subproj/WebIconLoader.m:
1340 * WebView.subproj/WebDataSource.m:
1341 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
1342 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
1344 2004-11-22 David Hyatt <hyatt@apple.com>
1346 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
1350 * WebCoreSupport.subproj/WebBridge.m:
1351 (-[WebBridge getObjectCacheSize]):
1353 2004-11-22 Richard Williamson <rjw@apple.com>
1355 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
1357 John found this problem and suggested the fix.
1359 Reviewed by John Louch.
1361 * WebView.subproj/WebView.m:
1362 (-[WebView setPreferences:]):
1364 2004-11-22 Ken Kocienda <kocienda@apple.com>
1366 Reviewed by Harrison
1368 * WebCoreSupport.subproj/WebBridge.m:
1369 (-[WebBridge canPaste]): Call WebView _canPaste.
1370 * WebView.subproj/WebView.m:
1371 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
1372 answers right now. Returns NO otherwise.
1373 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
1375 2004-11-22 Maciej Stachowiak <mjs@apple.com>
1377 Back out the window closing fix, it seems to be causing crashes.
1379 * WebView.subproj/WebFrame.m:
1380 (-[WebFrame _detachFromParent]):
1382 2004-11-20 Maciej Stachowiak <mjs@apple.com>
1386 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
1388 * Misc.subproj/WebNSURLExtras.h:
1389 * Misc.subproj/WebNSURLExtras.m:
1390 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
1391 string is already in user-visible form (i.e. converting it to an
1392 NSURL and then back via _web_userVisibleString would not change
1395 2004-11-19 Maciej Stachowiak <mjs@apple.com>
1399 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
1401 * WebView.subproj/WebFrame.m:
1402 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
1403 to make window and tab closing more responsive - this way the deallocation happens
1404 after the windoow or tab appears to close.
1408 2004-11-19 Chris Blumenberg <cblu@apple.com>
1410 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
1414 * Plugins.subproj/WebBaseNetscapePluginView.m:
1415 (-[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
1417 2004-11-19 Ken Kocienda <kocienda@apple.com>
1419 Reviewed by Harrison
1423 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
1425 * WebCoreSupport.subproj/WebBridge.m:
1426 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
1427 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
1429 (-[WebBridge respondToChangedSelection]): Ditto.
1430 * WebView.subproj/WebView.m:
1431 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
1432 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
1433 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
1434 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
1436 2004-11-18 John Sullivan <sullivan@apple.com>
1440 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
1441 parsing, reading and writing is faster
1443 * History.subproj/WebHistory.m:
1444 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
1445 convert dictionary to binary data before saving
1447 2004-11-18 Chris Blumenberg <cblu@apple.com>
1449 * WebView.subproj/WebHTMLRepresentation.m:
1450 (-[WebHTMLRepresentation currentForm]): removed stray ";"
1452 2004-11-18 Chris Blumenberg <cblu@apple.com>
1454 Fixed development build failure.
1456 * Misc.subproj/WebIconDatabase.m:
1457 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
1459 2004-11-18 Chris Blumenberg <cblu@apple.com>
1461 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
1463 Reviewed by sullivan.
1465 * Misc.subproj/WebIconDatabase.m:
1466 (+[WebIconDatabase sharedIconDatabase]): added timing code
1467 (-[WebIconDatabase _clearDictionaries]): new
1468 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1469 (-[WebIconDatabase _updateFileDatabase]): fixed comment
1470 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1471 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
1472 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
1474 2004-11-17 Richard Williamson <rjw@apple.com>
1476 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
1478 Correctly account for scaled image size and clipping.
1482 * WebCoreSupport.subproj/WebImageData.h:
1483 * WebCoreSupport.subproj/WebImageData.m:
1484 * WebCoreSupport.subproj/WebImageRenderer.m:
1485 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1487 2004-11-17 Maciej Stachowiak <mjs@apple.com>
1489 Reviewed by Richard.
1491 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
1494 * Misc.subproj/WebNSURLExtras.m:
1495 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
1496 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
1497 check for localhost, no longer needed.
1499 2004-11-17 Richard Williamson <rjw@apple.com>
1501 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
1503 and added call to SPI for
1505 <rdar://problem/3884448> WebKit should turn on CG local font cache
1507 currently disabled until a Tiger build shows up with the SPI.
1509 Reviewed by David Harrison.
1511 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1512 (+[WebTextRendererFactory createSharedFactory]):
1514 2004-11-17 Richard Williamson <rjw@apple.com>
1516 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
1517 Fixed <rdar://problem/3884088> Crash terminating image load
1519 Also added code to turn off color correction for images created
1520 via CGImageSources. This code is currently disabled because CG
1521 can't change the color space of images loaded progressively.
1522 Further, according to Dave Hayward, CG will no longer attempt
1523 to color correct images that don't have embedded profiles as of
1528 * WebCoreSupport.subproj/WebImageData.m:
1529 (-[WebImageData _commonTermination]):
1530 (-[WebImageData dealloc]):
1531 (-[WebImageData _invalidateImageProperties]):
1532 (-[WebImageData imageAtIndex:]):
1533 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1534 (-[WebImageData propertiesAtIndex:]):
1536 2004-11-16 Chris Blumenberg <cblu@apple.com>
1538 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
1542 * WebView.subproj/WebPDFView.m:
1543 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
1544 (-[WebPDFView menuForEvent:]): use the PDFView subview
1546 2004-11-15 Chris Blumenberg <cblu@apple.com>
1548 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
1552 * WebKit.pbproj/project.pbxproj:
1553 * WebView.subproj/WebPDFRepresentation.m:
1554 (+[WebPDFRepresentation PDFDocumentClass]): new
1555 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
1556 * WebView.subproj/WebPDFView.h:
1557 * WebView.subproj/WebPDFView.m:
1558 (+[WebPDFView PDFKitBundle]): new
1559 (+[WebPDFView PDFViewClass]): new
1560 (-[WebPDFView initWithFrame:]): create a PDFView subview
1561 (-[WebPDFView dealloc]): release the PDFView subview
1562 (-[WebPDFView PDFSubview]): new
1564 2004-11-15 Chris Blumenberg <cblu@apple.com>
1566 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
1570 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
1572 2004-11-15 Richard Williamson <rjw@apple.com>
1574 Fixed missing retain of image property data.
1578 * WebCoreSupport.subproj/WebImageData.h:
1579 * WebCoreSupport.subproj/WebImageData.m:
1580 (-[WebImageData dealloc]):
1581 (-[WebImageData _invalidateImages]):
1582 (-[WebImageData imageAtIndex:]):
1583 (-[WebImageData propertiesAtIndex:]):
1584 (-[WebImageData _frameDuration]):
1586 2004-11-15 Richard Williamson <rjw@apple.com>
1588 Cache image properties and frame durations.
1589 Create NSImage and TIFF representations from CGImage, lazily, as needed for
1590 dragging and element info dictionary.
1594 * WebCoreSupport.subproj/WebImageData.h:
1595 * WebCoreSupport.subproj/WebImageData.m:
1596 (-[WebImageData dealloc]):
1597 (-[WebImageData size]):
1598 (-[WebImageData propertiesAtIndex:]):
1599 (-[WebImageData _frameDurationAt:]):
1600 (-[WebImageData _frameDuration]):
1601 * WebCoreSupport.subproj/WebImageRenderer.h:
1602 * WebCoreSupport.subproj/WebImageRenderer.m:
1603 (-[WebImageRenderer dealloc]):
1604 (-[WebImageRenderer TIFFRepresentation]):
1605 (-[WebImageRenderer image]):
1607 2004-11-14 Maciej Stachowiak <mjs@apple.com>
1611 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
1613 * Misc.subproj/WebIconDatabase.m:
1614 (-[WebIconDatabase init]):
1615 (-[WebIconDatabase _setIconURL:forURL:]):
1616 (-[WebIconDatabase _retainIconForIconURLString:]):
1617 (-[WebIconDatabase _releaseIconForIconURLString:]):
1618 (-[WebIconDatabase _retainFutureIconForURL:]):
1619 (-[WebIconDatabase _releaseFutureIconForURL:]):
1620 * Misc.subproj/WebIconDatabasePrivate.h:
1622 2004-11-15 John Sullivan <sullivan@apple.com>
1626 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
1628 * WebView.subproj/WebArchive.m:
1629 (-[WebArchive _propertyListRepresentation]):
1630 the array holding the subresources was not released after use, oops!
1632 2004-11-12 Chris Blumenberg <cblu@apple.com>
1634 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
1638 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1639 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
1643 2004-11-11 Richard Williamson <rjw@apple.com>
1645 Report actual size (not partial size) but use partial size
1650 * WebCoreSupport.subproj/WebImageData.h:
1651 * WebCoreSupport.subproj/WebImageData.m:
1652 (-[WebImageData size]):
1654 2004-11-11 Darin Adler <darin@apple.com>
1658 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
1659 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
1660 with a subsequent change to WebCore.
1662 * WebCoreSupport.subproj/WebBridge.m:
1663 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
1665 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
1666 (_getPostSmartSet): Ditto.
1668 * WebView.subproj/WebHTMLView.m:
1669 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
1670 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
1671 Set firstResponderAtMouseDownTime to the first responder.
1672 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
1673 the mouseDown event.
1674 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
1675 firstResponderAtMouseDownTime field.
1676 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
1677 and _wasFirstResponderAtMouseDownTime method.
1679 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1681 2004-11-11 Richard Williamson <rjw@apple.com>
1685 Work-around to minimize impact of 3876764. Cache frame durations
1686 after first call. So we'll still leak 1K for each animated
1687 image, but that's better than 1K each time the frame is drawn!
1688 * WebCoreSupport.subproj/WebImageData.h:
1689 * WebCoreSupport.subproj/WebImageData.m:
1690 (-[WebImageData _frameDuration]):
1692 Simplified animation cleanup code. Fixed leak due to
1693 incorrect key passed to CFDictionaryRemoveValue.
1695 (+[WebImageData stopAnimationsInView:]):
1696 (-[WebImageData addAnimatingRenderer:inView:]):
1697 (-[WebImageData removeAnimatingRenderer:]):
1698 (-[WebImageData _stopAnimation]):
1700 2004-11-11 Darin Adler <darin@apple.com>
1704 - 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
1706 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
1707 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
1708 using the passed-in rectangle.
1710 2004-11-11 Richard Williamson <rjw@apple.com>
1712 Work-arounds to make new ImageIO code work correctly. Still
1713 disabled for now. Requires at least Tiger 300. Testing does
1714 show a 3% improvement in PLT tests! That's huge!
1718 * WebCoreSupport.subproj/WebImageData.m:
1719 (-[WebImageData imageAtIndex:]):
1720 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1721 (-[WebImageData isNull]):
1723 2004-11-10 Chris Blumenberg <cblu@apple.com>
1725 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
1729 * Misc.subproj/WebFileDatabase.m:
1730 (-[WebFileDatabase objectForKey:]): added logging code
1731 * Misc.subproj/WebIconDatabase.m:
1732 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
1733 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
1734 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
1736 2004-11-09 David Hyatt <hyatt@apple.com>
1738 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
1739 loading large local files.
1743 * WebCoreSupport.subproj/WebBridge.m:
1744 (-[WebBridge tokenizerProcessedData]):
1745 * WebView.subproj/WebDataSource.m:
1746 (-[WebDataSource _receivedMainResourceError:complete:]):
1747 (-[WebDataSource isLoading]):
1749 2004-11-09 Richard Williamson <rjw@apple.com>
1751 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
1753 Add "text/pdf" as an acceptable PDF MIME type.
1757 * WebView.subproj/WebDataSource.m:
1758 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1759 * WebView.subproj/WebFrameView.m:
1760 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1762 2004-11-08 Chris Blumenberg <cblu@apple.com>
1764 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
1768 * WebCoreSupport.subproj/WebBridge.m:
1769 (-[WebBridge control:textView:shouldHandleEvent:]): new
1770 * WebView.subproj/WebFormDelegate.h:
1771 * WebView.subproj/WebFormDelegate.m:
1772 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
1774 2004-11-05 Chris Blumenberg <cblu@apple.com>
1776 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
1778 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
1780 2004-11-05 Chris Blumenberg <cblu@apple.com>
1782 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
1786 * WebCoreSupport.subproj/WebBridge.m:
1787 (_getPreSmartSet): copied from AppKit
1788 (_getPostSmartSet): ditto
1789 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
1791 2004-11-05 Richard Williamson <rjw@apple.com>
1793 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
1795 Reviewed by Maciej (a long time ago).
1797 * WebView.subproj/WebFrame.m:
1798 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1800 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
1802 As suggested in the bug, the fix is to actually call
1803 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
1804 exporting the symbol.
1808 * Carbon.subproj/CarbonUtils.m:
1810 * Carbon.subproj/HIWebView.m:
1811 * WebKit.pbproj/project.pbxproj:
1815 2004-11-05 Darin Adler <darin@apple.com>
1819 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
1821 * WebView.subproj/WebHTMLView.m:
1822 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
1823 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
1824 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
1825 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
1826 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1828 2004-11-04 David Hyatt <hyatt@apple.com>
1830 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
1832 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
1833 totally bogus in both CG and AppKit.
1837 * WebCoreSupport.subproj/WebTextRenderer.m:
1838 (-[WebTextRenderer xHeight]):
1839 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
1840 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
1841 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1842 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
1843 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
1845 2004-11-02 Maciej Stachowiak <mjs@apple.com>
1847 Reviewed by Dave Hyatt (when I originally coded it).
1849 Redid WebKit part of fix for:
1851 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1853 * WebView.subproj/WebHTMLView.m:
1854 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1855 and translate to screen coordinates.
1857 2004-11-02 John Sullivan <sullivan@apple.com>
1861 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
1862 very large bookmarks menu, so I cached this one NSFont object.
1864 * Misc.subproj/WebStringTruncator.m:
1866 new function, caches the font used when no font is specified
1867 (+[WebStringTruncator centerTruncateString:toWidth:]):
1870 2004-11-02 Ken Kocienda <kocienda@apple.com>
1874 WebCore now implements a command to insert a block in response to typing a return key, and
1875 some names were improved in the course of this work.
1877 * WebView.subproj/WebHTMLView.m:
1878 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
1879 (-[WebHTMLView insertLineBreak:]): New method.
1880 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
1881 * WebView.subproj/WebView.m:
1885 2004-10-29 Chris Blumenberg <cblu@apple.com>
1887 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
1889 2004-10-29 Darin Adler <darin@apple.com>
1891 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
1893 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
1894 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
1895 report to match the contents of the file.
1897 2004-10-27 Ken Kocienda <kocienda@apple.com>
1901 Added new SPI for Mail so it can get the behavior it needs when the user hits
1902 the return key with the selection in quoted content.
1904 * WebView.subproj/WebView.m
1905 * WebView.subproj/WebViewPrivate.h
1907 2004-10-26 Chris Blumenberg <cblu@apple.com>
1909 Fixed exception that Darin encountered in Mail.
1913 * Plugins.subproj/WebPluginController.m:
1914 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
1916 2004-10-25 Chris Blumenberg <cblu@apple.com>
1918 Darin made an internal notification have the Web prefix.
1922 * Plugins.subproj/WebBaseNetscapePluginView.m:
1923 (-[WebBaseNetscapePluginView addWindowObservers]):
1924 (-[WebBaseNetscapePluginView removeWindowObservers]):
1925 (ConsoleConnectionChangeNotifyProc):
1927 2004-10-25 John Sullivan <sullivan@apple.com>
1931 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
1932 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
1934 * History.subproj/WebHistoryItem.m:
1935 removed notificationsSuppressed ivar from private data object
1936 (-[WebHistoryItem setAlternateTitle:]):
1937 remove notificationsSuppressed guard
1938 (-[WebHistoryItem setURLString:]):
1940 (-[WebHistoryItem setOriginalURLString:]):
1942 (-[WebHistoryItem setTitle:]):
1944 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
1946 (-[WebHistoryItem setNotificationsSuppressed:]):
1948 (-[WebHistoryItem notificationsSuppressed]):
1951 * History.subproj/WebHistoryItemPrivate.h:
1952 removed notificationsSuppressed and setNotificationsSuppressed
1954 2004-10-22 Chris Blumenberg <cblu@apple.com>
1956 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
1960 * WebView.subproj/WebFrameView.m:
1961 (+[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
1965 2004-10-22 Ken Kocienda <kocienda@apple.com>
1969 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
1971 2004-10-21 Darin Adler <darin@apple.com>
1975 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
1977 * WebCoreSupport.subproj/WebImageRenderer.m:
1978 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
1979 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
1980 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
1981 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
1982 or retains self and returns self.
1984 2004-10-20 Darin Adler <darin@apple.com>
1988 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
1990 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
1991 rather than NSImage and contain a pointer to a WebInternalImage.
1992 * WebCoreSupport.subproj/WebImageRenderer.m:
1993 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
1994 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
1995 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
1996 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
1997 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
1998 (-[WebImageRenderer image]): Added. Returns pointer to image.
1999 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
2000 (-[WebImageRenderer TIFFRepresentation]): Ditto.
2001 (-[WebImageRenderer frameCount]): Ditto.
2002 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
2003 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
2004 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
2005 (-[WebImageRenderer size]): Ditto.
2006 (-[WebImageRenderer resize:]): Ditto.
2007 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
2008 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
2009 (-[WebImageRenderer stopAnimation]): Ditto.
2010 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
2011 (-[WebImageRenderer isNull]): Ditto.
2012 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
2013 (-[WebImageRenderer increaseUseCount]): Ditto.
2014 (-[WebImageRenderer decreaseUseCount]): Ditto.
2015 (-[WebImageRenderer flushRasterCache]): Ditto.
2016 (-[WebImageRenderer imageRef]): Ditto.
2017 (-[WebImageRenderer copyWithZone:]): Ditto.
2019 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
2020 Update for slight changes to WebImageRenderer API.
2021 * WebCoreSupport.subproj/WebImageRendererFactory.m:
2022 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
2023 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
2024 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
2025 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
2026 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
2028 2004-10-20 Chris Blumenberg <cblu@apple.com>
2030 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
2034 * Plugins.subproj/WebBasePluginPackage.h:
2035 * Plugins.subproj/WebBasePluginPackage.m:
2036 (-[WebBasePluginPackage isJavaPlugIn]): new
2037 * Plugins.subproj/WebPluginDatabase.m:
2038 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
2040 2004-10-20 Chris Blumenberg <cblu@apple.com>
2043 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
2044 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
2048 * Plugins.subproj/WebPluginDocumentView.m:
2049 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
2050 * Plugins.subproj/WebPluginPackage.m:
2051 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
2052 * WebCoreSupport.subproj/WebBridge.m:
2053 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
2054 * WebKit.pbproj/project.pbxproj:
2056 2004-10-19 Vicki Murley <vicki@apple.com>
2058 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
2060 * WebKit.pbproj/project.pbxproj:
2062 2004-10-19 Darin Adler <darin@apple.com>
2064 Change suggested by Maciej during code review.
2066 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
2067 of private memory, and doesn't require an initialization function.
2068 (+[WebTextRenderer initialize]): Removed initialization.
2070 2004-10-19 Darin Adler <darin@apple.com>
2074 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
2075 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
2076 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
2078 * WebCoreSupport.subproj/WebTextRenderer.m:
2079 (isSpace): Merged in isAlternateSpace, never used.
2080 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
2081 since globals start out zeroed automatically.
2082 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
2083 Also removed explicit compare with 1; check for non-zero is just fine.
2084 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
2085 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
2086 the underlying problem.
2087 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
2088 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
2089 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
2090 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
2091 \n and non-break spaces.
2092 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
2093 are handled by the CG case.
2094 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
2095 would not handle cases with '\n' coming across from WebCore properly.
2097 2004-10-18 Chris Blumenberg <cblu@apple.com>
2099 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
2103 * Plugins.subproj/WebNetscapePluginPackage.m:
2104 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
2106 2004-10-18 Chris Blumenberg <cblu@apple.com>
2108 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
2110 2004-10-18 John Sullivan <sullivan@apple.com>
2114 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
2116 * WebView.subproj/WebHTMLView.m:
2117 (-[WebHTMLView doCommandBySelector:]):
2118 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
2122 2004-10-14 Ken Kocienda <kocienda@apple.com>
2126 Final fix for these bugs:
2128 <rdar://problem/3806306> HTML editing puts spaces at start of line
2129 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
2131 This change sets some new CSS properties that have been added to WebCore to
2132 enable whitespace-handling and line-breaking features that make WebView work
2133 more like a text editor.
2135 * WebView.subproj/WebHTMLRepresentation.m:
2136 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
2137 CSS properties when loading an HTML document into a WebView that is editable.
2138 * WebView.subproj/WebView.m:
2139 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
2140 document being displayed.
2142 2004-10-14 Richard Williamson <rjw@apple.com>
2144 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
2146 Careful testing shows a small performance gain on very large text files.
2147 I saw large variations in timings, but taking the lowest PLT timing
2148 with and without this change showed a 0.9% gain. Note the cvs-base showed
2149 no improvement. The improvement was for the large page attached to the
2154 * WebCoreSupport.subproj/WebTextRenderer.m:
2155 (setupRoundingHackCharacterTable):
2156 (isRoundingHackCharacter):
2157 (+[WebTextRenderer initialize]):
2159 2004-10-14 Ken Kocienda <kocienda@apple.com>
2163 Fix build breakage. These three functions need to return the values from their
2164 calls to WebCGColorSpaceCreateXXX.
2166 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2167 (-[WebGraphicsBridge createRGBColorSpace])
2168 (-[WebGraphicsBridge createGrayColorSpace])
2169 (-[WebGraphicsBridge createCMYKColorSpace])
2171 2004-10-13 Richard Williamson <rjw@apple.com>
2173 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
2175 In practice I saw NO improvement in performance. Although,
2176 special-case tests could possibly show improvement. Anyway,
2177 the changes don't hurt performance.
2181 * Misc.subproj/WebNSURLExtras.m:
2182 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
2184 2004-10-13 Maciej Stachowiak <mjs@apple.com>
2188 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
2190 - I fixed this by turning off all colormatching for WebKit
2191 content. We might turn it back on later. For now, it's possible to
2192 turn it on temporarily by defining COLORMATCH_EVERYTHING.
2194 * WebCoreSupport.subproj/WebGraphicsBridge.m:
2195 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
2196 (-[WebGraphicsBridge additionalPatternPhase]):
2197 (-[WebGraphicsBridge createRGBColorSpace]):
2198 (-[WebGraphicsBridge createGrayColorSpace]):
2199 (-[WebGraphicsBridge createCMYKColorSpace]):
2200 * WebCoreSupport.subproj/WebImageData.m:
2201 * WebCoreSupport.subproj/WebImageRenderer.h:
2202 * WebCoreSupport.subproj/WebImageRenderer.m:
2203 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
2204 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
2205 (-[WebImageRenderer _adjustColorSpace]):
2206 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
2207 (-[WebImageRenderer tileInRect:fromPoint:context:]):
2209 (WebCGColorSpaceCreateRGB):
2210 (WebCGColorSpaceCreateGray):
2211 (WebCGColorSpaceCreateCMYK):
2214 2004-10-13 Richard Williamson <rjw@apple.com>
2216 Don't fill background with transparency unless debug flag
2221 * WebView.subproj/WebHTMLView.m:
2222 (-[WebHTMLView drawRect:]):
2224 2004-10-12 Richard Williamson <rjw@apple.com>
2226 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
2230 * WebView.subproj/WebHTMLView.m:
2231 (-[WebHTMLView _transparentBackground]):
2232 (-[WebHTMLView _setTransparentBackground:]):
2233 (-[WebHTMLView drawRect:]):
2234 * WebView.subproj/WebHTMLViewInternal.h:
2235 * WebView.subproj/WebHTMLViewPrivate.h:
2237 2004-10-11 Chris Blumenberg <cblu@apple.com>
2239 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
2243 * WebView.subproj/WebHTMLView.m:
2244 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
2245 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
2246 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
2247 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
2249 2004-10-11 Darin Adler <darin@apple.com>
2253 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
2255 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
2257 2004-10-11 Darin Adler <darin@apple.com>
2261 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
2263 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
2264 Do nothing if filename is the same as before.
2266 2004-10-11 Ken Kocienda <kocienda@apple.com>
2270 * WebView.subproj/WebHTMLView.m:
2271 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
2272 now takes an affinity: caretRectAtNode:offset:affinity:.
2274 2004-10-10 Ken Kocienda <kocienda@apple.com>
2280 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
2282 * WebView.subproj/WebHTMLView.m:
2283 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
2284 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
2285 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
2286 else do what we did before.
2287 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
2288 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
2290 2004-10-11 Darin Adler <darin@apple.com>
2294 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
2296 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
2297 Don't send an event through WebCore if it has already been through once.
2299 2004-10-10 John Sullivan <sullivan@apple.com>
2303 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
2305 * WebView.subproj/WebMainResourceClient.m:
2306 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
2307 add retain/autorelease to the request returned from call to super. In this case, the return value
2308 was being dealloc'ed before being returned.
2310 2004-10-09 Chris Blumenberg <cblu@apple.com>
2313 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
2314 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
2318 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2319 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
2320 * Plugins.subproj/WebNetscapePluginStream.m:
2321 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2322 * WebView.subproj/WebFramePrivate.h:
2323 * WebView.subproj/WebFrameView.m:
2324 (-[WebFrameView _bridge]): new
2325 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
2326 (-[WebFrameView scrollToEndOfDocument:]): ditto
2327 (-[WebFrameView _pageVertically:]): ditto
2328 (-[WebFrameView _pageHorizontally:]): ditto
2329 (-[WebFrameView _scrollLineVertically:]): ditto
2330 (-[WebFrameView _scrollLineHorizontally:]): ditto
2331 * WebView.subproj/WebHTMLView.m:
2332 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
2336 2004-10-05 Chris Blumenberg <cblu@apple.com>
2338 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
2342 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2343 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
2344 * Plugins.subproj/WebNetscapePluginStream.m:
2345 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2347 2004-10-05 John Sullivan <sullivan@apple.com>
2349 * WebCoreSupport.subproj/WebBridge.m:
2350 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2351 initialize "arguments" var to nil to satisfy compiler on deployment build.
2353 2004-10-05 Richard Williamson <rjw@apple.com>
2355 Fixed <rdar://problem/3825442> first click lost for Dashboard
2356 Allow dashboard to force acceptsFirstMouse:
2360 * WebView.subproj/WebHTMLView.m:
2361 (-[WebHTMLView acceptsFirstMouse:]):
2362 * WebView.subproj/WebView.m:
2363 (-[WebView _dashboardBehavior:]):
2364 * WebView.subproj/WebViewInternal.h:
2365 * WebView.subproj/WebViewPrivate.h:
2367 * WebCoreSupport.subproj/WebImageRenderer.h:
2370 2004-10-05 Chris Blumenberg <cblu@apple.com>
2372 Fixed: <rdar://problem/3760920> Need to record plugin view instances
2376 * Plugins.subproj/WebPluginController.h:
2377 * Plugins.subproj/WebPluginController.m:
2378 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
2379 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
2380 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
2381 * Plugins.subproj/WebPluginDocumentView.m:
2382 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
2383 * WebCoreSupport.subproj/WebBridge.m:
2384 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
2385 * WebView.subproj/WebFrame.m:
2386 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
2387 * WebView.subproj/WebHTMLView.m:
2388 (-[WebHTMLView addSubview:]): ditto
2390 2004-10-05 David Hyatt <hyatt@apple.com>
2392 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
2393 needs to try to fill gaps around text.
2395 Reviewed by kocienda
2397 * WebCoreSupport.subproj/WebTextRenderer.m:
2398 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
2399 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2401 2004-10-05 Darin Adler <darin@apple.com>
2405 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
2407 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
2408 setFlipped that fixes the problem, even though I don't know why.
2410 2004-10-04 Darin Adler <darin@apple.com>
2414 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
2416 * WebView.subproj/WebHTMLView.m:
2417 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
2418 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
2419 this to have the word "start" in it.
2420 (-[WebHTMLView copyFont:]): Updated for name change.
2422 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2424 2004-10-04 Chris Blumenberg <cblu@apple.com>
2426 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
2428 2004-10-04 Chris Blumenberg <cblu@apple.com>
2430 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
2431 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
2435 * Plugins.subproj/WebBaseNetscapePluginStream.h:
2436 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
2437 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
2438 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
2439 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2440 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
2441 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
2442 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
2443 (-[WebBaseNetscapePluginStream finalize]): added assert
2444 (-[WebBaseNetscapePluginStream setRequestURL:]): new
2445 (-[WebBaseNetscapePluginStream setResponseURL:]): new
2446 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
2447 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
2448 (-[WebBaseNetscapePluginStream destroyStream]):
2449 - do nothing if terminated
2450 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
2451 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
2452 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
2453 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
2454 * Plugins.subproj/WebBaseNetscapePluginView.h:
2455 - added observingFrameLoadNotification boolean
2456 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
2457 * Plugins.subproj/WebBaseNetscapePluginView.m:
2458 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
2459 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
2460 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
2461 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
2462 (-[WebBaseNetscapePluginView dealloc]): ditto
2463 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
2464 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2465 - call NPP_URLNotify depending of value of sendNotification
2466 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
2467 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
2468 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
2469 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
2470 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
2471 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
2472 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
2473 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
2474 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
2475 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
2476 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
2477 (-[WebPluginRequest sendNotification]): new
2478 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
2479 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2480 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
2481 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2482 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
2483 * Plugins.subproj/WebNetscapePluginStream.h:
2484 * Plugins.subproj/WebNetscapePluginStream.m:
2485 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
2486 (-[WebNetscapePluginStream dealloc]): use renamed ivar
2487 (-[WebNetscapePluginStream start]): ditto
2488 * WebView.subproj/WebFrame.m:
2489 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
2490 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
2491 (-[WebFrame _loadItem:withLoadType:]): ditto
2492 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
2493 (-[WebFrame _setInternalLoadDelegate:]): new
2494 (-[WebFrame _internalLoadDelegate]): new
2495 * WebView.subproj/WebFrameInternal.h:
2496 * WebView.subproj/WebFramePrivate.h:
2498 2004-10-04 Chris Blumenberg <cblu@apple.com>
2500 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
2502 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.
2506 * Plugins.subproj/WebBaseNetscapePluginView.m:
2507 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
2509 2004-10-04 Darin Adler <darin@apple.com>
2513 - fixed a potential storage leak when we turn on CGImageRef image rendering
2515 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
2516 by adding [super dealloc], but leak was not real yet because the code is commented out.
2518 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
2519 Copy/paste style does not set color in Mail compose window
2521 * WebView.subproj/WebHTMLView.m:
2522 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
2523 For now I haven't added any yet.
2524 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
2525 (-[WebHTMLView _shadowAsString:]): Ditto.
2526 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
2528 2004-09-30 Richard Williamson <rjw@apple.com>
2530 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
2532 Also changed dashboard regions dictionary to use "control"
2533 for scroller region label, instead of "scroller, per
2538 * Plugins.subproj/npruntime.h:
2539 * WebView.subproj/WebView.m:
2540 (-[WebView _addScrollerDashboardRegions:from:]):
2542 2004-09-30 Chris Blumenberg <cblu@apple.com>
2544 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
2548 * Plugins.subproj/WebBaseNetscapePluginView.m:
2549 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
2550 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
2551 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
2552 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
2553 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
2554 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
2556 2004-09-30 Chris Blumenberg <cblu@apple.com>
2558 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
2562 * Plugins.subproj/WebBaseNetscapePluginView.h:
2563 * Plugins.subproj/WebBaseNetscapePluginView.m:
2564 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
2565 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
2566 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
2567 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
2569 2004-09-30 Chris Blumenberg <cblu@apple.com>
2572 Assertion failure when loading standalone netscape plug-in content.
2573 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
2577 * Misc.subproj/WebKitErrors.m: removed deprecated method
2578 * Misc.subproj/WebKitErrorsPrivate.h:
2579 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2580 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
2581 * Plugins.subproj/WebPluginDocumentView.h:
2582 * Plugins.subproj/WebPluginDocumentView.m:
2583 (-[WebPluginDocumentView dealloc]): remove retained plug-in
2584 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
2586 2004-09-29 Chris Blumenberg <cblu@apple.com>
2589 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
2590 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
2594 * History.subproj/WebHistoryItem.m:
2595 * Misc.subproj/WebNSViewExtras.h:
2596 * Misc.subproj/WebNSViewExtras.m:
2597 (-[NSView _web_firstResponderCausesFocusDisplay]):
2598 (-[NSView _webView]):
2600 (-[NSView _bridge]):
2601 (-[NSView _dataSource]):
2602 * Plugins.subproj/WebBasePluginPackage.h:
2603 * Plugins.subproj/WebBasePluginPackage.m:
2604 (-[WebBasePluginPackage hash]):
2605 (-[WebBasePluginPackage isQuickTimePlugIn]):
2606 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2607 (-[WebNetscapePluginDocumentView setDataSource:]):
2608 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2609 * Plugins.subproj/WebPluginController.h:
2610 * Plugins.subproj/WebPluginController.m:
2611 (-[WebPluginController initWithDocumentView:]):
2612 (-[WebPluginController addPlugin:]):
2613 (-[WebPluginController destroyAllPlugins]):
2614 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2615 (-[WebPluginController webPlugInContainerShowStatus:]):
2616 (-[WebPluginController webPlugInContainerSelectionColor]):
2617 (-[WebPluginController webFrame]):
2618 * Plugins.subproj/WebPluginDatabase.h:
2619 * Plugins.subproj/WebPluginDatabase.m:
2620 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
2621 (-[WebPluginDatabase refresh]):
2622 (WebPluginDocumentView::while):
2623 * Plugins.subproj/WebPluginDocumentView.h: Added.
2624 * Plugins.subproj/WebPluginDocumentView.m: Added.
2625 (-[WebPluginDocumentView initWithFrame:]):
2626 (-[WebPluginDocumentView dealloc]):
2627 (-[WebPluginDocumentView drawRect:]):
2628 (-[WebPluginDocumentView setDataSource:]):
2629 (-[WebPluginDocumentView setNeedsLayout:]):
2630 (-[WebPluginDocumentView layout]):
2631 (-[WebPluginDocumentView currentWindow]):
2632 (-[WebPluginDocumentView viewWillMoveToWindow:]):
2633 (-[WebPluginDocumentView viewDidMoveToWindow]):
2634 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
2635 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
2636 (-[WebPluginDocumentView receivedData:withDataSource:]):
2637 (-[WebPluginDocumentView receivedError:withDataSource:]):
2638 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
2639 (-[WebPluginDocumentView canProvideDocumentSource]):
2640 (-[WebPluginDocumentView documentSource]):
2641 (-[WebPluginDocumentView title]):
2642 * Plugins.subproj/npapi.m:
2643 (NPN_ReleaseVariantValue):
2644 (NPN_GetStringIdentifier):
2645 (NPN_GetStringIdentifiers):
2646 (NPN_GetIntIdentifier):
2647 (NPN_IdentifierIsString):
2648 (NPN_UTF8FromIdentifier):
2649 (NPN_IntFromIdentifier):
2652 (NPN_ReleaseObject):
2654 (NPN_InvokeDefault):
2658 (NPN_RemoveProperty):
2663 * WebCoreSupport.subproj/WebBridge.m:
2664 (-[WebBridge frameRequiredForMIMEType:URL:]):
2665 * WebCoreSupport.subproj/WebViewFactory.m:
2667 * WebKit.pbproj/project.pbxproj:
2668 * WebView.subproj/WebDebugDOMNode.m:
2669 * WebView.subproj/WebDocumentInternal.h:
2670 * WebView.subproj/WebHTMLView.m:
2671 (-[WebHTMLView initWithFrame:]):
2672 * WebView.subproj/WebHTMLViewPrivate.h:
2673 * WebView.subproj/WebImageRepresentation.h:
2674 * WebView.subproj/WebRenderNode.m:
2675 * WebView.subproj/WebView.m:
2677 2004-09-29 Richard Williamson <rjw@apple.com>
2679 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
2681 The fix has two parts, 1) make onblur and onfocus work for windows,
2682 and 2), allow the dashboard to override WebKit's special key/non-key
2687 * Plugins.subproj/WebBaseNetscapePluginView.m:
2688 (-[WebBaseNetscapePluginView restartNullEvents]):
2689 * WebView.subproj/WebHTMLView.m:
2690 (-[WebHTMLView addMouseMovedObserver]):
2691 (-[WebHTMLView removeMouseMovedObserver]):
2692 * WebView.subproj/WebView.m:
2693 (-[WebView _dashboardBehavior:]):
2694 * WebView.subproj/WebViewInternal.h:
2695 * WebView.subproj/WebViewPrivate.h:
2697 2004-09-29 Maciej Stachowiak <mjs@apple.com>
2701 - consolidated OS version checks into prefix header
2703 * Misc.subproj/WebFileDatabase.m:
2704 (-[WebFileDatabase _createLRUList:]):
2705 (+[WebFileDatabase _syncLoop:]):
2706 * Misc.subproj/WebKitErrors.m:
2708 * Misc.subproj/WebNSObjectExtras.h:
2709 (WebNSRetainCFRelease):
2710 * Misc.subproj/WebNSPasteboardExtras.m:
2711 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
2712 * Misc.subproj/WebUnicode.m:
2713 (_unicodeDirection):
2714 * WebCoreSupport.subproj/WebImageData.h:
2715 * WebCoreSupport.subproj/WebImageRenderer.h:
2716 * WebCoreSupport.subproj/WebKeyGenerator.h:
2717 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
2719 * WebView.subproj/WebDataSource.m:
2720 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2721 (-[WebDataSource isLoading]):
2722 * WebView.subproj/WebFrameView.m:
2723 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2724 * WebView.subproj/WebHTMLView.m:
2725 * WebView.subproj/WebPDFRepresentation.h:
2726 * WebView.subproj/WebPDFRepresentation.m:
2727 * WebView.subproj/WebPDFView.h:
2728 * WebView.subproj/WebPDFView.m:
2730 2004-09-29 Ken Kocienda <kocienda@apple.com>
2736 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
2738 * WebView.subproj/WebHTMLView.m:
2739 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
2740 bridge function instead of ensureCaretVisible. Now handles caret selections and range
2741 selections correctly.
2743 2004-09-28 Chris Blumenberg <cblu@apple.com>
2745 Added timing code so that Doug can time RTF conversion.
2747 * WebView.subproj/WebHTMLView.m:
2748 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
2749 (-[WebHTMLView _attributeStringFromDOMRange:]):
2751 2004-09-28 Richard Williamson <rjw@apple.com>
2753 <rdar://problem/3817421> add getter for dashboard regions (debugging)
2755 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
2760 * WebCoreSupport.subproj/WebBridge.m:
2761 (-[WebBridge dashboardRegionsChanged:]):
2762 * WebView.subproj/WebView.m:
2763 (-[WebView _setInitiatedDrag:]):
2764 (-[WebView _addScrollerDashboardRegions:from:]):
2765 (-[WebView _addScrollerDashboardRegions:]):
2766 (-[WebView _dashboardRegions]):
2767 * WebView.subproj/WebViewPrivate.h:
2769 2004-09-27 John Sullivan <sullivan@apple.com>
2771 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
2773 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
2774 changed "Remember this password" to "Remember this password in my keychain";
2775 this will need to go through CCC for this week's build.
2777 2004-09-27 Chris Blumenberg <cblu@apple.com>
2779 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
2783 * Plugins.subproj/WebBaseNetscapePluginView.m:
2785 2004-09-27 Chris Blumenberg <cblu@apple.com>
2787 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
2791 * WebView.subproj/WebTextView.m:
2792 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
2794 2004-09-27 John Sullivan <sullivan@apple.com>
2798 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
2799 like Cmd-B while editing rich text
2801 * WebView.subproj/WebHTMLView.m:
2802 (-[WebHTMLView _toggleBold]):
2803 new method, toggles font-weight from "bold" to "normal"
2804 (-[WebHTMLView _toggleItalic]):
2805 new method, toggles font-style from "italic" to "normal"
2806 (-[WebHTMLView _handleStyleKeyEquivalent:]):
2807 new method, if the new preference is set and we're in an editable state, check for standard
2808 key equivalents for toggling styles (just command-B and command-I for now).
2809 (-[WebHTMLView performKeyEquivalent:]):
2810 Moved in file, now calls _handleStyleKeyEquivalent:
2812 * WebView.subproj/WebPreferenceKeysPrivate.h:
2813 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2814 * WebView.subproj/WebPreferences.m:
2815 (+[WebPreferences initialize]):
2816 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
2817 change our minds about this, but this is more guaranteed to be backward-compatible)
2818 (-[WebPreferences respectStandardStyleKeyEquivalents]):
2819 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2820 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
2821 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2823 * WebView.subproj/WebPreferencesPrivate.h:
2824 declare getter and setter
2826 * English.lproj/StringsNotToBeLocalized.txt:
2827 updated for these and other recent changes
2829 2004-09-27 Chris Blumenberg <cblu@apple.com>
2831 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
2835 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2836 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
2838 2004-09-27 Chris Blumenberg <cblu@apple.com>
2840 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2844 * WebView.subproj/WebHTMLView.m:
2845 (-[WebHTMLView _setMouseDownEvent:]): new
2846 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
2847 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2848 (-[WebHTMLView mouseDown:]): ditto
2849 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
2851 2004-09-27 Darin Adler <darin@apple.com>
2853 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
2855 2004-09-24 Chris Blumenberg <cblu@apple.com>
2859 * WebView.subproj/WebHTMLView.m:
2860 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
2864 2004-09-24 Chris Blumenberg <cblu@apple.com>
2866 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2870 * WebView.subproj/WebHTMLView.m:
2871 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
2873 2004-09-24 Ken Kocienda <kocienda@apple.com>
2879 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
2881 We were doing a laughably bad job at preventing edits in documents that were not editable.
2882 This change fixes the specific case of the bug mentioned above, and makes an attempt to
2883 fix similar bugs by checking for whether the view is in editing mode before making edits.
2885 * WebView.subproj/WebHTMLView.m:
2886 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
2887 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
2888 was actually performing a correct check before.
2889 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
2890 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
2891 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
2892 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
2893 (-[WebHTMLView pasteAsPlainText:]): Ditto.
2894 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
2895 (-[WebHTMLView insertNewline:]): Ditto.
2896 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
2897 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
2898 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
2899 (-[WebHTMLView complete:]): Ditto.
2900 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
2901 (-[WebHTMLView ignoreSpelling:]): Ditto.
2902 (-[WebHTMLView yank:]): Bail if !_canEdit.
2903 (-[WebHTMLView yankAndSelect:]): Ditto.
2904 (-[WebHTMLView deleteToMark:]): Ditto.
2905 (-[WebHTMLView swapWithMark:]): Ditto.
2906 (-[WebHTMLView transpose:]): Ditto.
2907 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
2908 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
2909 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
2910 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
2912 2004-09-24 Ken Kocienda <kocienda@apple.com>
2916 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
2918 2004-09-23 Maciej Stachowiak <mjs@apple.com>
2922 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
2924 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
2925 link dragging if the element under the mouse pointer is
2926 editable. This way, you can drag-select starting inside a link.
2928 2004-09-23 John Sullivan <sullivan@apple.com>
2932 - WebKit part of fix for <rdar://problem/3415264>
2933 Default encoding should initially be set to current system encoding
2935 * WebView.subproj/WebPreferences.m:
2936 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
2937 new SPI that sets the initial value of the default text encoding to
2938 be the system encoding, with a special-case conversion of MacRoman->Latin1.
2939 This is not done automatically for WebKit clients for fear of breaking them.
2941 * WebView.subproj/WebPreferencesPrivate.h:
2944 2004-09-23 Darin Adler <darin@apple.com>
2948 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
2950 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
2951 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
2952 while using a button.
2954 * WebView.subproj/WebMainResourceClient.m:
2955 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
2956 for the specific case of "about:blank" even if the defers callbacks flag is true.
2957 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
2958 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
2959 as above. Changed code to return a new request if we get a new request back that is not empty
2960 when the defers callbacks flag is true.
2961 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
2962 URL is one that gives us an empty document, then do the work right away, don't defer it.
2964 2004-09-23 Darin Adler <darin@apple.com>
2966 - fixed B&I builds by checking in generated file
2968 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
2970 2004-09-22 Richard Williamson <rjw@apple.com>
2972 Pass dashboard regions to UI delegate.
2976 * WebCoreSupport.subproj/WebBridge.m:
2977 (-[WebBridge dashboardRegionsChanged:]):
2978 * WebView.subproj/WebUIDelegatePrivate.h:
2979 * copy-webcore-files-to-webkit:
2981 2004-09-22 Chris Blumenberg <cblu@apple.com>
2983 Fixed build that I just broke.
2985 * WebView.subproj/WebHTMLView.m:
2986 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
2988 2004-09-22 Chris Blumenberg <cblu@apple.com>
2990 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
2994 * WebView.subproj/WebHTMLView.m:
2995 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
2997 2004-09-22 Chris Blumenberg <cblu@apple.com>
3000 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
3001 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
3005 * WebCoreSupport.subproj/WebSubresourceClient.m:
3006 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
3007 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3008 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
3010 2004-09-22 Ken Kocienda <kocienda@apple.com>
3014 * WebView.subproj/WebFrameView.m:
3015 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
3016 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
3017 unwanted firstResponder switching.
3018 * WebView.subproj/WebView.m:
3019 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
3021 2004-09-21 Chris Blumenberg <cblu@apple.com
3024 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
3025 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
3029 * WebView.subproj/WebDataSource.m:
3030 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
3031 * WebView.subproj/WebHTMLView.m:
3032 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3033 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
3034 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
3035 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
3036 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3037 (-[WebHTMLView delete:]): call _deleteSelection
3038 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
3039 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
3040 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
3041 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
3042 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
3043 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
3044 (-[WebHTMLView transpose:]): pass NO for smartReplace
3045 (-[WebHTMLView _shouldDeleteRange:]): moved
3046 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
3047 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
3048 (-[WebHTMLView _deleteSelection]): new
3049 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
3050 (-[WebHTMLView _canSmartCopyOrDelete]): new
3051 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
3052 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
3053 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
3054 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
3055 * WebView.subproj/WebHTMLViewInternal.h:
3056 * WebView.subproj/WebView.m:
3057 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
3058 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
3059 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
3060 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
3061 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
3063 2004-09-21 John Sullivan <sullivan@apple.com>
3067 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
3068 Option-tab doesn't always work as expected
3070 * WebCoreSupport.subproj/WebBridge.m:
3071 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
3072 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
3073 after all; these need to be tested independently to get the option-tab behavior
3076 2004-09-21 John Sullivan <sullivan@apple.com>
3078 * WebView.subproj/WebHTMLView.m:
3079 (-[WebHTMLView doCommandBySelector:]):
3080 Commented out part of previous change; it breaks Mail editing until Mail
3083 2004-09-21 John Sullivan <sullivan@apple.com>
3087 * WebView.subproj/WebHTMLView.m:
3088 (-[WebHTMLView doCommandBySelector:]):
3089 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
3091 2004-09-21 John Sullivan <sullivan@apple.com>
3095 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
3097 * WebView.subproj/WebHTMLView.m:
3098 (-[WebHTMLView doCommandBySelector:]):
3099 Call through to editing delegate. If editing delegate returns YES, don't call super.
3101 * WebView.subproj/WebDefaultEditingDelegate.m:
3102 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
3103 default implementation (which was never called) was returning YES, but it should
3104 return NO to signal that it didn't handle the selector.
3106 2004-09-21 Chris Blumenberg <cblu@apple.com>
3108 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
3112 * Plugins.subproj/WebBaseNetscapePluginView.m:
3113 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
3114 (-[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
3116 2004-09-20 Chris Blumenberg <cblu@apple.com>
3118 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
3120 Reviewed by kocienda.
3122 * WebView.subproj/WebView.m:
3123 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
3125 2004-09-20 Chris Blumenberg <cblu@apple.com>
3127 Changes to implement renamed bridge methods.
3132 * DOM.subproj/WebDOMOperations.m:
3133 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
3134 * WebCoreSupport.subproj/WebBridge.m:
3135 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
3136 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
3138 2004-09-20 Darin Adler <darin@apple.com>
3142 * WebView.subproj/WebFramePrivate.h: Added back.
3143 * WebView.subproj/WebFrameViewPrivate.h: Removed.
3145 2004-09-20 Darin Adler <darin@apple.com>
3149 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
3150 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
3152 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
3153 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
3154 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
3155 * WebView.subproj/WebFrameView.m:
3156 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
3157 (-[WebFrameView _shouldDrawBorder]): Ditto.
3158 (-[WebFrameView _tile]): Ditto.
3159 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
3160 by the code to implement pageDown:.
3161 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
3162 (-[WebFrameView _goBack]): Ditto.
3163 (-[WebFrameView _goForward]): Ditto.
3164 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
3165 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
3166 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
3167 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
3168 vertical method above.
3169 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
3170 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
3171 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
3172 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
3173 (-[WebFrameView scrollPageUp:]): Ditto.
3174 (-[WebFrameView scrollPageDown:]): Ditto.
3175 (-[WebFrameView scrollLineUp:]): Ditto.
3176 (-[WebFrameView scrollLineDown:]): Ditto.
3177 (-[WebFrameView _firstResponderIsControl]): Ditto.
3178 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
3180 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
3182 * WebView.subproj/WebHTMLView.m:
3183 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
3184 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
3185 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3186 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
3187 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3188 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
3189 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
3190 (-[WebHTMLView pageUp:]): Added.
3191 (-[WebHTMLView pageDown:]): Added.
3192 (-[WebHTMLView pageUpAndModifySelection:]): Added.
3193 (-[WebHTMLView pageDownAndModifySelection:]): Added.
3194 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
3195 This fixes the problem with spell checking.
3197 * WebView.subproj/WebImageView.m:
3198 (-[WebImageView webView]): Changed to use _web_parentWebView.
3199 (-[WebImageView menuForEvent:]): Changed to use [self webView].
3200 (-[WebImageView mouseDown:]): Ditto.
3201 (-[WebImageView mouseDragged:]): Ditto.
3202 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
3204 * WebView.subproj/WebTextView.m:
3205 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
3206 (-[WebTextView menuForEvent:]): Ditto.
3207 (-[WebTextView drawPageBorderWithSize:]): Ditto.
3208 (-[WebTextView knowsPageRange:]): Ditto.
3210 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
3211 * WebCoreSupport.subproj/WebBridge.m: Ditto.
3212 * WebKit.pbproj/project.pbxproj: Ditto.
3213 * WebView.subproj/WebFrame.m: Ditto.
3214 * WebView.subproj/WebView.m: Ditto.
3215 * Misc.subproj/WebNSViewExtras.m: Ditto.
3217 2004-09-20 Darin Adler <darin@apple.com>
3221 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
3223 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
3224 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
3228 2004-09-17 Chris Blumenberg <cblu@apple.com>
3231 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
3232 <rdar://problem/3805756> strip attachments before generating RTF
3236 * WebView.subproj/WebHTMLView.m:
3237 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
3239 2004-09-16 Darin Adler <darin@apple.com>
3243 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
3245 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
3246 Check _private for nil before dereferencing it.
3248 2004-09-16 Chris Blumenberg <cblu@apple.com>
3250 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
3254 * WebView.subproj/WebHTMLView.m:
3255 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
3256 * WebView.subproj/WebHTMLViewPrivate.h:
3258 2004-09-15 Darin Adler <darin@apple.com>
3262 - fixed assertion I saw using the font panel
3264 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
3265 Convert color space before trying to get R, G, and B components.
3267 2004-09-15 Chris Blumenberg <cblu@apple.com>
3269 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
3271 Reviewed by kocienda.
3273 * WebView.subproj/WebHTMLView.m:
3274 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
3275 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
3276 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
3278 2004-09-14 Darin Adler <darin@apple.com>
3282 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
3283 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
3285 * WebView.subproj/WebHTMLView.m:
3286 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
3287 (-[WebHTMLView transpose:]): Added.
3289 2004-09-14 Richard Williamson <rjw@apple.com>
3291 1. Add class parameter to object allocation function. This is somewhat redundant, given that
3292 the allocation function is in the class function vector, but people wanted to use the same
3293 allocation function for different classes.
3295 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
3297 3. Add support for a default function on an object. This is a feature that ActiveX supports,
3298 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
3299 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
3300 'Objective-C' bindings.
3302 There bugs are covered by
3304 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
3305 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
3306 <rdar://problem/3674754> Need to implement latest npruntime.h
3310 * Plugins.subproj/WebNetscapePluginPackage.m:
3311 (-[WebNetscapePluginPackage load]):
3312 * Plugins.subproj/WebScriptObject.h:
3313 * Plugins.subproj/npfunctions.h:
3314 * Plugins.subproj/npruntime.h:
3316 2004-09-13 Richard Williamson <rjw@apple.com>
3318 D'oh. How many times can I screw up a simple fix!
3320 * WebCoreSupport.subproj/WebTextRenderer.m:
3321 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3323 2004-09-13 Richard Williamson <rjw@apple.com>
3325 Fixed snafu from 3782533 checkin.
3329 * WebCoreSupport.subproj/WebTextRenderer.m:
3330 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3332 2004-09-12 Chris Blumenberg <cblu@apple.com>
3334 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
3338 * Misc.subproj/WebStringTruncator.h:
3339 * Misc.subproj/WebStringTruncator.m:
3340 (+[WebStringTruncator widthOfString:font:]): new
3342 2004-09-10 Richard Williamson <rjw@apple.com>
3344 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
3346 We were explicitly failing when we encountered deprecated fonts.
3347 (Those with unsupported glyph packings).
3348 Deprecated fonts should only appear on a system that have
3349 stuff migrated from OS 9. Ugh, thats probably why we've never seen
3354 * WebCoreSupport.subproj/WebTextRenderer.m:
3355 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3357 2004-09-10 John Sullivan <sullivan@apple.com>
3361 - added _isFrameSet as a private method, so it can be used in WebBrowser.
3362 This is needed to merge the fix for 3123987 to SUPanNavy.
3364 * WebView.subproj/WebFrame.m:
3365 (-[WebFrame _isFrameSet]):
3368 * WebView.subproj/WebFramePrivate.h:
3371 2004-09-09 Chris Blumenberg <cblu@apple.com>
3373 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
3377 * WebCoreSupport.subproj/WebBridge.m:
3378 (-[WebBridge didFirstLayout]): new
3379 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
3380 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
3381 * WebView.subproj/WebViewPrivate.h:
3383 2004-09-09 Richard Williamson <rjw@apple.com>
3385 Alternate implementation of image rendering. Use CGImageRefs instead
3388 Mostly works, but currently disabled because of issues w/ CG.
3393 * WebCoreSupport.subproj/WebImageData.h: Added.
3394 * WebCoreSupport.subproj/WebImageData.m: Added.
3395 (-[WebImageData _commonTermination]):
3396 (-[WebImageData dealloc]):
3397 (-[WebImageData finalize]):
3398 (-[WebImageData copyWithZone:]):
3399 (-[WebImageData numberOfImages]):
3400 (-[WebImageData currentFrame]):
3401 (-[WebImageData _invalidateImages]):
3402 (-[WebImageData imageAtIndex:]):
3403 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
3405 (-[WebImageData tileInRect:fromPoint:context:]):
3406 (-[WebImageData isNull]):
3407 (-[WebImageData size]):
3408 (-[WebImageData _frameDuration]):
3409 (-[WebImageData _repetitionCount]):
3410 (-[WebImageData isAnimationFinished]):
3411 (+[WebImageData stopAnimationsInView:]):
3412 (-[WebImageData addAnimatingRenderer:inView:]):
3413 (-[WebImageData removeAnimatingRenderer:]):
3414 (-[WebImageData _stopAnimation]):
3415 (-[WebImageData _nextFrame:]):
3416 (-[WebImageData animate]):
3417 * WebCoreSupport.subproj/WebImageRenderer.h:
3418 * WebCoreSupport.subproj/WebImageRenderer.m:
3419 (-[WebImageRenderer initWithMIMEType:]):
3420 (-[WebImageRenderer initWithData:MIMEType:]):
3421 (-[WebImageRenderer initWithContentsOfFile:]):
3422 (-[WebImageRenderer dealloc]):
3423 (-[WebImageRenderer copyWithZone:]):
3424 (-[WebImageRenderer retainOrCopyIfNeeded]):
3425 (-[WebImageRenderer resize:]):
3426 (-[WebImageRenderer size]):
3427 (-[WebImageRenderer MIMEType]):
3428 (-[WebImageRenderer frameCount]):
3429 (-[WebImageRenderer isNull]):
3430 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
3431 (-[WebImageRenderer drawImageInRect:fromRect:]):
3432 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3433 (-[WebImageRenderer tileInRect:fromPoint:context:]):
3434 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3435 (+[WebImageRenderer stopAnimationsInView:]):
3436 (-[WebImageRenderer stopAnimation]):
3437 (-[WebImageRenderer targetAnimationRect]):
3438 (-[WebImageRenderer increaseUseCount]):
3439 (-[WebImageRenderer decreaseUseCount]):
3440 (-[WebImageRenderer flushRasterCache]):
3441 (-[WebImageRenderer imageRef]):
3442 (-[WebImageRenderer TIFFRepresentation]):
3443 (-[WebImageRenderer image]):
3444 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3445 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
3446 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
3447 (-[WebImageRendererFactory imageRendererWithSize:]):
3448 (-[WebImageRendererFactory imageRendererWithName:]):
3449 * WebKit.pbproj/project.pbxproj:
3450 * WebView.subproj/WebImageView.m:
3451 (-[WebImageView image]):
3455 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3457 - rolled out last two changes, they seem to cause a performance regression
3459 * WebView.subproj/WebHTMLView.m:
3460 (-[WebHTMLView firstRectForCharacterRange:]):
3462 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3466 * WebView.subproj/WebHTMLView.m:
3467 (-[WebHTMLView firstRectForCharacterRange:]):
3469 2004-09-08 Maciej Stachowiak <mjs@apple.com>
3473 WebKit part of fix for:
3475 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
3477 * WebView.subproj/WebHTMLView.m:
3478 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
3479 and translate to screen coordinates.
3481 2004-09-09 Darin Adler <darin@apple.com>
3485 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
3487 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
3488 so we can use new exceptions.
3490 * WebView.subproj/WebHTMLView.m:
3491 (-[WebHTMLView setMark:]): Added.
3492 (unionDOMRanges): Added.
3493 (-[WebHTMLView deleteToMark:]): Added.
3494 (-[WebHTMLView selectToMark:]): Added.
3495 (-[WebHTMLView swapWithMark:]): Added.
3496 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
3497 (-[WebHTMLView hasMarkedText]): Ditto.
3498 (-[WebHTMLView unmarkText]): Ditto.
3499 (-[WebHTMLView _selectMarkedText]): Ditto.
3500 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
3501 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
3502 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
3503 should not be filtered out here. We need to allow inserting an empty string.
3504 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.