Image menu is offset by the amount the view is scrolled
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-05-07  Brady Eidson  <beidson@apple.com>
2
3         Image menu is offset by the amount the view is scrolled
4         <rdar://problem/16818966> and https://bugs.webkit.org/show_bug.cgi?id=132663
5
6         Reviewed by Tim Horton.
7
8         * WebCoreSupport/WebContextMenuClient.mm:
9         (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, 
10           and skip the [NSView convertPoint:toView:] step.
11
12 2014-05-07  Simon Fraser  <simon.fraser@apple.com>
13
14         WebKit1 is flashy when compositing layers come and go
15         https://bugs.webkit.org/show_bug.cgi?id=132655
16
17         Reviewed by Sam Weinig.
18         
19         In r166117 I removed code to flush compositing layers in FrameView::paintContents(),
20         which caused problems when painting iframes. However, this removed a flush
21         that WebKit1 relied on to flush compositing layers when painting, which caused
22         flashing when compositing layers come and go, and broke WebView snapshotting
23         in some cases.
24         
25         Fix by adding back compositing layer flushing, but this time in WebKit1's
26         -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree.
27
28         * WebView/WebHTMLView.mm:
29         (-[WebHTMLView viewWillDraw]):
30         * WebView/WebView.mm:
31         (-[WebView _flushCompositingChanges]):
32         * WebView/WebViewInternal.h:
33         * WebView/WebViewPrivate.h:
34
35 2014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
36
37         [CSS Grid Layout] Remove runtime feature
38         https://bugs.webkit.org/show_bug.cgi?id=132382
39
40         Reviewed by Benjamin Poulain.
41
42         Remove cssGridLayoutEnabled setting usage.
43
44         * WebKit.order:
45         * WebView/WebPreferenceKeysPrivate.h:
46         * WebView/WebPreferences.mm:
47         (+[WebPreferences initialize]):
48         (-[WebPreferences cssGridLayoutEnabled]): Deleted.
49         (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted.
50         * WebView/WebPreferencesPrivate.h:
51         * WebView/WebView.mm:
52         (-[WebView _preferencesChanged:]):
53
54 2014-05-06  Dean Jackson  <dino@apple.com>
55
56         [Mac] Allow focus rings to redraw themselves if necessary
57         https://bugs.webkit.org/show_bug.cgi?id=132593
58
59         Reviewed by Simon Fraser.
60
61         * WebCoreSupport/WebSystemInterface.mm:
62         (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime.
63
64 2014-05-06  Brady Eidson  <beidson@apple.com>
65
66         Don't select an image that is about to have its menu shown.
67         <rdar://problem/16807845> and https://bugs.webkit.org/show_bug.cgi?id=132579
68
69         Reviewed by Tim Horton.
70
71         * Misc/WebSharingServicePickerController.mm:
72         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
73           Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard.
74
75 2014-05-06  Anders Carlsson  <andersca@apple.com>
76
77         Move the WebKitLegacy header check to the right file
78         https://bugs.webkit.org/show_bug.cgi?id=132620
79         <rdar://problem/16815716>
80
81         Reviewed by Dan Bernstein.
82
83         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make:
84         * WebKitLegacy/WebKit.h:
85
86 2014-05-06  Anders Carlsson  <andersca@apple.com>
87
88         Put WebKitPluginHost.app in WebKitLegacy.framework
89         https://bugs.webkit.org/show_bug.cgi?id=132592
90         <rdar://problem/15920046>
91
92         Reviewed by Dan Bernstein.
93
94         * Plugins/Hosted/NetscapePluginHostManager.mm:
95         (WebKit::NetscapePluginHostManager::spawnPluginHost):
96
97 2014-05-06  Darin Adler  <darin@apple.com>
98
99         [iOS] Fix two more AdoptCF I missed in my last patch.
100
101         * WebView/WebHTMLView.mm:
102         (imageFromRect): Use adoptCF instead of AdoptCF.
103
104 2014-05-05  Andreas Kling  <akling@apple.com>
105
106         Unreviewed, rolling out r168334.
107
108         Broke builds.
109
110         Reverted changeset:
111
112         "Put WebKitPluginHost.app in WebKitLegacy.framework"
113         https://bugs.webkit.org/show_bug.cgi?id=132592
114         http://trac.webkit.org/changeset/168334
115
116 2014-05-05  Anders Carlsson  <andersca@apple.com>
117
118         Put WebKitPluginHost.app in WebKitLegacy.framework
119         https://bugs.webkit.org/show_bug.cgi?id=132592
120         <rdar://problem/15920046>
121
122         Reviewed by Dan Bernstein.
123
124         * Plugins/Hosted/NetscapePluginHostManager.mm:
125         (WebKit::NetscapePluginHostManager::spawnPluginHost):
126
127 2014-05-02  Brady Eidson  <beidson@apple.com>
128
129         Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:.
130         <rdar://problem/16797425> and https://bugs.webkit.org/show_bug.cgi?id=132484
131
132         Reviewed by Tim Horton.
133
134         * Misc/WebSharingServicePickerController.mm:
135         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
136
137         * WebCoreSupport/WebContextMenuClient.h:
138         * WebCoreSupport/WebContextMenuClient.mm:
139         (WebContextMenuClient::screenRectForHitTestNode):
140
141 2014-05-02  Brady Eidson  <beidson@apple.com>
142
143         Crash inside [WebSharingServicePickerController clear]
144         <rdar://problem/16791944> and https://bugs.webkit.org/show_bug.cgi?id=132477
145
146         Reviewed by Tim Horton.
147
148         * Misc/WebSharingServicePickerController.h:
149         * Misc/WebSharingServicePickerController.mm:
150         (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient.
151
152         * WebCoreSupport/WebContextMenuClient.h:
153         * WebCoreSupport/WebContextMenuClient.mm:
154         (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here.
155
156 2014-05-01  Tim Horton  <timothy_horton@apple.com>
157
158         More 32-bit build fixes.
159
160         * Misc/WebSharingServicePickerController.mm:
161         (-[WebSharingServicePickerController sharingService:didShareItems:]):
162
163 2014-05-01  Tim Horton  <timothy_horton@apple.com>
164
165         Temporarily "fix" the 32-bit build.
166
167         * Misc/WebSharingServicePickerController.mm:
168         This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process.
169
170 2014-05-01  Brady Eidson  <beidson@apple.com>
171
172         Update service picker API usage.
173         <rdar://problem/16772674> and https://bugs.webkit.org/show_bug.cgi?id=132452
174
175         Reviewed by Tim Horton.
176
177         * Misc/WebSharingServicePickerController.h:
178         * Misc/WebSharingServicePickerController.mm:
179         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
180           Factor out a common "didShare" handler that optionally validates whether the data represents an image.
181         (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling
182           on off-main thread call back to the main thread.
183
184         * WebCoreSupport/WebContextMenuClient.mm:
185         (WebContextMenuClient::contextMenuForEvent): Update API usage.
186
187 2014-05-01  Anders Carlsson  <andersca@apple.com>
188
189         Support OS-version-specific install paths for WebKit.framework
190         https://bugs.webkit.org/show_bug.cgi?id=132448
191         <rdar://problem/16784932>
192
193         Reviewed by Dan Bernstein.
194
195         * WebKitLegacy/WebKit.m:
196         Add version specific install names.
197
198 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
199
200         Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
201         Clean up unnecessary methods in the BackForwardClient interface
202
203         It broke a regression test and an API test.
204
205         * History/WebBackForwardList.mm:
206         (-[WebBackForwardList initWithBackForwardList:]):
207         (-[WebBackForwardList init]):
208         (-[WebBackForwardList dealloc]):
209         (-[WebBackForwardList finalize]):
210         (-[WebBackForwardList setPageCacheSize:]):
211         (-[WebBackForwardList pageCacheSize]):
212         * History/WebBackForwardListInternal.h:
213         * WebCoreSupport/WebFrameLoaderClient.mm:
214         (WebFrameLoaderClient::canCachePage):
215         * WebView/WebFrameView.mm:
216         (-[WebFrameView keyDown:keyDown:]):
217         * WebView/WebView.mm:
218         (-[WebView _loadBackForwardListFromOtherView:]):
219         (-[WebView initWithCoder:]):
220         (-[WebView encodeWithCoder:]):
221         (-[WebView backForwardList]):
222         (-[WebView setMaintainsBackForwardList:]):
223
224 2014-04-30  Simon Fraser  <simon.fraser@apple.com>
225
226         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO
227         https://bugs.webkit.org/show_bug.cgi?id=132396
228
229         Reviewed by Eric Carlson.
230
231         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code.
232
233         * Configurations/FeatureDefines.xcconfig:
234         * Plugins/WebPluginContainerPrivate.h:
235         * Plugins/WebPluginController.h:
236         * Plugins/WebPluginController.mm:
237         (-[WebPluginController dealloc]):
238         (-[WebPluginController plugInsAreRunning]):
239         (-[WebPluginController stopAllPlugins]):
240         (-[WebPluginController stopPluginsForPageCache]):
241         (-[WebPluginController restorePluginsFromCache]):
242         (-[WebPluginController addPlugin:]):
243         (-[WebPluginController destroyPlugin:]):
244         (-[WebPluginController destroyAllPlugins]):
245         (-[NSView isMediaPlugInProxyView]): Deleted.
246         (-[NSView setIsMediaPlugInProxyView:]): Deleted.
247         (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted.
248         (+[WebPluginController pluginViewHidden:]): Deleted.
249         (mediaProxyClient): Deleted.
250         (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted.
251         (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted.
252         * WebCoreSupport/WebFrameLoaderClient.h:
253         * WebCoreSupport/WebFrameLoaderClient.mm:
254         (pluginView):
255         * WebView/WebView.mm:
256         (-[WebView _preferencesChanged:]):
257         (-[WebView _videoProxyPluginForMIMEType:]): Deleted.
258         * WebView/WebViewInternal.h:
259
260 2014-04-30  Anders Carlsson  <andersca@apple.com>
261
262         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
263         https://bugs.webkit.org/show_bug.cgi?id=132399
264         <rdar://problem/15920046>
265
266         Reviewed by Dan Bernstein.
267
268         * Carbon/CarbonUtils.h:
269         * Carbon/HIViewAdapter.h:
270         * Carbon/HIWebView.h:
271         Import WebKitLegacy headers instead of WebKit headers.
272
273         * Configurations/WebKit.xcconfig:
274         Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
275         add the relevant definitions needed for re-exporting WebKitLegacy.framework.
276
277         * Configurations/WebKitLegacy.xcconfig:
278         Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
279
280         * DOM/WebDOMOperations.h:
281         * DOM/WebDOMOperations.mm:
282         * DOM/WebDOMOperationsInternal.h:
283         * DOM/WebDOMOperationsPrivate.h:
284         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
285         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
286         * DefaultDelegates/WebDefaultEditingDelegate.m:
287         * History/WebBackForwardListInternal.h:
288         * History/WebBackForwardListPrivate.h:
289         * History/WebHistoryItemPrivate.h:
290         * History/WebHistoryPrivate.h:
291         * History/WebURLsWithTitles.m:
292         Import WebKitLegacy headers instead of WebKit headers.
293
294         * MigrateHeaders.make:
295         Update header paths now that all WebKitLegacy headers are private.
296         Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
297         
298         * Misc/WebCoreStatistics.h:
299         * Misc/WebDownload.h:
300         * Misc/WebDownload.mm:
301         * Misc/WebDownloadInternal.h:
302         * Misc/WebElementDictionary.mm:
303         * Misc/WebIconDatabasePrivate.h:
304         * Misc/WebKit.h:
305         * Misc/WebKitErrors.m:
306         * Misc/WebKitErrorsPrivate.h:
307         * Misc/WebKitNSStringExtras.mm:
308         * Misc/WebLocalizableStrings.mm:
309         * Misc/WebNSDataExtras.m:
310         * Misc/WebNSDictionaryExtras.m:
311         * Misc/WebNSEventExtras.m:
312         * Misc/WebNSFileManagerExtras.mm:
313         * Misc/WebNSImageExtras.m:
314         * Misc/WebNSPasteboardExtras.mm:
315         * Misc/WebNSViewExtras.h:
316         * Misc/WebNSViewExtras.m:
317         * Panels/WebAuthenticationPanel.m:
318         * Panels/WebPanelAuthenticationHandler.m:
319         * Plugins/Hosted/HostedNetscapePluginStream.h:
320         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
321         * Plugins/Hosted/WebKitPluginAgent.defs:
322         * Plugins/Hosted/WebKitPluginAgentReply.defs:
323         * Plugins/Hosted/WebKitPluginClient.defs:
324         * Plugins/Hosted/WebKitPluginHost.defs:
325         * Plugins/Hosted/WebKitPluginHostTypes.defs:
326         * Plugins/WebBaseNetscapePluginView.mm:
327         * Plugins/WebBasePluginPackage.h:
328         * Plugins/WebBasePluginPackage.mm:
329         * Plugins/WebNetscapeContainerCheckPrivate.h:
330         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
331         * Plugins/WebNetscapePluginStream.h:
332         * Plugins/WebNetscapePluginView.h:
333         * Plugins/WebNetscapePluginView.mm:
334         * Plugins/WebPlugin.h:
335         * Plugins/WebPluginController.h:
336         * Plugins/WebPluginDatabase.h:
337         * Plugins/WebPluginPackage.h:
338         * Plugins/WebPluginPackage.mm:
339         * Plugins/WebPluginViewFactory.h:
340         * Plugins/WebPluginViewFactoryPrivate.h:
341         * Plugins/npapi.mm:
342         * Storage/WebDatabaseManagerPrivate.h:
343         * WebCoreSupport/WebContextMenuClient.mm:
344         * WebCoreSupport/WebFrameLoaderClient.mm:
345         * WebCoreSupport/WebFrameNetworkingContext.mm:
346         * WebCoreSupport/WebGeolocationClient.mm:
347         * WebCoreSupport/WebInspectorClient.mm:
348         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
349         * WebCoreSupport/WebKeyGenerator.mm:
350         * WebInspector/WebInspectorPrivate.h:
351         * WebInspector/WebNodeHighlight.h:
352         * WebInspector/WebNodeHighlightView.h:
353         Import WebKitLegacy headers instead of WebKit headers.
354         
355         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
356         New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
357         imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
358         On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
359         and getting rid of C SPI imports.
360         
361         * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
362         This is no longer needed.
363         
364         * WebKitLegacy/WebKit.h: Added.
365         New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
366
367         * WebKitLegacy/WebKit.m:
368         This is an empty file so we'll have something to link.
369
370         * WebKitLegacy/WebKitPrivate.h:
371         New SPI header that imports the private headers of the modern API.
372
373         * WebView/WebDataSource.h:
374         * WebView/WebDataSource.mm:
375         * WebView/WebDataSourcePrivate.h:
376         * WebView/WebDelegateImplementationCaching.h:
377         * WebView/WebDocument.h:
378         * WebView/WebDocumentInternal.h:
379         * WebView/WebDocumentPrivate.h:
380         * WebView/WebEditingDelegate.h:
381         * WebView/WebEditingDelegatePrivate.h:
382         * WebView/WebFrameLoadDelegate.h:
383         * WebView/WebFrameLoadDelegatePrivate.h:
384         * WebView/WebFramePrivate.h:
385         * WebView/WebFrameView.h:
386         * WebView/WebFrameViewInternal.h:
387         * WebView/WebFrameViewPrivate.h:
388         * WebView/WebHTMLRepresentation.h:
389         * WebView/WebHTMLRepresentation.mm:
390         * WebView/WebHTMLRepresentationPrivate.h:
391         * WebView/WebHTMLView.h:
392         * WebView/WebHTMLView.mm:
393         * WebView/WebHTMLViewPrivate.h:
394         * WebView/WebPDFView.h:
395         * WebView/WebPolicyDelegatePrivate.h:
396         * WebView/WebPreferencesPrivate.h:
397         * WebView/WebResourcePrivate.h:
398         * WebView/WebUIDelegate.h:
399         * WebView/WebUIDelegatePrivate.h:
400         * WebView/WebView.h:
401         * WebView/WebView.mm:
402         * WebView/WebViewPrivate.h:
403         Import WebKitLegacy headers instead of WebKit headers.
404
405         * migrate-headers.sh:
406         Derived sources are put in DerivedSources/WebKitLegacy now.
407
408 2014-04-30  David Hyatt  <hyatt@apple.com>
409
410         [New Multicolumn] Enable new multi-column mode
411         https://bugs.webkit.org/show_bug.cgi?id=131825
412
413         Reviewed by Simon Fraser.
414
415         * WebView/WebPreferences.mm:
416         (+[WebPreferences initialize]):
417
418 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
419
420         Clean up unnecessary methods in the BackForwardClient interface
421         https://bugs.webkit.org/show_bug.cgi?id=131637
422
423         Reviewed by Andreas Kling.
424
425         BackForwardClient instances now have ownership lifetime semantics, so
426         WebBackForwardList now explicitly deletes its inner BackForwardList.
427
428         Convert uses of WebCore::BackForwardList through backForward().client() to
429         accept references instead of pointers.
430
431         Use BackForwardController methods rather than directly operating with the
432         BackForwardClient where possible.
433
434         Remove page cache-related methods that are not used anywhere and that call
435         BackForwardClient::page(), which is removed by this change.
436
437         * History/WebBackForwardList.mm:
438         (-[WebBackForwardList initWithBackForwardList:]):
439         (-[WebBackForwardList init]):
440         (-[WebBackForwardList dealloc]):
441         (-[WebBackForwardList finalize]):
442         (-[WebBackForwardList setPageCacheSize]): Deleted.
443         (-[WebBackForwardList pageCacheSize]): Deleted.
444         (-[WebBackForwardList itemAtIndex:]): Deleted.
445         * History/WebBackForwardListInternal.h:
446         * WebCoreSupport/WebFrameLoaderClient.mm:
447         (WebFrameLoaderClient::canCachePage):
448         * WebView/WebFrameView.mm:
449         (-[WebFrameView keyDown:keyDown:]):
450         * WebView/WebView.mm:
451         (-[WebView _loadBackForwardListFromOtherView:]):
452         (-[WebView initWithCoder:]):
453         (-[WebView encodeWithCoder:]):
454         (-[WebView backForwardList]):
455         (-[WebView setMaintainsBackForwardList:]):
456
457 2014-04-29  Sam Weinig  <sam@webkit.org>
458
459         [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
460         https://bugs.webkit.org/show_bug.cgi?id=132359
461
462         Reviewed by Darin Adler.
463
464         * WebView/WebHTMLView.mm:
465         (imageFromRect):
466         (selectionImage):
467         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
468         Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
469         is still unimplemented on iOS.
470
471         * WebView/WebView.mm:
472         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
473         Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
474         to ensure that the snapshot is the correct size.
475
476 2014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
477
478         [CSS Grid Layout] Enable runtime feature by default
479         https://bugs.webkit.org/show_bug.cgi?id=132189
480
481         Reviewed by Benjamin Poulain.
482
483         * WebView/WebPreferences.mm:
484         (+[WebPreferences initialize]): Remove unneeded changes that
485         enable/disable the runtime feature depending on the compilation flag.
486         And set it to true by default.
487
488 2014-04-29  Filip Pizlo  <fpizlo@apple.com>
489
490         Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
491         https://bugs.webkit.org/show_bug.cgi?id=112840
492
493         Rubber stamped by Geoffrey Garen.
494
495         * Configurations/FeatureDefines.xcconfig:
496
497 2014-04-29  Brady Eidson  <beidson@apple.com>
498
499         Change Image Controls replacement to use selection and paste
500         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
501
502         Reviewed by Tim Horton.
503
504         * Misc/WebSharingServicePickerController.mm:
505         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
506           replacement data to a special pasteboard, then replace the current selection from
507           that pasteboard.
508
509 2014-04-27  Sam Weinig  <sam@webkit.org>
510
511         [iOS WebKit2] Add support for text autosizing
512         <rdar://problem/16545245>
513         https://bugs.webkit.org/show_bug.cgi?id=132237
514
515         Reviewed by Tim Horton.
516
517         * WebView/WebFrame.mm:
518         (-[WebFrame _setTextAutosizingWidth:]):
519         Forward setting of the text autosizing width to the Page.
520
521 2014-04-25  Dean Jackson  <dino@apple.com>
522
523         Allow a platform-specific size enumeration to be passed into popup-menu display
524         https://bugs.webkit.org/show_bug.cgi?id=132195
525
526         Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
527
528         Platforms like OS X use a set of predefined sizes for built-in controls
529         used for <select>: normal, small and mini. Expose that information to
530         the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
531         into the platform code in WebKitSystemInterface.
532
533         * WebCoreSupport/PopupMenuMac.mm:
534         (PopupMenuMac::show): Convert the WebCore menu size type into the
535         WebCoreSystemInterface type.
536
537 2014-04-24  Commit Queue  <commit-queue@webkit.org>
538
539         Unreviewed, rolling out r167700.
540         https://bugs.webkit.org/show_bug.cgi?id=132142
541
542         Incorrectly reverted the change in r167547 for
543         webkit.org/b/131898 (Requested by rniwa on #webkit).
544
545         Reverted changeset:
546
547         "Cursor doesn't change back to pointer when leaving the Safari
548         window"
549         https://bugs.webkit.org/show_bug.cgi?id=132038
550         http://trac.webkit.org/changeset/167700
551
552 2014-04-24  Brady Eidson  <beidson@apple.com>
553
554         Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
555         https://bugs.webkit.org/show_bug.cgi?id=132155
556
557         Reviewed by Tim Horton.
558
559         * Configurations/FeatureDefines.xcconfig:
560         * Misc/WebSharingServicePickerController.h:
561         * Misc/WebSharingServicePickerController.mm:
562         * WebCoreSupport/WebContextMenuClient.h:
563         * WebCoreSupport/WebContextMenuClient.mm:
564         (WebContextMenuClient::contextMenuForEvent):
565         * WebView/WebPreferences.mm:
566         (+[WebPreferences initialize]):
567         * WebView/WebView.mm:
568         (-[WebView _preferencesChanged:]):
569
570 2014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
571
572         Text caret disappears in Mail after returning from another application
573         https://bugs.webkit.org/show_bug.cgi?id=132111
574
575         Reviewed by Darin Adler.
576
577         The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
578
579         Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
580         notifications as done in WebKit2 since they DO get called upon deminiaturization.
581
582         * WebView/WebView.mm:
583         (-[WebView addWindowObserversForWindow:]):
584         (-[WebView removeWindowObservers]):
585         (-[WebView _windowKeyStateChanged:]):
586         (-[WebView _windowChangedKeyState]): Deleted.
587
588 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
589
590         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
591         https://bugs.webkit.org/show_bug.cgi?id=132110
592
593         Reviewed by Tim Horton.
594
595         Updates callers to use '.' instead of '->'.
596
597         No new tests are necessary because there should be no behavior change.
598
599         * Misc/WebCoreStatistics.mm:
600         (+[WebCoreStatistics cachedFontDataCount]):
601         (+[WebCoreStatistics cachedFontDataInactiveCount]):
602         (+[WebCoreStatistics purgeInactiveFontData]):
603         * WebView/WebView.mm:
604         (+[WebView purgeInactiveFontData]):
605
606 2014-04-24  Eric Carlson  <eric.carlson@apple.com>
607
608         [iOS] Manage AudioSession category according to media type
609         https://bugs.webkit.org/show_bug.cgi?id=132096
610
611         Reviewed by Jer Noble.
612
613         * WebView/WebView.mm:
614         (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
615             WebCore to manage the AudioSession when running in MobileSafari.
616
617 2014-04-23  Andreas Kling  <akling@apple.com>
618
619         Remove Apple Dictionary workaround in WebFrameLoaderClient.
620         <https://webkit.org/b/132095>
621
622         Kill a hack to work around a WK1 client bug that got fixed years ago.
623         See <rdar://problem/6471058> for backstory.
624
625         Reviewed by Darin Adler.
626
627         * WebCoreSupport/WebFrameLoaderClient.mm:
628         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
629         (WebFrameLoaderClient::dispatchWillSendRequest):
630         (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
631         (applyAppleDictionaryApplicationQuirk): Deleted.
632
633 2014-04-23  Anders Carlsson  <andersca@apple.com>
634
635         Don't migrate the WKView.h header from WebCore to WebKit
636         https://bugs.webkit.org/show_bug.cgi?id=132086
637
638         Reviewed by Dan Bernstein.
639
640         * MigrateHeaders.make:
641         Remove WKView.h from the list of headers to migrate.
642
643         * WebView/WebView.mm:
644         Import WKView.h.
645
646 2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
647
648         Cursor doesn't change back to pointer when leaving the Safari window
649         https://bugs.webkit.org/show_bug.cgi?id=132038
650
651         Reviewed by Alexey Proskuryakov.
652
653         Since the cursor type is now updated asynchronously after r147739,
654         [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
655         evalutes to false depending on how fast cursor is moving.
656
657         Instead, check whether the NSWindow of the WebView is the key window or not since
658         key window appears to control the cursor style in Cocoa as far as I've tested:
659         https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
660
661         * WebCoreSupport/WebChromeClient.mm:
662         (WebChromeClient::setCursor):
663
664 2014-04-22  Commit Queue  <commit-queue@webkit.org>
665
666         Unreviewed, rolling out r167674.
667         https://bugs.webkit.org/show_bug.cgi?id=132025
668
669         Going a different way with this (Requested by bradee-oh on
670         #webkit).
671
672         Reverted changeset:
673
674         "Change Image Controls replacement to use selection and paste"
675         https://bugs.webkit.org/show_bug.cgi?id=131992
676         http://trac.webkit.org/changeset/167674
677
678 2014-04-22  Brady Eidson  <beidson@apple.com>
679
680         Change Image Controls replacement to use selection and paste
681         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
682
683         Reviewed by Tim Horton.
684
685         * Misc/WebSharingServicePickerController.mm:
686         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
687           replacement data to a special pasteboard, then replace the current selection from
688           that pasteboard.
689
690 2014-04-21  Eric Carlson  <eric.carlson@apple.com>
691
692         [Mac] implement WebKitDataCue
693         https://bugs.webkit.org/show_bug.cgi?id=131799
694
695         Reviewed by Dean Jackson.
696
697         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
698
699 2014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
700
701         Remove unused WebKitSystemInterface functions
702         https://bugs.webkit.org/show_bug.cgi?id=131938
703
704         Reviewed by Alexey Proskuryakov.
705
706         * WebCoreSupport/WebSystemInterface.mm:
707         (InitWebCoreSystemInterface):
708
709 2014-04-21  Zan Dobersek  <zdobersek@igalia.com>
710
711         Move cross-port Source/WebCore/page/ code to std::unique_ptr
712         https://bugs.webkit.org/show_bug.cgi?id=130534
713
714         Reviewed by Darin Adler.
715
716         * WebView/WebHTMLRepresentation.mm:
717         (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
718
719 2014-04-19  Darin Adler  <darin@apple.com>
720
721         [Mac] WebView adjusts the cursor even when another window is in front
722         https://bugs.webkit.org/show_bug.cgi?id=131898
723         rdar://problem/14619911
724
725         Reviewed by Dan Bernstein.
726
727         * WebCoreSupport/WebChromeClient.mm:
728         (WebChromeClient::setCursor): Added a check that the window is under the cursor
729         and do nothing if it's not.
730
731 2014-04-18  Commit Queue  <commit-queue@webkit.org>
732
733         Unreviewed, rolling out r167527.
734         https://bugs.webkit.org/show_bug.cgi?id=131883
735
736         Broke 32-bit build (Requested by ap on #webkit).
737
738         Reverted changeset:
739
740         "[Mac] implement WebKitDataCue"
741         https://bugs.webkit.org/show_bug.cgi?id=131799
742         http://trac.webkit.org/changeset/167527
743
744 2014-04-18  Eric Carlson  <eric.carlson@apple.com>
745
746         [Mac] implement WebKitDataCue
747         https://bugs.webkit.org/show_bug.cgi?id=131799
748
749         Reviewed by Dean Jackson.
750
751         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
752
753 2014-04-17  Daniel Bates  <dabates@apple.com>
754
755         [iOS] Hook up screen.{availHeight, availWidth, height, width}
756         https://bugs.webkit.org/show_bug.cgi?id=131821
757         <rdar://problem/16413795>
758
759         Reviewed by Benjamin Poulain and Tim Horton.
760
761         Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
762
763         Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
764
765         * WebCoreSupport/WebSystemInterface.mm:
766         (InitWebCoreSystemInterface):
767
768 2014-04-17  Darin Adler  <darin@apple.com>
769
770         Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
771         https://bugs.webkit.org/show_bug.cgi?id=131785
772         rdar://problem/16003108
773
774         Reviewed by Brady Eidson.
775         
776         * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
777
778 2014-04-16  Tim Horton  <timothy_horton@apple.com>
779
780         Images dragged from WebKit1 on 2x displays are too big
781         https://bugs.webkit.org/show_bug.cgi?id=131775
782         <rdar://problem/15933525>
783
784         Reviewed by Simon Fraser.
785
786         * WebCoreSupport/WebDragClient.mm:
787         (WebDragClient::startDrag):
788         Scale the drag image's logical size down by the device scale factor
789         in WebKit1 just like we do in WebKit2.
790
791 2014-04-13  Andy Estes  <aestes@apple.com>
792
793         [QuickLook] Move file system-related code into WebKit
794         https://bugs.webkit.org/show_bug.cgi?id=131597
795
796         Reviewed by Dan Bernstein.
797
798         Moved file system and WebKit1-only code from QuickLookHandle into a new
799         QuickLookHandleClient subclass.
800
801         * WebCoreSupport/WebFrameLoaderClient.h:
802         * WebCoreSupport/WebFrameLoaderClient.mm:
803
804 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
805
806         Eliminate DragSession structure
807         https://bugs.webkit.org/show_bug.cgi?id=131465
808
809         Reviewed by Benjamin Poulain.
810
811         * WebView/WebView.mm:
812         (-[WebView draggingEntered:]):
813         (-[WebView draggingUpdated:]):
814
815 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
816
817         Rename some dragging functions
818         https://bugs.webkit.org/show_bug.cgi?id=131460
819
820         Reviewed by Tim Horton.
821
822         Renamed performDrag to performDragOperation.
823
824         * WebView/WebView.mm: (-[WebView performDragOperation:]):
825
826 2014-04-08  Jon Lee  <jonlee@apple.com>
827
828         Turn MSE on by default
829         https://bugs.webkit.org/show_bug.cgi?id=131313
830         <rdar://problem/16525223>
831
832         Reviewed by Jer Noble.
833
834         * Configurations/FeatureDefines.xcconfig:
835         * WebView/WebPreferences.mm:
836         (+[WebPreferences initialize]): Set default to true.
837
838 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
839
840         Rename Clipboard to DataTransfer
841         https://bugs.webkit.org/show_bug.cgi?id=131371
842
843         Reviewed by Anders Carlsson.
844
845         * WebCoreSupport/WebDragClient.h:
846         * WebCoreSupport/WebDragClient.mm:
847         (WebDragClient::willPerformDragSourceAction):
848         (WebDragClient::startDrag):
849         * WebView/WebPDFView.mm:
850
851 2014-04-08  Dan Bernstein  <mitz@apple.com>
852
853         WebKit part of [Cocoa] Add WKFormDelegate
854         https://bugs.webkit.org/show_bug.cgi?id=131343
855
856         Reviewed by Anders Carlsson.
857
858         * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
859
860 2014-04-08  Daniel Bates  <dabates@apple.com>
861
862         Fallback to default storage session when there isn't a valid session ID
863         https://bugs.webkit.org/show_bug.cgi?id=131326
864         <rdar://problem/16231679>
865
866         Reviewed by Alexey Proskuryakov.
867
868         Fixes and issue where we may use the wrong storage session after disabling
869         a private browsing session.
870
871         Currently WebKit1 and WebKit2 without NetworkProcess assume that there
872         is always a non-null private browsing storage session so long as the page
873         has a non-default session ID. Instead we should only use the private browsing
874         storage session when it's non-null and the page has a non-default session ID;
875         otherwise, we should use the default storage session. This change will make
876         the behavior in WebKit1 and WebKit2 without NetworkProcess consistent with
877         the behavior in WebKit2 with NetworkProcess.
878
879         * WebCoreSupport/WebFrameNetworkingContext.mm:
880         (WebFrameNetworkingContext::storageSession):
881
882 2014-04-06  Sam Weinig  <sam@webkit.org>
883
884         Document user content related APIs
885
886         Reviewed by Anders Carlsson.
887
888         * MigrateHeaders.make:
889
890 2014-04-06  Darin Adler  <darin@apple.com>
891
892         Refactor post-attach and HTMLObjectElement-related code
893         https://bugs.webkit.org/show_bug.cgi?id=131282
894
895         Reviewed by Antti Koivisto.
896
897         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
898         doing a static_cast.
899
900 2014-04-04  Brian J. Burg  <burg@cs.washington.edu>
901
902         Enable WEB_REPLAY for PLATFORM(MAC)
903         https://bugs.webkit.org/show_bug.cgi?id=130700
904
905         Reviewed by Timothy Hatcher.
906
907         * Configurations/FeatureDefines.xcconfig:
908
909 2014-04-03  Sam Weinig  <sam@webkit.org>
910
911         [WebKit2] Promote user script SPI to API
912         https://bugs.webkit.org/show_bug.cgi?id=131181
913
914         Reviewed by Anders Carlsson.
915
916         * MigrateHeaders.make:
917
918 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
919
920         [iOS] Remove the legacy string drawing code
921         https://bugs.webkit.org/show_bug.cgi?id=131088
922
923         Reviewed by Sam Weinig.
924
925         * Configurations/WebKit.xcconfig:
926
927 2014-04-02  Mark Rowe  <mrowe@apple.com>
928
929         <https://webkit.org/b/131135> Introduce LockHistory and LockBackForwardList enums to use in place of bools.
930
931         These arguments are often passed using literals at the call site, where the use of bools severely hinders
932         the readability of the code.
933
934         Reviewed by Andreas Kling.
935
936         * WebView/WebPDFView.mm:
937         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
938
939 2014-04-02  Stephanie Lewis  <slewis@apple.com>
940
941         Roll out http://trac.webkit.org/changeset/166144
942         <rdar://problem/16481284> PLT stops loading on news.google.com
943         
944         Unreviewed rollout.
945
946         Rollout 166144 since it prevents the PLT from completing.
947
948         * WebCoreSupport/WebFrameLoaderClient.mm:
949
950 2014-04-02  Daniel Bates  <dabates@apple.com>
951
952         Remove Settings::maximumDecodedImageSize()
953         https://bugs.webkit.org/show_bug.cgi?id=131057
954         <rdar://problem/15626368>
955
956         Reviewed by Darin Adler. 
957
958         Remove preferences key WebKitMaximumImageSize.
959
960         * WebView/WebPreferenceKeysPrivate.h:
961         * WebView/WebPreferences.mm:
962         (+[WebPreferences initialize]):
963         (-[WebPreferences _maximumImageSize:]): Deleted.
964         * WebView/WebPreferencesPrivate.h:
965         * WebView/WebView.mm:
966         (-[WebView _preferencesChanged:]):
967
968 2014-04-02  Martin Hock  <mhock@apple.com>
969
970         Unify private browsing with sessions.
971         https://bugs.webkit.org/show_bug.cgi?id=130099
972
973         Reviewed by Alexey Proskuryakov.
974
975         * WebCoreSupport/WebFrameLoaderClient.mm: Change WebCore::Settings::privateBrowsingEnabled() to Page::sessionID().isEphemeral().
976         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
977         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
978         (WebFrameNetworkingContext::storageSession):
979         * WebView/WebView.mm: Change WebCore::Settings::setPrivateBrowsingEnabled() to Page::enableLegacyPrivateBrowsing().
980         (-[WebView _preferencesChanged:]):
981
982 2014-04-01  Anders Carlsson  <andersca@apple.com>
983
984         Migrate more headers
985         https://bugs.webkit.org/show_bug.cgi?id=131068
986
987         Reviewed by Tim Horton.
988
989         * MigrateHeaders.make:
990
991 2014-04-01  Manuel Rego Casasnovas  <rego@igalia.com>
992
993         [CSS Grid Layout] Enable runtime feature if feature flag is enabled
994         https://bugs.webkit.org/show_bug.cgi?id=130013
995
996         Reviewed by Simon Fraser.
997
998         Enable CSS Grid Layout runtime feature when ENABLE_CSS_GRID_LAYOUT flag is true.
999
1000         * WebView/WebPreferences.mm:
1001         (+[WebPreferences initialize]):
1002
1003 2014-03-31  Simon Fraser  <simon.fraser@apple.com>
1004
1005         Enable WEB_TIMING on Mac and iOS
1006         https://bugs.webkit.org/show_bug.cgi?id=128064
1007
1008         Reviewed by Sam Weinig, Brent Fulgham.
1009
1010         Enable WEB_TIMING.
1011
1012         * Configurations/FeatureDefines.xcconfig:
1013
1014 2014-03-31  Dean Jackson  <dino@apple.com>
1015
1016         Remove WEB_ANIMATIONS
1017         https://bugs.webkit.org/show_bug.cgi?id=130989
1018
1019         Reviewed by Simon Fraser.
1020
1021         Remove this feature flag until we plan to implement.
1022
1023         * Configurations/FeatureDefines.xcconfig:
1024
1025 2014-03-31  Antti Koivisto  <antti@apple.com>
1026
1027         Rename TileCache to LegacyTileCache
1028         https://bugs.webkit.org/show_bug.cgi?id=130986
1029
1030         Reviewed by Simon Fraser.
1031
1032         * WebView/WebView.mm:
1033         (+[WebView drainLayerPool]):
1034         (+[WebView _setTileCacheLayerPoolCapacity:]):
1035
1036 2014-03-28  Darin Adler  <darin@apple.com>
1037
1038         Fix recently-introduced off-by-one error in centerTruncateToBuffer
1039         https://bugs.webkit.org/show_bug.cgi?id=130889
1040
1041         Reviewed by Alexey Proskuryakov.
1042
1043         * Misc/WebStringTruncator.mm:
1044         (defaultMenuFont): Changed to use NeverDestroyed since I had to touch this file anyway.
1045         (fontFromNSFont): Ditto. Also improved variable names a bit.
1046         (+[WebStringTruncator initialize]): Added threading initialization, needed for main
1047         thread assertions in string truncator code.
1048
1049 2014-03-27  Commit Queue  <commit-queue@webkit.org>
1050
1051         Unreviewed, rolling out r166360.
1052         https://bugs.webkit.org/show_bug.cgi?id=130869
1053
1054         Seems to have broken PLT (Requested by ap on #webkit).
1055
1056         Reverted changeset:
1057
1058         "Connection::dispatchOneMessage() can be re-entered while
1059         handling Cmd-key menu"
1060         https://bugs.webkit.org/show_bug.cgi?id=130767
1061         http://trac.webkit.org/changeset/166360
1062
1063 2014-03-27  Alexey Proskuryakov  <ap@apple.com>
1064
1065         Connection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
1066         equivalents, ASSERT(!_data->_keyDownEventBeingResent)
1067         https://bugs.webkit.org/show_bug.cgi?id=130767
1068         <rdar://problem/16307487>
1069
1070         Reviewed by Darin Adler.
1071
1072         Switched to a WebCore wrapper for RunLoop::initializeMainRunLoop that adds
1073         NSModalPanelRunLoopMode to RunLoop event source and timer modes.
1074
1075         * Carbon/CarbonWindowAdapter.mm: (+[CarbonWindowAdapter initialize]):
1076         * History/WebBackForwardList.mm: (+[WebBackForwardList initialize]):
1077         * History/WebHistoryItem.mm: (+[WebHistoryItem initialize]):
1078         * Misc/WebCache.mm: (+[WebCache initialize]):
1079         * Misc/WebElementDictionary.mm: (+[WebElementDictionary initialize]):
1080         * Misc/WebIconDatabase.mm: (+[WebIconDatabase initialize]):
1081         * Plugins/Hosted/WebHostedNetscapePluginView.mm: (+[WebHostedNetscapePluginView initialize]):
1082         * Plugins/WebBaseNetscapePluginView.mm:
1083         * Plugins/WebBasePluginPackage.mm:
1084         * Plugins/WebNetscapePluginView.mm: (+[WebNetscapePluginView initialize]):
1085         * WebCoreSupport/WebEditorClient.mm: (+[WebUndoStep initialize]):
1086         * WebCoreSupport/WebFrameLoaderClient.mm:
1087         * WebView/WebArchive.mm: (+[WebArchivePrivate initialize]):
1088         * WebView/WebDataSource.mm: (+[WebDataSource initialize]):
1089         * WebView/WebHTMLView.mm:
1090         (+[WebHTMLViewPrivate initialize]):
1091         (+[WebHTMLView initialize]):
1092         * WebView/WebPreferences.mm: (+[WebPreferences initialize]):
1093         * WebView/WebResource.mm: (+[WebResourcePrivate initialize]):
1094         * WebView/WebTextIterator.mm: (+[WebTextIteratorPrivate initialize]):
1095         * WebView/WebView.mm: (+[WebView initialize]):
1096         * WebView/WebViewData.mm: (+[WebViewPrivate initialize]):
1097
1098 2014-03-26  Timothy Hatcher  <timothy@apple.com>
1099
1100         Propagate the hiddenFromInspector flag on ResourceRequest in
1101         places when a new request a made or passed between processes.
1102
1103         https://bugs.webkit.org/show_bug.cgi?id=130741
1104
1105         Reviewed by Joseph Pecoraro.
1106
1107         * WebCoreSupport/WebFrameLoaderClient.mm:
1108         (WebFrameLoaderClient::dispatchWillSendRequest): Copy hiddenFromInspector to
1109         the new request.
1110
1111 2014-03-26  Zoltan Horvath  <zoltan@webkit.org>
1112
1113         [CSS Shapes] Remove shape-inside support
1114         https://bugs.webkit.org/show_bug.cgi?id=130698
1115
1116         Reviewed by David Hyatt.
1117
1118         * Configurations/FeatureDefines.xcconfig:
1119
1120 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
1121
1122         [iOS] Inspector View Indication Support
1123         https://bugs.webkit.org/show_bug.cgi?id=130709
1124
1125         Reviewed by Simon Fraser.
1126
1127         * WebCoreSupport/WebInspectorClient.h:
1128         * WebCoreSupport/WebInspectorClient.mm:
1129         (WebInspectorClient::didSetSearchingForNode): Deleted.
1130         (WebInspectorClient::releaseFrontend): Deleted.
1131         * WebView/WebView.mm:
1132         (-[WebView setShowingInspectorIndication:]):
1133         * WebView/WebViewPrivate.h:
1134         Renamed methods.
1135
1136 2014-03-24  Brent Fulgham  <bfulgham@apple.com>
1137
1138         Activate WebVTT Tests Once Merging is Complete
1139         https://bugs.webkit.org/show_bug.cgi?id=130420
1140
1141         Reviewed by Eric Carlson.
1142
1143         * Configurations/FeatureDefines.xcconfig: Turn on ENABLE(WEBVTT_REGIONS)
1144
1145 2014-03-24  Andy Estes  <aestes@apple.com>
1146
1147         [iOS] Download support by CFURLDownloadRef under USE(CFNETWORK).
1148         https://bugs.webkit.org/show_bug.cgi?id=129322
1149
1150         Reviewed by Anders Carlsson.
1151
1152         * WebCoreSupport/WebFrameLoaderClient.mm:
1153         (WebFrameLoaderClient::convertMainResourceLoadToDownload): Use the
1154         RetainPtr returned by releaseConnectionForDownload() rather than
1155         manually releasing.
1156
1157 2014-03-24  Jon Lee  <jonlee@apple.com>
1158
1159         Build fixes.
1160
1161         Unreviewed.
1162
1163         * WebInspector/WebNodeHighlightView.mm: Missing include to GeometryUtilities.
1164
1165 2014-03-23  Sam Weinig  <sam@webkit.org>
1166
1167         Remove some unnecessary .get()s that Darin noticed.
1168
1169         * WebView/WebHTMLRepresentation.mm:
1170         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1171         * WebView/WebHTMLView.mm:
1172         (-[WebHTMLView attributedString]):
1173
1174 2014-03-23  Sam Weinig  <sam@webkit.org>
1175
1176         Simplify the HTMLConverter interface (Part 2)
1177         https://bugs.webkit.org/show_bug.cgi?id=130654
1178
1179         Reviewed by Darin Adler.
1180
1181         * WebView/WebHTMLRepresentation.mm:
1182         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1183         * WebView/WebHTMLView.mm:
1184         (-[WebHTMLView attributedSubstringFromRange:]):
1185         (-[WebHTMLView attributedString]):
1186         (-[WebHTMLView selectedAttributedString]):
1187
1188 2014-03-23  Darin Adler  <darin@apple.com>
1189
1190         Remove code in HTMLObjectElement attribute parsing that forces style resolution and layout
1191         https://bugs.webkit.org/show_bug.cgi?id=130653
1192
1193         Reviewed by Antti Koivisto.
1194
1195         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
1196         doing a static_cast.
1197
1198 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
1199
1200         Don't flush compositing layers within FrameView::willPaintContents()
1201         https://bugs.webkit.org/show_bug.cgi?id=130627
1202
1203         Reviewed by Sam Weinig.
1204         
1205         Make _flushCompositingChanges private so DRT can call it;
1206         moved it into the Private category.
1207
1208         * WebView/WebView.mm:
1209         (-[WebView _flushCompositingChanges]):
1210         * WebView/WebViewPrivate.h:
1211
1212 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
1213
1214         Remove duplicate line added during merging
1215         https://bugs.webkit.org/show_bug.cgi?id=130623
1216
1217         Reviewed by Beth Dakin.
1218         
1219         Remove a duplicate call to -_viewWillDrawInternal which
1220         was added during merges.
1221
1222         * WebView/WebView.mm:
1223         (LayerFlushController::flushLayers):
1224
1225 2014-03-21  Darin Adler  <darin@apple.com>
1226
1227         Improve idiom used for string building in a few places
1228         https://bugs.webkit.org/show_bug.cgi?id=130561
1229
1230         Reviewed by Andreas Kling.
1231
1232         * WebView/WebHTMLRepresentation.mm:
1233         (regExpForLabels): Use StringBuilder.
1234
1235 2014-03-21  Darin Adler  <darin@apple.com>
1236
1237         Add a combined decodeAndFlush to TextResourceDecoder
1238         https://bugs.webkit.org/show_bug.cgi?id=130560
1239
1240         Reviewed by Andreas Kling.
1241
1242         * WebView/WebView.mm:
1243         (+[WebView _decodeData:]): Use decodeAndFlush.
1244
1245 2014-03-20  Anders Carlsson  <andersca@apple.com>
1246
1247         Fix build.
1248
1249         * MigrateHeaders.make:
1250
1251 2014-03-20  Pratik Solanki  <psolanki@apple.com>
1252
1253         [iOS] Get code to compile on older iOS versions
1254         https://bugs.webkit.org/show_bug.cgi?id=130142
1255         <rdar://problem/16302908>
1256
1257         Reviewed by Darin Adler.
1258
1259         * History/WebHistory.mm:
1260         (getDayBoundaries):
1261         * Plugins/WebPluginController.h:
1262         * Plugins/WebPluginController.mm:
1263         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
1264         * WebCoreSupport/WebFrameLoaderClient.mm:
1265         (pluginView):
1266         * WebView/WebPreferences.mm:
1267         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
1268         * WebView/WebPreferencesPrivate.h:
1269
1270 2014-03-20  Lucas Forschler  <lforschler@apple.com>
1271
1272     Rollout r165944.  Build break.
1273     
1274 2014-03-19  Pratik Solanki  <psolanki@apple.com>
1275
1276         [iOS] Get code to compile on older iOS versions
1277         https://bugs.webkit.org/show_bug.cgi?id=130142
1278         <rdar://problem/16302908>
1279
1280         Reviewed by Darin Adler.
1281
1282         * History/WebHistory.mm:
1283         (getDayBoundaries):
1284         * Plugins/WebPluginController.h:
1285         * Plugins/WebPluginController.mm:
1286         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
1287         * WebCoreSupport/WebFrameLoaderClient.mm:
1288         (pluginView):
1289         * WebView/WebPreferences.mm:
1290         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
1291         * WebView/WebPreferencesPrivate.h:
1292
1293 2014-03-19  Jer Noble  <jer.noble@apple.com>
1294
1295         [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
1296         https://bugs.webkit.org/show_bug.cgi?id=130459
1297
1298         Reviewed by Eric Carlson.
1299
1300         * WebCoreSupport/WebSystemInterface.mm:
1301         (InitWebCoreSystemInterface): Initialize the new WCSI method.
1302
1303 2014-03-19  Brady Eidson  <beidson@apple.com>
1304
1305         Filter out editable services from image menu for non-contenteditable images
1306         <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
1307
1308         Reviewed by Tim Horton.
1309
1310         * Misc/WebSharingServicePickerController.h:
1311         * Misc/WebSharingServicePickerController.mm:
1312         (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1313           Filter out editing services based on the includeEditorServices flag.
1314         * WebCoreSupport/WebContextMenuClient.mm:
1315         (WebContextMenuClient::contextMenuForEvent):
1316
1317 2014-03-19  Jer Noble  <jer.noble@apple.com>
1318
1319         [iOS] Disable the video plugin proxy by default on WK1.
1320         https://bugs.webkit.org/show_bug.cgi?id=130460
1321
1322         Reviewed by Eric Carlson.
1323
1324         Update the defaults to universally enable the AVFoundationEnabled preference, disable the
1325         VideoPluginProxyEnabled preference, and on iOS only enable the AVKitEnabled preference.
1326
1327         * WebView/WebPreferences.mm:
1328         (+[WebPreferences initialize]):
1329
1330 2014-03-18  Samuel White  <samuel_white@apple.com>
1331
1332         AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
1333         https://bugs.webkit.org/show_bug.cgi?id=130250
1334
1335         Reviewed by Chris Fleizach.
1336
1337         Added ability to toggle enhanced accessibility on and off to support tests that require it.
1338
1339         * WebView/WebFrame.mm:
1340         (-[WebFrame enhancedAccessibilityEnabled]):
1341         (-[WebFrame setEnhancedAccessibility:]):
1342         * WebView/WebFramePrivate.h:
1343
1344 2014-03-17  Filip Pizlo  <fpizlo@apple.com>
1345
1346         More FTL enabling.
1347
1348         Rubber stamped by Dan Bernstein.
1349
1350         * Configurations/FeatureDefines.xcconfig:
1351
1352 2014-03-17  Andy Estes  <aestes@apple.com>
1353
1354         Remove staging code added for <http://webkit.org/b/129358> [iOS] Support network state notification using CPNetworkObserver
1355
1356         Reviewed by Enrica Casucci.
1357
1358         * WebView/WebView.mm:
1359
1360 2014-03-17  Anders Carlsson  <andersca@apple.com>
1361
1362         WebKitLegacy headers should #import the relevant WebKit headers
1363         https://bugs.webkit.org/show_bug.cgi?id=130372
1364         <rdar://problem/16349094>
1365
1366         Reviewed by Dan Bernstein.
1367
1368         Create forwarding headers instead.
1369
1370         * WebKitLegacy/MigrateHeadersToLegacy.make:
1371
1372 2014-03-17  Tim Horton  <timothy_horton@apple.com>
1373
1374         Rename WKThumbnailView to _WKThumbnailView
1375         https://bugs.webkit.org/show_bug.cgi?id=130361
1376
1377         Reviewed by Anders Carlsson.
1378
1379         * MigrateHeaders.make:
1380
1381 2014-03-17  David Farler  <dfarler@apple.com>
1382
1383         REGRESSION: WebKitLegacy causes ASan build to fail
1384         <rdar://problem/16344326>
1385
1386         Reviewed by David Kilzer.
1387
1388         * Configurations/DebugRelease.xcconfig: Remove $(inherited) from
1389         OTHER_CFLAGS, OTHER_CPLUSPLUSFLAGS, OTHER_LDFLAGS to prevent
1390         double complete ASAN flags.
1391
1392 2014-03-16  Brent Fulgham  <bfulgham@apple.com>
1393
1394         Provide preference to enable additional AVFoundation options
1395         https://bugs.webkit.org/show_bug.cgi?id=130275
1396
1397         Reviewed by Eric Carlson.
1398
1399         * WebView/WebPreferenceKeysPrivate.h: Added new preference.
1400         * WebView/WebPreferences.mm:
1401         (+[WebPreferences initialize]): Initialize preference to false.
1402         (-[WebPreferences isInheritURIQueryComponentEnabled]): Added.
1403         (-[WebPreferences setEnableInheritURIQueryComponent:]): Added.
1404         * WebView/WebPreferencesPrivate.h:
1405         * WebView/WebView.mm:
1406         (-[WebView _preferencesChanged:]): Handle new preference.
1407
1408 2014-03-16  Darin Adler  <darin@apple.com>
1409
1410         Remove all deprecatedCharacters use from WebKit directory
1411         https://bugs.webkit.org/show_bug.cgi?id=130305
1412
1413         Reviewed by Andreas Kling.
1414
1415         * History/BinaryPropertyList.cpp:
1416         (BinaryPropertyListSerializer::appendStringObject): Use operator[]
1417         instead of deprecatedCharacters.
1418
1419 2014-03-14  Mark Rowe  <mrowe@apple.com>
1420
1421         Fix the production build.
1422
1423         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
1424         be at the expected relative path when working from installed source.
1425
1426         * Configurations/Base.xcconfig:
1427
1428 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
1429
1430         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
1431         https://bugs.webkit.org/show_bug.cgi?id=130276
1432         <rdar://problem/16266927>
1433         
1434         Reviewed by Simon Fraser.
1435
1436         * Carbon/CarbonUtils.h:
1437         * Carbon/CarbonUtils.m:
1438         * Carbon/CarbonWindowAdapter.h:
1439         * Carbon/CarbonWindowAdapter.mm:
1440         * Carbon/CarbonWindowContentView.h:
1441         * Carbon/CarbonWindowContentView.m:
1442         * Carbon/CarbonWindowFrame.h:
1443         * Carbon/CarbonWindowFrame.m:
1444         * Carbon/HIViewAdapter.h:
1445         * Carbon/HIViewAdapter.m:
1446         * Carbon/HIWebView.h:
1447         * Carbon/HIWebView.mm:
1448         * DOM/WebDOMOperations.h:
1449         * DOM/WebDOMOperations.mm:
1450         * DOM/WebDOMOperationsInternal.h:
1451         * DOM/WebDOMOperationsPrivate.h:
1452         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
1453         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1454         * DefaultDelegates/WebDefaultEditingDelegate.h:
1455         * DefaultDelegates/WebDefaultEditingDelegate.m:
1456         * DefaultDelegates/WebDefaultPolicyDelegate.h:
1457         * DefaultDelegates/WebDefaultPolicyDelegate.m:
1458         * DefaultDelegates/WebDefaultUIDelegate.h:
1459         * DefaultDelegates/WebDefaultUIDelegate.m:
1460         * History/WebBackForwardList.h:
1461         * History/WebBackForwardList.mm:
1462         * History/WebBackForwardListInternal.h:
1463         * History/WebBackForwardListPrivate.h:
1464         * History/WebHistory.h:
1465         * History/WebHistory.mm:
1466         * History/WebHistoryInternal.h:
1467         * History/WebHistoryItem.h:
1468         * History/WebHistoryItem.mm:
1469         * History/WebHistoryItemInternal.h:
1470         * History/WebHistoryItemPrivate.h:
1471         * History/WebHistoryPrivate.h:
1472         * History/WebURLsWithTitles.h:
1473         * History/WebURLsWithTitles.m:
1474         * MigrateHeaders.make:
1475         * Misc/OldWebAssertions.c:
1476         * Misc/WebCache.h:
1477         * Misc/WebCache.mm:
1478         * Misc/WebCoreStatistics.h:
1479         * Misc/WebCoreStatistics.mm:
1480         * Misc/WebDownload.h:
1481         * Misc/WebDownload.mm:
1482         * Misc/WebDownloadInternal.h:
1483         * Misc/WebElementDictionary.h:
1484         * Misc/WebElementDictionary.mm:
1485         * Misc/WebIconDatabase.h:
1486         * Misc/WebIconDatabase.mm:
1487         * Misc/WebIconDatabaseDelegate.h:
1488         * Misc/WebIconDatabaseInternal.h:
1489         * Misc/WebIconDatabasePrivate.h:
1490         * Misc/WebKit.h:
1491         * Misc/WebKitErrors.h:
1492         * Misc/WebKitErrors.m:
1493         * Misc/WebKitErrorsPrivate.h:
1494         * Misc/WebKitLogging.h:
1495         * Misc/WebKitLogging.m:
1496         * Misc/WebKitNSStringExtras.h:
1497         * Misc/WebKitNSStringExtras.mm:
1498         * Misc/WebKitStatistics.h:
1499         * Misc/WebKitStatistics.m:
1500         * Misc/WebKitStatisticsPrivate.h:
1501         * Misc/WebKitSystemBits.h:
1502         * Misc/WebKitSystemBits.m:
1503         * Misc/WebKitVersionChecks.h:
1504         * Misc/WebKitVersionChecks.m:
1505         * Misc/WebLocalizableStrings.h:
1506         * Misc/WebLocalizableStrings.mm:
1507         * Misc/WebNSArrayExtras.h:
1508         * Misc/WebNSArrayExtras.m:
1509         * Misc/WebNSControlExtras.h:
1510         * Misc/WebNSControlExtras.m:
1511         * Misc/WebNSDataExtras.h:
1512         * Misc/WebNSDataExtras.m:
1513         * Misc/WebNSDataExtrasPrivate.h:
1514         * Misc/WebNSDictionaryExtras.h:
1515         * Misc/WebNSDictionaryExtras.m:
1516         * Misc/WebNSEventExtras.h:
1517         * Misc/WebNSEventExtras.m:
1518         * Misc/WebNSFileManagerExtras.h:
1519         * Misc/WebNSFileManagerExtras.mm:
1520         * Misc/WebNSImageExtras.h:
1521         * Misc/WebNSImageExtras.m:
1522         * Misc/WebNSObjectExtras.h:
1523         * Misc/WebNSObjectExtras.mm:
1524         * Misc/WebNSPasteboardExtras.h:
1525         * Misc/WebNSPasteboardExtras.mm:
1526         * Misc/WebNSPrintOperationExtras.h:
1527         * Misc/WebNSPrintOperationExtras.m:
1528         * Misc/WebNSURLExtras.h:
1529         * Misc/WebNSURLExtras.mm:
1530         * Misc/WebNSURLRequestExtras.h:
1531         * Misc/WebNSURLRequestExtras.m:
1532         * Misc/WebNSUserDefaultsExtras.h:
1533         * Misc/WebNSUserDefaultsExtras.mm:
1534         * Misc/WebNSViewExtras.h:
1535         * Misc/WebNSViewExtras.m:
1536         * Misc/WebNSWindowExtras.h:
1537         * Misc/WebNSWindowExtras.m:
1538         * Misc/WebStringTruncator.h:
1539         * Misc/WebStringTruncator.mm:
1540         * Misc/WebTypesInternal.h:
1541         * Panels/WebAuthenticationPanel.h:
1542         * Panels/WebAuthenticationPanel.m:
1543         * Panels/WebPanelAuthenticationHandler.h:
1544         * Panels/WebPanelAuthenticationHandler.m:
1545         * Plugins/Hosted/ProxyRuntimeObject.h:
1546         * Plugins/Hosted/ProxyRuntimeObject.mm:
1547         * Plugins/WebBaseNetscapePluginView.h:
1548         * Plugins/WebBaseNetscapePluginView.mm:
1549         * Plugins/WebBasePluginPackage.h:
1550         * Plugins/WebBasePluginPackage.mm:
1551         * Plugins/WebJavaPlugIn.h:
1552         * Plugins/WebNetscapeContainerCheckContextInfo.h:
1553         * Plugins/WebNetscapeContainerCheckPrivate.h:
1554         * Plugins/WebNetscapeContainerCheckPrivate.mm:
1555         * Plugins/WebNetscapePluginPackage.h:
1556         * Plugins/WebNetscapePluginPackage.mm:
1557         * Plugins/WebNetscapePluginStream.h:
1558         * Plugins/WebNetscapePluginStream.mm:
1559         * Plugins/WebNetscapePluginView.h:
1560         * Plugins/WebNetscapePluginView.mm:
1561         * Plugins/WebPlugin.h:
1562         * Plugins/WebPluginContainer.h:
1563         * Plugins/WebPluginContainerCheck.h:
1564         * Plugins/WebPluginContainerCheck.mm:
1565         * Plugins/WebPluginContainerPrivate.h:
1566         * Plugins/WebPluginController.h:
1567         * Plugins/WebPluginController.mm:
1568         * Plugins/WebPluginDatabase.h:
1569         * Plugins/WebPluginDatabase.mm:
1570         * Plugins/WebPluginPackage.h:
1571         * Plugins/WebPluginPackage.mm:
1572         * Plugins/WebPluginRequest.h:
1573         * Plugins/WebPluginRequest.m:
1574         * Plugins/WebPluginViewFactory.h:
1575         * Plugins/WebPluginViewFactoryPrivate.h:
1576         * Plugins/WebPluginsPrivate.h:
1577         * Plugins/WebPluginsPrivate.m:
1578         * Plugins/npapi.mm:
1579         * Storage/WebDatabaseManager.mm:
1580         * Storage/WebDatabaseManagerInternal.h:
1581         * Storage/WebDatabaseManagerPrivate.h:
1582         * WebCoreSupport/SearchPopupMenuMac.mm:
1583         * WebCoreSupport/WebAlternativeTextClient.h:
1584         * WebCoreSupport/WebAlternativeTextClient.mm:
1585         * WebCoreSupport/WebCachedFramePlatformData.h:
1586         * WebCoreSupport/WebChromeClient.h:
1587         * WebCoreSupport/WebChromeClient.mm:
1588         * WebCoreSupport/WebContextMenuClient.h:
1589         * WebCoreSupport/WebContextMenuClient.mm:
1590         * WebCoreSupport/WebDragClient.h:
1591         * WebCoreSupport/WebDragClient.mm:
1592         * WebCoreSupport/WebEditorClient.h:
1593         * WebCoreSupport/WebEditorClient.mm:
1594         * WebCoreSupport/WebFrameLoaderClient.h:
1595         * WebCoreSupport/WebFrameLoaderClient.mm:
1596         * WebCoreSupport/WebIconDatabaseClient.h:
1597         * WebCoreSupport/WebIconDatabaseClient.mm:
1598         * WebCoreSupport/WebInspectorClient.h:
1599         * WebCoreSupport/WebInspectorClient.mm:
1600         * WebCoreSupport/WebJavaScriptTextInputPanel.h:
1601         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1602         * WebCoreSupport/WebSecurityOrigin.mm:
1603         * WebCoreSupport/WebSecurityOriginInternal.h:
1604         * WebCoreSupport/WebSecurityOriginPrivate.h:
1605         * WebCoreSupport/WebSystemInterface.h:
1606         * WebCoreSupport/WebSystemInterface.mm:
1607         * WebInspector/WebInspector.h:
1608         * WebInspector/WebInspector.mm:
1609         * WebInspector/WebInspectorPrivate.h:
1610         * WebInspector/WebNodeHighlight.h:
1611         * WebInspector/WebNodeHighlight.mm:
1612         * WebInspector/WebNodeHighlightView.h:
1613         * WebInspector/WebNodeHighlightView.mm:
1614         * WebInspector/WebNodeHighlighter.h:
1615         * WebInspector/WebNodeHighlighter.mm:
1616         * WebKitLegacy/MigrateHeadersToLegacy.make:
1617         * WebKitPrefix.h:
1618         * WebView/WebArchive.h:
1619         * WebView/WebArchive.mm:
1620         * WebView/WebArchiveInternal.h:
1621         * WebView/WebClipView.h:
1622         * WebView/WebClipView.mm:
1623         * WebView/WebDashboardRegion.h:
1624         * WebView/WebDashboardRegion.mm:
1625         * WebView/WebDataSource.h:
1626         * WebView/WebDataSource.mm:
1627         * WebView/WebDataSourceInternal.h:
1628         * WebView/WebDataSourcePrivate.h:
1629         * WebView/WebDelegateImplementationCaching.h:
1630         * WebView/WebDelegateImplementationCaching.mm:
1631         * WebView/WebDocument.h:
1632         * WebView/WebDocumentInternal.h:
1633         * WebView/WebDocumentLoaderMac.h:
1634         * WebView/WebDocumentLoaderMac.mm:
1635         * WebView/WebDocumentPrivate.h:
1636         * WebView/WebDynamicScrollBarsViewInternal.h:
1637         * WebView/WebEditingDelegate.h:
1638         * WebView/WebEditingDelegatePrivate.h:
1639         * WebView/WebFormDelegate.h:
1640         * WebView/WebFormDelegate.m:
1641         * WebView/WebFormDelegatePrivate.h:
1642         * WebView/WebFrame.h:
1643         * WebView/WebFrame.mm:
1644         * WebView/WebFrameInternal.h:
1645         * WebView/WebFrameLoadDelegate.h:
1646         * WebView/WebFrameLoadDelegatePrivate.h:
1647         * WebView/WebFramePrivate.h:
1648         * WebView/WebFrameView.h:
1649         * WebView/WebFrameView.mm:
1650         * WebView/WebFrameViewInternal.h:
1651         * WebView/WebFrameViewPrivate.h:
1652         * WebView/WebHTMLRepresentation.h:
1653         * WebView/WebHTMLRepresentation.mm:
1654         * WebView/WebHTMLRepresentationPrivate.h:
1655         * WebView/WebHTMLView.h:
1656         * WebView/WebHTMLView.mm:
1657         * WebView/WebHTMLViewInternal.h:
1658         * WebView/WebHTMLViewPrivate.h:
1659         * WebView/WebNotification.h:
1660         * WebView/WebNotification.mm:
1661         * WebView/WebNotificationInternal.h:
1662         * WebView/WebPDFRepresentation.h:
1663         * WebView/WebPDFRepresentation.mm:
1664         * WebView/WebPDFView.h:
1665         * WebView/WebPDFView.mm:
1666         * WebView/WebPolicyDelegate.h:
1667         * WebView/WebPolicyDelegate.mm:
1668         * WebView/WebPolicyDelegatePrivate.h:
1669         * WebView/WebPreferenceKeysPrivate.h:
1670         * WebView/WebPreferences.h:
1671         * WebView/WebPreferences.mm:
1672         * WebView/WebPreferencesPrivate.h:
1673         * WebView/WebRenderLayer.h:
1674         * WebView/WebRenderLayer.mm:
1675         * WebView/WebRenderNode.h:
1676         * WebView/WebRenderNode.mm:
1677         * WebView/WebResource.h:
1678         * WebView/WebResource.mm:
1679         * WebView/WebResourceInternal.h:
1680         * WebView/WebResourceLoadDelegate.h:
1681         * WebView/WebResourceLoadDelegatePrivate.h:
1682         * WebView/WebResourcePrivate.h:
1683         * WebView/WebScriptDebugDelegate.h:
1684         * WebView/WebScriptDebugDelegate.mm:
1685         * WebView/WebScriptDebugger.h:
1686         * WebView/WebScriptDebugger.mm:
1687         * WebView/WebTextCompletionController.mm:
1688         * WebView/WebUIDelegate.h:
1689         * WebView/WebUIDelegatePrivate.h:
1690         * WebView/WebView.h:
1691         * WebView/WebView.mm:
1692         * WebView/WebViewData.h:
1693         * WebView/WebViewData.mm:
1694         * WebView/WebViewInternal.h:
1695         * WebView/WebViewPrivate.h:
1696
1697 2014-03-14  Ryosuke Niwa  <rniwa@webkit.org>
1698
1699         REGRESSION(r165385): [WebTextIterator currentRange] crashes
1700         https://bugs.webkit.org/show_bug.cgi?id=130271
1701
1702         Reviewed by Anders Carlsson.
1703
1704         After r165385, TextIterator::range no longer checked the nullity of m_positionNode. As a result,
1705         [WebTextIterator currentRange] which simply calls TextIterator::range crashes when an application
1706         that embeds WebKit doesn't check [WebTextIterator atEnd] first.
1707
1708         Preserve the old public API behavior by checking atEnd in [WebTextIterator currentRange].
1709
1710         * WebView/WebTextIterator.mm:
1711         (-[WebTextIterator currentRange]):
1712
1713 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
1714
1715         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
1716         https://bugs.webkit.org/show_bug.cgi?id=129612
1717
1718         Reviewed by Darin Adler.
1719
1720         For new code use static NeverDestroyed<T> instead.
1721
1722         * History/WebBackForwardList.mm:
1723         (backForwardLists):
1724         * History/WebHistoryItem.mm:
1725         (historyItemWrappers):
1726         * Misc/WebNSPasteboardExtras.mm:
1727         (+[NSPasteboard _web_writableTypesForURL]):
1728         (_writableTypesForImageWithoutArchive):
1729         (_writableTypesForImageWithArchive):
1730         * Misc/WebStringTruncator.mm:
1731         (fontFromNSFont):
1732         * Plugins/Hosted/NetscapePluginHostManager.mm:
1733         (WebKit::NetscapePluginHostManager::shared):
1734         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1735         (WebKit::pluginProxyMap):
1736         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1737         (WebKit::globalExceptionString):
1738         * Plugins/Hosted/ProxyInstance.mm:
1739         (WebKit::proxyClass):
1740         * Plugins/WebNetscapePluginStream.mm:
1741         (streams):
1742         * Storage/WebDatabaseManager.mm:
1743         (transactionBackgroundTaskIdentifierLock):
1744         * WebCoreSupport/WebUserMediaClient.mm:
1745         (userMediaRequestsMap):
1746         * WebView/WebHTMLRepresentation.mm:
1747         (regExpForLabels):
1748         * WebView/WebView.mm:
1749         (aeDescFromJSValue):
1750
1751 2014-03-13  Tim Horton  <timothy_horton@apple.com>
1752
1753         Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
1754
1755         Rubber-stamped by Mark Rowe.
1756
1757         One-too-few "..".
1758
1759         * Configurations/Base.xcconfig:
1760
1761 2014-03-13  Anders Carlsson  <andersca@apple.com>
1762
1763         Fix build.
1764
1765         * Misc/WebSharingServicePickerController.mm:
1766
1767 2014-03-13  Radu Stavila  <stavila@adobe.com>
1768
1769         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
1770         https://bugs.webkit.org/show_bug.cgi?id=130087
1771
1772         Reviewed by Mark Rowe.
1773
1774         Disable garbage collection on macosx when not using internal SDK.
1775
1776         * Configurations/Base.xcconfig:
1777
1778 2014-03-10  Darin Adler  <darin@apple.com>
1779
1780         Avoid copy-prone idiom "for (auto item : collection)"
1781         https://bugs.webkit.org/show_bug.cgi?id=129990
1782
1783         Reviewed by Geoffrey Garen.
1784
1785         * WebView/WebFrame.mm:
1786         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
1787         Use auto*. Also removed uneeded ASSERT_NO_EXCEPTION, which is already
1788         the default without specifying it explicitly.
1789
1790 2014-03-12  Brian Burg  <bburg@apple.com>
1791
1792         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
1793         https://bugs.webkit.org/show_bug.cgi?id=129744
1794
1795         Reviewed by Timothy Hatcher.
1796
1797         * WebInspector/WebInspector.mm:
1798         (-[WebInspector evaluateInFrontend:script:]):
1799         * WebInspector/WebInspectorPrivate.h:
1800
1801 2014-03-12  Dean Jackson  <dino@apple.com>
1802
1803         [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
1804         https://bugs.webkit.org/show_bug.cgi?id=130162
1805
1806         Reviewed by Simon Fraser.
1807
1808         Implement the webGLPolicyForURL methods, calling into WebKitSystemInterface.
1809
1810         * Configurations/WebKit.xcconfig: Add MobileAsset to iOS config.
1811         * WebCoreSupport/WebFrameLoaderClient.h:
1812         * WebCoreSupport/WebFrameLoaderClient.mm:
1813
1814 2014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
1815
1816         Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
1817         https://bugs.webkit.org/show_bug.cgi?id=130118
1818
1819         Reviewed by Timothy Hatcher.
1820
1821         * Configurations/FeatureDefines.xcconfig:
1822
1823         * WebCoreSupport/WebInspectorClient.mm:
1824         (WebInspectorClient::indicate):
1825         (WebInspectorClient::hideIndication):
1826         Properly guard REMOTE_INSPECTOR only calls.
1827
1828 2014-03-12  Tim Horton  <timothy_horton@apple.com>
1829
1830         Build fix for ENABLE(IMAGE_CONTROLS) after 165479
1831
1832         * Misc/WebSharingServicePickerController.h:
1833         * Misc/WebSharingServicePickerController.mm:
1834         Don't use new-runtime features in code that has to build 32-bit.
1835
1836 2014-03-12  Anders Carlsson  <andersca@apple.com>
1837
1838         <rdar://problem/16307346> Add new WebKitLegacy.framework.
1839
1840         Reviewed by Dan Bernstein.
1841
1842         * Configurations/WebKitLegacy.xcconfig:
1843         Add xcconfig file for the new framework.
1844
1845         * WebKitLegacy/Info.plist:
1846         Add Info.plist for WebKitLegacy.framework.
1847
1848         * WebKitLegacy/MigrateHeadersToLegacy.make:
1849         Add makefile that copies headers from WebKit to WebKitLegacy and rewrites includes from WebKit/ to WebKitLegacy/
1850         * WebKitLegacy/WebKitLegacy.cpp:
1851         Add an empty file so we'll have something to link.
1852
1853 2014-03-12  Tim Horton  <timothy_horton@apple.com>
1854
1855         Hook up image controls for WebKit1
1856         https://bugs.webkit.org/show_bug.cgi?id=130062
1857         <rdar://problem/15964809>
1858
1859         Reviewed by Brady Eidson.
1860
1861         * Misc/WebSharingServicePickerController.h: Added.
1862         * Misc/WebSharingServicePickerController.mm: Added.
1863         (-[WebSharingServicePickerController initWithImage:menuClient:]):
1864         (-[WebSharingServicePickerController menu]):
1865         (-[WebSharingServicePickerController sharingServicePicker:delegateForSharingService:]):
1866         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
1867         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1868         (-[WebSharingServicePickerController sharingService:didFailToShareItems:error:]):
1869         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
1870         Add a NSSharingServiceDelegate and NSSharingServicePickerDelegate, which will also
1871         provide a NSMenu instance for WebContextMenuClient to pop up when image controls are needed.
1872         When data is returned from the service, it is re-inserted into the image via replaceControlledImage.
1873
1874         * WebCoreSupport/WebContextMenuClient.h:
1875         * WebCoreSupport/WebContextMenuClient.mm:
1876         (WebContextMenuClient::contextMenuForEvent):
1877         Factor out code to decide which NSMenu to use, so that we can use early-returns to simplify it.
1878         If we hit an image with image controls, use the WebSharingServicePickerController's menu.
1879
1880         (WebContextMenuClient::showContextMenu):
1881         (WebContextMenuClient::clearSharingServicePickerController):
1882
1883 2014-03-10  Jer Noble  <jer.noble@apple.com>
1884
1885         [iOS][WK1] Crash in HTMLMediaElement::createElementRenderer() - "-[NSSet addObject:]: object cannot be nil"
1886         https://bugs.webkit.org/show_bug.cgi?id=129634
1887
1888         Reviewed by Eric Carlson.
1889
1890         If a plugin fails to create a NSView, a nil object is inserted into the WebPluginController's
1891         pluginViews set. This is an exceptional case, so add an ASSERT so that this error will continue
1892         to occur in debug builds, but also add an early return so as not to crash release builds.
1893
1894         * Plugins/WebPluginController.mm:
1895         (+[WebPluginController addPlugInView:]):
1896
1897 2014-03-06  Alexey Proskuryakov  <ap@apple.com>
1898
1899         [Mac] Don't perform a round-trip through WebProcess before interpreting key events
1900         https://bugs.webkit.org/show_bug.cgi?id=129812
1901
1902         Reviewed by Darin Adler.
1903
1904         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleInputMethodKeydown):
1905         Added a FIXME. WebKit1/mac is the only port that uses this roundabout way to
1906         interpret events, so it would simplify code if we switched it to WebKit2/mac model.
1907
1908 2014-03-08  Simon Fraser  <simon.fraser@apple.com>
1909
1910         [iOS Wk2] Can't scroll after going back to page in page cache
1911         https://bugs.webkit.org/show_bug.cgi?id=129989
1912         <rdar://problem/16217588>
1913
1914         Reviewed by Dan Bernstein.
1915
1916         iOS has a special FrameLoader::forceLayoutWithoutRecalculatingStyle()
1917         function that is called instead of FrameView::forceLayout(). This was unimplemented
1918         for the WK2 FrameLoaderClient, so no layout was forced, with the result
1919         that the contentSize was never updated and scrolling was broken.
1920         
1921         Fix by renaming the client function to forceLayoutOnRestoreFromPageCache()
1922         and having it return a bool to say whether the default forceLayout()
1923         should be done. WK1 can then continue to have its custom behavior,
1924         and Wk2 will simply do a forceLayout().
1925         
1926         Also remove FrameLaoderClient::forceLayout(), which was never called.
1927
1928         * WebCoreSupport/WebFrameLoaderClient.h:
1929         * WebCoreSupport/WebFrameLoaderClient.mm:
1930         (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
1931
1932 2014-03-07  Anders Carlsson  <andersca@apple.com>
1933
1934         Add the remaining WebKit2 headers to WEBKIT2_HEADERS
1935         https://bugs.webkit.org/show_bug.cgi?id=129942
1936         <rdar://problem/15920020>
1937
1938         Reviewed by Tim Horton.
1939
1940         * MigrateHeaders.make:
1941
1942 2014-03-07  Anders Carlsson  <andersca@apple.com>
1943
1944         MigrateHeaders.make should remove C SPI includes from WebKit2 headers
1945         https://bugs.webkit.org/show_bug.cgi?id=129937
1946         <rdar://problem/15920020>
1947
1948         Reviewed by Tim Horton.
1949
1950         * MigrateHeaders.make:
1951         Add WKPreferences.h to WEBKIT2_HEADERS. 
1952         Add a sed rule that deletes all lines that start with a # and contain <WebKit/*Ref.h>.
1953
1954 2014-03-07  Anders Carlsson  <andersca@apple.com>
1955
1956         Make it possible to copy WebKit2 headers to WebKit.framework
1957         https://bugs.webkit.org/show_bug.cgi?id=129935
1958         <rdar://problem/15920020>
1959
1960         Reviewed by Dan Bernstein.
1961
1962         * MigrateHeaders.make:
1963         Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
1964         The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
1965         and also have their #imports rewritten to reference WebKit instead of WebKit2.
1966
1967         * migrate-headers.sh: Added.
1968         Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
1969
1970 2014-03-07  Anders Carlsson  <andersca@apple.com>
1971
1972         Fix a typo
1973         <rdar://problem/15920020>
1974
1975         Rubber-stamped by Dan Bernstein.
1976
1977         * Configurations/WebKit.xcconfig:
1978
1979 2014-03-07  Anders Carlsson  <andersca@apple.com>
1980
1981         Tweak the WebKit2 frameworks directories
1982         https://bugs.webkit.org/show_bug.cgi?id=129910
1983         <rdar://problem/15920020>
1984
1985         Reviewed by Dan Bernstein.
1986
1987         Use an SDK relative directory for production builds.
1988
1989         * Configurations/WebKit.xcconfig:
1990
1991 2014-03-07  Anders Carlsson  <andersca@apple.com>
1992
1993         Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
1994         https://bugs.webkit.org/show_bug.cgi?id=129901
1995         <rdar://problem/15920020>
1996
1997         Reviewed by Andreas Kling.
1998
1999         * Configurations/WebKit.xcconfig:
2000
2001 2014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
2002
2003         Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
2004         https://bugs.webkit.org/show_bug.cgi?id=127944
2005
2006         Reviewed by Geoffrey Garen.
2007
2008         * WebCoreSupport/WebChromeClient.h:
2009         * WebCoreSupport/WebChromeClient.mm:
2010         Update namespaces.
2011
2012 2014-03-05  Eric Carlson  <eric.carlson@apple.com>
2013
2014         [iOS] Show external device name/type in placeholder
2015         https://bugs.webkit.org/show_bug.cgi?id=129723
2016
2017         Reviewed by Jer Noble.
2018
2019         * WebCoreSupport/WebSystemInterface.mm:
2020         (InitWebCoreSystemInterface):
2021
2022 2014-03-05  Simon Fraser  <simon.fraser@apple.com>
2023
2024         ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
2025         https://bugs.webkit.org/show_bug.cgi?id=129752
2026
2027         Reviewed by Enrica Casucci.
2028         
2029         Call URLByCanonicalizingURL() which is implemented in WebCore.
2030
2031         * Misc/WebNSURLExtras.mm:
2032         (-[NSURL _webkit_canonicalize]):
2033
2034 2014-03-04  Zalan Bujtas  <zalan@apple.com>
2035
2036         Enable device pixel repaint rect tracking.
2037         https://bugs.webkit.org/show_bug.cgi?id=129712
2038
2039         Reviewed by Simon Fraser.
2040
2041         Tracked repaint rects are device pixel snapped now to support hiDPI test cases.
2042
2043         * WebView/WebView.mm:
2044         (-[WebView trackedRepaintRects]): Keep existing behavior for now.
2045
2046 2014-03-04  Simon Fraser  <simon.fraser@apple.com>
2047
2048         Allow iOS DumpRenderTree crashes to show application-specific information
2049         https://bugs.webkit.org/show_bug.cgi?id=129705
2050
2051         Reviewed by David Kilzer.
2052
2053         Make the WKSI function SetCrashReportApplicationSpecificInformation available
2054         in iOS simulator builds.
2055
2056         * WebCoreSupport/WebSystemInterface.mm:
2057         (InitWebCoreSystemInterface):
2058
2059 2014-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
2060
2061         Merge API shims and JSLock
2062         https://bugs.webkit.org/show_bug.cgi?id=129650
2063
2064         Reviewed by Mark Lam.
2065
2066         JSLock is now taking on all of APIEntryShim's responsibilities since there is never a reason 
2067         to take just the JSLock. Ditto for DropAllLocks and APICallbackShim.
2068
2069         * WebView/WebFrame.mm:
2070         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2071
2072 2014-03-02  Darin Adler  <darin@apple.com>
2073
2074         Sort Mac platform export files so they merge better
2075         https://bugs.webkit.org/show_bug.cgi?id=129581
2076
2077         Reviewed by Sam Weinig.
2078
2079         * WebKit.exp: Ran the new sort-export-file on this.
2080
2081 2014-03-02  Darin Adler  <darin@apple.com>
2082
2083         Change public text iterator API implementations to not depend on 16-bit character pointers
2084         https://bugs.webkit.org/show_bug.cgi?id=129566
2085
2086         Reviewed by Anders Carlsson.
2087
2088         * WebView/WebTextIterator.mm:
2089         (-[WebTextIterator initWithRange:]): Use make_unique instead of adoptPtr.
2090         (-[WebTextIterator advance]): Clear out the upconverted text since we are moving on to the
2091         next text.
2092         (-[WebTextIterator currentTextPointer]): Upconvert if we have 8-bit text.
2093         (-[WebTextIterator currentTextLength]): Call TextIterator::text().length() since we will
2094         probably be removing TextIterator::length eventually.
2095
2096 2014-03-01  Pratik Solanki  <psolanki@apple.com>
2097
2098         [iOS] selectionImageForcingBlackText should return autoreleased object
2099         https://bugs.webkit.org/show_bug.cgi?id=129437
2100         <rdar://problem/15810384>
2101
2102         Reviewed by Darin Adler.
2103
2104         * WebView/WebHTMLView.mm:
2105         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
2106
2107 2014-02-28  Dan Bernstein  <mitz@apple.com>
2108
2109         [Mac] Remove MailQuirksUserScript.js
2110         https://bugs.webkit.org/show_bug.cgi?id=129536
2111
2112         Reviewed by Andy Estes.
2113
2114         * Configurations/WebKit.xcconfig: Removed from EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
2115         * Misc/MailQuirksUserScript.js: Removed. This file has been unused since r147447.
2116
2117 2014-02-28  Timothy Hatcher  <timothy@apple.com>
2118
2119         Properly handle when Test.html is not present in Production builds.
2120
2121         https://bugs.webkit.org/show_bug.cgi?id=129506
2122
2123         Reviewed by Joseph Pecoraro.
2124
2125         * WebCoreSupport/WebInspectorClient.mm:
2126         (-[WebInspectorWindowController inspectorTestPagePath]):
2127         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
2128
2129 2014-02-27  Brian Burg  <bburg@apple.com>
2130
2131         Web Inspector: model tests should use a special Test.html inspector page
2132         https://bugs.webkit.org/show_bug.cgi?id=129190
2133
2134         Reviewed by Timothy Hatcher.
2135
2136         Support creating a separate test inspector page, based on the value of
2137         InspectorController::isUnderTest(). Modify the navigation policy to check
2138         the URL against both normal and test inspector pages.
2139
2140         * WebCoreSupport/WebInspectorClient.mm:
2141         (WebInspectorClient::openInspectorFrontend):
2142         (-[WebInspectorWindowController init]):
2143         (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
2144         Move the initial navigation of the inspector page to this method, and change
2145         the URL based on the value of InspectorController::isUnderTest().
2146
2147         (-[WebInspectorWindowController inspectorTestPagePath]): Added.
2148         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
2149
2150 2014-02-27  Pratik Solanki  <psolanki@apple.com>
2151
2152         Assertion failure at CachedResource.h:196: ASSERT(!m_purgeableData)
2153         https://bugs.webkit.org/show_bug.cgi?id=129349
2154         <rdar://problem/14871837>
2155
2156         Reviewed by Joseph Pecoraro.
2157
2158         The code for clearing out memory mapped notification callbacks is only needed when loading
2159         PDFs. And in such cases, we always have dataSourceDelegate object. So make this code
2160         conditional on its presence so that we don't trigger the assert for non-PDF main resources.
2161
2162         * WebView/WebDataSource.mm:
2163         (-[WebDataSource dealloc]):
2164
2165 2014-02-26  Andy Estes  <aestes@apple.com>
2166
2167         [iOS] Support network state notification using CPNetworkObserver
2168         https://bugs.webkit.org/show_bug.cgi?id=129358
2169
2170         Reviewed by Dan Bernstein.
2171
2172         * WebView/WebView.mm:
2173         (-[WebView _setNetworkStateIsOnline:]): Retained an empty
2174         implementation for binary compatibility for UIKit.
2175         (+[WebView _doNotStartObservingNetworkReachability]): Called
2176         Settings::setShouldOptOutOfNetworkStateObservation(true).
2177         * WebView/WebViewPrivate.h: Removed declaration of
2178         _setNetworkStateIsOnline: and declared
2179         _doNotStartObservingNetworkReachability.
2180
2181 2014-02-25  Anders Carlsson  <andersca@apple.com>
2182
2183         Get rid of VisitedLinkStrategy
2184         https://bugs.webkit.org/show_bug.cgi?id=129324
2185
2186         Reviewed by Dan Bernstein.
2187
2188         * WebCoreSupport/WebPlatformStrategies.h:
2189         * WebCoreSupport/WebPlatformStrategies.mm:
2190
2191 2014-02-25  Sergio Villar Senin  <svillar@igalia.com>
2192
2193         [CSS Grid Layout] Add ENABLE flag
2194         https://bugs.webkit.org/show_bug.cgi?id=129153
2195
2196         Reviewed by Simon Fraser.
2197
2198         Added ENABLE_CSS_GRID_LAYOUT feature flag.
2199
2200         * Configurations/FeatureDefines.xcconfig:
2201
2202 2014-02-24  Anders Carlsson  <andersca@apple.com>
2203
2204         Add WebViewGroup
2205         https://bugs.webkit.org/show_bug.cgi?id=129280
2206
2207         Reviewed by Dan Bernstein.
2208
2209         This is a first step towards getting rid of page groups in WebCore. The idea is that
2210         everything that is per page group in WebCore will be per page. In order to retain WebKit1 compatibility
2211         WebViewGroup is going to take over more and more responsibility from WebCore::PageGroup.
2212
2213         * WebCoreSupport/WebViewGroup.h: Added.
2214         * WebCoreSupport/WebViewGroup.mm: Added.
2215         (webViewGroups):
2216         (WebViewGroup::getOrCreate):
2217         (WebViewGroup::WebViewGroup):
2218         (WebViewGroup::~WebViewGroup):
2219         (WebViewGroup::addWebView):
2220         (WebViewGroup::removeWebView):
2221         * WebView/WebView.mm:
2222         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2223         (-[WebView _close]):
2224         (-[WebView setGroupName:]):
2225         * WebView/WebViewData.h:
2226         * WebView/WebViewData.mm:
2227
2228 2014-02-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
2229
2230         Code cleanup: remove leftover ENABLE(WORKERS) macros and support.
2231         https://bugs.webkit.org/show_bug.cgi?id=129255
2232
2233         Reviewed by Csaba Osztrogonác.
2234
2235         ENABLE_WORKERS macro was removed in r159679.
2236         Support is now also removed from xcconfig files.
2237
2238         * Configurations/FeatureDefines.xcconfig:
2239
2240 2014-02-24  David Kilzer  <ddkilzer@apple.com>
2241
2242         Remove redundant setting in FeatureDefines.xcconfig
2243
2244         * Configurations/FeatureDefines.xcconfig:
2245
2246 2014-02-23  Sam Weinig  <sam@webkit.org>
2247
2248         Update FeatureDefines.xcconfig
2249
2250         Rubber-stamped by Anders Carlsson.
2251
2252         * Configurations/FeatureDefines.xcconfig:
2253
2254 2014-02-23  Sam Weinig  <sam@webkit.org>
2255
2256         Move telephone number detection behind its own ENABLE macro
2257         https://bugs.webkit.org/show_bug.cgi?id=129236
2258
2259         Reviewed by Dean Jackson.
2260
2261         * Configurations/FeatureDefines.xcconfig:
2262         Add ENABLE_TELEPHONE_NUMBER_DETECTION.
2263
2264 2014-02-21  Sam Weinig  <sam@webkit.org>
2265
2266         Expose phase and momentum phase as SPI on DOMWheelEvent
2267         <rdar://problem/16110871>
2268         https://bugs.webkit.org/show_bug.cgi?id=129184
2269
2270         Reviewed by Anders Carlsson.
2271
2272         * DOM/WebDOMOperations.mm:
2273         (toNSEventPhase):
2274         (-[DOMWheelEvent _phase]):
2275         (-[DOMWheelEvent _momentumPhase]):
2276         * DOM/WebDOMOperationsPrivate.h:
2277         Expose _phase and _momentumPhase as SPI.
2278
2279         * MigrateHeaders.make:
2280         Make DOMWheelEventInternal.h to WebKit.
2281
2282 2014-02-22  David Kilzer  <ddkilzer@apple.com>
2283
2284         Revert r164434 since it actually broke ASan builds
2285         <http://webkit.org/b/128871>
2286
2287         * Configurations/WebKit.xcconfig: This caused -asan-blacklist to
2288         be included twice on every compiler command, which caused clang
2289         to error out.
2290
2291 2014-02-21  Brent Fulgham  <bfulgham@apple.com>
2292
2293         Extend media support for WebVTT sources
2294         https://bugs.webkit.org/show_bug.cgi?id=129156
2295
2296         Reviewed by Eric Carlson.
2297
2298         * Configurations/FeatureDefines.xcconfig: Add new feature define for AVF_CAPTIONS
2299
2300 2014-02-20  Brady Eidson  <beidson@apple.com>
2301
2302         Add very basic image control rendering
2303         https://bugs.webkit.org/show_bug.cgi?id=129080
2304
2305         Reviewed by Tim Horton.
2306
2307         Expose the imageControlsEnabled setting to WebKit1 so DRT can use it.
2308
2309         * WebView/WebPreferenceKeysPrivate.h:
2310         * WebView/WebPreferences.mm:
2311         (+[WebPreferences initialize]):
2312         (-[WebPreferences imageControlsEnabled]):
2313         (-[WebPreferences setImageControlsEnabled:]):
2314         * WebView/WebPreferencesPrivate.h:
2315
2316         * WebView/WebView.mm:
2317         (-[WebView _preferencesChanged:]):
2318
2319 2014-02-20  David Kilzer  <ddkilzer@apple.com>
2320
2321         [ASan] WebKit1 sources are not compiled using ASAN macros
2322         <http://webkit.org/b/128871>
2323
2324         Reviewed by Brent Fulgham.
2325
2326         * Configurations/WebKit.xcconfig: Use $inherited for
2327         OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS so that ASAN_OTHER_CFLAGS
2328         and ASAN_OTHER_CPLUSPLUSFLAGS are inherited from
2329         DebugRelease.xcconfig.
2330
2331 2014-02-19  Brady Eidson  <beidson@apple.com>
2332
2333         Add FeatureDefines for image controls
2334         https://bugs.webkit.org/show_bug.cgi?id=129022
2335
2336         Reviewed by Jer Noble.
2337
2338         * Configurations/FeatureDefines.xcconfig:
2339
2340 2014-02-18  Sam Weinig  <sam@webkit.org>
2341
2342         Simplify HTML tokenizer parameterization down to what is used
2343         https://bugs.webkit.org/show_bug.cgi?id=128977
2344
2345         Reviewed by Alexey Proskuryakov.
2346
2347         Remove unused _setCustomHTMLTokenizerTimeDelay and _setCustomHTMLTokenizerChunkSize SPI.
2348
2349         * WebView/WebView.mm:
2350         * WebView/WebViewPrivate.h:
2351
2352 2014-02-17  Anders Carlsson  <andersca@apple.com>
2353
2354         Remove view source code
2355         https://bugs.webkit.org/show_bug.cgi?id=127233
2356
2357         Reviewed by Antti Koivisto.
2358
2359         * WebView/WebView.mm:
2360         * WebView/WebViewPrivate.h:
2361
2362 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
2363
2364         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
2365         https://bugs.webkit.org/show_bug.cgi?id=128681
2366
2367         Reviewed by Timothy Hatcher.
2368
2369         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
2370         WebCore/inspector/*. Besides files in there, a few other files in
2371         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
2372         and WebCore/testing were touched.
2373
2374         * WebCoreSupport/WebInspectorClient.h:
2375         * WebCoreSupport/WebInspectorClient.mm:
2376
2377 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
2378
2379         [Mac] Remove WebSerializedJSValue SPI
2380         https://bugs.webkit.org/show_bug.cgi?id=128720
2381
2382         Reviewed by Anders Carlsson.
2383
2384         * WebKit.exp:
2385         * WebView/WebSerializedJSValue.h: Removed.
2386         * WebView/WebSerializedJSValue.mm: Removed.
2387         * WebView/WebSerializedJSValuePrivate.h: Removed.
2388
2389 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
2390
2391         [Mac] All WebKit clients should encrypt WebCrypto keys automatically
2392         https://bugs.webkit.org/show_bug.cgi?id=128852
2393
2394         Reviewed by Oliver Hunt.
2395
2396         * WebCoreSupport/WebChromeClient.mm:
2397         (WebChromeClient::wrapCryptoKey):
2398         (WebChromeClient::unwrapCryptoKey):
2399         Call the default implementation if key is not provided by a client.
2400
2401 2014-02-14  Anders Carlsson  <andersca@apple.com>
2402
2403         Control tints don't update inside WebViews
2404         https://bugs.webkit.org/show_bug.cgi?id=128862
2405
2406         Reviewed by Ryosuke Niwa.
2407
2408         * WebView/WebView.mm:
2409         (-[WebView _windowChangedKeyState]):
2410         Call [super _windowChangedKeyState].
2411
2412 2014-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
2413
2414         During a copy, position:fixed gets converted to position:absolute even if only part of the document is selected
2415         https://bugs.webkit.org/show_bug.cgi?id=128688
2416
2417         Reviewed by Ryosuke Niwa.
2418
2419         Renames the ConvertPositionStyleOnCopy setting to ShouldConvertPositionStyleOnCopy
2420
2421         * WebView/WebPreferenceKeysPrivate.h:
2422         * WebView/WebPreferences.mm:
2423         (-[WebPreferences shouldConvertPositionStyleOnCopy]):
2424         (-[WebPreferences setShouldConvertPositionStyleOnCopy:]):
2425         * WebView/WebPreferencesPrivate.h:
2426         * WebView/WebView.mm:
2427         (-[WebView _preferencesChanged:]):
2428
2429 2014-02-13  Alexey Proskuryakov  <ap@apple.com>
2430
2431         [Mac] Add a WebKit1 SPI to get WebCrypto master key from a client
2432         https://bugs.webkit.org/show_bug.cgi?id=128725
2433
2434         Reviewed by Anders Carlsson.
2435
2436         * WebCoreSupport/WebChromeClient.mm:
2437         (WebChromeClient::wrapCryptoKey):
2438         (WebChromeClient::unwrapCryptoKey):
2439         * WebView/WebUIDelegatePrivate.h:
2440         Looks like UIDelegate is the closest we have to a reasonable place.
2441
2442 2014-02-13  Dan Bernstein  <mitz@apple.com>
2443
2444         iOS build fix.
2445
2446         * WebView/WebView.mm:
2447         (+[WebView registerForMemoryNotifications]):
2448
2449 2014-02-12  Alexey Proskuryakov  <ap@apple.com>
2450
2451         Wrap WebCrypto keys in SerializedScriptValue
2452         https://bugs.webkit.org/show_bug.cgi?id=128680
2453
2454         Reviewed by Anders Carlsson.
2455
2456         Retrieve a master key (placeholder code for now), and use it to wrap key data.
2457
2458         * WebCoreSupport/WebChromeClient.mm:
2459         (WebChromeClient::wrapCryptoKey):
2460         (WebChromeClient::unwrapCryptoKey):
2461
2462 2014-02-11  Ryosuke Niwa  <rniwa@webkit.org>
2463
2464         Frame::rectForSelection shouldn't instantiate FrameSelection
2465         https://bugs.webkit.org/show_bug.cgi?id=128587
2466
2467         Reviewed by Enrica Casucci.
2468
2469         * WebCoreSupport/WebEditorClient.h:
2470         * WebCoreSupport/WebEditorClient.mm:
2471         (WebEditorClient::WebEditorClient):
2472         (WebEditorClient::respondToChangedSelection):
2473
2474 2014-02-10  Myles C. Maxfield  <mmaxfield@apple.com>
2475
2476         Convert position:sticky and position:fixed properties to position:static and position:absolute upon copy
2477         https://bugs.webkit.org/show_bug.cgi?id=128194
2478
2479         Reviewed by Simon Fraser.
2480
2481         * WebView/WebPreferenceKeysPrivate.h:
2482         * WebView/WebPreferences.mm:
2483         (-[WebPreferences convertPositionStyleOnCopy]):
2484         (-[WebPreferences setConvertPositionStyleOnCopy:]):
2485         * WebView/WebPreferencesPrivate.h: Opt-in to new behavior
2486         * WebView/WebView.mm:
2487         (-[WebView _preferencesChanged:]):
2488
2489 2014-02-11  Andy Estes  <aestes@apple.com>
2490
2491         [Mac] connection:willStopBufferingData: no longer exists in NSURLConnectionDelegate
2492         https://bugs.webkit.org/show_bug.cgi?id=128583
2493
2494         Reviewed by Anders Carlsson.
2495
2496         The delegate method was removed in Snow Leopard.
2497
2498         * Misc/WebDownload.mm:
2499
2500 2014-02-11  Alexey Proskuryakov  <ap@apple.com>
2501
2502         iOS build fix.
2503
2504         * WebCoreSupport/WebChromeClient.mm: Fixed incorrectly nested ifdefs.
2505
2506 2014-02-10  Alexey Proskuryakov  <ap@apple.com>
2507
2508         Add hooks for wrapping CryptoKeys in SerializedScriptValue
2509         https://bugs.webkit.org/show_bug.cgi?id=128567
2510
2511         Reviewed by Anders Carlsson.
2512
2513         * WebCoreSupport/WebChromeClient.h:
2514         * WebCoreSupport/WebChromeClient.mm:
2515         (WebChromeClient::wrapCryptoKey):
2516         (WebChromeClient::unwrapCryptoKey):
2517         Dummy implementation, to be filled in later.
2518
2519 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
2520
2521         Cleanup the interface of FrameSelection
2522         https://bugs.webkit.org/show_bug.cgi?id=128481
2523
2524         Reviewed by Andreas Kling.
2525
2526         * WebView/WebHTMLView.mm:
2527         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2528         (-[WebHTMLView selectionRect]):
2529         (-[WebHTMLView selectionImageRect]):
2530
2531 2014-02-08  Dan Bernstein  <mitz@apple.com>
2532
2533         Remove use of PLATFORM(MAC) from WebKit/mac
2534         https://bugs.webkit.org/show_bug.cgi?id=128476
2535
2536         Reviewed by Anders Carlsson.
2537
2538         * WebCoreSupport/WebFrameLoaderClient.h:
2539         * WebCoreSupport/WebSystemInterface.mm:
2540         (InitWebCoreSystemInterface):
2541
2542 2014-02-08  Dan Bernstein  <mitz@apple.com>
2543
2544         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
2545         https://bugs.webkit.org/show_bug.cgi?id=128456
2546
2547         Reviewed by Anders Carlsson.
2548
2549         * WebCoreSupport/WebChromeClient.h:
2550         * WebCoreSupport/WebChromeClient.mm: Removed customHighlightRect and paintCustomHighlight.
2551         * WebView/WebHTMLView.mm:
2552         (-[WebHTMLViewPrivate dealloc]): Removed highlighters ivar.
2553         (-[WebHTMLViewPrivate clear]): Ditto.
2554         * WebView/WebHTMLViewInternal.h: Removed declaration.
2555         * WebView/WebHTMLViewPrivate.h: Removed WebHTMLHighlighter protocol and method declarations.
2556
2557 2014-02-08  Dan Bernstein  <mitz@apple.com>
2558
2559         iOS build fix after r163712.
2560
2561         * WebCoreSupport/WebEditorClient.h:
2562         * WebCoreSupport/WebEditorClient.mm:
2563
2564 2014-02-08  Darin Adler  <darin@apple.com>
2565
2566         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
2567         https://bugs.webkit.org/show_bug.cgi?id=128233
2568
2569         Reviewed by Anders Carlsson.
2570
2571         * WebCoreSupport/WebEditorClient.h: Made most data members private. Moved inlines
2572         for iOS out of the class definition. Fixed formatting. Added missing virtual keyword.
2573         Changed interfaces to use StringView.
2574
2575         * WebCoreSupport/WebEditorClient.mm:
2576         (WebEditorClient::checkTextOfParagraph): Use the new StringView::createNSStringWithoutCopying
2577         function instead of a similar function that was local in this file.
2578         (WebEditorClient::ignoreWordInSpellDocument): Tweaked formatting.
2579         (WebEditorClient::checkSpellingOfString): Changed to take a StringView.
2580         (WebEditorClient::checkGrammarOfString): Ditto.
2581
2582         * WebView/WebTextIterator.mm:
2583         (-[WebTextIterator currentTextPointer]): Call TextIterator::deprecatedTextIteratorCharacters.
2584         (-[WebTextIterator currentText]): Convert a the text to an NSString with TextIterator::text
2585         instead of with TextIterator::characters/length.
2586
2587 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
2588
2589         Remove isInitialState flag from Page::setViewState
2590         https://bugs.webkit.org/show_bug.cgi?id=128428
2591
2592         Reviewed by Sam Weinig.
2593
2594         * WebView/WebView.mm:
2595         (-[WebView _commonInitializationWithFrameName:groupName:]):
2596         (-[WebView _updateVisibilityState]):
2597         (-[WebView _setIsVisible:]):
2598         (-[WebView _setVisibilityState:isInitialState:]):
2599         (-[WebView _windowWillOrderOnScreen:]):
2600         (-[WebView _windowWillOrderOffScreen:]):
2601             - don't pass isInitialState to setViewState.
2602
2603 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
2604
2605         More FTL build scaffolding
2606         https://bugs.webkit.org/show_bug.cgi?id=128330
2607
2608         Reviewed by Geoffrey Garen.
2609
2610         * Configurations/FeatureDefines.xcconfig:
2611
2612 2014-02-07  Dan Bernstein  <mitz@apple.com>
2613
2614         iOS build fix.
2615
2616         * Misc/WebElementDictionary.mm:
2617         (+[WebElementDictionary initializeLookupTable]):
2618         (-[WebElementDictionary _image]):
2619         (-[WebElementDictionary _imageRect]):
2620
2621 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2622
2623         Web Inspector: Add Console support to JSContext Inspection
2624         https://bugs.webkit.org/show_bug.cgi?id=127941
2625
2626         Reviewed by Geoffrey Garen.
2627
2628         * WebCoreSupport/WebChromeClient.h:
2629         * WebCoreSupport/WebChromeClient.mm:
2630         (stringForMessageSource):
2631         (stringForMessageLevel):
2632         (WebChromeClient::addMessageToConsole):
2633
2634 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
2635
2636         Change Page, FocusController to use ViewState
2637         https://bugs.webkit.org/show_bug.cgi?id=126533
2638
2639         Reviewed by Tim Horton.
2640
2641         These classes currently maintain a set of separate fields to represent the view state;
2642         combine these into a single field, and allow WebPage to send the combined update rather
2643         than individual changes.
2644
2645         Maintain existing interface for WebKit1 clients.
2646
2647         * WebView/WebView.mm:
2648         (-[WebView _windowWillOrderOnScreen:]):
2649         (-[WebView _windowWillOrderOffScreen:]):
2650             - remove calls to FocusController::setContentIsVisible, these are redundant
2651               (this is handled when page visibility is set).
2652
2653 2014-02-05  Andreas Kling  <akling@apple.com>
2654
2655         Remove ENABLE(DIRECTORY_UPLOAD).
2656         <https://webkit.org/b/128275>
2657
2658         Rubber-stamped by Ryosuke Niwa.
2659
2660         * Configurations/FeatureDefines.xcconfig:
2661
2662 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
2663
2664         Remove ENABLE(SVG) guards
2665         https://bugs.webkit.org/show_bug.cgi?id=127991
2666
2667         Reviewed by Sam Weinig.
2668
2669         * Configurations/FeatureDefines.xcconfig:
2670
2671 2014-02-04  Andreas Kling  <akling@apple.com>
2672
2673         Remove <iframe seamless> support.
2674         <https://webkit.org/b/128213>
2675
2676         Rubber-stamped by Antti Koivisto.
2677
2678         * Configurations/FeatureDefines.xcconfig:
2679         * WebView/WebPreferenceKeysPrivate.h:
2680         * WebView/WebPreferences.mm:
2681         * WebView/WebPreferencesPrivate.h:
2682         * WebView/WebView.mm:
2683         (-[WebView _preferencesChanged:]):
2684
2685 2014-02-03  Dean Jackson  <dino@apple.com>
2686
2687         Feature flag for shape-inside
2688         https://bugs.webkit.org/show_bug.cgi?id=128001
2689
2690         Reviewed by Simon Fraser.
2691
2692         Add CSS_SHAPE_INSIDE flag.
2693
2694         * Configurations/FeatureDefines.xcconfig:
2695
2696 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
2697
2698         Remove inline member functions of FrameSelection that access m_selection
2699         https://bugs.webkit.org/show_bug.cgi?id=127986
2700
2701         Reviewed by Enrica Casucci.
2702
2703         * WebView/WebFrame.mm:
2704         (-[WebFrame hasEditableSelection]):
2705         (-[WebFrame selectionAffinity]):
2706         (-[WebFrame getDictationResultRanges:andMetadatas:]):
2707         (-[WebFrame hasRichlyEditableSelection]):
2708         (-[WebFrame focusedNodeHasContent]):
2709         * WebView/WebHTMLView.mm:
2710         (-[WebHTMLView readSelectionFromPasteboard:]):
2711         (-[WebHTMLView _hasSelection]):
2712         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
2713         (-[WebHTMLView _hasInsertionPoint]):
2714         (-[WebHTMLView _isEditable]):
2715         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2716         (-[WebHTMLView maintainsInactiveSelection]):
2717         (isTextInput):
2718         (isInPasswordField):
2719         * WebView/WebView.mm:
2720         (-[WebView selectionAffinity]):
2721
2722 2014-01-31  Tim Horton  <timothy_horton@apple.com>
2723
2724         [wk2] PlatformCALayerRemoteCustom doesn't work on iOS
2725         https://bugs.webkit.org/show_bug.cgi?id=128025
2726         <rdar://problem/15950271>
2727
2728         Reviewed by Simon Fraser.
2729
2730         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2731         (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
2732         Use the new macro name.
2733
2734 2014-01-30  David Kilzer  <ddkilzer@apple.com>
2735
2736         Add security-checked cast for WebCore::CachedImage
2737         <http://webkit.org/b/127967>
2738
2739         Reviewed by Darin Adler.
2740
2741         * Misc/WebCache.mm:
2742         (+[WebCache imageForURL:]):
2743         - Use WebCore::toCachedImage().
2744
2745 2014-01-30  David Kilzer  <ddkilzer@apple.com>
2746
2747         De-virtual-ize CachedResource::isImage()
2748         <http://webkit.org/b/127936>
2749
2750         Reviewed by Andreas Kling.
2751
2752         Also replace explicit type() checks with isImage().
2753
2754         * Misc/WebCache.mm:
2755         (+[WebCache imageForURL:]): Use !isImage().
2756
2757 2014-01-30  Beth Dakin  <bdakin@apple.com>
2758
2759         https://bugs.webkit.org/show_bug.cgi?id=127371
2760         Explore new API that could be used to help build infinitely scrolling websites
2761         -and corresponding-
2762         <rdar://problem/15244768>
2763
2764         Reviewed by Sam Weinig.
2765
2766         FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
2767         representing the old scroll position and the new position.
2768         * WebView/WebHTMLView.mm:
2769         (-[WebHTMLView _frameOrBoundsChanged]):
2770
2771 2014-01-30  Andrei Bucur  <abucur@adobe.com>
2772
2773         Remove the ACCELERATED_COMPOSITING flag
2774         https://bugs.webkit.org/show_bug.cgi?id=127833
2775
2776         Reviewed by Antti Koivisto.
2777
2778         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
2779         mandatory.
2780
2781         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2782         (-[WebHostedNetscapePluginView createPlugin]):
2783         (-[WebHostedNetscapePluginView createPluginLayer]):
2784         * Plugins/WebNetscapePluginView.mm:
2785         (-[WebNetscapePluginView createPlugin]):
2786         (-[WebNetscapePluginView getVariable:value:]):
2787         * Plugins/WebPluginController.mm:
2788         (-[WebPluginController superlayerForPluginView:]):
2789         * WebCoreSupport/WebChromeClient.h:
2790         (WebChromeClient::allowedCompositingTriggers):
2791         * WebCoreSupport/WebChromeClient.mm:
2792         * WebCoreSupport/WebFrameLoaderClient.mm:
2793         (PluginWidgetIOS::detachPluginLayer):
2794         (NetscapePluginWidget::platformLayer):
2795         * WebView/WebClipView.mm:
2796         (-[WebClipView _immediateScrollToPoint:]):
2797         * WebView/WebHTMLView.mm:
2798         (setNeedsDisplayInRect):
2799         (+[WebHTMLViewPrivate initialize]):
2800         (-[WebHTMLViewPrivate clear]):
2801         (-[WebHTMLView _setAsideSubviews]):
2802         (-[WebHTMLView hitTest:]):
2803         (-[WebHTMLView _isUsingAcceleratedCompositing]):
2804         (-[WebHTMLView _compositingLayersHostingView]):
2805         (-[WebHTMLView viewDidMoveToSuperview]):
2806         (-[WebHTMLView drawRect:]):
2807         * WebView/WebHTMLViewInternal.h:
2808         * WebView/WebRenderLayer.mm:
2809         (+[WebRenderLayer compositingInfoForLayer:]):
2810         * WebView/WebView.mm:
2811         (-[WebView _close]):
2812         (-[WebView _setMediaLayer:forPluginView:]):
2813         (-[WebView _postsAcceleratedCompositingNotifications]):
2814         (-[WebView _setPostsAcceleratedCompositingNotifications:]):
2815         (-[WebView _isUsingAcceleratedCompositing]):
2816         (-[WebView _isSoftwareRenderable]):
2817         (-[WebView close]):
2818         * WebView/WebViewData.h:
2819         * WebView/WebViewData.mm:
2820         (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
2821         * WebView/WebViewInternal.h:
2822
2823 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
2824
2825         Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
2826         https://bugs.webkit.org/show_bug.cgi?id=127845
2827
2828         Reviewed by Joseph Pecoraro.
2829
2830         * Configurations/FeatureDefines.xcconfig:
2831
2832 2014-01-29  Dan Bernstein  <mitz@apple.com>
2833
2834         Moved linking against common frameworks and a library from the .xcconfig file into the target.
2835
2836         Reviewed by Tim Horton.
2837
2838         * Configurations/WebKit.xcconfig:
2839
2840 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
2841
2842         checkTextOfParagraph releases NSString twice
2843         https://bugs.webkit.org/show_bug.cgi?id=127881
2844         <rdar://problem/15937446>
2845
2846         Reviewed by Anders Carlsson.
2847
2848         textString is released once by an explicit call to release and again by it going out of scope.
2849         Don't do the explicit release.
2850
2851         The bug was spotted by Sam Weinig.
2852
2853         * WebCoreSupport/WebEditorClient.mm:
2854         (WebEditorClient::checkTextOfParagraph):
2855
2856 2014-01-29  Anders Carlsson  <andersca@apple.com>
2857
2858         Fix build.
2859
2860         * WebView/WebPDFView.mm:
2861         (_applicationInfoForMIMEType):
2862
2863 2014-01-28  Mark Rowe  <mrowe@apple.com>
2864
2865         <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
2866
2867         Reviewed by Ryosuke Niwa.
2868
2869         * WebCoreSupport/PopupMenuMac.mm:
2870         (PopupMenuMac::populate):
2871
2872 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2873
2874         WebKit1: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
2875         https://bugs.webkit.org/show_bug.cgi?id=127664
2876
2877         Reviewed by Darin Adler.
2878
2879         * Configurations/Base.xcconfig:
2880         * History/BinaryPropertyList.cpp:
2881         (BinaryPropertyListSerializer::appendObjectReference):
2882         (BinaryPropertyListSerializer::startObject):
2883         (BinaryPropertyListSerializer::addAggregateObjectReference):
2884         * WebView/WebPDFView.mm:
2885         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2886
2887 2014-01-27  Andy Estes  <aestes@apple.com>
2888
2889         Scrub WebKit API headers of WTF macros
2890         https://bugs.webkit.org/show_bug.cgi?id=127706
2891
2892         Reviewed by David Kilzer.
2893
2894         * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
2895         * WebView/WebPreferenceKeysPrivate.h: Changed ENABLE(REMOTE_INSPECTOR)
2896         to !defined(ENABLE_REMOTE_INSPECTOR) || ENABLE_REMOTE_INSPECTOR. We are
2897         in a TARGET_OS_IPHONE block, and ENABLE_REMOTE_INSPECTOR is enabled by
2898         default on iOS, so include this block unless the feature is explicitly
2899         disabled.
2900         * postprocess-headers.sh: Stopped processing ENABLE_IOS_TOUCH_EVENTS
2901         and ENABLE_IOS_GESTURE_EVENTS. These are now defined in DOMEvents.h.
2902
2903 2014-01-27  Tim Horton  <timothy_horton@apple.com>
2904
2905         Another iOS build fix.
2906
2907         * Misc/WebElementDictionary.mm:
2908         (-[WebElementDictionary _image]):
2909         We were apparently depending on Image::getNSImage() being defined
2910         (yet always returning nullptr) on iOS.
2911
2912 2014-01-26  David Kilzer  <ddkilzer@apple.com>
2913
2914         Remove duplicate settings for ENABLE(DISK_IMAGE_CACHE)
2915         <http://webkit.org/b/127669>
2916
2917         Reviewed by Joseph Pecoraro.
2918
2919         * WebView/WebPreferences.mm:
2920         (+[WebPreferences initialize]): Remove duplicate code.
2921
2922 2014-01-24  Andy Estes  <aestes@apple.com>
2923
2924         [iOS] Upstream changes in Tools/DumpRenderTree
2925         https://bugs.webkit.org/show_bug.cgi?id=127412
2926
2927         Reviewed by Simon Fraser.
2928
2929         * Misc/WebCoreStatistics.h: Included CGContext.h.
2930
2931 2014-01-26  Anders Carlsson  <andersca@apple.com>
2932
2933         Move history item visit count handling to WebKit
2934         https://bugs.webkit.org/show_bug.cgi?id=127659
2935
2936         Reviewed by Dan Bernstein.
2937
2938         Move code to deal with visit count and visit dates here from WebCore.
2939
2940         * History/HistoryPropertyList.mm:
2941         (HistoryPropertyListWriter::writeHistoryItem):
2942         * History/WebHistoryItem.mm:
2943         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
2944         (-[WebHistoryItem copyWithZone:]):
2945         (-[WebHistoryItem lastVisitedTimeInterval]):
2946         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
2947         (-[WebHistoryItem setVisitCount:]):
2948         (-[WebHistoryItem _mergeAutoCompleteHints:]):
2949         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2950         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]):
2951         (-[WebHistoryItem _recordInitialVisit]):
2952         (timeToDay):
2953         (-[WebHistoryItem _padDailyCountsForNewVisit:]):
2954         (-[WebHistoryItem _collapseDailyVisitsToWeekly]):
2955         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]):
2956         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
2957         * History/WebHistoryItemInternal.h:
2958
2959 2014-01-26  Anders Carlsson  <andersca@apple.com>
2960
2961         Fix build.
2962
2963         Pass a WebHistoryItem to writeHistoryItem so we can extract _lastVisitWasHTTPNonGet from it.
2964
2965         * History/HistoryPropertyList.h:
2966         * History/HistoryPropertyList.mm:
2967         (HistoryPropertyListWriter::HistoryPropertyListWriter):
2968         (HistoryPropertyListWriter::buffer):
2969         (HistoryPropertyListWriter::releaseData):
2970         (HistoryPropertyListWriter::writeObjects):
2971         (HistoryPropertyListWriter::writeHistoryItem):
2972         * History/WebHistory.mm:
2973         (WebHistoryWriter::writeHistoryItems):
2974         * History/WebHistoryItem.mm:
2975
2976 2014-01-26  Anders Carlsson  <andersca@apple.com>
2977
2978         Move lastVisitWasHTTPNonGet out to WebHistoryItem
2979         https://bugs.webkit.org/show_bug.cgi?id=127657
2980
2981         Reviewed by Dan Bernstein.
2982
2983         Keep track of _lastVisitWasHTTPNonGet inside WebHistoryItem.
2984
2985         * History/WebHistory.mm:
2986         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
2987         Set entry->_private->_lastVisitWasHTTPNonGet.
2988
2989         * History/WebHistoryItem.h:
2990         Change @private to @package so we can get at WebHistoryItemPrivate from WebHistory.
2991
2992         * History/WebHistoryItem.mm:
2993         (-[WebHistoryItem copyWithZone:]):
2994         Assign _private->_lastVisitWasHTTPNonGet.
2995
2996         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2997         Set _private->_lastVisitWasHTTPNonGet.
2998
2999         * History/WebHistoryItemInternal.h:
3000         Move WebHistoryItemPrivate interface here.
3001
3002 2014-01-26  Anders Carlsson  <andersca@apple.com>
3003
3004         Turn WebHistoryItemPrivate back into a real Objective-C class
3005         https://bugs.webkit.org/show_bug.cgi?id=127653
3006
3007         Reviewed by Sam Weinig.
3008
3009         This is a first step towards moving some history specific code from WebCore::HistoryItem back into WebKit.
3010
3011         * History/WebHistoryItem.mm:
3012         (-[WebHistoryItem dealloc]):
3013         (-[WebHistoryItem finalize]):
3014         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
3015
3016 2014-01-25  Sam Weinig  <sam@webkit.org>
3017
3018         Remove unused support for DRAGGABLE_REGION
3019         https://bugs.webkit.org/show_bug.cgi?id=127642
3020
3021         Reviewed by Simon Fraser.
3022
3023         * Configurations/FeatureDefines.xcconfig:
3024
3025 2014-01-25  Anders Carlsson  <andersca@apple.com>
3026
3027         Remove an unused FrameLoaderClient function
3028         https://bugs.webkit.org/show_bug.cgi?id=127628
3029
3030         Reviewed by Andreas Kling.
3031
3032         * WebCoreSupport/WebFrameLoaderClient.h:
3033         * WebCoreSupport/WebFrameLoaderClient.mm:
3034
3035 2014-01-25  Anders Carlsson  <andersca@apple.com>
3036
3037         Build fix.
3038
3039         * WebView/WebViewData.h:
3040
3041 2014-01-25  Anders Carlsson  <andersca@apple.com>
3042
3043         Get rid of BackForwardController::isActive()
3044         https://bugs.webkit.org/show_bug.cgi?id=127604
3045
3046         Reviewed by Sam Weinig.
3047
3048         * WebCoreSupport/WebFrameLoaderClient.mm:
3049         (WebFrameLoaderClient::canCachePage):
3050         Move isActive logic here.
3051
3052 2014-01-24  Anders Carlsson  <andersca@apple.com>
3053
3054         Remove back/forward list related functions from Page
3055         https://bugs.webkit.org/show_bug.cgi?id=127596
3056
3057         Reviewed by Andreas Kling.
3058
3059         * WebView/WebFrameView.mm:
3060         (-[WebFrameView keyDown:keyDown:]):
3061         * WebView/WebView.mm:
3062         (-[WebView _loadBackForwardListFromOtherView:]):
3063         (-[WebView initWithCoder:]):
3064         (-[WebView encodeWithCoder:]):
3065         (-[WebView backForwardList]):
3066         (-[WebView setMaintainsBackForwardList:]):
3067         (-[WebView goBack]):
3068         (-[WebView goForward]):
3069         (-[WebView canGoBack]):
3070         (-[WebView canGoForward]):
3071
3072 2014-01-24  Anders Carlsson  <andersca@apple.com>
3073
3074         Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
3075         https://bugs.webkit.org/show_bug.cgi?id=127571
3076
3077         Reviewed by Antti Koivisto.
3078
3079         * WebView/WebView.mm:
3080         (-[WebView _preferencesChanged:]):
3081         Convert the layout interval to std::chrono::milliseconds.
3082
3083 2014-01-24  Zan Dobersek  <zdobersek@igalia.com>
3084
3085         Move HistoryItem to std::unique_ptr
3086         https://bugs.webkit.org/show_bug.cgi?id=127275
3087
3088         Reviewed by Darin Adler.
3089
3090         * History/WebHistoryItem.mm: The Vector object that's passed to HistoryItem::setRedirectURLs
3091         should now be handled by std::unique_ptr and passed on through move semantics.
3092         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3093
3094 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
3095
3096         Move RegularExpression into JavaScriptCore for inspector
3097         https://bugs.webkit.org/show_bug.cgi?id=127526
3098
3099         Reviewed by Geoffrey Garen.
3100
3101         * WebView/WebHTMLRepresentation.mm:
3102
3103 2014-01-23  Benjamin Poulain  <bpoulain@apple.com>
3104
3105         Remote Inspector uses the Page pointer before the page is created on iOS
3106         https://bugs.webkit.org/show_bug.cgi?id=127534
3107
3108         Reviewed by Joseph Pecoraro.
3109
3110         * WebView/WebView.mm:
3111         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3112
3113 2014-01-23  Jon Honeycutt  <jhoneycutt@apple.com>
3114
3115         Assertion failure in WebCore::PseudoElement::didRecalcStyle()
3116         <https://bugs.webkit.org/show_bug.cgi?id=126761>
3117         <rdar://problem/15793540>
3118
3119         Some areas of code were erroneously checking the value of
3120         RenderObject::isImage() rather than RenderObject::isRenderImage()
3121         before casting the object to RenderImage.
3122
3123         This could lead to an assertion failure for RenderListMarkers, which
3124         may return true for isImage(), but are not RenderImages.
3125
3126         Reviewed by Andy Estes.
3127
3128         * Misc/WebNSPasteboardExtras.mm:
3129         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
3130         Check isRenderImage() rather than isImage() before casting to
3131         RenderImage.
3132
3133 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
3134
3135         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
3136         https://bugs.webkit.org/show_bug.cgi?id=127409
3137
3138         Reviewed by Geoffrey Garen.
3139
3140         * WebCoreSupport/WebInspectorClient.mm:
3141         (-[WebInspectorWindowController destroyInspectorView:]):
3142         Include InspectorDisconnectReason.
3143
3144 2014-01-23  Max Vujovic  <mvujovic@adobe.com>
3145
3146         Remove CSS Custom Filters code and tests
3147         https://bugs.webkit.org/show_bug.cgi?id=127382
3148
3149         Reviewed by Simon Fraser.
3150
3151         * Configurations/FeatureDefines.xcconfig:
3152         * WebView/WebPreferenceKeysPrivate.h:
3153         * WebView/WebPreferences.mm:
3154         (+[WebPreferences initialize]):
3155         * WebView/WebPreferencesPrivate.h:
3156         * WebView/WebView.mm:
3157         (-[WebView _preferencesChanged:]):
3158
3159 2014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
3160
3161         Remove CSS3_TEXT_DECORATION define
3162         https://bugs.webkit.org/show_bug.cgi?id=127333
3163
3164         Reviewed by Simon Fraser.
3165
3166         This is required for unprefixing the text-decoration-* CSS properties.
3167
3168         * Configurations/FeatureDefines.xcconfig:
3169
3170 2014-01-22  Dan Bernstein  <mitz@apple.com>
3171
3172         Build fix for iOS clients of WebUIDelegatePrivate.h.
3173
3174         * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
3175
3176 2014-01-21  Dan Bernstein  <mitz@apple.com>
3177
3178         Added a method declaration that was missed in r161185.
3179
3180         Reviewed by Sam Weinig.
3181
3182         * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
3183
3184 2014-01-21  Commit Queue  <commit-queue@webkit.org>
3185
3186         Unreviewed, rolling out r162452.
3187         http://trac.webkit.org/changeset/162452
3188         https://bugs.webkit.org/show_bug.cgi?id=127366
3189
3190         broke a few tests on all Mac WebKit1 bots (Requested by
3191         thorton on #webkit).
3192
3193         * WebView/WebView.mm:
3194         (-[WebView _windowWillOrderOnScreen:]):
3195         (-[WebView _windowWillOrderOffScreen:]):
3196
3197 2014-01-21  Gavin Barraclough  <barraclough@apple.com>
3198
3199         Change Page, FocusController to use ViewState
3200         https://bugs.webkit.org/show_bug.cgi?id=126533
3201
3202         Reviewed by Tim Horton.
3203
3204         These classes currently maintain a set of separate fields to represent the view state;
3205         combine these into a single field, and allow WebPage to send the combined update rather
3206         than individual changes.
3207
3208         Maintain existing interface for WebKit1 clients.
3209
3210         * WebView/WebView.mm:
3211         (-[WebView _windowWillOrderOnScreen:]):
3212         (-[WebView _windowWillOrderOffScreen:]):
3213             - remove calls to FocusController::setContentIsVisible, these are redundant
3214               (this is handled when page visibility is set).
3215
3216 2014-01-20  Jeremy Jones  <jeremyj@apple.com>
3217
3218         Add AVKit fullscreen video interface.
3219         https://bugs.webkit.org/show_bug.cgi?id=126818
3220
3221         Reviewed by Eric Carlson.
3222
3223         * WebCoreSupport/WebChromeClient.h:
3224         * WebCoreSupport/WebChromeClient.mm:
3225         (WebChromeClient::supportsFullscreenForNode):
3226         Enable *FullscreenForNode for HTMLMediaElement for iOS
3227
3228         * WebView/WebPreferenceKeysPrivate.h:
3229         * WebView/WebPreferences.mm:
3230         (+[WebPreferences initialize]):
3231         (-[WebPreferences mediaPlaybackFullscreenAVKit]):
3232         (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
3233         * WebView/WebPreferencesPrivate.h:
3234         * WebView/WebView.mm:
3235         (-[WebView _preferencesChanged:]):
3236         (-[WebView _enterFullscreenForNode:WebCore::]):
3237         * WebView/WebViewInternal.h:
3238         Add a disabled pref mediaPlaybackFullscreenAVKit.
3239         Use WebVideoFullscreenControllerAVKit on iOS
3240
3241 2014-01-18  Brian Burg  <bburg@apple.com>
3242
3243         Web Inspector: Page should use std::unique_ptr for InspectorController
3244         https://bugs.webkit.org/show_bug.cgi?id=127068
3245
3246         Reviewed by Joseph Pecoraro.
3247
3248         Convert call sites to use a InspectorController reference.
3249         Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
3250
3251         * WebCoreSupport/WebInspectorClient.mm:
3252         (WebInspectorClient::openInspectorFrontend):
3253         (-[WebInspectorWindowController destroyInspectorView:]):
3254         * WebInspector/WebInspector.mm:
3255         (-[WebInspector showWindow]):
3256         (-[WebInspector isJavaScriptProfilingEnabled]):
3257         (-[WebInspector setJavaScriptProfilingEnabled:]):
3258         (-[WebInspector close:]):
3259         (-[WebInspector evaluateInFrontend:callId:script:]):
3260         * WebInspector/WebNodeHighlighter.mm:
3261         (-[WebNodeHighlighter highlight]):
3262
3263 2014-01-18  Anders Carlsson  <andersca@apple.com>
3264
3265         Remove ENABLE_THREADED_HTML_PARSER defines everywhere
3266         https://bugs.webkit.org/show_bug.cgi?id=127225
3267
3268         Reviewed by Andreas Kling.
3269
3270         This concludes the removal of over 8.8 million lines of threaded parser code.
3271
3272         * Configurations/FeatureDefines.xcconfig:
3273
3274 2014-01-17  Anders Carlsson  <andersca@apple.com>
3275
3276         Clean up PageCache classes
3277         https://bugs.webkit.org/show_bug.cgi?id=127202
3278
3279         Reviewed by Andreas Kling.
3280
3281         * WebCoreSupport/WebFrameLoaderClient.mm:
3282         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3283         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
3284
3285 2014-01-17  Anders Carlsson  <andersca@apple.com>
3286
3287         Remove another unused FrameLoaderClient callback
3288         https://bugs.webkit.org/show_bug.cgi?id=127192
3289
3290         Reviewed by Dan Bernstein.
3291
3292         * WebCoreSupport/WebFrameLoaderClient.h:
3293         * WebCoreSupport/WebFrameLoaderClient.mm:
3294
3295 2014-01-17  Anders Carlsson  <andersca@apple.com>
3296
3297         Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
3298         https://bugs.webkit.org/show_bug.cgi?id=127189
3299
3300         Reviewed by Dan Bernstein.
3301
3302         This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
3303         
3304         * WebCoreSupport/WebFrameLoaderClient.h:
3305         * WebCoreSupport/WebFrameLoaderClient.mm:
3306         Remove didPerformFirstNavigation() implementation.
3307
3308         * WebView/WebView.mm:
3309         (-[WebView _checkDidPerformFirstNavigation]):
3310         Check if we have both a current item and a previous item which indicates that we've navigated once.
3311         The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
3312         we have to check that there's a current item as well.
3313
3314         (-[WebView _didCommitLoadForFrame:]):
3315         Call _didCommitLoadForFrame.
3316
3317         * WebView/WebViewData.h:
3318         Add new ivar.
3319
3320 2014-01-17  Alexey Proskuryakov  <ap@apple.com>
3321
3322         More iOS build fix.
3323
3324         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
3325         NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
3326
3327 2014-01-16  Daniel Bates  <dabates@apple.com>
3328
3329         [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
3330
3331         For now, add mainFrameIconURL() to WebView.h. We should further investigate its
3332         usage and API/SPI status.
3333
3334         * WebView/WebView.h:
3335
3336 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
3337
3338         [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
3339         https://bugs.webkit.org/show_bug.cgi?id=127139
3340
3341         Reviewed by Brady Eidson.
3342
3343         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
3344         Handle the new case.
3345
3346 2014-01-16  Daniel Bates  <dabates@apple.com>
3347
3348         [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
3349
3350         * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
3351
3352 2014-01-16  Anders Carlsson  <andersca@apple.com>
3353
3354         Change all uses of FINAL to final now that all our compilers support it
3355         https://bugs.webkit.org/show_bug.cgi?id=127142
3356
3357         Reviewed by Benjamin Poulain.
3358
3359         * WebCoreSupport/WebUserMediaClient.h:
3360         * WebView/WebScriptDebugger.h:
3361
3362 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
3363
3364         Remove workaround for compilers not supporting explicit override control
3365         https://bugs.webkit.org/show_bug.cgi?id=127111
3366
3367         Reviewed by Anders Carlsson.
3368
3369         Now all compilers support explicit override control, this workaround can be removed.
3370
3371         * Storage/WebDatabaseManagerClient.h:
3372         * Storage/WebStorageTrackerClient.h:
3373         * WebCoreSupport/WebAlternativeTextClient.h:
3374         * WebCoreSupport/WebChromeClient.h:
3375         * WebCoreSupport/WebContextMenuClient.h:
3376         * WebCoreSupport/WebDeviceOrientationClient.h:
3377         * WebCoreSupport/WebDragClient.h:
3378         * WebCoreSupport/WebEditorClient.h:
3379         * WebCoreSupport/WebFrameLoaderClient.h:
3380         * WebCoreSupport/WebFrameNetworkingContext.h:
3381         * WebCoreSupport/WebGeolocationClient.h:
3382         * WebCoreSupport/WebIconDatabaseClient.h:
3383         * WebCoreSupport/WebInspectorClient.h:
3384         * WebCoreSupport/WebNotificationClient.h:
3385         * WebCoreSupport/WebPlatformStrategies.h:
3386         * WebCoreSupport/WebProgressTrackerClient.h:
3387         * WebCoreSupport/WebUserMediaClient.h:
3388         * WebView/WebScriptDebugger.h:
3389         * WebView/WebViewData.h:
3390
3391 2014-01-16  Andy Estes  <aestes@apple.com>
3392
3393         [iOS] Fix build issues with exported headers
3394
3395         * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
3396         TARGET_OS_IPHONE.
3397         * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
3398         rules so that WebCoreFrameScrollView won't inadvertently get changed to
3399         WebKitFrameScrollView.
3400         * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
3401         order to maintain source compatibility.
3402         * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
3403         * Plugins/WebPluginPrivate.h: Removed.
3404         * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
3405         with ENABLE_SQL_DATABASE.
3406         * WebView/WebViewPrivate.h: Added declaration of
3407         -[WebView _touchEventRegions] for source compatibility.
3408
3409 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
3410
3411         Fix the iOS build after r162114
3412
3413         Unreviewed.
3414
3415         * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
3416
3417 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
3418
3419         Move user agent code to WebCore and unify some code between OS X and iOS
3420         https://bugs.webkit.org/show_bug.cgi?id=127080
3421
3422         Reviewed by Sam Weinig.
3423
3424         * WebCoreSupport/WebSystemInterface.mm:
3425         (InitWebCoreSystemInterface):
3426         * WebView/WebView.mm:
3427         (userVisibleWebKitVersionString):
3428         (+[WebView _standardUserAgentWithApplicationName:]):
3429         (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
3430
3431 2014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
3432
3433         [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
3434         https://bugs.webkit.org/show_bug.cgi?id=127069
3435
3436         Reviewed by Timothy Hatcher.
3437
3438         * WebView/WebView.mm:
3439         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3440         (+[WebView _enableRemoteInspector]):
3441         (+[WebView _disableRemoteInspector]):
3442         (+[WebView _disableAutoStartRemoteInspector]):
3443         (+[WebView _isRemoteInspectorEnabled]):
3444         (+[WebView _hasRemoteInspectorSession]):
3445         (-[WebView allowsRemoteInspection]):
3446         Implement with RemoteInspector.h SPIs.
3447
3448         (-[WebView setAllowsRemoteInspection:]):
3449         (-[WebView setHostApplicationBundleId:name:]):
3450         Still unimplemented, update comment.
3451
3452         (-[WebView _didCommitLoadForFrame:]):
3453         Remove dead path, WebCore now pushes updates on navigations.
3454
3455         * WebView/WebViewData.h:
3456         * WebView/WebViewData.mm:
3457         (-[WebViewPrivate init]):
3458         Remove now unused ivar.
3459
3460 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3461
3462         More iOS build fixing.
3463
3464         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
3465         Removed a now unused local variable.
3466
3467 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3468
3469         Build fix for iOS.
3470
3471         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
3472         Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
3473
3474 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3475
3476         Crash when multiple WebView instances have different PrivateBrowsing settings
3477         https://bugs.webkit.org/show_bug.cgi?id=127019
3478
3479         * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
3480         Added a null check to fix Safari crash on startup when extensions are enabled.
3481
3482 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3483
3484         Crash when multiple WebView instances have different PrivateBrowsing settings
3485         https://bugs.webkit.org/show_bug.cgi?id=127019
3486
3487         Reviewed by Sam Weinig.
3488
3489         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
3490         browsing session simply because one preferences object doesn't use private browsing.
3491         There could be others that do.
3492
3493         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
3494         browsing, and only delete the private session when there are none any more.
3495
3496 2014-01-15  David Kilzer  <ddkilzer@apple.com>
3497
3498         [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
3499
3500         Fixes the following linker error:
3501
3502             Undefined symbols for architecture x86_64:
3503               "__ZNK7WebCore12RenderObject5styleEv", referenced from:
3504                   -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
3505
3506         * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
3507         RenderObject.h since the inline RenderObject::style() method
3508         moved to the former header.
3509
3510 2014-01-15  Commit Queue  <commit-queue@webkit.org>
3511
3512         Unreviewed, rolling out r162054.
3513         http://trac.webkit.org/changeset/162054
3514         https://bugs.webkit.org/show_bug.cgi?id=127053
3515
3516         Causes assertion failures in DumpRenderTree (Requested by ap
3517         on #webkit).
3518
3519         * WebView/WebPreferences.mm:
3520         (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
3521         (-[WebPreferences initWithCoder:]):
3522         (+[WebPreferences standardPreferences]):
3523         (-[WebPreferences dealloc]):
3524         (-[WebPreferences setPrivateBrowsingEnabled:]):
3525         (-[WebPreferences _invalidateCachedPreferences]):
3526         * WebView/WebView.mm:
3527         (-[WebView _preferencesChanged:]):
3528
3529 2014-01-14  Alexey Proskuryakov  <ap@apple.com>
3530
3531         Crash when multiple WebView instances have different PrivateBrowsing settings
3532         https://bugs.webkit.org/show_bug.cgi?id=127019
3533
3534         Reviewed by Sam Weinig.
3535
3536         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
3537         browsing session simply because one preferences object doesn't use private browsing.
3538         There could be others that do.
3539
3540         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
3541         browsing, and only delete the private session when there are none any more.
3542
3543 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3544
3545         Fix the iOS build after r162034.
3546
3547         * WebCoreSupport/WebProgressTrackerClient.mm:
3548         * WebView/WebView.mm:
3549         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3550
3551 2014-01-14  Mark Rowe  <mrowe@apple.com>
3552
3553         Stop cmp from spewing useless info during postprocess-headers.sh.
3554
3555         * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
3556         exit status.
3557
3558 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
3559
3560         [iOS] Crash in NavigatorBase::vendor loading apple.com
3561         https://bugs.webkit.org/show_bug.cgi?id=127028
3562
3563         Reviewed by Daniel Bates.
3564
3565         Fill in iOS WebKitSystemInterface functions.
3566
3567         * WebCoreSupport/WebSystemInterface.mm:
3568         (InitWebCoreSystemInterface):
3569
3570 2014-01-14  Anders Carlsson  <andersca@apple.com>
3571
3572         Create separate progress tracker clients
3573         https://bugs.webkit.org/show_bug.cgi?id=127025
3574
3575         Reviewed by Sam Weinig.
3576
3577         * WebCoreSupport/WebFrameLoaderClient.h:
3578         * WebCoreSupport/WebFrameLoaderClient.mm:
3579         * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
3580         * WebCoreSupport/WebProgressTrackerClient.mm: Added.
3581         (WebProgressTrackerClient::WebProgressTrackerClient):
3582         (WebProgressTrackerClient::progressTrackerDestroyed):
3583         (WebProgressTrackerClient::willChangeEstimatedProgress):
3584         (WebProgressTrackerClient::didChangeEstimatedProgress):
3585