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