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