4f0d2efd2e479d2cc8bff751189b1bdb51b5af74
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-01-19  Simon Fraser  <simon.fraser@apple.com>
2
3         Reviewed by Sam Weinig.
4
5         GraphicsLayers in subframes can get sync'd multiple times
6         https://bugs.webkit.org/show_bug.cgi?id=52489
7
8         * WebView/WebView.mm:
9         (-[WebView _syncCompositingChanges]): syncCompositingStateRecursive()
10         was renamed to syncCompositingStateIncludingSubframes().
11
12 2011-01-19  Darin Adler  <darin@apple.com>
13
14         Reviewed by Sam Weinig.
15
16         Would like script debugging protocol method to differentiate between caught and uncaught exceptions
17         https://bugs.webkit.org/show_bug.cgi?id=52104
18         rdar://problem/8704226
19
20         * WebView/WebDelegateImplementationCaching.h:
21         Fix type of second integer in CallScriptDebugDelegate function overload
22         to be int to match the actual Objective-C method. Added a new overload
23         that includes a BOOL in the right place. Added a boolean named
24         exceptionWasRaisedExpectsHasHandlerFlag.
25
26         * WebView/WebDelegateImplementationCaching.mm:
27         (CallDelegate): Added overloads as above.
28         (CallScriptDebugDelegate): Ditto.
29
30         * WebView/WebScriptDebugDelegate.h: Added new method with the additional
31         boolean argument. Marked the old method informally deprecated.
32
33         * WebView/WebScriptDebugger.mm:
34         (WebScriptDebugger::exception): Added code to call with or without the
35         boolean depending on exceptionWasRaisedExpectsHasHandlerFlag.
36
37         * WebView/WebView.mm:
38         (-[WebView _cacheScriptDebugDelegateImplementations]): Set up the
39         exceptionWasRaisedExpectsHasHandlerFlag. Also fixed old code that was not
40         guaranteed to set didParseSourceExpectsBaseLineNumber to NO.
41
42 2011-01-19  Tony Gentilcore  <tonyg@chromium.org>
43
44         Reviewed by Mihai Parparita.
45
46         Perform some forward declaration
47         https://bugs.webkit.org/show_bug.cgi?id=52522
48
49         * Misc/WebKitNSStringExtras.mm:
50
51 2011-01-19  Pavel Podivilov  <podivilov@chromium.org>
52
53         Reviewed by Yury Semikhatsky.
54
55         Web Inspector: [JSC] scripts have incorrect starting line (always 1).
56         https://bugs.webkit.org/show_bug.cgi?id=52721
57
58         * WebView/WebScriptDebugger.h:
59         * WebView/WebScriptDebugger.mm:
60         (toNSString):
61         (WebScriptDebugger::sourceParsed):
62
63 2011-01-19  Levi Weintraub  <leviw@google.com>
64
65         Reviewed by Ryosuke Niwa.
66
67         Updating to use Position::parentAnchoredEquivalent instead of
68         the old htmlediting rangeCompliantEquivalent.
69
70         remove rangeCompliantEquivalent and replace it with Position methods
71         https://bugs.webkit.org/show_bug.cgi?id=25057
72
73         * WebView/WebFrame.mm:
74         (-[WebFrame _smartDeleteRangeForProposedRange:]):
75
76 2011-01-18  Chris Fleizach  <cfleizach@apple.com>
77
78         Reviewed by Darin Adler.
79
80         REGRESSION: A problem with Voiceover and finding links
81         https://bugs.webkit.org/show_bug.cgi?id=52324
82
83         * WebView/WebDynamicScrollBarsView.mm:
84         (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
85
86 2011-01-17  David Kilzer  <ddkilzer@apple.com>
87
88         <http://webkit.org/b/52596> Add missing DOMDocument/DOMDocumentFragment headers to Xcode project
89
90         Reviewed by Dan Bernstein.
91
92         * MigrateHeaders.make: Copy DOMDocumentFragmentPrivate.h and
93         DOMDocumentPrivate.h to the PrivateHeaders directory.
94
95 2011-01-17  Enrica Casucci  <enrica@apple.com>
96
97         Reviewed by Alexey Proskuryakov.
98
99         Drag and drop support: refactoring of image from link and image from selection
100         https://bugs.webkit.org/show_bug.cgi?id=52496
101
102         This work cleans up the Mac code and makes it more similar to the Windows implementation,
103         avoiding the use of an NSView when the FrameView can be used.
104         The refactoring is a necessary step towards the complete support of drag and drop
105         in WebKit2.
106
107         * WebCoreSupport/WebDragClient.mm:
108         (WebDragClient::createDragImageForLink): Added.
109         * WebView/WebHTMLView.mm: Removed dragImageFromLink and dragImageFromURL.
110         * WebView/WebHTMLViewPrivate.h: Removed dragImageFromLink and dragImageFromURL.
111
112 2011-01-17  Pavel Feldman  <pfeldman@chromium.org>
113
114         Reviewed by Yury Semikhatsky.
115
116         Web Inspector: simplify debugger enabling routine.
117         https://bugs.webkit.org/show_bug.cgi?id=52472
118
119         * WebInspector/WebInspector.mm:
120         (-[WebInspector startDebuggingJavaScript:]):
121
122 2011-01-16  Dan Bernstein  <mitz@apple.com>
123
124         Reviewed by Simon Fraser.
125
126         Assertion failure (!inSetWindow) with in-process plug-in in plugins/destroy-on-setwindow.html
127         https://bugs.webkit.org/show_bug.cgi?id=52550
128
129         * Plugins/WebNetscapePluginView.mm:
130         (-[WebNetscapePluginView setWindowIfNecessary]): Removed the assertion, making sure
131         that inSetWindow remains YES until we exit the top-level setWindowIfNecessary.
132
133 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
134
135         Reviewed by Dan Bernstein.
136
137         Issues with iframes and plugins when the WebView is scaled.
138         <rdar://problem/6213380>
139         
140         When _scaleWebView has been called on a WebView, iframes
141         in WebKit1 render and hit-test incorrectly, and plug-ins don't scale up.
142         This is caused by AppKit NSViews not playing nicely with the scale
143         applied through style.
144         
145         Work around most of these issues by adjusting the bounds size
146         of widgets to allow iframe contents to paint with the correct scale,
147         and fix various places in the code where we relied on coordinate
148         transforms via NSViews (which ignore CSS transforms).
149
150         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
151         (-[WebHostedNetscapePluginView updateAndSetWindow]):
152         * WebView/WebFrameView.mm:
153         (-[WebFrameView setBoundsSize:]):
154
155 2011-01-16  Beth Dakin  <bdakin@apple.com>
156
157         Reviewed by Kevin Decker.
158
159         Fix for <rdar://problem/8871204>
160
161         Don't try to save elasticity state. Just rely on
162         NSScrollElasticityAutomatic to restore the correct state.
163         * WebCoreSupport/WebFrameLoaderClient.h:
164         * WebCoreSupport/WebFrameLoaderClient.mm:
165         (WebFrameLoaderClient::WebFrameLoaderClient):
166         (WebFrameLoaderClient::dispatchDidFirstLayout):
167         (WebFrameLoaderClient::provisionalLoadStarted):
168
169 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
170
171         Reviewed by Dan Bernstein.
172
173         Plugins render incorrectly with transformed ancestors
174         https://bugs.webkit.org/show_bug.cgi?id=52507
175         
176         -[NSView visibleRect] gives the wrong answer if there are CSS transforms
177         in the ancestor chain of a plugin.
178         
179         So use of this method with calls to -actualVisibleRectInWindow, which
180         maps rects through the render tree to compute the correct rect,
181         clipping via windowClipRect() if necessary.
182         
183         Not testable, because doing so relies on the behavior of some
184         plugins, which stop rendering if setWindow passes an empty rect.
185
186         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
187         (-[WebHostedNetscapePluginView updateAndSetWindow]):
188         * Plugins/WebBaseNetscapePluginView.h:
189         * Plugins/WebBaseNetscapePluginView.mm:
190         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
191         * Plugins/WebNetscapePluginView.mm:
192         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
193
194 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
195
196         Reviewed by Antti Koivisto.
197
198         Rename cache() to memoryCache()
199         https://bugs.webkit.org/show_bug.cgi?id=52433
200
201         * Misc/WebCache.mm:
202         (+[WebCache statistics]):
203         (+[WebCache setDisabled:]):
204         (+[WebCache isDisabled]):
205         * WebView/WebView.mm:
206         (+[WebView _setCacheModel:]):
207
208 2011-01-13  Geoffrey Garen  <ggaren@apple.com>
209
210         Reviewed by Oliver Hunt.
211
212         Split out a MarkedSpace strategy object from Heap.
213         https://bugs.webkit.org/show_bug.cgi?id=52421
214
215         * Misc/WebCoreStatistics.mm:
216         (+[WebCoreStatistics memoryStatistics]): Updated for class move.
217
218 2011-01-14  Dan Bernstein  <mitz@apple.com>
219
220         Reviewed by Simon Fraser.
221
222         WebKit/mac part of <rdar://problem/8441312> Crash in -[NSView _invalidateGStatesForTree]
223
224         * WebView/WebHTMLView.mm:
225         (-[WebHTMLView _invalidateGStatesForTree]): Override this NSView method, and bracket the call
226         to the superclass implementation with suspending WebCore Widget hierarchy updates. This ensures
227         that the NSView tree doesn’t change from under AppKit as it traverses it.
228
229 2011-01-14  Beth Dakin  <bdakin@apple.com>
230
231         Reviewed by Mark Rowe.
232
233         Fix for <rdar://problem/7793902> Artifacts when scrolling
234         page in Safari while page is loading
235
236         Call setDrawsBackground:YES on the scrollView in 
237         dispatchDidFirstLayout() rather than waiting until
238         frameLoadCompleted(). Also suspend scrolling elasticity
239         between provisionalLoadStarted() and dispatchDidFirstLayout()
240         * WebCoreSupport/WebFrameLoaderClient.h:
241         * WebCoreSupport/WebFrameLoaderClient.mm:
242         (WebFrameLoaderClient::WebFrameLoaderClient):
243         (WebFrameLoaderClient::dispatchDidFirstLayout):
244         (WebFrameLoaderClient::provisionalLoadStarted):
245
246 2011-01-12  Enrica Casucci  <enrica@apple.com>
247
248         Reviewed by Darin Adler.
249
250         WebKit2: Add support for drag and drop
251         https://bugs.webkit.org/show_bug.cgi?id=52343
252         <rdar://problem/7660558>
253         
254         The DragData class has been extended to provide
255         additional context from the application (keyboard state, modal windows, etc.)
256         as well as information of the drag pasteboard being used.
257         These are the changes to align the behavior for WebKit.
258
259         * WebView/WebView.mm:
260         (-[WebView applicationFlags:]): Added.
261         (-[WebView draggingEntered:]): Added parameter to the DragData constructor.
262         (-[WebView draggingUpdated:]): Added parameter to the DragData constructor.
263         (-[WebView draggingExited:]): Added parameter to the DragData constructor.
264         (-[WebView performDragOperation:]): Added parameter to the DragData constructor.
265
266 2011-01-12  Beth Dakin  <bdakin@apple.com>
267
268         Reviewed by Anders Carlsson.
269
270         Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309 
271         Expose fixed layout through WebKit SPI
272         -and corresponding-
273         <rdar://problem/8844464>
274
275         And now with getters!
276         * WebView/WebView.mm:
277         (-[WebView _useFixedLayout]):
278         (-[WebView _fixedLayoutSize]):
279         * WebView/WebViewPrivate.h:
280
281 2011-01-12  Beth Dakin  <bdakin@apple.com>
282
283         Reviewed by Anders Carlsson.
284
285         Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
286         fixed layout through WebKit SPI
287         -and corresponding-
288         <rdar://problem/8844464>
289
290         * WebView/WebView.mm:
291         (-[WebView _setUseFixedLayout:]):
292         (-[WebView _setFixedLayoutSize:]):
293         * WebView/WebViewPrivate.h:
294
295 2011-01-07  Enrica Casucci  <enrica@apple.com>
296
297         Reviewed by Alexey Proskuryakov.
298
299         Paste and drag and drop use different code paths to interact with the pasteboard.
300         https://bugs.webkit.org/show_bug.cgi?id=52093
301         The change consists in a refactoring of the code to have only one class that
302         deals with the pasteboard on Mac.
303
304         * WebCoreSupport/WebEditorClient.h:
305         * WebCoreSupport/WebEditorClient.mm: Added two methods to provide to WebCore functionality
306         exposed by NSURLExtras.
307         (WebEditorClient::canonicalizeURL):
308         (WebEditorClient::canonicalizeURLString):
309         * WebCoreSupport/WebPasteboardHelper.h: Removed.
310         * WebCoreSupport/WebPasteboardHelper.mm: Removed.
311         * WebView/WebHTMLView.mm: Removed comment.
312         * WebView/WebView.mm: The following methods have been changed to use the new DragData
313         constructor that doesn't use the WebPasteboardHelper reference.
314         (-[WebView draggingEntered:]):
315         (-[WebView draggingUpdated:]):
316         (-[WebView draggingExited:]):
317         (-[WebView performDragOperation:]):
318
319 2011-01-09  Tony Gentilcore  <tonyg@chromium.org>
320
321         Reviewed by Alexey Proskuryakov.
322
323         Forward declare some headers where possible
324         https://bugs.webkit.org/show_bug.cgi?id=52133
325
326         * WebView/WebFrame.mm:
327
328 2011-01-09  Xianzhu Wang <phnixwxz@gmail.com>
329
330         Reviewed by Darin Fisher.
331
332         https://bugs.webkit.org/show_bug.cgi?id=41441
333         createWindow method should only do window-creating without URL navigation
334
335         * WebCoreSupport/WebChromeClient.mm:
336         (WebChromeClient::createWindow):
337
338 2011-01-08  Dan Bernstein  <mitz@apple.com>
339
340         Try to fix the Leopard build.
341
342         * WebView/WebFullScreenController.mm:
343
344 2011-01-07  Jer Noble  <jer.noble@apple.com>
345
346         Yet another Leopard build fix: NSRect and CGRect are not inter-
347         changable in 32-bit.  
348         
349         * WebView/WebFullScreenController.mm:
350         (-[WebFullScreenController exitFullscreen]):
351
352 2011-01-07  Jer Noble  <jer.noble@apple.com>
353
354         Fix the Leopard build: Replace CoreAnimation SL-only functions
355         with Leopard equivalents.
356
357         * WebView/WebFullScreenController.mm:
358         (+[CATransaction setDisableActions:]):
359         (+[CATransaction setAnimationDuration:]):
360         (-[WebFullScreenController _animationDuration]):
361         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
362
363 2010-12-21  Jer Noble  <jer.noble@apple.com>
364
365         Reviewed by Simon Fraser.
366
367         Implement WebKit Full Screen support.
368         https://bugs.webkit.org/show_bug.cgi?id=49481
369         rdar://problem/8247444
370
371         Support the new fullscreen Chrome client requests.  WebView will pass
372         through these requests to a WebFullscreenController.
373
374         * WebCoreSupport/WebChromeClient.h: Add fullScreenRendererChanged().
375         * WebView/WebView.mm:
376         (-[WebView _supportsFullScreenForElement:WebCore::]): Check to see if the fullscreen pref has been enabled.
377         (-[WebView _enterFullScreenForElement:WebCore::]): Create a WebFullScreenController.
378         (-[WebView _exitFullScreenForElement:WebCore::]): Request that the WebFullScreenController exit fullscreen.
379         (-[WebView _fullScreenRendererChanged:WebCore::]): Notify the WebFullScreenController that its renderer has changed.
380         * WebView/WebViewData.h: Add ivar newFullscreenController.
381
382 2010-12-17  Jer Noble  <jer@kokode.apple.com>
383
384         Reviewed by Simon Fraser.
385
386         Implement WebKit Full Screen support.
387         https://bugs.webkit.org/show_bug.cgi?id=49481
388         rdar://problem/8247444
389         
390         This patch implements the FullScreen APIs using the new RenderFullScreen renderer and the new
391         Document client APIs. The RenderFullScreen renderer's CALayer is hosted in a new, fullscreen
392         window, and a custom CAAnimation animates that layer between the initial screen rect of the
393         full screen element, to its final value. WebFullscreenController will swap the WebView out of
394         its original window, and into the fullscreen window. The controller will replace the WebView
395         with a placeholder view, so that if the placeholder moves or resized while the WebView is
396         absent, the WebView will move back to the correct location when exiting fullscreen.
397
398         * WebView/WebFullscreenController.h: Added.
399         * WebView/WebFullscreenController.mm: Added.
400         (-[WebFullscreenController windowDidExitFullscreen:]):  Close the fullscreen window.
401         (-[WebFullscreenController windowDidEnterFullscreen:]): Swap the webView back into the fullscreen window. 
402         (-[WebFullscreenController animationDidStop:finished:]): Call windowDid{Exit|Enter}FullScreen as appropriate.
403         (-[WebFullscreenController applicationDidResignActive:]):
404         (-[WebFullscreenController applicationDidChangeScreenParameters:]): Resize the fullscreen window to match
405             the new screen parameters.
406         (-[WebFullscreenController enterFullscreen:]):  Set up the animation that will take the fullscreen element
407             from its original screen rect into fullscreen.
408         (-[WebFullscreenController exitFullscreen]): Swap the webView back into its original window.
409             Set up the animation that will take the fullscreen element back into its original screen
410             rect.
411         (-[WebFullscreenController _updatePowerAssertions]): Now checks _isAnyMoviePlaying to determine 
412             whether to disable screensaver and sleep.
413         (-[WebFullscreenController _isAnyMoviePlaying]): Walks through the sub-tree starting at the fullscreen element
414             looking for HTMLVideoElements; returns whether any are found to be playing.
415         (-[WebFullscreenController _animationDuration]): Returns the current animation duration, affected by control
416             and shift keys.
417         (-[WebFullscreenWindow canBecomeKeyWindow]): Allow the window to become key.
418         (-[WebFullscreenWindow keyDown:]): Handle the 'Esc' key.
419         (-[WebFullscreenWindow cancelOperation:]): Request to exit fullscreen.
420         (-[WebFullscreenWindow rendererLayer]): Convenience accessor.
421         (-[WebFullscreenWindow setRendererLayer:]): Ditto.
422         (-[WebFullscreenWindow backgroundLayer]): Ditto.
423         (-[WebFullscreenWindow animationView]): Ditto.
424         (MediaEventListener::MediaEventListener): Implements the EventListener protocol.
425         (MediaEventListener::handleEvent): Tells its delegate to _updatePowerAssertions.
426         
427 2011-01-07  James Robinson  <jamesr@chromium.org>
428
429         Revert "Implement mozilla's animationTime property"
430         https://bugs.webkit.org/show_bug.cgi?id=51952
431
432         This approach isn't quite right.
433
434         * WebView/WebHTMLView.mm:
435         (-[WebHTMLView drawRect:]):
436         * WebView/WebView.mm:
437         (layerSyncRunLoopObserverCallBack):
438
439 2011-01-06  Gavin Barraclough  <barraclough@apple.com>
440
441         Reviewed by Geoff Garen.
442
443         Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
444
445         The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
446         destructor early, in order to release wrappers once we know we no longer intend to use them.
447         Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
448         lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
449         A sequence of events that triggers the bug would look like this:
450
451         (1) Create a DOMWrapperWorld.
452         (2) Register a timer in the world.
453         (3) Call unregisterWorld() on the world.
454         (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
455         (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
456             called forgetWorld() none exists.
457         (6) Attempt to add a wrapper to a NULL map.
458
459         Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
460
461         * WebView/WebScriptWorld.mm:
462         (-[WebScriptWorld unregisterWorld]):
463
464 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
465
466         Reviewed by Sam Weinig.
467
468         WK2: Support Accessibility
469         https://bugs.webkit.org/show_bug.cgi?id=51859
470
471         Use rootObject() method to get top of AX tree.
472
473         * WebCoreSupport/WebFrameLoaderClient.h:
474         (WebFrameLoaderClient::accessibilityRemoteObject):
475         * WebView/WebFrame.mm:
476         (-[WebFrame setAccessibleName:]):
477         (-[WebFrame accessibilityRoot]):
478         * WebView/WebFrameInternal.h:
479         * WebView/WebFramePrivate.h:
480         * WebView/WebHTMLView.mm:
481         (-[WebHTMLView accessibilityAttributeValue:]):
482         (-[WebHTMLView accessibilityFocusedUIElement]):
483         (-[WebHTMLView accessibilityHitTest:]):
484         (-[WebHTMLView _accessibilityParentForSubview:]):
485
486 2011-01-04  David Kilzer  <ddkilzer@apple.com>
487
488         <http://webkit.org/b/51889> WebFrameLoaderClient::createMediaPlayerProxyPlugin() should use WebCore::PluginInfo.name
489
490         Reviewed by Eric Carlson.
491
492         This originally broke in r61581.  It is inside an
493         ENABLE(PLUGIN_PROXY_FOR_VIDEO) macro, so it didn't break the Mac
494         build then.
495
496         * WebCoreSupport/WebFrameLoaderClient.mm: Call
497         (WebFrameLoaderClient::createMediaPlayerProxyPlugin): Updated to
498         use WebCore::PluginInfo.name instead of
499         -[WebBasePluginPackage name].
500
501 2011-01-02  Dan Bernstein  <mitz@apple.com>
502
503         Rubber-stamped by Simon Fraser.
504
505         <rdar://problem/8812159> Update copyright strings
506
507         * Info.plist:
508
509 2010-12-29  Dan Bernstein  <mitz@apple.com>
510
511         Reviewed by Ada Chan.
512
513         <rdar://problem/8758191> REGRESSION (r72887): Mail crashes when doing searches in a message due to method name conflict
514         https://bugs.webkit.org/show_bug.cgi?id=51717
515
516         Renamed -findString:options: to -_findString:options: in the WebDocumentOptionsSearching
517         protocol to avoid conflict with -[WebHTMLView(MailExtras) findString:options:] which Mail defines.
518
519         * WebView/WebDocumentInternal.h:
520         * WebView/WebHTMLView.mm:
521         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
522         (-[WebHTMLView _findString:options:]):
523         * WebView/WebView.mm:
524         (findString):
525
526 2010-12-28  Daniel Bates  <dbates@rim.com>
527
528         Reviewed by Sam Weinig.
529
530         Substitute // MARK: for compiler-specific #pragma mark
531         https://bugs.webkit.org/show_bug.cgi?id=51657
532
533         For consistency, we should substitute "// MARK:" for compiler-
534         specific "#pragma mark" in the source files for the Mac port.
535
536         * History/WebHistory.mm:
537         * Plugins/WebBaseNetscapePluginView.mm:
538         * Plugins/WebNetscapePluginView.mm:
539         * WebCoreSupport/WebInspectorClient.mm:
540         * WebCoreSupport/WebSecurityOrigin.mm:
541         * WebView/WebPDFView.mm:
542         * WebView/WebVideoFullscreenController.mm:
543         * WebView/WebVideoFullscreenHUDWindowController.mm:
544
545 2010-12-23  Yongjun Zhang  <yongjun_zhang@apple.com>
546
547         Reviewed by Darin Adler.
548
549         WebKit crashes at DebuggerCallFrame::functionName() if m_callFrame is the top global callframe.
550         https://bugs.webkit.org/show_bug.cgi?id=38535
551
552         WebScriptDebugger in WebKit has empty implementations for willExecuteProgram and didExecuteProgram.  As a result,
553         if the top call frame is from a program, WebKitScriptDebugger doesn't record that callframe as the top frame, and
554         WebScriptDebugger's callframe stack is wrong from this point.  That could cause crash if we trying to access the top
555         call frame from this stack when an exception throws because the saved top frame could be invalid.
556
557         To fix that, we need to maintain the call frame stack in willExecuteProgram and didExecuteProgram, as we did in
558         callEvent and returnEvent.
559
560         * WebView/WebScriptDebugger.mm:
561         (WebScriptDebugger::willExecuteProgram):
562         (WebScriptDebugger::didExecuteProgram):
563
564 2010-12-22  Sam Weinig  <sam@webkit.org>
565
566         Reviewed by Darin Adler.
567
568         WebKit2 needs to mirror the frame tree in the UIProcess
569         https://bugs.webkit.org/show_bug.cgi?id=51546
570
571         - Add client functions to notify that a frame has been added or
572           removed from the page cache.
573
574         * WebCoreSupport/WebFrameLoaderClient.h:
575         * WebCoreSupport/WebFrameLoaderClient.mm:
576         (WebFrameLoaderClient::didSaveToPageCache):
577         (WebFrameLoaderClient::didRestoreFromPageCache):
578
579 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
580
581         Reviewed by Eric Seidel.
582
583         Editor.h doesn't need to include SelectionController.h
584         https://bugs.webkit.org/show_bug.cgi?id=51441
585
586         Renamed SelectionController::EDirection to SelectionDirection.
587
588         * WebView/WebFrame.mm:
589         (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:granularity:]):
590         Takes SelectionDirection instead of SelectionController::EDirection.
591         * WebView/WebFrameInternal.h:
592         * WebView/WebTextCompletionController.mm:
593         (-[WebTextCompletionController doCompletion]): Calls _rangeByAlteringCurrentSelection:SelectionController.
594
595 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
596
597         Reviewed by Darin Adler.
598
599         Cache snapshots of plug-ins before painting, to avoid script running during painting
600         https://bugs.webkit.org/show_bug.cgi?id=51493
601
602         When FrameView is asked to do a flattening paint (e.g. when Safari snapshots,
603         or when printing), plug-ins which otherwise use the CA rendering model
604         are sent a paint event. Some plug-ins may run script while handling this event,
605         or out of process plug-ins may process queued requests at this time. Running
606         script while inside layout or painting can have bad consequences, because it
607         can result in arbitrary changes to the render tree.
608         
609         This patch avoids sending plug-ins paint events inside of painting. Instead,
610         we ask the plug-ins to cache a snapshot before we paint, and then the software
611         paint simply draws that snapshot.
612
613         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
614         (-[WebHostedNetscapePluginView drawRect:]): If we have a cached snapshot,
615         draw it. Also only send the snapshot message to the plugin proxy if we
616         know we're snapshotting, since even if creating the snapshot image failed,
617         we still don't want to call to the plug-in.
618
619         * Plugins/WebBaseNetscapePluginView.h: Add a retained NSImage member for the snapshot.
620         * Plugins/WebBaseNetscapePluginView.mm:
621         (-[WebBaseNetscapePluginView cacheSnapshot]): Create an image and draw the snapshot into it.
622         (-[WebBaseNetscapePluginView clearCachedSnapshot]): Clear the snapshot.
623
624         * Plugins/WebNetscapePluginView.mm:
625         (-[WebNetscapePluginView drawRect:]): If we have a cached snapshot, use it.
626         * WebCoreSupport/WebFrameLoaderClient.mm:
627         (NetscapePluginWidget::notifyWidget): Implement notifyWidget() and use it
628         to cache and clear the snapshots.
629
630 2010-12-21  Cameron Zwarich  <zwarich@apple.com>
631
632         Reviewed by Darin Adler.
633
634         -[WebBasePluginPackage isNativeLibraryData:] integer underflows on zero-sized data
635         https://bugs.webkit.org/show_bug.cgi?id=51431
636         <rdar://problem/8791757>
637
638         * Plugins/WebBasePluginPackage.mm:
639         (-[WebBasePluginPackage isNativeLibraryData:]): Change an arithmetic expression so
640         it doesn't underflow.
641
642 2010-12-16  Ryosuke Niwa  <rniwa@webkit.org>
643
644         Reviewed by Cameron Zwarich.
645
646         REGRESSION(r74172): 125 java tests fail on Mac
647         https://bugs.webkit.org/show_bug.cgi?id=51214
648
649         The regression was caused by an incorrectly adding sizeof(struct fat_header)
650         to a pointer for uint32_t as supposed to uint8_t.
651
652         Fixed the bug by explicitly casting it to uint8_t* before the addition.
653
654         * Plugins/WebBasePluginPackage.mm:
655         (-[WebBasePluginPackage isNativeLibraryData:]):
656
657 2010-12-15  Cameron Zwarich  <zwarich@apple.com>
658
659         Reviewed by Darin Adler.
660
661         Clang -Wcast-align gives an error in WebBasePluginPackage.mm
662         https://bugs.webkit.org/show_bug.cgi?id=51144
663
664         Fix an alignment issue. OSSwapInt32 takes data that is 32-bit aligned on ARM, but
665         we were calling it on a byte array 32 bits at a time. While this is okay in practice,
666         since TCMalloc won't give us a non-32-bit aligned block array of bytes and Vector's
667         inline storage is at the beginning of the Vector, it is still better to fix this
668         and silence the warning.
669
670         * Plugins/WebBasePluginPackage.mm:
671         (swapIntsInHeader):
672         (-[WebBasePluginPackage isNativeLibraryData:]):
673
674 2010-12-14  Mark Rowe  <mrowe@apple.com>
675
676         Reviewed by Sam Weinig.
677
678         <http://webkit.org/b/51064> Reproducible crash inside WebCore::MediaPlayerPrivateQTKit::createQTMovie when loading <video>
679
680         * History/WebHistoryItem.mm:
681         (-[WebHistoryItem description]): Test whether the string is empty rather than incorrectly
682         always including the target in the output.
683
684 2010-12-13  Alexey Proskuryakov  <ap@apple.com>
685
686         Reviewed by Adam Barth.
687
688         https://bugs.webkit.org/show_bug.cgi?id=50953
689         DNS Prefetch should be an opt-in feature
690
691         * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default to false.
692
693 2010-12-13  Mike Thole  <mthole@apple.com>
694
695         Rubber-stamped by John Sullivan.
696
697         https://bugs.webkit.org/show_bug.cgi?id=50956
698         WebAuthenticationPanel.nib appears to have a cut-off sentence
699         
700         Replace the sentence fragment in the sheet layout with "<-- do not localize -->" style text.
701         The contents of this text field are updated dynamically before the sheet is displayed.
702
703         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
704         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
705
706 2010-12-13  Antti Koivisto  <antti@apple.com>
707
708         Reviewed by Alexey Proskuryakov.
709
710         https://bugs.webkit.org/show_bug.cgi?id=50758
711         <rdar://problem/8722094> 
712         Defer loading print stylesheets
713         
714         Expose SPI for DRT for making resources load serially. This is useful for testing resource load order.
715
716         * WebView/WebView.mm:
717         (+[WebView _setLoadResourcesSerially:forHost:]):
718         * WebView/WebViewPrivate.h:
719
720 2010-12-09  Matthew Delaney  <mdelaney@apple.com>
721
722         Reviewed by Simon Fraser.
723
724         Adopt new CG API for canvas
725         https://bugs.webkit.org/show_bug.cgi?id=50591
726
727         * WebCoreSupport/WebSystemInterface.mm:
728
729 2010-10-28  MORITA Hajime  <morrita@google.com>
730
731         Reviewed by Ojan Vafai.
732
733         spellcheck does not check pasted text
734         https://bugs.webkit.org/show_bug.cgi?id=40092
735
736         Added asynchronous spell checking API to WebEditorClient using
737         -[NSSpellChecker requestCheckingOfString].
738         Note that WebEditorSpellCheckResponder is a small class to receive
739         requested spell-checking result. Note that this feature is
740         disabled at default.
741         
742         Also added [WebPreferences setAsynchronousSpellCheckingEnabled:] to 
743         enable the feature from LayoutTestController.
744
745         * WebCoreSupport/WebEditorClient.h:
746         * WebCoreSupport/WebEditorClient.mm:
747         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]):
748         (-[WebEditorSpellCheckResponder perform]):
749         (toCoreSpellingResult):
750         (-[WebEditorSpellCheckResponder WTF::WebCore::]):
751         (WebEditorClient::requestCheckingOfString):
752         * WebView/WebPreferenceKeysPrivate.h:
753         * WebView/WebPreferences.mm:
754         (+[WebPreferences initialize]):
755         (-[WebPreferences setAsynchronousSpellCheckingEnabled:]):
756         (-[WebPreferences asynchronousSpellCheckingEnabled]):
757         * WebView/WebPreferencesPrivate.h:
758         * WebView/WebView.mm:
759         (-[WebView _preferencesChangedNotification:]):
760
761 2010-12-09  Anders Carlsson  <andersca@apple.com>
762
763         Fix a bug uncovered by clang++.
764
765         * WebView/WebHTMLView.mm:
766         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
767
768 2010-12-09  Anders Carlsson  <andersca@apple.com>
769
770         Clang++ build fixes.
771
772         Silence a couple of warnings.
773
774         * WebView/WebFrame.mm:
775         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
776         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
777         * WebView/WebTextCompletionController.mm:
778         (-[WebTextCompletionController filterKeyDown:]):
779
780 2010-12-09  David Hyatt  <hyatt@apple.com>
781
782         Reviewed by Dan Bernstein.
783
784         https://bugs.webkit.org/show_bug.cgi?id=48545, Home/End, PgUp, PgDown should respect
785         writing-mode.  This first part of the patch just patches Mac WebKit 1 views.
786
787         * WebView/WebFrameView.mm:
788         (-[WebFrameView _isVerticalDocument]):
789         (-[WebFrameView _isFlippedDocument]):
790         (-[WebFrameView _scrollToEndOfDocument]):
791         (-[WebFrameView _pageInBlockProgressionDirection:]):
792         (-[WebFrameView scrollPageUp:]):
793         (-[WebFrameView scrollPageDown:]):
794
795 2010-12-08  Andy Estes  <aestes@apple.com>
796
797         Reviewed by Darin Adler.
798
799         Enable pre-HTML5 parser quirks for Apple Mail.app
800         https://bugs.webkit.org/show_bug.cgi?id=50727
801
802         * WebView/WebView.mm:
803         (-[WebView _needsPreHTML5ParserQuirks]): Return true if the embedding
804         application is Mail.app.
805
806 2010-12-08  Brian Weinstein  <bweinstein@apple.com>
807
808         Reviewed by John Sullivan.
809
810         REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
811         https://bugs.webkit.org/show_bug.cgi?id=50683
812         
813         If our context menu item already has an action, don't overwrite the action with the context menu
814         forwarder.
815
816         * WebView/WebHTMLView.mm:
817         (setMenuItemTarget):
818
819 2010-12-08  Anders Carlsson  <andersca@apple.com>
820
821         Remove an unused variable.
822
823         * WebView/WebDynamicScrollBarsView.mm:
824         (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
825
826 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
827
828         Reviewed by John Sullivan.
829
830         Layering Violation in ContextMenu - member variable of type HitTestResult
831         https://bugs.webkit.org/show_bug.cgi?id=50586
832         
833         Update users of ContextMenu and ContextMenuController to match where the new functions 
834         are located.
835
836         * WebCoreSupport/WebContextMenuClient.mm:
837         (WebContextMenuClient::getCustomMenuFromDefaultItems):
838         (WebContextMenuClient::contextMenuItemSelected):
839         * WebView/WebHTMLView.mm:
840         (-[WebMenuTarget validateMenuItem:]):
841
842 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
843
844         Reviewed by John Sullivan.
845
846         Part of Layering Violation in ContextMenu
847         https://bugs.webkit.org/show_bug.cgi?id=50586
848         
849         Move WebMenuTarget from ContextMenuMac to here, because having it in ContextMenuMac
850         was a layering violation. Also, make sure we set the menu item targets for all menu
851         items before showing them, because the ContextMenu constructor doesn't do that anymore.
852
853         * WebView/WebHTMLView.mm:
854         (+[WebMenuTarget sharedMenuTarget]): Moved from ContextMenuMac.mm.
855         (-[WebMenuTarget WebCore::]): Ditto.
856         (-[WebMenuTarget setMenuController:WebCore::]): Ditto.
857         (-[WebMenuTarget forwardContextMenuAction:]): Ditto.
858         (-[WebMenuTarget validateMenuItem:]): Ditto.
859
860         (setMenuItemTarget): Sets the target of the NSMenuItem to the shared WebMenuTarget.
861         (setMenuTargets): Recursively iterates over all NSMenuItems in an NSMenu (including
862             submenus), and calls setMenuItemTarget on them.
863         (-[WebHTMLView menuForEvent:]): Call setMenuTarget on all the menu items before adding
864             them to the menu.
865
866 2010-12-06  Darin Adler  <darin@apple.com>
867
868         Reviewed by Sam Weinig.
869
870         Pass security origin to make local file decision correctly
871         https://bugs.webkit.org/show_bug.cgi?id=48603
872
873         * WebView/WebPDFView.mm:
874         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Pass security origin.
875
876 2010-12-07  Martin Robinson  <mrobinson@igalia.com>
877
878         Unreviewed, rolling out r73392.
879         http://trac.webkit.org/changeset/73392
880         https://bugs.webkit.org/show_bug.cgi?id=50489
881
882         This commit caused crashes on the GTK+ bots
883
884         * WebView/WebFrame.mm:
885         (-[WebFrame _canProvideDocumentSource]):
886
887 2010-12-07  Kenichi Ishibashi  <bashi@google.com>
888
889         Reviewed by Kent Tamura.
890
891         Let HTMLObjectElement be a form associated element
892         https://bugs.webkit.org/show_bug.cgi?id=48821
893
894         Modified to use FormAssociatedElement instead of HTMLFormControlElement.
895
896         * WebView/WebHTMLRepresentation.mm:
897         (-[WebHTMLRepresentation elementWithName:inForm:]): Modified to use
898         FormAssociatedElement instead of HTMLFormControlElement.
899         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
900
901 2010-12-06  Nate Chapin  <japhet@chromium.org>
902
903         Reviewed by Adam Barth.
904
905         Update calls to DocumentWriter.
906         https://bugs.webkit.org/show_bug.cgi?id=50489
907
908         * WebView/WebFrame.mm:
909         (-[WebFrame _canProvideDocumentSource]):
910
911 2010-12-06  Chris Marrin  <cmarrin@apple.com>
912
913         Reviewed by Simon Fraser.
914
915         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
916         https://bugs.webkit.org/show_bug.cgi?id=49388
917
918         Got rid of GraphicsLayer::nativeLayer() call, replacing it with 
919         GraphicsLayer::platformLayer().
920
921         * WebCoreSupport/WebChromeClient.mm:
922         (WebChromeClient::attachRootGraphicsLayer):
923
924 2010-12-04  Dan Bernstein  <mitz@apple.com>
925
926         Reviewed by Sam Weinig.
927
928         WebKit part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range
929         https://bugs.webkit.org/show_bug.cgi?id=50530
930
931         * WebView/WebDocumentInternal.h: Added a DOMRange parameter to -countMatchesForText:options:limit:markMatches:
932         * WebView/WebHTMLView.mm:
933         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter,
934         which is passed through to WebCore.
935         * WebView/WebPDFView.mm:
936         (isFrameInRange): Added this helper function.
937         (-[WebPDFView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter and
938         a check if the frame is in the range.
939         * WebView/WebView.mm:
940         (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Now calls the inDOMRange: version.
941         (-[WebView countMatchesForText:inDOMRange:options:highlight:limit:markMatches:]): Added DOMRange
942         parameter, which is passed to document views' -countMatchesForText:inDOMRange:options:limit:markMatches:.
943         * WebView/WebViewPrivate.h:
944
945 2010-12-03  Sam Weinig  <sam@webkit.org>
946
947         Reviewed by Maciej Stachowiak.
948
949         Enable <a ping> for Mac/Windows/WebKit2 builds
950         <rdar://problem/8504473>
951         https://bugs.webkit.org/show_bug.cgi?id=50488
952
953         * WebView/WebPreferences.mm:
954         (+[WebPreferences initialize]): Enable "HyperlinkAuditing" by default.
955
956 2010-12-03  Jia Pu  <jpu@apple.com>
957
958         Reviewed by Darin Adler.
959
960         Need to move all code that applies correction into correction panel callback.
961         https://bugs.webkit.org/show_bug.cgi?id=50426
962         <rdar://problem/8720832>
963
964         * WebCoreSupport/WebEditorClient.h: Adopted new signature of dismissCorrectionPanel.
965
966         * WebCoreSupport/WebEditorClient.mm:
967         (WebEditorClient::~WebEditorClient): Adopted new signature of dismissCorrectionPanel.
968         (WebEditorClient::showCorrectionPanel): Added more user dictionary learning code.
969         (WebEditorClient::dismissCorrectionPanel): Adopted new signature of dismissCorrectionPanel.
970
971 2010-12-02  Simon Fraser  <simon.fraser@apple.com>
972
973         Revert r73217 and r73227 because of continued bustage.
974
975         * WebCoreSupport/WebChromeClient.mm:
976         (WebChromeClient::attachRootGraphicsLayer):
977
978 2010-12-02  Chris Marrin  <cmarrin@apple.com>
979
980         Reviewed by Simon Fraser.
981
982         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
983         https://bugs.webkit.org/show_bug.cgi?id=49388
984
985         Got rid of GraphicsLayer::nativeLayer() call, replacing it with 
986         GraphicsLayer::platformLayer().
987
988         * WebCoreSupport/WebChromeClient.mm:
989         (WebChromeClient::attachRootGraphicsLayer):
990
991 2010-12-02  Mark Rowe  <mrowe@apple.com>
992
993         Reviewed by Beth Dakin.
994
995         <rdar://problem/8708730> Objects reported as being leaked due to lack of autorelease pool
996
997         * Misc/WebNSFileManagerExtras.m:
998         (setMetaData): Create an autorelease pool for the duration of the thread body.
999
1000 2010-12-02  John Knottenbelt  <jknotten@chromium.org>
1001
1002         Reviewed by Steve Block.
1003
1004         Move requestGeolocationPermissionForFrame to GeolocationClient
1005         https://bugs.webkit.org/show_bug.cgi?id=50061
1006
1007         This change facilitates client-based geolocation implementation by
1008         bringing together permission control into the geolocation client
1009         interface.
1010
1011         Move method ChromeClient::requestGeolocationPermissionForFrame to
1012         GeolocationClient::requestPermission, and supporting class
1013         WebGeolocationPolicyListener. The moved code is unchanged except
1014         that requestPermission now takes only one argument (Geolocation*)
1015         and the Frame parameter is retrieved from the Geolocation object.
1016
1017         * WebCoreSupport/WebChromeClient.h:
1018         * WebCoreSupport/WebChromeClient.mm:
1019         * WebCoreSupport/WebGeolocationClient.h:
1020         (WebGeolocationClient::cancelPermissionRequest):
1021         * WebCoreSupport/WebGeolocationClient.mm:
1022         (WebGeolocationClient::requestPermission):
1023         (-[WebGeolocationPolicyListener initWithGeolocation:]):
1024         (-[WebGeolocationPolicyListener allow]):
1025         (-[WebGeolocationPolicyListener deny]):
1026
1027 2010-12-02  Joseph Pecoraro  <joepeck@webkit.org>
1028
1029         Reviewed by Eric Carlson.
1030
1031         Style Fixes in WebPluginController
1032         https://bugs.webkit.org/show_bug.cgi?id=50397
1033
1034         * Plugins/WebPluginController.mm:
1035         (-[WebPluginController startAllPlugins]):
1036         (-[WebPluginController stopAllPlugins]):
1037
1038 2010-12-02  John Sullivan  <sullivan@apple.com>
1039
1040         Reviewed by Adam Roben.
1041         
1042         Slightly speculative fix for:
1043
1044         <rdar://problem/8712674>
1045         <https://bugs.webkit.org/show_bug.cgi?id=50393>
1046         setStringValue: sometimes called with nil in [WebAuthenticationPanel setUpForChallenge]        
1047
1048         * Panels/WebAuthenticationPanel.m:
1049         (-[WebAuthenticationPanel setUpForChallenge:]):
1050         If the realm is nil, use @"" instead.
1051
1052 2010-12-01  Jia Pu  <jpu@apple.com>
1053
1054         Reviewed by Darin Adler.
1055
1056         Support multiple correction candidates panel for misspelled word on Mac OS X.
1057         https://bugs.webkit.org/show_bug.cgi?id=50137
1058         <rdar://problem/8568059>
1059
1060         This patch is for supporting multiple correction suggestion panel on Mac OS X.
1061         The behavior and implementation is similar to that of reversion candiate panel.
1062
1063         * WebCoreSupport/WebEditorClient.h: Adopted new signatures defined in base class.
1064
1065         * WebCoreSupport/WebEditorClient.mm:  Adopted new signatures defined in base class.
1066           Added code to handle new multiple suggestion canidate panel type.
1067         (WebEditorClient::showCorrectionPanel):
1068         (WebEditorClient::getGuessesForWord):
1069
1070 2010-12-01  David Hyatt  <hyatt@apple.com>
1071
1072         Reviewed by Darin Adler.
1073
1074         https://bugs.webkit.org/show_bug.cgi?id=46645
1075         
1076         Part 1 of making scrolling work with vertical text. This patch generalizes the scrollOriginX concept
1077         recently added for horizontal RTL documents and applies it to writing modes as well.  Now the
1078         scrollOrigin is a point, since you can start off locked to the bottom or locked to the right.
1079         
1080         This patch also fixes numerous bugs with the scrollOrigin code using native Mac NSScrollViews and
1081         makes them behave the same as the cross-platform code (allowing for cross-platform results to be
1082         landed).
1083
1084         * WebView/WebDynamicScrollBarsView.mm:
1085         (-[WebDynamicScrollBarsView adjustForScrollOriginChange]):
1086         (-[WebDynamicScrollBarsView updateScrollers]):
1087         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1088         (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
1089         (-[WebDynamicScrollBarsView scrollOrigin]):
1090         * WebView/WebFrameView.mm:
1091         (-[WebFrameView _scrollToBeginningOfDocument]):
1092         (-[WebFrameView _scrollToEndOfDocument]):
1093
1094 2010-11-29  Dan Bernstein  <mitz@apple.com>
1095
1096         Reviewed by Darin Adler.
1097
1098         WebKit Mac part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
1099         https://bugs.webkit.org/show_bug.cgi?id=50038
1100         Based on a patch from Darin Adler.
1101
1102         * WebView/WebDocumentInternal.h: Removed -markAllMatchesForText:caseSensitive:limit: and
1103         replaced -countMatchesForText:caseSensitive:limit:markMatches: with a WebFindOptions-based
1104         method. Declared a WebDocumentOptionsSearching protocol with a new -findString:options:
1105         method. Made WebHTMLView conform to the new protocol.
1106         * WebView/WebHTMLView.mm:
1107         (coreOptions): Added. Converts WebFindOptions to WebCore FindOptions.
1108         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Changed to use
1109         -findString:options:.
1110         (-[WebHTMLView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
1111         (-[WebHTMLView findString:options:]): Added. Calls through to WebCore::Editor::findString().
1112         * WebView/WebPDFView.mm:
1113         (-[WebPDFView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
1114         * WebView/WebView.mm:
1115         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): Now calls through to
1116         -countMatchesForText:options:highlight:limit:markMatches.
1117         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): Ditto.
1118         (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]): Now calls through to
1119         -findString:options:.
1120         (incrementFrame): Changed to use WebFindOptions.
1121         (findString): Added this helper method that performs the search using the best supported
1122         method for the document view.
1123         (-[WebView findString:options:]): Changed -searchFor::::: into this.
1124         (-[WebView canMarkAllTextMatches]):
1125         (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Updated to use
1126         WebFindOptions.
1127         (-[WebView unmarkAllTextMatches]): Updated for change to incrementFrame.
1128         (-[WebView rectsForTextMatches]): Ditto.
1129         * WebView/WebViewPrivate.h: Added WebFindOptions, -findString:options:, and WebFindOptions version
1130         of countMatchesForText:.
1131
1132 2010-11-29  Jeremy Moskovich  <jeremy@chromium.org>
1133
1134         Reviewed by David Hyatt.
1135
1136         Right-to-left pages should be scrollable to reveal left overflow.
1137         https://bugs.webkit.org/show_bug.cgi?id=23556
1138
1139         Set and get the original x-axis scroll position and reset scroll position on HOME/END key press.
1140         Modify WebFrameView to support setting the initial horizontal scroller's thumb position to the right for
1141         pages with a left overflow.
1142
1143         * WebView/WebDynamicScrollBarsView.h:
1144         * WebView/WebDynamicScrollBarsView.mm:
1145         (-[WebDynamicScrollBarsView inProgramaticScroll]):
1146         (-[WebDynamicScrollBarsView refreshInitialScrollbarPosition]):
1147         (-[WebDynamicScrollBarsView updateScrollers]):
1148         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1149         (-[WebDynamicScrollBarsView setScrollOriginX:]):
1150         (-[WebDynamicScrollBarsView scrollOriginX]):
1151         * WebView/WebFrameView.mm:
1152         (-[WebFrameView _scrollToBeginningOfDocument]):
1153         (-[WebFrameView _scrollToEndOfDocument]):
1154         * WebView/WebHTMLView.mm:
1155         (-[WebHTMLView _frameOrBoundsChanged]):
1156
1157 2010-11-22  Ryosuke Niwa  <rniwa@webkit.org>
1158
1159         Reviewed by Tony Chang.
1160
1161         SelectionController::typingStyle() should return EditingStyle*
1162         https://bugs.webkit.org/show_bug.cgi?id=49813
1163
1164         Changed the return value of SelectionController::typingStyle() to EditingStyle*.
1165         Also added SelectionController::copyTypingStyle() to copy the typing style
1166         as an instance of CSSMutableStyleDeclaration.
1167
1168         No tests are added since this is no behavioral change.
1169
1170         * WebView/WebFrame.mm:
1171         (-[WebFrame _typingStyle]): Calls SelectionController::copyTypingStyle()
1172
1173 2010-11-19  Michael Saboff  <msaboff@apple.com>
1174
1175         Reviewed by Sam Weinig
1176
1177         Remove DOMSVGAnimatedPathData.h from all: target to fix build.
1178
1179         * MigrateHeaders.make:
1180
1181 2010-11-19  Nikolas Zimmermann  <nzimmermann@rim.com>
1182
1183         Reviewed by Dirk Schulze.
1184
1185         Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
1186         https://bugs.webkit.org/show_bug.cgi?id=49580
1187
1188         * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
1189
1190 2010-11-18  Mark Rowe  <mrowe@apple.com>
1191
1192         Rubber-stamped by Adam Roben.
1193
1194         <rdar://problem/8602509&8602717&8602724> Enable compaction support.
1195
1196         * Configurations/WebKit.xcconfig:
1197
1198 2010-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
1199
1200         Unreviewed, rolling out r72288.
1201         http://trac.webkit.org/changeset/72288
1202         https://bugs.webkit.org/show_bug.cgi?id=49730
1203
1204         'krit attempted to do that, but revert got stuck' (Requested
1205         by antonm on #webkit).
1206
1207         * WebView/WebRenderLayer.mm:
1208
1209 2010-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
1210
1211         Reviewed by Dirk Schulze.
1212
1213         Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
1214         https://bugs.webkit.org/show_bug.cgi?id=49580
1215
1216         * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
1217
1218 2010-11-16  Stephanie Lewis  <slewis@apple.com>
1219
1220         Reviewed by Geoff Garen.
1221
1222         <rdar://problem/8624267> Leak creating offscreen webview running fast/dom tests
1223
1224         Make a static provider for WebDeviceOrientationProviderMock.  The old code allocated a new WebDeviceOrientationProviderMock for 
1225         every WebView, and the WebKit API doesn't support that ownership model.
1226
1227         * WebView/WebDeviceOrientationProviderMock.h:
1228         * WebView/WebDeviceOrientationProviderMock.mm:
1229         (+[WebDeviceOrientationProviderMock shared]):
1230
1231 2010-11-16  Dave Hyatt  <hyatt@apple.com>
1232
1233         Reviewed by Dan Bernstein.
1234
1235         https://bugs.webkit.org/show_bug.cgi?id=11004
1236         
1237         font-size:0 is ignored.  Remove the minimum font size of 1 in CSSStyleSelector.
1238         Change the pref value for minimum font size from 1 to 0.  Make sure to never use the NSFont's size,
1239         since it doesn't honor a size of 0.  Instead pass the size in to the FontPlatformData(NSFont*) version
1240         of the constructor rather than using [NSFont pointSize].
1241
1242         https://bugs.webkit.org/show_bug.cgi?id=49582
1243         
1244         Negative leading is not handled correctly.  There are two bugs here.  The first is that
1245         maxAscent and maxDescent can be negative, so we need a notion of whether or not we have
1246         set them before so that we can allow them to be < 0.
1247         
1248         The second issue is that we should understand where fonts will end up relative to
1249         our baseline (excluding line height), and only allow those boxes to impact ascent and
1250         descent if the actual font box (without factoring in line height) is above or below the
1251         root line box baseline.
1252
1253         Added fast/css/negative-leading.html
1254         
1255         These two bug fixes have to land together to keep the Acid 3 test rendering correctly.
1256
1257         * Misc/WebKitNSStringExtras.mm:
1258         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
1259         (-[NSString _web_widthWithFont:]):
1260         * Misc/WebStringTruncator.mm:
1261         (fontFromNSFont):
1262         * WebView/WebPreferences.mm:
1263         (+[WebPreferences initialize]):
1264
1265 2010-11-16  Anders Carlsson  <andersca@apple.com>
1266
1267         Fix clang++ build.
1268
1269         * WebCoreSupport/WebFrameLoaderClient.mm:
1270
1271 2010-11-14  Kent Tamura  <tkent@chromium.org>
1272
1273         Reviewed by Andreas Kling.
1274
1275         KeyboardEvent::keyIdentifier() should return "const String&"
1276         https://bugs.webkit.org/show_bug.cgi?id=49426
1277
1278         * WebCoreSupport/WebEditorClient.mm:
1279         (selectorForKeyEvent):
1280           Change the type of a variable to have keyIdentifier(); String -> const String&
1281
1282 2010-11-12  John Knottenbelt  <jknotten@chromium.org>
1283
1284         Reviewed by Steve Block.
1285
1286         Rename GeolocationControllerClient to GeolocationClient.
1287         https://bugs.webkit.org/show_bug.cgi?id=49259
1288
1289         * WebCoreSupport/WebGeolocationClient.h: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.h.
1290         (WebGeolocationClient::webView):
1291         (WebGeolocationClient::setEnableHighAccuracy):
1292         * WebCoreSupport/WebGeolocationClient.mm: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.mm.
1293         (WebGeolocationClient::WebGeolocationClient):
1294         (WebGeolocationClient::geolocationDestroyed):
1295         (WebGeolocationClient::startUpdating):
1296         (WebGeolocationClient::stopUpdating):
1297         (WebGeolocationClient::lastPosition):
1298         * WebKit.order:
1299         * WebView/WebView.mm:
1300         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1301
1302 2010-11-10  Beth Dakin  <bdakin@apple.com>
1303
1304         Reviewed by Simon Fraser.
1305
1306         Fix for https://bugs.webkit.org/show_bug.cgi?id=49356 
1307         -[WebView _scaleWebView:] should take and origin and scroll the 
1308         document
1309         -and corresponding-
1310         <rdar://problem/8643921>
1311
1312         * WebView/WebView.mm:
1313         (-[WebView _scaleWebView:atOrigin:]):
1314         * WebView/WebViewPrivate.h:
1315
1316 2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
1317
1318         Reviewed by David Hyatt.
1319
1320         HTML5 Ruby support should be mandatory feature
1321         https://bugs.webkit.org/show_bug.cgi?id=49272
1322
1323         Remove Ruby as optional feature.
1324
1325         * Configurations/FeatureDefines.xcconfig:
1326
1327 2010-11-08  Ned Holbrook  <nholbrook@apple.com>
1328
1329         Reviewed by Adam Barth.
1330
1331         Avoid CFAttributedString creation in ComplexTextController by adopting UniChar provider SPI.
1332         https://bugs.webkit.org/show_bug.cgi?id=48886
1333
1334         * WebCoreSupport/WebSystemInterface.mm:
1335         (InitWebCoreSystemInterface):
1336
1337 2010-11-08  Nate Chapin  <japhet@chromium.org>
1338
1339         Unreviewed, build fix.
1340
1341         Clumsy typo in r71562.
1342
1343         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1344         (WebKit::HostedNetscapePluginStream::start):
1345
1346 2010-11-08  Nate Chapin  <japhet@chromium.org>
1347
1348         Reviewed by Alexey Proskuryakov.
1349
1350         Interface changes in https://bugs.webkit.org/show_bug.cgi?id=27165
1351
1352         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1353         (WebKit::HostedNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
1354         * Plugins/WebNetscapePluginStream.mm:
1355         (WebNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
1356         * WebView/WebView.mm:
1357         (-[WebView _dispatchPendingLoadRequests]): Use resourceLoadScheduler() instead of cache()->loader().
1358
1359 2010-11-08  Anders Carlsson  <andersca@apple.com>
1360
1361         Reviewed by Dan Bernstein.
1362
1363         Plug-in views should not assume that plugins are RenderEmbeddedObjects
1364         https://bugs.webkit.org/show_bug.cgi?id=49196
1365         <rdar://problem/8638467>
1366
1367         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1368         (-[WebHostedNetscapePluginView pluginHostDied]):
1369
1370 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
1371
1372         Reviewed by Darin Adler.
1373
1374         https://bugs.webkit.org/show_bug.cgi?id=48685
1375         Notify UI process about focused frame
1376
1377         Added an empty implementation of the new ChromeClient method.
1378
1379         * WebCoreSupport/WebChromeClient.h:
1380         * WebCoreSupport/WebChromeClient.mm:
1381         (WebChromeClient::focusedFrameChanged):
1382
1383 2010-11-08  Anders Carlsson  <andersca@apple.com>
1384
1385         Build fix.
1386
1387         * MigrateHeaders.make:
1388
1389 2010-11-08  Anders Carlsson  <andersca@apple.com>
1390
1391         Reviewed by Adam Roben.
1392
1393         Remove use of HIGetScaleFactor
1394         https://bugs.webkit.org/show_bug.cgi?id=49186
1395         <rdar://problem/8618410>
1396
1397         Scale factors can vary on a display-by-display basis and it doesn't make sense
1398         to compute scale factor event coordinates like this.
1399
1400         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1401         (getCarbonEvent):
1402
1403 2010-11-08  Simon Fraser  <simon.fraser@apple.com>
1404
1405         Reviewed by Sam Weinig.
1406
1407         Allow applets to participate in accelerated compositing
1408         https://bugs.webkit.org/show_bug.cgi?id=49117
1409         <rdar://problem/8625819>
1410         
1411         If Java is being loaded via the Netscape Plugin API, create a
1412         NetscapePluginWidget so that it has an implementation of platformLayer().
1413         
1414         Also clean up by using early returns.
1415
1416         * WebCoreSupport/WebFrameLoaderClient.mm:
1417
1418 2010-11-07  Adam Barth  <abarth@webkit.org>
1419
1420         Reviewed by Eric Seidel.
1421
1422         Rename Cache to MemoryCache
1423         https://bugs.webkit.org/show_bug.cgi?id=49159
1424
1425         * Misc/WebCache.mm:
1426         (+[WebCache statistics]):
1427         * WebCoreSupport/WebDeviceOrientationClient.mm:
1428         (WebDeviceOrientationClient::setController):
1429         * WebView/WebView.mm:
1430
1431 2010-11-05  Alexey Proskuryakov  <ap@apple.com>
1432
1433         Reviewed by Darin Adler.
1434
1435         https://bugs.webkit.org/show_bug.cgi?id=49100
1436         ASSERT([self window]) fails in -[WebBaseNetscapePluginView restartTimers]
1437
1438         * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView restartTimers]):
1439         Removed the assertion. Multiple callers provide no guarantee that the plug-in is still alive
1440         (see bug comments), and there seems to be no harm in executing this function in that case.
1441
1442 2010-11-05  Chris Marrin  <cmarrin@apple.com>
1443
1444         Reviewed by Simon Fraser.
1445
1446         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
1447         https://bugs.webkit.org/show_bug.cgi?id=49073
1448
1449         * WebView/WebFrame.mm:
1450         (-[WebFrame _suspendAnimations]):
1451         (-[WebFrame _resumeAnimations]):
1452
1453 2010-11-04  Alexey Proskuryakov  <ap@apple.com>
1454
1455         Reviewed by Darin Adler.
1456
1457         https://bugs.webkit.org/show_bug.cgi?id=49008
1458         <rdar://problem/7906226> Frequent crashes on mail.yahoo.co.jp
1459
1460         Callers of NetscapePluginInstanceProxy::waitForReply() are not prepared to be deleted during
1461         the call, unless it returns 0. There are two reasons for NetscapePluginInstanceProxy to be
1462         deleted during wait:
1463         - plugin crashed;
1464         - plugin was stopped (e.g. due to a DOM modification performed by another reply that came in
1465         while waiting).
1466
1467         We didn't recognize the latter.
1468
1469         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1470         (WebKit::PluginDestroyDeferrer::~PluginDestroyDeferrer):
1471         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1472         (WebKit::NetscapePluginInstanceProxy::waitForReply):
1473         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1474         (WebKit::NetscapePluginInstanceProxy::didCallPluginFunction):
1475
1476 2010-11-05  Chris Marrin  <cmarrin@apple.com>
1477
1478         Reviewed by Simon Fraser.
1479
1480         Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
1481         https://bugs.webkit.org/show_bug.cgi?id=46945
1482
1483         * WebView/WebFrame.mm:
1484         (-[WebFrame _suspendAnimations]):
1485         (-[WebFrame _resumeAnimations]):
1486
1487 2010-11-04  Jia Pu  <jpu@apple.com>
1488
1489         Reviewed by Dan Bernstein.
1490
1491         reversion bubble in WebViews
1492         https://bugs.webkit.org/show_bug.cgi?id=47630
1493         <rdar://problem/8530960>
1494
1495         This patch is to add reversion to correction panel. Please see WebCore/ChangeLog for detail.
1496
1497         * WebCoreSupport/WebEditorClient.h: Adopted new signature of base class method.
1498         * WebCoreSupport/WebEditorClient.mm: Adopted new signature of base class method. And code
1499           change to use new reversion API in AppKit.
1500         (WebEditorClient::WebEditorClient):
1501         (WebEditorClient::~WebEditorClient):
1502         (WebEditorClient::respondToChangedSelection):
1503         (WebEditorClient::showCorrectionPanel):
1504         (WebEditorClient::dismissCorrectionPanel):
1505         (WebEditorClient::isShowingCorrectionPanel):
1506
1507 2010-11-04  Mike Thole  <mthole@apple.com>
1508
1509         Reviewed by Dan Bernstein.
1510
1511         Title for images should use localized numerals
1512         https://bugs.webkit.org/show_bug.cgi?id=49017
1513
1514         * WebCoreSupport/WebPlatformStrategies.mm:
1515         (WebPlatformStrategies::imageTitle): Use localized numerals on Snow Leopard or newer.
1516
1517 2010-11-02  Daniel Bates  <dbates@rim.com>
1518
1519         Reviewed by Adam Barth.
1520
1521         For unnamed frames, window.name returns a generated name
1522         https://bugs.webkit.org/show_bug.cgi?id=6751
1523
1524         Part 1 of 2.
1525
1526         Substitute FrameTree::uniqueName() for FrameTree::name() in the Mac port. 
1527
1528         * WebView/WebFrame.mm:
1529         (-[WebFrame name]):
1530
1531 2010-11-01  Brady Eidson  <beidson@apple.com>
1532
1533         Reviewed by Anders Carlsson.
1534
1535         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
1536         Context menu support for WebKit 2.
1537
1538         * WebCoreSupport/WebChromeClient.h:
1539         (WebChromeClient::showContextMenu):
1540
1541 2010-10-29  Daniel Bates  <dbates@rim.com>
1542
1543         No review, rolling out 70971.
1544         http://trac.webkit.org/changeset/70971
1545         https://bugs.webkit.org/show_bug.cgi?id=6751
1546
1547         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
1548         it caused layout test failures on all bots. In particular, the
1549         child count in a generated frame name differs after this patch. We need
1550         to look into this further.
1551
1552         * WebView/WebFrame.mm:
1553         (-[WebFrame name]):
1554
1555 2010-10-28  Antonio Gomes  <agomes@rim.com>
1556
1557         Reviewed by Ojan Vafai.
1558
1559         Needs a "LinuxEditingBehavior", perhaps with a better name
1560         https://bugs.webkit.org/show_bug.cgi?id=36627
1561
1562         Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
1563
1564         * WebView/WebFrame.mm:
1565         (core):
1566         * WebView/WebPreferencesPrivate.h:
1567
1568 2010-10-29  Daniel Bates  <dbates@rim.com>
1569
1570         Reviewed by Adam Barth.
1571
1572         For unnamed frames, window.name returns a generated name
1573         https://bugs.webkit.org/show_bug.cgi?id=6751
1574
1575         Modified Mac-port to use FrameTree::uniqueName().
1576
1577         * WebView/WebFrame.mm:
1578         (-[WebFrame name]):
1579
1580 2010-10-29  Darin Adler  <darin@apple.com>
1581
1582         Reviewed by Sam Weinig.
1583
1584         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
1585         https://bugs.webkit.org/show_bug.cgi?id=48574
1586
1587         * History/WebBackForwardList.mm:
1588         Use BackForwardListImpl.
1589
1590 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
1591
1592         Rubber-stamped by Sam Weinig.
1593
1594         Comment for usesDocumentViews explains it backwards. This flag is true in ToT, and we do
1595         create views for subframes.
1596
1597         * WebView/WebViewData.h: Double negation is better than a lie.
1598
1599 2010-10-27  Jer Noble  <jer.noble@apple.com>
1600
1601         Reviewed by Darin Adler.
1602
1603         Full screen video in Safari (still) exits full-screen if you switch to another 
1604         app on a multi-display system.
1605         https://bugs.webkit.org/show_bug.cgi?id=47364
1606         <rdar://problem/8382299>
1607         
1608         The FullScreen window does not technically close when it deactivates, but the 
1609         two NSWindows that make up the FullScreen feature should not hide when deactivated.
1610         
1611         * WebView/WebVideoFullscreenController.mm:
1612         (createBackgroundFullscreenWindow): Do not set hidesOnDeactivate.
1613         (-[WebVideoFullscreenWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
1614         * WebView/WebVideoFullscreenHUDWindowController.mm:
1615         (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
1616
1617 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
1618
1619         Reviewed by Darin Adler.
1620
1621         https://bugs.webkit.org/show_bug.cgi?id=48576
1622         Let WebKit2 client know when a frame is a frameset
1623
1624         Added a blank implementation of the new FrameLoaderClient method.
1625
1626         * WebCoreSupport/WebFrameLoaderClient.h:
1627         * WebCoreSupport/WebFrameLoaderClient.mm:
1628         (WebFrameLoaderClient::dispatchDidBecomeFrameset):
1629
1630 2010-10-29  Csaba Osztrogonác  <ossy@webkit.org>
1631
1632         Reviewed by Adam Roben and David Kilzer.
1633
1634         Fix and cleanup of build systems
1635         https://bugs.webkit.org/show_bug.cgi?id=48342
1636
1637         * Configurations/FeatureDefines.xcconfig: Remove unnecessary ENABLE_SANDBOX.
1638
1639 2010-10-28  Dan Bernstein  <mitz@apple.com>
1640
1641         Reviewed by Mark Rowe.
1642
1643         LLVM compiler build fix
1644
1645         * Misc/WebDownload.mm:
1646         (-[WebDownload initWithRequest:delegate:]): Changed the delegate type from id to
1647         id<NSURLDownloadDelegate> to match the method signature in NSURLDownload.
1648
1649 2010-10-28  Ivan Krstić  <ike@apple.com>
1650
1651         Reviewed by Mark Rowe.
1652
1653         Remove unused experimental proxied panel interface.
1654         <rdar://problem/7237059>
1655
1656         * Plugins/Hosted/NetscapePluginHostManager.h:
1657         * Plugins/Hosted/NetscapePluginHostManager.mm:
1658         (WebKit::NetscapePluginHostManager::hostForPlugin):
1659         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1660         (WebKit::NetscapePluginHostManager::instantiatePlugin):
1661         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1662         * Plugins/Hosted/WebKitPluginClient.defs:
1663         * Plugins/Hosted/WebKitPluginHost.defs:
1664         * WebCoreSupport/WebSystemInterface.mm:
1665         (InitWebCoreSystemInterface):
1666         * WebView/WebPreferenceKeysPrivate.h:
1667         * WebView/WebPreferences.mm:
1668         (+[WebPreferences initialize]):
1669         * WebView/WebPreferencesPrivate.h:
1670
1671 2010-10-27  Pratik Solanki  <psolanki@apple.com>
1672
1673         Reviewed by Darin Adler.
1674
1675         Improve memSize calculation in [WebView _setCacheModel]
1676         https://bugs.webkit.org/show_bug.cgi?id=48484
1677
1678         * WebView/WebView.mm:
1679         (roundUpToPowerOf2): Added. Utility function to calculate the nearest power of 2.
1680         (+[WebView _setCacheModel:]): Update memSize calculation to set it to the next
1681         bigger power of 2. Also update WebCore cache settings.
1682
1683 2010-10-26  Darin Adler  <darin@apple.com>
1684
1685         Reviewed by Sam Weinig.
1686
1687         WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
1688         https://bugs.webkit.org/show_bug.cgi?id=42322
1689         rdar://problem/8193631
1690
1691         WebKitTestRunner needs to support layoutTestController.clearBackForwardList
1692         https://bugs.webkit.org/show_bug.cgi?id=42333
1693         rdar://problem/8193643
1694
1695         * History/WebBackForwardList.mm:
1696         (core): Return BackForwardListImpl.
1697         (kit): Take BackForwardListImpl.
1698         (-[WebBackForwardList initWithBackForwardList:]): Use BackForwardListImpl.
1699         (-[WebBackForwardList dealloc]): Ditto.
1700         (-[WebBackForwardList finalize]): Ditto.
1701         (-[WebBackForwardList description]): Ditto.
1702         (-[WebBackForwardList setPageCacheSize:]): Ditto.
1703         (-[WebBackForwardList pageCacheSize]): Ditto.
1704         * History/WebBackForwardListInternal.h: Ditto.
1705         * WebView/WebFrameView.mm:
1706         (-[WebFrameView keyDown:]): Ditto.
1707         * WebView/WebView.mm:
1708         (-[WebView initWithCoder:]): Ditto.
1709         (-[WebView encodeWithCoder:]): Ditto.
1710         (-[WebView backForwardList]): Ditto.
1711         (-[WebView setMaintainsBackForwardList:]): Ditto.
1712
1713 2010-10-27  Chris Rogers  <crogers@google.com>
1714
1715         Reviewed by Chris Marrin.
1716
1717         Add ENABLE_WEB_AUDIO feature enable flag (initially disabled) to build-webkit
1718         https://bugs.webkit.org/show_bug.cgi?id=48279
1719
1720         * Configurations/FeatureDefines.xcconfig:
1721
1722 2010-10-27  Beth Dakin  <bdakin@apple.com>
1723
1724         Reviewed by Darin Adler.
1725
1726         Fix for https://bugs.webkit.org/show_bug.cgi?id=48385 Add WebKit 
1727         SPI to scale a WebView
1728         -and corresponding-
1729         <rdar://problem/8107667>
1730
1731         This patch adds SPI to Mac WebKit that scales the page by the given 
1732         scale factor.
1733
1734         * WebView/WebView.mm:
1735         (-[WebView _scaleWebView:]):
1736         (-[WebView _viewScaleFactor]):
1737         * WebView/WebViewPrivate.h:
1738
1739 2010-10-27  Dan Bernstein  <mitz@apple.com>
1740
1741         Reviewed by Darin Adler.
1742
1743         REGRESSION (r70335): Incorrect article layout in Safari Reader
1744         https://bugs.webkit.org/show_bug.cgi?id=48436
1745
1746         * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITH_GET_MATCHED_CSS_RULES_RESTRICTIONS.
1747         * WebView/WebView.mm:
1748         (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Added. Returns YES for Safari linked against
1749         versions of WebKit that did not have the cross-origin restrictions in getMatchedCSSRules().
1750         (-[WebView _preferencesChangedNotification:]): Call Settings::setCrossOriginCheckInGetMatchedCSSRulesDisabled()
1751         based on the above.
1752
1753 2010-10-18  Jer Noble  <jer.noble@apple.com>
1754
1755         Reviewed by Eric Carlson.
1756
1757         Safari fullscreen media element tickles when it should not.
1758         
1759         https://bugs.webkit.org/show_bug.cgi?id=47861
1760
1761         * WebView/WebVideoFullscreenController.mm:
1762         (-[WebVideoFullscreenController updatePowerAssertions]):
1763
1764 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
1765
1766         Reviewed by Dmitry Titov.
1767
1768         Resource tracking failure when trying to move a frame between documents
1769         https://bugs.webkit.org/show_bug.cgi?id=44713
1770
1771         * WebCoreSupport/WebFrameLoaderClient.h:
1772         * WebCoreSupport/WebFrameLoaderClient.mm:
1773         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
1774         Empty method.
1775         (WebFrameLoaderClient::transferLoadingResourceFromPage):
1776         Update resource tracking for a resource load that has been transferred
1777         to a new page.
1778
1779 2010-10-25  Oliver Hunt  <oliver@apple.com>
1780
1781         Reviewed by Gavin Barraclough.
1782
1783         Remove exec and globalData arguments from jsNumber
1784         https://bugs.webkit.org/show_bug.cgi?id=48270
1785
1786         Mechanical removal of exec parameter to jsNumber
1787
1788         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1789         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
1790         * Plugins/Hosted/ProxyInstance.mm:
1791         (WebKit::ProxyInstance::numberValue):
1792
1793 2010-10-24  Dan Bernstein  <mitz@apple.com>
1794
1795         Reviewed by Anders Carlsson.
1796
1797         Expose HitTestResult::absoluteMediaURL() via WebKit API
1798         https://bugs.webkit.org/show_bug.cgi?id=48219
1799
1800         * Misc/WebElementDictionary.mm:
1801         (+[WebElementDictionary initializeLookupTable]): Map WebElementMediaURLKey to
1802         _absoluteMediaURL.
1803         (-[WebElementDictionary _absoluteMediaURL]): Added. Returns absoluteMediaURL().
1804         * WebKit.exp: Export WebElementMediaURLKey.
1805         * WebView/WebView.mm: Define WebElementMediaURLKey.
1806         * WebView/WebViewPrivate.h: Declare WebElementMediaURLKey.
1807
1808 2010-10-24  Dan Bernstein  <mitz@apple.com>
1809
1810         Reviewed by Simon Fraser.
1811
1812         Removed deprecated methods from the WebHTMLHighlighter private protocol.
1813
1814         * WebCoreSupport/WebChromeClient.mm:
1815         (WebChromeClient::customHighlightRect): Call -highlightRectForLine:representedNode:
1816         unconditionally.
1817         (WebChromeClient::paintCustomHighlight): Call
1818         -paintHighlightForBox:onLine:behindText:entireLine:representedNode: unconditionally.
1819         * WebView/WebHTMLViewPrivate.h:
1820
1821 2010-10-23  Xan Lopez  <xlopez@igalia.com>
1822
1823         Reviewed by Sam Weinig.
1824
1825         Unify globalData APIs
1826         https://bugs.webkit.org/show_bug.cgi?id=47969
1827
1828         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1829         (WebKit::NetscapePluginInstanceProxy::evaluate):
1830         (WebKit::NetscapePluginInstanceProxy::invoke):
1831         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1832         (WebKit::NetscapePluginInstanceProxy::construct):
1833         * WebView/WebScriptDebugDelegate.mm:
1834         (-[WebScriptCallFrame evaluateWebScript:]):
1835
1836 2010-10-23  David Kilzer  <ddkilzer@apple.com>
1837
1838         <http://webkit.org/b/48186> Remove unneeded WebHTMLRepresentationInternal.h header
1839
1840         Reviewed by Sam Weinig.
1841
1842         The only method defined in WebHTMLRepresentationInternal.h is
1843         also defined in WebHTMLRepresentation.h, so use that instead.
1844
1845         * WebView/WebHTMLRepresentationInternal.h: Removed.
1846
1847 2010-10-23  Alexey Proskuryakov  <ap@apple.com>
1848
1849         Reviewed by Anders Carlsson.
1850
1851         https://bugs.webkit.org/show_bug.cgi?id=48083
1852         <rdar://problem/8489082> Need WebKit2 API for private browsing (48083)
1853
1854         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize the new method.
1855
1856 2010-10-22  Sam Weinig  <sam@webkit.org>
1857
1858         Reviewed by Anders Carlsson.
1859
1860         WebKit2 needs to pass the current event modifier flags when requesting a new window
1861         https://bugs.webkit.org/show_bug.cgi?id=48140
1862
1863         * WebCoreSupport/WebChromeClient.h:
1864         * WebCoreSupport/WebChromeClient.mm:
1865         (WebChromeClient::createWindow):
1866         * WebCoreSupport/WebFrameLoaderClient.h:
1867         * WebCoreSupport/WebFrameLoaderClient.mm:
1868         (WebFrameLoaderClient::dispatchCreatePage):
1869         Add NavigationAction parameter.
1870
1871 2010-10-21  Andy Estes  <aestes@apple.com>
1872
1873         Reviewed by Eric Carlson.
1874
1875         WebKit shouldn't load a plug-in based on file extension if a MIME type
1876         is specified.
1877         https://bugs.webkit.org/show_bug.cgi?id=48046
1878
1879         If a MIME type is specified in an object or embed element, and that MIME
1880         type isn't supported by an installed plug-in, WebKit shouldn't attempt
1881         to find a plug-in based on the file extension of the url attribute.
1882         Doing so can lead to cases where a plug-in is loaded that can't handle
1883         resources of the MIME type specified by the author.
1884
1885         * WebCoreSupport/WebFrameLoaderClient.mm:
1886         (WebFrameLoaderClient::createPlugin): Only check for a pluginPackage by
1887         extension if MIME type is the empty string.
1888
1889 2010-10-20  Simon Fraser  <simon.fraser@apple.com>
1890
1891         Reviewed by Dan Bernstein.
1892
1893         Composited elements drawn twice when WebView is layer-backed
1894         https://bugs.webkit.org/show_bug.cgi?id=48024
1895         <rdar://problem/7916580>
1896         
1897         When drawing content in a layer-backed WebView, WebFrame's test
1898         for drawing to a bitmap succeeded, causing us to paint flattened
1899         compositing layers into the view. They would also be rendered
1900         by the normal compositing path, resulting in double rendering.
1901         
1902         Fix this by detecting when the WebHTMLView is being drawn into
1903         a layer, and avoiding flattening in that case.
1904
1905         * WebView/WebFrame.mm:
1906         (-[WebFrame _showFlattenedCompositingLayers:]):
1907         (-[WebFrame _drawRect:contentsOnly:]):
1908         * WebView/WebHTMLView.mm:
1909         (-[WebHTMLView drawLayer:inContext:]):
1910         (-[WebHTMLView _web_isDrawingIntoLayer]):
1911         * WebView/WebHTMLViewInternal.h:
1912
1913 2010-10-20  Dumitru Daniliuc  <dumi@chromium.org>
1914
1915         Reviewed by David Levin.
1916
1917         Repost the DatabaseTracker notifications to the main thread, if needed.
1918         https://bugs.webkit.org/show_bug.cgi?id=40655
1919
1920         * Storage/WebDatabaseTrackerClient.mm:
1921         (DidModifyOriginData::dispatchToMainThread):
1922         (DidModifyOriginData::DidModifyOriginData):
1923         (DidModifyOriginData::dispatchDidModifyOriginOnMainThread):
1924         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
1925         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
1926
1927 2010-10-20  Simon Fraser  <simon.fraser@apple.com>
1928
1929         Reviewed by Darin Adler.
1930
1931         REGRESSION(r67568-r67643): Some HTML/CSS renders upside down and backwards on Leopard
1932         https://bugs.webkit.org/show_bug.cgi?id=47369
1933         
1934         r46947 added code that limits the size of the layer-backed view on Leopard when
1935         the page height exceeds 4096px (later adjusted to 2048px in r48401).
1936         
1937         Later, r67576 altered the geometry flipping behavior to push the geometry flipping
1938         down into WebKit. However, the code that adjusts the hosting layer's sublayer transform
1939         to account for layer-backed view size-limiting was not fixed at the same time.
1940         This change corrects that.
1941
1942         * WebView/WebHTMLView.mm:
1943         (-[WebHTMLView _updateLayerHostingViewPosition]):
1944
1945 2010-10-19  Simon Fraser  <simon.fraser@apple.com>
1946
1947         Reviewed by Dan Bernstein.
1948
1949         <rdar://problem/8508422> Compositing layers aren't always displayed correctly in layer-backed WebViews
1950         
1951         AppKit has some special code to prevent it meddling with view's layers
1952         under layer-backed WebViews. When a layer-backed WebView became composited,
1953         this caused our layer to remain zero-sized. Fix this by manually
1954         setting the geometry for our layer, if the WebHTMLView has a layer.
1955         
1956         This does not seem to be a problem if the WebView becomes layer-backed, or
1957         stops being layer-backed after the WebView starts using compositing.
1958
1959         * WebView/WebHTMLView.mm:
1960         (-[WebHTMLView attachRootLayer:]):
1961
1962 2010-10-20  Dirk Schulze  <krit@webkit.org>
1963
1964         Reviewed by Nikolas Zimmermann.
1965
1966         Merge ColorSpace and ImageColorSpace enums
1967         https://bugs.webkit.org/show_bug.cgi?id=47922
1968
1969         Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
1970         to follow webkit style rules.
1971
1972         * Misc/WebKitNSStringExtras.mm:
1973         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
1974
1975 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
1976
1977         Reviewed by Anders Carlsson.
1978
1979         https://bugs.webkit.org/show_bug.cgi?id=47933
1980         <rdar://problem/8494337> navigator.language doesn't work in WebKit2
1981
1982         * Misc/WebNSUserDefaultsExtras.mm: Moved code for computing default language to WebCore.
1983         We need to keep _webkit_preferredLanguageCode for Safari.
1984
1985         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
1986         Initialize wkCopyCFLocalizationPreferredName.
1987
1988         * WebCoreSupport/WebViewFactory.mm: Removed defaultLanguage. WebCore was the only caller.
1989
1990 2010-10-18  Alexey Proskuryakov  <ap@apple.com>
1991
1992         Reviewed by David Kilzer.
1993
1994         https://bugs.webkit.org/show_bug.cgi?id=47864
1995         Convert WebNSUserDefaultsExtras.m to .mm
1996
1997         Also, fixed some issues in the process:
1998         - removed locking, which was only necessary when this code was in Foundation;
1999         - fixed notification center observer to actually work (previously, it picked up changes
2000         when application preferences changed, not when system language did);
2001         - removed unused NSString category;
2002         - updated style.
2003
2004         * Misc/WebNSUserDefaultsExtras.m: Removed.
2005         * Misc/WebNSUserDefaultsExtras.mm: Copied from WebKit/mac/Misc/WebNSUserDefaultsExtras.m.
2006         (createHTTPStyleLanguageCode):
2007         (+[NSUserDefaults _webkit_defaultsDidChange]):
2008         (addLanguageChangeObserver):
2009         (+[NSUserDefaults _webkit_preferredLanguageCode]):
2010
2011 2010-10-18  Stuart Morgan  <stuartmorgan@chromium.org>
2012
2013         Reviewed by Eric Seidel.
2014
2015         Switch to using the new Carbon NPAPI event declarations, and remove
2016         the old ones.
2017
2018         https://bugs.webkit.org/show_bug.cgi?id=40784
2019
2020         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
2021         (WebNetscapePluginEventHandlerCarbon::mouseEntered):
2022         (WebNetscapePluginEventHandlerCarbon::mouseExited):
2023         (WebNetscapePluginEventHandlerCarbon::mouseMoved):
2024         (WebNetscapePluginEventHandlerCarbon::focusChanged):
2025
2026 2010-10-18  Pavel Podivilov  <podivilov@chromium.org>
2027
2028         Reviewed by Timothy Hatcher.
2029
2030         Web Inspector: disable private browsing for inspector
2031         https://bugs.webkit.org/show_bug.cgi?id=47827
2032
2033         * WebCoreSupport/WebInspectorClient.mm:
2034         (-[WebInspectorWindowController init]):
2035
2036 2010-10-14  Ilya Tikhonovsky  <loislo@chromium.org>
2037
2038         Reviewed by Pavel Feldman.
2039
2040         Web Inspector: inspector settings/properties/states management
2041         should be extracted into separate class.
2042
2043         We have a lot of flags/values in InspectorController.
2044         Some flags are persisting into profile.
2045         Others are part of inspector state for frontend.
2046         All these flags should keep their values after navigation.
2047         It'd be better to extract these flags/values into separate
2048         class which will care about theirs lifetime.
2049
2050         https://bugs.webkit.org/show_bug.cgi?id=47275
2051
2052         * WebCoreSupport/WebInspectorClient.mm:
2053         (-[WebInspectorWindowController showWindow:]):
2054         (-[WebInspectorWindowController attach]):
2055         (-[WebInspectorWindowController detach]):
2056
2057 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
2058
2059         Reviewed by Oliver Hunt.
2060
2061         https://bugs.webkit.org/show_bug.cgi?id=43987
2062         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
2063         to construct their internal result string.  Remove ScriptString (this is now
2064         redundant).
2065
2066         * WebCoreSupport/WebFrameLoaderClient.mm:
2067
2068 2010-10-12  Andy Estes  <aestes@apple.com>
2069
2070         Rubber-stamped by Darin Adler.
2071
2072         Check in some cleanup from the previous commit.
2073
2074         * WebView/WebView.mm:
2075         (leakMailQuirksUserScriptPath): Renamed to indicate that this function
2076         leaks an NSString.
2077         (-[WebView _injectMailQuirksScript]): Moved a static initialization from
2078         a separate class method into the only method that used it and removed
2079         the now-unnecessary class method.
2080
2081 2010-10-12  Eric Seidel  <eric@webkit.org>
2082
2083         Reviewed by Darin Adler.
2084
2085         REGRESSION (new parser): Leopard/Tiger Mail <head>/<body> quirk is gone
2086         https://bugs.webkit.org/show_bug.cgi?id=45693
2087
2088         Re-implement this former WebCore parser quirk as a
2089         Mac-only userscript-based quirk.  As far as I can tell
2090         from Darin's description this should satisfy Mail's needs.
2091
2092         * Misc/MailQuirksUserScript.js: Added.
2093         * WebView/WebView.mm:
2094         (+[WebView _mailQuirksUserScript]):
2095         (-[WebView _injectMailQuirksScript]):
2096         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2097
2098 2010-10-12  Simon Fraser  <simon.fraser@apple.com>
2099
2100         Reviewed by Sam Weinig.
2101
2102         Add 'didDraw' callback for framerate tracking
2103         https://bugs.webkit.org/show_bug.cgi?id=47478
2104
2105         Add a callback at the end of -[WebHTMLView drawRect:] so
2106         a delegate can get notified when a draw happens.
2107         
2108         * WebView/WebHTMLView.mm:
2109         (-[WebHTMLView drawRect:]):
2110         * WebView/WebUIDelegatePrivate.h:
2111
2112 2010-10-11  Anders Carlsson  <andersca@apple.com>
2113
2114         Reviewed by Darin Adler.
2115
2116         Remove WebIconFetcher from WebKit and IconFetcher from WebCore
2117         https://bugs.webkit.org/show_bug.cgi?id=47523
2118
2119         Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses.
2120
2121         * Misc/WebIconFetcher.h: Removed.
2122         * Misc/WebIconFetcher.mm: Removed.
2123         * Misc/WebIconFetcherInternal.h: Removed.
2124         * WebView/WebFrame.mm:
2125         * WebView/WebFramePrivate.h:
2126
2127 2010-10-11  Jessie Berlin  <jberlin@apple.com>
2128
2129         Reviewed by Darin Adler.
2130
2131         Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal
2132         representation of a WebKit1 WebSerializedJSValue.
2133         https://bugs.webkit.org/show_bug.cgi?id=47439
2134
2135         * WebView/WebSerializedJSValue.mm:
2136         (-[WebSerializedJSValue internalRepresentation]):
2137         * WebView/WebSerializedJSValuePrivate.h:
2138
2139 2010-10-07  Jessie Berlin  <jberlin@apple.com>
2140
2141         Reviewed by Sam Weinig.
2142
2143         Add Private API for creating a WebKit1 WebSerializedJSValue from the internal
2144         representation of a WebKit2 WebSerializedScriptValue.
2145         https://bugs.webkit.org/show_bug.cgi?id=47390
2146
2147         * WebView/WebSerializedJSValue.mm:
2148         (-[WebSerializedJSValue initWithInternalRepresentation:]):
2149         Set the WebSerializedJSValuePrivate's WebCore::SerializedScriptValue to be the passed in
2150         internal representation.
2151         * WebView/WebSerializedJSValuePrivate.h: Added.
2152
2153 2010-10-07  Antonio Gomes  <agomes@rim.com>
2154
2155         Reviewed by Simon Fraser.
2156
2157         [Mac] [DRT] implement setSpatialNavigationEnabled
2158         https://bugs.webkit.org/show_bug.cgi?id=47291
2159
2160         Added the needed bits to make it possible to enabled spatial navigation
2161         for the Mac port. For now it is being only used by DRT.
2162
2163         * WebView/WebPreferenceKeysPrivate.h:
2164         * WebView/WebPreferences.mm:
2165         (+[WebPreferences initialize]):
2166         (-[WebPreferences isSpatialNavigationEnabled]):
2167         (-[WebPreferences setSpatialNavigationEnabled:]):
2168         * WebView/WebPreferencesPrivate.h:
2169         * WebView/WebView.mm:
2170         (-[WebView _preferencesChangedNotification:]):
2171
2172 2010-10-07  Jer Noble  <jer.noble@apple.com>
2173
2174         Fix the Leopard 64-bit build.
2175
2176         * Configurations/WebKit.xcconfig: Add CoreServices.framework/Frameworks to the 
2177             framework search path.
2178         * WebView/WebVideoFullscreenController.mm: Explicitly import <OSStatus/Power.h>.
2179
2180 2010-10-06  Jer Noble  <jer.noble@apple.com>
2181
2182         Reviewed by Darin Adler.
2183
2184         Screensaver starts while watching fullscreen playback.
2185         https://bugs.webkit.org/show_bug.cgi?id=47299
2186         <rdar://problem/8478956>
2187
2188         To disable the Screen Saver, we need to periodically call UpdateSystemActivity().  
2189
2190         * WebView/WebVideoFullscreenController.h: Added _tickleTimer.
2191         * WebView/WebVideoFullscreenController.mm:
2192         (-[WebVideoFullscreenController dealloc]): Invalidate _tickleTimer.
2193         (-[WebVideoFullscreenController _enableTickleTimer]): Create _tickleTimer. 
2194         (-[WebVideoFullscreenController _disableTickleTimer]): Invalidate _tickleTimer.
2195         (-[WebVideoFullscreenController _tickleTimerFired]): Call UpdateSystemActivity().
2196         (-[WebVideoFullscreenController updatePowerAssertions]): Call _enableTickleTimer 
2197             or _disableTickleTimer.
2198
2199 2010-10-05  Philippe Normand  <pnormand@igalia.com>
2200
2201         Reviewed by Martin Robinson.
2202
2203         check for ENABLE(GLIB_SUPPORT) in WebView
2204         https://bugs.webkit.org/show_bug.cgi?id=46788
2205
2206         Use ENABLE(GLIB_SUPPORT) in WebView to guard the glib runloop observer.
2207
2208         * WebView/WebView.mm:
2209         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2210         (-[WebView _close]):
2211         * WebView/WebViewData.h:
2212         * WebView/WebViewInternal.h:
2213
2214 2010-10-01  Anders Carlsson  <andersca@apple.com>
2215
2216         Fix Snow Leopard build.
2217
2218         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2219         (WebKit::NetscapePluginInstanceProxy::getProxy):
2220
2221 2010-10-01  Anders Carlsson  <andersca@apple.com>
2222
2223         Reviewed by Dan Bernstein.
2224
2225         Add proxy server query function proxyServersForURL and change the Mac plug-in code to use it
2226         https://bugs.webkit.org/show_bug.cgi?id=47022
2227         <rdar://problem/8504712>
2228
2229         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2230         (WebKit::NetscapePluginInstanceProxy::getProxy):
2231         * Plugins/WebBaseNetscapePluginView.h:
2232         * Plugins/WebBaseNetscapePluginView.mm:
2233         * Plugins/WebNetscapePluginView.mm:
2234         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
2235
2236 2010-09-30  Darin Adler  <darin@apple.com>
2237
2238         Reviewed by Sam Weinig.
2239
2240         Remove remaining calls to deprecatedParseURL
2241         https://bugs.webkit.org/show_bug.cgi?id=26599
2242
2243         * DOM/WebDOMOperations.mm:
2244         (-[DOMDocument URLWithAttributeString:]):
2245         * WebCoreSupport/WebFrameLoaderClient.mm:
2246         (WebFrameLoaderClient::createPlugin):
2247         Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL.
2248
2249 2010-09-30  Anders Carlsson  <andersca@apple.com>
2250
2251         Reviewed by Darin Adler.
2252
2253         -[DOMDocument _documentRange] throws an exception if there is no document element
2254         https://bugs.webkit.org/show_bug.cgi?id=46934
2255         <rdar://problem/8169260>
2256
2257         If there is no document element, just return an empty range. Otherwise we'll try to call
2258         Range::selectNode with a null Node which will throw a NOT_FOUND exception.
2259
2260         * DOM/WebDOMOperations.mm:
2261         (-[DOMDocument _documentRange]):
2262
2263 2010-09-30  Chris Marrin  <cmarrin@apple.com>
2264
2265         Reviewed by Simon Fraser.
2266
2267         Make 2D accelerated canvas rendering build on Mac
2268         https://bugs.webkit.org/show_bug.cgi?id=46007
2269         
2270         Added ACCELERATED_2D_CANVAS to FeatureDefines
2271
2272         * Configurations/FeatureDefines.xcconfig:
2273
2274 2010-09-30  Dan Bernstein  <mitz@apple.com>
2275
2276         Reviewed by John Sullivan.
2277
2278         Add printing SPI allowing full control over shrink-to-fit
2279         https://bugs.webkit.org/show_bug.cgi?id=46877
2280
2281         * WebView/WebHTMLView.mm:
2282         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Added.
2283         * WebView/WebHTMLViewPrivate.h:
2284
2285 2010-09-28  Johnny Ding  <jnd@chromium.org>
2286
2287         Reviewed by Adam Barth.
2288
2289         https://bugs.webkit.org/show_bug.cgi?id=41292
2290         Some windowed plugins did not handle events through EventHandler, so we
2291         never set right gesture state for those events.
2292         This change is to set right allowPopupsFromPlugin flag to current
2293         execution frame, so WeKit can always get right gesture state on Mac.
2294         From Mac Snow Leopard, the plugin is run under "WebKitPluginHost,app"
2295         process, that process passes the allowPopupsFromPlugin flag to
2296         WKPCEvaluate(in NetscapePluginHostProxy.mm), then flag is set in
2297         NetscapePluginInstanceProxy::evaluate.
2298
2299         * Plugins/WebNetscapePluginView.mm:
2300         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
2301
2302 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
2303
2304         Reviewed by Dmitry Titov.
2305
2306         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
2307         https://bugs.webkit.org/show_bug.cgi?id=46663
2308
2309         * WebCoreSupport/WebFrameLoaderClient.h:
2310         * WebCoreSupport/WebFrameLoaderClient.mm:
2311         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
2312
2313 2010-09-26  Antonio Gomes  <agomes@rim.com>
2314
2315         Reviewed by Kenneth Rohde Christiansen.
2316
2317         DRT/Mac nodesFromRect support
2318
2319         [Mac][DRT] Implement LayoutTestController::nodesFromRect
2320         https://bugs.webkit.org/show_bug.cgi?id=46580
2321
2322         Implement nodesFromRect as a private method to access non-exposed Document
2323         methods, similarly to computedStyleIncludingVisitedInfo.
2324
2325         * WebView/WebView.mm: Added JSDocument.h and JSNodeList.h to the include list.
2326         These headers makes it possible to:
2327         1) Get a Document off of a JSDocument;
2328         2) Call toJS function, defined in JSNodeList.cpp|h so we can convert RefPtr<NodeList>
2329         gotten from Document::nodesFromRect to JS bindings.
2330         (-[WebView _nodesFromRect:forDocument:x:y:hPadding:vPadding:ignoreClipping:]):
2331         * WebView/WebViewPrivate.h: Added nodesFromRect method to access methods of the
2332         Document class not exposed to JavaScript. It works similarly to computedStyleIncludingVisitedInfo.
2333
2334 2010-09-24  Jia Pu  <jpu@apple.com>
2335
2336         Reviewed by Dan Bernstein.
2337
2338         automaticSpellingCorrectionEnabled isn't updated.
2339         https://bugs.webkit.org/show_bug.cgi?id=46486
2340         <rdar://problem/8475212>
2341
2342         * WebView/WebView.mm:
2343         (+[WebView initialize]): Should update "automaticSpellingCorrectionEnabled"
2344           instead of "automaticTextReplacementEnabled".
2345
2346 2010-09-23  Alexey Proskuryakov  <ap@apple.com>
2347
2348         Reviewed by Darin Adler.
2349
2350         https://bugs.webkit.org/show_bug.cgi?id=46380
2351         REGRESSION: Crash when downloading a file
2352
2353         Downloading cannot be tested in DRT.
2354
2355         * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
2356         Don't copy null strings.
2357
2358 2010-09-24  Ilya Tikhonovsky  <loislo@chromium.org>
2359
2360         Reviewed by Yury Semikhatsky.
2361
2362         Web Inspector: CRASH at node highlight on MAC Safari.
2363         1) run-safari --debug
2364         2) open inspector
2365         3) open elements panel
2366         4) hover mouse over elements panel items multiple times
2367         5) CRASH
2368         Looks like it is a race condition. WebNodeHighlightView doesn't check
2369         the pointer to WebNodeHighligh object and it can be nil.
2370
2371         https://bugs.webkit.org/show_bug.cgi?id=46261
2372
2373         * WebInspector/WebNodeHighlightView.mm:
2374         (-[WebNodeHighlightView drawRect:]):
2375
2376 2010-09-23  Andy Estes  <aestes@apple.com>
2377
2378         Reviewed by Darin Adler.
2379
2380         REGRESSION (r61285): some Dashboard widgets are always invisible due to
2381         HTML parser changes.
2382         https://bugs.webkit.org/show_bug.cgi?id=46435
2383
2384         Enable pre-HTML5 parser quirks if Dashboard is in backward compatibility
2385         mode.
2386
2387         * WebView/WebView.mm:
2388         (-[WebView _needsPreHTML5ParserQuirks]): Renamed from
2389         shouldUsePreHTML5ParserQuirks(). Return true if
2390         WebCore::Settings::usesDashboardCompatibilityMode() is true.
2391         (-[WebView _preferencesChangedNotification:]):
2392         (-[WebView _setDashboardBehavior:to:]): Enable pre-HTML5 parser quirks
2393         if Dashboard behavior is set to backward compatibility mode.
2394
2395 2010-09-23  Matthew Delaney  <mdelaney@apple.com>
2396
2397         Reviewed by Simon Fraser.
2398
2399         Reduce minimum DOMTimer interval
2400         https://bugs.webkit.org/show_bug.cgi?id=45362
2401
2402         * WebView/WebView.mm:
2403         Updating set interval call to use Settings' static version inside
2404         one time init block.
2405
2406 2010-09-22  Andy Estes  <aestes@apple.com>
2407
2408         Reviewed by Darin Adler.
2409
2410         REGRESSION (r61285): Microsoft Entourage 2008 does not invoke My Day window
2411         https://bugs.webkit.org/show_bug.cgi?id=46334
2412
2413         Microsoft My Day loads scripts using self-closing script tags, markup
2414         which is incompatible with the HTML5 parser. Enable parser quirks for
2415         this application.
2416
2417         * WebView/WebView.mm:
2418         (shouldUsePreHTML5ParserQuirks): Return true if the application is
2419         Microsoft My Day and was linked against a version of WebKit prior to the
2420         introduction of the HTML5 parser.
2421
2422 2010-09-23  Nate Chapin  <japhet@chromium.org>
2423
2424         Reviewed by Darin Fisher.
2425
2426         Add hyperlink auditing settings (i.e., <a ping>).
2427         https://bugs.webkit.org/show_bug.cgi?id=30458
2428
2429         * WebView/WebPreferenceKeysPrivate.h:
2430         * WebView/WebPreferences.mm:
2431         (+[WebPreferences initialize]):
2432         (-[WebPreferences setMemoryInfoEnabled:]):
2433         (-[WebPreferences hyperlinkAuditingEnabled]):
2434         (-[WebPreferences setHyperlinkAuditingEnabled:]):
2435         * WebView/WebPreferencesPrivate.h:
2436         * WebView/WebView.mm:
2437         (-[WebView _preferencesChangedNotification:]):
2438
2439 2010-09-22  Alexey Proskuryakov  <ap@apple.com>
2440
2441         Reviewed by Anders Carlsson.
2442
2443         https://bugs.webkit.org/show_bug.cgi?id=43667
2444         ASSERT failure in NetscapePluginInstanceProxy::disconnectStream
2445
2446         Test: plugins/get-javascript-url.html
2447
2448         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2449         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript): Add the stream to m_streams, just
2450         like any other one.
2451
2452 2010-09-21  Darin Adler  <darin@apple.com>
2453
2454         Reviewed by Anders Carlsson.
2455
2456         Fix some Objective-C GC problems and use RetainPtr instead of HardRetain/Release
2457         https://bugs.webkit.org/show_bug.cgi?id=46220
2458
2459         * Misc/WebNSFileManagerExtras.m:
2460         (setMetaData): Use CFRelease instead of HardRelease.
2461         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Use CFStringCreateCopy
2462         instead of -[NSObject copy] combined with HardRetainWithNSRelease.
2463
2464 2010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
2465
2466         Reviewed by Kenneth Rohde Christiansen.
2467
2468         PluginStrategy should satisfy the needs of Qt
2469         https://bugs.webkit.org/show_bug.cgi?id=45857
2470         No new functionality so no new tests.
2471
2472         * WebCoreSupport/WebPlatformStrategies.h:
2473         * WebCoreSupport/WebPlatformStrategies.mm:
2474         (WebPlatformStrategies::getPluginInfo):
2475
2476 2010-09-22  Paul Knight  <pknight@apple.com>
2477
2478         Reviewed by Simon Fraser.
2479
2480         -[WebView _scheduleCompositingLayerSync] should wake the run loop
2481         https://bugs.webkit.org/show_bug.cgi?id=46226
2482
2483         Call CFRunLoopWakeUp to make sure the run loop is not sleeping, which could delay layer painting.
2484
2485         * WebView/WebView.mm:
2486         (-[WebView _scheduleCompositingLayerSync]):
2487
2488 2010-09-21  Andy Estes  <aestes@apple.com>
2489
2490         Reviewed by Darin Adler.
2491
2492         REGRESSION (r61285): AIM 2.1.296: Code rendered as text in Welcome screen
2493         https://bugs.webkit.org/show_bug.cgi?id=46134
2494
2495         AIM clients linked against versions of WebKit prior to the introduction
2496         of the HTML5 parser contain markup incompatible with the new parser.
2497         Enable parser quirks in this case to remain compatible with these
2498         clients.
2499
2500         * WebView/WebView.mm:
2501         (shouldUsePreHTML5ParserQuirks): Returns true if the embedding
2502         application is AIM and was linked against a version of WebKit prior to
2503         the introduction of the HTML5 parser, or if the
2504         WebKitPreHTML5ParserQuirks WebPreference is enabled.
2505         (-[WebView _preferencesChangedNotification:]): Call
2506         WebCore::Settings::setUsePreHTML5ParserQuirks().
2507
2508 2010-09-21  Steve Block  <steveblock@google.com>
2509
2510         Reviewed by Jeremy Orlow.
2511
2512         DeviceOrientationClient and DeviceMotionClient should have controllerDestroyed() methods
2513         https://bugs.webkit.org/show_bug.cgi?id=45891
2514
2515         Implements WebDeviceOrientationClient::deviceOrientationControllerDestroyed to delete the client.
2516
2517         * WebCoreSupport/WebDeviceOrientationClient.h:
2518         * WebCoreSupport/WebDeviceOrientationClient.mm:
2519         (WebDeviceOrientationClient::deviceOrientationControllerDestroyed):
2520
2521 2010-09-20  Philippe Normand  <pnormand@igalia.com>
2522
2523         Reviewed by Eric Carlson.
2524
2525         [GTK] enhanced context menu for media elements
2526         https://bugs.webkit.org/show_bug.cgi?id=45021
2527
2528         New localized strings for the media element context-menu.
2529
2530         * WebCoreSupport/WebPlatformStrategies.h:
2531         * WebCoreSupport/WebPlatformStrategies.mm:
2532         (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
2533         (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
2534         (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
2535         (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
2536         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
2537         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
2538         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
2539         (WebPlatformStrategies::contextMenuItemTagMediaPlay):
2540         (WebPlatformStrategies::contextMenuItemTagMediaPause):
2541         (WebPlatformStrategies::contextMenuItemTagMediaMute):
2542
2543 2010-09-20  Andy Estes  <aestes@apple.com>
2544
2545         Reviewed by Adam Barth.
2546
2547         REGRESSION (HTML5 Parser): Pages broken due to <tag<tag> parsing changes
2548         https://bugs.webkit.org/show_bug.cgi?id=40961
2549
2550         Implement WebKitUsePreHTML5ParserQuirks preference.
2551
2552         * WebView/WebPreferenceKeysPrivate.h:
2553         * WebView/WebPreferences.mm:
2554         (+[WebPreferences initialize]): Default WebKitUsePreHTML5ParserQuirks to
2555         false.
2556         (-[WebPreferences usePreHTML5ParserQuirks]):
2557         (-[WebPreferences setUsePreHTML5ParserQuirks:]):
2558         * WebView/WebPreferencesPrivate.h:
2559         * WebView/WebView.mm:
2560         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings
2561         with the value of WebKitUsePreHTML5ParserQuirks when a preference
2562         changes.
2563
2564 2010-09-20  Enrica Casucci  <enrica@apple.com>
2565
2566         Reviewed by Sam Weinig.
2567
2568         Pasteboard doesn't work in WebKit2.
2569         https://bugs.webkit.org/show_bug.cgi?id=42317
2570         <rdar://problem/7660537>
2571
2572         Some changes to fix style inconsistencies.
2573         Added OBJC 2.0 style enumeration.
2574         
2575         * WebCoreSupport/WebEditorClient.h:
2576         * WebCoreSupport/WebEditorClient.mm:
2577         (WebEditorClient::userVisibleString):
2578         (createExcludedElementsForAttributedStringConversion):
2579         (WebEditorClient::documentFragmentFromAttributedString): Changed parameter to be
2580         a Vector of RefPtr.
2581         (WebEditorClient::setInsertionPasteboard):
2582         (WebEditorClient::pasteboardTypesForSelection):
2583
2584 2010-09-17  David Hyatt  <hyatt@apple.com>
2585
2586         Reviewed by Simon Fraser.
2587
2588         https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model.
2589
2590         Make printing store the page height in the RenderView and push that into the layout state to
2591         use the new pagination model.  The old pagination model is retained because it is still used
2592         for embedded WebViews.
2593
2594         * WebView/WebHTMLView.mm:
2595         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
2596
2597 2010-09-17  Darin Adler  <darin@apple.com>
2598
2599         Reviewed by Sam Weinig.
2600
2601         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
2602         https://bugs.webkit.org/show_bug.cgi?id=42863
2603
2604         * WebView/WebView.mm:
2605         (-[WebView _setZoomMultiplier:isTextOnly:]):
2606         Call functions on Frame instead of FrameView.
2607
2608 2010-09-17  Matthew Delaney  <mdelaney@apple.com>
2609
2610         Reviewed by Simon Fraser.
2611
2612         Reduce minimum DOMTimer interval
2613         https://bugs.webkit.org/show_bug.cgi?id=45362
2614
2615         * WebView/WebView.mm: Added in a call to set the mimimum allowed DOMTimer to 4ms.
2616
2617 2010-09-17  Chris Marrin  <cmarrin@apple.com>
2618
2619         Reviewed by Simon Fraser.
2620
2621         Add WebKitAccelerated2dCanvasEnabled flag to WebKit for Mac
2622         https://bugs.webkit.org/show_bug.cgi?id=45911
2623
2624         * WebView/WebPreferenceKeysPrivate.h:
2625         * WebView/WebPreferences.mm:
2626         (+[WebPreferences initialize]):
2627         (-[WebPreferences accelerated2dCanvasEnabled]):
2628         (-[WebPreferences setAccelerated2dCanvasEnabled:]):
2629         * WebView/WebPreferencesPrivate.h:
2630         * WebView/WebView.mm:
2631         (-[WebView _preferencesChangedNotification:]):
2632
2633 2010-09-17  Jia Pu  <jpu@apple.com>
2634
2635         Reviewed by Dan Bernstein.
2636
2637         WebKit should use system wide spell checking preference when application specific one isn't set.
2638         https://bugs.webkit.org/show_bug.cgi?id=45789
2639         <rdar://problem/8416041>
2640
2641         * WebView/WebView.mm:
2642         (+[WebView initialize]): Use system wide autocorrection and text substitution preferences
2643           when the application level preferences are not set.
2644
2645 2010-09-16  John Sullivan  <sullivan@apple.com>
2646
2647         Reviewed by Darin Adler.
2648
2649         <rdar://problem/8395558>
2650         https://bugs.webkit.org/show_bug.cgi?id=45938
2651         _web_makePluginViewsPerformSelector:: mutates subviews array while iterating it
2652
2653         * WebView/WebHTMLView.mm:
2654         (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]):
2655         Converted from -[NSArray _web_makePluginViewsPerformSelector:withObject:]. The old method
2656         was only ever called on the result of -[WebHTMLView subviews]. By moving that knowledge into
2657         this helper method, it can't be used incorrectly. Now it makes a copy of [WebHTMLView subviews]
2658         before enumerating it, to ensure that the selector can't mutate the array being enumerated.
2659         (-[WebHTMLView viewWillMoveToHostWindow:]):
2660         Updated for _web_makePluginSubviewsPerformSelector:: signature change.
2661         (-[WebHTMLView viewDidMoveToHostWindow]):
2662         Ditto.
2663
2664 2010-09-16  Darin Adler  <darin@apple.com>
2665
2666         Reviewed by Andreas Kling.
2667
2668         Reduce use of HTMLInputElement::inputType so we can remove it later
2669         https://bugs.webkit.org/show_bug.cgi?id=45903
2670
2671         * WebView/WebHTMLRepresentation.mm:
2672         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Use isPasswordField.
2673         (-[WebHTMLRepresentation elementIsPassword:]): Use isPasswordField.
2674
2675 2010-09-16  Patrick Gansterer  <paroga@paroga.com>
2676
2677         Reviewed by Darin Adler.
2678
2679         Always use a valid string when setting WebKitUserStyleSheetLocationPreferenceKey.
2680         https://bugs.webkit.org/show_bug.cgi?id=41510
2681
2682         This prevents usage of nil value, which would cause an uncaught exception.
2683
2684         * WebView/WebPreferences.mm:
2685         (-[WebPreferences setUserStyleSheetLocation:]):
2686
2687 2010-09-16  Dan Bernstein  <mitz@apple.com>
2688
2689         Reverted the previous change because r67628 has been reverted.
2690
2691         * WebCoreSupport/WebPlatformStrategies.h:
2692         * WebCoreSupport/WebPlatformStrategies.mm:
2693
2694 2010-09-16  Dan Bernstein  <mitz@apple.com>
2695
2696         Build fix after r67628. Added context menu item localizable strings for the items
2697         added in r67628, following equivalent menu items in Mac OS X when possible. However,
2698         this set of menu items does not make much sense for Mac OS X, and this should be
2699         addressed separately.
2700
2701         * WebCoreSupport/WebPlatformStrategies.h:
2702         * WebCoreSupport/WebPlatformStrategies.mm:
2703         (WebPlatformStrategies::contextMenuItemTagOpenMediaInNewWindow):
2704         (WebPlatformStrategies::contextMenuItemTagCopyMediaLinkToClipboard):
2705         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
2706         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
2707         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
2708         (WebPlatformStrategies::contextMenuItemTagMediaPlay):
2709         (WebPlatformStrategies::contextMenuItemTagMediaPause):
2710         (WebPlatformStrategies::contextMenuItemTagMediaMute):
2711         (WebPlatformStrategies::contextMenuItemTagMediaUnMute):
2712
2713 2010-09-16  Eric Uhrhane  <ericu@chromium.org>
2714
2715         Reviewed by Jian Li.
2716
2717         Unify FILE_SYSTEM and FILE_WRITER enables under the name FILE_SYSTEM.
2718         https://bugs.webkit.org/show_bug.cgi?id=45798
2719
2720         * Configurations/FeatureDefines.xcconfig:
2721
2722 2010-09-15  Simon Fraser  <simon.fraser@apple.com>
2723
2724         Reviewed by Adam Roben.
2725
2726         https://bugs.webkit.org/show_bug.cgi?id=44715
2727         maps.google.com flips upside down when zooming map using trackpad in WebKit2 on Mac
2728
2729         Move geometry flipping to platform-specific code.
2730
2731         * WebView/WebHTMLView.mm:
2732         (-[WebHTMLView attachRootLayer:]):
2733
2734 2010-09-14  Jia Pu  <jpu@apple.com>
2735
2736         Reviewed by Dan Bernstein.
2737
2738         Only intercept ESC key press when autocorrection UI is visible.
2739         https://bugs.webkit.org/show_bug.cgi?id=45071
2740
2741         * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
2742           which provides an inteface to query whether autocorrection panel is shown.
2743
2744         * WebCoreSupport/WebEditorClient.mm:
2745         (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
2746           for invalid correction panel tag. Replaced -1 with this constant.
2747         (WebEditorClient::dismissCorrectionPanel): Ditto
2748         (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
2749
2750 2010-09-14  Mark Rowe  <mrowe@apple.com>
2751
2752         Reviewed by John Sullivan.
2753
2754         Part of <rdar://problem/8420003>.  Make it possible to override the version number used in linked-in-or-after checks.
2755
2756         * Misc/WebKitVersionChecks.h: Remove two unused functions from the header and add a method to set the overriden version.
2757         * Misc/WebKitVersionChecks.m:
2758         (WebKitLinkedOnOrAfter):
2759         (setWebKitLinkTimeVersion): Set the overridden version.
2760         (WebKitLinkTimeVersion): Return the overridden version if set, otherwise do the old thing.
2761         * WebView/WebPreferences.mm:
2762         (+[WebPreferences setWebKitLinkTimeVersion:]): Call through to set the overridden version.
2763         * WebView/WebPreferencesPrivate.h:
2764
2765 2010-09-14  Eric Seidel  <eric@webkit.org>
2766
2767         Unreviewed, reverting changes r67451 and r67451.
2768         Broke lots of builders.
2769
2770         Only intercept ESC key press when autocorrection UI is visible.
2771         https://bugs.webkit.org/show_bug.cgi?id=45071
2772
2773         * WebCoreSupport/WebEditorClient.h:
2774         * WebCoreSupport/WebEditorClient.mm:
2775         (WebEditorClient::WebEditorClient):
2776         (WebEditorClient::dismissCorrectionPanel):
2777
2778 2010-09-14  Jia Pu  <jpu@apple.com>
2779
2780         Reviewed by Dan Bernstein.
2781
2782         Only intercept ESC key press when autocorrection UI is visible.
2783         https://bugs.webkit.org/show_bug.cgi?id=45071
2784
2785         * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
2786           which provides an inteface to query whether autocorrection panel is shown.
2787
2788         * WebCoreSupport/WebEditorClient.mm:
2789         (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
2790           for invalid correction panel tag. Replaced -1 with this constant.
2791         (WebEditorClient::dismissCorrectionPanel): Ditto
2792         (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
2793
2794 2010-09-13  Darin Adler  <darin@apple.com>
2795
2796         Reviewed by Adam Barth.
2797
2798         Preparation for eliminating deprecatedParseURL
2799         https://bugs.webkit.org/show_bug.cgi?id=45695
2800
2801         * DOM/WebDOMOperations.mm:
2802         (-[DOMDocument webFrame]): Get rid of unneeded local variable.
2803         (-[DOMDocument URLWithAttributeString:]): Remove unhelpful comment.
2804
2805 2010-09-13  Enrica Casucci  <enrica@apple.com>
2806
2807         Reviewed by Sam Weinig.
2808
2809         Paste should be implemented in WebCore like Copy and Cut for Mac also.
2810         https://bugs.webkit.org/show_bug.cgi?id=45494
2811         <rdar://problem/7660537>
2812
2813         On the Mac platform, the implementation of the paste operation is all done
2814         at the WebKit level. In order to support it on WebKit2 it is necessary to
2815         refactor the code and move this functionality at the level of WebCore like
2816         we already have on Windows.
2817         The original code relies on some in AppKit functions that call back into
2818         WebKit causing problems in WebKit2. All this functionality has been moved
2819         at the level of the editor client where it can be dealt with appropriately.
2820
2821         * WebCoreSupport/WebEditorClient.h:
2822         * WebCoreSupport/WebEditorClient.mm:
2823         (excludedElementsForAttributedStringConversion):
2824         (WebEditorClient::documentFragmentFromAttributedString): Added.
2825         (WebEditorClient::setInsertionPasteboard):
2826         * WebCoreSupport/WebFrameLoaderClient.h:
2827         * WebCoreSupport/WebFrameLoaderClient.mm:
2828         (WebFrameLoaderClient::canShowMIMETypeAsHTML): Re-implemented at the level
2829         of the editor client.
2830         * WebView/WebHTMLView.mm: Removed paste method.
2831
2832 2010-09-13  John Sullivan  <sullivan@apple.com>
2833
2834         Reviewed by Adam Roben.
2835
2836         https://bugs.webkit.org/show_bug.cgi?id=45677
2837         [WebView canMarkAllTextMatches] can crash if called after [WebView close]
2838         
2839         <rdar://problem/8404890>
2840
2841         * WebView/WebView.mm:
2842         (-[WebView canMarkAllTextMatches]):
2843         Return NO immediately if the webview has already been closed. This was an overlooked
2844         case from the fix for 45175.
2845
2846 2010-09-10  MORITA Hajime  <morrita@google.com>
2847
2848         Reviewed by Tony Chang.
2849
2850         [Chromium] Implement textInputController.hasSpellingMarker() for Chromium
2851         https://bugs.webkit.org/show_bug.cgi?id=45441
2852
2853         Moved the actual logic of hasSpellingMarker into WebCore to share
2854         it with other ports.
2855
2856         * WebView/WebFrame.mm:
2857         (-[WebFrame hasSpellingMarker:length:]):
2858
2859 2010-09-11  Adam Barth  <abarth@webkit.org>
2860
2861         Reviewed by Sam Weinig.
2862
2863         Make SecurityOrigin::canDisplay an instance function
2864         https://bugs.webkit.org/show_bug.cgi?id=45219
2865
2866         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2867         (WebKit::NetscapePluginInstanceProxy::loadRequest):
2868         * Plugins/WebNetscapePluginStream.mm:
2869         (WebNetscapePluginStream::WebNetscapePluginStream):
2870         * Plugins/WebNetscapePluginView.mm:
2871         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2872         * Plugins/WebPluginContainerCheck.mm:
2873         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
2874         * WebView/WebFrame.mm:
2875         (-[WebFrame _allowsFollowingLink:]):
2876
2877 2010-09-10  Sam Weinig  <sam@webkit.org>
2878
2879         Reviewed by Darin Adler.
2880
2881         Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
2882         Precursor to <rdar://problem/7660657>
2883         https://bugs.webkit.org/show_bug.cgi?id=45522
2884
2885         * WebView/WebView.mm:
2886         (-[WebView _preferencesChangedNotification:]):
2887         (-[WebView _setZoomMultiplier:isTextOnly:]):
2888         (-[WebView _realZoomMultiplierIsTextOnly]):
2889         * WebView/WebViewData.h:
2890         * WebView/WebViewData.mm:
2891         (-[WebViewPrivate init]):
2892         Move tracking of text only zoom here from WebCore.
2893
2894 2010-09-10  Stephanie Lewis  <slewis@apple.com>
2895
2896         Reviewed by Alexey Proskuryakov.
2897
2898         Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know about the JIT and
2899         other implementation details of JavaScriptCore.  Necessary to fix PPC build.
2900         
2901         https://bugs.webkit.org/show_bug.cgi?id=45528
2902
2903         * Misc/WebCoreStatistics.mm:
2904         (+[WebCoreStatistics memoryStatistics]):
2905
2906 2010-09-10  Darin Adler  <darin@apple.com>
2907
2908         Reviewed by Sam Weinig.
2909
2910         Move some Dashboard stuff from WebCore to WebKit along with a bit more FrameMac cleanup
2911         https://bugs.webkit.org/show_bug.cgi?id=45582
2912
2913         * MigrateHeaders.make: Removed WebDashboardRegion.h from the set of header to copy.
2914
2915         * WebCoreSupport/WebChromeClient.mm:
2916         (WebChromeClient::dashboardRegionsChanged): Changed this to call
2917         -[WebView _dashboardRegions] so we don't have two copies of that code.
2918
2919         * WebView/WebDashboardRegion.h: Copied from WebCore/page/mac/WebDashboardRegion.h.
2920         * WebView/WebDashboardRegion.mm: Copied from WebCore/page/mac/WebDashboardRegion.m.
2921
2922         * WebView/WebView.mm:
2923         (-[WebView _dashboardRegions]): Moved the code from Frame::dashboardRegions here.
2924
2925 2010-09-10  Adam Barth  <abarth@webkit.org>
2926
2927         Reviewed by Darin Fisher.
2928
2929         Move code from WebKit-layer to DocumentLoader
2930         https://bugs.webkit.org/show_bug.cgi?id=45569
2931
2932         This code is the most confused, but now should be a bit cleaner.
2933         There's still a magical fake-setting for creating renderers that needs
2934         to be cleaned up, but we can do that in a separate patch.
2935
2936         * WebView/WebFrame.mm:
2937         (-[WebFrame _commitData:]):
2938         * WebView/WebFrameInternal.h:
2939         * WebView/WebHTMLRepresentation.mm:
2940         (-[WebHTMLRepresentation receivedData:withDataSource:]):
2941         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
2942
2943 2010-09-09  Darin Adler  <darin@apple.com>
2944
2945         Reviewed by Adam Barth.
2946
2947         Move functions from Frame to SelectionController as planned
2948         https://bugs.webkit.org/show_bug.cgi?id=45508
2949
2950         * WebView/WebFrame.mm:
2951         (-[WebFrame _selectionGranularity]):
2952         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
2953         (-[WebFrame _typingStyle]):
2954         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2955         * WebView/WebHTMLRepresentation.mm:
2956         (-[WebHTMLRepresentation currentForm]):
2957         * WebView/WebHTMLView.mm:
2958         (-[WebHTMLView jumpToSelection:]):
2959         (-[WebHTMLView centerSelectionInVisibleArea:]):
2960         (-[WebHTMLView _canSmartCopyOrDelete]):
2961         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2962         (-[WebHTMLView selectionRect]):
2963         (-[WebHTMLView selectionTextRects]):
2964         (-[WebHTMLView selectionImageRect]):
2965         * WebView/WebView.mm:
2966         (-[WebView setEditable:]):
2967         Call functions on selection().
2968
2969 2010-09-10  Adam Barth  <abarth@webkit.org>
2970
2971         Reviewed by Eric Seidel.
2972
2973         Main resource bytes shouldn't bounce through FrameLoader
2974         https://bugs.webkit.org/show_bug.cgi?id=45496
2975
2976         Now return the bytes to the DocumentLoader.
2977
2978         Previously, we were checking the document for null.  However, Frame can
2979         never have a null document, so this check is no longer needed.
2980
2981         * WebView/WebFrame.mm:
2982         (-[WebFrame _addData:]):
2983
2984 2010-09-09  John Therrell  <jtherrell@apple.com>
2985
2986         Reviewed by Alexey Proskuryakov.
2987
2988         Added statistics sampling and reporting for JavaScriptCore's RegisterFile and ExecutableAllocator classes
2989         https://bugs.webkit.org/show_bug.cgi?id=45134
2990
2991         Added ability to enable new JavaScriptCore statistics sampling and reporting for RegisterFile 
2992         and ExecutableAllocator classes. Added reporting of JavaScriptCore's stack committed memory 
2993         and JIT code committed memory statistics to WebCoreStatistics memoryStatistics.
2994
2995         * Misc/WebCoreStatistics.mm:
2996         (+[WebCoreStatistics memoryStatistics]):
2997         Added statistics reporting for JSC RegisterFile and ExecutableAllocator.
2998
2999 2010-09-09  Jer Noble  <jer.noble@apple.com>
3000
3001         Reviewed by Mark Rowe.
3002
3003         Use of ENABLE macro in WebUIDelegatePrivate.h breaks use from outside WebKit
3004         <rdar://problem/8412657>
3005
3006         * WebView/WebUIDelegatePrivate.h: Use ENABLE_FULLSCREEN_API instead of ENABLE(FULLSCREEN_API)
3007
3008 2010-09-08  Darin Adler  <darin@apple.com>
3009
3010         Reviewed by Adam Barth.
3011
3012         Move functions from Frame to Editor as planned
3013         https://bugs.webkit.org/show_bug.cgi?id=45218
3014
3015         * WebView/WebFrame.mm:
3016         (-[WebFrame _selectedString]):
3017         (-[WebFrame _firstRectForDOMRange:]):
3018         (-[WebFrame _markDOMRange]):
3019         (-[WebFrame _setTypingStyle:withUndoAction:]):
3020         * WebView/WebHTMLRepresentation.mm:
3021         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
3022         * WebView/WebHTMLView.mm:
3023         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
3024         (-[WebHTMLView toggleBaseWritingDirection:]):
3025         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
3026         (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]):
3027         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
3028         (-[WebHTMLView markedTextMatchesAreHighlighted]):
3029         * WebView/WebView.mm:
3030         (-[WebView setEditable:]):
3031         Changed call sites to use editor().
3032
3033 2010-09-08  MORITA Hajime  <morrita@google.com>
3034
3035         Reviewed by Ojan Vafai.
3036
3037         spellcheck does not check pasted text
3038         https://bugs.webkit.org/show_bug.cgi?id=40092
3039
3040         Implemented async spell-check APIs on WebEditorClient.
3041         The implementations are using [NSSpellChecker requestCheckingOfString]
3042         which is available only on Mac OS 10.6 or later.
3043         
3044         Note that [NSSpellChecker requestCheckingOfString] could invoke
3045         the callback block on on of their worker thread, so we need to
3046         return the result to the main thread where WebCore is running.
3047         For that purpose, we made WebEditorSpellCheckResponder class.
3048         
3049         Test: editing/spelling/spellcheck-pasted-text-001.html
3050         
3051         * WebCoreSupport/WebEditorClient.h:
3052         * WebCoreSupport/WebEditorClient.mm:
3053         (WebEditorClient::isAsynchronousSpellCheckingEnabled): Added.
3054         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]): Added.
3055         (-[WebEditorSpellCheckResponder perform]): Added.
3056         (WebEditorClient::requestCheckingOfString): Added.
3057         * WebView/WebFramePrivate.h:
3058
3059 2010-09-08  MORITA Hajime  <morrita@google.com>
3060
3061         Reviewed by Tony Chang.
3062
3063         spelling underline gets lost on backspace
3064         https://bugs.webkit.org/show_bug.cgi?id=41423
3065
3066         Switched to use a anchorNode of the selection instead of a focused
3067         node for finer control of node selection in spellingNode():
3068         With the focused node, we cannot select other nodes but the first
3069         child of that node. In some case, we need to inspect these.
3070
3071         The API is only for LayoutTests, and the change is compatible for
3072         existing test cases.
3073         
3074         * WebView/WebFrame.mm:
3075         (spellingNode):
3076
3077 2010-09-08  Adam Barth  <abarth@webkit.org>
3078
3079         Rubber-stamped by Eric Seidel.
3080
3081         Rename DocLoader to CachedResourceLoader because that's what it does.
3082
3083         * WebView/WebFrame.mm:
3084
3085 2010-09-07  Anders Carlsson  <andersca@apple.com>
3086
3087         Reviewed by Oliver Hunt.
3088
3089         Fix clang++ build.
3090
3091         * Misc/WebLocalizableStrings.h:
3092         Fix a struct/tag mismatch.
3093
3094         * WebView/WebDeviceOrientationProviderMock.mm:
3095         (-[WebDeviceOrientationProviderMock init]):
3096         Remove stray semicolon.
3097
3098         * WebView/WebViewData.h:
3099         Remove unused class forward declaration.
3100
3101 2010-09-07  Anders Carlsson  <andersca@apple.com>
3102
3103         Reviewed by Darin Adler.
3104
3105         <rdar://problem/8381749> -Wcast-align warning emitted when building with clang
3106
3107         Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc.
3108         
3109         * Configurations/Base.xcconfig:
3110
3111 2010-09-06  Adam Barth  <abarth@webkit.org>
3112
3113         Reviewed by Darin Adler.
3114
3115         Rename SecurityOrigin::canLoad to canDisplay
3116         https://bugs.webkit.org/show_bug.cgi?id=45214
3117
3118         Propagate name change.
3119
3120         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3121         (WebKit::NetscapePluginInstanceProxy::loadRequest):
3122         * Plugins/WebNetscapePluginStream.mm:
3123         (WebNetscapePluginStream::WebNetscapePluginStream):
3124         * Plugins/WebNetscapePluginView.mm:
3125         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3126         * Plugins/WebPluginContainerCheck.mm:
3127         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
3128         * WebView/WebFrame.mm:
3129         (-[WebFrame _allowsFollowingLink:]):
3130
3131 2010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3132
3133         Reviewed by Darin Adler.
3134
3135         Add NetworkingContext to avoid layer violations
3136         https://bugs.webkit.org/show_bug.cgi?id=42292
3137
3138         Add Mac's specific implementation of FrameNetworkingContext.
3139
3140         * WebCoreSupport/WebFrameLoaderClient.h:
3141         * WebCoreSupport/WebFrameLoaderClient.mm:
3142         * WebCoreSupport/WebFrameNetworkingContext.mm:
3143         (WebFrameNetworkingContext::needsSiteSpecificQuirks):
3144         (WebFrameNetworkingContext::localFileContentSniffingEnabled):
3145         (WebFrameNetworkingContext::scheduledRunLoopPairs):
3146         (WebFrameNetworkingContext::blockedError):
3147
3148 2010-09-03  John Sullivan  <sullivan@apple.com>
3149
3150         Reviewed by Dan Bernstein.
3151         
3152         https://bugs.webkit.org/show_bug.cgi?id=45175
3153         [WebView unmarkAllTextMatches] will crash if the webview is already closed
3154
3155         Made this and related methods robust against being called when the WebView is closed.
3156
3157         * WebView/WebView.mm:
3158         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
3159         Bail out if the WebView is closed.
3160         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]):
3161         Ditto.
3162         (-[WebView unmarkAllTextMatches]):
3163         Ditto.
3164         (-[WebView rectsForTextMatches]):
3165         Ditto.
3166
3167 2010-09-03  Hironori Bono  <hbono@chromium.org>
3168
3169         Reviewed by Kent Tamura.
3170
3171         Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
3172         and implements it for Mac.
3173         https://bugs.webkit.org/show_bug.cgi?id=41832
3174
3175         * WebView/WebFrame.mm: Implemented [WebFrame hasSpellingMarker:length:].
3176         (spellingNode):
3177         (-[WebFrame hasSpellingMarker:length:]):
3178         * WebView/WebFramePrivate.h: Added [WebFrame hasSpellingMarker:length:] so TextInputController can use it.
3179
3180 2010-09-02  Yury Semikhatsky  <yurys@chromium.org>
3181
3182         Reviewed by Pavel Feldman.
3183
3184         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
3185         https://bugs.webkit.org/show_bug.cgi?id=44230
3186
3187         * WebCoreSupport/WebInspectorClient.h:
3188         * WebCoreSupport/WebInspectorClient.mm:
3189         (WebInspectorFrontendClient::closeWindow):
3190         (WebInspectorFrontendClient::disconnectFromBackend):
3191         (-[WebInspectorWindowController windowShouldClose:]):
3192         (-[WebInspectorWindowController destroyInspectorView:]):
3193
3194 2010-09-02  Steve Block  <steveblock@google.com>
3195
3196         Reviewed by Adam Barth.
3197
3198         Hook up LayoutTestController.setMockDeviceOrientation() on Mac.
3199         https://bugs.webkit.org/show_bug.cgi?id=43181
3200
3201         This patch hooks up the mock device orientation client on Mac for use
3202         in DumpRenderTree.
3203
3204         The patch adds a new WebDeviceOrientationClient for Mac. This client acts
3205         as a proxy to either a real or mock device orientation provider, both of
3206         which implement a new WebDeviceOrientationProvider interface.
3207
3208         The provider is created by the embedder and passed to the WebView, from
3209         where WebDeviceOrientationClient can access it.
3210
3211         The mock provider, WebDeviceOrientationProviderMock, is a wrapper around
3212         the existing WebCore mock.
3213
3214         * WebCoreSupport/WebDeviceOrientationClient.h: Added.
3215         * WebCoreSupport/WebDeviceOrientationClient.mm: Added.
3216         (WebDeviceOrientationClient::WebDeviceOrientationClient):
3217         (WebDeviceOrientationClient::setController):
3218         (WebDeviceOrientationClient::startUpdating):
3219         (WebDeviceOrientationClient::stopUpdating):
3220         (WebDeviceOrientationClient::lastOrientation):
3221         * WebKit.exp:
3222         * WebView/WebDeviceOrientation.h: Added.
3223         * WebView/WebDeviceOrientation.mm: Added.
3224         (-[WebDeviceOrientation initWithCoreDeviceOrientation:WebCore::]):
3225         (core):
3226         (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]):
3227         (-[WebDeviceOrientation dealloc]):
3228         * WebView/WebDeviceOrientationInternal.h: Added.
3229         * WebView/WebDeviceOrientationProvider.h: Added.
3230         * WebView/WebDeviceOrientationProviderMock.h: Added.
3231         * WebView/WebDeviceOrientationProviderMock.mm: Added.
3232         (-[WebDeviceOrientationProviderMockInternal setOrientation:]):
3233         (-[WebDeviceOrientationProviderMockInternal setController:]):
3234         (-[WebDeviceOrientationProviderMockInternal startUpdating]):
3235         (-[WebDeviceOrientationProviderMockInternal stopUpdating]):
3236         (-[WebDeviceOrientationProviderMockInternal lastOrientation]):
3237         (-[WebDeviceOrientationProviderMock init]):
3238         (-[WebDeviceOrientationProviderMock dealloc]):
3239         (-[WebDeviceOrientationProviderMock setOrientation:]):
3240         (-[WebDeviceOrientationProviderMock setController:]):
3241         (-[WebDeviceOrientationProviderMock startUpdating]):
3242         (-[WebDeviceOrientationProviderMock stopUpdating]):
3243         (-[WebDeviceOrientationProviderMock lastOrientation]):
3244         * WebView/WebDeviceOrientationProviderMockInternal.h: Added.
3245         * WebView/WebView.mm:
3246         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3247         (-[WebView _setDeviceOrientationProvider:]):
3248         (-[WebView _deviceOrientationProvider]):
3249         * WebView/WebViewData.h:
3250         * WebView/WebViewPrivate.h:
3251
3252 2010-09-01  Jia Pu  <jpu@apple.com>
3253
3254         Reviewed by Dan Bernstein.
3255
3256         Add support for autocorrection UI on Mac OS X.
3257         https://bugs.webkit.org/show_bug.cgi?id=44958
3258         <rdar://problem/7326847>
3259
3260         See detailed high level description in WebCore/ChangeLog.
3261
3262         * WebCoreSupport/WebEditorClient.h: Added new member methods declared in
3263           EditorClient. Added m_correctionPanelTag to store the ID of current autocorrection UI object.
3264
3265         * WebCoreSupport/WebEditorClient.mm:
3266         (WebEditorClient::WebEditorClient): Initialize m_correctionPanelTag.
3267         (WebEditorClient::~WebEditorClient): Make sure the autocorrection UI is
3268           dismissed before destroying the object.
3269         (WebEditorClient::respondToChangedSelection): Dismiss autocorrection UI whenever the selection changes.
3270         (WebEditorClient::showCorrectionPanel): Show autocorrection UI.
3271         (WebEditorClient::dismissCorrectionPanel): Dismiss autocorrection UI.
3272
3273 2010-09-01  Mark Rowe  <mrowe@apple.com>
3274
3275         Reviewed by Adam Roben.
3276
3277         <rdar://problem/8374711> WebKit needs to compile without access to QuickDraw private headers.
3278
3279         * Carbon/HIViewAdapter.m:
3280         * Carbon/HIWebView.mm:
3281         * Misc/QuickDrawCompatibility.h: Added.
3282         * Plugins/WebNetscapePluginView.mm:
3283
3284 2010-08-31  Dave Hyatt  <hyatt@apple.com>
3285
3286         Reviewed by Sam Weinig.
3287
3288         https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
3289         the former can occur in more places without having to do the latter.
3290
3291         Eliminate Mac-specific code for style re-application and recursive layout/style updating in 
3292         favor of the cross-platform code that all the other ports use.
3293
3294         * Carbon/HIWebView.mm:
3295         (Draw):
3296         * WebCoreSupport/WebFrameLoaderClient.mm:
3297         (WebFrameLoaderClient::forceLayout):
3298         * WebView/WebHTMLView.mm:
3299         (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]):
3300         (-[WebHTMLView viewWillDraw]):
3301         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
3302         (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
3303         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3304         (-[WebHTMLView reapplyStyles]):
3305         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
3306         (-[WebHTMLView setNeedsToApplyStyles:]):
3307         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
3308         (-[WebHTMLView _layoutIfNeeded]):
3309         (-[WebHTMLView _web_updateLayoutAndStyleIfNeededRecursive]):
3310         * WebView/WebHTMLViewInternal.h:
3311         * WebView/WebView.mm:
3312         (-[WebView _viewWillDrawInternal]):
3313
3314 2010-08-31  Sam Weinig  <sam@webkit.org>
3315
3316         Reviewed by Darin Adler.
3317
3318         Add ability to count text matches without marking
3319         https://bugs.webkit.org/show_bug.cgi?id=43996
3320
3321         Safari needs to be able to count text matches without triggering lots of repainting.
3322         Rename markAllMatchesForText: to countMatchesForText: and add a markMatches:
3323         parameter.  For backwards compatibility markAllMatchesForText: calls
3324         countMatchesForText: and passes YES for markMatches:.
3325
3326         * WebView/WebDocumentInternal.h:
3327         * WebView/WebHTMLView.mm:
3328         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
3329         (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]):
3330         * WebView/WebPDFView.mm:
3331         (-[WebPDFView markAllMatchesForText:caseSensitive:limit:]):
3332         (-[WebPDFView countMatchesForText:caseSensitive:limit:markMatches:]):
3333         * WebView/WebView.mm:
3334         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
3335         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]):
3336         * WebView/WebViewPrivate.h:
3337
3338 2010-08-31  Darin Adler  <darin@apple.com>
3339
3340         Reviewed by Anders Carlsson.
3341
3342         * WebInspector/WebInspectorFrontend.mm:
3343         (-[WebInspectorFrontend initWithFrontendClient:]): Remove a stray semicolon.
3344
3345 2010-08-30  Mark Rowe  <mrowe@apple.com>
3346
3347         Reviewed by Darin Adler.
3348
3349         <rdar://problem/8369736> WebKit build fails.
3350
3351         Temporarily add some extra includes in order to get things building again until <rdar://problem/8374711> is addressed.
3352
3353         * Carbon/HIViewAdapter.m:
3354         * Carbon/HIWebView.mm:
3355         * Plugins/WebNetscapePluginView.mm:
3356
3357 2010-08-30  Andy Estes  <aestes@apple.com>
3358
3359         Reviewed by Darin Adler.
3360
3361         REGRESSION (r66156): Sites using AppleConnect for authentication fail to log in.
3362         https://bugs.webkit.org/show_bug.cgi?id=44865
3363
3364         After http://trac.webkit.org/changeset/66156, sites using the AppleConnect plug-in
3365         for authentication fail to log in. This is due to a bug in AppleConnect that r66156
3366         exposed, but since this will have a significant impact on users of WebKit nightly
3367         builds, a plugin-specific hack should be added while the underlying issue is being
3368         addressed.
3369
3370         * WebCoreSupport/WebFrameLoaderClient.mm:
3371         (WebFrameLoaderClient::createPlugin): Convert plug-in parameter names to lowercase
3372         if the plugin is of type 'application/x-snkp'.
3373
3374 2010-08-27  Jer Noble  <jer.noble@apple.com>
3375
3376         Reviewed by Eric Carlson.
3377
3378         text/plain non-video files cause <video> to hang (while reading them?)
3379         https://bugs.webkit.org/show_bug.cgi?id=44212
3380         
3381         Add the new WebKitSystemInterface function WKQTMovieDisableComponent to
3382         the initialization routine.
3383
3384         * WebCoreSupport/WebSystemInterface.mm:
3385         (InitWebCoreSystemInterface): Initialize WKQTMovieDisableComponent.
3386
3387 2010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
3388
3389         Unreviewed, rolling out r66198.
3390         http://trac.webkit.org/changeset/66198
3391         https://bugs.webkit.org/show_bug.cgi?id=44856
3392
3393         It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
3394
3395         * WebCoreSupport/WebInspectorClient.h:
3396         * WebCoreSupport/WebInspectorClient.mm:
3397         (WebInspectorFrontendClient::closeWindow):
3398         (-[WebInspectorWindowController windowShouldClose:]):
3399         (-[WebInspectorWindowController destroyInspectorView]):
3400
3401 2010-08-28  Darin Adler  <darin@apple.com>
3402
3403         Reviewed by Sam Weinig.
3404
3405         Make an internal method used by Apple Mail into SPI
3406         https://bugs.webkit.org/show_bug.cgi?id=44832
3407         rdar://problem/5748951
3408
3409         * WebView/WebFrame.mm:
3410         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Moved this method
3411         from the internal section to the private section.
3412         * WebView/WebFrameInternal.h: Moved the method declaration out of here.
3413         * WebView/WebFramePrivate.h: Moved the method declaration in here.
3414
3415 2010-08-27  Jer Noble  <jer.noble@apple.com>
3416
3417         Reviewed by Eric Carlson.
3418
3419         Add JavaScript API to allow a page to go fullscreen.
3420         rdar://problem/6867795
3421
3422         Added chrome client overrides which support entering and exiting full screen.  A new preference has
3423         been added (setFullScreenEnabled:) to control at runtime whether full screen support is enabled 
3424         (defaults to disabled).  Added a new WebKitFullScreenListener callback object which notifies WebCore
3425         when the chrome has started/finished its full screen animation.
3426
3427         * Configurations/FeatureDefines.xcconfig:
3428         * WebCoreSupport/WebChromeClient.h:
3429         * WebCoreSupport/WebChromeClient.mm:
3430         (WebChromeClient::supportsFullscreenForElement):
3431         (WebChromeClient::enterFullscreenForElement):
3432         (WebChromeClient::exitFullscreenForElement):
3433         (-[WebKitFullScreenListener initWithElement:]):
3434         (-[WebKitFullScreenListener webkitWillEnterFullScreen]):
3435         (-[WebKitFullScreenListener webkitDidEnterFullScreen]):
3436         (-[WebKitFullScreenListener webkitWillExitFullScreen]):
3437         (-[WebKitFullScreenListener webkitDidExitFullScreen]):
3438         * WebView/WebPreferenceKeysPrivate.h:
3439         * WebView/WebPreferences.h:
3440         * WebView/WebPreferences.mm:
3441         (+[WebPreferences initialize]):
3442         (-[WebPreferences setFullScreenEnabled:]):
3443         (-[WebPreferences fullScreenEnabled]):
3444         * WebView/WebUIDelegatePrivate.h:
3445         * WebView/WebView.mm:
3446         (-[WebView _preferencesChangedNotification:]):
3447
3448 2010-08-27  David Hyatt  <hyatt@apple.com>
3449
3450         Reviewed by Simon Fraser.
3451
3452         https://bugs.webkit.org/show_bug.cgi?id=44788, implement HTML5-compliant doctype switching.
3453
3454         Rename the various modes to match the HTML5 specification:
3455             ParseMode -> CompatibilityMode
3456             CompatMode -> QuirksMode
3457             AlmostStrictMode -> LimitedQuirksMode
3458             StrictMode -> NoQuirksMode
3459             
3460         Remove the htmlHacks() accessor from RenderStyle and make rendering code just go to the document
3461         instead.  This makes switching modes avoid forcing all RenderStyles to detect as changed.
3462         
3463         Clean up user stylesheets to minimize style recalculation when the mode is switched.
3464         
3465         Fix bugs with the propagation of correct modes in the HTML5 parser.  Make sure the
3466         dummy document created for fragment parsing properly inherits the real document's CompatibilityMode.
3467         Make sure the tree builder properly changes the insertion mode to "BeforeHTML" after handling
3468         a doctype token.
3469         
3470         determineParseMode -> setCompatibilityModeFromDoctype, and it now implements the HTML5 algorithm
3471         precisely.
3472
3473         * WebView/WebView.mm:
3474         (-[WebView _preferencesChangedNotification:]):
3475
3476 2010-08-27  Yury Semikhatsky  <yurys@chromium.org>
3477
3478         Reviewed by Pavel Feldman.
3479
3480         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
3481         https://bugs.webkit.org/show_bug.cgi?id=44230
3482
3483         * WebCoreSupport/WebInspectorClient.h:
3484         * WebCoreSupport/WebInspectorClient.mm:
3485         (WebInspectorFrontendClient::closeWindow):
3486         (WebInspectorFrontendClient::disconnectFromBackend):
3487         (-[WebInspectorWindowController windowShouldClose:]):
3488         (-[WebInspectorWindowController destroyInspectorView:]):
3489
3490 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
3491
3492         Unreviewed. Revert r66103 since Qt tests are failing.
3493
3494         * WebCoreSupport/WebInspectorClient.h:
3495         * WebCoreSupport/WebInspectorClient.mm:
3496         (WebInspectorFrontendClient::closeWindow):
3497         (-[WebInspectorWindowController windowShouldClose:]):
3498         (-[WebInspectorWindowController destroyInspectorView]):
3499
3500 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
3501
3502         Reviewed by Pavel Feldman.
3503
3504         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
3505         https://bugs.webkit.org/show_bug.cgi?id=44230
3506
3507         * WebCoreSupport/WebInspectorClient.h:
3508         * WebCoreSupport/WebInspectorClient.mm:
3509         (WebInspectorFrontendClient::closeWindow):
3510         (WebInspectorFrontendClient::disconnectFromBackend):
3511         (-[WebInspectorWindowController windowShouldClose:]):
3512         (-[WebInspectorWindowController destroyInspectorView:]):
3513
3514 2010-08-24  Eric Seidel  <eric@webkit.org>
3515
3516         Reviewed by Adam Barth.
3517
3518         Remove HTML5 parser testing infrastructure now that we don't need it
3519         https://bugs.webkit.org/show_bug.cgi?id=44581
3520
3521         * WebView/WebPreferenceKeysPrivate.h:
3522         * WebView/WebPreferences.mm:
3523         (+[WebPreferences initialize]):
3524         * WebView/WebPreferencesPrivate.h:
3525         * WebView/WebView.mm:
3526         (-[WebView _preferencesChangedNotification:]):
3527
3528 2010-08-24  Sam Weinig  <sam@webkit.org>
3529
3530         Reviewed by Oliver Hunt.
3531
3532         Paste event fires twice for mac WebKit
3533         <rdar://problem/8094611>
3534         https://bugs.webkit.org/show_bug.cgi?id=44535
3535
3536         The mac implementation of paste in WebKit was accidentally calling 
3537         Editor::tryDHTMLPaste twice, once in -[WebHTMLView paste:] and once
3538         in Editor::pasteAsPlainText (which is called -[WebHTMLView paste:]).
3539         Use the new pasteAsPlainTextBypassingDHTML function to bypass the
3540         second call.
3541
3542         * WebView/WebHTMLView.mm:
3543         (-[WebHTMLView paste:]):
3544
3545 2010-08-24  Daniel Cheng  <dcheng@chromium.org>
3546
3547         Reviewed by Eric Seidel.
3548
3549         [chromium] Generate drag images for HTML elements and selections.
3550         https://bugs.webkit.org/show_bug.cgi?id=43449
3551
3552         Fix up calls to Frame::nodeImage, which has a new signature.
3553
3554         * Plugins/WebBaseNetscapePluginView.mm:
3555         (-[WebBaseNetscapePluginView halt]):
3556
3557 2010-08-23  Mike Thole  <mthole@apple.com>
3558
3559         Reviewed by Dan Bernstein.
3560
3561         WebPDFView should remove itself as the delegate of its PDFView before being dealloced
3562         https://bugs.webkit.org/show_bug.cgi?id=44441
3563
3564         * WebView/WebPDFView.mm:
3565         (-[WebPDFView dealloc]): Set the PDFView's delegate to nil.
3566
3567 2010-08-22  Daniel Bates  <dbates@rim.com>
3568
3569         Reviewed by Eric Seidel.
3570
3571         Encapsulate document marker management into DocumentMarkerController
3572         https://bugs.webkit.org/show_bug.cgi?id=44383
3573
3574         Modify call sites in the Apple Mac port to use DocumentMarkerController.
3575
3576         No functionality was changed, so no new tests.
3577
3578         * WebView/WebFrame.mm:
3579         (-[WebFrame _unmarkAllBadGrammar]):
3580         (-[WebFrame _unmarkAllMisspellings]):
3581         * WebView/WebHTMLView.mm:
3582         (-[WebHTMLView unmarkAllTextMatches]):
3583         (-[WebHTMLView rectsForTextMatches]):
3584
3585 2010-08-19  David Kilzer  <ddkilzer@apple.com>
3586
3587         <http://webkit.org/b/44285> Fix compilation with NETSCAPE_PLUGIN_API disabled
3588
3589         Reviewed by Joseph Pecoraro.
3590
3591         * Plugins/Hosted/HostedNetscapePluginStream.mm: Changed
3592         USE(PLUGIN_HOST_PROCESS) to
3593         USE(PLUGIN_HOST_PROCESS) && ENABLE(NETSCAPE_PLUGIN_API).
3594         * Plugins/Hosted/NetscapePluginHostManager.mm: Ditto.
3595         * Plugins/Hosted/NetscapePluginHostProxy.mm: Ditto.
3596         * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Ditto.
3597         * Plugins/Hosted/ProxyInstance.mm: Ditto.
3598         * Plugins/Hosted/WebHostedNetscapePluginView.mm: Ditto.
3599         * WebCoreSupport/WebChromeClient.mm: Ditto.
3600         (WebChromeClient::createWindow):
3601         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
3602         (WebFrameLoaderClient::dispatchCreatePage):
3603         * WebView/WebHTMLView.mm:
3604         (needsCursorRectsSupportAtPoint): Added #if
3605         ENABLE(NETSCAPE_PLUGIN_API) and #endif macros as needed.
3606         * WebView/WebView.mm:
3607         (+[WebView _isNodeHaltedPlugin:]): Ditto.
3608         (+[WebView _hasPluginForNodeBeenHalted:]): Ditto.
3609         (+[WebView _restartHaltedPluginForNode:]): Ditto.
3610
3611 2010-08-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3612
3613         Reviewed by Darin Adler.
3614
3615         Add NetworkingContext to avoid layer violations
3616         https://bugs.webkit.org/show_bug.cgi?id=42292
3617
3618         Preparation: Just add the files to the build system.
3619
3620         * WebCoreSupport/WebFrameNetworkingContext.h: Added.
3621         Placeholder with tentative code that might be changed when landing
3622         the rest of it.
3623         * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
3624         Empty placeholder for now.
3625
3626 2010-08-17  Brady Eidson  <beidson@apple.com>
3627
3628         Reviewed by Sam Weinig.
3629
3630         Navigating back/forward during a modal dialog causes a crash when the modal dialog is dismissed.
3631         <rdar://problem/8313579> and https://bugs.webkit.org/show_bug.cgi?id=44131
3632
3633         * WebView/WebView.mm:
3634         (-[WebView canGoBack]): Return false if loads are deferred.
3635         (-[WebView canGoForward]): Ditto.
3636
3637 2010-08-14  Joseph Pecoraro  <joepeck@webkit.org>
3638
3639         Reviewed by Pavel Feldman.
3640
3641         Web Inspector: -[WebInspector attach] and detach should work
3642         https://bugs.webkit.org/show_bug.cgi?id=43924
3643
3644         For actions that relate only to the Web Inspector's Frontend
3645         window (actions on the InspectorFrontendClient) the new Obj-C
3646         wrapper class WebInspectorFrontend can be used. For now, this
3647         is just attach and detach.
3648
3649         * WebCoreSupport/WebInspectorClient.mm:
3650         (WebInspectorClient::openInspectorFrontend): setup and attach the WebInspectorFrontend to the WebInspector.
3651         * WebInspector/WebInspector.h:
3652         * WebInspector/WebInspector.mm:
3653         (-[WebInspector dealloc]):
3654         (-[WebInspector attach:]): delegate to the frontend.
3655         (-[WebInspector detach:]): delegate to the frontend.
3656         (-[WebInspector setFrontend:]):
3657         * WebInspector/WebInspectorFrontend.h: Added.
3658         * WebInspector/WebInspectorFrontend.mm: Added.
3659         (-[WebInspectorFrontend initWithFrontendClient:]):
3660         (-[WebInspectorFrontend attach]):
3661         (-[WebInspectorFrontend detach]):
3662         * WebInspector/WebInspectorPrivate.h:
3663
3664 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
3665
3666         Rubber stamped by Sam Weinig.
3667         Switch String::/UString::ascii() to return a CString.
3668
3669         * Plugins/Hosted/ProxyInstance.mm:
3670         (WebKit::ProxyInstance::methodsNamed):
3671         (WebKit::ProxyInstance::fieldNamed):
3672
3673 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
3674
3675         Reviewed by Sam Weinig
3676
3677         Unify UString::UTF8String() & String::utf8() methods,
3678         remove UString::cost() & make atArrayIndex a free function.
3679
3680         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3681         (WebKit::NetscapePluginInstanceProxy::enumerate):
3682
3683 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
3684
3685         Unreviewed, rolling out r65295.
3686         http://trac.webkit.org/changeset/65295
3687         https://bugs.webkit.org/show_bug.cgi?id=43950
3688
3689         It broke 4 sputnik tests (Requested by Ossy on #webkit).
3690
3691         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3692         (WebKit::NetscapePluginInstanceProxy::enumerate):
3693
3694 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
3695
3696         Reviewed by Sam Weinig
3697
3698         Unify UString::UTF8String() & String::utf8() methods,
3699         remove UString::cost() & make atArrayIndex a free function.
3700
3701         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3702         (WebKit::NetscapePluginInstanceProxy::enumerate):
3703
3704 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
3705
3706         Revert for now
3707         https://bugs.webkit.org/show_bug.cgi?id=43794 
3708
3709         * WebView/WebView.mm:
3710         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3711         (-[WebView _preferencesChangedNotification:]):
3712
3713 2010-08-10  Jeremy Orlow  <jorlow@chromium.org>
3714
3715         Reviewed by Adam Barth.
3716
3717         Some settings are linked to the PageGroup not the Page.  Create a new class for those.
3718         https://bugs.webkit.org/show_bug.cgi?id=43794
3719
3720         Change WebView to use the new GroupSettings class rather than Settings for the
3721         settings that moved.  This is sub-optimal since the settings aren't really
3722         per-view, but we can't really change the API at this point.
3723
3724         * WebView/WebView.mm:
3725         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3726         (-[WebView _preferencesChangedNotification:]):
3727
3728 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
3729
3730         Rubber stamps by Darin Adler & Sam Weinig.
3731
3732         Bug 43867 - Some UString cleanup
3733
3734         Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String.
3735         Move string concatenation methods to a new header to simplify down UString.h.  Remove is8Bit().
3736
3737         * WebView/WebScriptDebugger.mm:
3738         (toNSString):
3739
3740 2010-08-10  David Hyatt  <hyatt@apple.com>
3741
3742         Reviewed by Dan Bernstein.
3743
3744         https://bugs.webkit.org/show_bug.cgi?id=43806, add ability to paginate screen content.
3745         
3746         Add SPI for entering and exiting screen pagination mode.  This is similar to printing mode but it can be done for on-screen
3747         content.
3748
3749         * WebView/WebHTMLView.mm:
3750         (-[WebHTMLView _web_setPrintingModeRecursive]):
3751         (-[WebHTMLView _web_clearPrintingModeRecursive]):
3752         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
3753         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
3754         (-[WebHTMLView _endPrintMode]):
3755         (-[WebHTMLView _isInScreenPaginationMode]):
3756         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
3757         (-[WebHTMLView _endScreenPaginationMode]):
3758         (-[WebHTMLView reapplyStyles]):
3759         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
3760         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
3761         (-[WebHTMLView setPageWidthForPrinting:]):
3762         * WebView/WebHTMLViewPrivate.h:
3763
3764 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
3765
3766         Build fix (update more includes)
3767
3768         * Plugins/Hosted/NetscapePluginHostManager.h:
3769
3770 2010-08-10  Chris Marrin  <cmarrin@apple.com>
3771
3772         Reviewed by Oliver Hunt.
3773
3774         Add suspendAnimations/resumeAnimation API to DRT
3775         https://bugs.webkit.org/show_bug.cgi?id=43733
3776         
3777         Mac specific API. Plumbs suspendAnimations/resumeAnimations down to WebCore.
3778
3779         * WebView/WebFrame.mm:
3780         (-[WebFrame _suspendAnimations]):
3781         (-[WebFrame _resumeAnimations]):
3782         * WebView/WebFramePrivate.h:
3783
3784 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
3785
3786         Rubber stamped by Sam Weinig
3787
3788         Bug 43817 - Remove UString::Rep
3789         UString::Rep has for a long time been replaced by UStringImpl (Rep
3790         remaining as a typedef).  UStringImpl has since been removed too
3791         (unified with StringImpl). Remove Rep, rename rep() to impl() and
3792         m_rep to m_impl.  Also add impl() method to Identifier, and rename
3793         its UString member from _ustring to m_string.
3794
3795         * Plugins/Hosted/ProxyInstance.mm:
3796         (WebKit::ProxyInstance::methodsNamed):
3797         (WebKit::ProxyInstance::fieldNamed):
3798
3799 2010-08-06  Gavin Barraclough  <barraclough@apple.com>
3800
3801         Rubber stamped by Sam Weinig
3802
3803         Bug 43594 - Add string forwards to Forward.h
3804         This allows us to remove forward declarations for these classes from
3805         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
3806
3807         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3808         * Plugins/WebBaseNetscapePluginView.h:
3809         * WebCoreSupport/WebFrameLoaderClient.h:
3810         * WebCoreSupport/WebIconDatabaseClient.h:
3811         * WebCoreSupport/WebPluginHalterClient.h:
3812         * WebView/WebViewInternal.h:
3813
3814 2010-08-04  MORITA Hajime  <morrita@google.com>
3815
3816         Reviewed by Tony Chang.
3817
3818         Pasting should fire textInput event.
3819         https://bugs.webkit.org/show_bug.cgi?id=42958
3820
3821         On paste, invoke Editor instead of direct command invocation,
3822         which allows dispatching events before actual paste.
3823
3824         * WebView/WebHTMLView.mm:
3825         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
3826
3827 2010-08-06  Yongjun Zhang  <yongjun_zhang@apple.com>
3828
3829         Reviewed by Eric Seidel.
3830
3831         add "const" to WebChromeClient::webView().
3832         https://bugs.webkit.org/show_bug.cgi?id=43631
3833
3834         Change WebChromeClient::webView() to be const because ChromeClient::didReceiveViewportArguments
3835         is const method now, and calling webView() inside port-specific didReceiveViewportArguments
3836         implementation fails compiling if webView() is not const.
3837
3838         * WebCoreSupport/WebChromeClient.h:
3839         (WebChromeClient::webView):
3840
3841 2010-08-06  Jessie Berlin  <jberlin@apple.com>
3842
3843         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
3844         Unreviewed.
3845
3846         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3847         * Plugins/WebBaseNetscapePluginView.h:
3848         * WebCoreSupport/WebFrameLoaderClient.h:
3849         * WebCoreSupport/WebIconDatabaseClient.h:
3850         * WebCoreSupport/WebPluginHalterClient.h:
3851         * WebView/WebViewInternal.h:
3852
3853 2010-08-05  Joseph Pecoraro  <joepeck@webkit.org>
3854
3855         Reviewed by David Kilzer.
3856
3857         Remove Invalid Asserts for Application Cache Quotas
3858         https://bugs.webkit.org/show_bug.cgi?id=43585
3859
3860         Removed Invalid ASSERTs that would always happen for quotas
3861         that were not noQuota().
3862
3863         * WebView/WebPreferences.mm:
3864         (-[WebPreferences applicationCacheTotalQuota]):
3865         (-[WebPreferences applicationCacheDefaultOriginQuota]):
3866
3867 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
3868
3869         Rubber stamped by Sam Weinig
3870
3871         Bug 43594 - Add string forwards to Forward.h
3872         This allows us to remove forward declarations for these classes from
3873         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
3874
3875         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3876         * Plugins/WebBaseNetscapePluginView.h:
3877         * WebCoreSupport/WebFrameLoaderClient.h:
3878         * WebCoreSupport/WebIconDatabaseClient.h:
3879         * WebCoreSupport/WebPluginHalterClient.h:
3880         * WebView/WebViewInternal.h:
3881
3882 2010-08-05  Jian Li  <jianli@chromium.org>
3883
3884         Reviewed by David Levin.
3885
3886         Unify blob related feature defines to ENABLE(BLOB).
3887         https://bugs.webkit.org/show_bug.cgi?id=43081
3888
3889         * Configurations/FeatureDefines.xcconfig:
3890
3891 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
3892
3893         Reviewed by David Kilzer.
3894
3895         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
3896         https://bugs.webkit.org/show_bug.cgi?id=40627
3897
3898         Part 6 - LayoutTest and Cleanup
3899
3900         * WebCoreSupport/WebApplicationCache.h:
3901         * WebCoreSupport/WebApplicationCache.mm:
3902         (+[WebApplicationCache setMaximumSize:]): refactor out deleting the application caches.
3903         (+[WebApplicationCache deleteAllApplicationCaches]): delete application caches.
3904
3905 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
3906
3907         Reviewed by David Kilzer.
3908
3909         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
3910         https://bugs.webkit.org/show_bug.cgi?id=40627
3911
3912         Part 5 - Refactor Quota Management in WebSecurityOrigin into Managers
3913
3914         Per-Origin quotas exist for Databases and Application Caches. Clients
3915         given a WebSecurityOrigin have the ability to set the quota for any
3916         per-origin quota type. This puts quota management into an interface
3917         and WebSecurityOrigin allows access to quota managers for the
3918         different types of quotas.
3919
3920         This also deprecates the old methods on WebSecurityOrigin. They are
3921         left in for now to prevent breaking older clients.
3922
3923           The WebQuotaManager interface allows querying and modifying a
3924           per-origin quota. This is implemented for both Databases and
3925           Application Caches.
3926
3927         * Misc/WebQuotaManager.h: Added. Interface for quota management (usage, quota, setQuota).
3928         * Storage/WebDatabaseQuotaManager.h: Added.
3929         * Storage/WebDatabaseQuotaManager.mm: Added.
3930         (-[WebDatabaseQuotaManager origin]):
3931         (-[WebDatabaseQuotaManager usage]):
3932         (-[WebDatabaseQuotaManager quota]):
3933         (-[WebDatabaseQuotaManager setQuota:]):
3934         * Storage/WebDatabaseSecurityOrigin.h: Removed.
3935         * Storage/WebDatabaseSecurityOrigin.mm: Removed.
3936         * WebCoreSupport/WebApplicationCacheQuotaManager.h: Added.
3937         * WebCoreSupport/WebApplicationCacheQuotaManager.mm: Added.
3938         (-[WebApplicationCacheQuotaManager origin]):
3939         (-[WebApplicationCacheQuotaManager usage]):
3940         (-[WebApplicationCacheQuotaManager quota]):
3941         (-[WebApplicationCacheQuotaManager setQuota:]):
3942         * WebCoreSupport/WebSecurityOriginPrivate.h: Added a category to access managers. Deprecated old methods.
3943
3944           Remove the WebSecurityOrigin sub-classes. Managers are better.
3945
3946         * WebCoreSupport/WebApplicationCacheSecurityOrigin.h: Removed.
3947         * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: Removed.
3948
3949           Create the managers lazily. Change old style calls to make use
3950           of the managers.
3951
3952         * WebCoreSupport/WebChromeClient.mm:
3953         (WebChromeClient::exceededDatabaseQuota):
3954         (WebChromeClient::reachedApplicationCacheOriginQuota):
3955         * WebCoreSupport/WebSecurityOrigin.mm:
3956         (-[WebSecurityOrigin applicationCacheQuotaManager]):
3957         (-[WebSecurityOrigin databaseQuotaManager]):
3958         (-[WebSecurityOrigin dealloc]): release the managers if they exist.
3959
3960 2010-08-03  Alex Milowski  <alex@milowski.com>
3961
3962         Reviewed by Beth Dakin.
3963
3964         Changed the ENABLE_MATHML value to enable MathML by default.
3965
3966         * Configurations/FeatureDefines.xcconfig:
3967
3968 2010-08-02  Brady Eidson  <beidson@apple.com>
3969
3970         Reviewed by Anders Carlsson.
3971
3972         Add VisitedLinkStrategy for each platform to implement
3973         https://bugs.webkit.org/show_bug.cgi?id=43393
3974
3975         * WebCoreSupport/WebPlatformStrategies.h:
3976         * WebCoreSupport/WebPlatformStrategies.mm:
3977         (WebPlatformStrategies::createVisitedLinkStrategy):
3978         (WebPlatformStrategies::isLinkVisited): Call back into PageGroup's visited links.
3979         (WebPlatformStrategies::addVisitedLink): Ditto.
3980
3981 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
3982
3983         Reviewed by Darin Fisher.
3984
3985         PopupMenu refactoring in preparation to WebKit2
3986         https://bugs.webkit.org/show_bug.cgi?id=42592
3987
3988         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3989         instances, concrete classes that inherit from ChromeClient needed to be changed to
3990         implement the new methods.
3991
3992         * WebCoreSupport/WebChromeClient.h:
3993         * WebCoreSupport/WebChromeClient.mm:
3994         (WebChromeClient::selectItemWritingDirectionIsNatural):
3995         (WebChromeClient::createPopupMenu):
3996         (WebChromeClient::createSearchPopupMenu):
3997
3998 2010-08-02  Jeremy Orlow  <jorlow@chromium.org>
3999
4000         Speculative revert of 64425 due to Chromium instability
4001         https://bugs.webkit.org/show_bug.cgi?id=43347
4002
4003         * WebCoreSupport/WebChromeClient.h:
4004         * WebCoreSupport/WebChromeClient.mm:
4005
4006 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
4007
4008         Reviewed by Darin Fisher.
4009
4010         PopupMenu refactoring in preparation to WebKit2
4011         https://bugs.webkit.org/show_bug.cgi?id=42592
4012
4013         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
4014         instances, concrete classes that inherit from ChromeClient needed to be changed to
4015         implement the new methods.
4016
4017         * WebCoreSupport/WebChromeClient.h:
4018         * WebCoreSupport/WebChromeClient.mm:
4019         (WebChromeClient::selectItemWritingDirectionIsNatural):
4020         (WebChromeClient::createPopupMenu):
4021         (WebChromeClient::createSearchPopupMenu):
4022
4023 2010-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
4024
4025         Unreviewed, rolling out r64422.
4026         http://trac.webkit.org/changeset/64422
4027         https://bugs.webkit.org/show_bug.cgi?id=43304
4028
4029         Build fixes are needed for Snow Leopard and Windows.
4030         (Requested by lca on #webkit).
4031
4032         * WebCoreSupport/WebChromeClient.h:
4033         * WebCoreSupport/WebChromeClient.mm:
4034
4035 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
4036
4037         Reviewed by Darin Fisher.
4038
4039         PopupMenu refactoring in preparation to WebKit2
4040         https://bugs.webkit.org/show_bug.cgi?id=42592
4041
4042         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
4043         instances, concrete classes that inherit from ChromeClient needed to be changed to
4044         implement the new methods.
4045
4046         * WebCoreSupport/WebChromeClient.h:
4047         * WebCoreSupport/WebChromeClient.mm:
4048         (WebChromeClient::selectItemWritingDirectionIsNatural):
4049         (WebChromeClient::createPopupMenu):
4050         (WebChromeClient::createSearchPopupMenu):
4051
4052 2010-07-31  David Kilzer  <ddkilzer@apple.com>
4053
4054         <http://webkit.org/b/43300> Simplify variables in *.xcconfig files after adding iOS support
4055
4056         Reviewed by Darin Adler.
4057
4058         * Configurations/WebKit.xcconfig: Extracted
4059         PRODUCTION_FRAMEWORKS_DIR and PRODUCTION_ROOT variables.
4060
4061 2010-07-30  Dan Bernstein  <mitz@apple.com>
4062
4063         Reviewed by Darin Adler.
4064
4065         <rdar://problem/8257783> Short documents may print a second blank page
4066         https://bugs.webkit.org/show_bug.cgi?id=43271
4067
4068         * WebView/WebHTMLView.mm:
4069         (-[WebHTMLView _web_setPrintingModeRecursive]): Updated for additional height parameter
4070         to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
4071         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
4072         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
4073         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Added height parameter,
4074         which is scaled and passed on to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
4075         (-[WebHTMLView _endPrintMode]): Updated for additional height parameter to
4076         _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
4077         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]): Added
4078         height parameter, which is passed on to FrameView::forceLayoutForPagination().
4079         (-[WebHTMLView layout]): Updated for additional height parameter.
4080         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:]): Added height
4081         parameter, which is passed on to -layoutToMinimumPageWidth:height:maximumPageWidth:adjustViewSize:.
4082         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Updated for additional height
4083         parameter.
4084         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
4085         (-[WebHTMLView knowsPageRange:]): Pass the available height on the page on to
4086         _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize.
4087         * WebView/WebHTMLViewPrivate.h: 
4088
4089 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
4090
4091         Fix for tests that broke after r64400. Tracking a more
4092         ideal solution in https://bugs.webkit.org/show_bug.cgi?id=40627
4093
4094         Switch the interface back to (unsigned long long), and move
4095         the WebDatabaseSecurityOrigin implementation up into WebSecurityOrigin.
4096         The subclasses' implementations were not getting called.
4097
4098         * Storage/WebDatabaseSecurityOrigin.mm:
4099         * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm:
4100         (-[WebApplicationCacheSecurityOrigin quota]):
4101         (-[WebApplicationCacheSecurityOrigin setQuota:]):
4102         * WebCoreSupport/WebSecurityOrigin.mm:
4103         (-[WebSecurityOrigin usage]):
4104         (-[WebSecurityOrigin quota]):
4105         (-[WebSecurityOrigin setQuota:]):
4106         * WebCoreSupport/WebSecurityOriginPrivate.h:
4107
4108 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
4109
4110         Reviewed by David Kilzer.
4111
4112         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
4113         https://bugs.webkit.org/show_bug.cgi?id=40627
4114
4115         Part 4 - Client Notification when the Quota is Reached
4116
4117         Notify the WebKit client when the per-origin quota is reached
4118         via a delegate method reachedApplicationCacheOriginQuota.
4119
4120           Refactor the WebSecurityOrigin class to be generic enough to
4121           allow quota management of both Databases or Application Caches
4122           via subclasses.
4123
4124         * Storage/WebDatabaseSecurityOrigin.h: Added.