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