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