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