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