1acdd15cc3c5853746995459dbfea02107cf16e9
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-12-31  Dan Bernstein  <mitz@apple.com>
2
3         WebKit/mac changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
4         https://bugs.webkit.org/show_bug.cgi?id=75405
5
6         Reviewed by Anders Carlsson.
7
8         Removed the WebKit/mac mechanism for dispatching fake mouse moved events
9         when an HTML frame scrolls, since FrameView now does this.
10
11         * WebView/WebHTMLView.mm:
12         (-[WebHTMLViewPrivate dealloc]): Removed an assertion about a removed ivar.
13         (-[WebHTMLView _updateMouseoverWithFakeEvent]): Removed call to
14         -_cancelUpdateMouseoverTimer.
15         (-[WebHTMLView _frameOrBoundsChanged]): Removed code to schedule a timer
16         for dispatching a mouse moved event on scroll.
17         (-[WebHTMLView close]): Removed call to _cancelUpdateMouseoverTimer.
18         (-[WebHTMLView viewWillMoveToWindow:]): Ditto.
19         (-[WebHTMLView mouseDown:]): Ditto.
20
21 2011-12-23  Ryosuke Niwa  <rniwa@webkit.org>
22
23         Chromium Mac build fix.
24
25         * WebCoreSupport/WebSystemInterface.mm:
26         (InitWebCoreSystemInterface):
27
28 2011-12-21  Sam Weinig  <sam@webkit.org>
29
30         Start extracting platform specific bits out of PlatformEvents
31         https://bugs.webkit.org/show_bug.cgi?id=75063
32
33         Reviewed by Anders Carlsson.
34
35         * WebCoreSupport/WebSystemInterface.mm:
36         (InitWebCoreSystemInterface):
37         * WebView/WebFrame.mm:
38         * WebView/WebHTMLView.mm:
39         (-[WebHTMLView menuForEvent:]):
40         (-[WebHTMLView acceptsFirstMouse:]):
41         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
42         (currentKeyboardEvent):
43         (-[WebHTMLView flagsChanged:]):
44         * WebView/WebPDFView.mm:
45         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
46         * WebView/WebView.mm:
47
48 2011-12-21  Timothy Hatcher  <timothy@apple.com>
49
50         Web Inspector: suppress incremental rendering and use application chrome mode
51
52         https://webkit.org/b/75026
53
54         Reviewed by Joseph Pecoraro.
55
56         * WebCoreSupport/WebInspectorClient.mm:
57         (-[WebInspectorWindowController init]): Sort the preferences, remove the Leopard font family setting,
58         set suppress incremental rendering and use application chrome mode.
59
60 2011-12-20  Pavel Feldman  <pavel.feldman@gmail.com>
61
62         Web Inspector: reproducible crash after closing web inspector and browser window  (iCab)
63         https://bugs.webkit.org/show_bug.cgi?id=74255
64
65         Reviewed by Yury Semikhatsky.
66
67         * WebCoreSupport/WebInspectorClient.h:
68         * WebCoreSupport/WebInspectorClient.mm:
69         (WebInspectorClient::bringFrontendToFront):
70         (-[WebInspectorWindowController destroyInspectorView:]):
71
72 2011-12-19  Eric Carlson  <eric.carlson@apple.com>
73
74         Enable <track> for Mac build
75         https://bugs.webkit.org/show_bug.cgi?id=74838
76
77         Reviewed by Darin Adler.
78
79         * Configurations/FeatureDefines.xcconfig:
80
81 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
82
83         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
84         https://bugs.webkit.org/show_bug.cgi?id=74748
85
86         Reviewed by Eric Seidel.
87
88         * WebCoreSupport/WebEditorClient.h:
89         * WebCoreSupport/WebEditorClient.mm:
90         (WebEditorClient::registerUndoOrRedoStep):
91         (WebEditorClient::registerUndoStep):
92         (WebEditorClient::registerRedoStep):
93
94 2011-12-16  Sam Weinig  <sam@webkit.org>
95
96         Give PlatformEvents a base class
97         https://bugs.webkit.org/show_bug.cgi?id=74685
98
99         Reviewed by Anders Carlsson.
100
101         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
102         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
103
104         * WebView/WebFrame.mm:
105         (-[WebFrame _dragSourceEndedAt:operation:]):
106         * WebView/WebHTMLView.mm:
107         (currentKeyboardEvent):
108         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
109         * WebView/WebPDFView.mm:
110         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
111
112 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
113
114         Fix a #elsif fumble in my earlier commit.
115
116         * WebView/WebHTMLView.mm:
117         (-[WebHTMLView attachRootLayer:]):
118
119 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
120
121         Only EditCommandComposition should implement unapply and reapply
122         https://bugs.webkit.org/show_bug.cgi?id=74490
123
124         Reviewed by Eric Seidel.
125
126         * WebCoreSupport/WebEditorClient.h:
127         * WebCoreSupport/WebEditorClient.mm:
128         (-[WebUndoStep initWithUndoStep:]):
129         (-[WebUndoStep dealloc]):
130         (+[WebUndoStep stepWithUndoStep:]):
131         (-[WebUndoStep step]):
132         (-[WebEditorUndoTarget undoEditing:]):
133         (-[WebEditorUndoTarget redoEditing:]):
134         (WebEditorClient::registerCommandForUndoOrRedo):
135         (WebEditorClient::registerCommandForUndo):
136         (WebEditorClient::registerCommandForRedo):
137
138 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
139
140         <rdar://problem/10589427> Avoid calling -setGeometryFlipped ourselves on the layer hosting view's layer
141
142         Reviewed by Sam Weinig.
143         
144         Now that we're using a flipped view to host the compositing layers,
145         we should not set geometryFlipped on the root layer ourselves.
146
147         * WebView/WebHTMLView.mm:
148         (-[WebHTMLView attachRootLayer:]):
149
150 2011-12-16  Mark Hahnenberg  <mhahnenberg@apple.com>
151
152         De-virtualize destructors
153         https://bugs.webkit.org/show_bug.cgi?id=74331
154
155         Reviewed by Geoffrey Garen.
156
157         * Plugins/Hosted/ProxyRuntimeObject.h: Remove empty virtual destructor.
158         * Plugins/Hosted/ProxyRuntimeObject.mm:
159
160 2011-12-14  Ryosuke Niwa  <rniwa@webkit.org>
161
162         Mac build fix after r102874.
163
164         * WebCoreSupport/WebChromeClient.mm:
165
166 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
167
168         Opening two popup menus by dispatchEvent() makes problems.
169         https://bugs.webkit.org/show_bug.cgi?id=73304
170
171         Reviewed by Kent Tamura.
172
173         * WebCoreSupport/WebChromeClient.h: Overrides hasOpenedPopup().
174         * WebCoreSupport/WebChromeClient.mm:
175         (WebChromeClient::hasOpenedPopup): Not implemented.
176
177 2011-12-14  Michael Saboff  <msaboff@apple.com>
178
179         Mac WebScriptDebugger crashes beneath sourceParsed()
180         https://bugs.webkit.org/show_bug.cgi?id=74564
181
182         Reviewed by Gavin Barraclough.
183
184         * WebView/WebScriptDebugger.mm:
185         (toNSString): Change to use ->characters() method to
186         actually get characters for string conversion.
187
188 2011-12-14  Hajime Morrita  <morrita@chromium.org>
189
190         JS_INLINE and WTF_INLINE should be visible from WebCore
191         https://bugs.webkit.org/show_bug.cgi?id=73191
192
193         Reviewed by Kevin Ollivier.
194
195         Removed macro definitions which is now provided by Platform.h
196
197         * WebKitPrefix.h:
198
199 2011-12-13  Jon Lee  <jonlee@apple.com>
200
201         Enable notifications on Mac.
202
203         Reviewed by Sam Weinig.
204
205         * Configurations/FeatureDefines.xcconfig:
206
207 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
208
209         WebKit code shouldn't be calling applyCommand directly
210         https://bugs.webkit.org/show_bug.cgi?id=74337
211
212         Reviewed by Darin Adler.
213
214         * WebView/WebFrame.mm:
215         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
216
217 2011-12-12  Brady Eidson  <beidson@apple.com>
218
219         Page cache should support pages with plugins.
220         <rdar://problem/5190122> and https://bugs.webkit.org/show_bug.cgi?id=13634
221
222         Expose a WebKit preference for the page cache supporting plugins (on by default).
223
224         Reviewed by Anders Carlsson.
225
226         * WebView/WebPreferenceKeysPrivate.h:
227
228         * WebView/WebPreferences.mm:
229         (-[WebPreferences pageCacheSupportsPlugins]):
230         (-[WebPreferences setPageCacheSupportsPlugins:]):
231         * WebView/WebPreferencesPrivate.h:
232
233         * WebView/WebView.mm:
234         (-[WebView _preferencesChanged:]):
235
236 2011-12-12  Dan Bernstein  <mitz@apple.com>
237
238         <rdar://problem/10328474> Text highlight changes to gray selection color when menu extra is shown
239
240         Reviewed by John Sullivan.
241
242         * WebView/WebView.mm:
243         (-[WebView _updateActiveState]): Changed to use -[NSWindow _hasKeyAppearance] instead
244         of -isKeyWindow. The former also returns YES when a menu extra is open.
245         (-[WebView addWindowObserversForWindow:]): Removed code to observe
246         NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification.
247         (-[WebView removeWindowObservers]): Removed code to stop observing the above.
248         (-[WebView _windowChangedKeyState]): Overridden this to call _updateActiveState.
249         This is called when the result of -_hasKeyAppearance changes.
250         (-[WebView _windowWillOrderOnScreen:]): Removed call to _updateActiveState,
251         previously needed for popovers, because _windowChangedKeyState is invoked
252         at the right time for them.
253         (-[WebView _windowWillOrderOffScreen:]): Ditto.
254
255 2011-12-07  Mark Rowe  <mrowe@apple.com>
256
257         Fix the 32-bit build.
258
259         Ignore some warnings that only occur in 32-bit.
260
261         * Plugins/WebNetscapePluginPackage.mm:
262
263 2011-12-07  Mary Wu  <mary.wu@torchmobile.com.cn>
264
265         Change function name InitializeLoggingChannelsIfNecessary to follow coding style guideline
266         https://bugs.webkit.org/show_bug.cgi?id=73986
267
268         Reviewed by Kenneth Rohde Christiansen.
269
270         * WebView/WebView.mm:
271         (-[WebView _commonInitializationWithFrameName:groupName:]):
272
273 2011-12-06  Alexey Proskuryakov  <ap@apple.com>
274
275         REGRESSION (WebKit2): Kill ring is not cleared when selection changes
276         https://bugs.webkit.org/show_bug.cgi?id=73888
277         <rdar://problem/10532310>
278
279         Reviewed by Mark Rowe.
280
281         * WebView/WebHTMLView.mm:
282         (-[WebHTMLView becomeFirstResponder]): Added a FIXME comment.
283         (-[WebHTMLView _selectionChanged]): Moved the code to clear kill ring to WebCore. The rest
284         of kill ring implementation is there, so it makes no sense to have this call in WebKits.
285
286 2011-12-05  Anders Carlsson  <andersca@apple.com>
287
288         Make LayerFlushSchedulerClient::flushLayers indicate whether the flush was successful or not
289         https://bugs.webkit.org/show_bug.cgi?id=73862
290
291         Reviewed by Andy Estes.
292
293         Remove the call to LayerFlushScheduler::invalidate and return true instead. Return false for the cases
294         where we don't want the layer flush scheduler to be invalidated.
295
296         * WebView/WebView.mm:
297         (LayerFlushController::flushLayers):
298         * WebView/WebViewData.h:
299
300 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
301
302         Add WebKit preferences for text track settings
303         https://bugs.webkit.org/show_bug.cgi?id=73721
304
305         Reviewed by John Sullivan.
306
307         * WebView/WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, 
308         and shouldDisplayTextDescriptions properties.
309
310         * WebView/WebPreferences.mm:
311         (+[WebPreferences initialize]): Initialize new preferences to NO.
312         (-[WebPreferences setShouldDisplaySubtitles:]): Added.
313         (-[WebPreferences shouldDisplaySubtitles]): Ditto.
314         (-[WebPreferences setShouldDisplayCaptions:]): Ditto.
315         (-[WebPreferences shouldDisplayCaptions]): Ditto.
316         (-[WebPreferences setShouldDisplayTextDescriptions:]): Ditto.
317         (-[WebPreferences shouldDisplayTextDescriptions]): Ditto.
318         * WebView/WebPreferencesPrivate.h:
319
320         * WebView/WebView.mm:
321         (-[WebView _preferencesChanged:]): Updates WebCore settings from WebKit prefs.
322
323 2011-12-03  Dan Bernstein  <mitz@apple.com>
324
325         <rdar://problem/10523721> Crash at WebCore::SubresourceLoader::releaseResources
326         Reviewed by Darin Adler.
327
328         * WebView/WebView.mm:
329         (-[WebView _removeObjectForIdentifier:]): Changed the CFRelease(self) into
330         a WebCFAutorelease(self). This prevents re-entry into this method due to
331         the WebView closing and canceling all subresource loads, including the
332         one we have just removed.
333
334 2011-12-02  David Levin  <levin@chromium.org>
335
336         Rename WTF class from TemporarilyChange to TemporaryChange.
337         https://bugs.webkit.org/show_bug.cgi?id=73479
338
339         Reviewed by Eric Seidel.
340
341         * ForwardingHeaders/wtf/TemporarilyChange.h: Removed.
342         * ForwardingHeaders/wtf/TemporaryChange.h: Added.
343
344 2011-12-02  Simon Fraser  <simon.fraser@apple.com>
345
346         <rdar://problem/10423627> Layers are flipped in WebKit1 views
347
348         Reviewed by Sam Weinig.
349         
350         Host the compositing layers in an NSView which is flipped, which helps AppKit
351         get the geometry right in some situations.
352
353         * WebView/WebHTMLView.mm:
354         (-[WebLayerHostingFlippedView isFlipped]):
355         (-[WebHTMLView attachRootLayer:]):
356
357 2011-12-02  Hajime Morrita  <morrita@chromium.org>
358
359         Unreviewed, rolling out r101751 and r101775.
360         http://trac.webkit.org/changeset/101751
361         http://trac.webkit.org/changeset/101775
362         https://bugs.webkit.org/show_bug.cgi?id=73191
363
364         breaks Windows build
365
366         * WebKitPrefix.h:
367
368 2011-12-01  Hajime Morrita  <morrita@chromium.org>
369
370         JS_INLINE and WTF_INLINE should be visible from WebCore
371         https://bugs.webkit.org/show_bug.cgi?id=73191
372
373         Reviewed by Kevin Ollivier.
374
375         Removed macro definitions which is now provided by Platform.h
376
377         * WebKitPrefix.h:
378
379 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
380
381         Remove an unneeded argument from FrameLoaderClient::download
382         https://bugs.webkit.org/show_bug.cgi?id=73486
383
384         Reviewed by Andreas Kling.
385
386         * WebCoreSupport/WebFrameLoaderClient.h:
387         * WebCoreSupport/WebFrameLoaderClient.mm:
388         (WebFrameLoaderClient::download):
389         Updated for the change.
390
391 2011-11-30  Dan Bernstein  <mitz@apple.com>
392
393         WebKit/mac part of: Allow the length of a page along the pagination axis to differ from the length of the view
394         https://bugs.webkit.org/show_bug.cgi?id=73476
395
396         Reviewed by Anders Carlsson.
397
398         * WebView/WebView.mm:
399         (-[WebView _setPageLength:]): Added this accessor.
400         (-[WebView _pageLength]): Ditto.
401         * WebView/WebViewPrivate.h:
402
403 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
404
405         Download page URL should be set by WebCore
406         https://bugs.webkit.org/show_bug.cgi?id=73358
407
408         Reviewed by Darin Adler.
409
410         * WebCoreSupport/WebFrameLoaderClient.h: Removed setOriginalURLForDownload, which is now
411         in WebCore.
412
413         * WebCoreSupport/WebFrameLoaderClient.mm:
414         (WebFrameLoaderClient::download): There is no need to set original URL post factum any more.
415         (WebFrameLoaderClient::startDownload): Ditto.
416
417 2011-11-29  David Levin  <levin@chromium.org>
418
419         Add a way to revert a variable to its previous value after leaving a scope.
420         https://bugs.webkit.org/show_bug.cgi?id=73371
421
422         Reviewed by Adam Barth.
423
424         * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
425
426 2011-11-29  Jessie Berlin  <jberlin@apple.com>
427
428         WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins
429         the first time it is called.
430         https://bugs.webkit.org/show_bug.cgi?id=73374 (<rdar://problem/10196057>)
431
432         Reviewed by Brady Eidson.
433
434         * Storage/WebStorageTrackerClient.h:
435         * Storage/WebStorageTrackerClient.mm:
436         (WebStorageTrackerClient::didFinishLoadingOrigins):
437
438 2011-11-15  Anders Carlsson  <andersca@apple.com>
439
440         DragClient::dragSourceActionMaskForPoint should use root view coordinates
441         https://bugs.webkit.org/show_bug.cgi?id=72409
442
443         Reviewed by Sam Weinig.
444
445         * WebCoreSupport/WebDragClient.mm:
446         (WebDragClient::dragSourceActionMaskForPoint):
447         Use -[WebView _convertPointFromRootView:] to convert the point to the web view coordinate system.
448
449 2011-11-15  Anders Carlsson  <andersca@apple.com>
450
451         EditorClient::showCorrectionPanel should pass the string bounding box in root view coordinates
452         https://bugs.webkit.org/show_bug.cgi?id=72408
453
454         Reviewed by Sam Weinig.
455
456         * WebCoreSupport/CorrectionPanel.mm:
457         (CorrectionPanel::show):
458         Convert the bounding rect to web view coordinates.
459
460         * WebView/WebView.mm:
461         (-[WebView _convertPointFromRootView:]):
462         (-[WebView _convertRectFromRootView:]):
463         * WebView/WebViewInternal.h:
464         Add helper methods for converting from root view coordinates to web view coordinates.
465
466 2011-11-29  Roland Steiner  <rolandsteiner@chromium.org>
467
468         <style scoped>: add ENABLE(STYLE_SCOPED) flag to WebKit
469         https://bugs.webkit.org/show_bug.cgi?id=72848
470
471         Reviewed by Dimitri Glazkov.
472
473         * Configurations/FeatureDefines.xcconfig:
474
475 2011-11-28  Jon Lee  <jonlee@apple.com>
476
477         Create skeleton framework for notifications support in WK2
478         https://bugs.webkit.org/show_bug.cgi?id=73253
479         <rdar://problem/10356943>
480
481         Reviewed by Sam Weinig.
482
483         * Configurations/FeatureDefines.xcconfig: Split out ENABLE_NOTIFICATIONS based on platform.
484
485         * WebCoreSupport/WebNotificationClient.h: Added.
486         (WebNotificationClient::webView):
487         * WebCoreSupport/WebNotificationClient.mm: Added. Implemented as stubs for now.
488         (WebNotificationClient::WebNotificationClient):
489         (WebNotificationClient::show):
490         (WebNotificationClient::cancel):
491         (WebNotificationClient::notificationObjectDestroyed):
492         (WebNotificationClient::requestPermission):
493         (WebNotificationClient::cancelRequestsForPermission):
494         (WebNotificationClient::checkPermission):
495         * WebView/WebView.mm: Set PageClient's notification client to an instance of this stubbed class.
496
497 2011-11-28  Adam Roben  <aroben@apple.com>
498
499         Properly retain the OS X version string
500
501         Fixes <http://webkit.org/b/73214> REGRESSION (r101215): Crash on launch beneath +[WebView
502         _standardUserAgentWithApplicationName:]
503
504         Reviewed by Antti Koivisto.
505
506         * WebView/WebView.mm:
507         (createMacOSXVersionString): Retain the string we're returning, since this function is
508         supposed to return an owning reference to the caller.
509
510 2011-11-28  Hayato Ito  <hayato@chromium.org>
511
512         Fix chromium canary build after r101215.
513         Unreviewed. Build fix.
514
515         * WebCoreSupport/WebSystemInterface.mm:
516         (InitWebCoreSystemInterface):
517
518 2011-11-27  Mark Rowe  <mrowe@apple.com>
519
520         <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version
521
522         Reviewed by Dan Bernstein.
523
524         * WebCoreSupport/WebSystemInterface.mm:
525         (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString.
526         * WebView/WebView.mm:
527         (createMacOSXVersionString): Use WKGetMacOSXVersionString.
528
529 2011-11-26  Pavel Feldman  <pfeldman@google.com>
530
531         Web Inspector: remove disconnectFromBackend from the protocol.
532         https://bugs.webkit.org/show_bug.cgi?id=73127
533
534         Reviewed by Yury Semikhatsky.
535
536         * WebCoreSupport/WebInspectorClient.h:
537         * WebCoreSupport/WebInspectorClient.mm:
538         (WebInspectorClient::inspectorDestroyed):
539         (WebInspectorClient::closeInspectorFrontend):
540
541 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
542
543         Unreviewed, rolling out r101193.
544         http://trac.webkit.org/changeset/101193
545         https://bugs.webkit.org/show_bug.cgi?id=73158
546
547         Breaks Windows and Qt minimal. (Requested by pfeldman on
548         #webkit).
549
550         * WebCoreSupport/WebInspectorClient.h:
551         * WebCoreSupport/WebInspectorClient.mm:
552         (WebInspectorClient::inspectorDestroyed):
553
554 2011-11-26  Pavel Feldman  <pfeldman@google.com>
555
556         Web Inspector: remove disconnectFromBackend from the protocol.
557         https://bugs.webkit.org/show_bug.cgi?id=73127
558
559         Reviewed by Yury Semikhatsky.
560
561         * WebCoreSupport/WebInspectorClient.h:
562         * WebCoreSupport/WebInspectorClient.mm:
563         (WebInspectorClient::inspectorDestroyed):
564         (WebInspectorClient::closeInspectorFrontend):
565
566 2011-11-22  Pavel Feldman  <pfeldman@google.com>
567
568         Web Inspector: remove Inspector::bringToFront from the protocol.
569         https://bugs.webkit.org/show_bug.cgi?id=72937
570
571         Reviewed by Yury Semikhatsky.
572
573         * WebCoreSupport/WebInspectorClient.h:
574         * WebCoreSupport/WebInspectorClient.mm:
575         (WebInspectorClient::openInspectorFrontend):
576         (WebInspectorClient::bringFrontendToFront):
577
578 2011-11-21  Mark Rowe  <mrowe@apple.com>
579
580         Fix the SnowLeopard build.
581
582         * Misc/WebNSFileManagerExtras.mm: Forward-declare DADiskCreateFromVolumePath on SnowLeopard as it was
583         not yet declared in a public header.
584
585 2011-11-20  Mark Rowe  <mrowe@apple.com>
586
587         <http://webkit.org/b/72661> Switch to a more modern approach to retrieving the startup volume name
588
589         Use the DiskArbitration framework to retrieve the name of the startup volume rather than using Carbon
590         File Manager APIs.
591
592         Reviewed by Dan Bernstein.
593
594         * Misc/WebNSFileManagerExtras.mm:
595         (-[NSFileManager _webkit_startupVolumeName]): Retrieve a DADiskRef for the startup volume and copy
596         the volume name from its description dictionary.
597
598 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
599
600         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
601         https://bugs.webkit.org/show_bug.cgi?id=62985
602
603         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
604         methods for plumbing the menu action handlers through the WebKit and WebCore.
605         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
606         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
607         WebKit/win and WebKit2 to follow.
608
609         Reviewed by Yury Semikhatsky.
610
611         * WebCoreSupport/WebInspectorClient.mm:
612         (-[WebInspectorWindowController destroyInspectorView:]):
613         * WebInspector/WebInspector.mm:
614         (-[WebInspector showWindow]):
615         (-[WebInspector show:]):
616         (-[WebInspector showConsole:]):
617         (-[WebInspector isDebuggingJavaScript]):
618         (-[WebInspector toggleDebuggingJavaScript:]):
619         (-[WebInspector startDebuggingJavaScript:]):
620         (-[WebInspector stopDebuggingJavaScript:]):
621         (-[WebInspector isProfilingJavaScript]):
622         (-[WebInspector toggleProfilingJavaScript:]):
623         (-[WebInspector startProfilingJavaScript:]):
624         (-[WebInspector stopProfilingJavaScript:]):
625         (-[WebInspector isJavaScriptProfilingEnabled]):
626         (-[WebInspector setJavaScriptProfilingEnabled:]):
627         (-[WebInspector isTimelineProfilingEnabled]):
628         (-[WebInspector setTimelineProfilingEnabled:]):
629         (-[WebInspector setFrontend:]):
630         (-[WebInspector releaseFrontend]):
631         (-[WebInspector showWindow:]):
632         * WebInspector/WebInspectorFrontend.h:
633         * WebInspector/WebInspectorFrontend.mm:
634         (-[WebInspectorFrontend isDebuggingEnabled]):
635         (-[WebInspectorFrontend setDebuggingEnabled:]):
636         (-[WebInspectorFrontend isProfilingJavaScript]):
637         (-[WebInspectorFrontend startProfilingJavaScript]):
638         (-[WebInspectorFrontend stopProfilingJavaScript]):
639         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
640         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
641         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
642         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
643         * WebInspector/WebInspectorPrivate.h:
644
645 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
646
647         Implement Meta referrer
648         https://bugs.webkit.org/show_bug.cgi?id=72674
649
650         Reviewed by Adam Barth.
651
652         * Plugins/Hosted/HostedNetscapePluginStream.mm:
653         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
654         * Plugins/WebNetscapePluginStream.mm:
655         (WebNetscapePluginStream::WebNetscapePluginStream):
656
657 2011-10-17  Antonio Gomes  <agomes@rim.com>
658
659         Pass a Frame* parameter in EditorClient::respondToChangedSelection
660         https://bugs.webkit.org/show_bug.cgi?id=70248
661
662         Reviewed by Ryosuke Niwa.
663
664         * WebCoreSupport/WebEditorClient.h:
665         * WebCoreSupport/WebEditorClient.mm: Make use of the newly added Frame* parameter.
666         (WebEditorClient::respondToChangedSelection):
667
668 2011-11-17  Mark Rowe  <mrowe@apple.com>
669
670         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
671         switch away from the deprecated APIs.
672
673         Reviewed by Sam Weinig.
674
675         * Plugins/WebBasePluginPackage.mm:
676         * Plugins/WebNetscapePluginPackage.mm:
677         (-[WebNetscapePluginPackage _tryLoad]):
678
679 2011-11-18  Anton D'Auria  <adauria@apple.com>
680
681         bool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always returns true
682         https://bugs.webkit.org/show_bug.cgi?id=72568
683
684         Reviewed by David Kilzer.
685
686         WebChromeClient::shouldInterruptJavaScript called CallUIDelegate, which used an id
687         as the return value, which was then cast to a bool and always returned true. This
688         patch uses CallUIDelegateReturningBoolean instead of CallUIDelegate, with the default
689         return value of NO.
690
691         * WebCoreSupport/WebChromeClient.mm:
692         (WebChromeClient::shouldInterruptJavaScript):
693
694 2011-11-16  Dan Bernstein  <mitz@apple.com>
695
696         WebKit/mac part of <rdar://problem/10262242> Add API for paginated display
697         https://bugs.webkit.org/show_bug.cgi?id=72537
698
699         Reviewed by Anders Carlsson.
700
701         * WebView/WebView.mm:
702         (-[WebView _setPaginationMode:]): Added this accessor.
703         (-[WebView _paginationMode]): Ditto.
704         (-[WebView _setGapBetweenPages:]): Ditto.
705         (-[WebView _gapBetweenPages]): Ditto.
706         (-[WebView _pageCount]): Ditto.
707         * WebView/WebViewPrivate.h: Defined WebPaginationMode enum and values.
708
709 2011-11-15  Andy Estes  <aestes@apple.com>
710
711         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
712         https://bugs.webkit.org/show_bug.cgi?id=72106
713
714         Reviewed by Anders Carlsson.
715
716         Remove code that schedules layer flushes and use LayerFlushScheduler instead.
717
718         * WebView/WebView.mm:
719         (-[WebView _close]): Invalidate the run loop observer and destroy the
720         LayerFlushController.
721         (LayerFlushController::flushLayers): Perform the work that
722         layerSyncRunLoopObserverCallBack used to do.
723         (-[WebView _scheduleCompositingLayerSync]): If layerFlushController has
724         yet to be created, create it, then schedule a layer flush.
725         * WebView/WebViewData.h:
726         (LayerFlushController::create): Create a LayerFlushController that
727         implements the LayerFlushSchedulerClient interface and contains a
728         LayerFlushScheduler with itself as the client.
729         * WebView/WebViewData.mm:
730         (LayerFlushController::scheduleLayerFlush):
731         (LayerFlushController::invalidateObserver):
732         (LayerFlushController::LayerFlushController):
733
734 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
735
736         Rename ReferrerPolicy to clarify its meaning
737         https://bugs.webkit.org/show_bug.cgi?id=72420
738
739         Reviewed by Nate Chapin.
740
741         * WebView/WebPDFView.mm:
742         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
743
744 2011-11-15  Anders Carlsson  <andersca@apple.com>
745
746         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
747         https://bugs.webkit.org/show_bug.cgi?id=72397
748
749         Reviewed by Dan Bernstein.
750
751         * WebCoreSupport/WebChromeClient.h:
752         * WebCoreSupport/WebChromeClient.mm:
753         (WebChromeClient::screenToRootView):
754         (WebChromeClient::rootViewToScreen):
755
756 2011-11-14  Anders Carlsson  <andersca@apple.com>
757
758         HostWindow invalidation functions should use root view coordinates
759         https://bugs.webkit.org/show_bug.cgi?id=72338
760
761         Reviewed by Dan Bernstein.
762
763         * WebCoreSupport/WebChromeClient.h:
764         * WebCoreSupport/WebChromeClient.mm:
765         (WebChromeClient::invalidateRootView):
766         (WebChromeClient::invalidateContentsAndRootView):
767         (WebChromeClient::invalidateContentsForSlowScroll):
768
769 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
770
771         Add --css-grid-layout to build-webkit and the build systems
772         https://bugs.webkit.org/show_bug.cgi?id=72320
773
774         Reviewed by Ojan Vafai.
775
776         * Configurations/FeatureDefines.xcconfig:
777
778 2011-11-14  Tony Chang  <tony@chromium.org>
779
780         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
781         https://bugs.webkit.org/show_bug.cgi?id=72196
782
783         Reviewed by Ojan Vafai.
784
785         * Configurations/FeatureDefines.xcconfig:
786
787 2011-11-07  Adam Barth  <abarth@webkit.org>
788
789         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
790         https://bugs.webkit.org/show_bug.cgi?id=71755
791
792         Reviewed by Eric Seidel.
793
794         * Plugins/Hosted/HostedNetscapePluginStream.mm:
795         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
796         * Plugins/WebNetscapePluginStream.mm:
797         (WebNetscapePluginStream::WebNetscapePluginStream):
798         * WebView/WebView.mm:
799         (-[WebView _commonInitializationWithFrameName:groupName:]):
800         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
801         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
802         (+[WebView _resetOriginAccessWhitelists]):
803
804 2011-11-08  Joseph Pecoraro  <pecoraro@apple.com>
805
806         Move NSRange / DOMRange functions back to WebFrameInternal
807         https://bugs.webkit.org/show_bug.cgi?id=71844
808
809         Reviewed by Alexey Proskuryakov.
810
811         * WebView/WebFrame.mm:
812         (-[WebFrame _convertNSRangeToDOMRange:]):
813         (-[WebFrame _convertDOMRangeToNSRange:]):
814         * WebView/WebFrameInternal.h:
815         * WebView/WebFramePrivate.h:
816
817 2011-11-08  Michael Saboff  <msaboff@apple.com>
818
819         Towards 8 Bit Strings: Templatize JSC::Parser class by Lexer type
820         https://bugs.webkit.org/show_bug.cgi?id=71761
821
822         Changed WKPCEvaluate() to use emptyString() when the source is
823         zero length.
824
825         Reviewed by Gavin Barraclough.
826
827         * Plugins/Hosted/NetscapePluginHostProxy.mm:
828         (WKPCEvaluate):
829
830 2011-11-08  Beth Dakin  <bdakin@apple.com>
831
832         https://bugs.webkit.org/show_bug.cgi?id=71856
833         WebKit should use new NSWindowDidChangeBackingPropertiesNotification instead of 
834         old NSWindowDidChangeResolutionNotification
835         -and corresponding-
836         <rdar://problem/10317253>
837
838         Reviewed by Tim Hatcher.
839
840         * WebView/WebView.mm:
841         (-[WebView addWindowObserversForWindow:]):
842         (-[WebView removeWindowObservers]):
843
844         We have to check that the backing scale factor actually changed since this 
845         notification can also be used to signify other changes. 
846         (-[WebView _windowDidChangeBackingProperties:]):
847
848 2011-11-07  Adam Barth  <abarth@webkit.org>
849
850         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
851         https://bugs.webkit.org/show_bug.cgi?id=71750
852
853         Reviewed by Eric Seidel.
854
855         * WebView/WebView.mm:
856         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
857
858 2011-11-07  Jessie Berlin  <jberlin@apple.com>
859
860         Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is
861         enabled.
862         https://bugs.webkit.org/show_bug.cgi?id=71631
863
864         Reviewed by Jon Honeycutt.
865
866         Add WebKit1 API to register a scheme as ignoring Private Browsing for Local Storage and
867         Databases.
868
869         * WebView/WebView.mm:
870         (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
871         Call through to the SchemeRegistry function.
872         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
873         Ditto.
874         * WebView/WebViewPrivate.h:
875
876 2011-11-03  Mark Hahnenberg  <mhahnenberg@apple.com>
877
878         De-virtualize JSObject::getPropertyNames
879         https://bugs.webkit.org/show_bug.cgi?id=71306
880
881         Reviewed by Darin Adler.
882
883         Added getPropertyNames to the MethodTable, changed all the virtual 
884         implementations of getPropertyNames to static ones, and replaced 
885         all call sites with corresponding lookups in the MethodTable.
886
887         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
888         (WebKit::NetscapePluginInstanceProxy::enumerate):
889
890 2011-11-02  Darin Adler  <darin@apple.com>
891
892         Change remaining callers of releaseRef to call leakRef
893         https://bugs.webkit.org/show_bug.cgi?id=71422
894
895         Reviewed by Darin Fisher.
896
897         * History/WebBackForwardList.mm:
898         (-[WebBackForwardList initWithBackForwardList:]):
899         * History/WebHistoryItem.mm:
900         (-[WebHistoryItem copyWithZone:]):
901         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
902         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
903         (-[WebHostedNetscapePluginView createPlugin]):
904         * Plugins/WebNetscapePluginView.mm:
905         (-[WebNetscapePluginView createPlugin]):
906         * WebCoreSupport/WebOpenPanelResultListener.mm:
907         * WebView/WebDataSource.mm:
908         (-[WebDataSource _initWithDocumentLoader:]):
909         * WebView/WebResource.mm:
910         (-[WebResourcePrivate initWithCoreResource:]):
911         Use leakRef.
912
913 2011-11-02  Joseph Pecoraro  <pecoraro@apple.com>
914
915         Move NSRange / DOMRange conversion functions to WebFramePrivate
916         https://bugs.webkit.org/show_bug.cgi?id=71435
917
918         Reviewed by Sam Weinig.
919
920         Move conversion functions to WebFramePrivate,
921         and remove the no longer used versions.
922
923         * WebView/WebFrame.mm:
924         (-[WebFrame _convertNSRangeToDOMRange:]):
925         (-[WebFrame _convertDOMRangeToNSRange:]):
926         * WebView/WebFrameInternal.h:
927         * WebView/WebFramePrivate.h:
928
929 2011-11-02  Dean Jackson  <dino@apple.com>
930
931         Add ENABLE_CSS_SHADERS flag
932         https://bugs.webkit.org/show_bug.cgi?id=71394
933
934         Reviewed by Sam Weinig.
935
936         * Configurations/FeatureDefines.xcconfig:
937
938 2011-11-02  Jon Lee  <jonlee@apple.com>
939
940         Expand DragController to provide more information about the dragging session
941         https://bugs.webkit.org/show_bug.cgi?id=71324
942         <rdar://problem/10379175>
943
944         Reviewed by Darin Adler.
945
946         * WebView/WebView.mm:
947         (-[WebView draggingEntered:]): DragOperation is now inside the DragSession struct.
948         (-[WebView draggingUpdated:]):
949
950 2011-11-02  Tom Sepez  <tsepez@chromium.org>
951
952         XSSAuditor is silent
953         https://bugs.webkit.org/show_bug.cgi?id=70973
954
955         Reviewed by Adam Barth.
956
957         * WebCoreSupport/WebFrameLoaderClient.h:
958         * WebCoreSupport/WebFrameLoaderClient.mm:
959         (WebFrameLoaderClient::didRunInsecureContent):
960         (WebFrameLoaderClient::didDetectXSS):
961         * WebView/WebDelegateImplementationCaching.h:
962         * WebView/WebFrameLoadDelegatePrivate.h:
963         * WebView/WebView.mm:
964         (-[WebView _cacheFrameLoadDelegateImplementations]):
965
966 2011-11-01  Darin Adler  <darin@apple.com>
967
968         Crash in PDF code when script has illegal UTF-8 or UTF-16 sequences
969         https://bugs.webkit.org/show_bug.cgi?id=71289
970
971         Reviewed by Dan Bernstein.
972
973         Just adding a null check. I don't have access to an actual PDF with
974         this problem but crashes from the field indicate they exist.
975
976         * WebView/WebPDFDocumentExtras.mm:
977         (allScriptsInPDFDocument): Skip the code to add the script text
978         to an array when the script is null.
979
980 2011-10-28  John Sullivan  <sullivan@apple.com>
981
982         WebKit part of:
983         https://bugs.webkit.org/show_bug.cgi?id=71142
984         Whether backspace goes Back should be configurable
985
986         Reviewed by Sam Weinig.
987
988         * WebView/WebFrameView.mm:
989         (-[WebFrameView keyDown:]):
990         Honor the new preference.
991
992         * WebView/WebPreferenceKeysPrivate.h:
993         Added #define for WebKitBackspaceKeyNavigationEnabledKey
994         
995         * WebView/WebPreferences.mm:
996         (+[WebPreferences initialize]):
997         Initialize new pref to YES, to match current behavior.
998         (-[WebPreferences setBackspaceKeyNavigationEnabled:]):
999         New method, standard prefs setter.
1000         (-[WebPreferences backspaceKeyNavigationEnabled]):
1001         New method, standard prefs getter.
1002
1003         * WebView/WebPreferencesPrivate.h:
1004         Declared new methods.
1005         
1006         * WebView/WebView.mm:
1007         (-[WebView _preferencesChanged:]):
1008         Updates WebCore settings from WebKit prefs.
1009
1010 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1011
1012         Rename a number of methods mentioning JavaScript to just Script instead
1013         https://bugs.webkit.org/show_bug.cgi?id=71105
1014
1015         Reviewed by Adam Barth.
1016
1017         * WebView/WebView.mm:
1018         (-[WebView _preferencesChanged:]):
1019
1020 2011-10-27  Joseph Pecoraro  <pecoraro@apple.com>
1021
1022         Reviewed by David Kilzer.
1023
1024         Make FeatureDefines Identical Across OS X Projects
1025         https://bugs.webkit.org/show_bug.cgi?id=71051
1026
1027         * Configurations/FeatureDefines.xcconfig:
1028
1029 2011-10-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1030
1031         De-virtualize JSCell::toThisObject
1032         https://bugs.webkit.org/show_bug.cgi?id=70958
1033
1034         Reviewed by Geoffrey Garen.
1035
1036         Converted all instances of toThisObject to static functions, 
1037         added toThisObject to the MethodTable, and replaced all call sites
1038         with a corresponding lookup in the MethodTable.
1039
1040         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1041         (WebKit::NetscapePluginInstanceProxy::invoke):
1042         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1043
1044 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1045
1046         Remove deletePropertyVirtual
1047         https://bugs.webkit.org/show_bug.cgi?id=70738
1048
1049         Reviewed by Geoffrey Garen.
1050
1051         Removed all declarations and definitions of deletePropertyVirtual.
1052         Also replaced all call sites to deletePropertyVirtual with a 
1053         corresponding lookup in the MethodTable.
1054
1055         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1056         (WebKit::NetscapePluginInstanceProxy::removeProperty):
1057
1058 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1059
1060         Remove putVirtual
1061         https://bugs.webkit.org/show_bug.cgi?id=70740
1062
1063         Reviewed by Geoffrey Garen.
1064
1065         Removed all declarations and definitions of putVirtual.
1066         Also replaced all call sites to putVirtual with a 
1067         corresponding lookup in the MethodTable.
1068
1069         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1070         (WebKit::NetscapePluginInstanceProxy::setProperty):
1071
1072 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1073
1074         Removed SharedUChar and tightened language around its previous uses
1075         https://bugs.webkit.org/show_bug.cgi?id=70698
1076
1077         Reviewed by David Levin.
1078
1079         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
1080         the former names gave the dangerous misimpression that the resulting object
1081         was thread-safe, which is not true.
1082
1083         * Storage/WebDatabaseTrackerClient.mm:
1084         (DidModifyOriginData::dispatchToMainThread):
1085
1086 2011-10-24  Michael Saboff  <msaboff@apple.com>
1087
1088         WebKit doesn't build with recent changes to libdispatch
1089         https://bugs.webkit.org/show_bug.cgi?id=70737
1090
1091         Added initialization for new WebKitSystemInterface function 
1092         CreateVMPressureDispatchOnMainQueue.
1093
1094         Reviewed by Geoffrey Garen.
1095
1096         * WebCoreSupport/WebSystemInterface.mm:
1097         (InitWebCoreSystemInterface):
1098
1099 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
1100
1101         Remove getConstructDataVirtual
1102         https://bugs.webkit.org/show_bug.cgi?id=70638
1103
1104         Reviewed by Darin Adler.
1105
1106         Removed all declarations and definitions of getConstructDataVirtual.
1107         Also replaced all call sites to getConstructDataVirtual with a 
1108         corresponding lookup in the MethodTable.
1109
1110         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1111         (WebKit::NetscapePluginInstanceProxy::construct):
1112
1113 2011-10-20  Ian Henderson  <ianh@apple.com>
1114
1115         https://bugs.webkit.org/show_bug.cgi?id=70541
1116         There are two WebFrameLoadDelegatePrivate categories on NSObject
1117
1118         Reviewed by David Kilzer.
1119
1120         * WebView/WebViewPrivate.h: Rename the private delegate categories in
1121         WebViewPrivate.h with a "WebView" prefix to avoid collision.
1122
1123 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
1124
1125         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
1126         https://bugs.webkit.org/show_bug.cgi?id=70534
1127         <rdar://problem/10308827>
1128
1129         Reviewed by Darin Adler.
1130
1131         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Return true
1132         for contextmenu event, so that plug-ins won't get a default WebKit context menu. We can't
1133         know if the plug-in is handling mousedown (or even mouseup) by displaying a menu.
1134
1135 2011-10-19  Beth Dakin  <bdakin@apple.com>
1136
1137         https://bugs.webkit.org/show_bug.cgi?id=70396
1138         Focus rings are too thin in HiDPI in WebKit2
1139         -and corresponding-
1140         <rdar://problem/10086876>
1141
1142         Reviewed by Dan Bernstein.
1143
1144         Rename wkSetPatternBaseCTM to wkSetBaseCTM
1145         * WebCoreSupport/WebSystemInterface.mm:
1146         (InitWebCoreSystemInterface):
1147
1148         To create a HiDPI context in DRT, we have to set the base CTM, which currently 
1149         requires CG SPI, so we have to do it through WebKitSystemInterface.
1150         * WebView/WebView.mm:
1151         (-[WebView _setBaseCTM:forContext:]):
1152         * WebView/WebViewPrivate.h:
1153
1154 2011-10-18  Adam Barth  <abarth@webkit.org>
1155
1156         Always enable ENABLE(XPATH)
1157         https://bugs.webkit.org/show_bug.cgi?id=70217
1158
1159         Reviewed by Eric Seidel.
1160
1161         * Configurations/FeatureDefines.xcconfig:
1162
1163 2011-10-14  Chris Marrin  <cmarrin@apple.com>
1164
1165         Throttle rate of requestAnimationFrame when page is not visible
1166         https://bugs.webkit.org/show_bug.cgi?id=67873
1167
1168         Reviewed by Anders Carlsson.
1169
1170         Plumb through notification when the window is hidden/shown or
1171         minimized/unminimized
1172
1173         * WebView/WebView.mm:
1174         (-[WebView _windowWillOrderOnScreen:]):
1175         (-[WebView _windowWillOrderOffScreen:]):
1176
1177 2011-10-16  Adam Barth  <abarth@webkit.org>
1178
1179         Always enable ENABLE(DOM_STORAGE)
1180         https://bugs.webkit.org/show_bug.cgi?id=70189
1181
1182         Reviewed by Eric Seidel.
1183
1184         * Configurations/FeatureDefines.xcconfig:
1185         * Storage/WebStorageManager.mm:
1186         * Storage/WebStorageManagerInternal.h:
1187         * Storage/WebStorageTrackerClient.h:
1188         * Storage/WebStorageTrackerClient.mm:
1189         (WebStorageTrackerClient::dispatchDidModifyOrigin):
1190         * WebView/WebView.mm:
1191         (-[WebView _commonInitializationWithFrameName:groupName:]):
1192
1193 2011-10-14  David Kilzer  <ddkilzer@apple.com>
1194
1195         <http://webkit.org/b/70158> Fix clang compiler warnings
1196
1197         Reviewed by Darin Adler.
1198
1199         The following two methods in WebDelegateImplementationCaching.h
1200         are ambiguous in WebChromeClient::runJavaScriptPrompt() because
1201         the compiler can't decide how to convert the WTF::String
1202         defaultText argument:
1203
1204             id CallUIDelegate(WebView *, SEL, id, id);
1205             id CallUIDelegate(WebView *, SEL, id, BOOL);
1206
1207         The fix is to perform the conversion explicitly.
1208
1209         * WebCoreSupport/WebChromeClient.mm:
1210         (WebChromeClient::runJavaScriptPrompt): Extract a defaultString
1211         variable to convert the WTF::String to an NSString*, then
1212         use defaultString in place of defaultText.
1213
1214 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1215
1216         Rename virtual put to putVirtual
1217         https://bugs.webkit.org/show_bug.cgi?id=69851
1218
1219         Reviewed by Darin Adler.
1220
1221         Renamed virtual versions of put to putVirtual in prepration for 
1222         adding the static put to the MethodTable in ClassInfo since the 
1223         compiler gets mad if the virtual and static versions have the same 
1224         name.
1225
1226         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1227         (WebKit::NetscapePluginInstanceProxy::setProperty):
1228
1229 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1230
1231         Rename virtual deleteProperty to deletePropertyVirtual
1232         https://bugs.webkit.org/show_bug.cgi?id=69884
1233
1234         Reviewed by Darin Adler.
1235
1236         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
1237         adding the static deleteProperty to the MethodTable in ClassInfo since the 
1238         compiler gets mad if the virtual and static versions have the same name.
1239
1240         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1241         (WebKit::NetscapePluginInstanceProxy::removeProperty):
1242
1243 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
1244
1245         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
1246         https://bugs.webkit.org/show_bug.cgi?id=69964
1247
1248         Reviewed by Enrica Casucci.
1249
1250         * WebView/WebFrame.mm:
1251         (-[WebFrame _convertToNSRange:]):
1252         (-[WebFrame _convertToDOMRange:]):
1253
1254 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
1255
1256         Rename virtual getConstructData to getConstructDataVirtual
1257         https://bugs.webkit.org/show_bug.cgi?id=69872
1258
1259         Reviewed by Geoffrey Garen.
1260
1261         Renamed virtual getConstructData functions to getConstructDataVirtual to 
1262         avoid conflicts when we add static getConstructData to the MethodTable.
1263
1264         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1265         (WebKit::NetscapePluginInstanceProxy::construct):
1266
1267 2011-10-13  Beth Dakin  <bdakin@apple.com>
1268
1269         https://bugs.webkit.org/show_bug.cgi?id=70050
1270         DRT and WRT should have HiDPI testing capabilities
1271
1272         Reviewed by Darin Adler.
1273
1274         New method _backingScaleFactor matches SPI of a similar name that I added 
1275         recently to WKPage in WebKit2. Equivalent functionality is needed for 
1276         DumpRenderTree's HiDPI support.
1277         * WebView/WebView.mm:
1278         (-[WebView _backingScaleFactor]):
1279         * WebView/WebViewPrivate.h:
1280
1281 2011-10-12  Chris Marrin  <cmarrin@apple.com>
1282
1283         Sync requestAnimationFrame callback to CVDisplayLink on Mac
1284         https://bugs.webkit.org/show_bug.cgi?id=68911
1285
1286         Reviewed by Simon Fraser.
1287
1288         Add windowDidChangeScreen function which listens for the window changing
1289         screens and passes the new displayID along to WebCore::Page. It also sends
1290         one on windowWillOrderOnScreen, so the Page has a fresh displayID after it's
1291         created.
1292
1293         * WebView/WebView.mm:
1294         (-[WebView addWindowObserversForWindow:]):
1295         (-[WebView removeWindowObservers]):
1296         (-[WebView _windowDidChangeScreen:]):
1297         (-[WebView _windowWillOrderOnScreen:]):
1298
1299 2011-10-12  Adam Barth  <abarth@webkit.org>
1300
1301         Remove ENABLE(XHTMLMP) and associated code
1302         https://bugs.webkit.org/show_bug.cgi?id=69729
1303
1304         Reviewed by David Levin.
1305
1306         * Configurations/FeatureDefines.xcconfig:
1307
1308 2011-10-10  Nate Chapin  <japhet@chromium.org>
1309
1310         Use a CachedImageClient instead of CachedResourceClient
1311         in WebHTMLView.
1312         https://bugs.webkit.org/show_bug.cgi?id=69790
1313
1314         Reviewed by Adam Barth.
1315
1316         * WebView/WebHTMLView.mm:
1317         (promisedDataClient):
1318
1319 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
1320
1321         Remove getCallDataVirtual methods
1322         https://bugs.webkit.org/show_bug.cgi?id=69186
1323
1324         Reviewed by Geoffrey Garen.
1325
1326         Removed all getCallDataVirtual methods and replaced their call sites 
1327         with an explicit lookup in the MethodTable.
1328
1329         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1330         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1331
1332 2011-10-10  Joseph Pecoraro  <joepeck@webkit.org>
1333
1334         Extract WebOpenPanelResultListener out into its own file
1335         https://bugs.webkit.org/show_bug.cgi?id=69575
1336
1337         Reviewed by David Kilzer.
1338
1339         Extract the WebOpenPanelResultListener class out into
1340         its own file. No functional change.
1341
1342         * WebCoreSupport/WebChromeClient.mm:
1343         * WebCoreSupport/WebOpenPanelResultListener.h: Added.
1344         * WebCoreSupport/WebOpenPanelResultListener.mm: Added.
1345         (-[WebOpenPanelResultListener dealloc]):
1346         (-[WebOpenPanelResultListener finalize]):
1347         (-[WebOpenPanelResultListener cancel]):
1348         (-[WebOpenPanelResultListener chooseFilename:]):
1349         (-[WebOpenPanelResultListener chooseFilenames:]):
1350         * WebView/WebUIDelegate.h:
1351
1352 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
1353
1354         Unreviewed, rolling out r96996.
1355         http://trac.webkit.org/changeset/96996
1356         https://bugs.webkit.org/show_bug.cgi?id=69697
1357
1358         It broke all tests on the Qt bot (Requested by Ossy_night on
1359         #webkit).
1360
1361         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1362         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1363
1364 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
1365
1366         Remove getCallDataVirtual methods
1367         https://bugs.webkit.org/show_bug.cgi?id=69186
1368
1369         Reviewed by Geoffrey Garen.
1370
1371         Removed all getCallDataVirtual methods and replaced their call sites 
1372         with an explicit lookup in the MethodTable.
1373
1374         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1375         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1376
1377 2011-10-06  Anders Carlsson  <andersca@apple.com>
1378
1379         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
1380         https://bugs.webkit.org/show_bug.cgi?id=69586
1381
1382         Reviewed by Darin Adler.
1383
1384         * Configurations/Base.xcconfig:
1385         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
1386
1387 2011-10-06  Anders Carlsson  <andersca@apple.com>
1388
1389         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
1390         https://bugs.webkit.org/show_bug.cgi?id=69584
1391
1392         Reviewed by Darin Adler.
1393
1394         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
1395
1396         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1397         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1398
1399 2011-10-03  Andy Estes  <aestes@apple.com>
1400
1401         Add an option to suppress rendering until the document's load event fires.
1402         https://bugs.webkit.org/show_bug.cgi?id=69298
1403
1404         Reviewed by Simon Fraser.
1405         
1406         Add a new private WebPreference.
1407
1408         * WebView/WebPreferenceKeysPrivate.h:
1409         * WebView/WebPreferences.mm:
1410         (+[WebPreferences initialize]):
1411         (-[WebPreferences setSuppressRenderingWhileInitiallyLoading:]):
1412         (-[WebPreferences suppressRenderingWhileInitiallyLoading]):
1413         * WebView/WebPreferencesPrivate.h:
1414         * WebView/WebView.mm:
1415         (-[WebView _preferencesChanged:]):
1416
1417 2011-10-05  Jer Noble  <jer.noble@apple.com>
1418
1419         Enable WEB_AUDIO by default in the WebKit/mac port.
1420         https://bugs.webkit.org/show_bug.cgi?id=68587
1421
1422         Reviewed by Simon Fraser.
1423
1424         * Configurations/FeatureDefines.xcconfig:
1425
1426 2011-10-05  David Kilzer  <ddkilzer@apple.com>
1427
1428         <http://webkit.org/b/69386> REGRESSION: Curious Location of StorageTracker.db
1429
1430         Reviewed by Alexey Proskuryakov.
1431
1432         * Storage/WebStorageManager.mm:
1433         (+[WebStorageManager _storageDirectoryPath]): Restore call to
1434         -[NSString stringByStandardizingPath].  Also fix over-release of
1435         sLocalStoragePath if the initial -objectForKey: call returned an
1436         NSString object.  Use pthread_once to be thread-safe.
1437
1438 2011-10-04  Kent Tamura  <tkent@chromium.org>
1439
1440         Introduce feature flags for incomplete input types
1441         https://bugs.webkit.org/show_bug.cgi?id=68971
1442
1443         Reviewed by Hajime Morita.
1444
1445         * Configurations/FeatureDefines.xcconfig:
1446         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
1447
1448 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
1449
1450         Some JSValue cleanup
1451         https://bugs.webkit.org/show_bug.cgi?id=69320
1452
1453         Reviewed by Darin Adler.
1454
1455         * WebView/WebView.mm:
1456         (aeDescFromJSValue): Updated for JSC changes.
1457
1458 2011-10-04  Scott Graham  <scottmg@chromium.org>
1459
1460         Add GAMEPAD feature flag
1461         https://bugs.webkit.org/show_bug.cgi?id=66859
1462
1463         Reviewed by Darin Fisher.
1464
1465         * Configurations/FeatureDefines.xcconfig:
1466
1467 2011-10-03  Jer Noble  <jer.noble@apple.com>
1468
1469         Unreviewed, rolling out r96526.
1470         http://trac.webkit.org/changeset/96526
1471         https://bugs.webkit.org/show_bug.cgi?id=68587
1472
1473         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
1474         build breakages where -Wall is enabled.
1475
1476         * Configurations/FeatureDefines.xcconfig:
1477
1478 2011-10-03  Jer Noble  <jer.noble@apple.com>
1479
1480         Enable WEB_AUDIO by default in the WebKit/mac port.
1481         https://bugs.webkit.org/show_bug.cgi?id=68587
1482
1483         Reviewed by Simon Fraser.
1484
1485         * Configurations/FeatureDefines.xcconfig:
1486
1487 2011-10-02  Sam Weinig  <sam@webkit.org>
1488
1489         Strength reduce Mac only Frame::searchForLabelsBeforeElement and Frame::matchLabelsAgainstElement into callers
1490         https://bugs.webkit.org/show_bug.cgi?id=69230
1491
1492         Reviewed by Anders Carlsson.
1493
1494         * WebView/WebHTMLRepresentation.mm:
1495         (regExpForLabels):
1496         (searchForLabelsBeforeElement):
1497         (matchLabelsAgainstString):
1498         (matchLabelsAgainstElement):
1499         (-[WebHTMLRepresentation searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:]):
1500         (-[WebHTMLRepresentation matchLabels:againstElement:]):
1501
1502 2011-10-02  Alexey Proskuryakov  <ap@apple.com>
1503
1504         REGRESSION (r95474): Unable to type anywhere in nightly builds in WebKit1 mode
1505         https://bugs.webkit.org/show_bug.cgi?id=68542
1506
1507         Reviewed by Mark Rowe.
1508
1509         * WebView/WebView.mm: (-[WebView _usesDocumentViews]): Re-add this method for now.
1510
1511 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
1512
1513         Leopard build fix: Updated for Strong<T> changes.
1514
1515         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1516         * WebView/WebScriptDebugger.mm:
1517
1518 2011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
1519
1520         ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel
1521         https://bugs.webkit.org/show_bug.cgi?id=69037
1522
1523         Reviewed by Alexey Proskuryakov.
1524
1525         * WebCoreSupport/WebChromeClient.mm:
1526         (WebChromeClient::runOpenPanel):
1527         If no delegate is implemented, dismiss the listener
1528         with a cancel. It expects some action.
1529
1530 2011-09-28  Anton D'Auria  <adauria@apple.com>
1531
1532         Expose +[WebStorageManager _storageDirectoryPath] as SPI
1533         https://bugs.webkit.org/show_bug.cgi?id=68951
1534
1535         Reviewed by Brady Eidson.
1536
1537         This patch exposes +[WebStorageManager _storageDirectoryPath], which
1538         pulls the path from NSUserDefaults if the preference is set. Otherwise,
1539         it falls back on the default path.
1540
1541         * Storage/WebStorageManager.mm:
1542         (+[WebStorageManager _storageDirectoryPath]): Adding static variable
1543         so that we don't reread user defaults repeatedly.
1544         (WebKitInitializeStorageIfNecessary):
1545         * Storage/WebStorageManagerPrivate.h:
1546
1547 2011-09-27  Andy Estes  <aestes@apple.com>
1548
1549         WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
1550         https://bugs.webkit.org/show_bug.cgi?id=68863
1551
1552         Reviewed by Darin Adler.
1553
1554         The SolarWalk binary does not link against WebKit.framework directly,
1555         so calling NSVersionOfLinkTimeLibrary() will not return the version of
1556         WebKit against which SolarWalk was linked. Since Solar Walk has
1557         released an update that addresses the issue for which this app-specific
1558         hack was originally added, we should just remove the hack.
1559
1560         * Misc/SolarWalkQuirksUserScript.js: Removed.
1561         * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
1562         leakSolarWalkQuirksUserScriptContents(), and
1563         -[WebView _injectSolarWalkQuirksScript].
1564         (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
1565         inject the Solar Walk quirks script.
1566
1567 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1568
1569         Add static version of JSCell::getCallData
1570         https://bugs.webkit.org/show_bug.cgi?id=68741
1571
1572         Reviewed by Darin Adler.
1573
1574         In this patch we just extract the bodies of the virtual getCallData methods
1575         throughout the JSCell inheritance hierarchy out into static methods, which are 
1576         now called from the virtual methods.  This is an intermediate step in trying to 
1577         move the virtual-ness of getCallData into our own method table stored in 
1578         ClassInfo.  We need to convert the methods to static methods because static methods 
1579         can be represented as function pointers rather than pointers to member functions, and
1580         function pointers are smaller and faster to call than pointers to member functions.
1581
1582         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1583         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1584
1585 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
1586
1587         Repaint tests don't work in WebKit2
1588         https://bugs.webkit.org/show_bug.cgi?id=68453
1589
1590         Reviewed by Sam Weinig.
1591
1592         Have FrameView keep track of repaint rects when asked to, and
1593         expose this set of repaint rects via private WebKit API for later
1594         use by DumpRenderTree.
1595
1596         * WebView/WebView.mm:
1597         (-[WebView setTracksRepaints:]):
1598         (-[WebView isTrackingRepaints]):
1599         (-[WebView resetTrackedRepaints]):
1600         (-[WebView trackedRepaintRects]):
1601         * WebView/WebViewPrivate.h:
1602
1603 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1604
1605         Add custom vtable struct to ClassInfo struct
1606         https://bugs.webkit.org/show_bug.cgi?id=68567
1607
1608         Reviewed by Oliver Hunt.
1609
1610         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
1611         specified class in its ClassInfo.  Also added to it the first function to use 
1612         this macro, visitChildren.  This is part of the process of getting rid of all 
1613         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
1614         that can't easily be converted to non-virtual functions will be put into 
1615         this custom vtable structure.
1616
1617         * Plugins/Hosted/ProxyInstance.mm:
1618         * Plugins/Hosted/ProxyRuntimeObject.mm:
1619
1620 2011-09-24  Adam Barth  <abarth@webkit.org>
1621
1622         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1623         https://bugs.webkit.org/show_bug.cgi?id=68767
1624
1625         Reviewed by Eric Seidel.
1626
1627         * Configurations/FeatureDefines.xcconfig:
1628         * Misc/WebCache.mm:
1629         (+[WebCache empty]):
1630         * WebCoreSupport/WebApplicationCache.mm:
1631         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
1632         (-[WebApplicationCacheQuotaManager usage]):
1633         (-[WebApplicationCacheQuotaManager quota]):
1634         (-[WebApplicationCacheQuotaManager setQuota:]):
1635         * WebCoreSupport/WebChromeClient.h:
1636         * WebCoreSupport/WebChromeClient.mm:
1637         * WebView/WebDataSource.mm:
1638         (-[WebDataSource _transferApplicationCache:]):
1639         * WebView/WebFrame.mm:
1640         (-[WebFrame _cacheabilityDictionary]):
1641         * WebView/WebView.mm:
1642         (WebKitInitializeApplicationCachePathIfNecessary):
1643
1644 2011-09-23  Adam Klein  <adamk@chromium.org>
1645
1646         Add ENABLE_MUTATION_OBSERVERS feature flag
1647         https://bugs.webkit.org/show_bug.cgi?id=68732
1648
1649         Reviewed by Ojan Vafai.
1650
1651         This flag will guard an implementation of the "Mutation Observers" proposed in
1652         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
1653
1654         * Configurations/FeatureDefines.xcconfig:
1655
1656 2011-09-23  Anders Carlsson  <andersca@apple.com>
1657
1658         Axe WebImageRendererFactory
1659         https://bugs.webkit.org/show_bug.cgi?id=68715
1660
1661         Reviewed by Darin Adler.
1662
1663         Remove WebImageRendererFactory, it was used by Safari 3, many a moon ago.
1664
1665         * WebCoreSupport/WebImageRendererFactory.m: Removed.
1666
1667 2011-09-23  Anders Carlsson  <andersca@apple.com>
1668
1669         Add OVERRIDE to a bunch of virtual member functions on clients
1670         https://bugs.webkit.org/show_bug.cgi?id=68712
1671
1672         Reviewed by Sam Weinig.
1673
1674         * Configurations/Base.xcconfig:
1675         * WebCoreSupport/WebChromeClient.h:
1676         * WebCoreSupport/WebContextMenuClient.h:
1677         * WebCoreSupport/WebDeviceOrientationClient.h:
1678         * WebCoreSupport/WebDragClient.h:
1679         * WebCoreSupport/WebEditorClient.h:
1680         * WebCoreSupport/WebFrameLoaderClient.h:
1681         * WebCoreSupport/WebFrameNetworkingContext.h:
1682         * WebCoreSupport/WebGeolocationClient.h:
1683         * WebCoreSupport/WebIconDatabaseClient.h:
1684         * WebCoreSupport/WebInspectorClient.h:
1685         * WebCoreSupport/WebPlatformStrategies.h:
1686
1687 2011-09-22  Dean Jackson  <dino@apple.com>
1688
1689         Add ENABLE_CSS_FILTERS
1690         https://bugs.webkit.org/show_bug.cgi?id=68652
1691
1692         Reviewed by Simon Fraser.
1693
1694         * Configurations/FeatureDefines.xcconfig:
1695
1696 2011-09-22  Anders Carlsson  <andersca@apple.com>
1697
1698         Get rid of Widget::setBoundsSize
1699         https://bugs.webkit.org/show_bug.cgi?id=68491
1700
1701         Reviewed by Sam Weinig.
1702
1703         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
1704         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
1705         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
1706         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
1707
1708         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1709         (-[WebHostedNetscapePluginView updateAndSetWindow]):
1710         * WebView/WebFrameView.mm:
1711
1712 2011-09-19  Jer Noble  <jer.noble@apple.com>
1713
1714         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
1715         https://bugs.webkit.org/show_bug.cgi?id=68382
1716
1717         Reviewed by Darin Adler.
1718
1719         Initialize the webAudioEnabled preference to NO by default.
1720
1721         * WebView/WebPreferences.mm:
1722         (+[WebPreferences initialize]):
1723
1724 2011-09-21  Anders Carlsson  <andersca@apple.com>
1725
1726         Remove checks for Leopard-only Objective-C APIs
1727         https://bugs.webkit.org/show_bug.cgi?id=68579
1728
1729         Reviewed by Sam Weinig.
1730
1731         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
1732
1733         * Misc/WebNSObjectExtras.h:
1734
1735 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1736
1737         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1738         https://bugs.webkit.org/show_bug.cgi?id=67702
1739
1740         Reviewed by Csaba Osztrogonác.
1741
1742         * WebCoreSupport/WebPlatformStrategies.h:
1743         * WebCoreSupport/WebPlatformStrategies.mm:
1744         (WebPlatformStrategies::isLinkVisited):
1745
1746 2011-09-20  Anders Carlsson  <andersca@apple.com>
1747
1748         Remove ScrollView::platformContentsSize
1749         https://bugs.webkit.org/show_bug.cgi?id=68188
1750
1751         Reviewed by Darin Adler.
1752
1753         When creating the document view, make sure it's zero sized which matches the initial size
1754         of the ScrollView. This is fine to do early since DocumentWriter::begin sets the contents
1755         size to a zero size anyway.
1756
1757         * WebView/WebFrameView.mm:
1758         (-[WebFrameView _makeDocumentViewForDataSource:]):
1759
1760 2011-09-19  Pavel Feldman  <pfeldman@google.com>
1761
1762         Web Inspector: streamline Console's MessageType and MessageSource semantics.
1763         https://bugs.webkit.org/show_bug.cgi?id=68342
1764
1765         This change fixes semantics of the MessageSource and MessageType:
1766         MessageSource is now the source of the message (be it Network, HTML
1767         parser or Console API). MessageType is only defined for the Console API
1768         messages and contains the name of the API call (log, dir, dirxml, etc.). 
1769         Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
1770         private to the inspector.
1771
1772         Reviewed by Tony Gentilcore.
1773
1774         * WebCoreSupport/WebChromeClient.mm:
1775         (stringForMessageSource):
1776         (stringForMessageType):
1777         * WebView/WebUIDelegatePrivate.h:
1778
1779 2011-09-19  Timothy Hatcher  <timothy@apple.com>
1780
1781         Make WebViews in NSPopovers render as they would in active windows.
1782
1783         The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers
1784         are shown or hidden since they share key with the parent window. So WebView
1785         and WebHTMLView need to also observe the will order on/off screen notifications.
1786
1787         https://webkit.org/b/68402
1788         rdar://problem/9754099
1789
1790         Reviewed by John Sullivan.
1791
1792         * WebView/WebHTMLView.mm:
1793         (-[WebHTMLView _removeWindowObservers]): Remove order on/off screen notification obversers.
1794         (-[WebHTMLView addWindowObservers]): Add order on/off screen notification obversers.
1795         (-[WebHTMLView windowWillOrderOnScreen:]): Check if the window is already a key window,
1796         which can be the case for NSPopovers.
1797         (-[WebHTMLView windowWillOrderOffScreen:]): Remove the mouse moved observer.
1798         * WebView/WebView.mm:
1799         (-[WebView addWindowObserversForWindow:]): Add order off screen notification obverser.
1800         (-[WebView removeWindowObservers]): Remove order off screen notification obverser.
1801         (-[WebView _windowWillOrderOnScreen:]): Call _updateActiveState.
1802         (-[WebView _windowWillOrderOffScreen:]): Ditto.
1803
1804 2011-09-19  Mark Rowe  <mrowe@apple.com>
1805
1806         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
1807
1808         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
1809         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
1810         a NoIdleSleep assertion as the latter is implied by the former.
1811
1812         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WebFullScreenController.
1813
1814         Reviewed by Dan Bernstein.
1815
1816         * WebView/WebFullScreenController.h:
1817         * WebView/WebFullScreenController.mm:
1818         (-[WebFullScreenController dealloc]):
1819         (-[WebFullScreenController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
1820         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
1821         disabler that we own.
1822
1823 2011-09-19  Adam Barth  <abarth@webkit.org>
1824
1825         Always enable ENABLE(EVENTSOURCE)
1826         https://bugs.webkit.org/show_bug.cgi?id=68414
1827
1828         Reviewed by Eric Seidel.
1829
1830         * Configurations/FeatureDefines.xcconfig:
1831
1832 2011-09-19  Anders Carlsson  <andersca@apple.com>
1833
1834         Fix crashes when running WebKit1 tests.
1835
1836         -[WebView _mustDrawUnionedRect:singleRects:count:] was removed, so just put back the
1837         equivalent code directly into -[WebHTMLView drawRect:].
1838
1839         * WebView/WebHTMLView.mm:
1840         (-[WebHTMLView drawRect:]):
1841         * WebView/WebViewInternal.h:
1842
1843 2011-09-19  Anders Carlsson  <andersca@apple.com>
1844
1845         Remove the last remains of viewless WebKit1
1846         https://bugs.webkit.org/show_bug.cgi?id=68388
1847
1848         Reviewed by Darin Adler.
1849
1850         * WebCoreSupport/WebFrameLoaderClient.mm:
1851         (WebFrameLoaderClient::forceLayoutForNonHTML):
1852         Remove null check.
1853
1854         * WebView/WebView.mm:
1855         (-[WebView _commonInitializationWithFrameName:groupName:]):
1856         Remove usesDocumentViews parameter and checks.
1857
1858         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]):
1859         Add an assertion that usesDocumentViews is always true.
1860
1861         (-[WebView _isUsingAcceleratedCompositing]):
1862         Remove usesDocumentViews check.
1863
1864         (-[WebView _isSoftwareRenderable]):
1865         Remove usesDocumentViews check.
1866
1867         (-[WebView initWithFrame:frameName:groupName:]):
1868         Remove usesDocumentViews parameter and always pass YES to the _initWithFrame method.
1869         
1870         (-[WebView initWithCoder:]):
1871         Remove usesDocumentViews parameter.
1872
1873         (-[WebView _frameViewAtWindowPoint:]):
1874         Remove usesDocumentViews check.
1875
1876         * WebView/WebViewData.h:
1877         Remove usesDocumentViews ivar.
1878
1879         * WebView/WebViewPrivate.h:
1880         Remove usesDocumentViews parameters.
1881
1882 2011-09-19  Anders Carlsson  <andersca@apple.com>
1883
1884         Remove WebViewEventHandling.mm
1885         https://bugs.webkit.org/show_bug.cgi?id=68387
1886
1887         Reviewed by Adam Roben.
1888
1889         WebViewEventHandling.mm was all about event handling in viewless WebKit, so rip it out since
1890         we're getting rid of viewless WebKit1.
1891
1892         * WebView/WebView.mm:
1893         (-[WebView _close]):
1894         * WebView/WebViewData.h:
1895         * WebView/WebViewEventHandling.mm: Removed.
1896         * WebView/WebViewInternal.h:
1897
1898 2011-09-19  Anders Carlsson  <andersca@apple.com>
1899
1900         Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
1901         https://bugs.webkit.org/show_bug.cgi?id=68385
1902
1903         Reviewed by Adam Roben.
1904
1905         Move these functions back into the respective clients and remove usesDocumentViews checks.
1906
1907         * WebCoreSupport/WebChromeClient.mm:
1908         (WebChromeClient::setToolTip):
1909         * WebCoreSupport/WebEditorClient.mm:
1910         (WebEditorClient::respondToChangedSelection):
1911         * WebView/WebView.mm:
1912         * WebView/WebViewEventHandling.mm:
1913         * WebView/WebViewInternal.h:
1914
1915 2011-09-19  Anders Carlsson  <andersca@apple.com>
1916
1917         Begin removing -[WebView _usesDocumentCalls] from WebView.mm
1918         https://bugs.webkit.org/show_bug.cgi?id=68383
1919
1920         Reviewed by Adam Roben.
1921
1922         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
1923         returns true, since viewless WebKit1 has been abandoned.
1924
1925         * WebView/WebView.mm:
1926         (-[WebView selectedFrame]):
1927         (-[WebView setHostWindow:]):
1928         (-[WebView acceptsFirstResponder]):
1929         (-[WebView becomeFirstResponder]):
1930         (-[WebView _webcore_effectiveFirstResponder]):
1931         (-[WebView setNextKeyView:]):
1932         (-[WebView setHoverFeedbackSuspended:]):
1933
1934 2011-09-19  Anders Carlsson  <andersca@apple.com>
1935
1936         Remove calls to -[WebView _usesDocumentViews] from WebFrameLoaderClient.mm
1937         https://bugs.webkit.org/show_bug.cgi?id=68379
1938
1939         Reviewed by Adam Roben.
1940
1941         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
1942         returns true, since viewless WebKit1 has been abandoned.
1943
1944         * WebCoreSupport/WebFrameLoaderClient.mm:
1945         (WebFrameLoaderClient::hasHTMLView):
1946         (WebFrameLoaderClient::dispatchDidCommitLoad):
1947         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1948         (WebFrameLoaderClient::createFrame):
1949         * WebView/WebFrame.mm:
1950         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
1951         (-[WebFrame _hasSelection]):
1952         (-[WebFrame _clearSelection]):
1953         (-[WebFrame _shouldFlattenCompositingLayers:]):
1954         (-[WebFrame _dragSourceEndedAt:operation:]):
1955         (-[WebFrame frameView]):
1956
1957 2011-09-19  Anders Carlsson  <andersca@apple.com>
1958
1959         Remove calls to -[WebView _usesDocumentViews]
1960         https://bugs.webkit.org/show_bug.cgi?id=68377
1961
1962         Reviewed by Adam Roben.
1963
1964         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
1965         returns true, since viewless WebKit1 has been abandoned.
1966
1967         * WebCoreSupport/WebChromeClient.mm:
1968         (WebChromeClient::windowResizerRect):
1969         (WebChromeClient::invalidateContentsAndWindow):
1970         (WebChromeClient::screenToWindow):
1971         (WebChromeClient::windowToScreen):
1972         (WebChromeClient::platformPageClient):
1973         (WebChromeClient::scrollRectIntoView):
1974         (WebChromeClient::print):
1975         * WebView/WebDataSource.mm:
1976         (-[WebDataSource _receivedData:]):
1977
1978 2011-09-19  Dan Bernstein  <mitz@apple.com>
1979
1980         WebKit part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
1981         https://bugs.webkit.org/show_bug.cgi?id=68323
1982
1983         Reviewed by Sam Weinig.
1984
1985         Renamed NonBlockingPanel to WebNonBlockingPanel.
1986         Renamed ThreadEnabler to WebCocoaThreadingEnabler.
1987         Renamed PDFPrefUpdatingProxy to WebPDFPrefUpdatingProxy.
1988
1989         * Misc/WebIconDatabase.mm:
1990         (+[WebCocoaThreadingEnabler enableThreading]):
1991         (importToWebCoreFormat):
1992         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
1993         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
1994         * Panels/WebAuthenticationPanel.h:
1995         * Panels/WebAuthenticationPanel.m: Renamed NonBlockingPanel to
1996         WebNonBlockingPanel. Because Safari 5.1 uses NonBlockingPanel, this will
1997         cause nightly builds to log an error message when showing the Safari
1998         HTTP authentication sheet and disable the Quit command while the sheet
1999         is disaplyed.
2000         * WebView/WebPDFView.mm:
2001         (-[WebPDFView initWithFrame:]):
2002         (-[WebPDFView _updatePreferencesSoon]):
2003
2004 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
2005
2006         FrameLoaderClient BackForwardList-related methods are unsued
2007         https://bugs.webkit.org/show_bug.cgi?id=68293
2008
2009         Reviewed by Darin Adler.
2010
2011         Remove FrameLoaderClient methods that were added by r51629, since only        
2012         the old (since-deleted) Android port needed them.
2013
2014         * WebCoreSupport/WebFrameLoaderClient.h:
2015         * WebCoreSupport/WebFrameLoaderClient.mm:
2016         * WebKit.order:
2017
2018 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
2019
2020         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
2021         https://bugs.webkit.org/show_bug.cgi?id=68134
2022
2023         Reviewed by Sam Weinig.
2024         
2025         Hook up a private preference that enables the mock scrollbar theme.
2026
2027         * WebView/WebPreferenceKeysPrivate.h:
2028         * WebView/WebPreferences.mm:
2029         (-[WebPreferences mockScrollbarsEnabled]):
2030         (-[WebPreferences setMockScrollbarsEnabled:]):
2031         * WebView/WebPreferencesPrivate.h:
2032
2033 2011-09-15  Adam Barth  <abarth@webkit.org>
2034
2035         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
2036         https://bugs.webkit.org/show_bug.cgi?id=68205
2037
2038         Reviewed by Eric Seidel.
2039
2040         * Storage/WebDatabaseManager.mm:
2041         * Storage/WebDatabaseManagerInternal.h:
2042         * Storage/WebDatabaseManagerPrivate.h:
2043         * Storage/WebDatabaseQuotaManager.mm:
2044         (-[WebDatabaseQuotaManager usage]):
2045         (-[WebDatabaseQuotaManager quota]):
2046         (-[WebDatabaseQuotaManager setQuota:]):
2047         * Storage/WebDatabaseTrackerClient.h:
2048         * Storage/WebDatabaseTrackerClient.mm:
2049         * WebCoreSupport/WebChromeClient.h:
2050         * WebCoreSupport/WebChromeClient.mm:
2051         * WebCoreSupport/WebSecurityOrigin.mm:
2052         (-[WebSecurityOrigin usage]):
2053         (-[WebSecurityOrigin quota]):
2054         (-[WebSecurityOrigin setQuota:]):
2055         * WebView/WebFrame.mm:
2056         (-[WebFrame _cacheabilityDictionary]):
2057         * WebView/WebView.mm:
2058         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2059         (-[WebView _preferencesChanged:]):
2060
2061 2011-09-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2062
2063         Unzip initialization lists and constructors in JSCell hierarchy (7/7)
2064         https://bugs.webkit.org/show_bug.cgi?id=68122
2065
2066         Reviewed by Geoffrey Garen.
2067
2068         Completed the seventh and final level of the refactoring to add finishCreation() 
2069         methods to all classes within the JSCell hierarchy with non-trivial 
2070         constructor bodies.
2071
2072         * Plugins/Hosted/ProxyInstance.mm:
2073         (WebKit::ProxyRuntimeMethod::create):
2074         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2075         * Plugins/Hosted/ProxyRuntimeObject.h:
2076         (WebKit::ProxyRuntimeObject::create):
2077         * Plugins/Hosted/ProxyRuntimeObject.mm:
2078         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2079
2080 2011-09-15  Kentaro Hara  <haraken@google.com>
2081
2082         A single line must not be split into two pages.
2083         https://bugs.webkit.org/show_bug.cgi?id=65005
2084
2085         Reviewed by David Hyatt.
2086
2087         When the document width of a page is overflowed, the last line of the page can be
2088         split into the next page. This is the regression caused by r88737. r88737 tried to
2089         fix rounding errors in rendering calculations by expanding and shrinking a page
2090         using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
2091         a document width gets overflowed.
2092
2093         Test: printing/single-line-must-not-be-split-into-two-pages.html
2094
2095         * WebView/WebHTMLView.mm:
2096         (-[WebHTMLView _web_setPrintingModeRecursive]): Passes an original page size to setPrinting().
2097         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
2098         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
2099         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Ditto.
2100         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Ditto.
2101         (-[WebHTMLView _endPrintMode]): Ditto.
2102         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]): Ditto.
2103         (-[WebHTMLView _endScreenPaginationMode]): Ditto.
2104         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]): Ditto.
2105         (-[WebHTMLView layout]): Ditto.
2106         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]): Ditto.
2107         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2108         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
2109
2110 2011-09-15  Eric Seidel  <eric@webkit.org>
2111
2112         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
2113         https://bugs.webkit.org/show_bug.cgi?id=68182
2114
2115         Reviewed by Adam Barth.
2116
2117         * Configurations/FeatureDefines.xcconfig:
2118
2119 2011-09-15  Eric Seidel  <eric@webkit.org>
2120
2121         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
2122         https://bugs.webkit.org/show_bug.cgi?id=68022
2123
2124         Reviewed by Ryosuke Niwa.
2125
2126         * Configurations/FeatureDefines.xcconfig:
2127
2128 2011-09-14  Anders Carlsson  <andersca@apple.com>
2129
2130         Get rid of WebCoreViewFactory and its WebViewFactory subclass
2131         https://bugs.webkit.org/show_bug.cgi?id=68124
2132
2133         Reviewed by Sam Weinig.
2134
2135         * WebCoreSupport/WebContextMenuClient.mm:
2136         * WebCoreSupport/WebViewFactory.h: Removed.
2137         * WebCoreSupport/WebViewFactory.mm: Removed.
2138         * WebView/WebFrameView.mm:
2139         (-[WebFrameView initWithFrame:]):
2140
2141 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
2142
2143         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
2144         https://bugs.webkit.org/show_bug.cgi?id=67692
2145
2146         Reviewed by Geoffrey Garen.
2147
2148         Completed the sixth level of the refactoring to add finishCreation() 
2149         methods to all classes within the JSCell hierarchy with non-trivial 
2150         constructor bodies.
2151
2152         This primarily consists of pushing the calls to finishCreation() down 
2153         into the constructors of the subclasses of the fifth level of the hierarchy 
2154         as well as pulling the finishCreation() calls out into the class's corresponding
2155         create() method if it has one.  Doing both simultaneously allows us to 
2156         maintain the invariant that the finishCreation() method chain is called exactly 
2157         once during the creation of an object, since calling it any other number of 
2158         times (0, 2, or more) will cause an assertion failure.
2159
2160         * Plugins/Hosted/ProxyInstance.mm:
2161         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2162         (WebKit::ProxyRuntimeMethod::finishCreation):
2163
2164 2011-09-13  Eric Seidel  <eric@webkit.org>
2165
2166         Remove ENABLE_SVG_USE as <use> is required by HTML5
2167         https://bugs.webkit.org/show_bug.cgi?id=68019
2168
2169         Reviewed by Ryosuke Niwa.
2170
2171         * Configurations/FeatureDefines.xcconfig:
2172
2173 2011-09-13  Anders Carlsson  <andersca@apple.com>
2174
2175         Disable C++ exceptions when building with clang
2176         https://bugs.webkit.org/show_bug.cgi?id=68031
2177         <rdar://problem/9556880>
2178
2179         Reviewed by Mark Rowe.
2180
2181         * Configurations/Base.xcconfig:
2182
2183 2011-09-13  Eric Seidel  <eric@webkit.org>
2184
2185         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
2186         https://bugs.webkit.org/show_bug.cgi?id=68018
2187
2188         Reviewed by Ryosuke Niwa.
2189
2190         * Configurations/FeatureDefines.xcconfig:
2191
2192 2011-09-09  Oliver Hunt  <oliver@apple.com>
2193
2194         Remove support for anonymous storage from jsobjects
2195         https://bugs.webkit.org/show_bug.cgi?id=67881
2196
2197         Reviewed by Sam Weinig.
2198
2199         Remove the use of AnonymousSlotCount
2200
2201         * Plugins/Hosted/ProxyInstance.mm:
2202         (WebKit::ProxyRuntimeMethod::createStructure):
2203         * Plugins/Hosted/ProxyRuntimeObject.h:
2204         (WebKit::ProxyRuntimeObject::createStructure):
2205
2206 2011-09-09  Chris Marrin  <cmarrin@apple.com>
2207
2208         requestAnimationFrame doesn't throttle on Mac
2209         https://bugs.webkit.org/show_bug.cgi?id=67171
2210
2211         Reviewed by Simon Fraser.
2212
2213         Removed runLoopObserver for requestAnimationFrame. It's now
2214         done by a Timer in ScriptedAnimationController in WebCore.
2215
2216         * WebCoreSupport/WebChromeClient.h:
2217         * WebCoreSupport/WebChromeClient.mm:
2218         * WebView/WebView.mm:
2219         (-[WebView _close]):
2220         * WebView/WebViewData.h:
2221         * WebView/WebViewInternal.h:
2222
2223 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
2224
2225         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
2226         https://bugs.webkit.org/show_bug.cgi?id=67250
2227
2228         Reviewed by Simon Fraser.
2229
2230         * WebView/WebView.mm:
2231         (-[WebView _scaleWebView:atOrigin:]):
2232         (-[WebView _viewScaleFactor]):
2233
2234 2011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
2235
2236         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2237         https://bugs.webkit.org/show_bug.cgi?id=67420
2238
2239         Reviewed by Geoffrey Garen.
2240
2241         Completed the fifth level of the refactoring to add finishCreation() 
2242         methods to all classes within the JSCell hierarchy with non-trivial 
2243         constructor bodies.
2244
2245         This primarily consists of pushing the calls to finishCreation() down 
2246         into the constructors of the subclasses of the second level of the hierarchy 
2247         as well as pulling the finishCreation() calls out into the class's corresponding
2248         create() method if it has one.  Doing both simultaneously allows us to 
2249         maintain the invariant that the finishCreation() method chain is called exactly 
2250         once during the creation of an object, since calling it any other number of 
2251         times (0, 2, or more) will cause an assertion failure.
2252
2253         * Plugins/Hosted/ProxyRuntimeObject.h:
2254         * Plugins/Hosted/ProxyRuntimeObject.mm:
2255         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2256         (WebKit::ProxyRuntimeObject::finishCreation):
2257
2258 2011-09-08  Sam Weinig  <sam@webkit.org>
2259
2260         Remove the Completion object from JSC, I have never liked it
2261         https://bugs.webkit.org/show_bug.cgi?id=67755
2262
2263         Reviewed by Gavin Barraclough.
2264
2265         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2266         (WebKit::NetscapePluginInstanceProxy::evaluate):
2267
2268 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2269
2270         Unreviewed, rolling out r94627 and r94632.
2271         http://trac.webkit.org/changeset/94627
2272         http://trac.webkit.org/changeset/94632
2273         https://bugs.webkit.org/show_bug.cgi?id=67698
2274
2275         It broke tests on GTK and Qt (Requested by Ossy on #webkit).
2276
2277         * Plugins/Hosted/ProxyRuntimeObject.h:
2278         * Plugins/Hosted/ProxyRuntimeObject.mm:
2279         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2280
2281 2011-09-06  Mark Hahnenberg  <mhahnenberg@apple.com>
2282
2283         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2284         https://bugs.webkit.org/show_bug.cgi?id=67420
2285
2286         Reviewed by Geoffrey Garen.
2287
2288         Completed the fifth level of the refactoring to add finishCreation() 
2289         methods to all classes within the JSCell hierarchy with non-trivial 
2290         constructor bodies.
2291
2292         This primarily consists of pushing the calls to finishCreation() down 
2293         into the constructors of the subclasses of the second level of the hierarchy 
2294         as well as pulling the finishCreation() calls out into the class's corresponding
2295         create() method if it has one.  Doing both simultaneously allows us to 
2296         maintain the invariant that the finishCreation() method chain is called exactly 
2297         once during the creation of an object, since calling it any other number of 
2298         times (0, 2, or more) will cause an assertion failure.
2299
2300         * Plugins/Hosted/ProxyRuntimeObject.h:
2301         * Plugins/Hosted/ProxyRuntimeObject.mm:
2302         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2303         (WebKit::ProxyRuntimeObject::finishCreation):
2304
2305 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2306
2307         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
2308         https://bugs.webkit.org/show_bug.cgi?id=67569
2309
2310         Reviewed by Antonio Gomes.
2311
2312         * WebView/WebHTMLView.mm:
2313         (-[WebHTMLView _updateSelectionForInputManager]):
2314
2315 2011-09-05  Oliver Hunt  <oliver@apple.com>
2316
2317         An object's structure should reference the global object responsible for its creation
2318         https://bugs.webkit.org/show_bug.cgi?id=67624
2319
2320         Reviewed by Gavin Barraclough.
2321
2322         Update for new Structure::create() globalObject parameter.
2323
2324         * Plugins/Hosted/ProxyInstance.mm:
2325         (WebKit::ProxyRuntimeMethod::createStructure):
2326         * Plugins/Hosted/ProxyRuntimeObject.h:
2327         (WebKit::ProxyRuntimeObject::createStructure):
2328
2329 2011-09-01  Mark Rowe  <mrowe@apple.com>
2330
2331         Fix the build by adding some more missing return types.
2332
2333         * WebView/WebDashboardRegion.h:
2334         * WebView/WebDashboardRegion.mm:
2335         (-[WebDashboardRegion initWithRect:clip:type:]):
2336
2337 2011-09-01  Tim Horton  <timothy_horton@apple.com>
2338
2339         REGRESSION: Rendering artifacts on a rotated, pattern filled shape
2340         https://bugs.webkit.org/show_bug.cgi?id=53055
2341         <rdar://problem/8910917>
2342
2343         Reviewed by Simon Fraser.
2344
2345         Introduce wkCGPatternCreateWithImageAndTransform.
2346
2347         * WebCoreSupport/WebSystemInterface.mm:
2348         (InitWebCoreSystemInterface):
2349
2350 2011-08-31  Beth Dakin  <bdakin@apple.com>
2351
2352         https://bugs.webkit.org/show_bug.cgi?id=67322
2353         Re-name overrideBackingScaleFactor
2354
2355         Reviewed by John Sullivan.
2356
2357         _setOverrideBackingScaleFactor is now _setCustomBackingScaleFactor
2358         * WebView/WebView.mm:
2359         (-[WebView _setCustomBackingScaleFactor:]):
2360         (-[WebView _deviceScaleFactor]):
2361         * WebView/WebViewData.h:
2362         * WebView/WebViewPrivate.h:
2363
2364 2011-08-30  Dan Bernstein  <mitz@apple.com>
2365
2366         <rdar://problem/9281695> Add text search API for getting the DOM range of a text match
2367         https://bugs.webkit.org/show_bug.cgi?id=67230
2368
2369         Reviewed by Darin Adler.
2370
2371         * WebView/WebHTMLView.mm:
2372         * WebView/WebView.mm:
2373         (coreOptions): Moved this function from WebHTMLView.mm to here and made
2374         it accessible from both this file and WebHTMLView.mm.
2375         (-[WebView DOMRangeOfString:relativeTo:options:]): Added this new API.
2376         * WebView/WebViewInternal.h:
2377         * WebView/WebViewPrivate.h:
2378
2379 2011-08-30  Beth Dakin  <bdakin@apple.com>
2380
2381         https://bugs.webkit.org/show_bug.cgi?id=67150
2382         Would like API to use a custom device scale factor for a particular WebView/WKView
2383         -and corresponding-
2384         <rdar://problem/10041016>
2385
2386         Reviewed by Darin Adler.
2387
2388         New API is _setOverrideBackingScaleFactor:(CGFloat)
2389         * WebView/WebView.mm:
2390         (-[WebView _setOverrideBackingScaleFactor:]):
2391         (-[WebView _deviceScaleFactor]):
2392         * WebView/WebViewData.h:
2393         * WebView/WebViewPrivate.h:
2394
2395 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
2396
2397         Add MediaSource API to HTMLMediaElement
2398         https://bugs.webkit.org/show_bug.cgi?id=64731
2399
2400         Reviewed by Eric Carlson.
2401
2402         * Configurations/FeatureDefines.xcconfig:
2403
2404 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
2405
2406         DumpRenderTree should begin each test with an empty cookie store
2407         https://bugs.webkit.org/show_bug.cgi?id=63545
2408         <rdar://problem/5666907>
2409
2410         Reviewed by Darin Adler.
2411
2412         * WebView/WebPreferences.mm:
2413         (+[WebPreferences initialize]):
2414         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
2415         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
2416         * WebView/WebPreferencesPrivate.h:
2417         Exposed an SPI to use a private default session. It's separate from private browsing,
2418         because some tests enable the latter, and we don't want to mix them up.
2419         Also exposed an SPI to set cookie accept policy regardless of what session we are currently
2420         using.
2421
2422         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated to use currentStorageSession()
2423         instead of privateBrowsingStorageSession().
2424
2425 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2426
2427         The unused ScrollView* argument can and should be removed from
2428         scrollRectIntoView.
2429         https://bugs.webkit.org/show_bug.cgi?id=67117
2430
2431         Reviewed by Darin Adler.
2432
2433         * WebCoreSupport/WebChromeClient.h:
2434         * WebCoreSupport/WebChromeClient.mm:
2435         (WebChromeClient::scrollRectIntoView):
2436
2437 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2438
2439         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
2440         r93999.
2441         http://trac.webkit.org/changeset/93987
2442         http://trac.webkit.org/changeset/93992
2443         http://trac.webkit.org/changeset/93995
2444         http://trac.webkit.org/changeset/93998
2445         http://trac.webkit.org/changeset/93999
2446         https://bugs.webkit.org/show_bug.cgi?id=67147
2447
2448         Many failing tests (Requested by ap on #webkit).
2449
2450         * WebView/WebPreferences.mm:
2451         (+[WebPreferences initialize]):
2452         * WebView/WebPreferencesPrivate.h:
2453
2454 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
2455
2456         DumpRenderTree should begin each test with an empty cookie store
2457         https://bugs.webkit.org/show_bug.cgi?id=63545
2458         <rdar://problem/5666907>
2459
2460         Reviewed by Darin Adler.
2461
2462         * WebView/WebPreferences.mm:
2463         (+[WebPreferences initialize]):
2464         (+[WebPreferences _usePrivateSessionForNetworkLoading]):
2465         * WebView/WebPreferencesPrivate.h:
2466         Exposed an SPI to use a private default session. It's separate from private browsing,
2467         because some tests enable the latter, and we don't want to mix them up.
2468
2469 2011-08-23  Chris Marrin  <cmarrin@apple.com>
2470
2471         [mac] requestAnimationFrame support for mac port
2472         https://bugs.webkit.org/show_bug.cgi?id=59146
2473
2474         Reviewed by Simon Fraser.
2475
2476         Implement requestAnimationFrame for WebKit. Add a
2477         CFRunLoopObserver to WebView, which runs just before
2478         the syncCompositingState RLO and calls into the 
2479         ScriptedAnimationController if scheduleAnimation() has
2480         been called.
2481
2482         * Configurations/FeatureDefines.xcconfig:
2483         * WebCoreSupport/WebChromeClient.h:
2484         * WebCoreSupport/WebChromeClient.mm:
2485         (WebChromeClient::scheduleAnimation):
2486         * WebView/WebView.mm:
2487         (-[WebView _close]):
2488         (-[WebView _unscheduleAnimation]):
2489         (-[WebView _scheduleCompositingLayerSync]):
2490         (requestAnimationFrameRunLoopObserverCallback):
2491         (-[WebView _scheduleAnimation]):
2492         * WebView/WebViewData.h:
2493         * WebView/WebViewInternal.h:
2494
2495 2011-08-24  Alexey Proskuryakov  <ap@apple.com>
2496
2497         Plug-in tests are flaky on Mac
2498         https://bugs.webkit.org/show_bug.cgi?id=66822
2499
2500         Reviewed by Anders Carlsson.
2501
2502         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2503         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
2504         Protect objects that can be removed by a script.
2505
2506         * WebView/WebFrame.mm:
2507         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
2508         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Ditto.
2509         Also fixed some nonsense code.
2510
2511 2011-08-23  Mark Hahnenberg  <mhahnenberg@apple.com>
2512
2513         Add checks to ensure allocation does not take place during initialization of GC-managed objects
2514         https://bugs.webkit.org/show_bug.cgi?id=65288
2515
2516         Reviewed by Darin Adler.
2517
2518         Adding the new validation functionality.  In its current state, it will performs checks, 
2519         but they don't fail unless you do allocation in the arguments to the parent constructor in the 
2520         initialization list of a class.  The allocateCell() method turns on the global flag disallowing any new 
2521         allocations, and the constructorBody() method in JSCell turns it off.  This way, allocation is still 
2522         allowed in constructor bodies while other refactoring efforts continue.
2523
2524         * Plugins/Hosted/ProxyRuntimeObject.h:
2525         (WebKit::ProxyRuntimeObject::create):
2526         * Plugins/Hosted/ProxyRuntimeObject.mm:
2527         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2528
2529 2011-08-18  Beth Dakin  <bdakin@apple.com>
2530
2531         Reviewed by Sam Weinig.
2532
2533         https://bugs.webkit.org/show_bug.cgi?id=66495
2534         Lion-specific scroller SPIs can use forward declaration instead of 
2535         WebKitSystemInterface
2536
2537         * WebCoreSupport/WebSystemInterface.mm:
2538         (InitWebCoreSystemInterface):
2539
2540 2011-08-18  Anders Carlsson  <andersca@apple.com>
2541
2542         More C++0x libc++ build fixes
2543         https://bugs.webkit.org/show_bug.cgi?id=66476
2544
2545         Reviewed by Adam Roben.
2546
2547         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2548         (WKPCSetException):
2549         Use a WTF String here instead of an STL string.
2550
2551         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2552         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2553         std::make_pair now takes rvalue references, so get rid of the template arguments and let
2554         the compiler deduce them instead.
2555
2556 2011-08-18  Adam Roben  <aroben@apple.com>
2557
2558         Update the device scale factor when the WebView's window changes
2559
2560         Fixes <http://webkit.org/b/66412> <rdar://problem/9971958> WebKit doesn't react when a
2561         WebView is moved between windows with different backing scale factors
2562
2563         Reviewed by Anders Carlsson.
2564
2565         * WebView/WebView.mm:
2566         (-[WebView viewDidMoveToWindow]): Call setDeviceScaleFactor because our new window (or no
2567         window at all) might have a different backing scale factor than the previous one.
2568         (-[WebView _deviceScaleFactor]): Moved to the WebFileInternal category.
2569
2570 2011-08-17  Adam Roben  <aroben@apple.com>
2571
2572         Make WebCore keep track of the current device scale factor
2573
2574         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
2575         device scale factor
2576
2577         Reviewed by Darin Adler.
2578
2579         * WebCoreSupport/WebChromeClient.h:
2580         * WebCoreSupport/WebChromeClient.mm:
2581         Moved code to calculate the device scale factor from here...
2582
2583         * WebView/WebView.mm:
2584         (-[WebView _deviceScaleFactor]):
2585         ...to here.
2586
2587         (-[WebView _windowDidChangeResolution:]): Now calls Page::setDeviceScaleFactor.
2588
2589 2011-08-17  Dan Bernstein  <mitz@apple.com>
2590
2591         Removed some code that is not needed when building for Leopard or later.
2592
2593         Reviewed by Anders Carlsson.
2594
2595         * WebCoreSupport/WebContextMenuClient.mm:
2596         (fixMenusToSendToOldClients): Removed check for Tiger Mail.
2597         * WebCoreSupport/WebFrameLoaderClient.mm:
2598         (WebFrameLoaderClient::objectContentType):
2599         * WebView/WebView.mm:
2600         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2601         (-[WebView _preferencesChanged:]):
2602
2603 2011-08-17  Dan Bernstein  <mitz@apple.com>
2604
2605         Eliminate the WebCGFloat compatibility definition that was needed for Tiger.
2606
2607         Rubber-stamped by Anders Carlsson.
2608
2609         * WebView/WebHTMLViewPrivate.h:
2610
2611 2011-08-17  Dan Bernstein  <mitz@apple.com>
2612
2613         Eliminate the WebNSInteger and WebNSUInteger compatibility definitions that were
2614         needed for Tiger.
2615
2616         Reviewed by Darin Adler.
2617
2618         * History/WebBackForwardList.h:
2619         * WebView/WebDocumentInternal.h:
2620         * WebView/WebHTMLRepresentation.h:
2621         * WebView/WebPreferences.h:
2622         * WebView/WebResourceLoadDelegate.h:
2623         * WebView/WebResourceLoadDelegatePrivate.h:
2624         * WebView/WebScriptDebugDelegate.h:
2625         * WebView/WebTextIterator.h:
2626         * WebView/WebUIDelegate.h:
2627         * WebView/WebView.h:
2628         * WebView/WebViewPrivate.h:
2629
2630 2011-08-15  Dmitry Titov  <dimich@chromium.org>
2631
2632         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
2633         https://bugs.webkit.org/show_bug.cgi?id=66165
2634
2635         Reviewed by Darin Fisher.
2636
2637         * WebCoreSupport/WebFrameLoaderClient.h:
2638         * WebCoreSupport/WebFrameLoaderClient.mm:
2639         (WebFrameLoaderClient::transferLoadingResourceFromPage):
2640
2641 2011-08-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2642
2643         Refactor JS objects to allocate in static create methods rather than constructors
2644         https://bugs.webkit.org/show_bug.cgi?id=65347
2645
2646         Reviewed by Geoffrey Garen.
2647
2648         Removed all calls to deprecatedGetDOMObject from initialization lists as part of a 
2649         larger refactoring to get rid of all allocation during initialization.
2650
2651         * Plugins/Hosted/ProxyInstance.mm:
2652         (WebKit::ProxyRuntimeMethod::create):
2653         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2654
2655 2011-08-15  Adam Roben  <aroben@apple.com>
2656
2657         Update pages' style and content scale when the window's backing scale factor changes
2658
2659         Unfortunately, I couldn't think of a way to test this in an automated fashion.
2660
2661         Fixes <http://webkit.org/b/66229> <rdar://problem/9906269> WebKit doesn't react to device
2662         scale factor changes
2663
2664         Reviewed by Simon Fraser.
2665
2666         * WebView/WebView.mm:
2667         (-[WebView addWindowObserversForWindow:]):
2668         (-[WebView removeWindowObservers]):
2669         Listen for the notification that tells us the window's backing scale has changed.
2670
2671         (-[WebView _windowDidChangeResolution:]): Tell the page about the change to the device scale
2672         factor so that, e.g., scale-factor-dependent media queries will be reevaluated.
2673
2674 2011-08-10  Adam Roben  <aroben@apple.com>
2675
2676         Clear up scale factor terminology
2677
2678         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
2679         software is running, and one that is per-Page and can be controlled via API calls. This
2680         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
2681         code use those names. It should introduce no behavior changes.
2682
2683         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
2684         device scale factor
2685
2686         Reviewed by Simon Fraser.
2687
2688         * Misc/WebNSControlExtras.m:
2689         (-[NSControl sizeToFitAndAdjustWindowHeight]): Updated this function to use more modern
2690         AppKit scale factor terminology. (This is unrelated to the rest of the patch.)
2691
2692         * WebCoreSupport/WebChromeClient.h:
2693         * WebCoreSupport/WebChromeClient.mm:
2694
2695 2011-08-13  Dan Bernstein  <mitz@apple.com>
2696
2697         Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else.
2698
2699         Reviewed by Joseph Pecoraro.
2700
2701         * WebView/WebPreferenceKeysPrivate.h:
2702
2703 2011-08-13  Sam Weinig  <sam@webkit.org>
2704
2705         Remove unused variables from WebView/WebFullScreenController.h
2706         https://bugs.webkit.org/show_bug.cgi?id=66194
2707
2708         Reviewed by Dan Bernstein.
2709
2710         * WebView/WebFullScreenController.h:
2711         Remove a few variables which were not used.
2712
2713 2011-08-12  Dan Bernstein  <mitz@apple.com>
2714
2715         Add an option to automatically show tooltips (with the full text) over truncated text
2716         https://bugs.webkit.org/show_bug.cgi?id=66178
2717
2718         Reviewed by Simon Fraser.
2719
2720         * WebView/WebPreferenceKeysPrivate.h: Defined a preference key.
2721         * WebView/WebPreferences.mm:
2722         (+[WebPreferences initialize]): Added a default value of NO for the
2723         ShowsToolTipOverTruncatedText preference.
2724         (-[WebPreferences showsToolTipOverTruncatedText]): Added this getter.
2725         (-[WebPreferences setShowsToolTipOverTruncatedText:]): Added this setter.
2726         * WebView/WebPreferencesPrivate.h:
2727         * WebView/WebView.mm:
2728         (-[WebView _preferencesChanged:]): Added call to Settings::setShowsToolTipOverTruncatedText().
2729
2730 2011-08-12  Sam Weinig  <sam@webkit.org>
2731
2732         Use __builtin_trap() for CRASH when building with clang
2733         https://bugs.webkit.org/show_bug.cgi?id=66152
2734
2735         Reviewed by Anders Carlsson.
2736
2737         * Plugins/WebBaseNetscapePluginView.mm:
2738         (-[WebBaseNetscapePluginView setAttributeKeys:andValues:]):
2739         (-[WebBaseNetscapePluginView handleMouseMoved:]):
2740         (-[WebBaseNetscapePluginView handleMouseEntered:]):
2741         (-[WebBaseNetscapePluginView handleMouseExited:]):
2742         (-[WebBaseNetscapePluginView focusChanged]):
2743         (-[WebBaseNetscapePluginView windowFocusChanged:]):
2744         (-[WebBaseNetscapePluginView createPlugin]):
2745         (-[WebBaseNetscapePluginView loadStream]):
2746         (-[WebBaseNetscapePluginView shouldStop]):
2747         (-[WebBaseNetscapePluginView destroyPlugin]):
2748         (-[WebBaseNetscapePluginView updateAndSetWindow]):
2749         (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
2750         (-[WebBaseNetscapePluginView pluginLayer]):
2751         (-[WebBaseNetscapePluginView getFormValue:]):
2752         Remove the ASSERT_NOT_REACHED from the base class methods. They were not
2753         adding much value and were getting in the way of making the static analyzer
2754         work. A better way to do this would be to use a formal protocol.
2755
2756 2011-08-12  Mark Rowe  <mrowe@apple.com>
2757
2758         Be more forward-looking in the choice of compiler.
2759
2760         Rubber-stamped by Jon Honeycutt.
2761
2762         * Configurations/CompilerVersion.xcconfig:
2763
2764 2011-08-10  David Hyatt  <hyatt@apple.com>
2765
2766         https://bugs.webkit.org/show_bug.cgi?id=66004
2767
2768         Removing the CSS Regions and Exclusions ifdefs.
2769
2770         Reviewed by Adam Roben.
2771
2772         * Configurations/FeatureDefines.xcconfig:
2773
2774 2011-08-09  Mark Hahnenberg  <mhahnenberg@apple.com>
2775
2776         Add ParentClass typedef in all JSC classes
2777         https://bugs.webkit.org/show_bug.cgi?id=65731
2778
2779         Reviewed by Oliver Hunt.
2780
2781         Just added the Base typedefs in all the classes that are a subclass of JSCell 
2782         to point at their parent classes.  This is a change to support future changes to the way
2783         constructors and destructors are implemented in JS objects, among other things.
2784
2785         * Plugins/Hosted/ProxyInstance.mm:
2786         * Plugins/Hosted/ProxyRuntimeObject.h:
2787
2788 2011-08-08  Chris Marrin  <cmarrin@apple.com>
2789
2790         Logic to compute visible display rect in GraphicsLayerCA::syncCompositingState
2791         https://bugs.webkit.org/show_bug.cgi?id=65708
2792
2793         Supply initial display rects for the full-screen case
2794
2795         Reviewed by Simon Fraser.
2796
2797         * WebView/WebFullScreenController.mm:
2798         (-[WebFullScreenController enterFullscreen:]):
2799         (-[WebFullScreenController exitFullscreen]):
2800
2801 2011-08-06  Joseph Pecoraro  <joepeck@webkit.org>
2802
2803         Potential Leaks - RetainPtr<> over retaining Create'd objects
2804         https://bugs.webkit.org/show_bug.cgi?id=65806
2805
2806         Reviewed by Darin Adler.
2807
2808         Fix a possible leak by adopting an allocation instead of retaining it.
2809
2810         * WebView/WebView.mm:
2811         (-[WebView previousValidKeyView]):
2812
2813 2011-08-05  Anders Carlsson  <andersca@apple.com>
2814
2815         Remove PluginHalter
2816         https://bugs.webkit.org/show_bug.cgi?id=65729
2817
2818         Reviewed by Darin Adler.
2819
2820         Remove plug-in halter and associated classes.
2821
2822         * Plugins/WebBaseNetscapePluginView.h:
2823         * Plugins/WebBaseNetscapePluginView.mm:
2824         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
2825         (-[WebBaseNetscapePluginView start]):
2826         (-[WebBaseNetscapePluginView stop]):
2827         * WebCoreSupport/WebPluginHalterClient.h: Removed.
2828         * WebCoreSupport/WebPluginHalterClient.mm: Removed.
2829         * WebView/WebPreferenceKeysPrivate.h:
2830         * WebView/WebPreferences.mm:
2831         (+[WebPreferences initialize]):
2832         * WebView/WebPreferencesPrivate.h:
2833         * WebView/WebView.mm:
2834         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2835         (-[WebView _preferencesChanged:]):
2836         * WebView/WebViewPrivate.h:
2837
2838 2011-08-04  Mark Rowe  <mrowe@apple.com>
2839
2840         Future-proof Xcode configuration settings.
2841
2842         * Configurations/Base.xcconfig:
2843         * Configurations/DebugRelease.xcconfig:
2844         * Configurations/Version.xcconfig:
2845         * Configurations/WebKit.xcconfig:
2846
2847 2011-08-03  Kent Tamura  <tkent@chromium.org>
2848
2849         Fix incorrect checks for HTMLMediaElement
2850         https://bugs.webkit.org/show_bug.cgi?id=65590
2851
2852         Reviewed by Dimitri Glazkov.
2853
2854         <video> and <audio> can be an HTMLElement instance instead of
2855         HTMLMediaElement if MediaPlayer::isAvailable() returns false or
2856         the media feature is disabled at runtime.
2857
2858         * WebView/WebFullScreenController.mm:
2859         (-[WebFullScreenController _isAnyMoviePlaying]):
2860
2861 2011-08-03  Mark Rowe  <mrowe@apple.com>
2862
2863         Bring some order to FeatureDefines.xcconfig to make it easier to follow.
2864
2865         Reviewed by Sam Weinig.
2866
2867         * Configurations/FeatureDefines.xcconfig:
2868
2869 2011-08-03  Mark Rowe  <mrowe@apple.com>
2870
2871         Clean up FeatureDefines.xcconfig to remove some unnecessary conditional settings
2872
2873         Reviewed by Dave Kilzer.
2874
2875         * Configurations/FeatureDefines.xcconfig:
2876
2877 2011-08-03  Joseph Pecoraro  <joepeck@webkit.org>
2878
2879         Web Inspector: Remove InspectorFrontendHost load/saveSessionSetting
2880         https://bugs.webkit.org/show_bug.cgi?id=65582
2881
2882         Reviewed by Pavel Feldman.
2883
2884         * WebCoreSupport/WebInspectorClient.h:
2885         * WebCoreSupport/WebInspectorClient.mm:
2886
2887 2011-08-03  Pavel Feldman  <pfeldman@google.com>
2888
2889         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
2890         https://bugs.webkit.org/show_bug.cgi?id=65510
2891
2892         Reviewed by Yury Semikhatsky.
2893
2894         * WebInspector/WebNodeHighlightView.mm:
2895         (-[WebNodeHighlightView drawRect:]):
2896
2897 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
2898
2899         Web Inspector: remove Node parameter from the InspectorClient::highlight
2900         https://bugs.webkit.org/show_bug.cgi?id=65549
2901
2902         Reviewed by Yury Semikhatsky.
2903
2904         * WebCoreSupport/WebInspectorClient.h:
2905         * WebCoreSupport/WebInspectorClient.mm:
2906         (WebInspectorClient::highlight):
2907         * WebInspector/WebNodeHighlighter.h:
2908         * WebInspector/WebNodeHighlighter.mm:
2909         (-[WebNodeHighlighter highlight]):
2910
2911 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
2912
2913         Remove inclusion of MainThread.h from Threading.h
2914         https://bugs.webkit.org/show_bug.cgi?id=65081
2915
2916         Reviewed by Darin Adler.
2917
2918         Add missing include statements for MainThread.
2919
2920         * Carbon/CarbonWindowAdapter.mm:
2921         * History/WebBackForwardList.mm:
2922         * History/WebHistoryItem.mm:
2923         * Misc/WebElementDictionary.mm:
2924         * Misc/WebIconDatabase.mm:
2925         * Misc/WebLocalizableStrings.mm:
2926         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2927         * Plugins/WebBaseNetscapePluginView.mm:
2928         * Plugins/WebBasePluginPackage.mm:
2929         * Plugins/WebNetscapePluginView.mm:
2930         * WebCoreSupport/WebEditorClient.mm:
2931         * WebCoreSupport/WebFrameLoaderClient.mm:
2932         * WebView/WebArchive.mm:
2933         * WebView/WebDataSource.mm:
2934         * WebView/WebHTMLView.mm:
2935         * WebView/WebResource.mm:
2936         * WebView/WebTextIterator.mm:
2937         * WebView/WebView.mm:
2938         * WebView/WebViewData.mm:
2939
2940 2011-07-28  Dan Bernstein  <mitz@apple.com>
2941
2942         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
2943
2944         Reviewed by Darin Adler.
2945
2946         * WebCoreSupport/WebSystemInterface.mm:
2947         (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters.
2948
2949 2011-07-28  Brady Eidson  <beidson@apple.com>
2950
2951         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
2952         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
2953
2954         Reviewed by Maciej Stachowiak.
2955
2956         * Storage/WebStorageManager.mm:
2957         (WebKitInitializeStorageIfNecessary): Pass the client along in initializeTracker().
2958
2959 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
2960
2961         Remove operator new from JSCell
2962         https://bugs.webkit.org/show_bug.cgi?id=64999
2963
2964         Reviewed by Oliver Hunt.
2965
2966         Removed the implementation of operator new in JSCell, so any further uses
2967         will not successfully link.  Also removed any remaining uses of operator new.
2968
2969         * Plugins/Hosted/ProxyInstance.mm:
2970         (WebKit::ProxyInstance::newRuntimeObject):
2971         (WebKit::ProxyRuntimeMethod::create):
2972         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2973         (WebKit::ProxyInstance::getMethod):
2974         * Plugins/Hosted/ProxyRuntimeObject.h:
2975         (WebKit::ProxyRuntimeObject::create):
2976         * WebView/WebScriptDebugDelegate.mm:
2977         (-[WebScriptCallFrame scopeChain]):
2978
2979 2011-07-26  Dan Bernstein  <mitz@apple.com>
2980
2981         <rdar://problem/9842889> Add a generic pictograph font family
2982         https://bugs.webkit.org/show_bug.cgi?id=65197
2983
2984         Reviewed by Anders Carlsson.
2985
2986         * WebView/WebPreferenceKeysPrivate.h: Added WebKitPictographFontPreferenceKey.
2987         * WebView/WebPreferences.mm:
2988         (+[WebPreferences initialize]): Set the default pictograph font family to
2989         "Apple Color Emoji".
2990         (-[WebPreferences pictographFontFamily]): Added this getter.
2991         (-[WebPreferences setPictographFontFamily:]): Added this setter.
2992         * WebView/WebPreferencesPrivate.h:
2993         * WebView/WebView.mm:
2994         (-[WebView _preferencesChanged:]): Pass the preference through to WebCore.
2995
2996 2011-07-25  Ian Henderson  <ianh@apple.com>
2997
2998         WebFrame should have a method to determine its visual emptiness
2999         https://bugs.webkit.org/show_bug.cgi?id=64223
3000
3001         Reviewed by Dan Bernstein.
3002
3003         * WebView/WebFrame.mm:
3004         (-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
3005         through WebKit.
3006         * WebView/WebFramePrivate.h:
3007
3008 2011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
3009
3010         SVG: Missing implementation of <altGlyphDef>, <altGlyphItem> and <glyphRef>
3011         https://bugs.webkit.org/show_bug.cgi?id=60850
3012
3013         Reviewed by Nikolas Zimmermann.
3014
3015         SVG spec: http://www.w3.org/TR/SVG/text.html#AlternateGlyphDefinitions.
3016         This patch is to implement SVG <altGlyphDef>, <altGlyphItem> and <glyphRef>
3017         elements for alternative glyph features.
3018
3019         * MigrateHeaders.make:
3020
3021 2011-07-18  Andy Estes  <aestes@apple.com>
3022
3023         Solar Walk app-specific hack accidentally strips stylesheets from the document.
3024         https://bugs.webkit.org/show_bug.cgi?id=64777
3025
3026         Reviewed by Adam Barth.
3027         
3028         Solar Walk uses a self-closed title tag in its documents ("<title />").
3029         The HTML5 parser does not recognize this as a valid self-closing tag,
3030         so it treats the remainder of the document as title text.
3031         
3032         We work around this in WebKit by injecting a script that calls
3033         document.write() on the contents of document.title, thereby restoring
3034         the contents of the document. Unfortunately this overwrote several
3035         <style> tags that existed before the <title>, thereby causing the
3036         document to not have the intended styling.
3037         
3038         Fix this by having the injected script concatenate document.title to
3039         the document instead of overwriting it during document.write(). We can
3040         also take the opportunity to remove document.title since it does not
3041         contain useful information.
3042
3043         * Misc/SolarWalkQuirksUserScript.js:
3044
3045 2011-07-18  Dean Jackson  <dino@apple.com>
3046
3047         https://bugs.webkit.org/show_bug.cgi?id=64742
3048         Expose WebPreferences for media playback requiring user gestures and inline playback
3049
3050         Reviewed by Simon Fraser.
3051
3052         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
3053         MediaPlaybackAllowsInline.
3054
3055         * WebView/WebPreferenceKeysPrivate.h:
3056         * WebView/WebPreferences.mm:
3057         (+[WebPreferences initialize]):
3058         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
3059         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
3060         (-[WebPreferences mediaPlaybackAllowsInline]):
3061         (-[WebPreferences setMediaPlaybackAllowsInline:]):
3062         * WebView/WebPreferencesPrivate.h:
3063         * WebView/WebView.mm:
3064         (-[WebView _preferencesChanged:]):
3065
3066 2011-07-18  Pratik Solanki  <psolanki@apple.com>
3067
3068         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3069         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3070
3071         Reviewed by David Kilzer.
3072
3073         Create an NSURLDownload from the CF objects that we have.
3074
3075         * Misc/WebDownload.mm:
3076         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
3077         * Misc/WebDownloadInternal.h:
3078         * WebCoreSupport/WebFrameLoaderClient.mm:
3079         (WebFrameLoaderClient::download):
3080
3081 2011-07-15  Pratik Solanki  <psolanki@apple.com>
3082
3083         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3084         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3085
3086         Reviewed by David Kilzer.
3087
3088         New WebKitSystemInterface functions for CFNetwork-based loader.
3089
3090         * WebCoreSupport/WebSystemInterface.mm:
3091         (InitWebCoreSystemInterface):
3092
3093 2011-07-15  Tim Horton  <timothy_horton@apple.com>
3094
3095         Overlay scrollbars in overflow areas no longer pulse when revealed
3096         https://bugs.webkit.org/show_bug.cgi?id=64606
3097         <rdar://problem/9390674>
3098
3099         Reviewed by Simon Fraser.
3100
3101         Ensure that the state of the scrollbar implementation is kept in sync
3102         with WebCore's internal representation. Previously, we synchronized them
3103         at paint time, causing pulsing to be skipped due to the scrollbars being
3104         disabled.
3105
3106         * WebCoreSupport/WebSystemInterface.mm:
3107         (InitWebCoreSystemInterface):
3108
3109 2011-07-15  Andy Estes  <aestes@apple.com>
3110
3111         Rename applicationIsSolarWalk() to applicationIsSolarWalkMac().
3112         https://bugs.webkit.org/show_bug.cgi?id=64641
3113
3114         Reviewed by Brian Weinstein.
3115
3116         * WebView/WebView.mm:
3117         (needsSolarWalkQuirksScript): Call applicationIsSolarWalkMac().
3118
3119 2011-07-15  Dan Bernstein  <mitz@apple.com>
3120
3121         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
3122         https://bugs.webkit.org/show_bug.cgi?id=64615
3123
3124         Reviewed by Anders Carlsson.
3125
3126         * WebCoreSupport/WebChromeClient.h:
3127         * WebCoreSupport/WebChromeClient.mm:
3128         (WebChromeClient::setCursorHiddenUntilMouseMoves): Added. Calls
3129         +[NSCursor setHiddenUntilMouseMoves:].
3130
3131 2011-07-14  Gavin Barraclough  <barraclough@apple.com>
3132
3133         https://bugs.webkit.org/show_bug.cgi?id=64250
3134         Global strict mode function leaking global object as "this".
3135
3136         Reviewed by Oliver Hunt.
3137
3138         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3139         (WebKit::NetscapePluginInstanceProxy::invoke):
3140         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3141             - Change call to pass DOM Window shell, instead of the global varaible object.
3142
3143 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
3144
3145         Improve names of some ApplicationCacheStorage accessor methods
3146         https://bugs.webkit.org/show_bug.cgi?id=64433
3147
3148         Reviewed by Alexey Proskuryakov.
3149
3150         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
3151         (-[WebApplicationCacheQuotaManager usage]):
3152         (-[WebApplicationCacheQuotaManager quota]):
3153         Renamed methods.
3154
3155 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
3156
3157         ApplicationCache update should not immediately fail when reaching per-origin quota
3158         https://bugs.webkit.org/show_bug.cgi?id=64177
3159
3160         Reviewed by Alexey Proskuryakov.
3161
3162         * WebView/WebUIDelegatePrivate.h:
3163         * DefaultDelegates/WebDefaultUIDelegate.m:
3164         (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:spaceNeeded:]):
3165         Update the delegate to include a space needed parameter.
3166
3167         * WebCoreSupport/WebChromeClient.h:
3168         * WebCoreSupport/WebChromeClient.mm:
3169         (WebChromeClient::reachedApplicationCacheOriginQuota):
3170         Call the delegate with the new space needed information.
3171
3172 2011-07-12  Adam Roben  <aroben@apple.com>
3173
3174         Delete some redundant code in WebHTMLView
3175
3176         This code had no user-visible effect, as we were just duplicating work that AppKit would do
3177         for us at a slightly different time.
3178
3179         Fixes <http://webkit.org/b/64390> WebHTMLView sets its root layer's transform unnecessarily
3180
3181         Reviewed by Simon Fraser.
3182
3183         * WebView/WebHTMLView.mm:
3184         (-[WebHTMLView viewDidMoveToWindow]):
3185         (-[WebHTMLView attachRootLayer:]):
3186         Don't bother setting the root layer's transform to account for the scale factor. AppKit
3187         takes care of this for us nowadays.
3188
3189 2011-07-10  Kenichi Ishibashi  <bashi@chromium.org>
3190
3191         Let plugins participate in form submission
3192         https://bugs.webkit.org/show_bug.cgi?id=13061
3193
3194         Adds methods to get form value from NPAPI plugins.
3195
3196         Reviewed by Anders Carlsson.
3197
3198         * Plugins/Hosted/WebHostedNetscapePluginView.h:
3199         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3200         (-[WebHostedNetscapePluginView getFormValue:]): Added.
3201         * Plugins/WebBaseNetscapePluginView.h:
3202         * Plugins/WebBaseNetscapePluginView.mm:
3203         (-[WebBaseNetscapePluginView getFormValue:]): Added.
3204         * Plugins/WebNetscapePluginPackage.h:
3205         * Plugins/WebNetscapePluginPackage.mm:
3206         (-[WebNetscapePluginPackage browserFuncs]): Added.
3207         * Plugins/WebNetscapePluginView.h:
3208         * Plugins/WebNetscapePluginView.mm:
3209         (-[WebNetscapePluginView getFormValue:]): Added.
3210         * WebCoreSupport/WebFrameLoaderClient.mm:
3211         (NetscapePluginWidget::getFormValue): Added.
3212
3213 2011-07-04  Dan Bernstein  <mitz@apple.com>
3214
3215         Moved handling of frame size changes into its own method.
3216
3217         Reviewed by Oliver Hunt.
3218
3219         * WebView/WebFrameView.mm:
3220         (-[WebFrameView _frameSizeChanged]): Added. Moved code here...
3221         (-[WebFrameView setFrameSize:]): ...from here.
3222         * WebView/WebFrameViewInternal.h:
3223
3224 2011-07-01  Adele Peterson  <adele@apple.com>
3225
3226         Reviewed by Darin Adler.
3227
3228         WebKit part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
3229         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
3230
3231         * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
3232         Only call applyEditingStyleToBodyElement for the main frame.  There's no need to apply break-word, 
3233         space, and after-white-space properties to subframes in the editable document.
3234
3235 2011-07-01  Andy Estes  <aestes@apple.com>
3236
3237         Reviewed by Mark Rowe.
3238
3239         Simplify MailQuirksUserScript.js
3240         https://bugs.webkit.org/show_bug.cgi?id=63800
3241         
3242         MailQuirksUserScript.js is injected into WebViews in Mail.app on
3243         Leopard to resolve an incompatibility between it and the HTML5 parser.
3244         It did so by taking all nodes in the document between <html> and <body>
3245         and moving them to be children of <body>. This maintains Mail.app's
3246         assumption that document.firstChild.firstChild == document.body.
3247         
3248         While this script fixed a specific issue with the Signature panel in
3249         Mail.app, it caused regressions in other WebViews. Since the issue with
3250         the Signature panel is with the empty <head> node implicitly created by
3251         the parser, we can simplify this script by removing this implicit
3252         <head> in the case it has no attributes and no children. This fixes the
3253         Signature panel without affecting other WebViews that have non-trivial
3254         <head> nodes.
3255
3256         * Misc/MailQuirksUserScript.js: If <head> exists but has no attributes
3257         and no children, remove it.
3258
3259 2011-06-30  Dan Bernstein  <mitz@apple.com>
3260
3261         Reviewed by Adele Peterson.
3262
3263         Add +[WebView _allowsRoundingHacks]
3264         https://bugs.webkit.org/show_bug.cgi?id=63734
3265
3266         * WebView/WebView.mm:
3267         (+[WebView _allowsRoundingHacks]): Added this accessor.
3268         * WebView/WebViewPrivate.h:
3269
3270 2011-06-29  Darin Adler  <darin@apple.com>
3271
3272         Reviewed by Dan Bernstein.
3273
3274         [Mac] Use system cursors instead of custom bitmaps where possible
3275         https://bugs.webkit.org/show_bug.cgi?id=63679
3276
3277         * WebCoreSupport/WebSystemInterface.mm:
3278         (InitWebCoreSystemInterface): Added WKCursor.
3279
3280 2011-06-28  Ilya Sherman  <isherman@chromium.org>
3281
3282         Reviewed by Adam Barth.
3283
3284         form.autocomplete="off" does not work
3285         https://bugs.webkit.org/show_bug.cgi?id=35823
3286
3287         * WebView/WebHTMLRepresentation.mm:
3288         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Update callsite.
3289
3290 2011-06-26  Mark Rowe  <mrowe@apple.com>
3291
3292         Reviewed by Dan Bernstein.
3293
3294         Use a separate file name for Lion's WebKitSystemInterface.
3295
3296         * Configurations/DebugRelease.xcconfig:
3297
3298 2011-06-24  Dan Bernstein  <mitz@apple.com>
3299
3300         Reviewed by Anders Carlsson.
3301
3302         Add an option to enable legacy rounding hacks
3303         https://bugs.webkit.org/show_bug.cgi?id=63363
3304
3305         * Misc/WebKitNSStringExtras.mm:
3306         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3307         Disabled rounding hacks.
3308         (-[NSString _web_widthWithFont:]): Ditto.
3309         * WebView/WebView.mm:
3310         (+[WebView _setAllowsRoundingHacks:]): Added this setter.
3311         * WebView/WebViewPrivate.h:
3312
3313 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
3314
3315         Reviewed by Dimitri Glazkov.
3316
3317         Convert shadow DOM-related tests to use window.internals
3318         https://bugs.webkit.org/show_bug.cgi?id=61671
3319
3320         Remove shadow DOM-related methods from Mac API. These are not
3321         required any more.
3322
3323         * DOM/WebDOMOperations.mm:
3324         * DOM/WebDOMOperationsPrivate.h:
3325
3326 2011-06-24  Yuta Kitamura  <yutak@chromium.org>
3327
3328         Reviewed by Adam Barth.
3329
3330         WebSocket: Add run-time flag for new HyBi protocol
3331         https://bugs.webkit.org/show_bug.cgi?id=60348
3332
3333         Make a new flag (Setting::m_useHixie76WebSocketProtocol)
3334         switchable from WebView and WebPreferences.
3335
3336         * WebView/WebPreferenceKeysPrivate.h:
3337         * WebView/WebPreferences.mm:
3338         (+[WebPreferences initialize]):
3339         (-[WebPreferences setHixie76WebSocketProtocolEnabled:]):
3340         (-[WebPreferences isHixie76WebSocketProtocolEnabled]):
3341         * WebView/WebPreferencesPrivate.h:
3342         * WebView/WebView.mm:
3343         (-[WebView _preferencesChanged:]):
3344
3345 2011-06-22  Sam Weinig  <sam@webkit.org>
3346
3347         Roll out r89469 (Add preference for setting the html parser depth limit)
3348
3349         The preference is not needed at this time, so there is no reason to expose it.
3350
3351         * WebView/WebPreferenceKeysPrivate.h:
3352         * WebView/WebPreferences.mm:
3353         (+[WebPreferences initialize]):
3354         * WebView/WebPreferencesPrivate.h:
3355         * WebView/WebView.mm:
3356         (-[WebView _preferencesChanged:]):
3357
3358 2011-06-22  Sam Weinig  <sam@webkit.org>
3359
3360         Reviewed by Adam Barth.
3361
3362         Add preference for setting the html parser depth limit
3363         https://bugs.webkit.org/show_bug.cgi?id=63163
3364
3365         * WebView/WebPreferenceKeysPrivate.h:
3366         * WebView/WebPreferences.mm:
3367         (+[WebPreferences initialize]):
3368         (-[WebPreferences setMaximumHTMLParserDOMTreeDepth:]):
3369         (-[WebPreferences maximumHTMLParserDOMTreeDepth]):
3370         * WebView/WebPreferencesPrivate.h:
3371         * WebView/WebView.mm:
3372         (-[WebView _preferencesChanged:]):
3373         Add private preference for setting the parser depth limit.
3374
3375 2011-06-22  Ryosuke Niwa  <rniwa@webkit.org>
3376
3377         Reviewed by Darin Adler.
3378
3379         Make instantiation of legacy editing position more explicit
3380         https://bugs.webkit.org/show_bug.cgi?id=63037
3381
3382         Create new positions since we can't create a legacy editing position outside of WebCore anymore.
3383
3384         * WebView/WebFrame.mm:
3385         (-[WebFrame _smartDeleteRangeForProposedRange:]): Calls createLegacyEditingPosition.
3386         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
3387
3388 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
3389
3390         Reviewed by Kent Tamura.
3391
3392         FileChooser should be only created when we need to choose files.
3393         https://bugs.webkit.org/show_bug.cgi?id=63039
3394
3395         * WebCoreSupport/WebChromeClient.mm:
3396         (WebChromeClient::runOpenPanel): Changed to use settings.
3397
3398 2011-06-21  MORITA Hajime  <morrita@google.com>
3399
3400         Unreviewed, rolling out r89401 and r89403.
3401         http://trac.webkit.org/changeset/89401
3402         http://trac.webkit.org/changeset/89403
3403         https://bugs.webkit.org/show_bug.cgi?id=62970
3404
3405         Breaks mac build and mistakenly enables the spellcheck API
3406
3407         * Configurations/FeatureDefines.xcconfig:
3408
3409 2011-06-20  MORITA Hajime  <morrita@google.com>
3410
3411         Reviewed by Kent Tamura.
3412
3413         Spellcheck API should be build-able.
3414         https://bugs.webkit.org/show_bug.cgi?id=62970
3415
3416         No new tests, changing only build related files
3417
3418         * Configurations/FeatureDefines.xcconfig:
3419
3420 2011-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3421
3422         Unreviewed, rolling out r89354.
3423         http://trac.webkit.org/changeset/89354
3424         https://bugs.webkit.org/show_bug.cgi?id=63099
3425
3426         Broke tests on Mac (Requested by rniwa on #webkit).
3427
3428         * WebCoreSupport/WebInspectorClient.mm:
3429         (-[WebInspectorWindowController destroyInspectorView:]):
3430         * WebInspector/WebInspector.mm:
3431         (-[WebInspector show:]):
3432         (-[WebInspector showConsole:]):
3433         (-[WebInspector isDebuggingJavaScript]):
3434         (-[WebInspector toggleDebuggingJavaScript:]):
3435         (-[WebInspector startDebuggingJavaScript:]):
3436         (-[WebInspector stopDebuggingJavaScript:]):
3437         (-[WebInspector isProfilingJavaScript]):
3438         (-[WebInspector toggleProfilingJavaScript:]):
3439         (-[WebInspector startProfilingJavaScript:]):
3440         (-[WebInspector stopProfilingJavaScript:]):
3441         (-[WebInspector isJavaScriptProfilingEnabled]):
3442         (-[WebInspector setJavaScriptProfilingEnabled:]):
3443         (-[WebInspector isTimelineProfilingEnabled]):
3444         (-[WebInspector setTimelineProfilingEnabled:]):
3445         (-[WebInspector setFrontend:]):
3446         (-[WebInspector showWindow:]):
3447         * WebInspector/WebInspectorFrontend.h:
3448         * WebInspector/WebInspectorFrontend.mm:
3449         * WebInspector/WebInspectorPrivate.h:
3450
3451 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
3452
3453         Reviewed by Yury Semikhatsky.
3454
3455         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
3456         https://bugs.webkit.org/show_bug.cgi?id=62985
3457
3458         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
3459         methods for plumbing the menu action handlers through the WebKit and WebCore.
3460         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
3461         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
3462         WebKit/win and WebKit2 to follow.
3463
3464         * WebCoreSupport/WebInspectorClient.mm:
3465         (-[WebInspectorWindowController destroyInspectorView:]):
3466         * WebInspector/WebInspector.mm:
3467         (-[WebInspector showWindow]):
3468         (-[WebInspector show:]):
3469         (-[WebInspector showConsole:]):
3470         (-[WebInspector isDebuggingJavaScript]):
3471         (-[WebInspector toggleDebuggingJavaScript:]):
3472         (-[WebInspector startDebuggingJavaScript:]):
3473         (-[WebInspector stopDebuggingJavaScript:]):
3474         (-[WebInspector isProfilingJavaScript]):
3475         (-[WebInspector toggleProfilingJavaScript:]):
3476         (-[WebInspector startProfilingJavaScript:]):
3477         (-[WebInspector stopProfilingJavaScript:]):
3478         (-[WebInspector isJavaScriptProfilingEnabled]):
3479         (-[WebInspector setJavaScriptProfilingEnabled:]):
3480         (-[WebInspector isTimelineProfilingEnabled]):
3481         (-[WebInspector setTimelineProfilingEnabled:]):
3482         (-[WebInspector setFrontend:]):
3483         (-[WebInspector releaseFrontend]):
3484         (-[WebInspector showWindow:]):
3485         * WebInspector/WebInspectorFrontend.h:
3486         * WebInspector/WebInspectorFrontend.mm:
3487         (-[WebInspectorFrontend isDebuggingEnabled]):
3488         (-[WebInspectorFrontend setDebuggingEnabled:]):
3489         (-[WebInspectorFrontend isProfilingJavaScript]):
3490         (-[WebInspectorFrontend startProfilingJavaScript]):
3491         (-[WebInspectorFrontend stopProfilingJavaScript]):
3492         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
3493         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
3494         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
3495         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
3496         * WebInspector/WebInspectorPrivate.h:
3497
3498 2011-06-01  Jer Noble  <jer.noble@apple.com>
3499
3500         Reviewed by Eric Carlson.
3501
3502         Move Full Screen Controllers into WebCore.
3503
3504         Remove dependency on QTKit from wekitExitFullscreen()
3505         https://bugs.webkit.org/show_bug.cgi?id=61843
3506
3507         WebVideoFullscreenController, WebVideoFullscreenHUDController, and WebWindowAnimation
3508         have been moved into WebCore.
3509
3510         * WebCoreSupport/WebSystemInterface.mm:
3511         (InitWebCoreSystemInterface): Add support for four WKSI functions in WCSI.
3512         * WebView/WebFullScreenController.mm: Remove unused #include.
3513         * WebView/WebView.mm: Change the include location of 
3514             WebVideoFullscreenController.h
3515
3516 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
3517
3518         Reviewed by Darin Adler.
3519
3520         Separate concerns of loading file icons and choosing files.
3521         https://bugs.webkit.org/show_bug.cgi?id=62931
3522
3523         * WebCoreSupport/WebChromeClient.h:
3524         * WebCoreSupport/WebChromeClient.mm:
3525         (WebChromeClient::loadIconForFiles): Renamed.
3526
3527 2011-06-18  Andrew Wellington  <andrew@webkit.org>
3528
3529         Reviewed by Alexey Proskuryakov.
3530
3531         https://bugs.webkit.org/show_bug.cgi?id=62843
3532         WebKit Mac API calls didReceiveAuthenticationChallenge instead of
3533         didCancelAuthenticationChallenge
3534
3535         * WebView/WebView.mm:
3536         (-[WebView _cacheResourceLoadDelegateImplementations]):
3537
3538 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3539
3540         Unreviewed, rolling out r89026.
3541         http://trac.webkit.org/changeset/89026
3542         https://bugs.webkit.org/show_bug.cgi?id=62804
3543
3544         These patches were likely correct.  I'll investigate the
3545         browser_test failures. (Requested by abarth on #webkit).
3546
3547         * WebView/WebVideoFullscreenHUDWindowController.mm:
3548         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
3549
3550 2011-06-16  Vitaly Repeshko  <vitalyr@chromium.org>
3551
3552         Unreviewed.
3553
3554         Revert Adam's user gesture patch series r89002, r89005, r89007, r89018
3555         https://bugs.webkit.org/show_bug.cgi?id=62796
3556
3557         The patches broke chromium browser tests.
3558
3559         * WebView/WebVideoFullscreenHUDWindowController.mm:
3560         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
3561
3562 2011-06-16  Adam Barth  <abarth@webkit.org>
3563
3564         Reviewed by Eric Seidel.
3565
3566         Remove HTMLVideoElement::processingUserGesture
3567         https://bugs.webkit.org/show_bug.cgi?id=62784
3568
3569         * WebView/WebVideoFullscreenHUDWindowController.mm:
3570         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
3571
3572 2011-06-15  Adam Barth  <abarth@webkit.org>
3573
3574         Reviewed by Eric Seidel.
3575
3576         Remove ScriptController::setAllowPopupsFromPlugin
3577         https://bugs.webkit.org/show_bug.cgi?id=62706
3578
3579         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3580         (WebKit::NetscapePluginInstanceProxy::evaluate):
3581         * Plugins/WebNetscapePluginView.mm:
3582         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3583
3584 2011-06-15  David Kilzer  <ddkilzer@apple.com>
3585
3586         <http://webkit.org/b/62745> Convert WebNSFileManagerExtras.m to Objective-C++
3587
3588         Reviewed by Joseph Pecoraro.
3589
3590         * Misc/WebNSFileManagerExtras.mm: Renamed from Source/WebKit/mac/Misc/WebNSFileManagerExtras.m.
3591         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3592         Added static_cast<MetaDataInfo *>.
3593
3594 2011-06-14  Stephanie Lewis  <slewis@apple.com>
3595
3596         Rubber stamped by Oliver Hunt.
3597
3598         <rdar://problem/9511169>
3599         Update order files.
3600
3601         * WebKit.order:
3602
3603 2011-06-13  Kentaro Hara  <haraken@google.com>
3604
3605         Reviewed by Alexey Proskuryakov.
3606
3607         Add resizePageRectsKeepingRatio(), which expands/shrinks a page, keeping the ratio of the original page
3608         https://bugs.webkit.org/show_bug.cgi?id=61256
3609
3610         In order to prevent rounding error caused by expanding/shrinking a page
3611         using different calculation here and there, I added a common calculation
3612         method, resizePageRectsKeepingRatio(), which expands/shrinks a page,
3613         keeping the ratio of width and height of the original page.
3614         [WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]
3615         and [WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]
3616         use resizePageRectsKeepingRatio() to expand/shrink a page.
3617
3618         Test: printing/page-count-with-one-word.html
3619
3620         * WebView/WebHTMLView.mm:
3621         (-[WebHTMLView _web_setPrintingModeRecursive]):
3622         (-[WebHTMLView _web_clearPrintingModeRecursive]):
3623         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
3624         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumShrinkRatio:]):
3625         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
3626         (-[WebHTMLView _endPrintMode]):
3627         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
3628         (-[WebHTMLView _endScreenPaginationMode]):
3629         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumShrinkRatio:adjustingViewSize:]):
3630         (-[WebHTMLView layout]):
3631         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
3632         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
3633         (-[WebHTMLView setPageWidthForPrinting:]):
3634
3635 2011-06-13  Tony Chang  <tony@chromium.org>
3636
3637         Reviewed by Dimitri Glazkov.
3638
3639         rename ENABLE_NEW_FLEXBOX to ENABLE_CSS3_FLEXBOX
3640         https://bugs.webkit.org/show_bug.cgi?id=62578
3641
3642         * Configurations/FeatureDefines.xcconfig:
3643
3644 2011-06-13  Tony Chang  <tony@chromium.org>
3645
3646         Reviewed by Adam Barth.
3647
3648         rename ENABLE_FLEXBOX to ENABLE_NEW_FLEXBOX
3649         https://bugs.webkit.org/show_bug.cgi?id=62545
3650
3651         * Configurations/FeatureDefines.xcconfig:
3652
3653 2011-06-12  Adam Barth  <abarth@webkit.org>
3654
3655         Reviewed by Alexey Proskuryakov.
3656
3657         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
3658         https://bugs.webkit.org/show_bug.cgi?id=62516
3659
3660         * WebCoreSupport/WebFrameLoaderClient.h:
3661         * WebCoreSupport/WebFrameLoaderClient.mm:
3662         (WebFrameLoaderClient::interruptedForPolicyChangeError):
3663
3664 2011-06-12  Adam Barth  <abarth@webkit.org>
3665
3666         Reviewed by Eric Seidel.
3667
3668         Remove FrameLoader::isProcessingUserGesture
3669         https://bugs.webkit.org/show_bug.cgi?id=62519
3670
3671         * WebView/WebView.mm:
3672         (-[WebView _isProcessingUserGesture]):
3673
3674 2011-06-12  Adam Barth  <abarth@webkit.org>
3675
3676         Reviewed by Alexey Proskuryakov.
3677
3678         Remove trival "forward-to-client" member functions from FrameLoader
3679         https://bugs.webkit.org/show_bug.cgi?id=62510
3680
3681         * WebCoreSupport/WebFrameNetworkingContext.mm:
3682         (WebFrameNetworkingContext::blockedError):
3683
3684 2011-06-10  Tony Chang  <tony@chromium.org>
3685
3686         Reviewed by Ojan Vafai.
3687
3688         add a compile guard ENABLE(FLEXBOX)
3689         https://bugs.webkit.org/show_bug.cgi?id=62049
3690
3691         * Configurations/FeatureDefines.xcconfig:
3692
3693 2011-06-06  Michael Saboff  <msaboff@apple.com>
3694
3695         Reviewed by Geoffrey Garen.
3696
3697         Fonts returned by FontCache::getFontDataForCharacters() are never released
3698         https://bugs.webkit.org/show_bug.cgi?id=61875
3699
3700         This change allows fonts allocated as system fallback fonts to be
3701         released.  Previously, the reference counts for these fonts grew
3702         without bound.  This is implemented as an auto release class that wraps
3703         accesses to the cache for system fallback fonts. All such accesses are
3704         via the method FontCache::getFontDataForCharacters. The new class is
3705         called FontCachePurgePreventer. When such an object exists, it protects
3706         these fonts from deletion.
3707
3708         See more comments for this defect in Source/WebCore/ChangeLog.
3709
3710         * Misc/WebKitNSStringExtras.mm:
3711         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3712         (-[NSString _web_widthWithFont:]):
3713         Wrapped code accessing fallback fonts with local
3714         FontCachePurgePreventer in these methods.
3715
3716         * Misc/WebStringTruncator.mm:
3717         (+[WebStringTruncator centerTruncateString:toWidth:]):
3718         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
3719         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
3720         (+[WebStringTruncator widthOfString:font:]):
3721         Wrapped code accessing fallback fonts with local
3722         FontCachePurgePreventer in these methods.
3723
3724 2011-06-06  Peter Kasting  <pkasting@google.com>
3725
3726         Reviewed by Antonio Gomes.
3727
3728         Remove unnecessary args from scroll functions.
3729         https://bugs.webkit.org/show_bug.cgi?id=61648
3730
3731         * WebView/WebFrame.mm:
3732         (-[WebFrame _scrollDOMRangeToVisible:]):
3733
3734 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
3735
3736         Reviewed by Kent Tamura.
3737
3738         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
3739         https://bugs.webkit.org/show_bug.cgi?id=61628
3740
3741         * Configurations/FeatureDefines.xcconfig:
3742
3743 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
3744
3745         Reviewed by Kent Tamura.
3746
3747         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
3748         https://bugs.webkit.org/show_bug.cgi?id=61631
3749
3750         * Configurations/FeatureDefines.xcconfig:
3751
3752 2011-06-02  Anders Carlsson  <andersca@apple.com>
3753
3754         Reviewed by Sam Weinig.
3755
3756         Need a way to install the memory pressure handler without initializing WebKit1
3757         https://bugs.webkit.org/show_bug.cgi?id=61975
3758
3759         Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
3760         -[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
3761         but we'd like to be able to install a memory pressure handler without creating a WebView or even
3762         calling any WebView method since that will call +[WebView initialize].
3763
3764         * WebKit.exp:
3765         * WebView/WebView.mm:
3766         (WebInstallMemoryPressureHandler):
3767         * WebView/WebViewPrivate.h:
3768
3769 2011-05-27  Stephanie Lewis  <slewis@apple.com>
3770
3771         Unreviewed.
3772
3773         Fix a typo in the order_file flag.
3774
3775         * Configurations/Base.xcconfig:
3776
3777 2011-05-27  Stephanie Lewis  <slewis@apple.com>
3778
3779         Rubber Stamped by Adam Roben.
3780
3781         Update Order Files.  Use -order_file flag since it can order more of the binary.
3782
3783         * Configurations/Base.xcconfig:
3784         * WebKit.order:
3785
3786 2011-05-25  Stephanie Lewis  <slewis@apple.com>
3787
3788         Reviewed by Brady Eidson.
3789
3790         https://bugs.webkit.org/show_bug.cgi?id=61407
3791         part of <rdar://problem/8675177>
3792         Remove Quicklook pref.  Moving it enirely down into WebCore so it can
3793         be calculated only on reloads.
3794
3795         * WebView/WebPreferenceKeysPrivate.h:
3796         * WebView/WebPreferences.mm:
3797         (+[WebPreferences initialize]):
3798         * WebView/WebPreferencesPrivate.h:
3799         * WebView/WebView.mm:
3800         (-[WebView _preferencesChanged:]):
3801
3802 2011-05-24  Jer Noble  <jer.noble@apple.com>
3803
3804         Reviewed by Darin Adler.
3805
3806         Video fails to play on Vimeo
3807         https://bugs.webkit.org/show_bug.cgi?id=61403
3808
3809         * WebCoreSupport/WebSystemInterface.mm:
3810         (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
3811             wkQTMovieResolvedURL.
3812
3813 2011-05-24  Keishi Hattori  <keishi@webkit.org>
3814
3815         Reviewed by Kent Tamura.
3816
3817         Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
3818         https://bugs.webkit.org/show_bug.cgi?id=61273
3819
3820         * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
3821
3822 2011-05-24  Adam Barth  <abarth@webkit.org>
3823
3824         Reviewed by Eric Seidel.
3825
3826         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
3827         https://bugs.webkit.org/show_bug.cgi?id=61395
3828
3829         * WebView/WebView.mm:
3830         (-[WebView _isProcessingUserGesture]):
3831
3832 2011-05-24  Michael Saboff  <msaboff@apple.com>
3833
3834         Reviewed by Geoffrey Garen.
3835
3836         Improve handling in WebCore of low memory situations
3837         https://bugs.webkit.org/show_bug.cgi?id=61222
3838
3839         Added call to enable memory pressure handling.
3840
3841         * WebView/WebView.mm:
3842         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3843         * WebView/WebViewInternal.h:
3844
3845 2011-05-24  Jay Civelli  <jcivelli@chromium.org>
3846
3847         Rubberstamped by David Kilzer.
3848
3849         Updated some files that I forgot in my previous MHTML CL.
3850
3851         * Configurations/FeatureDefines.xcconfig:
3852
3853 2011-05-20  Jeremy Noble  <jer.noble@apple.com>
3854
3855         Reviewed by Simon Fraser.
3856
3857         Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard.
3858         https://bugs.webkit.org/show_bug.cgi?id=61224
3859
3860         Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard
3861         versions of same.
3862
3863         * WebView/WebFullScreenController.mm:
3864         (-[WebFullScreenController windowDidEnterFullscreen:]):
3865         (-[WebFullScreenController enterFullscreen:]):
3866         (-[WebFullScreenController exitFullscreen]):
3867         (-[WebFullscreenWindow setRendererLayer:]):
3868
3869 2011-05-20  Andy Estes  <aestes@apple.com>
3870
3871         Reviewed by Darin Adler.
3872
3873         WebView loses firstResponder status when entering full-screen mode.
3874         https://bugs.webkit.org/show_bug.cgi?id=61153
3875
3876         * Misc/WebNSWindowExtras.h:
3877         * Misc/WebNSWindowExtras.m:
3878         (-[NSWindow makeResponder:firstResponderIfDescendantOfView:]): Add a
3879         convenience method to NSWindow that makes the given NSResponder first
3880         responder only if it is a descendant of the given view.
3881         * WebView/WebFullScreenController.mm:
3882         (-[WebFullScreenController windowDidEnterFullscreen:]): If the WebView
3883         was a descendant of the browser window's first responder when entering
3884         full-screen mode, set the full-screen window's first responder to that
3885         same NSResponder.
3886         (-[WebFullScreenController exitFullscreen]): Do the reverse of what is
3887         done in windowDidEnterFullscreen:.
3888
3889 2011-05-20  Enrica Casucci  <enrica@apple.com>
3890
3891         Reviewed by David Kilzer.
3892
3893         Add delegate methods about focus and blur to all elements.
3894         https://bugs.webkit.org/show_bug.cgi?id=61218
3895
3896         We want to have delegates for these events for all the elements, not only the form elements.
3897         The patch changes the name of the methods in a way that is not form element specific.
3898
3899         * WebCoreSupport/WebChromeClient.h:
3900         * WebCoreSupport/WebChromeClient.mm:
3901         (WebChromeClient::elementDidFocus):
3902         (WebChromeClient::elementDidBlur):
3903         * WebView/WebUIDelegatePrivate.h:
3904
3905 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
3906
3907         Reviewed by Sam Weinig.
3908
3909         numberOfActiveAnimations() can include animations from documents in the page cache
3910         https://bugs.webkit.org/show_bug.cgi?id=53641
3911
3912         Pass the Frame's document as the one to count animations on.
3913
3914         * WebView/WebFrame.mm:
3915         (-[WebFrame _numberOfActiveAnimations]):
3916
3917 2011-05-17  Timothy Hatcher  <timothy@apple.com>
3918
3919         Update the the context menu to reflect the system search provider on Mac.
3920
3921         <rdar://problem/9198419>
3922
3923         Reviewed by Sam Weinig.
3924
3925         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
3926         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Use wkCopyDefaultSearchProviderDisplayName to
3927         create the web search context menu title.
3928         * WebCoreSupport/WebSystemInterface.mm:
3929         (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
3930
3931 2011-05-16  Emil A Eklund  <eae@chromium.org>
3932
3933         Reviewed by Eric Seidel.
3934
3935         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
3936         https://bugs.webkit.org/show_bug.cgi?id=60743
3937
3938         Replace uses of docWidth/Height with documentRect.
3939
3940         * WebView/WebFrame.mm:
3941         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
3942
3943 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
3944
3945         Reviewed by Antti Koivisto.
3946
3947         Fix for Bug 43704 - Web font is printed as blank if it is not cached
3948         https://bugs.webkit.org/show_bug.cgi?id=43704
3949
3950         * WebView/WebHTMLView.mm:
3951         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
3952
3953 2011-05-16  David Kilzer  <ddkilzer@apple.com>
3954
3955         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
3956         <rdar://problem/9446430>
3957
3958         Reviewed by Mark Rowe.
3959
3960         * Configurations/Base.xcconfig: Fixed typo.
3961
3962 2011-05-13  Jon Lee  <jonlee@apple.com>
3963
3964         Reviewed by Simon Fraser.
3965
3966         Can't horizontally scroll iframes and overflow because wheel events are always accepted
3967         https://bugs.webkit.org/show_bug.cgi?id=60779
3968
3969         * WebCoreSupport/WebChromeClient.h:
3970         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
3971         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
3972
3973 2011-05-13  Sam Weinig  <sam@webkit.org>
3974
3975         Reviewed by Anders Carlsson.
3976
3977         Prune #includes from FrameView.h (Part 2)
3978         https://bugs.webkit.org/show_bug.cgi?id=60748
3979
3980         - Update files that were depending on FrameView.h #including Frame.h or
3981           Page.h.
3982
3983         * WebView/WebClipView.mm:
3984         * WebView/WebHTMLView.mm:
3985         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
3986
3987 2011-05-12  Pratik Solanki  <psolanki@apple.com>
3988
3989         Reviewed by Antti Koivisto.
3990
3991         Part of WebCore should use CFNetwork-based loader on Mac
3992         https://bugs.webkit.org/show_bug.cgi?id=51836
3993
3994         Use CFRunLoop when using CFNetwork.
3995
3996         * WebView/WebView.mm:
3997         (-[WebView scheduleInRunLoop:forMode:]):
3998         (-[WebView unscheduleFromRunLoop:forMode:]):
3999
4000 2011-05-12  Pratik Solanki  <psolanki@apple.com>
4001
4002         Reviewed by Antti Koivisto.
4003
4004         Part of WebCore should use CFNetwork-based loader on Mac
4005         https://bugs.webkit.org/show_bug.cgi?id=51836
4006
4007         Include AuthenticationCF.h header file.
4008
4009         * Misc/WebDownload.mm:
4010         * Plugins/WebBaseNetscapePluginView.mm:
4011         * WebCoreSupport/WebFrameLoaderClient.mm:
4012
4013 2011-05-12  Adele Peterson  <adele@apple.com>
4014
4015         Reviewed by Darin Adler and Adam Barth.
4016
4017         Fix for <rdar://problem/9253454> Solar Walk For Mac: Info window is blank (HTML5 parser)
4018         https://bugs.webkit.org/show_bug.cgi?id=60685
4019
4020         Solar Walk uses a self closing title tag, so to match the behavior of the old parser, 
4021         we use a UserScript to write the contents of the title element to the end of the document so it can be re-parsed.
4022
4023         * Misc/SolarWalkQuirksUserScript.js: Added.
4024         * WebView/WebView.mm:
4025         (needsSolarWalkQuirksScript):
4026         (leakSolarWalkQuirksUserScriptContents):
4027         (-[WebView _injectSolarWalkQuirksScript]):
4028         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
4029
4030 2011-05-12  Jia Pu  <jpu@apple.com>
4031
4032         Reviewed by Darin Adler.
4033
4034         Regression caused by changeset 86281
4035         https://bugs.webkit.org/show_bug.cgi?id=60712
4036         <rdar://problem/9427970>
4037
4038         Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
4039         So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
4040         returns. So we don't need to use the condition to coordinate between these two function. In fact,
4041         all callbacks are delivered on main thread. We don't really need any locking here.
4042
4043         Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
4044         been removed.
4045
4046         * WebCoreSupport/CorrectionPanel.h:
4047         * WebCoreSupport/CorrectionPanel.mm:
4048         (CorrectionPanel::CorrectionPanel):
4049         (CorrectionPanel::show):
4050         (CorrectionPanel::dismiss):
4051         (CorrectionPanel::dismissInternal):
4052         (CorrectionPanel::handleAcceptedReplacement):
4053         * WebCoreSupport/WebEditorClient.mm:
4054         (WebEditorClient::dismissCorrectionPanelSoon):
4055
4056 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
4057
4058         Reviewed by Adam Barth.
4059
4060         Enable OwnPtr strict mode in PluginHalter
4061         https://bugs.webkit.org/show_bug.cgi?id=60681
4062
4063         * WebView/WebView.mm:
4064         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
4065
4066 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
4067
4068         Reviewed by Darin Adler.
4069
4070         String operator+ reallocates unnecessarily when concatting > 2 strings
4071         https://bugs.webkit.org/show_bug.cgi?id=58420
4072
4073         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
4074
4075         * WebView/WebFrame.mm: Explicitely cast to Strings first, so operator NSString*() can be invoked.
4076         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]):
4077
4078 2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
4079
4080         Reviewed by Darin Adler.
4081
4082         Perform some forward declarations suggested by include-what-you-use
4083         https://bugs.webkit.org/show_bug.cgi?id=60545
4084
4085         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
4086         * WebView/WebFrame.mm:
4087
4088 2011-05-11  Jia Pu  <jpu@apple.com>
4089
4090         Reviewed by Darin Adler.
4091
4092         CorrectionPanel sometimes hangs in dismissSoon().
4093         https://bugs.webkit.org/show_bug.cgi?id=60599
4094         <rdar://problem/9313628>
4095
4096         Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
4097         to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
4098         for condition checking.
4099
4100         * WebCoreSupport/CorrectionPanel.h:
4101         * WebCoreSupport/CorrectionPanel.mm:
4102         (CorrectionPanel::CorrectionPanel):
4103         (CorrectionPanel::show):
4104         (CorrectionPanel::dismissSoon):
4105         (CorrectionPanel::dismissInternal):
4106         (CorrectionPanel::handleAcceptedReplacement):
4107
4108 2011-05-10  Anton D'Auria  <adauria@apple.com>
4109
4110         Reviewed by David Levin.
4111
4112         Add ApplicationCache API to get disk usage per origin
4113         https://bugs.webkit.org/show_bug.cgi?id=57127
4114
4115         Added Mac port API.
4116
4117         * WebCoreSupport/WebApplicationCache.h:
4118         * WebCoreSupport/WebApplicationCache.mm:
4119         (+[WebApplicationCache diskUsageForOrigin:]):
4120
4121 2011-05-10  Anton D'Auria  <adauria@apple.com>
4122
4123         Reviewed by Alexey Proskuryakov.
4124
4125         Add ApplicationCache API to get disk usage per origin
4126         https://bugs.webkit.org/show_bug.cgi?id=57127
4127
4128         Added Mac port API.
4129
4130         * WebCoreSupport/WebApplicationCache.h:
4131         * WebCoreSupport/WebApplicationCache.mm:
4132         (+[WebApplicationCache diskUsageForOrigin:]):
4133
4134 2011-05-10  Beth Dakin  <bdakin@apple.com>
4135
4136         Reviewed by Darin Adler.
4137
4138         https://bugs.webkit.org/show_bug.cgi?id=60582
4139         Crash switching overlay/non-overlay scrollbar preference still possible
4140         -and corresponding-
4141         <rdar://problem/9323983>
4142
4143         * WebCoreSupport/WebSystemInterface.mm:
4144         (InitWebCoreSystemInterface):
4145
4146 2011-05-09  Jeremy Noble  <jer.noble@apple.com>
4147
4148         Reviewed by Darin Adler.
4149
4150         Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
4151         https://bugs.webkit.org/show_bug.cgi?id=60496
4152
4153         When animating into and out of full screen, order out and back in the original webView window,
4154         disabling animations when necessary.  The exitFullscreen method was targeting the wrong window,
4155         as the webView is hosted in the full screen window when we ask for it's parent window.
4156
4157         * WebView/WebFullScreenController.mm:
4158         (-[WebFullScreenController windowDidEnterFullscreen:]):
4159         (-[WebFullScreenController exitFullscreen]):
4160
4161 2011-05-04  Philippe Normand  <pnormand@igalia.com>
4162
4163         Reviewed by Dimitri Glazkov.
4164
4165         Implement LayoutTestController::pseudoShadowId()
4166         https://bugs.webkit.org/show_bug.cgi?id=60034
4167
4168         * DOM/WebDOMOperations.mm:
4169         (-[DOMElement _shadowPseudoId]):
4170         * DOM/WebDOMOperationsPrivate.h:
4171
4172 2011-05-05  Dan Bernstein  <mitz@apple.com>
4173
4174         Reviewed by Simon Fraser.
4175
4176         WebKit part of <rdar://problem/9155590> Broken animation in iAd producer
4177
4178         * WebCoreSupport/WebSystemInterface.mm:
4179         (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
4180
4181 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
4182
4183         Reviewed by Eric Seidel.
4184
4185         Rename SelectionController to FrameSelection
4186         https://bugs.webkit.org/show_bug.cgi?id=60234
4187
4188         * WebView/WebFrame.mm:
4189         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
4190         * WebView/WebFrameInternal.h:
4191         * WebView/WebHTMLView.mm:
4192         * WebView/WebTextCompletionController.mm:
4193         (-[WebTextCompletionController doCompletion]):
4194         * WebView/WebView.mm:
4195
4196 2011-05-04  Cris Neckar  <cdn@chromium.org>
4197
4198         Reviewed by Adam Barth.
4199
4200         Expose WebView directly through ChromeClient.
4201         https://bugs.webkit.org/show_bug.cgi?id=49902
4202
4203         * WebCoreSupport/WebChromeClient.h:
4204         (WebChromeClient::webView):
4205         * WebView/WebFrame.mm:
4206         (kit):
4207