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