1 2005-01-13 Vicki Murley <vicki@apple.com>
5 - fix <rdar://problem/3946836> Safari about box lists 2004 instead of 2005
7 * WebKit.pbproj/project.pbxproj: bump "2004" to "2005"
9 2005-01-13 Richard Williamson <rjw@apple.com>
11 Fixed <rdar://problem/3951911> REGRESSION: Animated GIF images with loop counts no longer update
13 Draw last image after animation loop terminates. (We
14 were drawing the image at index+1, which doesn't exist!)
18 * WebCoreSupport.subproj/WebImageData.m:
19 (-[WebImageData _nextFrame:]):
21 2005-01-13 Richard Williamson <rjw@apple.com>
23 Fixed <rdar://problem/3952084> REGRESSION: Links at projectseven.com now draw and update incorrectly during hover
25 Turn off use of new CGContextStrokeLineSegments API. We should
26 turn back on when 3952944 is fixed.
30 * WebCoreSupport.subproj/WebTextRenderer.m:
31 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]):
33 2005-01-13 Chris Blumenberg <cblu@apple.com>
35 Fixed: <rdar://problem/3937663> repro assertion failure and crash dragging image that has PDF source
39 * Misc.subproj/WebNSViewExtras.m:
40 (-[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
41 * WebCoreSupport.subproj/WebImageRendererFactory.m:
42 (-[WebImageRendererFactory supportedMIMETypes]): removed code that omits PDF and PostScript from the list since this omission is only needed in WebImageView
43 * WebView.subproj/WebImageView.m:
44 (+[WebImageView supportedImageMIMETypes]): added code that omits PDF and PostScript since we don't want WebImageView to render these types
46 2005-01-10 Maciej Stachowiak <mjs@apple.com>
50 <rdar://problem/3758033> REGRESSION (Mail): Support attributes in marked text (International input)
52 * WebCoreSupport.subproj/WebTextRenderer.m:
53 (-[WebTextRenderer drawLineForCharacters:yOffset:width:color:thickness:]): Changed to support
54 underline thickness. Also added a bit of a hack here to move thickness 2 underlines down by
55 .5 pixels, since the rendering engine can't give a fractional pixel offset.
56 * WebView.subproj/WebHTMLView.m:
57 (-[WebHTMLView validAttributesForMarkedText]): Support underline, underline color and marked
58 clause attributes. Others that NSText supports are unimplemented for now.
59 (-[WebHTMLView firstRectForCharacterRange:]): Remove needless logging.
60 (-[WebHTMLView unmarkText]): Updated for new WebCore SPI.
61 (-[WebHTMLView _extractAttributes:ranges:fromAttributedString:]): New method to pull the attributes
62 and ranges out of an attributed string.
63 (-[WebHTMLView setMarkedText:selectedRange:]): Extract attributes and pass to WebCore.
64 (-[WebHTMLView insertText:]): Add comment noting that we don't really handle attributed strings
67 2005-01-12 Darin Adler <darin@apple.com>
71 - fixed <rdar://problem/3848257> WebView will draw more than AppKit asks it to, so views behind won't redraw enough (transparent WebView)
73 * WebView.subproj/WebHTMLView.m:
74 (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): As recommended by Troy Stephens, do the
75 layouts here in this call, since it's before propagating the dirty rects to our ancestors.
76 This fixes the bug, but we only do it if the WebView is not opaque, because otherwise we can
77 optimize by only doing layouts you really need, and doing them later on is safe because we
78 know we don't need to draw any of the views behind us.
79 (-[WebHTMLView _layoutIfNeeded]): Added. Factored out from the method below.
80 (-[WebHTMLView _web_layoutIfNeededRecursive]): Added. Like the other "layout if needed" call,
82 (-[WebHTMLView _web_layoutIfNeededRecursive:testDirtyRect:]): Factored out the guts into the
83 _layoutIfNeeded method above. Otherwise unchanged.
84 (-[NSView _web_layoutIfNeededRecursive]): Added.
86 * WebView.subproj/WebFrame.m: (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground:NO
87 on the scroll view when changing the frame to no longer be in "draws background" mode. This
88 is needed because the frame manages the "draws background" mode of the scroll view. It won't
89 have any effect if you call setDrawsBackground:NO before starting to use a WebView, but without
90 it calling setDrawsBackground:NO later won't have an immediate effect (easily visible in Safari).
91 This was hidden before because the HTML view was filling with transparent color, which blew away
92 the fill that was done by NSScrollView.
94 - fixed <rdar://problem/3921129> reproducible crash at www.funnychristmas.com in CFSet manipulation in WebImageData
96 * WebCoreSupport.subproj/WebImageData.m:
97 (-[WebImageData _imageSourceOptions]): Changed types so we don't need a cast.
98 (+[WebImageData stopAnimationsInView:]): Instead of building a set of sets, by putting in the sets with addObject,
99 build a single set using unionSet, and then iterate the objects instead of having to iterate the sets and then the
100 objects in each set. The old code ended up sharing the sets with the live code, when the whole idea was to gather
101 all the renderers because the process of stopping modifies the active sets.
103 2005-01-12 Richard Williamson <rjw@apple.com>
105 Fixed <rdar://problem/3926825> Safari ignores GIF loop count
107 Get loop count from file properties, not image properties.
109 Reviewed by Ken Kocienda.
111 * WebCoreSupport.subproj/WebImageData.h:
112 * WebCoreSupport.subproj/WebImageData.m:
113 (-[WebImageData _commonTermination]):
114 (-[WebImageData fileProperties]):
115 (-[WebImageData _floatProperty:type:at:]):
116 (-[WebImageData _floatFileProperty:type:]):
117 (-[WebImageData _repetitionCount]):
119 2005-01-11 Chris Blumenberg <cblu@apple.com>
121 Fixed: <rdar://problem/3934749> assertion failure in WebBaseNetscapePluginView loading movie
125 * Plugins.subproj/WebBaseNetscapePluginView.m:
126 (-[WebBaseNetscapePluginView start]): call canStart before asserting about the webView
128 2005-01-11 John Sullivan <sullivan@apple.com>
132 - fixed <rdar://problem/3446838> REGRESSION (Mail): text decorations don't print
133 (e.g. <strike>, underline)
135 * WebCoreSupport.subproj/WebTextRenderer.m:
136 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
137 This bottleneck routine for drawing a line was setting the linewidth to 0 when
138 the graphics context was not drawing to the screen. Thus, no lines. Now links
139 are underlined when printing from Safari (as well as Mail).
141 2005-01-11 Richard Williamson <rjw@apple.com>
143 Fixed 3949145. CG has a much faster API for drawing lines.
144 Switched over to that new API (CGContextStrokeLineSegments).
146 Reviewed by John Sullivan.
148 * WebCoreSupport.subproj/WebTextRenderer.m:
149 (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
151 2005-01-10 Chris Blumenberg <cblu@apple.com>
153 Fixed: <rdar://problem/3948862> REGRESSION: missing images when RTFD is pasted into editable WebView
155 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.
159 * WebView.subproj/WebHTMLView.m:
160 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): don't deal with subresources since that's now done by the following method
161 (-[WebHTMLView resourceForData:preferredFilename:]): new handler method called by AppKit
165 2005-01-06 David Harrison <harrison@apple.com>
167 Reviewed by Dave Hyatt
169 <rdar://problem/3588548> AX: tabbing does not work correctly with the screen reader and a focused link; need AXFocusedUIElement to work.
171 * WebView.subproj/WebHTMLView.m:
172 (-[WebHTMLView accessibilityFocusedUIElement]):
173 Implement this so that AppKit can use it from NSAccessibilityHandleFocusChanged.
175 2005-01-05 Chris Blumenberg <cblu@apple.com>
177 Fixed: <rdar://problem/3936865> REGRESSION: canvas.drawImage no longer scales properly
181 * WebCoreSupport.subproj/WebImageData.m: use the height of the inRect instead of the fromRect when setting the origin of the context
183 2005-01-04 Chris Blumenberg <cblu@apple.com>
185 Fixed: <rdar://problem/3928329> WebKit should pass nil for "language" to checkSpellingOfString:
187 Reviewed by kocienda.
189 * WebView.subproj/WebHTMLView.m:
190 (-[WebHTMLView _isSelectionMisspelled]): pass nil not @"" for language
192 2004-12-21 Maciej Stachowiak <mjs@apple.com>
196 <rdar://problem/3888931> frame naming allows malicious site to bring up a window when you click on a link in another
198 Implement a security check on name frame visbility. This is the
199 same rule as mozilla. You can only target frames by name if you
200 are in the same window, have the same domain as the frame or an
201 ancestor, or if it's a top level window have the same domain as
204 * WebView.subproj/WebFrame.m:
205 (-[WebFrame _shouldAllowAccessFrom:]):
206 (-[WebFrame _descendantFrameNamed:sourceFrame:]):
207 (-[WebFrame findFrameNamed:]):
208 * WebView.subproj/WebFramePrivate.h:
209 * WebView.subproj/WebView.m:
210 (-[WebView _findFrameInThisWindowNamed:sourceFrame:]):
211 (-[WebView _findFrameNamed:sourceFrame:]):
212 * WebView.subproj/WebViewPrivate.h:
218 2004-12-20 Richard Williamson <rjw@apple.com>
220 Add call to new API. ImageIO deprecated some older (although
221 quite new!) API. This caused us to fail to build on 337 or later.
223 Developers wanting to build on older versions of Tiger must define
224 USE_DEPRECATED_IMAGESOURCE_API in WebImageData.m.
228 * WebCoreSupport.subproj/WebImageData.m:
229 (-[WebImageData propertiesAtIndex:]):
231 2004-12-20 Richard Williamson <rjw@apple.com>
233 Don't call Tiger SPI on Panther.
237 * WebCoreSupport.subproj/WebTextRendererFactory.m:
238 (+[WebTextRendererFactory createSharedFactory]):
240 2004-12-20 Richard Williamson <rjw@apple.com>
242 Fixed <rdar://problem/3884448> WebKit should turn on CG local font cache
244 Enable mutli-tier font caching. We should see a performance boost with this
249 * WebCoreSupport.subproj/WebTextRendererFactory.m:
250 (+[WebTextRendererFactory createSharedFactory]):
252 2004-12-20 Richard Williamson <rjw@apple.com>
254 Fix image decoding to separately decode image meta data from actual image bits. I
255 incorrectly consolidated decode of meta data and image bits resulting in a huge
256 performance regression.
258 Double size of WebCore cache on lower end machines. On the PLT run on machines with
259 256MB of memory, too many images were being evicted, causing a re-decode on the PLT.
260 Upping the lower limit of the cache size ensure that no images are evicted (this
261 goes hand-in-hand with the change to the minimum object size from 32K to 40K).
265 * WebCoreSupport.subproj/WebImageData.h:
266 * WebCoreSupport.subproj/WebImageData.m:
267 (+[WebImageData initialize]):
268 (-[WebImageData _commonTermination]):
269 (-[WebImageData _invalidateImages]):
270 (-[WebImageData _invalidateImageProperties]):
271 (-[WebImageData imageAtIndex:]):
272 (-[WebImageData propertiesAtIndex:]):
273 (-[WebImageData _cacheImages:allImages:]):
274 (-[WebImageData decodeData:isComplete:callback:]):
275 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
276 * WebView.subproj/WebPreferences.m:
277 (+[WebPreferences initialize]):
279 2004-12-20 Richard Williamson <rjw@apple.com>
281 Fixed build problem caused by change to ImageIO API.
285 * WebCoreSupport.subproj/WebImageData.m:
287 2004-12-19 Darin Adler <darin@apple.com>
291 - some garbage collection fixes
293 * Misc.subproj/WebNSObjectExtras.h: (WebCFAutorelease): Replaced the old WebNSRetainCFRelease with this
294 much-easier-to-understand function cribbed from what David Harrison did in WebCore.
296 * Misc.subproj/WebKitNSStringExtras.m: (+[NSString _web_encodingForResource:]): Use CFRelease here to
297 get rid of an unnecessary use of WebNSRetainCFRelease.
298 * Misc.subproj/WebNSURLExtras.m:
299 (+[NSURL _web_URLWithData:relativeToURL:]): Use WebCFAutorelease instead of WebNSRetainCFRelease and autorelease.
300 (-[NSURL _web_URLWithLowercasedScheme]): Ditto.
301 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Use WebCFAutorelease here; the old code would not
302 work correctly under GC.
303 * Plugins.subproj/WebNetscapePluginPackage.m: (+[WebNetscapePluginPackage preferredLocalizationName]):
304 Use WebCFAutorelease here; the old code would not work correctly under GC.
306 2004-12-18 Chris Blumenberg <cblu@apple.com>
308 Fixed: <rdar://problem/3766915> PDF content needs search to work
310 Reviewed by kevin, john.
312 * WebView.subproj/WebPDFView.m:
313 (-[WebPDFView searchFor:direction:caseSensitive:wrap:]): implemented
314 (-[WebPDFView takeFindStringFromSelection:]): new
315 (-[WebPDFView jumpToSelection:]): new
316 (-[WebPDFView validateUserInterfaceItem:]): new
318 2004-12-17 Richard Williamson <rjw@apple.com>
320 Make image decoding as lazy as possible for non threaded case; in some cases
321 can avoid unnecessary decoding work.
325 * WebCoreSupport.subproj/WebImageData.h:
326 * WebCoreSupport.subproj/WebImageData.m:
327 (-[WebImageData imageAtIndex:]):
328 (-[WebImageData propertiesAtIndex:]):
329 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
331 2004-12-16 John Sullivan <sullivan@apple.com>
335 One of the assertions from my previous checkin fired, so
336 I made this code more robust.
338 * WebCoreSupport.subproj/WebBridge.m:
339 (-[WebBridge _preferences]):
340 new helper method, returns global preferences if webView is nil,
341 otherwise returns webView's preferences
342 (-[WebBridge getObjectCacheSize]):
343 use new helper method, remove now-unnecessary assert
344 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
347 2004-12-16 John Sullivan <sullivan@apple.com>
351 - fixed <rdar://problem/3913523> Mail needs SPI for adding tooltips to links
352 - cleaned up some calls to +[WebPreferences standardPreferences] that should
353 have been using -[WebView preferences]
355 This adds a (currently SPI-only) new feature that shows the URL of the link
356 under the mouse in a toolTip. I tested this in Safari, but we're adding this
357 feature for Mail, and Safari won't use it (unless of course you know the
358 magic defaults command)
360 * Plugins.subproj/WebBaseNetscapePluginView.m:
361 (-[WebBaseNetscapePluginView start]):
362 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
364 * WebCoreSupport.subproj/WebBridge.m:
365 (-[WebBridge getObjectCacheSize]):
367 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
370 * WebView.subproj/WebBaseResourceHandleDelegate.m:
371 (-[WebBaseResourceHandleDelegate willCacheResponse:]):
374 * WebView.subproj/WebFrame.m:
375 (-[WebFrame _transitionToCommitted:]):
377 (-[WebFrame _loadItem:withLoadType:]):
380 * WebView.subproj/WebHTMLViewInternal.h:
381 private struct now keeps ivar for cached value of showsURLsInToolTips
382 so it doesn't have look it up in preferences a zillion times
384 * WebView.subproj/WebHTMLView.m:
385 (-[WebHTMLView _updateMouseoverWithEvent:]):
386 if private->showsURLsInToolTips is true, set the toolTip from the URL.
387 Fall back to showing the title attribute in case some element has a title
388 attribute but no URL.
389 (-[WebHTMLView _mayStartDragAtEventLocation:]):
390 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
391 (-[WebHTMLView _resetCachedWebPreferences:]):
392 get a fresh value for private->showsURLsInToolTips
393 (-[WebHTMLView initWithFrame:]):
394 call _resetCachedWebPreferences the first time, and listen for WebPreferencesChanged notifications
395 (-[WebHTMLView _handleStyleKeyEquivalent:]):
396 use -[WebView preferences] instead of +[WebPreferences standardPreferences]
398 * WebView.subproj/WebPreferenceKeysPrivate.h:
399 added WebKitShowsURLsInToolTipsPreferenceKey
401 * WebView.subproj/WebPreferences.m:
402 (+[WebPreferences initialize]):
403 initialize WebKitShowsURLsInToolTipsPreferenceKey to 0
404 (-[WebPreferences showsURLsInToolTips]):
405 return WebKitShowsURLsInToolTipsPreferenceKey value
406 (-[WebPreferences setShowsURLsInToolTips:]):
407 set WebKitShowsURLsInToolTipsPreferenceKey value
409 * WebView.subproj/WebPreferencesPrivate.h:
410 add declarations for showsURLsInToolTips and setter
412 * WebView.subproj/WebTextView.m:
413 (-[WebTextView _preferences]):
414 new helper method that gets preferences from webView if there is a webView,
415 otherwise gets global preferences
416 (-[WebTextView setFixedWidthFont]):
417 use new helper method rather than always using global preferences
418 (-[WebTextView initWithFrame:]):
419 observe WebPreferencesChangedNotification instead of unnecessarily general
420 NSUserDefaultsChangedNotification
422 2004-12-14 John Sullivan <sullivan@apple.com>
426 - rest of WebKit fix for <rdar://problem/3790011> undoable operations all say "Undo"
427 in the menu, no specific action names
429 I only know of one loose end currently, which I wrote up as <rdar://problem/3920971> Edit menu
430 says "Undo Change Attributes" when it should say "Undo Set Color", from font panel
432 * WebView.subproj/WebHTMLView.m:
433 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
434 use WebUndoActionSetColor when dragging color swatch
435 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
436 new WebUndoAction parameter, passed across bridge
437 (-[WebHTMLView _toggleBold]):
438 use WebUndoActionSetFont
439 (-[WebHTMLView _toggleItalic]):
440 use WebUndoActionSetFont
441 (-[WebHTMLView pasteFont:]):
442 use WebUndoActionPasteFont
443 (-[WebHTMLView changeFont:]):
444 use WebUndoActionSetFont
445 (-[WebHTMLView changeAttributes:]):
446 use WebUndoActionChangeAttributes
447 (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
448 new method, returns WebUndoActionSetBackgroundColor or WebUndoActionSetColor
449 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
450 now calls _undoActionFromColorPanelWithSelector
451 (-[WebHTMLView changeColor:]):
452 use WebUndoActionSetColor
453 (-[WebHTMLView _alignSelectionUsingCSSValue:withUndoAction:]):
454 new WebUndoAction parameter, passed through
455 (-[WebHTMLView alignCenter:]):
456 use WebUndoActionCenter
457 (-[WebHTMLView alignJustified:]):
458 use WebUndoActionJustify
459 (-[WebHTMLView alignLeft:]):
460 use WebUndoActionAlignLeft
461 (-[WebHTMLView alignRight:]):
462 use WebUndoActionAlignRight
463 (-[WebHTMLView subscript:]):
464 use WebUndoActionAlignSubscript
465 (-[WebHTMLView superscript:]):
466 use WebUndoActionAlignSuperscript
467 (-[WebHTMLView unscript:]):
468 use WebUndoActionAlignUnscript
469 (-[WebHTMLView underline:]):
470 use WebUndoActionAlignUnderline
472 * WebView.subproj/WebView.m:
473 (-[WebView setTypingStyle:]):
474 pass WebUndoActionUnspecified through as new parameter since we don't have any more specific info
475 (-[WebView applyStyle:]):
478 2004-12-14 Richard Williamson <rjw@apple.com>
480 Helper method to get URL of plugin view.
484 * Misc.subproj/WebNSViewExtras.m:
485 (-[NSView _webViewURL]):
487 2004-12-14 Vicki Murley <vicki@apple.com>
491 <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
493 * Plugins.subproj/WebPlugin.h: changed instances of "WebScriptMethods" to "WebScripting" in this
494 file as well, as requested in the bug report
496 2004-12-13 Maciej Stachowiak <mjs@apple.com>
500 <rdar://problem/3912488> Mail throws an exception after backspacing "away" inline input
502 * WebView.subproj/WebHTMLView.m:
503 (-[WebHTMLView setMarkedText:selectedRange:]): Don't try to set a selection if
504 we end up with no marked text, since that case fails and is unnecessary.
506 2004-12-14 John Sullivan <sullivan@apple.com>
510 - WebKit part of plumbing of fix for <rdar://problem/3790011> undoable operations all say "Undo" in the menu,
511 no specific action names
513 * WebCoreSupport.subproj/WebBridge.m:
514 (-[WebBridge nameForUndoAction:]):
515 renamed from setUndoActionNamePlaceholder, replaced arbitrary integers with enum values, and
516 handled new "unspecified" case as a fallback
518 2004-12-13 Richard Williamson <rjw@apple.com>
520 Fixed <rdar://problem/3887767> LiveConnect doesn't propagate Java exceptions back to JavaScript (prevents security suite from running)
524 * Plugins.subproj/WebJavaPlugIn.h:
526 2004-12-13 John Sullivan <sullivan@apple.com>
530 - fixed <rdar://problem/3744583> Safari can not quit when a webpage has a login sheet
531 that can't be cancelled.
533 The proper fix for this would be to change the class of the NSPanel in the nib file.
534 But since this would require a localization change, I did a run-time hack instead.
535 I'll file a bug about fixing this when we're out of localization freeze.
537 * Panels.subproj/WebAuthenticationPanel.m:
538 (-[WebAuthenticationPanel replacePanelWithSubclassHack]):
539 new method, creates a new panel that is identical to the original one except that
540 it's our subclass, and moves all the subviews of the original panel into the new one.
541 (-[WebAuthenticationPanel loadNib]):
542 call replacePanelWithSubclassHack
543 (-[NonBlockingPanel _blocksActionWhenModal:]):
544 only method of new NSPanel subclass; overrides this SPI to allow the user to quit
545 when one of these panels/sheets is on-screen
547 2004-12-10 Richard Williamson <rjw@apple.com>
549 Fixed <rdar://problem/3898708> REGRESSION (8A314-8A317): World Clock's short hand not displayed (ImageIO problem with PDF?)
550 Fixed <rdar://problem/3914012> use CG directly for pdf images not ImageIO
552 Create a PDF document and draw that instead of using ImageIO to create a rasterized image.
556 * WebCoreSupport.subproj/WebImageData.h:
557 * WebCoreSupport.subproj/WebImageData.m:
558 (-[WebImageData setIsPDF:]):
559 (-[WebImageData isPDF]):
560 (-[WebImageData dealloc]):
561 (-[WebImageData decodeData:isComplete:callback:]):
562 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
563 (-[WebImageData size]):
564 (-[WebImageData animate]):
565 (-[WebImageData _createPDFWithData:]):
566 (-[WebImageData _PDFDocumentRef]):
567 (-[WebImageData _PDFDrawInContext:]):
568 (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
569 * WebCoreSupport.subproj/WebImageRenderer.h:
570 * WebCoreSupport.subproj/WebImageRenderer.m:
571 (-[WebImageRenderer size]):
572 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
573 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
576 2004-12-10 John Sullivan <sullivan@apple.com>
580 - fixed <rdar://problem/3855127> Error while printing w/o sheet, then window is left in a bad state,
581 if there's no default printer set
583 * WebView.subproj/WebHTMLView.m:
584 (-[WebHTMLView beginDocument]):
585 Our implementation of knowsPageRange puts the WebHTMLView into a special "printing mode". We must
586 exit the "printing mode" to return to normal behavior. This is normally done in endDocument.
587 However, it turns out that if there's an exception in [super beginDocument], then endDocument
588 will not be called (lame-o AppKit API). So, we handle that case by catching the exception and
589 exiting the "printing mode" in beginDocument when it occurs.
591 2004-12-09 Richard Williamson <rjw@apple.com>
593 Fixed <rdar://problem/3905789> Burn Disc image vibrates rapidly
595 Restrict our support for animated images to GIF. We used to
596 use presence of more than one image in a resource to determine
597 if an image should be animated. This caused us to animate icns!
598 If we ever support any other animated image formats we'll have
603 * WebCoreSupport.subproj/WebImageData.h:
604 * WebCoreSupport.subproj/WebImageData.m:
605 (-[WebImageData shouldAnimate]):
606 * WebCoreSupport.subproj/WebImageRenderer.m:
607 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
609 2004-12-09 Richard Williamson <rjw@apple.com>
611 Make WebPluginDatabase.h private (Dashboard needs SPI).
613 * WebKit.pbproj/project.pbxproj:
617 2004-12-09 Chris Blumenberg <cblu@apple.com>
619 Workaround for this exception being raised during download:
620 [WebDownload connection:willStopBufferingData:]: selector not recognized
624 * Misc.subproj/WebDownload.m:
625 (-[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.
627 2004-12-08 Richard Williamson <rjw@apple.com>
629 Fixed <rdar://problem/3911719> REGRESSION: Images no longer scale vertically
630 Account for scaling correctly when taking into account progressively
633 Also added implementation of repetition count for animated GIF images.
634 Also replaced strings with new constants from CFImageProperties.h
636 Also fixed possible problem with -(NSSize)size implementation,
637 relevant to Panther only.
641 * WebCoreSupport.subproj/WebImageData.m:
642 (-[WebImageData _floatProperty:type:at:]):
643 (-[WebImageData _frameDurationAt:]):
644 (-[WebImageData _repetitionCount]):
645 * WebCoreSupport.subproj/WebImageRenderer.m:
646 (-[WebImageRenderer size]):
648 2004-12-08 Chris Blumenberg <cblu@apple.com>
650 Removed NPN wrappers since these no longer need to be defined to make the QT plug-in work
651 since 3828925 has been fixed.
655 * Plugins.subproj/WebNetscapePluginPackage.m:
656 (-[WebNetscapePluginPackage load]): use under-bar symbols since non-under-bar wrappers have been removed
657 * Plugins.subproj/npapi.m: removed NPN wrappers
658 * WebKit.exp: removed symbols
660 2004-12-08 Ken Kocienda <kocienda@apple.com>
664 * WebView.subproj/WebHTMLView.m:
665 (-[WebHTMLView drawRect:]): Work around for this bug:
666 <rdar://problem/3908282> REGRESSION (Mail): No drag image dragging selected text in Blot and Mail
667 The reason for the workaround is that this method is called explicitly from the code
668 to generate a drag image, and at that time, getRectsBeingDrawn:count: will return a zero count.
669 This code change uses the passed-in rect when the count is zero.
671 2004-12-07 Administrator <cblu@apple.com>
674 <rdar://problem/3734309> Safari doesn't open folders in title bar menu with non-Roman names using Cmd+click
678 * Misc.subproj/WebNSURLExtras.h:
679 * Misc.subproj/WebNSURLExtras.m:
680 (+[NSURL _web_URLWithUserTypedString:relativeToURL:]): renamed to take relativeToURL parameter
681 (+[NSURL _web_URLWithUserTypedString:]): call _web_URLWithUserTypedString:relativeToURL: with nil for URL
683 2004-12-07 Richard Williamson <rjw@apple.com>
685 Fixed <rdar://problem/3905564> REGRESSION (Tiger); in History menu, pixel size appears but is wrong for standalone images in Safari.
689 * WebCoreSupport.subproj/WebImageRenderer.m:
690 (-[WebImageRenderer size]):
692 2004-12-07 Richard Williamson <rjw@apple.com>
694 Support threaded image decoding on machines w/ >= 2 CPUs.
696 Reviewed by Maciej and Chris.
698 * Misc.subproj/WebKitSystemBits.h:
699 * Misc.subproj/WebKitSystemBits.m:
700 (WebSystemMainMemory):
702 * WebCoreSupport.subproj/WebImageData.h:
703 * WebCoreSupport.subproj/WebImageData.m:
704 (+[WebImageData initialize]):
705 (-[WebImageData init]):
706 (-[WebImageData _commonTermination]):
707 (-[WebImageData dealloc]):
708 (-[WebImageData _invalidateImages]):
709 (-[WebImageData _imageSourceOptions]):
710 (-[WebImageData imageAtIndex:]):
711 (-[WebImageData propertiesAtIndex:]):
712 (-[WebImageData _createImages]):
713 (-[WebImageData decodeData:isComplete:callback:]):
714 (-[WebImageData incrementalLoadWithBytes:length:complete:callback:]):
716 (-[WebImageData tileInRect:fromPoint:context:]):
717 (-[WebImageData isNull]):
718 (-[WebImageData size]):
719 (-[WebImageData _frameDurationAt:]):
720 (-[WebImageData _frameDuration]):
721 (+[WebImageData stopAnimationsInView:]):
722 (-[WebImageData addAnimatingRenderer:inView:]):
723 (-[WebImageData removeAnimatingRenderer:]):
724 * WebCoreSupport.subproj/WebImageDecodeItem.h: Added.
725 * WebCoreSupport.subproj/WebImageDecodeItem.m: Added.
726 (+[WebImageDecodeItem decodeItemWithImage:data:isComplete:callback:]):
727 (-[WebImageDecodeItem initWithImage:data:isComplete:callback:]):
728 (-[WebImageDecodeItem finalize]):
729 (-[WebImageDecodeItem dealloc]):
730 * WebCoreSupport.subproj/WebImageDecoder.h: Added.
731 * WebCoreSupport.subproj/WebImageDecoder.m: Added.
732 (decoderNotifications):
733 (+[WebImageDecoder initialize]):
734 (+[WebImageDecoder notifyMainThread]):
735 (+[WebImageDecoder sharedDecoder]):
736 (+[WebImageDecoder performDecodeWithImage:data:isComplete:callback:]):
737 (+[WebImageDecoder imageDecodesPending]):
738 (+[WebImageDecoder decodeComplete:status:]):
739 (-[WebImageDecoder init]):
740 (-[WebImageDecoder dealloc]):
741 (-[WebImageDecoder finalize]):
742 (-[WebImageDecoder removeItem]):
743 (-[WebImageDecoder addItem:]):
744 (-[WebImageDecoder decodeItem:]):
746 (startDecoderThread):
747 * WebCoreSupport.subproj/WebImageRenderer.m:
748 (-[WebImageRenderer initWithData:MIMEType:]):
749 (-[WebImageRenderer initWithContentsOfFile:]):
750 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:callback:]):
751 (-[WebInternalImage incrementalLoadWithBytes:length:complete:callback:]):
752 * WebKit.pbproj/project.pbxproj:
753 * WebView.subproj/WebImageRepresentation.m:
754 (-[WebImageRepresentation receivedData:withDataSource:]):
755 (-[WebImageRepresentation receivedError:withDataSource:]):
756 (-[WebImageRepresentation finishedLoadingWithDataSource:]):
758 2004-12-07 Chris Blumenberg <cblu@apple.com>
760 Fix for performance regression.
764 * WebCoreSupport.subproj/WebBridge.m:
765 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): construct the WebResource without copying the data
767 2004-12-07 Chris Blumenberg <cblu@apple.com>
769 Fixed: <rdar://problem/3909243> REGRESSION: large standalone images stop loading part way through
773 * WebView.subproj/WebBaseResourceHandleDelegate.h:
774 * WebView.subproj/WebMainResourceClient.m:
775 (-[WebMainResourceClient addData:]): call super so it buffers the data
777 2004-12-06 Richard Williamson <rjw@apple.com>
779 Use the AppKit's font rendering mode. This fixes 3905347, but we still need to track down
780 and resolve why metrics have changed for Courier. This may be caused by changes in
785 * WebCoreSupport.subproj/WebTextRenderer.m:
786 (_AppkitGetCGRenderingMode):
790 2004-12-06 Chris Blumenberg <cblu@apple.com>
792 Forgot to commit copied header.
794 * DOM.subproj/DOMPrivate.h:
796 2004-12-06 Chris Blumenberg <cblu@apple.com>
798 Fixed: <rdar://problem/3907381> NSURLConnection and WebKit buffer 2 copies of incoming data
802 * WebView.subproj/WebBaseResourceHandleDelegate.h:
803 * WebView.subproj/WebBaseResourceHandleDelegate.m:
804 (+[WebBaseResourceHandleDelegate initialize]): cache check to see if Foundation supports access to its buffered data
805 (-[WebBaseResourceHandleDelegate addData:]): don't buffer data if Foundation is buffering it for us
806 (-[WebBaseResourceHandleDelegate saveResource]): when creating a WebResource, pass NO for copyData since we know it won't be mutated
807 (-[WebBaseResourceHandleDelegate resourceData]): return the buffered data from the connection if it supports it
808 (-[WebBaseResourceHandleDelegate willStopBufferingData:]): make a mutable copy of the data from NSURLConnection so we can continue buffering
809 (-[WebBaseResourceHandleDelegate willCacheResponse:]): removed optimization that used the cached response data to save the resource since that is obsolete by this change
810 (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): new callback from NSURLConnection, informs us that NSURLConnection has given up buffering
811 * WebView.subproj/WebDataSource.m:
812 (-[WebDataSource _receivedData:]): removed buffering code since that's done by NSURLConnection and the main client
813 (-[WebDataSource _setData:]): removed unnecessary cast since the resourceData ivar is now an NSData instead of NSMutableData
814 (-[WebDataSource data]): return resourceData ivar, else return the resourceData from the main client
815 * WebView.subproj/WebDataSourcePrivate.h:
816 * WebView.subproj/WebMainResourceClient.m:
817 (-[WebMainResourceClient releaseResources]): store resourceData on the data source so it can continue to have data after the main client has gone away
818 (-[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
819 (-[WebMainResourceClient connectionDidFinishLoading:]): ditto
820 * WebView.subproj/WebResource.m:
821 (-[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:]): call following method with YES for copyData
822 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:copyData:]): new initializer, allows caller to choose whether or not the data is copied
823 * WebView.subproj/WebResourcePrivate.h:
825 2004-12-06 Richard Williamson <rjw@apple.com>
827 Fixed <rdar://problem/3903749> REGRESSION (8A321): WebKit gets incorrect glyph metrics due to change in how AppKit uses CGFont
829 Use CGFontRef direction when both getting font metrics and drawing
830 glyphs, instead on depending on [NSFont set].
834 * WebCoreSupport.subproj/WebTextRenderer.m:
838 2004-12-06 Ken Kocienda <kocienda@apple.com>
844 <rdar://problem/3906930> Hitting return key in editable content inserts br elements instead of blocks
846 * WebView.subproj/WebHTMLView.m:
847 (-[WebHTMLView insertNewline:]): One-line change to call insert-block rather than insert-br method
850 2004-12-04 Darin Adler <darin@apple.com>
854 - fixed <rdar://problem/3846079> assertion failure in WebHTMLView(WebPrivate) removeTrackingRect at boots.com
855 - 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
856 - fixed <rdar://problem/3861952> REGRESSION (165-166): selection is cleared when you start to scroll a frame
858 * WebView.subproj/WebHTMLViewInternal.h: Added handlingMouseDown flag.
859 * WebView.subproj/WebHTMLView.m:
860 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Allow passing in a
861 tracking number of 0, which means no existing tracking number.
862 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Ditto.
863 (-[WebHTMLView removeTrackingRect:]): Allow removing a tracking number of 0, which is a no-op.
864 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
865 (-[WebHTMLView acceptsFirstResponder]): Changed check to use handlingMouseDown flag instead of mouseDownEvent
866 field since that field is set up too early in the mouse down event handling process.
867 (-[WebHTMLView mouseDown:]): Added code to set handlingMouseDown flag.
869 - fixed part of <rdar://problem/3829808> Safari crashes when adding a DOM node that was removed from an XMLHTTP request result
871 * WebCoreSupport.subproj/WebBridge.m:
872 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
873 Changed code around so that it won't try to create a WebResource when the load fails.
875 - moved next/previous links into private structure with the rest of WebFrame fields
876 (We have a rule against putting new fields into obejcts that are part of our public API.)
878 * WebView.subproj/WebFrame.h: Remove _nextSibling and _previousSibling.
879 * WebView.subproj/WebFramePrivate.h: Added nextSibling and previousSibling fields to private class.
880 * WebView.subproj/WebFrame.m: Got rid of some tabs in this file.
881 (-[WebFrame _addChild:]): Changed code to use fields inside _private.
882 (-[WebFrame _removeChild:]): Ditto.
883 (-[WebFrame _nextFrameWithWrap:]): Ditto.
884 (-[WebFrame _previousFrameWithWrap:]): Ditto.
886 2004-12-04 Chris Blumenberg <cblu@apple.com>
889 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
890 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
891 <rdar://problem/3903173> REGRESSION (172-TOT): assertion failure and crash in slotAllData logging into hotmail account
892 <rdar://problem/3902749> REGRESSION (Tiger): missing image symbol does not appear
894 Reviewed by darin, rjw, kocienda.
896 * WebCoreSupport.subproj/WebBridge.m:
897 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]):
898 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
899 * WebCoreSupport.subproj/WebSubresourceClient.m:
900 (-[WebSubresourceClient didFinishLoading]):
901 * WebView.subproj/WebFrame.m:
902 (-[WebFrame _opened]):
903 (-[WebFrame _internalLoadDelegate]):
904 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]):
905 * WebView.subproj/WebFrameInternal.h:
907 2004-12-04 Darin Adler <darin@apple.com>
911 - fixed remaining bit of <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
913 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _styleFromFontAttributes:]): When translating from
914 an attribute dictionary to a CSS declaration, treat missing values according to the defaults defined
915 in <AppKit/NSAttributedString.h>. Before the code was treating them as "no change", which is incorrect.
917 * English.lproj/StringsNotToBeLocalized.txt: Add a string from the above change.
921 2004-12-03 Ken Kocienda <kocienda@apple.com>
925 Roll out some recent changes by Chris that caused a performance regression.
926 Fix is in hand, but it is a little risky this close to a submission. So,
927 we have decided to roll back the change with the regression and roll in
928 the new code after we submit.
930 * WebCoreSupport.subproj/WebBridge.m:
931 (-[WebBridge objectLoadedFromCacheWithURL:response:size:]):
932 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
933 * WebCoreSupport.subproj/WebSubresourceClient.m:
934 (-[WebSubresourceClient didFinishLoading]):
935 * WebView.subproj/WebFrame.m:
936 (-[WebFrame _opened]):
937 (-[WebFrame _internalLoadDelegate]):
938 * WebView.subproj/WebFrameInternal.h:
940 2004-12-02 Richard Williamson <rjw@apple.com>
942 Fixed <rdar://problem/3841332> REGRESSION (125.9-167u): repro crash in -[KWQPageState invalidate] involving .Mac images
944 Ensure that the document is cleared when leaving a non-HTML page. This ensures that
945 the b/f cache won't incorrectly trash the previous state when restoring.
949 * WebView.subproj/WebFrame.m:
950 (-[WebFrame _setState:]):
952 2004-12-02 Ken Kocienda <kocienda@apple.com>
956 <rdar://problem/3748323> Problem with -[WebView editableDOMRangeForPoint:] (-isFlipped not taken into account?)
957 <rdar://problem/3852590> REGRESSION (Mail): Dropped content appears in wrong place if Mail message is scrolled down
959 When implementing drag and drop, moveDragCaretToPoint: and editableDOMRangeForPoint: are used in
960 concert to track the mouse and determine a drop location, respectively. However, moveDragCaretToPoint:
961 did a conversion of the passed-in point to the document view's coordinate space, whereas
962 editableDOMRangeForPoint: did not. Now it does.
964 Note that I will need to coordinate with Grant to have him roll out some code in Mail that
965 attempts to work around this problem (unsuccessfully), and actually manages to block the
966 real fix (which needs to be in WebKit).
968 * WebView.subproj/WebView.m:
969 (-[WebView editableDOMRangeForPoint:]): Convert the passed-in point to the document view's coordinate space.
971 2004-12-02 Richard Williamson <rjw@apple.com>
973 Fixed <rdar://problem/3895810> FATAL ERROR: <WebTextRenderer: 0x9328a20> unable to initialize with font "Times-Roman 16.00 pt. S ....
975 We have a hack to replace Times with Times New Roman if we fail
976 to setup Times. If we then fail to setup Times New Roman we
977 don't attempt to further fallback to the system font. Added
978 that additional fallback.
982 * WebCoreSupport.subproj/WebTextRenderer.m:
983 (+[WebTextRenderer webFallbackFontFamily]):
984 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
986 2004-12-02 Richard Williamson <rjw@apple.com>
988 Fixed build problem on Tiger8A821. Private macro and function
989 we were using have been deprecated,
993 * WebCoreSupport.subproj/WebTextRenderer.m:
994 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
996 2004-12-01 Chris Blumenberg <cblu@apple.com>
998 Fixed: <rdar://problem/3879870> Flash Player unable to stop data stream from continuing to download by returning -1 from NPP_Write
999 Also improved and cleaned-up the plug-in stream termination code.
1003 * Plugins.subproj/WebBaseNetscapePluginStream.h:
1004 * Plugins.subproj/WebBaseNetscapePluginStream.m:
1005 (+[WebBaseNetscapePluginStream reasonForError:]): return NPRES_DONE for a nil error
1006 (-[WebBaseNetscapePluginStream _pluginCancelledConnectionError]): new, factored out from other methods
1007 (-[WebBaseNetscapePluginStream errorForReason:]): new
1008 (-[WebBaseNetscapePluginStream dealloc]): release MIME type
1009 (-[WebBaseNetscapePluginStream setMIMEType:]): new
1010 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): call setMIMEType so we can use it in _pluginCancelledConnectionError, call renamed methods
1011 (-[WebBaseNetscapePluginStream _destroyStream]): prepended underscore, replaced some early returns with asserts as the callers are now smarter
1012 (-[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
1013 (-[WebBaseNetscapePluginStream cancelLoadWithError:]): new, overridden by subclasses to cancel the actual NSURLConnection
1014 (-[WebBaseNetscapePluginStream destroyStreamWithError:]): new, calls _destroyStreamWithReason
1015 (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): call renamed methods
1016 (-[WebBaseNetscapePluginStream _deliverData]): prepended underscore, call cancelLoadAndDestroyStreamWithError if NPP_Write returns a negative number
1017 * Plugins.subproj/WebBaseNetscapePluginView.m:
1018 (-[WebBaseNetscapePluginView destroyStream:reason:]): call cancelLoadAndDestroyStreamWithError
1019 * Plugins.subproj/WebNetscapePluginRepresentation.m:
1020 (-[WebNetscapePluginRepresentation receivedError:withDataSource:]): call destroyStreamWithError
1021 (-[WebNetscapePluginRepresentation cancelLoadWithError:]): new, override method, tell the data source to stop loading
1022 * Plugins.subproj/WebNetscapePluginStream.m:
1023 (-[WebNetscapePluginStream cancelLoadWithError:]): new, override method, tell the loader to stop
1024 (-[WebNetscapePluginStream stop]): call cancelLoadAndDestroyStreamWithError
1025 (-[WebNetscapePluginConnectionDelegate isDone]): new
1026 (-[WebNetscapePluginConnectionDelegate didReceiveResponse:]): call cancelLoadAndDestroyStreamWithError
1027 (-[WebNetscapePluginConnectionDelegate didFailWithError:]): call destroyStreamWithError
1029 2004-12-01 Kevin Decker <kdecker@apple.com>
1031 Reviewed by Harrison.
1033 Fixed: <rdar://problem/3228878> potential performance problem in finding in large framesets
1035 Got rid of O(N^2) conditions in _nextSibling and _previousSibling of where we were looking up self in the parent array of frames.
1037 * WebView.subproj/WebFrame.h: Added two new pointers, one for the previous kid and one for the next kid
1038 * WebView.subproj/WebFrame.m:
1039 (-[WebFrame _addChild:]): Updates the previous frame and the next frame after this child
1040 (-[WebFrame _removeChild:]): ditto
1041 (-[WebFrame _nextSibling]): just return the pointer now
1042 (-[WebFrame _previousSibling]): ditto
1044 2004-11-30 Chris Blumenberg <cblu@apple.com>
1047 <rdar://problem/3685766> WebDataSource is missing subresources when they use cached WebCore data
1048 <rdar://problem/3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
1052 * WebCoreSupport.subproj/WebBridge.m:
1053 (-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
1054 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
1055 * WebCoreSupport.subproj/WebSubresourceClient.m:
1056 (-[WebSubresourceClient didFinishLoading]): call renamed method
1057 * WebView.subproj/WebFrame.m:
1058 (-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
1059 (-[WebFrame _internalLoadDelegate]):
1060 (-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
1061 * WebView.subproj/WebFrameInternal.h:
1063 2004-11-29 Darin Adler <darin@apple.com>
1067 - worked around bug in Panther where NSScroller calls _destinationFloatValueForScroller: on superview
1068 without first checking if it's implemented
1070 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _destinationFloatValueForScroller:]):
1071 Implemented. Calls floatValue on the scroller.
1073 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1075 2004-11-23 Chris Blumenberg <cblu@apple.com>
1077 Fixed: <rdar://problem/3890944> disable icon database for Dashboard
1081 * Misc.subproj/WebIconDatabase.h:
1082 * Misc.subproj/WebIconDatabase.m:
1083 (-[WebIconDatabase init]): don't create dictionaries if disabled
1084 (-[WebIconDatabase iconForURL:withSize:cache:]): return default icon if disabled
1085 (-[WebIconDatabase iconURLForURL:]): return nil if disabled
1086 (-[WebIconDatabase retainIconForURL:]): return if disabled
1087 (-[WebIconDatabase releaseIconForURL:]): ditto
1088 (-[WebIconDatabase delayDatabaseCleanup]): ditto
1089 (-[WebIconDatabase allowDatabaseCleanup]): ditto
1090 (-[WebIconDatabase _isEnabled]): new
1091 (-[WebIconDatabase _setIcon:forIconURL:]): assert if called when disabled, moved to own category implementation
1092 (-[WebIconDatabase _setHaveNoIconForIconURL:]): ditto
1093 (-[WebIconDatabase _setIconURL:forURL:]): ditto
1094 (-[WebIconDatabase _createFileDatabase]): tweak
1095 (-[WebIconDatabase _applicationWillTerminate:]): moved out of public code
1096 * Misc.subproj/WebIconDatabasePrivate.h:
1097 * Misc.subproj/WebIconLoader.m:
1098 * WebView.subproj/WebDataSource.m:
1099 (-[WebDataSource _updateIconDatabaseWithURL:]): assert if called when icon DB is disabled
1100 (-[WebDataSource _loadIcon]): don't load icon if icon DB is disabled
1102 2004-11-22 David Hyatt <hyatt@apple.com>
1104 Make sure the WebCore cache grows at 512mb and at 1024mb exactly.
1108 * WebCoreSupport.subproj/WebBridge.m:
1109 (-[WebBridge getObjectCacheSize]):
1111 2004-11-22 Richard Williamson <rjw@apple.com>
1113 Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
1115 John found this problem and suggested the fix.
1117 Reviewed by John Louch.
1119 * WebView.subproj/WebView.m:
1120 (-[WebView setPreferences:]):
1122 2004-11-22 Ken Kocienda <kocienda@apple.com>
1124 Reviewed by Harrison
1126 * WebCoreSupport.subproj/WebBridge.m:
1127 (-[WebBridge canPaste]): Call WebView _canPaste.
1128 * WebView.subproj/WebView.m:
1129 (-[WebView _canPaste]): Try to forward to document view's implementation. Only WebHTMLView
1130 answers right now. Returns NO otherwise.
1131 * WebView.subproj/WebViewInternal.h: Add _canPaste method to WebView.
1133 2004-11-22 Maciej Stachowiak <mjs@apple.com>
1135 Back out the window closing fix, it seems to be causing crashes.
1137 * WebView.subproj/WebFrame.m:
1138 (-[WebFrame _detachFromParent]):
1140 2004-11-20 Maciej Stachowiak <mjs@apple.com>
1144 <rdar://problem/3710101> _web_userVisibleString makes URL autocomplete roughly 2x slower
1146 * Misc.subproj/WebNSURLExtras.h:
1147 * Misc.subproj/WebNSURLExtras.m:
1148 (-[NSString _web_isUserVisibleURL]): New SPI to check if a URL
1149 string is already in user-visible form (i.e. converting it to an
1150 NSURL and then back via _web_userVisibleString would not change
1153 2004-11-19 Maciej Stachowiak <mjs@apple.com>
1157 <rdar://problem/3190977> closing window with many tabs in it can be quite slow
1159 * WebView.subproj/WebFrame.m:
1160 (-[WebFrame _detachFromParent]): autorelease bridge instead of releasing it,
1161 to make window and tab closing more responsive - this way the deallocation happens
1162 after the windoow or tab appears to close.
1166 2004-11-19 Chris Blumenberg <cblu@apple.com>
1168 Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"
1172 * Plugins.subproj/WebBaseNetscapePluginView.m:
1173 (-[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
1175 2004-11-19 Ken Kocienda <kocienda@apple.com>
1177 Reviewed by Harrison
1181 <rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it
1183 * WebCoreSupport.subproj/WebBridge.m:
1184 (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call
1185 was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on
1187 (-[WebBridge respondToChangedSelection]): Ditto.
1188 * WebView.subproj/WebView.m:
1189 (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar.
1190 (-[WebView setTypingStyle:]): Call over the bridge to set typing style.
1191 (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
1192 * WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.
1194 2004-11-18 John Sullivan <sullivan@apple.com>
1198 - fixed <rdar://problem/3886042> should save history file as binary XML so serialization,
1199 parsing, reading and writing is faster
1201 * History.subproj/WebHistory.m:
1202 (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]):
1203 convert dictionary to binary data before saving
1205 2004-11-18 Chris Blumenberg <cblu@apple.com>
1207 * WebView.subproj/WebHTMLRepresentation.m:
1208 (-[WebHTMLRepresentation currentForm]): removed stray ";"
1210 2004-11-18 Chris Blumenberg <cblu@apple.com>
1212 Fixed development build failure.
1214 * Misc.subproj/WebIconDatabase.m:
1215 (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
1217 2004-11-18 Chris Blumenberg <cblu@apple.com>
1219 <rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object
1221 Reviewed by sullivan.
1223 * Misc.subproj/WebIconDatabase.m:
1224 (+[WebIconDatabase sharedIconDatabase]): added timing code
1225 (-[WebIconDatabase _clearDictionaries]): new
1226 (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1227 (-[WebIconDatabase _updateFileDatabase]): fixed comment
1228 (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary
1229 (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs
1230 (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key
1232 2004-11-17 Richard Williamson <rjw@apple.com>
1234 Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished
1236 Correctly account for scaled image size and clipping.
1240 * WebCoreSupport.subproj/WebImageData.h:
1241 * WebCoreSupport.subproj/WebImageData.m:
1242 * WebCoreSupport.subproj/WebImageRenderer.m:
1243 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
1245 2004-11-17 Maciej Stachowiak <mjs@apple.com>
1247 Reviewed by Richard.
1249 <rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
1252 * Misc.subproj/WebNSURLExtras.m:
1253 (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii.
1254 (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case
1255 check for localhost, no longer needed.
1257 2004-11-17 Richard Williamson <rjw@apple.com>
1259 Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary
1261 and added call to SPI for
1263 <rdar://problem/3884448> WebKit should turn on CG local font cache
1265 currently disabled until a Tiger build shows up with the SPI.
1267 Reviewed by David Harrison.
1269 * WebCoreSupport.subproj/WebTextRendererFactory.m:
1270 (+[WebTextRendererFactory createSharedFactory]):
1272 2004-11-17 Richard Williamson <rjw@apple.com>
1274 Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
1275 Fixed <rdar://problem/3884088> Crash terminating image load
1277 Also added code to turn off color correction for images created
1278 via CGImageSources. This code is currently disabled because CG
1279 can't change the color space of images loaded progressively.
1280 Further, according to Dave Hayward, CG will no longer attempt
1281 to color correct images that don't have embedded profiles as of
1286 * WebCoreSupport.subproj/WebImageData.m:
1287 (-[WebImageData _commonTermination]):
1288 (-[WebImageData dealloc]):
1289 (-[WebImageData _invalidateImageProperties]):
1290 (-[WebImageData imageAtIndex:]):
1291 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1292 (-[WebImageData propertiesAtIndex:]):
1294 2004-11-16 Chris Blumenberg <cblu@apple.com>
1296 Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content
1300 * WebView.subproj/WebPDFView.m:
1301 (-[WebPDFView hitTest:]): return self if the current event is a context menu event
1302 (-[WebPDFView menuForEvent:]): use the PDFView subview
1304 2004-11-15 Chris Blumenberg <cblu@apple.com>
1306 Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework
1310 * WebKit.pbproj/project.pbxproj:
1311 * WebView.subproj/WebPDFRepresentation.m:
1312 (+[WebPDFRepresentation PDFDocumentClass]): new
1313 (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
1314 * WebView.subproj/WebPDFView.h:
1315 * WebView.subproj/WebPDFView.m:
1316 (+[WebPDFView PDFKitBundle]): new
1317 (+[WebPDFView PDFViewClass]): new
1318 (-[WebPDFView initWithFrame:]): create a PDFView subview
1319 (-[WebPDFView dealloc]): release the PDFView subview
1320 (-[WebPDFView PDFSubview]): new
1322 2004-11-15 Chris Blumenberg <cblu@apple.com>
1324 Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz
1328 * WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
1330 2004-11-15 Richard Williamson <rjw@apple.com>
1332 Fixed missing retain of image property data.
1336 * WebCoreSupport.subproj/WebImageData.h:
1337 * WebCoreSupport.subproj/WebImageData.m:
1338 (-[WebImageData dealloc]):
1339 (-[WebImageData _invalidateImages]):
1340 (-[WebImageData imageAtIndex:]):
1341 (-[WebImageData propertiesAtIndex:]):
1342 (-[WebImageData _frameDuration]):
1344 2004-11-15 Richard Williamson <rjw@apple.com>
1346 Cache image properties and frame durations.
1347 Create NSImage and TIFF representations from CGImage, lazily, as needed for
1348 dragging and element info dictionary.
1352 * WebCoreSupport.subproj/WebImageData.h:
1353 * WebCoreSupport.subproj/WebImageData.m:
1354 (-[WebImageData dealloc]):
1355 (-[WebImageData size]):
1356 (-[WebImageData propertiesAtIndex:]):
1357 (-[WebImageData _frameDurationAt:]):
1358 (-[WebImageData _frameDuration]):
1359 * WebCoreSupport.subproj/WebImageRenderer.h:
1360 * WebCoreSupport.subproj/WebImageRenderer.m:
1361 (-[WebImageRenderer dealloc]):
1362 (-[WebImageRenderer TIFFRepresentation]):
1363 (-[WebImageRenderer image]):
1365 2004-11-14 Maciej Stachowiak <mjs@apple.com>
1369 <rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers
1371 * Misc.subproj/WebIconDatabase.m:
1372 (-[WebIconDatabase init]):
1373 (-[WebIconDatabase _setIconURL:forURL:]):
1374 (-[WebIconDatabase _retainIconForIconURLString:]):
1375 (-[WebIconDatabase _releaseIconForIconURLString:]):
1376 (-[WebIconDatabase _retainFutureIconForURL:]):
1377 (-[WebIconDatabase _releaseFutureIconForURL:]):
1378 * Misc.subproj/WebIconDatabasePrivate.h:
1380 2004-11-15 John Sullivan <sullivan@apple.com>
1384 - fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
1386 * WebView.subproj/WebArchive.m:
1387 (-[WebArchive _propertyListRepresentation]):
1388 the array holding the subresources was not released after use, oops!
1390 2004-11-12 Chris Blumenberg <cblu@apple.com>
1392 Fixed: <rdar://problem/3874577> Opening restricted (parental) content in new window/tab reveals Safari's "Resources" folder
1396 * WebView.subproj/WebDefaultContextMenuDelegate.m:
1397 (-[WebDefaultUIDelegate openFrameInNewWindow:]): use the unreachable URL if there is one
1401 2004-11-11 Richard Williamson <rjw@apple.com>
1403 Report actual size (not partial size) but use partial size
1408 * WebCoreSupport.subproj/WebImageData.h:
1409 * WebCoreSupport.subproj/WebImageData.m:
1410 (-[WebImageData size]):
1412 2004-11-11 Darin Adler <darin@apple.com>
1416 - added _wasFirstResponderAtMouseDownTime method to bridge so we can fix
1417 <rdar://problem/3846152> REGRESSION (125-166): can't drag text out of <input type=text> fields
1418 with a subsequent change to WebCore.
1420 * WebCoreSupport.subproj/WebBridge.m:
1421 (wasFirstResponderAtMouseDownTime:): Added. Calls _wasFirstResponderAtMouseDownTime
1423 (_getPreSmartSet): Move global inside the function, add (void) for cleanliness.
1424 (_getPostSmartSet): Ditto.
1426 * WebView.subproj/WebHTMLView.m:
1427 (-[WebHTMLViewPrivate dealloc]): Release firstResponderAtMouseDownTime.
1428 (-[WebHTMLView _setMouseDownEvent:]): Early exit if event is not changing.
1429 Set firstResponderAtMouseDownTime to the first responder.
1430 (-[WebHTMLView mouseDown:]): Release firstResponderAtMouseDownTime after handling
1431 the mouseDown event.
1432 (-[WebHTMLView _wasFirstResponderAtMouseDownTime:]): Added. Uses the
1433 firstResponderAtMouseDownTime field.
1434 * WebView.subproj/WebHTMLViewInternal.h: Added firstResponderAtMouseDownTime field
1435 and _wasFirstResponderAtMouseDownTime method.
1437 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
1439 2004-11-11 Richard Williamson <rjw@apple.com>
1443 Work-around to minimize impact of 3876764. Cache frame durations
1444 after first call. So we'll still leak 1K for each animated
1445 image, but that's better than 1K each time the frame is drawn!
1446 * WebCoreSupport.subproj/WebImageData.h:
1447 * WebCoreSupport.subproj/WebImageData.m:
1448 (-[WebImageData _frameDuration]):
1450 Simplified animation cleanup code. Fixed leak due to
1451 incorrect key passed to CFDictionaryRemoveValue.
1453 (+[WebImageData stopAnimationsInView:]):
1454 (-[WebImageData addAnimatingRenderer:inView:]):
1455 (-[WebImageData removeAnimatingRenderer:]):
1456 (-[WebImageData _stopAnimation]):
1458 2004-11-11 Darin Adler <darin@apple.com>
1462 - 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
1464 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]):
1465 Work around AppKit bug by using rectangles from getRectsBeingDrawn:count: instead of
1466 using the passed-in rectangle.
1468 2004-11-11 Richard Williamson <rjw@apple.com>
1470 Work-arounds to make new ImageIO code work correctly. Still
1471 disabled for now. Requires at least Tiger 300. Testing does
1472 show a 3% improvement in PLT tests! That's huge!
1476 * WebCoreSupport.subproj/WebImageData.m:
1477 (-[WebImageData imageAtIndex:]):
1478 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
1479 (-[WebImageData isNull]):
1481 2004-11-10 Chris Blumenberg <cblu@apple.com>
1483 Fixed: <rdar://problem/3396872> ICONS: icon DB inconsistencies can cause slowness during startup, idle and quit
1487 * Misc.subproj/WebFileDatabase.m:
1488 (-[WebFileDatabase objectForKey:]): added logging code
1489 * Misc.subproj/WebIconDatabase.m:
1490 (-[WebIconDatabase init]): use alloc, init rather than autorelease, retain
1491 (-[WebIconDatabase _loadIconDictionaries]): use 1 object for mapping icon URLs to site URLs and vice versa rather than 3. This avoids inconsistencies and is faster.
1492 (-[WebIconDatabase _updateFileDatabase]): write 1 object out
1494 2004-11-09 David Hyatt <hyatt@apple.com>
1496 Fix for 3873234, Safari UI is unresponsive when parsing multiple HTML docs and 3873233, Safari hangs when
1497 loading large local files.
1501 * WebCoreSupport.subproj/WebBridge.m:
1502 (-[WebBridge tokenizerProcessedData]):
1503 * WebView.subproj/WebDataSource.m:
1504 (-[WebDataSource _receivedMainResourceError:complete:]):
1505 (-[WebDataSource isLoading]):
1507 2004-11-09 Richard Williamson <rjw@apple.com>
1509 Fixed <rdar://problem/3870964> 8A300: Safari not recognizing a PDF link (it displays raw data)
1511 Add "text/pdf" as an acceptable PDF MIME type.
1515 * WebView.subproj/WebDataSource.m:
1516 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
1517 * WebView.subproj/WebFrameView.m:
1518 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
1520 2004-11-08 Chris Blumenberg <cblu@apple.com>
1522 Fixed: <rdar://problem/3783904> Return key behavior is confusingly different between popup menus and autofill menus
1526 * WebCoreSupport.subproj/WebBridge.m:
1527 (-[WebBridge control:textView:shouldHandleEvent:]): new
1528 * WebView.subproj/WebFormDelegate.h:
1529 * WebView.subproj/WebFormDelegate.m:
1530 (-[WebFormDelegate control:textView:shouldHandleEvent:inFrame:]): new
1532 2004-11-05 Chris Blumenberg <cblu@apple.com>
1534 Fixed: <rdar://problem/3854218> Safari is sometimes really slow because of increased null events to plug-ins
1536 * Plugins.subproj/WebBaseNetscapePluginView.m: reverted null event interval to 0.02
1538 2004-11-05 Chris Blumenberg <cblu@apple.com>
1540 Fixed: <rdar://problem/3838413> REGRESSION (Mail): "Smart" word paste adds spaces before/after special characters
1544 * WebCoreSupport.subproj/WebBridge.m:
1545 (_getPreSmartSet): copied from AppKit
1546 (_getPostSmartSet): ditto
1547 (-[WebBridge isCharacterSmartReplaceExempt:isPreviousCharacter:]): new
1549 2004-11-05 Richard Williamson <rjw@apple.com>
1551 Fixed <rdar://problem/3810702> _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector: ASSERTS when reentered from Xcode's man page viewer
1553 Reviewed by Maciej (a long time ago).
1555 * WebView.subproj/WebFrame.m:
1556 (-[WebFrame _loadDataSource:withLoadType:formState:]):
1558 Fixed <rdar://problem/3845307> WebKit needs to export _HIWebViewRegisterClass so HIWebViews can work in Carbon nib files
1560 As suggested in the bug, the fix is to actually call
1561 HIWebViewRegisterClass in WebKitInitForCarbon, rather than
1562 exporting the symbol.
1566 * Carbon.subproj/CarbonUtils.m:
1568 * Carbon.subproj/HIWebView.m:
1569 * WebKit.pbproj/project.pbxproj:
1573 2004-11-05 Darin Adler <darin@apple.com>
1577 - fixed <rdar://problem/3857151> Assertion failure in "trackingRectOwner" while moving mouse over Slashdot.org page
1579 * WebView.subproj/WebHTMLView.m:
1580 (-[WebHTMLView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]): Changed to no longer call
1581 addTrackingRect to do the work for consistency with the new method below. Not too much copied and pasted code.
1582 (-[WebHTMLView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]): Added an override
1583 for this new method in Tiger. No harm in implementing it on Panther, although it won't be called.
1584 (-[WebHTMLView _removeTrackingRects:count:]): Ditto.
1586 2004-11-04 David Hyatt <hyatt@apple.com>
1588 Make sure the dominant line direction is properly set for RTL runs so that spaces will reverse.
1590 Change xHeight to measure the ascent of the x glyph, since the xHeight metrics appear to be
1591 totally bogus in both CG and AppKit.
1595 * WebCoreSupport.subproj/WebTextRenderer.m:
1596 (-[WebTextRenderer xHeight]):
1597 (-[WebTextRenderer _createATSUTextLayoutForRun:style:]):
1598 (-[WebTextRenderer _trapezoidForRun:style:atPoint:]):
1599 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
1600 (-[WebTextRenderer _ATSU_drawRun:style:geometry:]):
1601 (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
1603 2004-11-02 Maciej Stachowiak <mjs@apple.com>
1605 Reviewed by Dave Hyatt (when I originally coded it).
1607 Redid WebKit part of fix for:
1609 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
1611 * WebView.subproj/WebHTMLView.m:
1612 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
1613 and translate to screen coordinates.
1615 2004-11-02 John Sullivan <sullivan@apple.com>
1619 - [NSFont menuFontOfSize:], called from WebStringTruncator, was taking > 9% of the time creating a
1620 very large bookmarks menu, so I cached this one NSFont object.
1622 * Misc.subproj/WebStringTruncator.m:
1624 new function, caches the font used when no font is specified
1625 (+[WebStringTruncator centerTruncateString:toWidth:]):
1628 2004-11-02 Ken Kocienda <kocienda@apple.com>
1632 WebCore now implements a command to insert a block in response to typing a return key, and
1633 some names were improved in the course of this work.
1635 * WebView.subproj/WebHTMLView.m:
1636 (-[WebHTMLView insertNewline:]): Now calls insertLineBreak on bridge object.
1637 (-[WebHTMLView insertLineBreak:]): New method.
1638 (-[WebHTMLView insertParagraphSeparator:]): Now implemented.
1639 * WebView.subproj/WebView.m:
1643 2004-10-29 Chris Blumenberg <cblu@apple.com>
1645 * WebKit.exp: added _WebPlugInModeKey, forgot to add it earlier
1647 2004-10-29 Darin Adler <darin@apple.com>
1649 - fixed <rdar://problem/3855573> Remove reference to "WebScriptMethods" from WebScriptObject.h comments
1651 * Plugins.subproj/WebScriptObject.h: Removed unneeded #ifdef protection for multiple includes (since
1652 this is an Objective-C header and we use #import for those). Fixed comments as requested in the bug
1653 report to match the contents of the file.
1655 2004-10-27 Ken Kocienda <kocienda@apple.com>
1659 Added new SPI for Mail so it can get the behavior it needs when the user hits
1660 the return key with the selection in quoted content.
1662 * WebView.subproj/WebView.m
1663 * WebView.subproj/WebViewPrivate.h
1665 2004-10-26 Chris Blumenberg <cblu@apple.com>
1667 Fixed exception that Darin encountered in Mail.
1671 * Plugins.subproj/WebPluginController.m:
1672 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): if the plug-in returns a nil view, return nil
1674 2004-10-25 Chris Blumenberg <cblu@apple.com>
1676 Darin made an internal notification have the Web prefix.
1680 * Plugins.subproj/WebBaseNetscapePluginView.m:
1681 (-[WebBaseNetscapePluginView addWindowObservers]):
1682 (-[WebBaseNetscapePluginView removeWindowObservers]):
1683 (ConsoleConnectionChangeNotifyProc):
1685 2004-10-25 John Sullivan <sullivan@apple.com>
1689 - Cleanup from fix for <rdar://problem/3851676> bookmarks should not hold onto a WebHistoryItem object;
1690 eliminated notificationsSuppressed mechanism, which was used only by WebBookmark
1692 * History.subproj/WebHistoryItem.m:
1693 removed notificationsSuppressed ivar from private data object
1694 (-[WebHistoryItem setAlternateTitle:]):
1695 remove notificationsSuppressed guard
1696 (-[WebHistoryItem setURLString:]):
1698 (-[WebHistoryItem setOriginalURLString:]):
1700 (-[WebHistoryItem setTitle:]):
1702 (-[WebHistoryItem _setLastVisitedTimeInterval:]):
1704 (-[WebHistoryItem setNotificationsSuppressed:]):
1706 (-[WebHistoryItem notificationsSuppressed]):
1709 * History.subproj/WebHistoryItemPrivate.h:
1710 removed notificationsSuppressed and setNotificationsSuppressed
1712 2004-10-22 Chris Blumenberg <cblu@apple.com>
1714 Fixed: <rdar://problem/3851491> installedPlugins being called for a page without plugins
1718 * WebView.subproj/WebFrameView.m:
1719 (+[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
1723 2004-10-22 Ken Kocienda <kocienda@apple.com>
1727 * WebKit.pbproj/project.pbxproj: Add GCC_ENABLE_OBJC_GC and GCC_FAST_OBJC_DISPATCH flags.
1729 2004-10-21 Darin Adler <darin@apple.com>
1733 - fixed <rdar://problem/3847994> REGRESSION: reproducible exception in WebImageRenderer releasePatternColor; afterwards get crash or no more browsing
1735 * WebCoreSupport.subproj/WebImageRenderer.m:
1736 (-[WebInternalImage createRendererIfNeeded]): Replaced retainOrCopyIfNeeded with this.
1737 This returns nil if a copied renderer isn't needed, and returns a new renderer if a copy is.
1738 The old version was sometimes returning a WebInternalImage and other times a WebImageRenderer.
1739 (-[WebImageRenderer retainOrCopyIfNeeded]): Returns the result of createRendererIfNeeded
1740 or retains self and returns self.
1742 2004-10-20 Darin Adler <darin@apple.com>
1746 - fixed <rdar://problem/3470715> Pattern cache can get huge with use of css background-image in Safari
1748 * WebCoreSupport.subproj/WebImageRenderer.h: Change WebImageRenderer to be a subclass of NSObject
1749 rather than NSImage and contain a pointer to a WebInternalImage.
1750 * WebCoreSupport.subproj/WebImageRenderer.m:
1751 (-[WebInternalImage releasePatternColor]): Added. Releases patternColor.
1752 (-[WebImageRenderer initWithMIMEType:]): Added. Makes WebInternalImage and then self.
1753 (-[WebImageRenderer initWithData:MIMEType:]): Ditto.
1754 (-[WebImageRenderer initWithContentsOfFile:]): Ditto.
1755 (-[WebImageRenderer dealloc]): Added. Calls releasePatternColor and then releases WebInternalImage.
1756 (-[WebImageRenderer image]): Added. Returns pointer to image.
1757 (-[WebImageRenderer MIMEType]): Added. Calls through to image.
1758 (-[WebImageRenderer TIFFRepresentation]): Ditto.
1759 (-[WebImageRenderer frameCount]): Ditto.
1760 (-[WebImageRenderer setOriginalData:]): Added. Sets image data pointer.
1761 (+[WebImageRenderer stopAnimationsInView:]): Added. Calls through to image.
1762 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): Ditto.
1763 (-[WebImageRenderer size]): Ditto.
1764 (-[WebImageRenderer resize:]): Ditto.
1765 (-[WebImageRenderer drawImageInRect:fromRect:]): Ditto.
1766 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]): Ditto.
1767 (-[WebImageRenderer stopAnimation]): Ditto.
1768 (-[WebImageRenderer tileInRect:fromPoint:context:]): Ditto.
1769 (-[WebImageRenderer isNull]): Ditto.
1770 (-[WebImageRenderer retainOrCopyIfNeeded]): Ditto.
1771 (-[WebImageRenderer increaseUseCount]): Ditto.
1772 (-[WebImageRenderer decreaseUseCount]): Ditto.
1773 (-[WebImageRenderer flushRasterCache]): Ditto.
1774 (-[WebImageRenderer imageRef]): Ditto.
1775 (-[WebImageRenderer copyWithZone:]): Ditto.
1777 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragImage:rect:event:pasteboard:source:offset:]):
1778 Update for slight changes to WebImageRenderer API.
1779 * WebCoreSupport.subproj/WebImageRendererFactory.m:
1780 (-[WebImageRendererFactory imageRendererWithMIMEType:]): Ditto.
1781 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]): Ditto.
1782 (-[WebImageRendererFactory imageRendererWithSize:]): Ditto.
1783 (-[WebImageRendererFactory imageRendererWithName:]): Ditto.
1784 * WebView.subproj/WebImageView.m: (-[WebImageView image]): Ditto.
1786 2004-10-20 Chris Blumenberg <cblu@apple.com>
1788 Fixed: <rdar://problem/3846943> REGRESSION: JNLP files are rendered instead of downloaded
1792 * Plugins.subproj/WebBasePluginPackage.h:
1793 * Plugins.subproj/WebBasePluginPackage.m:
1794 (-[WebBasePluginPackage isJavaPlugIn]): new
1795 * Plugins.subproj/WebPluginDatabase.m:
1796 (-[WebPluginDatabase refresh]): don't register the Java plug-in for a document view since Java file should be downloaded when not embedded.
1798 2004-10-20 Chris Blumenberg <cblu@apple.com>
1801 <rdar://problem/3842030> WebKit needs to pass the mode (NP_FULL, NP_EMBED, etc) when calling plugInViewWithArguments
1802 <rdar://problem/3792852> Safari is loading the new QuickTime Cocoa plugin on Panther
1806 * Plugins.subproj/WebPluginDocumentView.m:
1807 (-[WebPluginDocumentView setDataSource:]): pass "full" as the mode
1808 * Plugins.subproj/WebPluginPackage.m:
1809 (-[WebPluginPackage initWithPath:]): load plug-in with the "webplugin" extension
1810 * WebCoreSupport.subproj/WebBridge.m:
1811 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): pass "embed" as the mode
1812 * WebKit.pbproj/project.pbxproj:
1814 2004-10-19 Vicki Murley <vicki@apple.com>
1816 - bump WebKit version to 167.1, so that we can do a quick dot submission for <rdar://problem/3843951>
1818 * WebKit.pbproj/project.pbxproj:
1820 2004-10-19 Darin Adler <darin@apple.com>
1822 Change suggested by Maciej during code review.
1824 * WebCoreSupport.subproj/WebTextRenderer.m: Changed rounding hack table to be const so it can be in shared instead
1825 of private memory, and doesn't require an initialization function.
1826 (+[WebTextRenderer initialize]): Removed initialization.
1828 2004-10-19 Darin Adler <darin@apple.com>
1832 - fixed <rdar://problem/3838934> Safari stops loading pages after rangeOfCharacterFromSet nil argument exception
1833 - fixed <rdar://problem/3843951> REGRESSION (166-167): Safari crashes in widthForNextCharacter (belkin.com, at startup for others)
1834 - fixed <rdar://problem/3841049> REGRESSION (109-110): control characters render as square boxes
1836 * WebCoreSupport.subproj/WebTextRenderer.m:
1837 (isSpace): Merged in isAlternateSpace, never used.
1838 (setupRoundingHackCharacterTable): Fixed size of table, was 1 entry too short. Got rid of unneeded call to bzero,
1839 since globals start out zeroed automatically.
1840 (isRoundingHackCharacter): Fixed backwards logic causing the crash in widthForNextCharacter.
1841 Also removed explicit compare with 1; check for non-zero is just fine.
1842 (fontContainsString): Change code so we'll just skip the font if the covered character set returns nil rather than
1843 throwing an exception like the old version did. This should make bug 3838934 go away, although perhaps covering up
1844 the underlying problem.
1845 (-[WebTextRenderer _convertCharacters:length:toGlyphs:]): Removed unused skipControlCharacters: parameter and also
1846 the unnecessary code to copy the buffer to change newline characters and non-break spaces to spaces.
1847 (-[WebTextRenderer _convertUnicodeCharacters:length:toGlyphs:]): Removed unused local.
1848 (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]): Added code to set up special cases for control characters,
1849 \n and non-break spaces.
1850 (-[WebTextRenderer _createATSUTextLayoutForRun:]): Added comment about the cases this code does not handle that
1851 are handled by the CG case.
1852 (widthForNextCharacter): Call isSpace instead of checking specifically for the space character here. The old code
1853 would not handle cases with '\n' coming across from WebCore properly.
1855 2004-10-18 Chris Blumenberg <cblu@apple.com>
1857 Fixed: <rdar://problem/3840916> GC: -[WebNetscapePluginPackage initWithPath:] leaks an NSURL
1861 * Plugins.subproj/WebNetscapePluginPackage.m:
1862 (-[WebNetscapePluginPackage initWithPath:]): use executablePath on NSBundle instead of CFBundleCopyExecutableURL
1864 2004-10-18 Chris Blumenberg <cblu@apple.com>
1866 * DOM.subproj/DOMPrivate.h: change to copied header that was never committed
1868 2004-10-18 John Sullivan <sullivan@apple.com>
1872 - fixed <rdar://problem/3810183> Make WebHTMLView respect return value of webView:doCommandBySelector:
1874 * WebView.subproj/WebHTMLView.m:
1875 (-[WebHTMLView doCommandBySelector:]):
1876 only do default action if delegate returns NO; this works with Mail as of Tiger 8A275.
1880 2004-10-14 Ken Kocienda <kocienda@apple.com>
1884 Final fix for these bugs:
1886 <rdar://problem/3806306> HTML editing puts spaces at start of line
1887 <rdar://problem/3814252> HTML editing groups space with word causing wrapping
1889 This change sets some new CSS properties that have been added to WebCore to
1890 enable whitespace-handling and line-breaking features that make WebView work
1891 more like a text editor.
1893 * WebView.subproj/WebHTMLRepresentation.m:
1894 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Turn on special editing
1895 CSS properties when loading an HTML document into a WebView that is editable.
1896 * WebView.subproj/WebView.m:
1897 (-[WebView setEditable:]): Add and remove special editing CSS properties in current
1898 document being displayed.
1900 2004-10-14 Richard Williamson <rjw@apple.com>
1902 Fixed <rdar://problem/3823026> making isRoundingHackCharacter use -O3 and an 8-bit lookup-table will speed "XBS" test up by 3% (actually < 1%)
1904 Careful testing shows a small performance gain on very large text files.
1905 I saw large variations in timings, but taking the lowest PLT timing
1906 with and without this change showed a 0.9% gain. Note the cvs-base showed
1907 no improvement. The improvement was for the large page attached to the
1912 * WebCoreSupport.subproj/WebTextRenderer.m:
1913 (setupRoundingHackCharacterTable):
1914 (isRoundingHackCharacter):
1915 (+[WebTextRenderer initialize]):
1917 2004-10-14 Ken Kocienda <kocienda@apple.com>
1921 Fix build breakage. These three functions need to return the values from their
1922 calls to WebCGColorSpaceCreateXXX.
1924 * WebCoreSupport.subproj/WebGraphicsBridge.m:
1925 (-[WebGraphicsBridge createRGBColorSpace])
1926 (-[WebGraphicsBridge createGrayColorSpace])
1927 (-[WebGraphicsBridge createCMYKColorSpace])
1929 2004-10-13 Richard Williamson <rjw@apple.com>
1931 Addressed concerns in <rdar://problem/3803117> RESP: High complexity in icu uidna_IDNToASCII called by [NSString(WebNSURLExtras) _web_mapHostNameWithRange:encode:makeString:]
1933 In practice I saw NO improvement in performance. Although,
1934 special-case tests could possibly show improvement. Anyway,
1935 the changes don't hurt performance.
1939 * Misc.subproj/WebNSURLExtras.m:
1940 (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
1942 2004-10-13 Maciej Stachowiak <mjs@apple.com>
1946 <rdar://problem/3824626> Change to do colormatching for DeviceRGB colorspace causes ~11% Safari slowdown
1948 - I fixed this by turning off all colormatching for WebKit
1949 content. We might turn it back on later. For now, it's possible to
1950 turn it on temporarily by defining COLORMATCH_EVERYTHING.
1952 * WebCoreSupport.subproj/WebGraphicsBridge.m:
1953 (-[WebGraphicsBridge setFocusRingStyle:radius:color:]):
1954 (-[WebGraphicsBridge additionalPatternPhase]):
1955 (-[WebGraphicsBridge createRGBColorSpace]):
1956 (-[WebGraphicsBridge createGrayColorSpace]):
1957 (-[WebGraphicsBridge createCMYKColorSpace]):
1958 * WebCoreSupport.subproj/WebImageData.m:
1959 * WebCoreSupport.subproj/WebImageRenderer.h:
1960 * WebCoreSupport.subproj/WebImageRenderer.m:
1961 (-[WebImageRenderer _adjustSizeToPixelDimensions]):
1962 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
1963 (-[WebImageRenderer _adjustColorSpace]):
1964 (-[WebImageRenderer drawClippedToValidInRect:fromRect:]):
1965 (-[WebImageRenderer tileInRect:fromPoint:context:]):
1967 (WebCGColorSpaceCreateRGB):
1968 (WebCGColorSpaceCreateGray):
1969 (WebCGColorSpaceCreateCMYK):
1972 2004-10-13 Richard Williamson <rjw@apple.com>
1974 Don't fill background with transparency unless debug flag
1979 * WebView.subproj/WebHTMLView.m:
1980 (-[WebHTMLView drawRect:]):
1982 2004-10-12 Richard Williamson <rjw@apple.com>
1984 Fixed <rdar://problem/3829705> Need to remove filling w/ transparency when not drawing backgroundy.
1988 * WebView.subproj/WebHTMLView.m:
1989 (-[WebHTMLView _transparentBackground]):
1990 (-[WebHTMLView _setTransparentBackground:]):
1991 (-[WebHTMLView drawRect:]):
1992 * WebView.subproj/WebHTMLViewInternal.h:
1993 * WebView.subproj/WebHTMLViewPrivate.h:
1995 2004-10-11 Chris Blumenberg <cblu@apple.com>
1997 Fixed: <rdar://problem/3802039> 8A259: Can't use Grab services to grab selection from screen
2001 * WebView.subproj/WebHTMLView.m:
2002 (+[WebHTMLView initialize]): register service "return types" which are types that can be inserted into a WebView
2003 (-[WebHTMLView writeSelectionToPasteboard:types:]): service protocol method, be sure to only write specified types
2004 (-[WebHTMLView readSelectionFromPasteboard:]): new, service protocol method, insert types
2005 (-[WebHTMLView validRequestorForSendType:returnType:]): moved, handle return types
2007 2004-10-11 Darin Adler <darin@apple.com>
2011 - fixed <rdar://problem/3834130> nil-object-in-dictionary exception seen in -[WebView _elementAtWindowPoint:]
2013 * WebView.subproj/WebView.m: (-[WebView _elementAtWindowPoint:]): Added a check for nil frame.
2015 2004-10-11 Darin Adler <darin@apple.com>
2019 - fixed <rdar://problem/3834166> <input type=file> sends onchange even when the same file is chosen twice
2021 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton chooseFilename:]):
2022 Do nothing if filename is the same as before.
2024 2004-10-11 Ken Kocienda <kocienda@apple.com>
2028 * WebView.subproj/WebHTMLView.m:
2029 (-[WebTextCompleteController doCompletion]): bridge call to get caret rect at a node
2030 now takes an affinity: caretRectAtNode:offset:affinity:.
2032 2004-10-10 Ken Kocienda <kocienda@apple.com>
2038 <rdar://problem/3814236> REGRESSION (Mail): Can't set the color of text in Mail compose window using drag/drag from color panel
2040 * WebView.subproj/WebHTMLView.m:
2041 (+[WebHTMLView _insertablePasteboardTypes]): Add NSColorPboardType to list.
2042 (-[WebHTMLView _isNSColorDrag:]): New helper. Determines if drag is an NSColor drag.
2043 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): Add a case for NSColor drags,
2044 else do what we did before.
2045 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): Add a case for NSColor drags, which creates
2046 a CSS style containing color info and calls the bridge to apply the style. Otherwise, do what we did before.
2048 2004-10-11 Darin Adler <darin@apple.com>
2052 - fixed <rdar://problem/3833848> REGRESSION (133-134): each keydown event is getting sent multiple times
2054 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView performKeyEquivalent:]):
2055 Don't send an event through WebCore if it has already been through once.
2057 2004-10-10 John Sullivan <sullivan@apple.com>
2061 - fixed <rdar://problem/3777253> Crash in redirect mechanism trying to display error page for bad scheme
2063 * WebView.subproj/WebMainResourceClient.m:
2064 (-[WebMainResourceClient connection:willSendRequest:redirectResponse:]):
2065 add retain/autorelease to the request returned from call to super. In this case, the return value
2066 was being dealloc'ed before being returned.
2068 2004-10-09 Chris Blumenberg <cblu@apple.com>
2071 <rdar://problem/3625352> up and down arrow and page up/down keys don't work to scroll overflow:auto/scroll/overlay areas
2072 <rdar://problem/3397658> scroll wheel does not work to scroll overflow:auto/scroll/overlay areas (RSS)
2076 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2077 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): fixed typo in comment
2078 * Plugins.subproj/WebNetscapePluginStream.m:
2079 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2080 * WebView.subproj/WebFramePrivate.h:
2081 * WebView.subproj/WebFrameView.m:
2082 (-[WebFrameView _bridge]): new
2083 (-[WebFrameView scrollToBeginningOfDocument:]): call the bridge to scroll, if that fails, scroll the document view
2084 (-[WebFrameView scrollToEndOfDocument:]): ditto
2085 (-[WebFrameView _pageVertically:]): ditto
2086 (-[WebFrameView _pageHorizontally:]): ditto
2087 (-[WebFrameView _scrollLineVertically:]): ditto
2088 (-[WebFrameView _scrollLineHorizontally:]): ditto
2089 * WebView.subproj/WebHTMLView.m:
2090 (-[WebHTMLView scrollWheel:]): call the bridge to scroll, if that fails, pass to next responder
2094 2004-10-05 Chris Blumenberg <cblu@apple.com>
2096 Fixed: <rdar://problem/3827002> assertion failure in WebBaseNetscapePluginStream on abc.go.com
2100 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2101 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): avoid assertion failure in dealloc by temporarily setting isTerminated to YES in case we are released in this method
2102 * Plugins.subproj/WebNetscapePluginStream.m:
2103 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): ditto
2105 2004-10-05 John Sullivan <sullivan@apple.com>
2107 * WebCoreSupport.subproj/WebBridge.m:
2108 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]):
2109 initialize "arguments" var to nil to satisfy compiler on deployment build.
2111 2004-10-05 Richard Williamson <rjw@apple.com>
2113 Fixed <rdar://problem/3825442> first click lost for Dashboard
2114 Allow dashboard to force acceptsFirstMouse:
2118 * WebView.subproj/WebHTMLView.m:
2119 (-[WebHTMLView acceptsFirstMouse:]):
2120 * WebView.subproj/WebView.m:
2121 (-[WebView _dashboardBehavior:]):
2122 * WebView.subproj/WebViewInternal.h:
2123 * WebView.subproj/WebViewPrivate.h:
2125 * WebCoreSupport.subproj/WebImageRenderer.h:
2128 2004-10-05 Chris Blumenberg <cblu@apple.com>
2130 Fixed: <rdar://problem/3760920> Need to record plugin view instances
2134 * Plugins.subproj/WebPluginController.h:
2135 * Plugins.subproj/WebPluginController.m:
2136 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): new, creates plug-in view and adds it to global list
2137 (+[WebPluginController isPlugInView:]): new, checks if the plug-in view is in the global list
2138 (-[WebPluginController destroyAllPlugins]): remove the plug-in from the global list
2139 * Plugins.subproj/WebPluginDocumentView.m:
2140 (-[WebPluginDocumentView setDataSource:]): call [WebPluginController plugInViewWithArguments:fromPluginPackage:]
2141 * WebCoreSupport.subproj/WebBridge.m:
2142 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): ditto
2143 * WebView.subproj/WebFrame.m:
2144 (-[WebFrame _reloadForPluginChanges]): call [WebPluginController isPlugInView:]
2145 * WebView.subproj/WebHTMLView.m:
2146 (-[WebHTMLView addSubview:]): ditto
2148 2004-10-05 David Hyatt <hyatt@apple.com>
2150 Fix to make selection more like NSTextView. All gap painting is now done by WebCore, so WebKit no longer
2151 needs to try to fill gaps around text.
2153 Reviewed by kocienda
2155 * WebCoreSupport.subproj/WebTextRenderer.m:
2156 (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
2157 (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]):
2159 2004-10-05 Darin Adler <darin@apple.com>
2163 - fixed <rdar://problem/3577255> custom file icon shows up upside down in <input type=file>
2165 * WebCoreSupport.subproj/WebFileButton.m: (-[WebFileButton setFilename:]): Added a call to
2166 setFlipped that fixes the problem, even though I don't know why.
2168 2004-10-04 Darin Adler <darin@apple.com>
2172 - fixed <rdar://problem/3814237> REGRESSION (Mail): Copy/paste style does not set color in Mail compose window
2174 * WebView.subproj/WebHTMLView.m:
2175 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Changed to call new bridge method
2176 named fontAttributesForSelectionStart, deleted the method this used to use, and renamed
2177 this to have the word "start" in it.
2178 (-[WebHTMLView copyFont:]): Updated for name change.
2180 * English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
2182 2004-10-04 Chris Blumenberg <cblu@apple.com>
2184 * WebView.subproj/WebFrameInternal.h: removed constant declarations that I committed by mistake
2186 2004-10-04 Chris Blumenberg <cblu@apple.com>
2188 Fixed: <rdar://problem/3798948> NPP_URLNotify is not called if plug-in calls NPN_*URLNotfy
2189 Fixed a number of FIXME's related to notifying plug-ins of loaded pages.
2193 * Plugins.subproj/WebBaseNetscapePluginStream.h:
2194 - replaced URL ivar with requestURL and responseURL ivars since we need to pass both to plug-ins
2195 - added sendNotification boolean. Relying on notifyData not being NULL was not information to know whether to call NPP_URLNotify or not.
2196 - added isTerminated boolean because determining whether or not stream.ndata is NULL is not enough to know if the stream has been cancelled.
2197 * Plugins.subproj/WebBaseNetscapePluginStream.m:
2198 (+[WebBaseNetscapePluginStream reasonForError:]): new, factored out from receivedError:
2199 (-[WebBaseNetscapePluginStream initWithRequestURL:pluginPointer:notifyData:sendNotification:]): new
2200 (-[WebBaseNetscapePluginStream dealloc]): release new ivars
2201 (-[WebBaseNetscapePluginStream finalize]): added assert
2202 (-[WebBaseNetscapePluginStream setRequestURL:]): new
2203 (-[WebBaseNetscapePluginStream setResponseURL:]): new
2204 (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:]): renamed, use responseURL as it basically did before
2205 (-[WebBaseNetscapePluginStream startStreamWithResponse:]): call renamed method
2206 (-[WebBaseNetscapePluginStream destroyStream]):
2207 - do nothing if terminated
2208 - call NPP_StreamAsFile and NPP_DestroyStream if stream.ndata is not NULL
2209 - call NPP_URLNotify if sendNotification is YES regardless of value of notifyData
2210 (-[WebBaseNetscapePluginStream receivedError:]): call reasonForError
2211 (-[WebBaseNetscapePluginStream deliverData]): use renamed ivar
2212 * Plugins.subproj/WebBaseNetscapePluginView.h:
2213 - added observingFrameLoadNotification boolean
2214 - renamed dictionary ivar to pendingFrameLoads which has WebFrame keys and WebPluginRequest values
2215 * Plugins.subproj/WebBaseNetscapePluginView.m:
2216 (-[WebBaseNetscapePluginView addFrameLoadObserver]): new
2217 (-[WebBaseNetscapePluginView removeFrameLoadObserver]): new
2218 (-[WebBaseNetscapePluginView stop]): call removeFrameLoadObserver
2219 (-[WebBaseNetscapePluginView initWithFrame:]): use renamed pendingFrameLoads ivar
2220 (-[WebBaseNetscapePluginView dealloc]): ditto
2221 (-[WebBaseNetscapePluginView requestWithURLCString:]): set referrer on the request just as IE does
2222 (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
2223 - call NPP_URLNotify depending of value of sendNotification
2224 - call new init method on WebBaseNetscapePluginStream rather then setting variables individually
2225 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithReason:]): new, calls NPP_URLNotify at the right time with the right value
2226 (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]): new, delegate method called from WebFrame
2227 (-[WebBaseNetscapePluginView loadPluginRequest:]): call addFrameLoadObserver
2228 (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): take new sendNotification parameter and pass it
2229 (-[WebBaseNetscapePluginView getURLNotify:target:notifyData:]): pass YES for sendNotification
2230 (-[WebBaseNetscapePluginView getURL:target:]): pass NO for sendNotification
2231 (-[WebBaseNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): take new sendNotification parameter and pass it
2232 (-[WebBaseNetscapePluginView postURLNotify:target:len:buf:file:notifyData:]): pass YES for sendNotification
2233 (-[WebBaseNetscapePluginView postURL:target:len:buf:file:]): pass NO for sendNotification
2234 (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:]): take new sendNotification parameter
2235 (-[WebPluginRequest sendNotification]): new
2236 * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
2237 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2238 (-[WebNetscapePluginEmbeddedView didStart]): set referrer on the request just as IE does
2239 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2240 (-[WebNetscapePluginRepresentation receivedData:withDataSource:]): set the request URL on the stream
2241 * Plugins.subproj/WebNetscapePluginStream.h:
2242 * Plugins.subproj/WebNetscapePluginStream.m:
2243 (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]): take new sendNotification parameter and pass it
2244 (-[WebNetscapePluginStream dealloc]): use renamed ivar
2245 (-[WebNetscapePluginStream start]): ditto
2246 * WebView.subproj/WebFrame.m:
2247 (-[WebFrame _setState:]): removed notification posting code. This was only used by WebBaseNetscapePluginView and it was the wrong notification to send.
2248 (-[WebFrame _checkLoadCompleteForThisFrame]): call internal load delegate to tell it that the load has finished
2249 (-[WebFrame _loadItem:withLoadType:]): ditto
2250 (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): ditto
2251 (-[WebFrame _setInternalLoadDelegate:]): new
2252 (-[WebFrame _internalLoadDelegate]): new
2253 * WebView.subproj/WebFrameInternal.h:
2254 * WebView.subproj/WebFramePrivate.h:
2256 2004-10-04 Chris Blumenberg <cblu@apple.com>
2258 Fixed: <rdar://problem/3758113> REGRESSION: Macromedia ColdFusion page doesn't show main content
2260 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.
2264 * Plugins.subproj/WebBaseNetscapePluginView.m:
2265 (-[NSData _web_locationAfterFirstBlankLine]): looks for 2 CRLF's, not for 2 LF's
2267 2004-10-04 Darin Adler <darin@apple.com>
2271 - fixed a potential storage leak when we turn on CGImageRef image rendering
2273 * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): Fix potential storage leak
2274 by adding [super dealloc], but leak was not real yet because the code is commented out.
2276 - make paste style work with color as part of fix to <rdar://problem/3814237> REGRESSION (Mail):
2277 Copy/paste style does not set color in Mail compose window
2279 * WebView.subproj/WebHTMLView.m:
2280 (-[WebHTMLView _selectionFontAttributes]): Change structure so it's easy to add more attributes.
2281 For now I haven't added any yet.
2282 (-[WebHTMLView _colorAsString:]): Moved this earlier in the file.
2283 (-[WebHTMLView _shadowAsString:]): Ditto.
2284 (-[WebHTMLView _styleFromFontAttributes:]): Add background color, foreground color, and text shadow.
2286 2004-09-30 Richard Williamson <rjw@apple.com>
2288 Fixed <rdar://problem/3821215> NPN hasMethod and hasProperty functions should take NPObjects, not NPClass
2290 Also changed dashboard regions dictionary to use "control"
2291 for scroller region label, instead of "scroller, per
2296 * Plugins.subproj/npruntime.h:
2297 * WebView.subproj/WebView.m:
2298 (-[WebView _addScrollerDashboardRegions:from:]):
2300 2004-09-30 Chris Blumenberg <cblu@apple.com>
2302 Fixed: <rdar://problem/3498680> switching back and forth between tabs stops calling anything in a plug-in
2306 * Plugins.subproj/WebBaseNetscapePluginView.m:
2307 (-[WebBaseNetscapePluginView sendEvent:]): call setWindowIfNecessary because the window may have changed
2308 (-[WebBaseNetscapePluginView updateAndSetWindow]): new
2309 (-[WebBaseNetscapePluginView setWindowIfNecessary]): was setWindow, this method now just sets the window
2310 (-[WebBaseNetscapePluginView start]): call updateAndSetWindow
2311 (-[WebBaseNetscapePluginView viewDidMoveToWindow]): ditto
2312 (-[WebBaseNetscapePluginView viewHasMoved:]): ditto
2314 2004-09-30 Chris Blumenberg <cblu@apple.com>
2316 Fixed: <rdar://problem/3498668> switching out of tab doesn't send loseFocusEvent to plug-in
2320 * Plugins.subproj/WebBaseNetscapePluginView.h:
2321 * Plugins.subproj/WebBaseNetscapePluginView.m:
2322 (-[WebBaseNetscapePluginView setHasFocus:]): new, sends events to plug-in
2323 (-[WebBaseNetscapePluginView becomeFirstResponder]): call setHasFocus
2324 (-[WebBaseNetscapePluginView resignFirstResponder]): ditto
2325 (-[WebBaseNetscapePluginView viewWillMoveToWindow:]): ditto
2327 2004-09-30 Chris Blumenberg <cblu@apple.com>
2330 Assertion failure when loading standalone netscape plug-in content.
2331 Document loads of WebKit plug-in content should be cancelled since the plug-in does its own loading.
2335 * Misc.subproj/WebKitErrors.m: removed deprecated method
2336 * Misc.subproj/WebKitErrorsPrivate.h:
2337 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2338 (-[WebNetscapePluginDocumentView setDataSource:]): fixed the assertion statement
2339 * Plugins.subproj/WebPluginDocumentView.h:
2340 * Plugins.subproj/WebPluginDocumentView.m:
2341 (-[WebPluginDocumentView dealloc]): remove retained plug-in
2342 (-[WebPluginDocumentView setDataSource:]): retain the plug-in, cancel the laod
2344 2004-09-29 Chris Blumenberg <cblu@apple.com>
2347 <rdar://problem/3763832> Safari-155: Non-Embeded movies fail to open in Cocoa QT plug-in
2348 <rdar://problem/3820517> "*** -[WebPluginPackage NPP_New]: selector not recognized [self = 0x5552c10]"
2352 * History.subproj/WebHistoryItem.m:
2353 * Misc.subproj/WebNSViewExtras.h:
2354 * Misc.subproj/WebNSViewExtras.m:
2355 (-[NSView _web_firstResponderCausesFocusDisplay]):
2356 (-[NSView _webView]):
2358 (-[NSView _bridge]):
2359 (-[NSView _dataSource]):
2360 * Plugins.subproj/WebBasePluginPackage.h:
2361 * Plugins.subproj/WebBasePluginPackage.m:
2362 (-[WebBasePluginPackage hash]):
2363 (-[WebBasePluginPackage isQuickTimePlugIn]):
2364 * Plugins.subproj/WebNetscapePluginDocumentView.m:
2365 (-[WebNetscapePluginDocumentView setDataSource:]):
2366 * Plugins.subproj/WebNetscapePluginRepresentation.m:
2367 * Plugins.subproj/WebPluginController.h:
2368 * Plugins.subproj/WebPluginController.m:
2369 (-[WebPluginController initWithDocumentView:]):
2370 (-[WebPluginController addPlugin:]):
2371 (-[WebPluginController destroyAllPlugins]):
2372 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2373 (-[WebPluginController webPlugInContainerShowStatus:]):
2374 (-[WebPluginController webPlugInContainerSelectionColor]):
2375 (-[WebPluginController webFrame]):
2376 * Plugins.subproj/WebPluginDatabase.h:
2377 * Plugins.subproj/WebPluginDatabase.m:
2378 (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
2379 (-[WebPluginDatabase refresh]):
2380 (WebPluginDocumentView::while):
2381 * Plugins.subproj/WebPluginDocumentView.h: Added.
2382 * Plugins.subproj/WebPluginDocumentView.m: Added.
2383 (-[WebPluginDocumentView initWithFrame:]):
2384 (-[WebPluginDocumentView dealloc]):
2385 (-[WebPluginDocumentView drawRect:]):
2386 (-[WebPluginDocumentView setDataSource:]):
2387 (-[WebPluginDocumentView setNeedsLayout:]):
2388 (-[WebPluginDocumentView layout]):
2389 (-[WebPluginDocumentView currentWindow]):
2390 (-[WebPluginDocumentView viewWillMoveToWindow:]):
2391 (-[WebPluginDocumentView viewDidMoveToWindow]):
2392 (-[WebPluginDocumentView viewWillMoveToHostWindow:]):
2393 (-[WebPluginDocumentView viewDidMoveToHostWindow]):
2394 (-[WebPluginDocumentView receivedData:withDataSource:]):
2395 (-[WebPluginDocumentView receivedError:withDataSource:]):
2396 (-[WebPluginDocumentView finishedLoadingWithDataSource:]):
2397 (-[WebPluginDocumentView canProvideDocumentSource]):
2398 (-[WebPluginDocumentView documentSource]):
2399 (-[WebPluginDocumentView title]):
2400 * Plugins.subproj/npapi.m:
2401 (NPN_ReleaseVariantValue):
2402 (NPN_GetStringIdentifier):
2403 (NPN_GetStringIdentifiers):
2404 (NPN_GetIntIdentifier):
2405 (NPN_IdentifierIsString):
2406 (NPN_UTF8FromIdentifier):
2407 (NPN_IntFromIdentifier):
2410 (NPN_ReleaseObject):
2412 (NPN_InvokeDefault):
2416 (NPN_RemoveProperty):
2421 * WebCoreSupport.subproj/WebBridge.m:
2422 (-[WebBridge frameRequiredForMIMEType:URL:]):
2423 * WebCoreSupport.subproj/WebViewFactory.m:
2425 * WebKit.pbproj/project.pbxproj:
2426 * WebView.subproj/WebDebugDOMNode.m:
2427 * WebView.subproj/WebDocumentInternal.h:
2428 * WebView.subproj/WebHTMLView.m:
2429 (-[WebHTMLView initWithFrame:]):
2430 * WebView.subproj/WebHTMLViewPrivate.h:
2431 * WebView.subproj/WebImageRepresentation.h:
2432 * WebView.subproj/WebRenderNode.m:
2433 * WebView.subproj/WebView.m:
2435 2004-09-29 Richard Williamson <rjw@apple.com>
2437 Fixed <rdar://problem/3779998> bringing window to front or sending to back does not send focus/blur events to JavaScript window object
2439 The fix has two parts, 1) make onblur and onfocus work for windows,
2440 and 2), allow the dashboard to override WebKit's special key/non-key
2445 * Plugins.subproj/WebBaseNetscapePluginView.m:
2446 (-[WebBaseNetscapePluginView restartNullEvents]):
2447 * WebView.subproj/WebHTMLView.m:
2448 (-[WebHTMLView addMouseMovedObserver]):
2449 (-[WebHTMLView removeMouseMovedObserver]):
2450 * WebView.subproj/WebView.m:
2451 (-[WebView _dashboardBehavior:]):
2452 * WebView.subproj/WebViewInternal.h:
2453 * WebView.subproj/WebViewPrivate.h:
2455 2004-09-29 Maciej Stachowiak <mjs@apple.com>
2459 - consolidated OS version checks into prefix header
2461 * Misc.subproj/WebFileDatabase.m:
2462 (-[WebFileDatabase _createLRUList:]):
2463 (+[WebFileDatabase _syncLoop:]):
2464 * Misc.subproj/WebKitErrors.m:
2466 * Misc.subproj/WebNSObjectExtras.h:
2467 (WebNSRetainCFRelease):
2468 * Misc.subproj/WebNSPasteboardExtras.m:
2469 (-[NSPasteboard _web_declareAndWriteDragImage:URL:title:archive:source:]):
2470 * Misc.subproj/WebUnicode.m:
2471 (_unicodeDirection):
2472 * WebCoreSupport.subproj/WebImageData.h:
2473 * WebCoreSupport.subproj/WebImageRenderer.h:
2474 * WebCoreSupport.subproj/WebKeyGenerator.h:
2475 * WebCoreSupport.subproj/WebNewKeyGeneration.c:
2477 * WebView.subproj/WebDataSource.m:
2478 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
2479 (-[WebDataSource isLoading]):
2480 * WebView.subproj/WebFrameView.m:
2481 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
2482 * WebView.subproj/WebHTMLView.m:
2483 * WebView.subproj/WebPDFRepresentation.h:
2484 * WebView.subproj/WebPDFRepresentation.m:
2485 * WebView.subproj/WebPDFView.h:
2486 * WebView.subproj/WebPDFView.m:
2488 2004-09-29 Ken Kocienda <kocienda@apple.com>
2494 <rdar://problem/3818296> REGRESSION (Mail): centerSelectionInVisibleArea does not work correctly
2496 * WebView.subproj/WebHTMLView.m:
2497 (-[WebHTMLView centerSelectionInVisibleArea:]): Now calls new centerSelectionInVisibleArea
2498 bridge function instead of ensureCaretVisible. Now handles caret selections and range
2499 selections correctly.
2501 2004-09-28 Chris Blumenberg <cblu@apple.com>
2503 Added timing code so that Doug can time RTF conversion.
2505 * WebView.subproj/WebHTMLView.m:
2506 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]):
2507 (-[WebHTMLView _attributeStringFromDOMRange:]):
2509 2004-09-28 Richard Williamson <rjw@apple.com>
2511 <rdar://problem/3817421> add getter for dashboard regions (debugging)
2513 <rdar://problem/3817417> NSScrollView need autoregions for dashboard
2518 * WebCoreSupport.subproj/WebBridge.m:
2519 (-[WebBridge dashboardRegionsChanged:]):
2520 * WebView.subproj/WebView.m:
2521 (-[WebView _setInitiatedDrag:]):
2522 (-[WebView _addScrollerDashboardRegions:from:]):
2523 (-[WebView _addScrollerDashboardRegions:]):
2524 (-[WebView _dashboardRegions]):
2525 * WebView.subproj/WebViewPrivate.h:
2527 2004-09-27 John Sullivan <sullivan@apple.com>
2529 - fixed <rdar://problem/3814705> 8A266: Safari authentication dialog "remember password" text should match Mail
2531 * Panels.subproj/English.lproj/WebAuthenticationPanel.nib:
2532 changed "Remember this password" to "Remember this password in my keychain";
2533 this will need to go through CCC for this week's build.
2535 2004-09-27 Chris Blumenberg <cblu@apple.com>
2537 Fixed: <rdar://problem/3594754> change null event interval from 20 ms to 10 ms to match speed on Windows
2541 * Plugins.subproj/WebBaseNetscapePluginView.m:
2543 2004-09-27 Chris Blumenberg <cblu@apple.com>
2545 Fixed: <rdar://problem/3502138> text files don't remember scroll position when going back or reloading
2549 * WebView.subproj/WebTextView.m:
2550 (-[WebTextView layout]): implemented, call sizeToFit, without this scrollPoint: won't work
2552 2004-09-27 John Sullivan <sullivan@apple.com>
2556 - WebKit part of fix for <rdar://problem/3734466> ER: Support standard editing keystrokes
2557 like Cmd-B while editing rich text
2559 * WebView.subproj/WebHTMLView.m:
2560 (-[WebHTMLView _toggleBold]):
2561 new method, toggles font-weight from "bold" to "normal"
2562 (-[WebHTMLView _toggleItalic]):
2563 new method, toggles font-style from "italic" to "normal"
2564 (-[WebHTMLView _handleStyleKeyEquivalent:]):
2565 new method, if the new preference is set and we're in an editable state, check for standard
2566 key equivalents for toggling styles (just command-B and command-I for now).
2567 (-[WebHTMLView performKeyEquivalent:]):
2568 Moved in file, now calls _handleStyleKeyEquivalent:
2570 * WebView.subproj/WebPreferenceKeysPrivate.h:
2571 new preference key WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2572 * WebView.subproj/WebPreferences.m:
2573 (+[WebPreferences initialize]):
2574 initial value of WebKitRespectStandardStyleKeyEquivalentsPreferenceKey is NO (maybe we'll
2575 change our minds about this, but this is more guaranteed to be backward-compatible)
2576 (-[WebPreferences respectStandardStyleKeyEquivalents]):
2577 read WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2578 (-[WebPreferences setRespectStandardStyleKeyEquivalents:]):
2579 write WebKitRespectStandardStyleKeyEquivalentsPreferenceKey
2581 * WebView.subproj/WebPreferencesPrivate.h:
2582 declare getter and setter
2584 * English.lproj/StringsNotToBeLocalized.txt:
2585 updated for these and other recent changes
2587 2004-09-27 Chris Blumenberg <cblu@apple.com>
2589 Fixed: <rdar://problem/3806649> assertion failure after control-click of webcam
2593 * WebView.subproj/WebDefaultContextMenuDelegate.m:
2594 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): don't provide "Copy Image" if the image is not fully loaded
2596 2004-09-27 Chris Blumenberg <cblu@apple.com>
2598 Fixed: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2602 * WebView.subproj/WebHTMLView.m:
2603 (-[WebHTMLView _setMouseDownEvent:]): new
2604 (-[WebHTMLView acceptsFirstMouse:]): call _setMouseDownEvent
2605 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
2606 (-[WebHTMLView mouseDown:]): ditto
2607 (-[WebHTMLView _delegateDragSourceActionMask]): removed temp fix, assert that the mouse event is not nil
2609 2004-09-27 Darin Adler <darin@apple.com>
2611 * WebKit.pbproj/project.pbxproj: Added WebDashboardRegion.h as a private header.
2613 2004-09-24 Chris Blumenberg <cblu@apple.com>
2617 * WebView.subproj/WebHTMLView.m:
2618 (-[WebHTMLView _selectedArchive]): added timing code for copying markup
2622 2004-09-24 Chris Blumenberg <cblu@apple.com>
2624 Temp fix for: <rdar://problem/3814810> REGRESSION (125-164): Exception adding nil to dictionary in dragging code
2628 * WebView.subproj/WebHTMLView.m:
2629 (-[WebHTMLView _delegateDragSourceActionMask]): return none if the mouse down event is nil
2631 2004-09-24 Ken Kocienda <kocienda@apple.com>
2637 <rdar://problem/3813917> REGRESSION (125-163): The font panel will change the font of any web page
2639 We were doing a laughably bad job at preventing edits in documents that were not editable.
2640 This change fixes the specific case of the bug mentioned above, and makes an attempt to
2641 fix similar bugs by checking for whether the view is in editing mode before making edits.
2643 * WebView.subproj/WebHTMLView.m:
2644 (-[WebHTMLView _canEdit]): Renamed from _canType. Used in many more places in the code now.
2645 (-[WebHTMLView _isMoveDrag]): Change around code to make the meaning more clear. This one
2646 was actually performing a correct check before.
2647 (-[WebHTMLView keyDown:]): Renamed _canType to _canEdit.
2648 (-[WebHTMLView paste:]): Don't beep if can't paste. This matches AppKit. Any paste-related beeps
2649 will come from failure to handle key equivalent. Menu validation will kick in to dim menu.
2650 (-[WebHTMLView _applyStyleToSelection:]): Bail if !_canEdit.
2651 (-[WebHTMLView pasteAsPlainText:]): Ditto.
2652 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Ditto.
2653 (-[WebHTMLView insertNewline:]): Ditto.
2654 (-[WebHTMLView insertParagraphSeparator:]): Ditto.
2655 (-[WebHTMLView _changeWordCaseWithSelector:]): Ditto.
2656 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Ditto.
2657 (-[WebHTMLView complete:]): Ditto.
2658 (-[WebHTMLView _changeSpellingToWord:]): Ditto. Some code rearranging to eliminate bridge local variable.
2659 (-[WebHTMLView ignoreSpelling:]): Ditto.
2660 (-[WebHTMLView yank:]): Bail if !_canEdit.
2661 (-[WebHTMLView yankAndSelect:]): Ditto.
2662 (-[WebHTMLView deleteToMark:]): Ditto.
2663 (-[WebHTMLView swapWithMark:]): Ditto.
2664 (-[WebHTMLView transpose:]): Ditto.
2665 (-[WebHTMLView _updateFontPanel]): Ditto. Some code rearranging to eliminate bridge local variable.
2666 (-[WebHTMLView setMarkedText:selectedRange:]): Bail if !_canEdit.
2667 (-[WebHTMLView _insertText:selectInsertedText:]): Ditto. Some code rearranging to eliminate bridge local variable.
2668 * WebView.subproj/WebHTMLViewPrivate.h: Renamed _canType to _canEdit.
2670 2004-09-24 Ken Kocienda <kocienda@apple.com>
2674 * WebCoreSupport.subproj/WebDashboardRegion.h: Check in file copied from WebCore.
2676 2004-09-23 Maciej Stachowiak <mjs@apple.com>
2680 <rdar://problem/3685235> REGRESSION (Mail): links are not properly editable
2682 * WebView.subproj/WebDefaultUIDelegate.m: By default, don't allow
2683 link dragging if the element under the mouse pointer is
2684 editable. This way, you can drag-select starting inside a link.
2686 2004-09-23 John Sullivan <sullivan@apple.com>
2690 - WebKit part of fix for <rdar://problem/3415264>
2691 Default encoding should initially be set to current system encoding
2693 * WebView.subproj/WebPreferences.m:
2694 (-[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
2695 new SPI that sets the initial value of the default text encoding to
2696 be the system encoding, with a special-case conversion of MacRoman->Latin1.
2697 This is not done automatically for WebKit clients for fear of breaking them.
2699 * WebView.subproj/WebPreferencesPrivate.h:
2702 2004-09-23 Darin Adler <darin@apple.com>
2706 - fixed <rdar://problem/3811584> REGRESSION (85-125): iframe.document undefined in function called from button onclick; works from img onclick
2708 The fix is to not let "defers callbacks" have any effect on loading "about:blank".
2709 I also had to fix one bug in WebCore that could then be reproduced by going to "about:blank"
2710 while using a button.
2712 * WebView.subproj/WebMainResourceClient.m:
2713 (-[WebMainResourceClient connection:didReceiveResponse:]): Loosen asserts to allow this callback
2714 for the specific case of "about:blank" even if the defers callbacks flag is true.
2715 (-[WebMainResourceClient connectionDidFinishLoading:]): Ditto.
2716 (-[WebMainResourceClient loadWithRequestNow:]): Added NSURLRequest return value. Loosened asserts
2717 as above. Changed code to return a new request if we get a new request back that is not empty
2718 when the defers callbacks flag is true.
2719 (-[WebMainResourceClient loadWithRequest:]): If the defers callbacks flag is set, but the
2720 URL is one that gives us an empty document, then do the work right away, don't defer it.
2722 2004-09-23 Darin Adler <darin@apple.com>
2724 - fixed B&I builds by checking in generated file
2726 * WebCoreSupport.subproj/WebDashboardRegion.h: Added.
2728 2004-09-22 Richard Williamson <rjw@apple.com>
2730 Pass dashboard regions to UI delegate.
2734 * WebCoreSupport.subproj/WebBridge.m:
2735 (-[WebBridge dashboardRegionsChanged:]):
2736 * WebView.subproj/WebUIDelegatePrivate.h:
2737 * copy-webcore-files-to-webkit:
2739 2004-09-22 Chris Blumenberg <cblu@apple.com>
2741 Fixed build that I just broke.
2743 * WebView.subproj/WebHTMLView.m:
2744 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]):
2746 2004-09-22 Chris Blumenberg <cblu@apple.com>
2748 <rdar://problem/3812091> REGRESSION (Mail): double-clicked word is not smart inserted on drag
2752 * WebView.subproj/WebHTMLView.m:
2753 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass value for smartMove
2755 2004-09-22 Chris Blumenberg <cblu@apple.com>
2758 <rdar://problem/3667301> Frequent crashes in Mail when viewing HTML messages (CFURLGetByteRangeForComponent)
2759 <rdar://problem/3810354> WebResourceLoadDelegate can't refuse requests by returning nil; code asserts/crashes instead
2763 * WebCoreSupport.subproj/WebSubresourceClient.m:
2764 (+[WebSubresourceClient startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]): removed broken code that handled loadWithRequest returning NO
2765 * WebView.subproj/WebBaseResourceHandleDelegate.m:
2766 (-[WebBaseResourceHandleDelegate loadWithRequest:]): if nil is returned from the client for willSendRequest, report the cancelled error and return
2768 2004-09-22 Ken Kocienda <kocienda@apple.com>
2772 * WebView.subproj/WebFrameView.m:
2773 (-[WebFrameView _webcore_effectiveFirstResponder]): New function to yield the correct responder
2774 to check for firstResponder-ness before calling makeFirstResonder. This helps to prevent
2775 unwanted firstResponder switching.
2776 * WebView.subproj/WebView.m:
2777 (-[WebView _webcore_effectiveFirstResponder]): Ditto.
2779 2004-09-21 Chris Blumenberg <cblu@apple.com
2782 <rdar://problem/3735071> REGRESSION (Mail): WebCore Editing must do smart paste
2783 <rdar://problem/3799163> REGRESSION (Mail): Deleting a word doesn't delete whitespace
2787 * WebView.subproj/WebDataSource.m:
2788 (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for smartReplace
2789 * WebView.subproj/WebHTMLView.m:
2790 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2791 (-[WebHTMLView _changeSpellingFromMenu:]): pass NO for smartReplace
2792 (-[WebHTMLView pasteboardTypesForSelection]): include WebSmartPastePboardType when _canSmartCopyOrDelete return YES
2793 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): ditto
2794 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2795 (-[WebHTMLView delete:]): call _deleteSelection
2796 (-[WebHTMLView cut:]): don't call delegate twice, call _deleteRange to delete
2797 (-[WebHTMLView pasteAsPlainText:]): pass parameter for smartReplace using _canSmartReplaceWithPasteboard
2798 (-[WebHTMLView _changeWordCaseWithSelector:]): pass NO for smartReplace
2799 (-[WebHTMLView deleteBackward:]): call _deleteSelection when there is a selected range
2800 (-[WebHTMLView _changeSpellingToWord:]): pass NO for smartReplace
2801 (-[WebHTMLView deleteToMark:]): pass NO for smartDeleteOK
2802 (-[WebHTMLView transpose:]): pass NO for smartReplace
2803 (-[WebHTMLView _shouldDeleteRange:]): moved
2804 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:smartDeleteOK:]): moved, handle smartDelete
2805 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): moved
2806 (-[WebHTMLView _deleteSelection]): new
2807 (-[WebHTMLView _canSmartReplaceWithPasteboard]): new
2808 (-[WebHTMLView _canSmartCopyOrDelete]): new
2809 (-[WebHTMLView setMarkedText:selectedRange:]): pass NO for smartReplace
2810 (-[WebHTMLView _discardMarkedText]): call _deleteSelection
2811 (-[WebTextCompleteController _insertMatch:]): pass NO for smartReplace
2812 (-[WebTextCompleteController endRevertingChange:moveLeft:]): pass NO for smartReplace
2813 * WebView.subproj/WebHTMLViewInternal.h:
2814 * WebView.subproj/WebView.m:
2815 (-[WebView _commonInitializationWithFrameName:groupName:]): set smartInsertDeleteEnabled to YES
2816 (-[WebView replaceSelectionWithNode:]): pass NO for smartReplace
2817 (-[WebView replaceSelectionWithText:]): pass NO for smartReplace
2818 (-[WebView replaceSelectionWithMarkupString:]): pass NO for smartReplace
2819 (-[WebView deleteSelection]): call _deleteSelection on WebHTMLView
2821 2004-09-21 John Sullivan <sullivan@apple.com>
2825 - WebKit part of fix for <rdar://problem/3618274> REGRESSION (125-135):
2826 Option-tab doesn't always work as expected
2828 * WebCoreSupport.subproj/WebBridge.m:
2829 (-[WebBridge _retrieveKeyboardUIModeFromPreferences:]):
2830 Don't set WebCoreKeyboardAccessFull when setting WebCoreKeyboardAccessTabsToLinks
2831 after all; these need to be tested independently to get the option-tab behavior
2834 2004-09-21 John Sullivan <sullivan@apple.com>
2836 * WebView.subproj/WebHTMLView.m:
2837 (-[WebHTMLView doCommandBySelector:]):
2838 Commented out part of previous change; it breaks Mail editing until Mail
2841 2004-09-21 John Sullivan <sullivan@apple.com>
2845 * WebView.subproj/WebHTMLView.m:
2846 (-[WebHTMLView doCommandBySelector:]):
2847 Fix build failure from previous checkin, d'oh! Didn't set up webview variable.
2849 2004-09-21 John Sullivan <sullivan@apple.com>
2853 - fixed <rdar://problem/3809477> WebHTMLView needs to pass doCommandBySelector through delegate
2855 * WebView.subproj/WebHTMLView.m:
2856 (-[WebHTMLView doCommandBySelector:]):
2857 Call through to editing delegate. If editing delegate returns YES, don't call super.
2859 * WebView.subproj/WebDefaultEditingDelegate.m:
2860 (-[WebDefaultEditingDelegate webView:doCommandBySelector:]):
2861 default implementation (which was never called) was returning YES, but it should
2862 return NO to signal that it didn't handle the selector.
2864 2004-09-21 Chris Blumenberg <cblu@apple.com>
2866 Fixed: <rdar://problem/3647229> Safari does not play inline Windows Media Content on some sites (miggy.net and ministryofsound.com)
2870 * Plugins.subproj/WebBaseNetscapePluginView.m:
2871 * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
2872 (-[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
2874 2004-09-20 Chris Blumenberg <cblu@apple.com>
2876 Fixed: <rdar://problem/3781290> REGRESSION (Mail): Crash in ReplaceSelectionCommandImpl attaching file to new message
2878 Reviewed by kocienda.
2880 * WebView.subproj/WebView.m:
2881 (-[WebView setEditable:]): call updateSelectionFromEmpty on the bridge if there is no selection
2883 2004-09-20 Chris Blumenberg <cblu@apple.com>
2885 Changes to implement renamed bridge methods.
2890 * DOM.subproj/WebDOMOperations.m:
2891 (-[DOMDocument URLWithAttributeString:]): call renamed bridge method
2892 * WebCoreSupport.subproj/WebBridge.m:
2893 (-[WebBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:]): take 2 parameter arrays rather than 1 which will have to be parsed
2894 (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]): ditto
2896 2004-09-20 Darin Adler <darin@apple.com>
2900 * WebView.subproj/WebFramePrivate.h: Added back.
2901 * WebView.subproj/WebFrameViewPrivate.h: Removed.
2903 2004-09-20 Darin Adler <darin@apple.com>
2907 - fixed <rdar://problem/3655360> REGRESSION (Mail): Ctrl-V emacs key binding, -pageDown: method, unimplemented (and pageUp, and selection-modifying versions)
2908 - fixed <rdar://problem/3792138> REGRESSION (Mail): Spell checker doesn't check current selected word
2910 * WebView.subproj/WebFrameViewInternal.h: Moved WebFrameViewPrivate inside the WebFrameView.m file.
2911 Removed a bunch of methods that don't need to be seen in other files, and added _verticalPageScrollDistance.
2912 * WebView.subproj/WebFrameViewPrivate.h: Removed. Renamed to WebFrameViewInternal.h.
2913 * WebView.subproj/WebFrameView.m:
2914 (-[WebFrameView _verticalKeyboardScrollDistance]): Move in the file because of internal vs. private.
2915 (-[WebFrameView _shouldDrawBorder]): Ditto.
2916 (-[WebFrameView _tile]): Ditto.
2917 (-[WebFrameView _verticalPageScrollDistance]): Added. Separate method so it can be called
2918 by the code to implement pageDown:.
2919 (-[WebFrameView _drawBorder]): Move in the file because of internal vs. private.
2920 (-[WebFrameView _goBack]): Ditto.
2921 (-[WebFrameView _goForward]): Ditto.
2922 (-[WebFrameView _scrollVerticallyBy:]): Ditto.
2923 (-[WebFrameView _scrollHorizontallyBy:]): Ditto.
2924 (-[WebFrameView _horizontalKeyboardScrollDistance]): Ditto.
2925 (-[WebFrameView _horizontalPageScrollDistance]): Added. Separate method for consistency with
2926 vertical method above.
2927 (-[WebFrameView _pageVertically:]): Moved and changed to use _verticalPageScrollDistance.
2928 (-[WebFrameView _pageHorizontally:]): Moved and changed to use _horizontalPageScrollDistance.
2929 (-[WebFrameView _scrollLineVertically:]): Move in the file because of internal vs. private.
2930 (-[WebFrameView _scrollLineHorizontally:]): Ditto.
2931 (-[WebFrameView scrollPageUp:]): Ditto.
2932 (-[WebFrameView scrollPageDown:]): Ditto.
2933 (-[WebFrameView scrollLineUp:]): Ditto.
2934 (-[WebFrameView scrollLineDown:]): Ditto.
2935 (-[WebFrameView _firstResponderIsControl]): Ditto.
2936 (-[WebFrameView keyDown:]): Changed to eliminate _pageLeft, _lineLeft, _pageRight, and _lineRight.
2938 * WebView.subproj/WebDataSource.m: Use WebFrameView.h instead of WebFrameViewPrivate.h.
2940 * WebView.subproj/WebHTMLView.m:
2941 (-[WebHTMLView _alterCurrentSelection:verticalDistance:]): Added.
2942 (-[WebHTMLView moveToBeginningOfDocument:]): Use WebSelectToDocumentBoundary.
2943 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
2944 (-[WebHTMLView moveToEndOfDocument:]): Ditto.
2945 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
2946 (-[WebHTMLView moveParagraphBackwardAndModifySelection:]): Added.
2947 (-[WebHTMLView moveParagraphForwardAndModifySelection:]): Added.
2948 (-[WebHTMLView pageUp:]): Added.
2949 (-[WebHTMLView pageDown:]): Added.
2950 (-[WebHTMLView pageUpAndModifySelection:]): Added.
2951 (-[WebHTMLView pageDownAndModifySelection:]): Added.
2952 (-[WebHTMLView showGuessPanel:]): Changed to call advanceToNextMisspellingStartingJustBeforeSelection.
2953 This fixes the problem with spell checking.
2955 * WebView.subproj/WebImageView.m:
2956 (-[WebImageView webView]): Changed to use _web_parentWebView.
2957 (-[WebImageView menuForEvent:]): Changed to use [self webView].
2958 (-[WebImageView mouseDown:]): Ditto.
2959 (-[WebImageView mouseDragged:]): Ditto.
2960 (-[WebImageView draggedImage:endedAt:operation:]): Ditto.
2962 * WebView.subproj/WebTextView.m:
2963 (-[WebTextView _textSizeMultiplierFromWebView]): Changed to use _web_parentWebView.
2964 (-[WebTextView menuForEvent:]): Ditto.
2965 (-[WebTextView drawPageBorderWithSize:]): Ditto.
2966 (-[WebTextView knowsPageRange:]): Ditto.
2968 * Plugins.subproj/WebPluginDatabase.m: Updated filename of WebFrameViewInternal.h.
2969 * WebCoreSupport.subproj/WebBridge.m: Ditto.
2970 * WebKit.pbproj/project.pbxproj: Ditto.
2971 * WebView.subproj/WebFrame.m: Ditto.
2972 * WebView.subproj/WebView.m: Ditto.
2973 * Misc.subproj/WebNSViewExtras.m: Ditto.
2975 2004-09-20 Darin Adler <darin@apple.com>
2979 - added helper method _web_parentWebView so fewer files need to get at WebFrame private methods
2981 * Misc.subproj/WebNSViewExtras.h: Added _web_parentWebView.
2982 * Misc.subproj/WebNSViewExtras.m: (-[NSView _web_parentWebView]): Added.
2986 2004-09-17 Chris Blumenberg <cblu@apple.com>
2989 <rdar://problem/3805757> don't unnecessarily put RTFD on the pasteboard
2990 <rdar://problem/3805756> strip attachments before generating RTF
2994 * WebView.subproj/WebHTMLView.m:
2995 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): only put RTFD on the pasteboard if it has attachments, strip attachments when writing RTF
2997 2004-09-16 Darin Adler <darin@apple.com>
3001 - fixed <rdar://problem/3804648> 8A262: Safari crashed in -[WebView(WebPrivate) _editingDelegateForwarder] inside QuickTime Cocoa Plug-in during WebView deallocation
3003 * WebView.subproj/WebView.m: (-[WebView _editingDelegateForwarder]):
3004 Check _private for nil before dereferencing it.
3006 2004-09-16 Chris Blumenberg <cblu@apple.com>
3008 Fixed: <rdar://problem/3779150> REGRESSION: images not copied when copying HTML in Safari and pasting into TextEdit
3012 * WebView.subproj/WebHTMLView.m:
3013 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): use RTFDFromRange:: for RTFD
3014 * WebView.subproj/WebHTMLViewPrivate.h:
3016 2004-09-15 Darin Adler <darin@apple.com>
3020 - fixed assertion I saw using the font panel
3022 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _colorAsString:]):
3023 Convert color space before trying to get R, G, and B components.
3025 2004-09-15 Chris Blumenberg <cblu@apple.com>
3027 Fixed: <rdar://problem/3802232> REGRESSION (Mail): WebCore Editing must do smart copy
3029 Reviewed by kocienda.
3031 * WebView.subproj/WebHTMLView.m:
3032 (-[WebHTMLView _writeSelectionToPasteboard:]): call instance method not class method to get pasteboard types since the types depends on the current selection granularity
3033 (-[WebHTMLView pasteboardTypesForSelection]): if the selection granularity is "word" include the smart pasteboard type
3034 (-[WebHTMLView writeSelectionWithPasteboardTypes:toPasteboard:]): put nil on the pasteboard for smart copy
3036 2004-09-14 Darin Adler <darin@apple.com>
3040 - fixed <rdar://problem/3788894> REGRESSION (Mail): ctrl-t emacs key binding does not work (transpose)
3041 - fixed <rdar://problem/3798946> REGRESSION (Mail): Cursor does not disappear when typing
3043 * WebView.subproj/WebHTMLView.m:
3044 (-[WebHTMLView keyDown:]): Hide cursor by calling setHiddenUntilMouseMoves:YES.
3045 (-[WebHTMLView transpose:]): Added.
3047 2004-09-14 Richard Williamson <rjw@apple.com>
3049 1. Add class parameter to object allocation function. This is somewhat redundant, given that
3050 the allocation function is in the class function vector, but people wanted to use the same
3051 allocation function for different classes.
3053 2. Renamed NPN_Class to NPN_Invoke to match the name in the function vector.
3055 3. Add support for a default function on an object. This is a feature that ActiveX supports,
3056 and will allow JavaScript code to be written that will look exactly the same for both ActiveX
3057 plugins and Netscape or WebKit plugins. There are implementations included for the 'C' and
3058 'Objective-C' bindings.
3060 There bugs are covered by
3062 <rdar://problem/3776343> Support for default functions in the JavaScript bindings
3063 <rdar://problem/3779186> NPN_Call needs to be renamed to NPN_Invoke
3064 <rdar://problem/3674754> Need to implement latest npruntime.h
3068 * Plugins.subproj/WebNetscapePluginPackage.m:
3069 (-[WebNetscapePluginPackage load]):
3070 * Plugins.subproj/WebScriptObject.h:
3071 * Plugins.subproj/npfunctions.h:
3072 * Plugins.subproj/npruntime.h:
3074 2004-09-13 Richard Williamson <rjw@apple.com>
3076 D'oh. How many times can I screw up a simple fix!
3078 * WebCoreSupport.subproj/WebTextRenderer.m:
3079 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3081 2004-09-13 Richard Williamson <rjw@apple.com>
3083 Fixed snafu from 3782533 checkin.
3087 * WebCoreSupport.subproj/WebTextRenderer.m:
3088 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3090 2004-09-12 Chris Blumenberg <cblu@apple.com>
3092 Support for: <rdar://problem/3794790> drop rate or time remaining from download status when window is too small to fit it
3096 * Misc.subproj/WebStringTruncator.h:
3097 * Misc.subproj/WebStringTruncator.m:
3098 (+[WebStringTruncator widthOfString:font:]): new
3100 2004-09-10 Richard Williamson <rjw@apple.com>
3102 Fixed <rdar://problem/3782533> CrashTracer: .1459 crashes at com.apple.WebKit: -[WebTextRenderer initWithFont:usingPrinterFont:] + 0x138
3104 We were explicitly failing when we encountered deprecated fonts.
3105 (Those with unsupported glyph packings).
3106 Deprecated fonts should only appear on a system that have
3107 stuff migrated from OS 9. Ugh, thats probably why we've never seen
3112 * WebCoreSupport.subproj/WebTextRenderer.m:
3113 (-[WebTextRenderer initWithFont:usingPrinterFont:]):
3115 2004-09-10 John Sullivan <sullivan@apple.com>
3119 - added _isFrameSet as a private method, so it can be used in WebBrowser.
3120 This is needed to merge the fix for 3123987 to SUPanNavy.
3122 * WebView.subproj/WebFrame.m:
3123 (-[WebFrame _isFrameSet]):
3126 * WebView.subproj/WebFramePrivate.h:
3129 2004-09-09 Chris Blumenberg <cblu@apple.com>
3131 Support for: <rdar://problem/3795485> debug menu item to enable RSS animation on first layout
3135 * WebCoreSupport.subproj/WebBridge.m:
3136 (-[WebBridge didFirstLayout]): new
3137 * WebView.subproj/WebDefaultFrameLoadDelegate.m:
3138 (-[WebDefaultFrameLoadDelegate webView:didFirstLayoutInFrame:]): new
3139 * WebView.subproj/WebViewPrivate.h:
3141 2004-09-09 Richard Williamson <rjw@apple.com>
3143 Alternate implementation of image rendering. Use CGImageRefs instead
3146 Mostly works, but currently disabled because of issues w/ CG.
3151 * WebCoreSupport.subproj/WebImageData.h: Added.
3152 * WebCoreSupport.subproj/WebImageData.m: Added.
3153 (-[WebImageData _commonTermination]):
3154 (-[WebImageData dealloc]):
3155 (-[WebImageData finalize]):
3156 (-[WebImageData copyWithZone:]):
3157 (-[WebImageData numberOfImages]):
3158 (-[WebImageData currentFrame]):
3159 (-[WebImageData _invalidateImages]):
3160 (-[WebImageData imageAtIndex:]):
3161 (-[WebImageData incrementalLoadWithBytes:length:complete:]):
3163 (-[WebImageData tileInRect:fromPoint:context:]):
3164 (-[WebImageData isNull]):
3165 (-[WebImageData size]):
3166 (-[WebImageData _frameDuration]):
3167 (-[WebImageData _repetitionCount]):
3168 (-[WebImageData isAnimationFinished]):
3169 (+[WebImageData stopAnimationsInView:]):
3170 (-[WebImageData addAnimatingRenderer:inView:]):
3171 (-[WebImageData removeAnimatingRenderer:]):
3172 (-[WebImageData _stopAnimation]):
3173 (-[WebImageData _nextFrame:]):
3174 (-[WebImageData animate]):
3175 * WebCoreSupport.subproj/WebImageRenderer.h:
3176 * WebCoreSupport.subproj/WebImageRenderer.m:
3177 (-[WebImageRenderer initWithMIMEType:]):
3178 (-[WebImageRenderer initWithData:MIMEType:]):
3179 (-[WebImageRenderer initWithContentsOfFile:]):
3180 (-[WebImageRenderer dealloc]):
3181 (-[WebImageRenderer copyWithZone:]):
3182 (-[WebImageRenderer retainOrCopyIfNeeded]):
3183 (-[WebImageRenderer resize:]):
3184 (-[WebImageRenderer size]):
3185 (-[WebImageRenderer MIMEType]):
3186 (-[WebImageRenderer frameCount]):
3187 (-[WebImageRenderer isNull]):
3188 (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]):
3189 (-[WebImageRenderer drawImageInRect:fromRect:]):
3190 (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
3191 (-[WebImageRenderer tileInRect:fromPoint:context:]):
3192 (-[WebImageRenderer _startOrContinueAnimationIfNecessary]):
3193 (+[WebImageRenderer stopAnimationsInView:]):
3194 (-[WebImageRenderer stopAnimation]):
3195 (-[WebImageRenderer targetAnimationRect]):
3196 (-[WebImageRenderer increaseUseCount]):
3197 (-[WebImageRenderer decreaseUseCount]):
3198 (-[WebImageRenderer flushRasterCache]):
3199 (-[WebImageRenderer imageRef]):
3200 (-[WebImageRenderer TIFFRepresentation]):
3201 (-[WebImageRenderer image]):
3202 * WebCoreSupport.subproj/WebImageRendererFactory.m:
3203 (-[WebImageRendererFactory imageRendererWithMIMEType:]):
3204 (-[WebImageRendererFactory imageRendererWithData:MIMEType:]):
3205 (-[WebImageRendererFactory imageRendererWithSize:]):
3206 (-[WebImageRendererFactory imageRendererWithName:]):
3207 * WebKit.pbproj/project.pbxproj:
3208 * WebView.subproj/WebImageView.m:
3209 (-[WebImageView image]):
3213 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3215 - rolled out last two changes, they seem to cause a performance regression
3217 * WebView.subproj/WebHTMLView.m:
3218 (-[WebHTMLView firstRectForCharacterRange:]):
3220 2004-09-09 Maciej Stachowiak <mjs@apple.com>
3224 * WebView.subproj/WebHTMLView.m:
3225 (-[WebHTMLView firstRectForCharacterRange:]):
3227 2004-09-08 Maciej Stachowiak <mjs@apple.com>
3231 WebKit part of fix for:
3233 <rdar://problem/3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
3235 * WebView.subproj/WebHTMLView.m:
3236 (-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
3237 and translate to screen coordinates.
3239 2004-09-09 Darin Adler <darin@apple.com>
3243 - fixed <rdar://problem/3790526> mark-related methods not implemented (needed for people with them in their key bindings files)
3245 * WebKit.pbproj/project.pbxproj: Update MACOSX_DEPLOYMENT_TARGET to 10.3 and add -fobjc-exceptions
3246 so we can use new exceptions.
3248 * WebView.subproj/WebHTMLView.m:
3249 (-[WebHTMLView setMark:]): Added.
3250 (unionDOMRanges): Added.
3251 (-[WebHTMLView deleteToMark:]): Added.
3252 (-[WebHTMLView selectToMark:]): Added.
3253 (-[WebHTMLView swapWithMark:]): Added.
3254 (-[WebHTMLView markedRange]): Updated for change to bridge method names.
3255 (-[WebHTMLView hasMarkedText]): Ditto.
3256 (-[WebHTMLView unmarkText]): Ditto.
3257 (-[WebHTMLView _selectMarkedText]): Ditto.
3258 (-[WebHTMLView _selectRangeInMarkedText:]): Ditto.
3259 (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
3260 (-[WebHTMLView _insertText:selectInsertedText:]): Removed check for empty string. An empty string
3261 should not be filtered out here. We need to allow inserting an empty string.
3262 (-[WebHTMLView _selectionIsInsideMarkedText]): Updated for change to bridge method names.
3263 (-[WebHTMLView _updateSelectionForInputManager]): Ditto.
3265 * WebView.subproj/WebView.m: (-[WebView searchFor:direction:caseSensitive:wrap:]):
3266 Changed to use selectionDOMRange instead of selectionStart.
3268 * WebView.subproj/WebHTMLRepresentation.h: Removed unused setSelectionFrom method.
3269 * WebView.subproj/WebHTMLRepresentation.m: Ditto.
3271 2004-09-08 John Sullivan <sullivan@apple.com>
3275 - fixed the localization aspect of:
3276 <rdar://problem/3790011> undoable operations all say "Undo" in the menu, no specific action names
3278 We now have all the strings ready for localization; we just don't actually use them yet.
3280 * English.lproj/Localizable.strings:
3281 updated for this change
3283 * WebCoreSupport.subproj/WebBridge.m:
3284 (-[WebBridge setUndoActionNamePlaceholder]):
3285 added this placeholder method whose purpose is to hold localizable strings for all the Undo
3286 action names that NSTextView uses. Later we will use some or all of these, but we can do
3287 that part after the localization freeze.
3289 2004-09-08 Chris Blumenberg <cblu@apple.com>
3291 Fixed: <rdar://problem/3778785> REGRESSION (Mail): copying from MS word and pasting into editable region leaves internal clipboard data
3293 Reviewed by kocienda.
3295 * WebView.subproj/WebHTMLView.m:
3296 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ignore Microsoft's header meta data
3298 2004-09-08 Chris Blumenberg <cblu@apple.com>
3300 Fixed: <rdar://problem/3792893> WebBaseResourceHandleDelegate always returns cached data for subresource loads
3304 * WebView.subproj/WebBaseResourceHandleDelegate.m:
3305 (-[WebBaseResourceHandleDelegate _canUseResourceForRequest:]): new
3306 (-[WebBaseResourceHandleDelegate loadWithRequest:]): call _canUseResourceForRequest:
3308 2004-09-08 Chris Blumenberg <cblu@apple.com>
3310 Forgot to add this in previous check-in.
3312 * English.lproj/WebViewEditingContextMenu.nib: Added.
3314 2004-09-08 Chris Blumenberg <cblu@apple.com>
3316 Fixed: <rdar://problem/3791240> WebKit uses the NSTextViewContextMenu nib from inside AppKit
3320 * English.lproj/StringsNotToBeLocalized.txt:
3321 * WebKit.pbproj/project.pbxproj:
3322 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3323 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): use our copy of the nib
3325 2004-09-07 Darin Adler <darin@apple.com>
3327 * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes.
3329 2004-09-07 Chris Blumenberg <cblu@apple.com>
3331 Fixed: <rdar://problem/3790143> exception raised when dragging a URL with 2-byte characters
3333 (checked in with last check-in)
3335 2004-09-07 Chris Blumenberg <cblu@apple.com>
3338 <rdar://problem/3080103> Need to pass cmd-modified keys to plug-ins
3339 <rdar://problem/3751509> can't use safari edit menu to copy and paste with Vantage Learning's My Access
3343 * Plugins.subproj/WebBaseNetscapePluginView.m: fake up command-key events for cut, copy, paste and select all so these menu items work for plug-ins
3344 (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
3345 (-[WebBaseNetscapePluginView cut:]):
3346 (-[WebBaseNetscapePluginView copy:]):
3347 (-[WebBaseNetscapePluginView paste:]):
3348 (-[WebBaseNetscapePluginView selectAll:]):
3350 2004-09-07 Darin Adler <darin@apple.com>
3352 - fixed deployment build
3354 * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _deleteWithDirection:granularity:killRing:]):
3355 Initialize prepend variable.
3357 2004-09-06 Darin Adler <darin@apple.com>
3361 - fixed <rdar://problem/3696542> REGRESSION (Mail): Editable WebKit doesn't support underline yet (in the iChat profile window, at least)
3362 - fixed <rdar://problem/3780249> REGRESSION (Mail): copy style/paste style doesn't work in HTML editing in Mail
3363 - fixed <rdar://problem/3788857> REGRESSION (Mail): Home and End keys don't work in message composer
3364 - fixed <rdar://problem/3788884> REGRESSION (Mail): ctrl-d emacs key binding does not work (delete forward)
3365 - fixed <rdar://problem/3788890> REGRESSION (Mail): ctrl-k emacs key binding does not work (delete to end of paragraph)
3366 - fixed <rdar://problem/3788899> REGRESSION (Mail): ctrl-y emacs key binding does not work (yank)
3367 - fixed <rdar://problem/3788901> REGRESSION (Mail): ctrl-o emacs key binding does not work (insert newline in front of insertion point)
3368 - fixed <rdar://problem/3788908> REGRESSION (Mail): ctrl-left-arrow emacs key binding does not work (move to beginning of line)
3369 - fixed <rdar://problem/3788913> REGRESSION (Mail): ctrl-right-arrow emacs key binding does not work (move to end of line)
3370 - implemented a first cut at other attribute changes from Text Panel besides underline (bugs?)
3371 - dealt with a couple of FIXMEs in WebHTMLView.m
3372 - updated list of not-yet-implemented methods in WebHTMLView.m
3373 - fixed many deletion operations to call the correct editing delegate methods
3375 * WebView.subproj/WebFrameViewPrivate.h: Remove _scrollToTopLeft and _scrollToBottomLeft.
3376 No one was calling them anyway, so they should really have been marked internal and not private.
3377 * WebView.subproj/WebFrameView.m:
3378 (-[WebFrameView scrollToBeginningOfDocument:]): Renamed _scrollToTopLeft to this, so the home key
3379 would start working with the key bindings machinery.
3380 (-[WebFrameView scrollToEndOfDocument:]): Same thing, for end key.
3381 (-[WebFrameView keyDown:]): Update for name changes, and also make sure we don't try to grab
3382 control-arrow keys here (probably not necessary, but good anyway).
3384 * WebView.subproj/WebHTMLViewInternal.h: Added keyDownEvent field, and startNewKillRingSequence
3385 and nextResponderDisabledOnce flags.
3386 * WebView.subproj/WebHTMLView.m:
3387 Rearrange declarations at the top of the file so that external things are up with
3388 the #import directives and things inside this file are declared below.
3389 (-[WebHTMLView _shouldReplaceSelectionWithText:givenAction:]): Ditto.
3390 (-[WebHTMLView _calculatePrintHeight]): Moved up into the "internal to file" category.
3391 (-[WebHTMLView _updateTextSizeMultiplier]): Ditto.
3392 (-[WebHTMLView _selectedRange]): Added.
3393 (-[WebHTMLView _openLinkFromMenu:]): Left this method lying around even though I deleted the
3394 other APPKIT_CODE_FOR_REFERENCE in case this shows up in the context menu we are now sharing
3395 with the AppKit. Chris will look at this later, and he can delete it then.
3396 (+[WebHTMLView initialize]): Call _NSInitializeKillRing.
3397 (-[WebHTMLView _documentRange]): Added.
3398 (-[WebHTMLView string]): Call the bridge to get the plain text rather than making an attributed
3399 string and then getting the text from there.
3400 (-[WebHTMLView becomeFirstResponder]): Set startNewKillRingSequence flag, so that new deletions
3401 will create a new kill ring entry.
3402 (-[WebHTMLView moveToBeginningOfDocument:]): Use backward direction instead of left direction.
3403 (-[WebHTMLView moveToBeginningOfDocumentAndModifySelection:]): Ditto.
3404 (-[WebHTMLView moveToBeginningOfLine:]): Ditto.
3405 (-[WebHTMLView moveToBeginningOfLineAndModifySelection:]): Ditto.
3406 (-[WebHTMLView moveToBeginningOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3407 (-[WebHTMLView moveToBeginningOfParagraphAndModifySelection:]): Ditto.
3408 (-[WebHTMLView moveToEndOfDocument:]): Use forward direction instead of right direction.
3409 (-[WebHTMLView moveToEndOfDocumentAndModifySelection:]): Ditto.
3410 (-[WebHTMLView moveToEndOfLine:]): Ditto.
3411 (-[WebHTMLView moveToEndOfLineAndModifySelection:]): Ditto.
3412 (-[WebHTMLView moveToEndOfParagraph:]): Ditto, also use WebSelectToParagraphBoundary.
3413 (-[WebHTMLView moveToEndOfParagraphAndModifySelection:]): Ditto.
3414 (-[WebHTMLView _shouldDeleteRange:]): Added.
3415 (-[WebHTMLView _deleteRange:preflight:killRing:prepend:]): Added.
3416 (-[WebHTMLView delete:]): Changed to call new _deleteRange method.
3417 (-[WebHTMLView cut:]): Changed to preflight property and call new _deleteRange method.
3418 (-[WebHTMLView _selectionFontAttributes]): Added.
3419 (-[WebHTMLView _selectionFontAttributesAsRTF]): Added.
3420 (-[WebHTMLView _fontAttributesFromFontPasteboard]): Added.
3421 (-[WebHTMLView _emptyStyle]): Added.
3422 (-[WebHTMLView _styleFromFontAttributes:]): Added.
3423 (-[WebHTMLView _applyStyleToSelection:]): Added.
3424 (-[WebHTMLView copyFont:]): Implemented.
3425 (-[WebHTMLView pasteFont:]): Implemented.
3426 (-[WebHTMLView _originalFontA]): Added.
3427 (-[WebHTMLView _originalFontB]): Added.
3428 (-[WebHTMLView _addToStyle:fontA:fontB:]): Added. Has code from the method that figures out
3429 what the font manager is doing for changeFont:, now needed for changeAttribute: too.
3430 (-[WebHTMLView _styleFromFontManagerOperation]): Renamed and now calls shared methods.
3431 (-[WebHTMLView changeFont:]): Call shared method, still does the same thing.
3432 (-[WebHTMLView _colorAsString:]): Added. Has code from the method we were using with the
3434 (-[WebHTMLView _shadowAsString:]): Added.
3435 (-[WebHTMLView _styleForAttributeChange:]): Added.
3436 (-[WebHTMLView changeAttributes:]): Implemented.
3437 (-[WebHTMLView _styleFromColorPanelWithSelector:]): Renamed and now calls shared methods.
3438 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): Call method by new name.
3439 (-[WebHTMLView changeDocumentBackgroundColor:]): Call method by new name.
3440 (-[WebHTMLView changeColor:]): Changed around a bit; still doesn't work yet.
3441 (-[WebHTMLView _alignSelectionUsingCSSValue:]): Call shared methods.
3442 (-[WebHTMLView indent:]): Removed, since NSTextView doesn't implement this method. Added to list
3443 of methods to possibly implement later in the file.
3444 (-[WebHTMLView insertTab:]): Call insertText: to save code and so we get WebViewInsertActionTyped
3445 instead of WebViewInsertActionPasted.
3446 (-[WebHTMLView changeCaseOfLetter:]): Removed, since NSTextView doesn't implement this method.
3447 Added to list of methods to possibly implement later in the file.
3448 (-[WebHTMLView _deleteWithDirection:granularity:killRing:]): Added.
3449 (-[WebHTMLView deleteForward:]): Implemented. This makes Control-D work.
3450 (-[WebHTMLView deleteBackwardByDecomposingPreviousCharacter:]): Implemented by just calling
3451 deleteBackward for now; probably better than doing nothing.
3452 (-[WebHTMLView deleteWordForward:]): Changed to call new _delete method above. Fixes things
3453 so that we delete the selection if there is one, get the appropriate delegate calls, handle
3454 the kill ring properly, and don't do any selection if we can't delete.
3455 (-[WebHTMLView deleteWordBackward:]): Ditto.
3456 (-[WebHTMLView deleteToBeginningOfLine:]): Ditto.
3457 (-[WebHTMLView deleteToEndOfLine:]): Ditto.
3458 (-[WebHTMLView deleteToBeginningOfParagraph:]): Ditto.
3459 (-[WebHTMLView deleteToEndOfParagraph:]): Ditto. Added additional behavior needed since this
3460 is bound to Control-K, so it's not really just delete to end of paragraph.
3461 (-[WebHTMLView insertNewlineIgnoringFieldEditor:]): Added. Calls insertNewline:.
3462 (-[WebHTMLView insertTabIgnoringFieldEditor:]): Added. Calls insertTab:.
3463 (-[WebHTMLView subscript:]): Added.
3464 (-[WebHTMLView superscript:]): Added.
3465 (-[WebHTMLView unscript:]): Added.
3466 (-[WebHTMLView underline:]): Added.
3467 (-[WebHTMLView yank:]): Added.
3468 (-[WebHTMLView yankAndSelect:]): Added. Calls _insertText.
3469 (-[WebHTMLView _arrowKeyDownEventSelectorIfPreprocessing:]): Added. Part of workaround for
3470 control-arrow key trouble.
3471 (-[WebHTMLView respondsToSelector:]): Added. More of workaround.
3472 (-[WebHTMLView nextResponder:]): Added. More of workaround.
3473 (-[WebHTMLView _selectionChanged]): Set startNewKillRingSequence flag, so that new deletions
3474 will create a new kill ring entry.
3475 (-[WebHTMLView _updateFontPanel]): Remove a bunch of code here that wasn't working very well
3476 because it walked a DOM range incorrectly, and instead use the new method that does all the
3477 right stuff on the other side of the bridge.
3478 (-[WebHTMLView _insertText:selectInsertedText:]): Added new helper method for use by both
3479 insertText and yankAndSelect, with most of the guts of insertText and one additional parameter.
3480 (-[WebHTMLView insertText:]): Call the new _insertText.
3482 * WebView.subproj/WebView.m: Use macros to make the forwarding from WebView more terse.
3483 Updated the list to include a few methods it didn't before.
3485 2004-09-06 John Sullivan <sullivan@apple.com>
3489 - put preference keys in a private header file so Safari can use them for Managed Preferences
3491 * WebView.subproj/WebPreferenceKeysPrivate.h:
3492 new Private header file, includes the #defines for NSUserDefaults preference keys
3494 * WebView.subproj/WebPreferences.m:
3495 moved the preference key #defines out of here; now imports WebPreferenceKeysPrivate.h
3497 * WebKit.pbproj/project.pbxproj:
3498 updated for new file
3500 2004-09-03 Chris Blumenberg <cblu@apple.com>
3502 Fixed: <rdar://problem/3782543> CrashTracer: ...87 crashes at com.apple.WebKit: -[WebNetscapePluginPackage initWithPath:] + 0x18c
3506 * Plugins.subproj/WebNetscapePluginPackage.m:
3507 (-[WebNetscapePluginPackage initWithPath:]): make sure the file is at least 8 bytes long before calling memcmp
3509 2004-09-03 Chris Blumenberg <cblu@apple.com>
3512 <rdar://problem/3788328> assertion failure when moving an image
3513 <rdar://problem/3783628> REGRESSION (Mail): when I try to reorder an image, the image is duplicated
3515 Reviewed by NOBODY (OOPS!).
3517 * DOM.subproj/WebDOMOperations.m:
3518 (-[DOMDocument _createRangeWithNode:]): new, convenience
3519 (-[DOMDocument _documentRange]): use _ createRangeWithNode:
3520 * DOM.subproj/WebDOMOperationsPrivate.h:
3521 * WebView.subproj/WebHTMLView.m:
3522 (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]): set the selection to the image when starting the drag. This allows "move selection" to work and this matches NSText's behavior
3526 2004-09-02 Richard Williamson <rjw@apple.com>
3528 Support for patterns in <canvas>.
3529 (These changes attempt to create a CGImageRef from a WebImageRenderer that
3530 is used by the pattern drawing function.)
3534 * WebCoreSupport.subproj/WebImageRenderer.h:
3535 * WebCoreSupport.subproj/WebImageRenderer.m:
3536 (-[WebImageRenderer dealloc]):
3537 (-[WebImageRenderer finalize]):
3538 (-[WebImageRenderer imageRef]):
3540 * WebView.subproj/WebPDFView.h:
3541 * WebView.subproj/WebPDFView.m:
3543 2004-09-01 Chris Blumenberg <cblu@apple.com>
3545 Fixed deployment build failure.
3547 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3548 (-[WebDefaultUIDelegate menuItemWithTag:]):
3550 2004-08-31 Chris Blumenberg <cblu@apple.com>
3553 <rdar://problem/3699498> Context menu for editable WebViews should provide items like Cut and Paste
3554 <rdar://problem/3781535> REGRESSION (Mail): no context menu after ctrl-clicking a misspelled word
3556 Reviewed by kocienda.
3558 * English.lproj/Localizable.strings:
3559 * WebView.subproj/WebDefaultContextMenuDelegate.m:
3560 (-[WebDefaultUIDelegate menuItemWithTag:]): updated to handle new menu items
3561 (-[WebDefaultUIDelegate contextMenuItemsForElement:]): renamed from webView:contextMenuItemsForElement:defaultMenuItems:
3562 (-[WebDefaultUIDelegate editingContextMenuItemsForElement:]): new
3563 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): moved, now call contextMenuItemsForElement: or editingContextMenuItemsForElement:
3564 * WebView.subproj/WebDefaultUIDelegate.h:
3565 * WebView.subproj/WebHTMLView.m:
3566 (-[WebHTMLView _isSelectionMisspelled]): new
3567 (-[WebHTMLView _guessesForMisspelledSelection]): new
3568 (-[WebHTMLView _changeSpellingFromMenu:]): new
3569 (-[WebHTMLView _ignoreSpellingFromMenu:]): new
3570 (-[WebHTMLView _learnSpellingFromMenu:]): new
3571 * WebView.subproj/WebHTMLViewPrivate.h:
3572 * WebView.subproj/WebUIDelegate.h:
3574 2004-08-31 Darin Adler <darin@apple.com>
3576 - fixed B&I build failure
3578 * WebView.subproj/WebHTMLView.m: (-[WebTextCompleteController _buildUI]):
3579 Work around unwanted warning by adding a cast.
3581 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3585 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3587 Because we will stop parsing when there is a pending redirection,
3588 avoid setting one if no navigation would actually take place
3589 because the number of steps is out of range.
3591 * WebCoreSupport.subproj/WebBridge.m:
3592 (-[WebBridge canGoBackOrForward:]):
3594 2004-08-30 Darin Adler <darin@apple.com>
3598 - part of fix for <rdar://problem/3637519> REGRESSION (125-128): unrepro crash in QListBox::sizeForNumberOfLines at istweb.apple.com
3600 * WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory clearCaches]):
3601 Call [super clearCaches].
3603 2004-08-30 Darin Adler <darin@apple.com>
3607 - did work to prepare for uploading files incrementally when submitting forms
3609 * History.subproj/WebHistoryItem.m:
3610 (-[WebHistoryItem _setFormInfoFromRequest:]): Use NSArray instead of NSData for form data.
3611 (-[WebHistoryItem formData]): Ditto.
3612 * History.subproj/WebHistoryItemPrivate.h: Ditto.
3613 * WebCoreSupport.subproj/WebBridge.m:
3614 (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]): Ditto.
3615 (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): Ditto.
3616 (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3617 * WebCoreSupport.subproj/WebSubresourceClient.h: Ditto.
3618 * WebCoreSupport.subproj/WebSubresourceClient.m:
3619 (+[WebSubresourceClient startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]): Ditto.
3620 * WebView.subproj/WebFrame.m:
3621 (-[WebFrame _loadItem:withLoadType:]): Ditto.
3622 (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto.
3623 * WebView.subproj/WebFramePrivate.h: Ditto.
3625 * WebView.subproj/WebFormDataStream.h: Added.
3626 * WebView.subproj/WebFormDataStream.m:
3627 (-[WebFormDataStream initWithFormDataArray:]): Placeholder; not done yet.
3628 (-[WebFormDataStream formDataArray]): Ditto.
3629 * WebKit.pbproj/project.pbxproj: Added WebFormDataStream files.
3631 2004-08-30 John Sullivan <sullivan@apple.com>
3635 - WebKit part of fix for <rdar://problem/3607720> myFrame.print() prints the window
3636 but should only print the frame
3638 * WebView.subproj/WebUIDelegatePrivate.h:
3639 declare new delegate method that includes which frame to print
3641 * WebView.subproj/WebDefaultUIDelegate.m:
3642 (-[WebDefaultUIDelegate webView:printFrameView:]):
3643 implement default (no-op) version of new delegate method
3645 * WebCoreSupport.subproj/WebBridge.m:
3646 (-[WebBridge print]):
3647 call new delegate method if available, otherwise call old delegate method, for
3648 backward compatibility.
3650 2004-08-27 Maciej Stachowiak <mjs@apple.com>
3655 Ken comments: It looks like Maciej forgot to land this when he checked in the
3656 WebCore portion of this change.
3658 <rdar://problem/3778314> REGRESSION: Can't proceed to survey questions on Lominger's Apple website
3660 Because we will stop parsing when there is a pending redirection,
3661 avoid setting one if no navigation would actually take place
3662 because the number of steps is out of range.
3664 * WebCoreSupport.subproj/WebBridge.m:
3665 (-[WebBridge canGoBackOrForward:]):
3667 2004-08-27 Ken Kocienda <kocienda@apple.com>
3673 <rdar://problem/3756997> WebKit aggressive in making pasted text into a URL, even when it's not much like a URL
3675 * WebView.subproj/WebHTMLView.m:
3676 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): Don't try so hard to coerce data
3677 on the pasteboard into a URL, and do not make an anchor with an href for any URLs that are
3678 explicitly present on the pasteboard. Also, move URL pasteboard type check beneath the RTF
3683 2004-08-26 Chris Blumenberg <cblu@apple.com>
3685 Fixed build failure on Panther.
3689 * WebView.subproj/WebHTMLView.m:
3690 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): ifdef'd out call to AppKit SPI
3691 (-[WebHTMLView _attributeStringFromDOMRange:]): ditto
3693 2004-08-26 Chris Blumenberg <cblu@apple.com>
3695 Tweak to last check-in.
3697 * WebView.subproj/WebHTMLView.m:
3698 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]):
3700 2004-08-26 Chris Blumenberg <cblu@apple.com>
3703 <rdar://problem/3546412> support for pasting and drag and dropping of RTF and RTFD to editable WebViews
3704 <rdar://problem/3745345> use AppKit for converting from DOM to RTF
3708 * DOM.subproj/WebDOMOperations.m:
3709 (-[DOMDocument _documentRange]): new
3710 * DOM.subproj/WebDOMOperationsPrivate.h:
3711 * WebView.subproj/WebHTMLView.m:
3712 (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:]): call AppKit SPI to get a document fragment from an attributed string
3713 (-[WebHTMLView string]): added a FIXME
3714 (-[WebHTMLView _attributeStringFromDOMRange:]): new, calls AppKit SPI that creates an attributed string from a DOM Range
3715 (-[WebHTMLView attributedString]): call _attributeStringFromDOMRange:, fallback to old code if it returns nil
3716 (-[WebHTMLView selectedAttributedString]): ditto
3718 2004-08-26 Chris Blumenberg <cblu@apple.com>
3720 Fixed: <rdar://problem/3774178> Plugin hooks for selected state aren't being called
3724 * WebCoreSupport.subproj/WebBridge.m:
3725 (-[WebBridge setIsSelected:forView:]): don't forget colons in method names
3727 2004-08-26 Chris Blumenberg <cblu@apple.com>
3729 Fixed: <rdar://problem/3768439> can't click in WebView in Carbon WebKit apps (GetEventPlatformEventRecord returns false)
3733 * Carbon.subproj/HIWebView.m:
3734 (Click): use WebGetEventPlatformEventRecord not GetEventPlatformEventRecord
3737 (MouseDragged): ditto
3738 (MouseWheelMoved): ditto
3739 (WindowHandler): ditto
3740 (HIWebViewEventHandler): ditto
3741 (UpdateObserver): ditto
3742 (WebGetEventPlatformEventRecord): Call GetEventPlatformEventRecord, if that fails fallback to the current event. This is code Eric Schlegel to me to use.
3744 2004-08-24 Chris Blumenberg <cblu@apple.com>
3746 Fixed with help from Trey:
3747 <rdar://problem/3764856> REGRESSION !25-154): Safari accepts mouse clicks (follows links) when not key
3751 * WebView.subproj/WebHTMLView.m:
3752 (-[WebHTMLView _isSelectionEvent:]): brought back from CVS
3753 (-[WebHTMLView acceptsFirstMouse:]): only call eventMayStartDrag if _isSelectionEvent returns YES since we only want to allow selection dragging on the first mouse down
3754 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]): ditto
3756 2004-08-24 Ken Kocienda <kocienda@apple.com>
3760 Improved the checks used to see if certain operations can be done based
3761 on the state of the selection and whether the selection is editable. I
3762 added some helpers and improved some others to assist in making these
3765 This helps to fix this bug:
3766 <rdar://problem/3764987> Crash after adding newline to quoted text
3768 Since some editing methods expect the the selection to be in a certain state
3769 in order to work, these checks help obviate crashes like 3764987.
3771 * WebView.subproj/WebHTMLView.m:
3772 (-[WebHTMLView _writeSelectionToPasteboard:]): _haveSelection name changed to _hasSelection.
3773 (-[WebHTMLView _canCopy]): Checks to see if state is appropriate to perform this operation.
3774 (-[WebHTMLView _canCut]): Ditto. Function added.
3775 (-[WebHTMLView _canDelete]): Ditto. Function refined.
3776 (-[WebHTMLView _canPaste]): Ditto. Function refined.
3777 (-[WebHTMLView _canType]): Ditto. Function added.
3778 (-[WebHTMLView _hasSelection]): Name changed from _haveSelection.
3779 (-[WebHTMLView _hasSelectionOrInsertionPoint]): Added.
3780 (-[WebHTMLView _isEditable]): Added.
3781 (-[WebHTMLView takeFindStringFromSelection:]): _haveSelection name changed to _hasSelection.
3782 (-[WebHTMLView validateUserInterfaceItem:]): Ditto
3783 (-[WebHTMLView validRequestorForSendType:returnType:]): Ditto
3784 (-[WebHTMLView keyDown:]):
3785 (-[WebHTMLView copy:]): Uses new _canCopy check.
3786 (-[WebHTMLView cut:]): Uses new _canCut check.
3787 (-[WebHTMLView delete:]): Now uses _canDelete check.
3788 (-[WebHTMLView paste:]): Now uses _canPaste check.
3789 (-[WebHTMLView _updateFontPanel]): _haveSelection name changed to _hasSelection.
3790 * WebView.subproj/WebHTMLViewPrivate.h:
3791 * WebView.subproj/WebView.m:
3792 (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]): Use selectionState check to
3793 determine whether or not operation can be done.
3795 2004-08-24 Richard Williamson <rjw@apple.com>
3797 Fixed <rdar://problem/3770469> Some PDFs open with line of previous page above PDF view
3799 Set height resize flags on WebPDFView.
3803 * WebView.subproj/WebPDFView.m:
3804 (-[WebPDFView initWithFrame:]):
3806 2004-08-24 David Hyatt <hyatt@apple.com>
3808 Add Atom and RSS MIME types to set of supported XML types.
3812 * WebView.subproj/WebDataSource.m:
3813 (+[WebDataSource _repTypesAllowImageTypeOmission:]):
3814 * WebView.subproj/WebFrameView.m:
3815 (+[WebFrameView _viewTypesAllowImageTypeOmission:]):
3817 2004-08-23 Maciej Stachowiak <mjs@apple.com>
3821 - remove annoying ERROR spew and replace with comment
3823 * WebView.subproj/WebHTMLView.m:
3824 (-[WebHTMLView validAttributesForMarkedText]):
3826 2004-08-23 Maciej Stachowiak <mjs@apple.com>
3828 Reviewed by Richard.
3830 - a bit of code cleanup
3832 * WebView.subproj/WebDataSource.m:
3833 (-[WebDataSource _stringWithData:]): Call textEncodingName instead of
3835 (-[WebDataSource textEncodingName]): Tweak formatting.
3837 2004-08-23 Chris Blumenberg <cblu@apple.com>
3841 * WebKit.pbproj/project.pbxproj: make sure we're doing -f on a file, not a directory
3843 2004-08-23 Chris Blumenberg <cblu@apple.com>
3845 Fixed: <rdar://problem/3674867> use new Security framework SPI's to reenable cert acquisition
3849 * WebCoreSupport.subproj/WebKeyGeneration.cpp:
3850 * WebCoreSupport.subproj/WebKeyGeneration.h:
3851 * WebCoreSupport.subproj/WebKeyGenerator.h:
3852 * WebCoreSupport.subproj/WebKeyGenerator.m:
3853 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): re-enabled cert code, call Panther version on Panther, Tiger version on Tiger
3854 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): ditto
3855 * WebCoreSupport.subproj/WebNewKeyGeneration.c: Added.
3856 (gnrAddContextAttribute):
3862 (signedPublicKeyAndChallengeString):
3863 (addCertificateToKeychainFromData):
3864 (addCertificatesToKeychainFromData):
3865 * WebCoreSupport.subproj/WebNewKeyGeneration.h: Added.
3866 * WebKit.pbproj/project.pbxproj:
3868 2004-08-20 David Hyatt <hyatt@apple.com>
3870 Fix the directionality of the unicode hyphen so that on Panther it now matches Tiger.
3874 * Misc.subproj/WebUnicode.m:
3875 (_unicodeDirection):
3877 2004-08-20 Richard Williamson <rjw@apple.com>
3879 Implemented new JNI abstraction. We no longer invoke Java methods
3880 directly with JNI, rather we call into the plugin. This allows the
3881 plugin to dispatch the call to the appropriate VM thread. This
3882 change should (will?) fix a whole class of threading related problems with
3887 * WebCoreSupport.subproj/WebBridge.m:
3888 (-[WebBridge getAppletInView:]):
3890 2004-08-20 Trey Matteson <trey@apple.com>
3892 3655407 - Editing: -complete: method unimplemented (WebKit editing API)
3894 This feature is mostly implemented. The only loose ends I know of are:
3896 3769654 - text insertions done via complete: should preserve case of full replacement string
3897 3769652 - positioning of complete: popup window wrong for right-to-left languages
3901 * WebView.subproj/WebHTMLView.m:
3902 (-[WebHTMLViewPrivate dealloc]): Free new object.
3903 (-[WebHTMLView menuForEvent:]): Bail on completion session.
3904 (-[WebHTMLView windowDidResignKey:]): Ditto.
3905 (-[WebHTMLView windowWillClose:]): Ditto.
3906 (-[WebHTMLView mouseDown:]): Ditto.
3907 (-[WebHTMLView resignFirstResponder]): Ditto.
3908 (-[WebHTMLView keyDown:]): Bail on completion session if WebCore takes the event.
3909 Give the CompleteController a crack at the key event.
3910 (-[WebHTMLView _expandSelectionToGranularity:]): Adopt method rename
3911 (-[WebHTMLView complete:]): Make CompleteController, tell it to do its thing.
3912 (-[WebHTMLView checkSpelling:]): Add ERROR().
3913 (-[WebHTMLView showGuessPanel:]): Add ERROR().
3914 (-[WebHTMLView _changeSpellingToWord:]): Add ERROR().
3915 (-[WebHTMLView ignoreSpelling:]): Add ERROR().
3917 (-[WebTextCompleteController initWithHTMLView:]):
3918 (-[WebTextCompleteController dealloc]):
3919 (-[WebTextCompleteController _insertMatch:]): Stick the new string into the doc.
3920 (-[WebTextCompleteController _buildUI]): Make popup window.
3921 (-[WebTextCompleteController _placePopupWindow:]): Position popup window.
3922 (-[WebTextCompleteController doCompletion]): Lookup matches, display window.
3923 (-[WebTextCompleteController endRevertingChange:moveLeft:]): Bail on complete: session.
3924 (-[WebTextCompleteController filterKeyDown:]): Process keys while popup is up.
3925 (-[WebTextCompleteController _reflectSelection]): Handle choice in popup.
3926 (-[WebTextCompleteController tableAction:]): Handle double click in popup
3927 (-[WebTextCompleteController numberOfRowsInTableView:]): Fill table with matches.
3928 (-[WebTextCompleteController tableView:objectValueForTableColumn:row:]): Ditto.
3929 (-[WebTextCompleteController tableViewSelectionDidChange:]): Handle selection change.
3930 * WebView.subproj/WebHTMLViewInternal.h:
3932 2004-08-20 John Sullivan <sullivan@apple.com>
3934 * English.lproj/StringsNotToBeLocalized.txt:
3935 checked this in; the only difference is that
3936 the strings were out of order.
3938 2004-08-19 Richard Williamson <rjw@apple.com>
3940 Continue to call old pollForAppletInView: in Tiger until
3941 we get an plugin that supports the new API.
3945 * WebCoreSupport.subproj/WebBridge.m:
3946 (-[WebBridge getAppletInView:]):
3947 * WebKit.pbproj/project.pbxproj:
3951 2004-08-19 Chris Blumenberg <cblu@apple.com>
3953 Fixed typo in comment.
3955 * Misc.subproj/WebIconDatabase.m:
3956 (-[WebIconDatabase _updateFileDatabase]):
3958 2004-08-19 Chris Blumenberg <cblu@apple.com>
3960 Fixed: <rdar://problem/3566336> CrashTracer: .2403 crashes at com.apple.WebKit: -[WebFileDatabase performSetObject:forKey:] + 0x94
3964 * Misc.subproj/WebIconDatabase.m:
3965 (-[WebIconDatabase _updateFileDatabase]): pass WebFileDatabase copies of the mutable dictionaries or else they may be accessed on a separate thread as the main thread is modifying them
3967 2004-08-18 Richard Williamson <rjw@apple.com>
3969 Replace horrible pollForAppletInView: with new
3970 webPlugInGetApplet. The details of how the applet instance
3971 is provided now belong to the Java team. Yeh.
3975 * WebCoreSupport.subproj/WebBridge.m:
3976 (-[WebBridge getAppletInView:]):
3978 2004-08-17 Richard Williamson <rjw@apple.com>
3980 Fixed <rdar://problem/3759093> Need PDF context menu: "Open in Preview" or other external app
3982 Added support for "Open with ..." in PDF view.
3984 Reviewed by Chris and Trey.
3987 * English.lproj/Localizable.strings:
3988 * English.lproj/StringsNotToBeLocalized.txt:
3989 * WebView.subproj/WebPDFView.h:
3990 * WebView.subproj/WebPDFView.m:
3991 (-[WebPDFView initWithFrame:]):
3992 (-[WebPDFView dealloc]):
3993 (applicationInfoForMIMEType):
3994 (-[WebPDFView path]):
3995 (-[WebPDFView menuForEvent:]):
3996 (-[WebPDFView setDataSource:]):
3997 (-[WebPDFView layout]):
3998 (-[WebPDFView viewDidMoveToHostWindow]):
3999 (-[WebPDFView openWithFinder:]):
4001 2004-08-17 Richard Williamson <rjw@apple.com>
4003 JNI needs both the jmethodID and return type. Changed API to
4008 * Plugins.subproj/WebJavaPlugIn.h:
4010 2004-08-17 Trey Matteson <trey@apple.com>
4012 3764147 - failure of subframe to load leaves links in parent doc broken
4016 * WebView.subproj/WebDataSource.m:
4017 (-[WebDataSource _receivedMainResourceError:complete:]):
4018 Need to call [bridge end] in the case of an error, so WC can clean up.
4022 2004-08-15 Richard Williamson <rjw@apple.com>
4024 More changes to np headers.
4028 * Plugins.subproj/WebNetscapePluginPackage.m:
4029 (-[WebNetscapePluginPackage load]):
4030 * Plugins.subproj/npapi.h:
4031 * Plugins.subproj/npfunctions.h:
4032 * Plugins.subproj/npruntime.h:
4034 2004-08-13 Darin Adler <darin@apple.com>
4038 - fixed <rdar://problem/3760924> Carbon path passed in NPP_StreamAsFile must be in local character set, not UTF-8
4040 * Plugins.subproj/WebBaseNetscapePluginStream.m:
4041 (CarbonPathFromPOSIXPath): Added. New function that uses the path pieces from an FSSpec.
4042 This has many advantages; the big one that fixes the bug is that it gives the mangled names
4043 that work even for files that have names that can't otherwise be encoded in Carbon-style
4044 path names. I didn't write this from scratch: I started with the method in Foundation
4045 and just changed it to use FSSpec.
4046 (-[WebBaseNetscapePluginStream destroyStream]): Remove code that used NSString and just call
4047 CarbonPathFromPOSIXPath instead.
4049 * Plugins.subproj/npapi.h: The Revision tag wanted to touch this file.
4050 I think we are going to have some trouble with this; I'd like to take that out.
4052 * English.lproj/StringsNotToBeLocalized.txt: Updated.
4054 2004-08-12 Trey Matteson <trey@apple.com>
4056 3761329 - query result links all dead in ingrammicro.com (sometimes)
4057 3761328 - links in some docs dead when doc is loaded from WebArchive
4059 Nasty problem. It turns out that these result pages are a parent frame with two child
4060 frames. One of the child frames is a 1 or 2 byte text document. When the text child
4061 is the last doc to complete, because we use a Text rep instead of an HTMLRep, it turns
4062 out we never send [bridge end] from WebKit. That mistake results in checkCompleted not
4063 being called enough in the part, and we never realize the load is done. WebCore does
4064 not allow redirects to happen until the entire load is complete, and the links on this
4065 results page are actually little pieces of JS that set location to a generated URL. Since
4066 redirects are not allowed these links all silently fail to do anything, and the doc never
4067 achieves a completed state where they will work.
4069 Solution is to make sure we always call [bridge end] from the DataSource instead of only
4070 the HTML rep doing it.
4072 Reviewed by Richard and Darin.
4074 * WebView.subproj/WebDataSource.m:
4075 (-[WebDataSource _finishedLoading]): Call [bridge end] here for all kinds of docs.
4076 * WebView.subproj/WebHTMLRepresentation.m:
4077 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Don't call is just for HTMLReps.
4079 2004-08-12 Richard Williamson <rjw@apple.com>
4081 Bring npruntime.h and friends closer to compliance with
4086 * Plugins.subproj/npapi.h:
4087 * Plugins.subproj/npfunctions.h:
4088 * Plugins.subproj/npruntime.h:
4090 (_NPString::_NPVariant::):
4091 * copy-webcore-files-to-webkit:
4093 2004-08-12 Chris Blumenberg <cblu@apple.com>
4095 Fixed: <rdar://problem/3761097> should be able to option-drag selection so HTML can be copied within a page
4099 * WebView.subproj/WebHTMLView.m:
4100 (-[WebHTMLView _isMoveDrag]): new, take into account the option key
4101 (-[WebHTMLView draggingUpdatedWithDraggingInfo:actionMask:]): call _isMoveDrag
4102 (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): call _isMoveDrag