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