757ea49d0a30f94d5622b83535c1bebd0431e956
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2015-03-31  Yusuke Suzuki  <utatane.tea@gmail.com>
2
3         Clean up Identifier factories to clarify the meaning of StringImpl*
4         https://bugs.webkit.org/show_bug.cgi?id=143146
5
6         Reviewed by Filip Pizlo.
7
8         Just change to Identifier::fromString.
9
10         * Plugins/Hosted/NetscapePluginHostProxy.mm:
11         (identifierFromIdentifierRep):
12         * Plugins/Hosted/ProxyInstance.mm:
13         (WebKit::ProxyInstance::getPropertyNames):
14
15 2015-03-28  Anders Carlsson  <andersca@apple.com>
16
17         Remove an unused SPI method from WebKitLegacy
18         https://bugs.webkit.org/show_bug.cgi?id=143185
19
20         Reviewed by Sam Weinig.
21
22         * WebView/WebDataSource.mm:
23         (-[WebDataSource _transferApplicationCache:]): Deleted.
24         * WebView/WebDataSourcePrivate.h:
25
26 2015-03-26  Alex Christensen  <achristensen@webkit.org>
27
28         Progress towards CMake on Mac.
29         https://bugs.webkit.org/show_bug.cgi?id=143112
30
31         Reviewed by Chris Dumez.
32
33         * WebCoreSupport/WebFrameLoaderClient.h:
34
35 2015-03-26  Ryosuke Niwa  <rniwa@webkit.org>
36
37         Cursor doesn't change back to pointer when leaving Mail
38         https://bugs.webkit.org/show_bug.cgi?id=132038
39
40         Reviewed by Anders Carlsson.
41
42         Fixed the bug by adding a cursor rect and making the primary tracking area update the cursor so that
43         AppKit will reset the cursor as it leaves the WebView.
44
45         We use nil cursor here since we manually update the cursor by calling [NSCursor set].
46
47         * WebView/WebHTMLView.mm:
48         (-[WebHTMLView setDataSource:]): Use NSTrackingCursorUpdate option in creating the primary tracking area.
49
50 2015-03-24  Anders Carlsson  <andersca@apple.com>
51
52         Fix designated initializer violations
53         https://bugs.webkit.org/show_bug.cgi?id=143016
54         rdar://problem/20268858
55
56         Reviewed by Dan Bernstein.
57
58         Move -[WebBackForwardList initWithBackForwardList:] to the implementation instead of a category since
59         nobody calls it outside of WebBackForwardList.mm.
60
61         * History/WebBackForwardList.mm:
62         * History/WebBackForwardListInternal.h:
63
64 2015-03-23  Alexey Proskuryakov  <ap@apple.com>
65
66         REGRESSION (Yosemite): WKView visibility notifications are messed up
67         https://bugs.webkit.org/show_bug.cgi?id=142945
68
69         Reviewed by Tim Horton.
70
71         As these notifications cannot be used by NSView subclasses, create a separate
72         object for observing them.
73
74         * WebView/WebView.mm:
75         (-[WebView _commonInitializationWithFrameName:groupName:]):
76         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
77         (-[WebView addWindowObserversForWindow:]):
78         (-[WebView removeWindowObservers]):
79         (-[WebView viewWillMoveToWindow:]): Make sure that observers are removed even
80         if -[WebView close] is called manually.
81         * WebView/WebViewData.h:
82         * WebView/WebViewData.mm:
83         (-[WebWindowVisibilityObserver initWithView:]):
84         (-[WebWindowVisibilityObserver startObserving:]):
85         (-[WebWindowVisibilityObserver stopObserving:]):
86         (-[WebWindowVisibilityObserver _windowVisibilityChanged:]):
87
88 2015-03-23  Tim Horton  <timothy_horton@apple.com>
89
90         Add a share item to the link action menu
91         https://bugs.webkit.org/show_bug.cgi?id=142961
92         <rdar://problem/19198374>
93
94         Reviewed by Beth Dakin.
95
96         * WebView/WebActionMenuController.mm:
97         (-[WebActionMenuController _defaultMenuItemsForImage]):
98         (-[WebActionMenuController _defaultMenuItemsForVideo]):
99         (-[WebActionMenuController _createActionMenuItemForTag:]):
100         (-[WebActionMenuController _createShareActionMenuItemForTag:withItems:]):
101         Adopt -[NSMenuItem standardShareMenuItemWithItems].
102         All of the null-checking is unnecessary as it's impossible to enter
103         these functions with a null image/etc.
104         Also, remove a duplicate isDownloadableMedia check for the 'save to downloads' item.
105
106         (-[WebActionMenuController _defaultMenuItemsForLink]):
107         * WebView/WebUIDelegatePrivate.h:
108         Add a 'Share' item to the link menu.
109
110 2015-03-22  Alexey Proskuryakov  <ap@apple.com>
111
112         Build fix.
113
114         * WebView/WebView.mm: (-[WebView _showPlaybackTargetPicker:hasVideo:]):
115
116 2015-03-22  Eric Carlson  <eric.carlson@apple.com>
117
118         [Mac] Enable WIRELESS_PLAYBACK_TARGET for WK1
119         https://bugs.webkit.org/show_bug.cgi?id=142940
120
121         Reviewed by Sam Weinig.
122
123         * WebCoreSupport/WebChromeClient.h:
124         * WebCoreSupport/WebChromeClient.mm:
125         (WebChromeClient::showPlaybackTargetPicker): New.
126         (WebChromeClient::startingMonitoringPlaybackTargets): New.
127         (WebChromeClient::stopMonitoringPlaybackTargets): New.
128
129         * WebView/WebView.mm:
130         (-[WebView _close]): Invalidate and free the target picker.
131         (-[WebView _devicePicker]): New.
132         (-[WebView _showPlaybackTargetPicker:hasVideo:]): New.
133         (-[WebView _startingMonitoringPlaybackTargets]): New.
134         (-[WebView _stopMonitoringPlaybackTargets]): New.
135
136         * WebView/WebMediaPlaybackTargetPicker.h:
137         * WebView/WebMediaPlaybackTargetPicker.mm:
138         (WebMediaPlaybackTargetPicker::create): New.
139         (WebMediaPlaybackTargetPicker::WebMediaPlaybackTargetPicker): New.
140         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker): New.
141         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): New.
142         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): New.
143         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): New.
144         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange): New.
145         (WebMediaPlaybackTargetPicker::invalidate): New.
146         (WebMediaPlaybackTargetPicker::targetPicker): New.
147
148         * WebView/WebViewData.h:
149         (WebMediaPlaybackTargetPicker::~WebMediaPlaybackTargetPicker):
150         * WebView/WebViewData.mm:
151         * WebView/WebViewInternal.h:
152
153 2015-03-19  Andy Estes  <aestes@apple.com>
154
155         [Content Filtering] Add tests for unblock requests
156         https://bugs.webkit.org/show_bug.cgi?id=142900
157
158         Reviewed by Andreas Kling.
159
160         * WebCoreSupport/WebFrameLoaderClient.mm:
161         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): This now happens in PolicyChecker.
162         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
163         * WebView/WebFrame.mm:
164         (-[WebFrame _contentFilterDidHandleNavigationAction:]): Deleted.
165         * WebView/WebFrameInternal.h: Removed contentFilterUnblockHandler from WebFramePrivate.
166
167 2015-03-19  Enrica Casucci  <enrica@apple.com>
168
169         <attachment> should put URLs on the pasteboard so that Finder can accept drops.
170         https://bugs.webkit.org/show_bug.cgi?id=142801
171         rdar://problem/19982527
172
173         Reviewed by Tim Horton.
174
175         This patch adds all the necessary support to write attachment elements into
176         the pasteboard, including the promised type in WK1.
177
178         * Misc/WebNSPasteboardExtras.mm:
179         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
180         * WebCoreSupport/WebDragClient.h:
181         * WebCoreSupport/WebDragClient.mm:
182         (WebDragClient::declareAndWriteAttachment):
183         * WebView/WebHTMLView.mm:
184         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
185         * WebView/WebUIDelegate.h:
186
187 2015-03-19  Chris Dumez  <cdumez@apple.com>
188
189         Clean up DOMTimer related settings
190         https://bugs.webkit.org/show_bug.cgi?id=142837
191
192         Reviewed by Darin Adler.
193
194         Stop setting the DOMTimers' default minimum interval to 4ms as this
195         is now the default.
196
197         * WebView/WebView.mm:
198         (-[WebView _commonInitializationWithFrameName:groupName:]):
199
200 2015-03-17  Conrad Shultz  <conrad_shultz@apple.com>
201
202         Ignore some deprecation warnings
203         https://bugs.webkit.org/show_bug.cgi?id=142813
204
205         Reviewed by Mark Rowe.
206
207         Fixing the deprecations is tracked by: <rdar://problem/20201450>
208
209         * WebCoreSupport/PopupMenuMac.mm:
210         (PopupMenuMac::populate):
211
212 2015-03-17  Tim Horton  <timothy_horton@apple.com>
213
214         Cannot invoke action menus anymore
215         https://bugs.webkit.org/show_bug.cgi?id=142797
216         <rdar://problem/20032670>
217
218         * WebView/WebHTMLView.mm:
219         (-[WebHTMLView otherMouseDown:]):
220         Need a respondsToSelector check.
221
222 2015-03-17  Tim Horton  <timothy_horton@apple.com>
223
224         Fix the iOS build
225
226         * WebView/WebHTMLView.mm:
227
228 2015-03-17  Tim Horton  <timothy_horton@apple.com>
229
230         Cannot invoke action menus anymore
231         https://bugs.webkit.org/show_bug.cgi?id=142797
232         <rdar://problem/20032670>
233
234         Reviewed by Beth Dakin.
235
236         * WebView/WebHTMLView.mm:
237         (-[WebHTMLView otherMouseDown:]):
238         Don't override otherMouseDown: if the event would make an action menu.
239
240 2015-03-16  Ryosuke Niwa  <rniwa@webkit.org>
241
242         Enable ES6 classes by default
243         https://bugs.webkit.org/show_bug.cgi?id=142774
244
245         Reviewed by Gavin Barraclough.
246
247         * Configurations/FeatureDefines.xcconfig:
248
249 2015-03-16  Brent Fulgham  <bfulgham@apple.com>
250
251         WebKit1 Clients Are Not Reliably Repainted
252         https://bugs.webkit.org/show_bug.cgi?id=142750
253         <rdar://problem/20042453>
254
255         Reviewed by Simon Fraser.
256
257         Check with the FrameView to see if we are in an immediately paintable state. If we are not,
258         mark the view as dirty once the _immediateScrollToPoint operation is complete so that the
259         region will be painted properly.
260
261         * WebView/WebClipView.mm:
262         (-[WebClipView _immediateScrollToPoint:]): 
263
264 2015-03-16  Conrad Shultz  <conrad_shultz@apple.com>
265
266         Allow clients to selectively disable plug-ins
267         https://bugs.webkit.org/show_bug.cgi?id=142506
268
269         Reviewed by Anders Carlsson.
270
271         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
272         from the page). As part of this:
273
274         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
275            set of plug-ins.
276
277         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
278            down the stack.
279
280         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
281            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
282
283         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
284
285         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
286         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
287
288         * Plugins/WebBasePluginPackage.mm:
289         (-[WebBasePluginPackage getPluginInfoFromPLists]):
290         Set new members in PluginInfo.
291
292         * Plugins/WebNetscapePluginPackage.mm:
293         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
294         Set new members in PluginInfo.
295
296         * WebCoreSupport/WebPlatformStrategies.h:
297         * WebCoreSupport/WebPlatformStrategies.mm:
298         (WebPlatformStrategies::getWebVisiblePluginInfo):
299         Override to wrap getPluginInfo().
300         (WebPlatformStrategies::setPluginLoadClientPolicy):
301         Override to do nothing.
302         (WebPlatformStrategies::clearPluginClientPolicies):
303         Ditto.
304
305         * WebView/WebFrame.mm:
306         (-[WebFrame _canProvideDocumentSource]):
307         Update to reflect function rename.
308
309 2015-03-14  Dean Jackson  <dino@apple.com>
310
311         Feature flag for Animations Level 2
312         https://bugs.webkit.org/show_bug.cgi?id=142699
313         <rdar://problem/20165097>
314
315         Reviewed by Brent Fulgham.
316
317         Add ENABLE_CSS_ANIMATIONS_LEVEL_2 and a runtime flag animationTriggersEnabled.
318
319         * Configurations/FeatureDefines.xcconfig:
320
321 2015-03-13  Commit Queue  <commit-queue@webkit.org>
322
323         Unreviewed, rolling out r181483.
324         https://bugs.webkit.org/show_bug.cgi?id=142688
325
326         Caused use-after-free on many tests (Requested by ap on
327         #webkit).
328
329         Reverted changeset:
330
331         "Allow clients to selectively disable plug-ins"
332         https://bugs.webkit.org/show_bug.cgi?id=142506
333         http://trac.webkit.org/changeset/181483
334
335 2015-03-13  Eric Carlson  <eric.carlson@apple.com>
336
337         [Mac] Enable WIRELESS_PLAYBACK_TARGET
338         https://bugs.webkit.org/show_bug.cgi?id=142635
339
340         Reviewed by Darin Adler.
341
342         * Configurations/FeatureDefines.xcconfig:
343
344 2015-03-10  Conrad Shultz  <conrad_shultz@apple.com>
345
346         Allow clients to selectively disable plug-ins
347         https://bugs.webkit.org/show_bug.cgi?id=142506
348
349         Reviewed by Anders Carlsson.
350
351         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
352         from the page). As part of this:
353
354         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
355            set of plug-ins.
356
357         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
358            down the stack.
359
360         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
361            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
362
363         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
364
365         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
366         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
367
368         * Plugins/WebBasePluginPackage.mm:
369         (-[WebBasePluginPackage getPluginInfoFromPLists]):
370         Set new members in PluginInfo.
371
372         * Plugins/WebNetscapePluginPackage.mm:
373         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
374         Set new members in PluginInfo.
375
376         * WebCoreSupport/WebPlatformStrategies.h:
377         * WebCoreSupport/WebPlatformStrategies.mm:
378         (WebPlatformStrategies::getWebVisiblePluginInfo):
379         Override to wrap getPluginInfo().
380         (WebPlatformStrategies::setPluginLoadClientPolicy):
381         Override to do nothing.
382         (WebPlatformStrategies::clearPluginClientPolicies):
383         Ditto.
384
385         * WebView/WebFrame.mm:
386         (-[WebFrame _canProvideDocumentSource]):
387         Update to reflect function rename.
388
389 2015-03-10  Sam Weinig  <sam@webkit.org>
390
391         Allow adding a button in input elements for auto fill related functionality
392         <rdar://problem/19782066>
393         https://bugs.webkit.org/show_bug.cgi?id=142564
394
395         Reviewed by Anders Carlsson.
396
397         * DOM/WebDOMOperations.mm:
398         (-[DOMHTMLInputElement _setAutofilled:]):
399         Update for consistent spelling of AutoFill.
400
401 2015-03-10  Timothy Horton  <timothy_horton@apple.com>
402
403         Fix the build
404
405         * History/WebHistory.mm:
406         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
407         * WebCoreSupport/WebFrameLoaderClient.mm:
408         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
409
410 2015-03-10  Tim Horton  <timothy_horton@apple.com>
411
412         Fix the Mac build with a newer compiler
413
414         * Plugins/WebPluginController.mm:
415         (WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_):
416         (WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_):
417
418 2015-03-09  David Kilzer  <ddkilzer@apple.com>
419
420         [iOS] Fix build when compiling with dead code stripping disabled
421         <http://webkit.org/b/142467>
422
423         Reviewed by Simon Fraser.
424
425         * Configurations/WebKitLegacy.xcconfig:
426         (EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*]): Disable mig code
427         generation and compilation for out-of-process plugin support.
428         This was never used on iOS.
429
430 2015-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
431
432         [iOS] SVG fonts are garbled
433         https://bugs.webkit.org/show_bug.cgi?id=142377
434
435         Reviewed by Simon Fraser.
436
437         * Configurations/FeatureDefines.xcconfig:
438
439 2015-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
440
441         Hide Promise with runtime flags under Cocoa JSContext API
442         https://bugs.webkit.org/show_bug.cgi?id=141965
443
444         Reviewed by Filip Pizlo.
445
446         Add new JSC runtime flag, PromiseDisabled.
447
448         * WebView/WebPreferencesPrivate.h:
449
450 2015-03-03  Andy Estes  <aestes@apple.com>
451
452         [Content Filtering] Separate unblock handling into its own class
453         https://bugs.webkit.org/show_bug.cgi?id=142251
454
455         Reviewed by Andreas Kling.
456         
457         Adopted ContentFilterUnblockHandler.
458
459         * WebCoreSupport/WebFrameLoaderClient.h:
460         * WebCoreSupport/WebFrameLoaderClient.mm:
461         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
462         * WebView/WebFrame.mm:
463         (-[WebFrame _contentFilterDidHandleNavigationAction:]):
464         * WebView/WebFrameInternal.h:
465
466 2015-03-03  Chris Dumez  <cdumez@apple.com>
467
468         Access ApplicationCacheStorage global instance via singleton() static member function
469         https://bugs.webkit.org/show_bug.cgi?id=142239
470
471         Reviewed by Anders Carlsson.
472
473         Access ApplicationCacheStorage global instance via singleton() static
474         member function as per WebKit coding style.
475
476 2015-03-02  Jer Noble  <jer.noble@apple.com>
477
478         [WK1][WK2][Mac] Fullscreen animation is incorrect when page is scaled.
479         https://bugs.webkit.org/show_bug.cgi?id=142121
480
481         Reviewed by Simon Fraser.
482
483         Fullscreening a page with a non-1 scale would result in that scale being applied to the
484         fullscreen content, breaking fullscreen mode. Set the page scale to 1 when entering
485         fullscreen and reset it to the original value when exiting fullscreen.
486
487         * WebView/WebFullScreenController.h:
488         * WebView/WebFullScreenController.mm:
489         (-[WebFullScreenController enterFullScreen:]): Set the page scale to 1.
490         (-[WebFullScreenController finishedExitFullScreenAnimation:]): Reset the page
491                 scale to the original value.
492         * WebView/WebView.mm:
493         (-[WebView _supportsFullScreenForElement:withKeyboard:]): Drive-by fix. Check the
494                 WebView's own preferences to see if fullscreen mode is enabled, rather than
495                 the global object's.
496
497 2015-03-01  Chris Dumez  <cdumez@apple.com>
498
499         Make NotificationCenter / Notification suspendable
500         https://bugs.webkit.org/show_bug.cgi?id=142117
501         <rdar://problem/19923085>
502
503         Reviewed by Andreas Kling.
504
505         Provide implementation for NotificationClient::hasPendingPermissionRequests().
506         The implementation is very simplistic. it will only return false if no
507         request for permission for ever made. This is because there is currently no
508         easy way to figure out if a permission request is pending or not.
509
510         * WebCoreSupport/WebNotificationClient.h:
511         * WebCoreSupport/WebNotificationClient.mm:
512         (WebNotificationClient::requestPermission):
513         (WebNotificationClient::hasPendingPermissionRequests):
514
515 2015-02-28  Simon Fraser  <simon.fraser@apple.com>
516
517         Viewport units should not dirty style just before we do layout
518         https://bugs.webkit.org/show_bug.cgi?id=141682
519
520         Reviewed by Zalan Bujtas.
521
522         * WebView/WebFrameView.mm:
523         (-[WebFrameView _frameSizeChanged]):
524
525 2015-02-26  Chris Dumez  <cdumez@apple.com>
526
527         Rename DatabaseManager::manager() to DatabaseManager::singleton()
528         https://bugs.webkit.org/show_bug.cgi?id=142054
529
530         Reviewed by Ryosuke Niwa.
531
532         Rename DatabaseManager::manager() to DatabaseManager::singleton() as
533         per coding style and use WTF::NeverDestroyed.
534
535         * Storage/WebDatabaseManager.mm:
536         (-[WebDatabaseManager init]):
537         (-[WebDatabaseManager origins]):
538         (-[WebDatabaseManager databasesWithOrigin:]):
539         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
540         (-[WebDatabaseManager deleteAllDatabases]):
541         (-[WebDatabaseManager deleteOrigin:]):
542         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
543         * Storage/WebDatabaseQuotaManager.mm:
544         (-[WebDatabaseQuotaManager usage]):
545         (-[WebDatabaseQuotaManager quota]):
546         (-[WebDatabaseQuotaManager setQuota:]):
547         * WebCoreSupport/WebSecurityOrigin.mm:
548         (-[WebSecurityOrigin usage]):
549         (-[WebSecurityOrigin quota]):
550         (-[WebSecurityOrigin setQuota:]):
551         * WebView/WebFrame.mm:
552         (-[WebFrame _cacheabilityDictionary]):
553         * WebView/WebView.mm:
554         (-[WebView _preferencesChanged:]):
555
556 2015-02-26  Myles C. Maxfield  <mmaxfield@apple.com>
557
558         [Mac] [iOS] Parsing support for -apple-trailing-word
559         https://bugs.webkit.org/show_bug.cgi?id=141939
560
561         Reviewed by Andreas Kling.
562
563         * Configurations/FeatureDefines.xcconfig:
564
565 2015-02-24  Commit Queue  <commit-queue@webkit.org>
566
567         Unreviewed, rolling out r180599.
568         https://bugs.webkit.org/show_bug.cgi?id=141998
569
570         Lots of new test failures (Requested by smfr on #webkit).
571
572         Reverted changeset:
573
574         "Parsing support for -webkit-trailing-word"
575         https://bugs.webkit.org/show_bug.cgi?id=141939
576         http://trac.webkit.org/changeset/180599
577
578 2015-02-24  Myles C. Maxfield  <mmaxfield@apple.com>
579
580         [Mac] [iOS] Parsing support for -apple-trailing-word
581         https://bugs.webkit.org/show_bug.cgi?id=141939
582
583         Reviewed by Andreas Kling.
584
585         * Configurations/FeatureDefines.xcconfig:
586
587 2015-02-24  Yusuke Suzuki  <utatane.tea@gmail.com>
588
589         REGRESSION(r179429): Can't type comments in Facebook
590         https://bugs.webkit.org/show_bug.cgi?id=141859
591
592         Reviewed by Brent Fulgham.
593
594         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
595         Private API, javaScriptExperimentsEnabled is dropped.
596
597         * Misc/WebNSDictionaryExtras.h:
598         * Misc/WebNSDictionaryExtras.m:
599         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
600         * WebKit.order:
601         * WebView/WebPreferenceKeysPrivate.h:
602         * WebView/WebPreferences.mm:
603         (+[WebPreferences initialize]):
604         (-[WebPreferences _setUnsignedIntValue:forKey:]):
605         (-[WebPreferences javaScriptRuntimeFlags]):
606         (-[WebPreferences setJavaScriptRuntimeFlags:]):
607         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
608         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
609         * WebView/WebPreferencesPrivate.h:
610         * WebView/WebView.mm:
611         (-[WebView _preferencesChanged:]):
612
613 2015-02-23  Commit Queue  <commit-queue@webkit.org>
614
615         Unreviewed, rolling out r180547 and r180550.
616         https://bugs.webkit.org/show_bug.cgi?id=141957
617
618         Broke 10 Windows tests. (Requested by bfulgham_ on #webkit).
619
620         Reverted changesets:
621
622         "REGRESSION(r179429): Can't type comments in Facebook"
623         https://bugs.webkit.org/show_bug.cgi?id=141859
624         http://trac.webkit.org/changeset/180547
625
626         "Constructor returning null should construct an object instead
627         of null"
628         https://bugs.webkit.org/show_bug.cgi?id=141640
629         http://trac.webkit.org/changeset/180550
630
631 2015-02-23  Ryosuke Niwa  <rniwa@webkit.org>
632
633         Disable font loading events until our implementation gets updated to match the latest spec
634         https://bugs.webkit.org/show_bug.cgi?id=141938
635
636         Reviewed by Andreas Kling.
637
638         * Configurations/FeatureDefines.xcconfig:
639
640 2015-02-23  Yusuke Suzuki  <utatane.tea@gmail.com>
641
642         REGRESSION(r179429): Can't type comments in Facebook
643         https://bugs.webkit.org/show_bug.cgi?id=141859
644
645         Reviewed by Geoffrey Garen.
646
647         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
648         Private API, javaScriptExperimentsEnabled is dropped.
649
650         * Misc/WebNSDictionaryExtras.h:
651         * Misc/WebNSDictionaryExtras.m:
652         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
653         * WebKit.order:
654         * WebView/WebPreferenceKeysPrivate.h:
655         * WebView/WebPreferences.mm:
656         (+[WebPreferences initialize]):
657         (-[WebPreferences _setUnsignedIntValue:forKey:]):
658         (-[WebPreferences javaScriptRuntimeFlags]):
659         (-[WebPreferences setJavaScriptRuntimeFlags:]):
660         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
661         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
662         * WebView/WebPreferencesPrivate.h:
663         * WebView/WebView.mm:
664         (-[WebView _preferencesChanged:]):
665
666 2015-02-20  Eric Carlson  <eric.carlson@apple.com>
667
668         [iOS] cleanup AirPlay code
669         https://bugs.webkit.org/show_bug.cgi?id=141811
670
671         Reviewed by Jer Noble.
672
673         * Configurations/FeatureDefines.xcconfig: IOS_AIRPLAY -> WIRELESS_PLAYBACK_TARGET.
674
675 2015-02-18  Timothy Horton  <timothy_horton@apple.com>
676
677         Adopt WebCore::IOSurface in ImageBuffer
678         https://bugs.webkit.org/show_bug.cgi?id=141751
679
680         Reviewed by Simon Fraser.
681
682         * WebCoreSupport/WebSystemInterface.mm:
683         (InitWebCoreSystemInterface):
684         Remove old WKSI IOSurface-related functions.
685
686 2015-02-18  Commit Queue  <commit-queue@webkit.org>
687
688         Unreviewed, rolling out r180286.
689         https://bugs.webkit.org/show_bug.cgi?id=141766
690
691         Caused >50 crashed LayoutTests (Requested by jernoble on
692         #webkit).
693
694         Reverted changeset:
695
696         "Page::userContentController() should return a reference, not
697         a pointer"
698         https://bugs.webkit.org/show_bug.cgi?id=141764
699         http://trac.webkit.org/changeset/180286
700
701 2015-02-18  Brady Eidson  <beidson@apple.com>
702
703         Page::userContentController() should return a reference, not a pointer
704         https://bugs.webkit.org/show_bug.cgi?id=141764
705
706         Reviewed by Jer Noble.
707
708         * WebView/WebView.mm:
709         (-[WebView setGroupName:]):
710
711 2015-02-18  Chris Dumez  <cdumez@apple.com>
712
713         Access FontCache global instance via singleton() static member function
714         https://bugs.webkit.org/show_bug.cgi?id=141726
715
716         Reviewed by Daniel Bates.
717
718         Access FontCache global instance via singleton() static member function,
719         as per coding style.
720
721 2015-02-17  Chris Dumez  <cdumez@apple.com>
722
723         Access MemoryPressureHandler global instance via a singleton() static member function
724         https://bugs.webkit.org/show_bug.cgi?id=141691
725
726         Reviewed by Andreas Kling.
727
728         Access MemoryPressureHandler global instance via a singleton() static
729         member function.
730
731         * WebView/WebView.mm:
732         (-[WebView _commonInitializationWithFrameName:groupName:]):
733         (+[WebView registerForMemoryNotifications]):
734         (+[WebView _isUnderMemoryPressure]):
735         (+[WebView _clearMemoryPressure]):
736         (+[WebView _shouldWaitForMemoryClearMessage]):
737         (WebInstallMemoryPressureHandler):
738
739 2015-02-15  Sam Weinig  <sam@webkit.org>
740
741         Add experimental <attachment> element support
742         https://bugs.webkit.org/show_bug.cgi?id=141626
743
744         Reviewed by Tim Horton.
745
746         * Configurations/FeatureDefines.xcconfig:
747
748 2015-02-14  Joseph Pecoraro  <pecoraro@apple.com>
749
750         [Mac] Possible DDActionContext leaks, RetainPtr cleanup
751         https://bugs.webkit.org/show_bug.cgi?id=141613
752
753         Reviewed by Tim Horton.
754
755         * WebCoreSupport/WebEditorClient.mm:
756         (WebEditorClient::WebEditorClient):
757         Avoid unnecessary retain/autorelease by adopting.
758
759         * WebView/WebActionMenuController.mm:
760         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
761         Adopt the allocated object.
762
763 2015-02-09  Brian J. Burg  <burg@cs.washington.edu>
764
765         Web Inspector: remove some unnecessary Inspector prefixes from class names in Inspector namespace
766         https://bugs.webkit.org/show_bug.cgi?id=141372
767
768         Reviewed by Joseph Pecoraro.
769
770         * WebCoreSupport/WebInspectorClient.mm:
771         (-[WebInspectorWindowController destroyInspectorView:]):
772
773 2015-02-14  Alexey Proskuryakov  <ap@apple.com>
774
775         rel="noreferrer" should make window.opener null
776         https://bugs.webkit.org/show_bug.cgi?id=141579
777
778         Reviewed by Darin Adler.
779
780         * WebView/WebPDFView.mm:
781         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Updated for a new WebCore
782         function signature. There is no rel="noreferrer" in PDF, so we can just always allow.
783
784 2015-02-05  Youenn Fablet  <youenn.fablet@crf.canon.fr> and Xabier Rodriguez Calvar <calvaris@igalia.com>
785
786         [Streams API] Implement a barebone ReadableStream interface
787         https://bugs.webkit.org/show_bug.cgi?id=141045
788
789         Reviewed by Benjamin Poulain.
790
791         * Configurations/FeatureDefines.xcconfig:
792
793 2015-02-03  Enrica Casucci  <enrica@apple.com>
794
795         [iOS] Add support for deleteFromInputWithFlags.
796         https://bugs.webkit.org/show_bug.cgi?id=141216
797         rdar://problem/19130081
798
799         Reviewed by Benjamin Poulain.
800
801         Adopts the new method as soon as it is available.
802         The patch also removes some obsolete code used for staging.
803
804         * WebView/WebHTMLView.mm:
805         (-[WebHTMLView _handleEditingKeyEvent:]):
806
807 2015-02-02  Chris Dumez  <cdumez@apple.com>
808
809         Access MemoryCache singleton using MemoryCache::singleton()
810         https://bugs.webkit.org/show_bug.cgi?id=141104
811
812         Reviewed by Andreas Kling.
813
814         Access MemoryCache singleton using MemoryCache::singleton() static
815         member function, instead of a free function, as per the recent
816         coding style discussion on WebKit-dev.
817
818 2015-02-01  Chris Dumez  <cdumez@apple.com>
819
820         Use more references in HistoryItem
821         https://bugs.webkit.org/show_bug.cgi?id=141133
822
823         Reviewed by Andreas Kling.
824
825         Use more references in HistoryItem instead of pointers.
826
827 2015-01-31  Sam Weinig  <sam@webkit.org>
828
829         Remove even more Mountain Lion support
830         https://bugs.webkit.org/show_bug.cgi?id=141124
831
832         Reviewed by Alexey Proskuryakov.
833
834         * Configurations/Base.xcconfig:
835         * Configurations/DebugRelease.xcconfig:
836         * Configurations/FeatureDefines.xcconfig:
837         * Configurations/Version.xcconfig:
838         * Configurations/WebKitLegacy.xcconfig:
839
840 2015-01-30  Eric Carlson  <eric.carlson@apple.com>
841
842         Remove MediaPlayerProxy.h
843         https://bugs.webkit.org/show_bug.cgi?id=141087
844
845         Reviewed by Sam Weinig.
846
847         * MigrateHeaders.make: Don't need to copy MediaPlayerProxy.h.
848         * Plugins/WebPluginController.mm: Don't include MediaPlayerProxy.h.
849
850 2015-01-30  Chris Dumez  <cdumez@apple.com>
851
852         Rename shared() static member functions to singleton() for singleton classes.
853         https://bugs.webkit.org/show_bug.cgi?id=141088
854
855         Reviewed by Ryosuke Niwa and Benjamin Poulain.
856
857         Rename shared() static member functions to singleton() for singleton
858         classes as per the recent coding style change.
859
860 2015-01-29  Beth Dakin  <bdakin@apple.com>
861
862         Remove more Mountain Lion code from WebKit
863         https://bugs.webkit.org/show_bug.cgi?id=141050
864
865         Reviewed by Anders Carlsson.
866
867         * History/WebHistory.mm:
868         (getDayBoundaries):
869         * Panels/WebAuthenticationPanel.m:
870         (-[WebAuthenticationPanel cancel:]):
871         (-[WebAuthenticationPanel logIn:]):
872         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]):
873         * WebCoreSupport/WebSystemInterface.mm:
874         (InitWebCoreSystemInterface):
875         * WebView/WebFrameView.mm:
876         * WebView/WebPreferences.mm:
877         (+[WebPreferences initialize]):
878         (needsScreenFontsEnabledQuirk):
879         * WebView/WebView.mm:
880         (+[WebView registerForMemoryNotifications]):
881         (-[WebView _preferencesChanged:]):
882         (+[WebView initialize]):
883         (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
884         (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
885         (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
886
887 2015-01-29  Sam Weinig  <sam@webkit.org>
888
889         Remove support for screen font substitution
890         https://bugs.webkit.org/show_bug.cgi?id=141038
891
892         Reviewed by Tim Horton.
893
894         * Misc/WebKitNSStringExtras.mm:
895         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
896         (-[NSString _web_widthWithFont:]):
897         * Misc/WebStringTruncator.mm:
898         (fontFromNSFont):
899         Update for new signature of the FontPlatformData constructor, which no longer cares about
900         whether to use printer fonts.
901
902         * WebView/WebPreferenceKeysPrivate.h:
903         Remove the WebKitScreenFontSubstitutionEnabledKey key.
904
905         * WebView/WebPreferences.mm:
906         (+[WebPreferences initialize]):
907         Remove support for WebKitScreenFontSubstitutionEnabledKey.
908
909         (needsScreenFontsEnabledQuirk): Deleted.
910         Remove support for the Mountain Lion era 1-Password quirk.
911
912         (-[WebPreferences screenFontSubstitutionEnabled]): Deleted.
913         (-[WebPreferences setScreenFontSubstitutionEnabled:]): Deleted.
914         * WebView/WebPreferencesPrivate.h:
915         * WebView/WebView.mm:
916         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
917         (-[WebView _preferencesChanged:]):
918         Remove support for the screen font substitution setting.
919
920 2015-01-29  Chris Dumez  <cdumez@apple.com>
921
922         Clean up / modernize PageCache class
923         https://bugs.webkit.org/show_bug.cgi?id=141009
924
925         Reviewed by Darin Adler.
926
927         Clean up / modernize PageCache class.
928
929         * History/WebBackForwardList.mm:
930         (-[WebBackForwardList pageCacheSize]):
931         * WebView/WebView.mm:
932         (-[WebView _loadBackForwardListFromOtherView:]):
933         (-[WebView goToBackForwardItem:]):
934         (+[WebView _setCacheModel:]):
935
936 2015-01-28  Beth Dakin  <bdakin@apple.com>
937
938         Remove Mountain Lion code from WebKit and WebKit2
939         https://bugs.webkit.org/show_bug.cgi?id=141010
940
941         Reviewed by Sam Weinig.
942
943         * DOM/WebDOMOperations.mm:
944         (toNSEventPhase):
945         * WebView/WebHTMLView.mm:
946         (isQuickLookEvent):
947
948 2015-01-28  Dana Burkart  <dburkart@apple.com>
949
950         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
951         https://bugs.webkit.org/show_bug.cgi?id=136765
952
953         Reviewed by Alexey Proskuryakov.
954
955         * Configurations/Base.xcconfig:
956         * Configurations/DebugRelease.xcconfig:
957
958 2015-01-28  Chris Dumez  <cdumez@apple.com>
959
960         Fix typo in markPagesForVistedLinkStyleRecalc()
961         https://bugs.webkit.org/show_bug.cgi?id=140977
962
963         Reviewed by Darin Adler.
964
965         * WebCoreSupport/WebVisitedLinkStore.mm:
966         (WebVisitedLinkStore::removeAllVisitedLinks):
967         (WebVisitedLinkStore::removeVisitedLink):
968         (WebVisitedLinkStore::addVisitedLinkHash):
969
970 2015-01-28  Chris Dumez  <cdumez@apple.com>
971
972         Rename pageCache() to PageCache::shared() and return a reference
973         https://bugs.webkit.org/show_bug.cgi?id=140983
974
975         Reviewed by Andreas Kling.
976
977         Rename pageCache() to PageCache::shared() as this is a singleton class
978         and have it return a reference instead of a pointer.
979
980         * History/WebBackForwardList.mm:
981         (-[WebBackForwardList pageCacheSize]):
982         * Misc/WebCoreStatistics.mm:
983         (+[WebCoreStatistics cachedPageCount]):
984         (+[WebCoreStatistics cachedFrameCount]):
985         * WebCoreSupport/WebVisitedLinkStore.mm:
986         (WebVisitedLinkStore::removeAllVisitedLinks):
987         (WebVisitedLinkStore::removeVisitedLink):
988         (WebVisitedLinkStore::addVisitedLinkHash):
989         * WebView/WebView.mm:
990         (+[WebView _setCacheModel:]):
991
992 2015-01-27  Alexey Proskuryakov  <ap@apple.com>
993
994         More build fixes for newer clang.
995
996         Rubber-stamped by Anders Carlsson.
997
998         Marked a deprecated accessibility method as such.
999
1000         * WebView/WebFrame.mm:
1001         (-[WebFrame accessibilityRoot]):
1002
1003 2015-01-27  Beth Dakin  <bdakin@apple.com>
1004
1005         Immediate action gesture recognizer still doesn't work well with IB
1006         https://bugs.webkit.org/show_bug.cgi?id=140967
1007         -and corresponding-
1008         rdar://problem/19621509
1009
1010         Reviewed by Tim Horton.
1011
1012         We should add (or remove) the gesture recognizer in viewDidMoveToWindow because 
1013         initWithFrame it too early and IB might mess with it.
1014         * WebView/WebImmediateActionController.h:
1015         * WebView/WebImmediateActionController.mm:
1016         (-[WebImmediateActionController immediateActionRecognizer]):
1017         * WebView/WebView.mm:
1018         (-[WebView _commonInitializationWithFrameName:groupName:]):
1019         (-[WebView viewDidMoveToWindow]):
1020
1021 2015-01-27  Dan Bernstein  <mitz@apple.com>
1022
1023         Fixed building projects that import WebView.h with WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS.
1024
1025         Rubber-stamped by Anders Carlsson.
1026
1027         * WebView/WebView.h: Added forward declarations of the protocols.
1028
1029 2015-01-26  Anders Carlsson  <andersca@apple.com>
1030
1031         Make it easy to test enabling formal delegate protocols
1032         https://bugs.webkit.org/show_bug.cgi?id=140892
1033
1034         Reviewed by Dan Bernstein.
1035
1036         Add an WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS define that controls whether delegates should be formal protocols.
1037
1038         * Misc/WebDownload.h:
1039         * WebView/WebFrameLoadDelegate.h:
1040         * WebView/WebPolicyDelegate.h:
1041         * WebView/WebResourceLoadDelegate.h:
1042         * WebView/WebUIDelegate.h:
1043         * WebView/WebView.h:
1044
1045 2015-01-26  Chris Dumez  <cdumez@apple.com>
1046
1047         Rename Document::body() to Document::bodyOrFrameset() for clarity
1048         https://bugs.webkit.org/show_bug.cgi?id=140902
1049
1050         Reviewed by Andreas Kling.
1051
1052         Rename Document::body() to Document::bodyOrFrameset() for clarity. This
1053         method does not necessarily return an HTMLBodyElement, it can also
1054         return a frameset as per the specification:
1055         http://www.w3.org/TR/html5/dom.html#dom-tree-accessors
1056
1057         This method is often misused internally (the caller is only interested
1058         in the <body> element). I will fix these instances in a follow-up patch,
1059         this patch is only renaming mechanically.
1060
1061 2015-01-26  Chris Dumez  <cdumez@apple.com>
1062
1063         First argument to DOM traversal functions should be a reference
1064         https://bugs.webkit.org/show_bug.cgi?id=140895
1065
1066         Reviewed by Antti Koivisto.
1067
1068         First argument to DOM traversal functions should be a reference instead
1069         of a pointer as it is dereferenced without null-check.
1070
1071 2015-01-26  Myles C. Maxfield  <mmaxfield@apple.com>
1072
1073         [iOS] [SVG -> OTF Converter] Flip the switch off on iOS
1074         https://bugs.webkit.org/show_bug.cgi?id=140860
1075
1076         Reviewed by Darin Adler.
1077
1078         The fonts it makes are grotesque. (See what I did there? Typographic
1079         humor is the best humor.)
1080
1081         * Configurations/FeatureDefines.xcconfig:
1082
1083 2015-01-23  Timothy Horton  <timothy_horton@apple.com>
1084
1085         QLPreviewMenuItem popovers don't close when the page scrolls
1086         https://bugs.webkit.org/show_bug.cgi?id=140806
1087         <rdar://problem/19555618>
1088
1089         Reviewed by Beth Dakin.
1090
1091         Now that QLPreviewMenuItem's popover doesn't eat scrolls, we need to dismiss it if the page scrolls.
1092
1093         * WebView/WebHTMLView.mm:
1094         (-[WebHTMLView scrollWheel:scrollWheel:]):
1095         Send scrollWheel along to WebImmediateActionController.
1096
1097         * WebView/WebImmediateActionController.h:
1098         * WebView/WebImmediateActionController.mm:
1099         (-[WebImmediateActionController webView:didHandleScrollWheel:]):
1100         (-[WebImmediateActionController _clearImmediateActionState]):
1101         (-[WebImmediateActionController _defaultAnimationController]):
1102         Keep track of the active QLPreviewMenuItem, and close it upon scroll.
1103
1104 2015-01-23  Timothy Horton  <timothy_horton@apple.com>
1105
1106         Infinite recursion in _clearImmediateActionState
1107         https://bugs.webkit.org/show_bug.cgi?id=140807
1108         <rdar://problem/19571601>
1109
1110         Reviewed by Anders Carlsson.
1111
1112         * WebView/WebImmediateActionController.mm:
1113         (-[WebImmediateActionController _clearImmediateActionState]):
1114         Use this opportunity to bring identical code to WebKit1, to avoid
1115         getting DataDetectors stuck when an immediate action is canceled.
1116
1117 2015-01-22  Ryosuke Niwa  <rniwa@webkit.org>
1118
1119         Add a build flag for ES6 class syntax
1120         https://bugs.webkit.org/show_bug.cgi?id=140760
1121
1122         Reviewed by Michael Saboff.
1123
1124         * Configurations/FeatureDefines.xcconfig:
1125
1126 2015-01-22  Beth Dakin  <bdakin@apple.com>
1127
1128         ibtoold crash below -[WebView close]
1129         https://bugs.webkit.org/show_bug.cgi?id=140782
1130         -and corresponding-
1131         rdar://problem/19558472
1132
1133         Reviewed by Tim Horton.
1134
1135         Retain the NSImmediateActionGestureRecognizer. This should not be necessary, but 
1136         it is because interface builder is messing with our views.
1137         * WebView/WebImmediateActionController.h:
1138         * WebView/WebImmediateActionController.mm:
1139         (-[WebImmediateActionController webViewClosed]):
1140         (-[WebImmediateActionController _cancelImmediateAction]):
1141         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
1142         (-[WebImmediateActionController _updateImmediateActionItem]):
1143
1144 2015-01-21  Beth Dakin  <bdakin@apple.com>
1145
1146         Crash in QuickLook preview delegate method
1147         https://bugs.webkit.org/show_bug.cgi?id=140740
1148         -and corresponding-
1149         rdar://problem/19540806
1150
1151         Reviewed by Tim Horton.
1152
1153         Clear out the delegate.
1154         * WebView/WebImmediateActionController.mm:
1155         (-[WebImmediateActionController webViewClosed]):
1156
1157 2015-01-21  Csaba Osztrogonác  <ossy@webkit.org>
1158
1159         Remove ENABLE(INSPECTOR) ifdef guards
1160         https://bugs.webkit.org/show_bug.cgi?id=140668
1161
1162         Reviewed by Darin Adler.
1163
1164         * Configurations/FeatureDefines.xcconfig:
1165         * WebCoreSupport/WebFrameLoaderClient.mm:
1166         (WebFrameLoaderClient::dispatchWillSendRequest):
1167
1168 2015-01-20  Anders Carlsson  <andersca@apple.com>
1169
1170         Remove USE(GLIB) code from WebKit1
1171         https://bugs.webkit.org/show_bug.cgi?id=140714
1172
1173         Reviewed by Andreas Kling.
1174
1175         * WebView/WebView.mm:
1176         (-[WebView _commonInitializationWithFrameName:groupName:]):
1177         (-[WebView _close]):
1178         (-[WebView _clearGlibLoopObserver]): Deleted.
1179         (glibContextIterationCallback): Deleted.
1180         (-[WebView _scheduleGlibContextIterations]): Deleted.
1181         * WebView/WebViewData.h:
1182         * WebView/WebViewInternal.h:
1183
1184 2015-01-20  David Kilzer  <ddkilzer@apple.com>
1185
1186         Switch to comparing PLATFORM_NAME in terms of macosx
1187         <http://webkit.org/b/139516>
1188
1189         Reviewed by Timothy Hatcher.
1190
1191         * MigrateHeaders.make:
1192         * postprocess-headers.sh:
1193
1194 2015-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
1195
1196         [SVG -> OTF Converter] Flip the switch on
1197         https://bugs.webkit.org/show_bug.cgi?id=140592
1198
1199         Reviewed by Antti Koivisto.
1200
1201         * Configurations/FeatureDefines.xcconfig:
1202
1203 2015-01-19  Beth Dakin  <bdakin@apple.com>
1204
1205         Speculative build fix.
1206
1207         * WebView/WebView.mm:
1208         (-[WebView _commonInitializationWithFrameName:groupName:]):
1209
1210 2015-01-19  Beth Dakin  <bdakin@apple.com>
1211
1212         Speculative build fix.
1213
1214         * WebView/WebView.mm:
1215         (-[WebView _convertRectFromRootView:]):
1216
1217 2015-01-19  Timothy Horton  <timothy_horton@apple.com>
1218
1219         Adjust naming of action menu SPI
1220         https://bugs.webkit.org/show_bug.cgi?id=140644
1221         <rdar://problem/19448129>
1222
1223         Reviewed by Brian Weinstein.
1224
1225         * WebView/WebActionMenuController.mm:
1226         (-[WebActionMenuController prepareForMenu:withEvent:]):
1227         (-[WebActionMenuController willOpenMenu:withEvent:]):
1228         (-[WebActionMenuController didCloseMenu:withEvent:]):
1229         * WebView/WebView.mm:
1230         (-[WebView _commonInitializationWithFrameName:groupName:]):
1231         (-[WebView prepareForMenu:withEvent:]):
1232         (-[WebView willOpenMenu:withEvent:]):
1233         (-[WebView didCloseMenu:withEvent:]):
1234
1235 2015-01-19  Beth Dakin  <bdakin@apple.com>
1236
1237         REGRESSION (r178290): Yellow highlight from context menu Lookup in Dictionary is 
1238         offset by flipped-ness
1239         https://bugs.webkit.org/show_bug.cgi?id=140643
1240         -and corresponding-
1241         rdar://problem/19489593
1242
1243         Reviewed by Tim Horton.
1244
1245         We universally flipped because we assumed that the root view was flipped and the 
1246         WebView was not. However, in Dictionary, the WebView is flipped! So this patch 
1247         fixes that assumption by checking the WebView’s flipped-ness.
1248         * WebView/WebView.mm:
1249         (-[WebView _convertRectFromRootView:]):
1250
1251 2015-01-19  Commit Queue  <commit-queue@webkit.org>
1252
1253         Unreviewed, rolling out r178653.
1254         https://bugs.webkit.org/show_bug.cgi?id=140634
1255
1256         Broke multiple SVG tests on Mountain Lion (Requested by ap on
1257         #webkit).
1258
1259         Reverted changeset:
1260
1261         "[SVG -> OTF Converter] Flip the switch on"
1262         https://bugs.webkit.org/show_bug.cgi?id=140592
1263         http://trac.webkit.org/changeset/178653
1264
1265 2015-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
1266
1267         [SVG -> OTF Converter] Flip the switch on
1268         https://bugs.webkit.org/show_bug.cgi?id=140592
1269
1270         Reviewed by Antti Koivisto.
1271
1272         * Configurations/FeatureDefines.xcconfig:
1273
1274 2015-01-18  Daniel Bates  <dabates@apple.com>
1275
1276         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/178631>
1277         (https://bugs.webkit.org/show_bug.cgi?id=129441)
1278
1279         Pass lvalue reference to WebCore::Highlight instead of pointer in call to InspectorController::getHighlight().
1280         Also substitute HighlightType::Node and HighlightType::Rects for HighlightTypeNode and HighlightTypeRects, respectively.
1281
1282         * WebInspector/WebNodeHighlightView.mm:
1283         (-[WebNodeHighlightView layoutSublayers:]):
1284
1285 2015-01-16  Beth Dakin  <bdakin@apple.com>
1286
1287         Make sure early cancellation of immediate action actually does that in WK1
1288         https://bugs.webkit.org/show_bug.cgi?id=140566
1289         -and corresponding-
1290         rdar://problem/19490114
1291
1292         Reviewed by Tim Horton.
1293
1294         Work around an AppKit bug by dispatching the call to _cancelImmediateAction 
1295         asynchronously.
1296         * WebView/WebImmediateActionController.mm:
1297         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
1298
1299 2015-01-16  Daniel Bates  <dabates@apple.com>
1300
1301         Fix the public iOS SDK build after <http://trac.webkit.org/changeset/178285>
1302         (https://bugs.webkit.org/show_bug.cgi?id=140360)
1303
1304         Forward declare protocol NSURLDownloadDelegate as it is SPI on iOS.
1305
1306         * Misc/WebDownload.h:
1307
1308 2015-01-15  Csaba Osztrogonác  <ossy@webkit.org>
1309
1310         Remove ENABLE(SQL_DATABASE) guards
1311         https://bugs.webkit.org/show_bug.cgi?id=140434
1312
1313         Reviewed by Darin Adler.
1314
1315         * Configurations/FeatureDefines.xcconfig:
1316         * Storage/WebDatabaseManager.mm:
1317         (databasesDirectoryPath):
1318         * Storage/WebDatabaseManagerClient.h:
1319         * Storage/WebDatabaseManagerClient.mm:
1320         * Storage/WebDatabaseManagerInternal.h:
1321         * Storage/WebDatabaseManagerPrivate.h:
1322         * Storage/WebDatabaseQuotaManager.mm:
1323         (-[WebDatabaseQuotaManager usage]):
1324         (-[WebDatabaseQuotaManager quota]):
1325         (-[WebDatabaseQuotaManager setQuota:]):
1326         * WebCoreSupport/WebChromeClient.h:
1327         * WebCoreSupport/WebChromeClient.mm:
1328         * WebCoreSupport/WebSecurityOrigin.mm:
1329         (-[WebSecurityOrigin usage]):
1330         (-[WebSecurityOrigin quota]):
1331         (-[WebSecurityOrigin setQuota:]):
1332         * WebView/WebFrame.mm:
1333         (-[WebFrame _cacheabilityDictionary]):
1334         * WebView/WebView.mm:
1335         (-[WebView _commonInitializationWithFrameName:groupName:]):
1336         (-[WebView _preferencesChanged:]):
1337
1338 2015-01-14  Chris Dumez  <cdumez@apple.com>
1339
1340         Make 'TypeName' parameter unnecessary in CSSPropertyNames.in
1341         https://bugs.webkit.org/show_bug.cgi?id=140347
1342
1343         Reviewed by Darin Adler.
1344
1345         Call FontDescription::setIsItalic() instead of setItalic() as the
1346         call site passes a boolean.
1347
1348         * WebView/WebHTMLView.mm:
1349         (fontNameForDescription):
1350
1351 2015-01-13  Anders Carlsson  <andersca@apple.com>
1352
1353         Temporarily reintroduce the informal delegate protocols
1354         https://bugs.webkit.org/show_bug.cgi?id=140416
1355
1356         Reviewed by Dan Bernstein.
1357
1358         * WebView/WebEditingDelegate.h:
1359         * WebView/WebFrameLoadDelegate.h:
1360         * WebView/WebPolicyDelegate.h:
1361         * WebView/WebResourceLoadDelegate.h:
1362         * WebView/WebUIDelegate.h:
1363
1364 2015-01-13  Beth Dakin  <bdakin@apple.com>
1365
1366         Should disable immediate actions for iTunes
1367         https://bugs.webkit.org/show_bug.cgi?id=140405
1368         -and corresponding-
1369         rdar://problem/19461358
1370
1371         Reviewed by Tim Horton.
1372
1373         * WebView/WebImmediateActionController.mm:
1374         (-[WebImmediateActionController _updateImmediateActionItem]):
1375
1376 2015-01-11  Sam Weinig  <sam@webkit.org>
1377
1378         Remove support for SharedWorkers
1379         https://bugs.webkit.org/show_bug.cgi?id=140344
1380
1381         Reviewed by Anders Carlsson.
1382
1383         * Configurations/FeatureDefines.xcconfig:
1384         * WebCoreSupport/WebPlatformStrategies.h:
1385         * WebCoreSupport/WebPlatformStrategies.mm:
1386         (WebPlatformStrategies::createSharedWorkerStrategy): Deleted.
1387
1388 2015-01-12  Timothy Horton  <timothy_horton@apple.com>
1389
1390         Get rid of unnecessary reimplementations of CGFloor/Ceiling
1391         https://bugs.webkit.org/show_bug.cgi?id=140375
1392
1393         Reviewed by Simon Fraser.
1394
1395         * Misc/WebKitNSStringExtras.mm:
1396         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
1397         (webkit_CGCeiling): Deleted.
1398         Delete unnecessary code, use the real CGFloor/Ceiling instead.
1399
1400 2015-01-12  Anders Carlsson  <andersca@apple.com>
1401
1402         Make delegates conform to formal delegate protocols
1403         https://bugs.webkit.org/show_bug.cgi?id=140370
1404
1405         Reviewed by Dan Bernstein.
1406
1407         * DefaultDelegates/WebDefaultPolicyDelegate.h:
1408         * WebCoreSupport/WebInspectorClient.mm:
1409         Add protocols to the interface declarations.
1410
1411         * WebView/WebActionMenuController.mm:
1412         (-[WebActionMenuController prepareForMenu:withEvent:]):
1413         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
1414         * WebView/WebImmediateActionController.mm:
1415         (-[WebImmediateActionController _updateImmediateActionItem]):
1416         (-[WebImmediateActionController _menuItemForDataDetectedText]):
1417         Cast to id when trying to invoke delegate methods that aren't on WebUIDelegate.
1418
1419 2015-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
1420
1421         Allow targetting the SVG->OTF font converter with ENABLE(SVG_OTF_CONVERTER)
1422         https://bugs.webkit.org/show_bug.cgi?id=136769
1423
1424         Reviewed by Antti Koivisto.
1425
1426         * Configurations/FeatureDefines.xcconfig:
1427
1428 2015-01-12  Timothy Horton  <timothy_horton@apple.com>
1429
1430         Multi-rect TextIndicators are vertically flipped in WebKit1
1431         https://bugs.webkit.org/show_bug.cgi?id=140350
1432         <rdar://problem/19441243>
1433
1434         Reviewed by Beth Dakin.
1435
1436         * WebView/WebView.mm:
1437         (-[WebView _setTextIndicator:fadeOut:]):
1438         Convert the textBoundingRect from root view to screen coordinates.
1439
1440 2015-01-12  Anders Carlsson  <andersca@apple.com>
1441
1442         Make WebResourceDelegate a formal protocol as well
1443         https://bugs.webkit.org/show_bug.cgi?id=140364
1444
1445         Reviewed by Dan Bernstein.
1446
1447         * WebView/WebResourceLoadDelegate.h:
1448
1449 2015-01-12  Anders Carlsson  <andersca@apple.com>
1450
1451         Delegates should be formal protocols
1452         https://bugs.webkit.org/show_bug.cgi?id=140360
1453         rdar://problem/17380856
1454
1455         Reviewed by Dan Bernstein.
1456
1457         This is the first half of this change. The second half involves actually changing the delegate properties to be protocols.
1458
1459         * DefaultDelegates/WebDefaultUIDelegate.h:
1460         * Misc/WebDownload.h:
1461         * WebView/WebEditingDelegate.h:
1462         * WebView/WebFrameLoadDelegate.h:
1463         * WebView/WebPolicyDelegate.h:
1464         * WebView/WebUIDelegate.h:
1465
1466 2015-01-09  Anders Carlsson  <andersca@apple.com>
1467
1468         Get rid of the database strategy
1469         https://bugs.webkit.org/show_bug.cgi?id=140322
1470
1471         Reviewed by Sam Weinig.
1472
1473         * WebCoreSupport/WebPlatformStrategies.h:
1474         * WebCoreSupport/WebPlatformStrategies.mm:
1475         (WebPlatformStrategies::createDatabaseStrategy): Deleted.
1476
1477 2015-01-08  Timothy Horton  <timothy_horton@apple.com>
1478
1479         Can't use DataDetectors after immediate action preparation
1480         https://bugs.webkit.org/show_bug.cgi?id=140263
1481         <rdar://problem/19412705>
1482
1483         Reviewed by Beth Dakin.
1484
1485         * WebView/WebImmediateActionController.mm:
1486         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
1487         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
1488         To match WebKit2, only call shouldUseActions if the animation is actually
1489         going to begin, not when preparing for it. This way, we're guaranteed
1490         to get a didCancel or didComplete.
1491
1492 2015-01-08  Dean Jackson  <dino@apple.com>
1493
1494         Text not drawn or white-on-white for "Close Page"/"Go Back" button on safe browsing warning page
1495         https://bugs.webkit.org/show_bug.cgi?id=140232
1496         <rdar://problem/19371010>
1497
1498         Reviewed by Anders Carlsson.
1499
1500         Remove the applicationChromeMode setting, but leave stubs in to make
1501         sure existing binaries don't break.
1502
1503         * WebCoreSupport/WebInspectorClient.mm:
1504         (-[WebInspectorWindowController init]):
1505         * WebView/WebPreferenceKeysPrivate.h:
1506         * WebView/WebPreferences.mm:
1507         (+[WebPreferences initialize]):
1508         (-[WebPreferences applicationChromeModeEnabled]):
1509         (-[WebPreferences setApplicationChromeModeEnabled:]):
1510         * WebView/WebView.mm:
1511         (-[WebView _preferencesChanged:]):
1512
1513 2015-01-07  Daniel Bates  <dabates@apple.com>
1514
1515         [iOS] Make WebKit2 build with public iOS SDK and more build fixes for DRT
1516         https://bugs.webkit.org/show_bug.cgi?id=137371
1517
1518         Reviewed by David Kilzer.
1519
1520         Use SPI wrapper headers instead of directly references private SPI headers.
1521
1522         * Plugins/Hosted/NetscapePluginHostManager.mm:
1523
1524 2015-01-07  Commit Queue  <commit-queue@webkit.org>
1525
1526         Unreviewed, rolling out r178068.
1527         https://bugs.webkit.org/show_bug.cgi?id=140235
1528
1529         Breaks the iOS build (Requested by enrica on #webkit).
1530
1531         Reverted changeset:
1532
1533         "[iOS] Make WebKit2 build with public iOS SDK and more build
1534         fixes for DRT"
1535         https://bugs.webkit.org/show_bug.cgi?id=137371
1536         http://trac.webkit.org/changeset/178068
1537
1538 2015-01-07  Daniel Bates  <dabates@apple.com>
1539
1540         [iOS] Make WebKit2 build with public iOS SDK and more build fixes for DRT
1541         https://bugs.webkit.org/show_bug.cgi?id=137371
1542
1543         Reviewed by David Kilzer.
1544
1545         Use SPI wrapper headers instead of directly references private SPI headers.
1546
1547         * Plugins/Hosted/NetscapePluginHostManager.mm:
1548
1549 2015-01-07  Beth Dakin  <bdakin@apple.com>
1550
1551         Adopt delegate callbacks so that standardQuickLookMenuItem does not obscure the 
1552         link
1553         https://bugs.webkit.org/show_bug.cgi?id=140206
1554         -and corresponding-
1555         rdar://problem/19300492
1556
1557         Reviewed by Tim Horton.
1558
1559         Providing and item frame will ensure that the original link is not obscured.
1560         * WebView/WebImmediateActionController.mm:
1561         (elementBoundingBoxInWindowCoordinatesFromNode):
1562         (-[WebImmediateActionController menuItem:itemFrameForPoint:]):
1563
1564         For now use a max size that is smaller than the WebView, with the screen’s aspect 
1565         ratio, and scaled down.
1566         (-[WebImmediateActionController menuItem:maxSizeForPoint:]):
1567
1568 2015-01-07  Anders Carlsson  <andersca@apple.com>
1569
1570         Give simple HTML documents a database provider
1571         https://bugs.webkit.org/show_bug.cgi?id=140192
1572         rdar://problem/19398825
1573
1574         Reviewed by Tim Horton.
1575
1576         * WebView/WebView.mm:
1577         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1578
1579 2015-01-06  Anders Carlsson  <andersca@apple.com>
1580
1581         Reimplement NPN_PluginThreadAsyncCall without using PluginMainThreadScheduler
1582         https://bugs.webkit.org/show_bug.cgi?id=140140
1583
1584         Reviewed by Andreas Kling.
1585
1586         Just use a dispatch_async call to the main queue. This will let us move PluginMainThreadScheduler
1587         out of WebCore since nobody else is using it.
1588
1589         * Plugins/WebNetscapePluginView.h:
1590         * Plugins/WebNetscapePluginView.mm:
1591         (-[WebNetscapePluginView _createPlugin]):
1592         (-[WebNetscapePluginView _destroyPlugin]):
1593         * Plugins/npapi.mm:
1594         (NPN_PluginThreadAsyncCall):
1595
1596 2015-01-06  Anders Carlsson  <andersca@apple.com>
1597
1598         Add a WebKit1 database provider
1599         https://bugs.webkit.org/show_bug.cgi?id=140126
1600
1601         Reviewed by Sam Weinig.
1602
1603         Set the database provider.
1604
1605         * WebView/WebView.mm:
1606         (-[WebView _commonInitializationWithFrameName:groupName:]):
1607
1608 2015-01-06  Commit Queue  <commit-queue@webkit.org>
1609
1610         Unreviewed, rolling out r177963.
1611         https://bugs.webkit.org/show_bug.cgi?id=140136
1612
1613         Caused lots of crashes (Requested by smfr on #webkit).
1614
1615         Reverted changeset:
1616
1617         "Add a WebKit1 database provider"
1618         https://bugs.webkit.org/show_bug.cgi?id=140126
1619         http://trac.webkit.org/changeset/177963
1620
1621 2015-01-06  Anders Carlsson  <andersca@apple.com>
1622
1623         Add a WebKit1 database provider
1624         https://bugs.webkit.org/show_bug.cgi?id=140126
1625
1626         Reviewed by Sam Weinig.
1627
1628         Set the database provider.
1629
1630         * WebView/WebView.mm:
1631         (-[WebView _commonInitializationWithFrameName:groupName:]):
1632
1633 2015-01-01  Jeff Miller  <jeffm@apple.com>
1634
1635         Update user-visible copyright strings to include 2015
1636         https://bugs.webkit.org/show_bug.cgi?id=139880
1637
1638         Reviewed by Darin Adler.
1639
1640         * Info.plist:
1641
1642 2014-12-30  Dan Bernstein  <mitz@apple.com>
1643
1644         [Cocoa] Enable the compiler to check format strings specified with UI_STRING and UI_STRING_KEY
1645         https://bugs.webkit.org/show_bug.cgi?id=140003
1646
1647         Reviewed by Darin Adler.
1648
1649         * Misc/WebLocalizableStrings.h: Made UI_STRING and UI_STRING_KEY call a new helper function
1650         that takes their "string" parameter as a "value" "parameter and has an attribute telling
1651         the compiler that if the "value" parameter is a format string then the function returns a
1652         modified version of it. The result is that if UI_STRING is used as a format string parameter
1653         to some function or method, the compiler will check the format specifiers in the string
1654         against the other parameters.
1655
1656 2014-12-29  Dan Bernstein  <mitz@apple.com>
1657
1658         Fixed the iOS build.
1659
1660         * Configurations/WebKitLegacy.xcconfig:
1661
1662 2014-12-29  Anders Carlsson  <andersca@apple.com>
1663
1664         Get rid of some PageGroup storage functions
1665         https://bugs.webkit.org/show_bug.cgi?id=139996
1666
1667         Reviewed by Sam Weinig.
1668
1669         Call WebStorageNamespaceProvider directly instead.
1670
1671         * Storage/WebStorageManager.mm:
1672         (-[WebStorageManager syncLocalStorage]):
1673         (+[WebStorageManager closeIdleLocalStorageDatabases]):
1674         * WebView/WebView.mm:
1675         (+[WebView _applicationWillTerminate]):
1676
1677 2014-12-29  Anders Carlsson  <andersca@apple.com>
1678
1679         Move storage code from WebCore to WebKit
1680         https://bugs.webkit.org/show_bug.cgi?id=139558
1681
1682         Reviewed by Darin Adler.
1683
1684         * Storage/WebStorageManager.mm:
1685         * Storage/WebStorageTrackerClient.h:
1686         * WebView/WebView.mm:
1687
1688 2014-12-26  Dan Bernstein  <mitz@apple.com>
1689
1690         <rdar://problem/19348208> REGRESSION (r177027): iOS builds use the wrong toolchain
1691         https://bugs.webkit.org/show_bug.cgi?id=139950
1692
1693         Reviewed by David Kilzer.
1694
1695         * Configurations/Base.xcconfig: Only define TOOLCHAINS when building for OS X, doing so
1696         in a manner that works with Xcode 5.1.1.
1697
1698 2014-12-23  Timothy Horton  <timothy_horton@apple.com>
1699
1700         Install a TextIndicator for link immediate actions
1701         https://bugs.webkit.org/show_bug.cgi?id=139897
1702         <rdar://problem/19333076>
1703
1704         Reviewed by Anders Carlsson.
1705
1706         * WebView/WebImmediateActionController.h:
1707         * WebView/WebImmediateActionController.mm:
1708         (-[WebImmediateActionController _clearImmediateActionState]):
1709         Tear down the TextIndicator, just like WebKit2.
1710
1711         (-[WebImmediateActionController _defaultAnimationController]):
1712         Install a TextIndicator for links.
1713
1714         (-[WebImmediateActionController menuItemDidClose:]):
1715         Tear down the TextIndicator when the QL preview closes.
1716
1717         (-[WebImmediateActionController _menuItemForDataDetectedText]):
1718         Directly install and uninstall the TextIndicator for DataDetectors.
1719
1720         (-[WebImmediateActionController _showTextIndicator]): Deleted.
1721         (-[WebImmediateActionController _hideTextIndicator]): Deleted.
1722         Remove the isShowingTextIndicator mechanism, just like it was removed from WebKit2.
1723
1724 2014-12-20  Eric Carlson  <eric.carlson@apple.com>
1725
1726         [iOS] add optimized fullscreen API
1727         https://bugs.webkit.org/show_bug.cgi?id=139833
1728         <rdar://problem/18844486>
1729
1730         Reviewed by Simon Fraser.
1731
1732         * Configurations/FeatureDefines.xcconfig:  Add ENABLE_VIDEO_PRESENTATION_MODE.
1733
1734 2014-12-20  David Kilzer  <ddkilzer@apple.com>
1735
1736         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
1737         <http://webkit.org/b/139463>
1738
1739         Reviewed by Mark Rowe.
1740
1741         * Configurations/Base.xcconfig:
1742         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
1743           on OS X.
1744         - Set GCC_OPTIMIZATION_LEVEL_normal based on SDK.
1745         * Configurations/DebugRelease.xcconfig:
1746         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
1747         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
1748         * Configurations/Version.xcconfig:
1749         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
1750         * Configurations/WebKitLegacy.xcconfig:
1751         - Set EXCLUDED_SOURCE_FILE_NAMES, EXPORTED_SYMBOLS_FILE_x86_64,
1752           FRAMEWORK_SEARCH_PATHS, OTHER_CFLAGS, INSTALL_PATH,
1753           DYLIB_INSTALL_NAME_BASE, OTHER_LDFLAGS, SECTORDER_FLAGS,
1754           NORMAL_WEBKIT_LEGACY_FRAMEWORKS_DIR,
1755           WEBKIT_LEGACY_FRAMEWORKS_DIR, NORMAL_PRODUCTION_FRAMEWORKS_DIR,
1756           PRODUCTION_FRAMEWORKS_DIR, PRODUCTION_ROOT,
1757           WEBCORE_PRIVATE_HEADERS_DIR_Production and
1758           WEBKITSYSTEMINTERFACE_STATIC_LIBRARY_HEADERS_FOLDER_PATH_engineering
1759           based on SDK.
1760         - Fix PRODUCTION_ROOT to actually be set properly.
1761         - Simplify EXPORTED_SYMBOLS_FILE_i386.
1762
1763         * migrate-headers.sh:
1764         - Get rid of unused WEBKIT2_FRAMEWORKS_DIR variable.
1765         - Change WEBCORE_PRIVATE_HEADERS_DIR_macosx_Production to
1766           WEBCORE_PRIVATE_HEADERS_DIR_Production based on changes to
1767           WebKitLegacy.xcconfig.
1768
1769 2014-12-19  Simon Fraser  <simon.fraser@apple.com>
1770
1771         Fix pink background on CoreAnimation plug-ins in WebKit1
1772         https://bugs.webkit.org/show_bug.cgi?id=139845
1773         rdar://problem/19313075
1774
1775         Reviewed by Tim Horton.
1776         
1777         r154078 left in some debugging code that set a pink background on plug-in hosting
1778         layers. Remove it.
1779
1780         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1781         (-[WebHostedNetscapePluginView createPluginLayer]):
1782
1783 2014-12-19  Andreas Kling  <akling@apple.com>
1784
1785         Ref-ify TextIterator API.
1786         <https://webkit.org/b/139823>
1787
1788         Reviewed by Antti Koivisto.
1789
1790         * WebView/WebTextIterator.mm:
1791         (-[WebTextIterator currentRange]):
1792
1793 2014-12-19  Joseph Pecoraro  <pecoraro@apple.com>
1794
1795         Web Inspector: CRASH inspector-protocol/debugger/breakpoint-action-detach.html
1796         https://bugs.webkit.org/show_bug.cgi?id=139797
1797
1798         Reviewed by Mark Lam.
1799
1800         * WebView/WebScriptDebugger.h:
1801         * WebView/WebScriptDebugger.mm:
1802         (WebScriptDebugger::handlePause):
1803         Standardize on passing JSGlobalObject parameter first.
1804
1805 2014-12-19  Commit Queue  <commit-queue@webkit.org>
1806
1807         Unreviewed, rolling out r177574.
1808         https://bugs.webkit.org/show_bug.cgi?id=139821
1809
1810         "Broke Production builds by installing
1811         libWebCoreTestSupport.dylib in the wrong directory" (Requested
1812         by ddkilzer on #webkit).
1813
1814         Reverted changeset:
1815
1816         "Switch from using PLATFORM_NAME to SDK selectors in WebCore,
1817         WebInspectorUI, WebKit, WebKit2"
1818         https://bugs.webkit.org/show_bug.cgi?id=139463
1819         http://trac.webkit.org/changeset/177574
1820
1821 2014-12-19  David Kilzer  <ddkilzer@apple.com>
1822
1823         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
1824         <http://webkit.org/b/139463>
1825
1826         Reviewed by Mark Rowe.
1827
1828         * Configurations/Base.xcconfig:
1829         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
1830           on OS X.
1831         - Set GCC_OPTIMIZATION_LEVEL_normal based on SDK.
1832         * Configurations/DebugRelease.xcconfig:
1833         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
1834         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
1835         * Configurations/Version.xcconfig:
1836         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
1837         * Configurations/WebKitLegacy.xcconfig:
1838         - Set EXCLUDED_SOURCE_FILE_NAMES, EXPORTED_SYMBOLS_FILE_x86_64,
1839           FRAMEWORK_SEARCH_PATHS, OTHER_CFLAGS, INSTALL_PATH,
1840           DYLIB_INSTALL_NAME_BASE, OTHER_LDFLAGS, SECTORDER_FLAGS,
1841           NORMAL_WEBKIT_LEGACY_FRAMEWORKS_DIR,
1842           WEBKIT_LEGACY_FRAMEWORKS_DIR, NORMAL_PRODUCTION_FRAMEWORKS_DIR,
1843           PRODUCTION_FRAMEWORKS_DIR, PRODUCTION_ROOT,
1844           WEBCORE_PRIVATE_HEADERS_DIR_Production and
1845           WEBKITSYSTEMINTERFACE_STATIC_LIBRARY_HEADERS_FOLDER_PATH_engineering
1846           based on SDK.
1847         - Fix PRODUCTION_ROOT to actually be set properly.
1848         - Simplify EXPORTED_SYMBOLS_FILE_i386.
1849
1850         * migrate-headers.sh:
1851         - Get rid of unused WEBKIT2_FRAMEWORKS_DIR variable.
1852         - Change WEBCORE_PRIVATE_HEADERS_DIR_macosx_Production to
1853           WEBCORE_PRIVATE_HEADERS_DIR_Production based on changes to
1854           WebKitLegacy.xcconfig.
1855
1856 2014-12-18  Andreas Kling  <akling@apple.com>
1857
1858         Ref-ify various Document-related things.
1859         <https://webkit.org/b/139796>
1860
1861         Reviewed by Anders Carlsson.
1862
1863         * WebView/WebFrame.mm:
1864         (-[WebFrame _replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
1865
1866 2014-12-18  Beth Dakin  <bdakin@apple.com>
1867
1868         Need to re-enable action menus
1869         https://bugs.webkit.org/show_bug.cgi?id=139795
1870         -and corresponding-
1871         rdar://problem/19299367
1872
1873         Reviewed by Tim Horton.
1874
1875         Re-enable the menus by un-commenting the code to create the menu and controller.
1876         * WebView/WebView.mm:
1877         (-[WebView _commonInitializationWithFrameName:groupName:]):
1878
1879 2014-12-16  Sam Weinig  <sam@webkit.org>
1880
1881         Unify the Mac and iOS implementations of FontPlatformData a bit
1882         https://bugs.webkit.org/show_bug.cgi?id=139721
1883
1884         Reviewed by Anders Carlsson.
1885
1886         * WebView/WebHTMLView.mm:
1887         (fontNameForDescription):
1888         Update for new function name.
1889
1890 2014-12-18  Antti Koivisto  <antti@apple.com>
1891
1892         Remove alwaysUseBaselineOfPrimaryFont setting
1893         https://bugs.webkit.org/show_bug.cgi?id=139770
1894
1895         Reviewed by Anders Carlsson.
1896
1897         * WebView/WebPreferenceKeysPrivate.h:
1898         * WebView/WebPreferences.mm:
1899         (-[WebPreferences _setAlwaysUseBaselineOfPrimaryFont:]): Deleted.
1900         (-[WebPreferences _alwaysUseBaselineOfPrimaryFont]): Deleted.
1901         * WebView/WebPreferencesPrivate.h:
1902         * WebView/WebView.mm:
1903         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1904         (-[WebView _preferencesChanged:]):
1905
1906 2014-12-17  Andreas Kling  <akling@apple.com>
1907
1908         Ref-ify Range::create().
1909         <https://webkit.org/b/139755>
1910
1911         Reviewed by Anders Carlsson.
1912
1913         * WebView/WebHTMLRepresentation.mm:
1914         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1915         * WebView/WebHTMLView.mm:
1916         (-[WebHTMLView attributedString]):
1917
1918 2014-12-17  Anders Carlsson  <andersca@apple.com>
1919
1920         Unify -[WebResource description]
1921         https://bugs.webkit.org/show_bug.cgi?id=139762
1922
1923         Reviewed by Dan Bernstein.
1924
1925         * WebView/WebResource.mm:
1926         (-[WebResource description]):
1927
1928 2014-12-17  Anders Carlsson  <andersca@apple.com>
1929
1930         Get rid of an ugly #define hack in WebFrameLoaderClient
1931         https://bugs.webkit.org/show_bug.cgi?id=139761
1932
1933         Reviewed by Dan Bernstein.
1934
1935         Also replace @private with @package in all public headers, for consistency.
1936
1937         * History/WebBackForwardList.h:
1938         * History/WebHistory.h:
1939         * Misc/WebDownload.h:
1940         * WebCoreSupport/WebFrameLoaderClient.mm:
1941         * WebView/WebArchive.h:
1942         * WebView/WebDataSource.h:
1943         * WebView/WebFrame.h:
1944         * WebView/WebFrameView.h:
1945         * WebView/WebPreferences.h:
1946         * WebView/WebResource.h:
1947
1948 2014-12-17  Dan Bernstein  <mitz@apple.com>
1949
1950         <rdar://problem/19282508> WebKitLegacy is unusable due to bad dylib identifier
1951         https://bugs.webkit.org/show_bug.cgi?id=139760
1952
1953         Reviewed by Anders Carlsson.
1954
1955         * Configurations/WebKitLegacy.xcconfig:
1956
1957 2014-12-17  Andreas Kling  <akling@apple.com>
1958
1959         Purge PassRefPtr from Frame.
1960         <https://webkit.org/b/139731>
1961
1962         Reviewed by Anders Carlsson.
1963
1964         * WebCoreSupport/WebFrameLoaderClient.mm:
1965         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1966         * WebView/WebFrame.mm:
1967         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
1968         (+[WebFrame _createSubframeWithOwnerElement:frameName:frameView:]):
1969         * WebView/WebFrameInternal.h:
1970
1971 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
1972
1973         Implement and adopt two new TextIndicator presentation animations
1974         https://bugs.webkit.org/show_bug.cgi?id=139715
1975         <rdar://problem/19237945>
1976
1977         Reviewed by Anders Carlsson.
1978
1979         * WebView/WebActionMenuController.mm:
1980         (-[WebActionMenuController _showTextIndicator]):
1981         * WebView/WebHTMLView.mm:
1982         (-[WebHTMLView quickLookWithEvent:]):
1983         Remove the completionHandler from text indicator presentation.
1984
1985         * WebView/WebImmediateActionController.mm:
1986         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
1987         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
1988         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
1989         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
1990         (-[WebImmediateActionController _menuItemForDataDetectedText]):
1991         (-[WebImmediateActionController _animationControllerForText]):
1992         (-[WebImmediateActionController _showTextIndicator]):
1993         Forward immediate action gesture recognizer animation progress
1994         to TextIndicator. Force us to keep the selection when immediate
1995         action popovers steal first responder status from the WebView.
1996         If the Lookup range is equal to the selection range, use a Crossfade
1997         animation; otherwise, use a FadeIn animation.
1998
1999         * WebView/WebView.mm:
2000         (-[WebView _setMaintainsInactiveSelection:]):
2001         (-[WebView maintainsInactiveSelection]):
2002         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2003         (-[WebView _setTextIndicator:fadeOut:]):
2004         (-[WebView _clearTextIndicator]):
2005         (-[WebView _setTextIndicatorAnimationProgress:]):
2006         (-[WebView _showDictionaryLookupPopup:]):
2007         (-[WebView _dictionaryLookupPopoverWillClose:]):
2008         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
2009         Remove the completionHandler from text indicator presentation.
2010         Add a _setMaintainsInactiveSelection, which allows WebKit internals
2011         to change the return value of -maintainsInactiveSelection, allowing
2012         us to keep the selection alive when the WebView loses first responder status.
2013
2014         * WebView/WebViewData.h:
2015         * WebView/WebViewInternal.h:
2016
2017 2014-12-16  Andreas Kling  <akling@apple.com>
2018
2019         Use Ref for SecurityOrigin.
2020         <https://webkit.org/b/139710>
2021
2022         Reviewed by Anders Carlsson.
2023
2024         * Storage/WebStorageTrackerClient.mm:
2025         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2026         * WebView/WebView.mm:
2027         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
2028         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
2029
2030 2014-12-16  Beth Dakin  <bdakin@apple.com>
2031
2032         Crash getting default animation controller for some text
2033         https://bugs.webkit.org/show_bug.cgi?id=139712
2034         -and corresponding-
2035         rdar://problem/19271707
2036
2037         Reviewed by Tim Horton.
2038
2039         Must null-check the range.
2040         * WebView/WebImmediateActionController.mm:
2041         (-[WebImmediateActionController _animationControllerForText]):
2042
2043 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
2044
2045         Immediate action popovers can get stuck open
2046         https://bugs.webkit.org/show_bug.cgi?id=139709
2047         <rdar://problem/19270279>
2048
2049         Reviewed by Beth Dakin.
2050
2051         * WebView/WebImmediateActionController.mm:
2052         (-[WebImmediateActionController _clearImmediateActionState]):
2053         Don't clear the animation controller; it breaks things and was unnecessary.
2054
2055 2014-12-16  Tim Horton  <timothy_horton@apple.com>
2056
2057         Disable TextIndication for Lookup immediate actions
2058         https://bugs.webkit.org/show_bug.cgi?id=139684
2059
2060         Reviewed by Anders Carlsson.
2061
2062         * WebView/WebView.mm:
2063         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2064
2065 2014-12-15  Beth Dakin  <bdakin@apple.com>
2066
2067         Build fix.
2068
2069         * WebView/WebImmediateActionController.mm:
2070
2071 2014-12-15  Beth Dakin  <bdakin@apple.com>
2072
2073         Speculative build fix.
2074
2075         * WebView/WebView.mm:
2076         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2077         * WebView/WebViewInternal.h:
2078
2079 2014-12-15  Beth Dakin  <bdakin@apple.com>
2080
2081         Make lookup an immediate action instead of an action menu item
2082         https://bugs.webkit.org/show_bug.cgi?id=139661
2083         -and corresponding-
2084         rdar://problem/19198414
2085
2086         Reviewed by Tim Horton.
2087
2088         Remove the lookup menu items and non-unused static function associated with 
2089         lookup.
2090         * WebView/WebActionMenuController.mm:
2091         (-[WebActionMenuController _defaultMenuItemsForText]):
2092         (-[WebActionMenuController _defaultMenuItemsForEditableText]):
2093         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]):
2094         (-[WebActionMenuController _createActionMenuItemForTag:]):
2095         (-[WebActionMenuController _lookupText:]): Deleted.
2096         (performDictionaryLookupForSelection): Deleted.
2097         (performDictionaryLookupForRange): Deleted.
2098
2099         Set the defaultAnimationController to the lookup-provided animation controller 
2100         when appropriate.
2101         * WebView/WebImmediateActionController.mm:
2102         (-[WebImmediateActionController _defaultAnimationController]):
2103         (dictionaryPopupInfoForRange):
2104         (-[WebImmediateActionController _animationControllerForText]):
2105
2106         New type.
2107         * WebView/WebUIDelegatePrivate.h:
2108
2109         New function to get the lookup animation controller.
2110         * WebView/WebView.mm:
2111         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2112         * WebView/WebViewInternal.h:
2113
2114 2014-12-15  Timothy Horton  <timothy_horton@apple.com>
2115
2116         Implement Data Detectors immediate actions for Legacy WebKit
2117         https://bugs.webkit.org/show_bug.cgi?id=139619
2118         <rdar://problem/19198539>
2119
2120         Reviewed by Beth Dakin.
2121
2122         * WebView/WebImmediateActionController.mm:
2123         (-[WebImmediateActionController _menuItemForDataDetectedText]):
2124         Note that this action context is only for immediate actions.
2125
2126 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
2127
2128         Addressing post-review comments in r177035
2129         https://bugs.webkit.org/show_bug.cgi?id=139557
2130
2131         Reviewed by Darin Adler.
2132
2133         * WebView/WebActionMenuController.mm:
2134         (elementBoundingBoxInWindowCoordinatesFromNode): Migrate off rendererBoundingBox().
2135
2136 2014-12-15  Timothy Horton  <timothy_horton@apple.com>
2137
2138         Implement Data Detectors immediate actions for Legacy WebKit
2139         https://bugs.webkit.org/show_bug.cgi?id=139619
2140         <rdar://problem/19198539>
2141
2142         Reviewed by Eric Carlson.
2143
2144         * WebView/WebHTMLView.mm:
2145         (-[WebHTMLView mouseDown:mouseDown:]):
2146         Send mouseDown along to the WebImmediateActionController too.
2147
2148         * WebView/WebImmediateActionController.h:
2149         * WebView/WebImmediateActionController.mm:
2150         (-[WebImmediateActionController webViewClosed]):
2151         (-[WebImmediateActionController webView:willHandleMouseDown:]):
2152         (-[WebImmediateActionController _cancelImmediateAction]):
2153         (-[WebImmediateActionController _clearImmediateActionState]):
2154         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2155         (-[WebImmediateActionController _defaultAnimationController]):
2156         (-[WebImmediateActionController _updateImmediateActionItem]):
2157         (-[WebImmediateActionController _menuItemForDataDetectedText]):
2158         (-[WebImmediateActionController _showTextIndicator]):
2159         (-[WebImmediateActionController _hideTextIndicator]):
2160         Copy most of the DataDetectors implementation into WebImmediateActionController.
2161
2162         * WebView/WebUIDelegatePrivate.h:
2163         Add a new type.
2164
2165         * WebView/WebView.mm:
2166         (-[WebView _commonInitializationWithFrameName:groupName:]):
2167         Temporarily disable action menus.
2168
2169         (-[WebView _immediateActionController]):
2170         * WebView/WebViewInternal.h:
2171
2172 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
2173
2174         Delete Notation because we don't use it
2175         https://bugs.webkit.org/show_bug.cgi?id=139171
2176
2177         Reviewed by Kent Tamura.
2178
2179         * MigrateHeaders.make:
2180
2181 2014-12-14  Andreas Kling  <akling@apple.com>
2182
2183         Replace PassRef with Ref/Ref&& across the board.
2184         <https://webkit.org/b/139587>
2185
2186         Reviewed by Darin Adler.
2187
2188         * WebCoreSupport/WebEditorClient.mm:
2189         (WebEditorClient::shouldApplyStyle):
2190         * WebCoreSupport/WebVisitedLinkStore.h:
2191         * WebCoreSupport/WebVisitedLinkStore.mm:
2192         (WebVisitedLinkStore::create):
2193
2194 2014-12-11  Dan Bernstein  <mitz@apple.com>
2195
2196         Fix a leak introduced in r177199.
2197
2198         Reviewed by Anders Carlsson.
2199
2200         * WebView/WebImmediateActionController.mm:
2201         (-[WebImmediateActionController _updateImmediateActionItem]):
2202
2203 2014-12-11  Beth Dakin  <bdakin@apple.com>
2204
2205         WK1: Need new SPI for Webkit clients to override default immediate action
2206         https://bugs.webkit.org/show_bug.cgi?id=139568
2207         -and corresponding-
2208         rdar://problem/19225448
2209
2210         Reviewed by Dan Bernstein.
2211
2212         Call SPI giving clients a chance to override the default behavior.
2213         * WebView/WebImmediateActionController.mm:
2214         (-[WebImmediateActionController _updateImmediateActionItem]):
2215
2216         New SPI.
2217         * WebView/WebUIDelegatePrivate.h:
2218
2219 2014-12-11  Timothy Horton  <timothy_horton@apple.com>
2220
2221         Move the preview popover to WebImmediateActionController
2222         https://bugs.webkit.org/show_bug.cgi?id=139563
2223         <rdar://problem/19208291>
2224
2225         Reviewed by Beth Dakin.
2226
2227         * WebView/WebActionMenuController.mm:
2228         (-[WebActionMenuController _defaultMenuItemsForLink]):
2229         (-[WebActionMenuController menuItem:viewAtScreenPoint:]): Deleted.
2230         (-[WebActionMenuController menuItem:previewItemAtPoint:]): Deleted.
2231         (-[WebActionMenuController menuItem:preferredEdgeForPoint:]): Deleted.
2232         * WebView/WebImmediateActionController.h:
2233         * WebView/WebImmediateActionController.mm:
2234         (-[WebImmediateActionController webViewClosed]):
2235         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2236         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
2237         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2238         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2239         (-[WebImmediateActionController _updateImmediateActionItem]):
2240         (-[WebImmediateActionController menuItem:viewAtScreenPoint:]):
2241         (-[WebImmediateActionController menuItem:previewItemAtPoint:]):
2242         (-[WebImmediateActionController menuItem:preferredEdgeForPoint:]):
2243         Move page preview popover related code to WebImmediateActionController.
2244
2245         * WebView/WebUIDelegatePrivate.h:
2246         Add a link preview type.
2247
2248         * WebView/WebView.mm:
2249         (-[WebView _commonInitializationWithFrameName:groupName:]):
2250         Pass the gesture recognizer to the WebImmediateActionController.
2251
2252 2014-12-11  Timothy Horton  <timothy_horton@apple.com>
2253
2254         Fix the build.
2255
2256         * WebView/WebImmediateActionController.h:
2257         * WebView/WebImmediateActionController.mm:
2258
2259 2014-12-11  Anders Carlsson  <andersca@apple.com>
2260
2261         Call StorageThread::releaseFastMallocFreeMemoryInAllThreads from WebKit
2262         https://bugs.webkit.org/show_bug.cgi?id=139547
2263
2264         Reviewed by Sam Weinig.
2265
2266         * WebView/WebView.mm:
2267         (+[WebView _handleMemoryWarning]):
2268
2269 2014-12-11  Alexey Proskuryakov  <ap@apple.com>
2270
2271         REGRESSION (Async Text Input): Text input method state is not reset when reloading a page
2272         https://bugs.webkit.org/show_bug.cgi?id=139504
2273         rdar://problem/19034674
2274
2275         Reviewed by Enrica Casucci.
2276
2277         Stub out new client calls, this patch does not attempt to make any changes on WebKit1.
2278
2279         * WebCoreSupport/WebEditorClient.h:
2280         * WebCoreSupport/WebEditorClient.mm:
2281         (WebEditorClient::discardedComposition):
2282
2283 2014-12-10  Anders Carlsson  <andersca@apple.com>
2284
2285         Get rid of the storage strategy
2286         https://bugs.webkit.org/show_bug.cgi?id=139519
2287
2288         Reviewed by Antti Koivisto.
2289
2290         * WebCoreSupport/WebPlatformStrategies.h:
2291         * WebCoreSupport/WebPlatformStrategies.mm:
2292         (WebPlatformStrategies::createStorageStrategy): Deleted.
2293
2294 2014-12-10  Timothy Horton  <timothy_horton@apple.com>
2295
2296         Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1
2297         https://bugs.webkit.org/show_bug.cgi?id=139529
2298         <rdar://problem/19213620>
2299
2300         Reviewed by Beth Dakin.
2301
2302         * WebView/WebActionMenuController.mm:
2303         (-[WebActionMenuController _copySelection:]):
2304         (-[WebActionMenuController _paste:]):
2305         Use the copy: and paste: methods on WebView so that we traverse subviews
2306         when trying to respond, otherwise these actions don't work in subframes.
2307
2308 2014-12-10  Beth Dakin  <bdakin@apple.com>
2309
2310         WK1: Add initial support for immediate actions
2311         https://bugs.webkit.org/show_bug.cgi?id=139522
2312
2313         Reviewed by Dan Bernstein.
2314
2315         This basic implementation of the controller will use the delegate methods to 
2316         perform and cache a HitTest when relevant. Future patches will patch 
2317         _updateImmediateActionItem to use the HitTestResult to determine if there is any 
2318         immediate action that should be taken.
2319         * WebView/WebImmediateActionController.h: Added.
2320         * WebView/WebImmediateActionController.mm: Added.
2321         (-[WebImmediateActionController webViewClosed]):
2322         (-[WebImmediateActionController _clearImmediateActionState]):
2323         (-[WebImmediateActionController performHitTestAtPoint:]):
2324         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2325         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
2326         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2327         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2328         (-[WebImmediateActionController _updateImmediateActionItem]):
2329
2330         New enum for immediate action types.
2331         * WebView/WebUIDelegatePrivate.h:
2332
2333         Create an NSImmediateActionGestureRecognizer if possible and a controller.
2334         * WebView/WebView.mm:
2335         (-[WebView _commonInitializationWithFrameName:groupName:]):
2336         (-[WebView _close]):
2337         * WebView/WebViewData.h:
2338         * WebView/WebViewData.mm:
2339         (-[WebViewPrivate dealloc]):
2340
2341 2014-12-08  Anders Carlsson  <andersca@apple.com>
2342
2343         Use the new storage namespace provider in WebKit1
2344         https://bugs.webkit.org/show_bug.cgi?id=139425
2345
2346         Reviewed by Tim Horton.
2347
2348         * WebView/WebView.mm:
2349         (-[WebView _commonInitializationWithFrameName:groupName:]):
2350         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2351         Set the storage namespace provider from the web page group.
2352
2353 2014-12-10  Timothy Horton  <timothy_horton@apple.com>
2354
2355         Should have copy and paste items in all text menus
2356         https://bugs.webkit.org/show_bug.cgi?id=139510
2357         <rdar://problem/19198388>
2358
2359         Reviewed by Beth Dakin.
2360
2361         * WebView/WebActionMenuController.mm:
2362         (-[WebActionMenuController _defaultMenuItemsForText]):
2363         Add a disabled paste menu item into the read-only text menu.
2364
2365         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]):
2366         Add a disabled copy menu item into the editable whitespace text menu.
2367
2368 2014-12-10  Anders Carlsson  <andersca@apple.com>
2369
2370         Add WebStorageNamespaceProvider::closeLocalStorage
2371         https://bugs.webkit.org/show_bug.cgi?id=139502
2372
2373         Reviewed by Tim Horton.
2374
2375         * WebView/WebView.mm:
2376         (+[WebView _applicationWillTerminate]):
2377         Call WebStorageNamespaceProvider::closeLocalStorage.
2378
2379 2014-12-09  Commit Queue  <commit-queue@webkit.org>
2380
2381         Unreviewed, rolling out r177037.
2382         https://bugs.webkit.org/show_bug.cgi?id=139464
2383
2384         broke ~50 API tests (Requested by thorton on #webkit).
2385
2386         Reverted changeset:
2387
2388         "Use the new storage namespace provider in WebKit1"
2389         https://bugs.webkit.org/show_bug.cgi?id=139425
2390         http://trac.webkit.org/changeset/177037
2391
2392 2014-12-08  Anders Carlsson  <andersca@apple.com>
2393
2394         Use the new storage namespace provider in WebKit1
2395         https://bugs.webkit.org/show_bug.cgi?id=139425
2396
2397         Reviewed by Tim Horton.
2398
2399         * WebView/WebView.mm:
2400         (-[WebView _commonInitializationWithFrameName:groupName:]):
2401         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2402         Set the storage namespace provider from the web page group.
2403
2404 2014-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
2405
2406         Delete Node::boundingBox()
2407         https://bugs.webkit.org/show_bug.cgi?id=139333
2408
2409         Reviewed by Zalan Bujtas.
2410
2411         * WebView/WebActionMenuController.mm:
2412         (elementBoundingBoxInWindowCoordinatesFromNode): Use
2413         RenderObject::absoluteBoundingBoxRect().
2414
2415 2014-12-08  Alexey Proskuryakov  <ap@apple.com>
2416
2417         REGRESSION (r158036): WebView cannot handle HTTP Basic Authentication challenge
2418         https://bugs.webkit.org/show_bug.cgi?id=138843
2419         rdar://problem/18793695
2420
2421         Reviewed by Dan Bernstein.
2422
2423         * Panels/WebAuthenticationPanel.m:
2424         (-[WebAuthenticationPanel cancel:]):
2425         (-[WebAuthenticationPanel logIn:]):
2426         Don't close the panel before using panel.sheetParent, because the parent becomes nil.
2427         In fact, we don't need to close it at all, it's enough to call orderOut:, and even
2428         that only when using an old NSWindow API.
2429
2430 2014-12-08  Beth Dakin  <bdakin@apple.com>
2431
2432         Copy and Lookup menu items should be disabled when something is not copyable
2433         https://bugs.webkit.org/show_bug.cgi?id=139423
2434
2435         Reviewed by Tim Horton.
2436
2437         Disable both lookup and copy when a HitTestResult does not allow copy.
2438         * WebView/WebActionMenuController.mm:
2439
2440         Set autoenablesItems to NO. It’s messing with our ability to control the enable/
2441         disable state otherwise.
2442         * WebView/WebView.mm:
2443         (-[WebView _commonInitializationWithFrameName:groupName:]):
2444
2445 2014-12-08  Anders Carlsson  <andersca@apple.com>
2446
2447         Adding user content to a group should force that group to be created
2448         https://bugs.webkit.org/show_bug.cgi?id=139421
2449         rdar://problem/19180108
2450
2451         Reviewed by Sam Weinig.
2452
2453         * WebCoreSupport/WebViewGroup.h:
2454         Store the local storage database path in the group.
2455
2456         * WebCoreSupport/WebViewGroup.mm:
2457         (WebViewGroup::getOrCreate):
2458         If we have an existing group that hasn't had its storage namespace provider created, and the path passed is not empty,
2459         set it. This will ensure that getOrCreate will still work when creating a storage namspace provider.
2460
2461         (WebViewGroup::WebViewGroup):
2462         Initialize the new member variable.
2463
2464         (WebViewGroup::storageNamespaceProvider):
2465         Create the namespace provider lazily.
2466
2467         * WebView/WebView.mm:
2468         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2469         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2470         Use getOrCreate instead of get.
2471
2472 2014-12-08  Anders Carlsson  <andersca@apple.com>
2473
2474         WebStorageNamespaceProvider should know about its local storage database path
2475         https://bugs.webkit.org/show_bug.cgi?id=139413
2476
2477         Reviewed by Andreas Kling.
2478
2479         * WebCoreSupport/WebViewGroup.h:
2480         * WebCoreSupport/WebViewGroup.mm:
2481         (WebViewGroup::getOrCreate):
2482         (WebViewGroup::WebViewGroup):
2483         * WebView/WebView.mm:
2484         (-[WebView _commonInitializationWithFrameName:groupName:]):
2485         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2486         (-[WebView setGroupName:]):
2487         (-[WebView groupName]): Deleted.
2488
2489 2014-12-08  Daniel Bates  <dabates@apple.com>
2490
2491         [iOS] Fix the WebKit build with the public SDK
2492
2493         Include header NSURLDownloadSPI.h.
2494
2495         * WebCoreSupport/WebFrameLoaderClient.mm:
2496
2497 2014-12-07  Dan Bernstein  <mitz@apple.com>
2498
2499         Introduce and deploy a function that allocates and returns an instance of a soft-linked class
2500         https://bugs.webkit.org/show_bug.cgi?id=139348
2501
2502         Reviewed by Anders Carlsson.
2503
2504         In [[getFooClass() alloc] init*], the type of the result of +alloc is id, so the compiler
2505         picks an arbitrary declaration of init*, not necessarily the Foo one. This can then lead
2506         to warnings or errors if the types or attributes don’t match, or to runtime errors if Foo
2507         doesn’t even have the expected initializer. The new allocFooInstance() returns a Foo *, thus
2508         avoiding the ambiguity.
2509
2510         * WebView/WebActionMenuController.mm:
2511         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
2512
2513 2014-12-06  Anders Carlsson  <andersca@apple.com>
2514
2515         Add a stubbed out version of WebStorageNamespaceProvider
2516         https://bugs.webkit.org/show_bug.cgi?id=139213
2517
2518         Reviewed by Sam Weinig.
2519
2520         * WebCoreSupport/WebViewGroup.h:
2521         (WebViewGroup::storageNamespaceProvider):
2522         * WebCoreSupport/WebViewGroup.mm:
2523         (WebViewGroup::getOrCreate):
2524         (WebViewGroup::WebViewGroup):
2525         Give WebViewGroup a storage namespace provider.
2526
2527 2014-12-06  Anders Carlsson  <andersca@apple.com>
2528
2529         Fix build with newer versions of clang.
2530         rdar://problem/18978687
2531
2532         Add missing overrides and missing casts.
2533
2534         * Storage/WebDatabaseManagerClient.h:
2535         * Storage/WebStorageTrackerClient.h:
2536         * WebCoreSupport/WebChromeClient.h:
2537         * WebCoreSupport/WebFrameLoaderClient.h:
2538         * WebCoreSupport/WebInspectorClient.h:
2539         * WebView/WebDataSource.mm:
2540         (-[WebDataSource _makeRepresentation]):
2541         * WebView/WebFrameView.mm:
2542         (-[WebFrameView _makeDocumentViewForDataSource:]):
2543
2544 2014-12-05  Tim Horton  <timothy_horton@apple.com>
2545
2546         Legacy WebKit should set deviceScaleFactor in _commonInitializationWithFrameName, not _initWithFrame
2547         https://bugs.webkit.org/show_bug.cgi?id=139306
2548         <rdar://problem/19157955>
2549
2550         Reviewed by Beth Dakin.
2551
2552         * WebView/WebView.mm:
2553         (-[WebView _commonInitializationWithFrameName:groupName:]):
2554         (-[WebView _initWithFrame:frameName:groupName:]):
2555         Move setDeviceScaleFactor to the initialization path that is guaranteed to happen.
2556
2557 2014-12-05  David Kilzer  <ddkilzer@apple.com>
2558
2559         FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
2560         <http://webkit.org/b/139286>
2561
2562         Reviewed by Daniel Bates.
2563
2564         * Configurations/FeatureDefines.xcconfig: Switch back to using
2565         PLATFORM_NAME to workaround a bug in Xcode 5.1.1 on 10.8.
2566
2567 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
2568
2569         Fix the 32-bit build.
2570
2571         * WebView/WebView.mm:
2572         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
2573
2574 2014-12-04  Tim Horton  <timothy_horton@apple.com>
2575
2576         TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2
2577         https://bugs.webkit.org/show_bug.cgi?id=139252
2578         <rdar://problem/19140827>
2579
2580         Reviewed by Anders Carlsson.
2581
2582         * WebView/WebView.mm:
2583         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
2584         Adjust to the WebCore changes.
2585
2586 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
2587
2588         Implement action menus for tel: URLs
2589         https://bugs.webkit.org/show_bug.cgi?id=139240
2590         <rdar://problem/19115662>
2591
2592         Reviewed by Anders Carlsson.
2593
2594         * WebView/WebActionMenuController.mm:
2595         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
2596         Make sure to use the newly created currentActionContext... everywhere.
2597
2598 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
2599
2600         Implement action menus for tel: URLs
2601         https://bugs.webkit.org/show_bug.cgi?id=139240
2602         <rdar://problem/19115662>
2603
2604         Reviewed by Anders Carlsson.
2605
2606         * WebView/WebActionMenuController.mm:
2607         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
2608         Make sure to use the newly created currentActionContext.
2609
2610 2014-12-03  Beth Dakin  <bdakin@apple.com>
2611
2612         <input> elements get whitespace action menu instead of editable text menu
2613         https://bugs.webkit.org/show_bug.cgi?id=139241
2614         -and corresponding-
2615         rdar://problem/19072083
2616
2617         Reviewed by Sam Weinig.
2618
2619         We should disallow shadow content in the hit test. This is the default and it is 
2620         how context menus behave. We originally wanted to text inside shadow content so 
2621         that we could find the text, but the new function I added to HitTestResult will 
2622         allow that.
2623         * WebView/WebActionMenuController.mm:
2624         (-[WebActionMenuController performHitTestAtPoint:]):
2625
2626         Adjust to the fact that we don’t hit test shadow content any more.
2627         (-[WebActionMenuController focusAndSelectHitTestResult]):
2628
2629         Offer the text menus for text inside form controls.
2630         (-[WebActionMenuController _defaultMenuItems]):
2631
2632 2014-12-03  Tim Horton  <timothy_horton@apple.com>
2633
2634         Implement action menus for tel: URLs
2635         https://bugs.webkit.org/show_bug.cgi?id=139240
2636         <rdar://problem/19115662>
2637
2638         Reviewed by Anders Carlsson.
2639
2640         * WebView/WebActionMenuController.mm:
2641         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
2642         Rename this function as it will work for both mailto and tel URLs.
2643         Adjust it to use contextForView:.
2644
2645         (-[WebActionMenuController webView:willHandleMouseDown:]):
2646         (-[WebActionMenuController prepareForMenu:withEvent:]):
2647         (-[WebActionMenuController didCloseMenu:withEvent:]):
2648         (-[WebActionMenuController _defaultMenuItems]):
2649         Don't check the menu type when going to interact with _currentActionContext.
2650         We'll only have a _currentActionContext if we have a data detected item,
2651         and there are multiple menu types that end up using DDActionContext.
2652
2653         * WebView/WebUIDelegatePrivate.h:
2654         Add a new type.
2655
2656 2014-12-03  Anders Carlsson  <andersca@apple.com>
2657
2658         Set a visited link store when creating a simple WebView
2659         https://bugs.webkit.org/show_bug.cgi?id=139234
2660         <rdar://problem/19132978>
2661
2662         Reviewed by Sam Weinig.
2663
2664         * WebView/WebView.mm:
2665         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2666
2667 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
2668
2669         Fix the build.
2670
2671         * WebCoreSupport/WebFrameLoaderClient.mm:
2672
2673 2014-12-02  Alexey Proskuryakov  <ap@apple.com>
2674
2675         http/tests/appcache/main-resource-fallback-for-network-error-crash.html can break subsequent tests
2676         https://bugs.webkit.org/show_bug.cgi?id=139149
2677
2678         Reviewed by Anders Carlsson.
2679
2680         This changes API behavior. I think that it's OK, because existing behavior made no sense.
2681         We used to delete caches from disk, but they were still active in memory. Now we also
2682         obsolete them in memory, so documents that use a cache still work, but new ones don't
2683         pick one up.
2684
2685         * WebCoreSupport/WebApplicationCache.mm:
2686         (+[WebApplicationCache setMaximumSize:]): Changing maximum on-disk size doesn't
2687         need to delete in-momry caches too. Keep existing behavior.
2688         (+[WebApplicationCache deleteAllApplicationCaches]): Use the new WebCore function
2689         that properly deletes caches.
2690
2691 2014-12-02  Tim Horton  <timothy_horton@apple.com>
2692
2693         Remove a SnowLeopard-era quirk for QuickLook
2694         https://bugs.webkit.org/show_bug.cgi?id=139208
2695         <rdar://problem/19121822>
2696
2697         Reviewed by Alexey Proskuryakov.
2698
2699         * WebCoreSupport/WebFrameLoaderClient.h:
2700         * WebCoreSupport/WebFrameLoaderClient.mm:
2701
2702 2014-12-02  Tim Horton  <timothy_horton@apple.com>
2703
2704         Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
2705         https://bugs.webkit.org/show_bug.cgi?id=139204
2706
2707         Reviewed by Anders Carlsson.
2708
2709         * WebView/WebView.mm:
2710         (-[WebView _commonInitializationWithFrameName:groupName:]):
2711         (-[WebView _showDictionaryLookupPopup:]):
2712         * WebView/WebViewData.h:
2713         Work around this by delaying the softlinking (and setting up the notification
2714         observer) until we actually need it. There's still an underlying bug, but
2715         this will fix the test.
2716
2717 2014-12-02  Beth Dakin  <bdakin@apple.com>
2718
2719         Yet another build fix.
2720
2721         * WebView/WebActionMenuController.mm:
2722         (-[WebActionMenuController _defaultMenuItemsForLink]):
2723
2724 2014-12-02  Beth Dakin  <bdakin@apple.com>
2725
2726         Build fix.
2727
2728         * WebView/WebActionMenuController.mm:
2729         (-[WebActionMenuController _defaultMenuItemsForLink]):
2730
2731 2014-12-02  Beth Dakin  <bdakin@apple.com>
2732
2733         More build fixing.
2734
2735         * WebView/WebActionMenuController.mm:
2736         (-[WebActionMenuController _defaultMenuItemsForLink]):
2737
2738 2014-12-02  Beth Dakin  <bdakin@apple.com>
2739
2740         Should use standardQuickLookMenuItem for apps that don't implement customizations
2741         https://bugs.webkit.org/show_bug.cgi?id=139193
2742         -and corresponding-
2743         rdar://problem/18944696
2744
2745         Reviewed by Anders Carlsson.
2746
2747         Use [NSMenuItem standardQuickLookMenuItem].
2748         * WebView/WebActionMenuController.mm:
2749         (-[WebActionMenuController _defaultMenuItemsForLink]):
2750
2751         Delegate methods to set up the standardQuickLookMenuItem.
2752         (-[WebActionMenuController menuItem:viewAtScreenPoint:]):
2753         (-[WebActionMenuController menuItem:previewItemAtPoint:]):
2754         (-[WebActionMenuController menuItem:preferredEdgeForPoint:]):
2755
2756         Remove all of the old QLPreviewBubble code.
2757         (-[WebActionMenuController _createActionMenuItemForTag:]):
2758         (-[WebActionMenuController _quickLookURLFromActionMenu:]): Deleted.
2759
2760 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
2761
2762         Fix the build.
2763
2764         * WebView/WebViewData.h:
2765
2766 2014-12-02  Tim Horton  <timothy_horton@apple.com>
2767
2768         Implement Lookup transition from selection for Legacy WebKit
2769         https://bugs.webkit.org/show_bug.cgi?id=139180
2770         <rdar://problem/19067172>
2771
2772         Reviewed by Beth Dakin.
2773
2774         * WebView/DictionaryPopupInfo.h: Added.
2775         Split DictionaryPopupInfo out into its own file.
2776
2777         * WebView/WebActionMenuController.mm:
2778         (-[WebActionMenuController _lookupText:]):
2779         Hand the DictionaryPopupInfo to WebView, which will show the TextIndicator and invoke Lookup.
2780
2781         (performDictionaryLookupForSelection):
2782         (performDictionaryLookupForRange):
2783         Plumb the transition style through these helpers.
2784         Create a TextIndicator from the selection range.
2785
2786         * WebView/WebHTMLView.mm:
2787         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2788         Make use of TextIndicator (and DictionaryPopupInfo, and the new
2789         _showDictionaryLookupPopup on WebView) to add a transition from blue
2790         when performing Lookup from the context menu.
2791
2792         (-[WebHTMLView quickLookWithEvent:]):
2793         Remove our TextIndicator whenever a normal three-finger-tap event
2794         comes through, as it will have its own indication.
2795
2796         * WebView/WebView.mm:
2797         (-[WebView _commonInitializationWithFrameName:groupName:]):
2798         (-[WebView _dictionaryLookupPopoverWillClose:]):
2799         Register for the LUNotificationPopoverWillClose notification and remove
2800         our TextIndicator when it is called, just like in WebKit2.
2801         Deregistration is already handled in _close.
2802
2803         (-[WebView _showDictionaryLookupPopup:]):
2804         Just like WebKit2, show our TextIndicator and tell Lookup not to show its own,
2805         if the relevant API is available.
2806
2807         * WebView/WebViewInternal.h:
2808
2809 2014-12-02  Anders Carlsson  <andersca@apple.com>
2810
2811         Remove visited link handling from PageGroup
2812         https://bugs.webkit.org/show_bug.cgi?id=139185
2813
2814         Reviewed by Sam Weinig.
2815
2816         * History/WebHistory.mm:
2817         (-[WebHistoryPrivate removeItemForURLString:]):
2818         (-[WebHistoryPrivate removeAllItems]):
2819         (+[WebHistory setOptionalSharedHistory:]):
2820         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
2821         (+[WebHistory _removeAllVisitedLinks]):
2822         (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Deleted.
2823         (-[WebHistory _addVisitedLinksToPageGroup:]): Deleted.
2824         * History/WebHistoryInternal.h:
2825         * WebCoreSupport/WebChromeClient.h:
2826         * WebCoreSupport/WebChromeClient.mm:
2827         (WebChromeClient::populateVisitedLinks): Deleted.
2828         * WebView/WebView.mm:
2829         (-[WebView addVisitedLinks:]):
2830         (-[WebView removeVisitedLink:]):
2831
2832 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
2833
2834         Try to fix the Mac build.
2835
2836         * WebView/WebView.mm:
2837         (-[WebView _commonInitializationWithFrameName:groupName:]):
2838         (-[WebView _close]):
2839
2840 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
2841
2842         Fix the iOS build.
2843
2844         * WebView/WebActionMenuController.h:
2845         * WebView/WebActionMenuController.mm:
2846         * WebView/WebHTMLView.mm:
2847         (-[WebHTMLView scrollWheel:scrollWheel:]):
2848         (-[WebHTMLView mouseDown:mouseDown:]):
2849         * WebView/WebView.mm:
2850         * WebView/WebViewData.h:
2851         * WebView/WebViewData.mm:
2852         (-[WebViewPrivate dealloc]):
2853         * WebView/WebViewInternal.h:
2854
2855 2014-12-01  Tim Horton  <timothy_horton@apple.com>
2856
2857         Implement yellow highlight for WebKit1 data detectors
2858         https://bugs.webkit.org/show_bug.cgi?id=138956
2859         <rdar://problem/18992185>
2860
2861         Reviewed by Beth Dakin.
2862
2863         * WebView/WebActionMenuController.h:
2864         * WebView/WebActionMenuController.mm:
2865         (-[WebActionMenuController webView:willHandleMouseDown:]):
2866         (-[WebActionMenuController webView:didHandleScrollWheel:]):
2867         (-[WebActionMenuController prepareForMenu:withEvent:]):
2868         (-[WebActionMenuController didCloseMenu:withEvent:]):
2869         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
2870         (-[WebActionMenuController _showTextIndicator]):
2871         (-[WebActionMenuController _hideTextIndicator]):
2872         (-[WebActionMenuController _dismissActionMenuPopovers]):
2873         Copy the WebKit2 WKActionMenuController TextIndicator implementation
2874         into WebActionMenuController. The only significant difference is
2875         that we build the TextIndicator right at menu construction time
2876         instead of in the Web process.
2877
2878         * WebView/WebHTMLView.mm:
2879         (-[WebHTMLView scrollWheel:]):
2880         Let the WebActionMenuController know that we're handling a scroll.
2881
2882         (-[WebHTMLView mouseDown:]):
2883         Let the WebActionMenuController know that we're handling a mouseDown.
2884
2885         * WebView/WebView.mm:
2886         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
2887         (-[WebView _clearTextIndicator]):
2888         (-[WebView _actionMenuController]):
2889         (-[WebView _convertRectFromRootView:]): Deleted.
2890         * WebView/WebViewData.h:
2891         * WebView/WebViewData.mm:
2892         * WebView/WebViewInternal.h:
2893         Keep a TextIndicatorWindow on WebView, just like WKView does.
2894         Expose the WebActionMenuController on WebView (internally).
2895
2896 2014-12-01  Anders Carlsson  <andersca@apple.com>
2897
2898         Remove old site specific quirks code that was added in 2009
2899         https://bugs.webkit.org/show_bug.cgi?id=139141
2900
2901         Reviewed by Antti Koivisto.
2902
2903         * WebCoreSupport/WebFrameNetworkingContext.h:
2904         * WebCoreSupport/WebFrameNetworkingContext.mm:
2905         (WebFrameNetworkingContext::needsSiteSpecificQuirks): Deleted.
2906
2907 2014-11-30  Anders Carlsson  <andersca@apple.com>
2908
2909         Fix a test failure.
2910
2911         * History/WebHistory.mm:
2912         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
2913         Call through to the visited link store.
2914
2915         (+[WebHistory _removeAllVisitedLinks]):
2916         Ditto.
2917
2918         * WebCoreSupport/WebVisitedLinkStore.mm:
2919         (WebVisitedLinkStore::isLinkVisited):
2920         Make sure to populate visited links.
2921
2922 2014-11-30  Anders Carlsson  <andersca@apple.com>
2923
2924         Switch over to the visited link store from the WebViewGroup
2925         https://bugs.webkit.org/show_bug.cgi?id=139112
2926
2927         Reviewed by Sam Weinig.
2928
2929         * WebView/WebView.mm:
2930         (-[WebView _commonInitializationWithFrameName:groupName:]):
2931         (-[WebView setGroupName:]):
2932
2933 2014-11-30  Anders Carlsson  <andersca@apple.com>
2934
2935         Add WebVisitedLinkStore::removeVisitedLink and use it on iOS
2936         https://bugs.webkit.org/show_bug.cgi?id=139111
2937
2938         Reviewed by Sam Weinig.
2939
2940         * WebCoreSupport/WebVisitedLinkStore.h:
2941         * WebCoreSupport/WebVisitedLinkStore.mm:
2942         (WebVisitedLinkStore::removeVisitedLink):
2943         * WebView/WebView.mm:
2944         (-[WebView removeVisitedLink:]):
2945
2946 2014-11-29  Anders Carlsson  <andersca@apple.com>
2947
2948         Populate visited links
2949         https://bugs.webkit.org/show_bug.cgi?id=139101
2950
2951         Reviewed by Sam Weinig.
2952
2953         * History/WebHistory.mm:
2954         (-[WebHistoryPrivate addVisitedLinksToVisitedLinkStore:]):
2955         Helper function that adds all visited link to the given store.
2956
2957         (-[WebHistory _addVisitedLinksToVisitedLinkStore:]):
2958         Call the private method.
2959
2960         * History/WebHistoryInternal.h:
2961         * WebCoreSupport/WebVisitedLinkStore.h:
2962         Add new members.
2963
2964         * WebCoreSupport/WebVisitedLinkStore.mm:
2965         (WebVisitedLinkStore::addVisitedLink):
2966         Get the characters from the URL string and hash them, then call addVisitedLinkHash.
2967
2968         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
2969         Implement this. First try the delegate, then try the shared history.
2970
2971         (WebVisitedLinkStore::addVisitedLinkHash):
2972         Factor code that adds the link to the hash table into a separate function.
2973
2974         * WebView/WebView.mm:
2975         (-[WebView addVisitedLinks:]):
2976         Add the visited links to the store.
2977
2978 2014-11-29  Anders Carlsson  <andersca@apple.com>
2979
2980         More work on the legacy WebKit visited link store
2981         https://bugs.webkit.org/show_bug.cgi?id=139100
2982
2983         Reviewed by Sam Weinig.
2984
2985         * History/WebHistory.mm:
2986         (+[WebHistory setOptionalSharedHistory:]):
2987         Call WebVisitedLinkStore::setShouldTrackVisitedLinks and WebVisitedLinkStore::removeAllVisitedLinks.
2988
2989         * WebCoreSupport/WebVisitedLinkStore.h:
2990         * WebCoreSupport/WebVisitedLinkStore.mm:
2991         (visitedLinkStores):
2992         (WebVisitedLinkStore::WebVisitedLinkStore):
2993         (WebVisitedLinkStore::~WebVisitedLinkStore):
2994         Keep track of live visited link stores.
2995
2996         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
2997         Update s_shouldTrackVisitedLinks and call removeAllVisitedLinks if necessary.
2998
2999         (WebVisitedLinkStore::removeAllVisitedLinks):
3000         Iterate over all live link stores and remove their links.
3001
3002         (WebVisitedLinkStore::isLinkVisited):
3003         Populate visited links and check if our hash table contains the link.
3004
3005         (WebVisitedLinkStore::addVisitedLink):
3006         Add the link hash to the table.
3007
3008         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
3009         Add stub.
3010
3011         (WebVisitedLinkStore::removeVisitedLinkHashes):
3012         Clear out the hash table.
3013
3014 2014-11-27  Anders Carlsson  <andersca@apple.com>
3015
3016         Add a stubbed out WebVisitedLinkStore to WebViewGroup
3017         https://bugs.webkit.org/show_bug.cgi?id=139066
3018
3019         Reviewed by Antti Koivisto.
3020
3021         * WebCoreSupport/WebViewGroup.h:
3022         (WebViewGroup::visitedLinkStore):
3023         * WebCoreSupport/WebViewGroup.mm:
3024         (WebViewGroup::WebViewGroup):
3025         * WebCoreSupport/WebVisitedLinkStore.h: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
3026         * WebCoreSupport/WebVisitedLinkStore.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
3027         (WebVisitedLinkStore::create):
3028         (WebVisitedLinkStore::WebVisitedLinkStore):
3029         (WebVisitedLinkStore::~WebVisitedLinkStore):
3030         (WebVisitedLinkStore::isLinkVisited):
3031         (WebVisitedLinkStore::addVisitedLink):
3032
3033 2014-11-25  Anders Carlsson  <andersca@apple.com>
3034
3035         Remove user content handling from PageGroup
3036         https://bugs.webkit.org/show_bug.cgi?id=139051
3037
3038         Reviewed by Antti Koivisto.
3039
3040         Use the user content controller in the web view group.
3041
3042         * WebView/WebView.mm:
3043         (-[WebView _injectOutlookQuirksScript]):
3044
3045 2014-11-25  Anders Carlsson  <andersca@apple.com>
3046
3047         Add a user content controller to WebViewGroup and use it for user content
3048         https://bugs.webkit.org/show_bug.cgi?id=139043
3049
3050         Reviewed by Antti Koivisto.
3051
3052         This is another tiny step towards getting rid of user content handling inside PageGroup.
3053
3054         * WebCoreSupport/WebViewGroup.h:
3055         (WebViewGroup::userContentController):
3056         Add a UserContentController member and getter.
3057
3058         * WebCoreSupport/WebViewGroup.mm:
3059         (WebViewGroup::get):
3060         Helper function that returns a WebViewGroup by its name (or null if it doesn't exist).
3061
3062         (WebViewGroup::WebViewGroup):
3063         Create a user content controller.
3064
3065         * WebView/WebView.mm:
3066         (-[WebView _commonInitializationWithFrameName:groupName:]):
3067         Instead of calling -[WebView setGroupName:], create a WebViewGroup before creating the page, that way we can
3068         set its user content controller in the PageConfiguration.
3069
3070         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3071         Ditto.
3072
3073         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
3074         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
3075         (+[WebView _removeUserScriptFromGroup:world:url:]):
3076         (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
3077         (+[WebView _removeUserScriptsFromGroup:world:]):
3078         (+[WebView _removeUserStyleSheetsFromGroup:world:]):
3079         (+[WebView _removeAllUserContentFromGroup:]):
3080         Instead of calling into the PageGroup, get the WebViewGroup's user content controller and call into that.
3081
3082         (-[WebView setGroupName:]):
3083         Set the user content controller to the new WebViewGroup's user content controller.
3084
3085 2014-11-21  Jer Noble  <jer.noble@apple.com>
3086
3087         Support multiple signatures of diagnostic logging.
3088         https://bugs.webkit.org/show_bug.cgi?id=138690
3089
3090         Reviewed by Anders Carlsson.
3091
3092         Page::PageClients has been renamed PageConfiguration.
3093
3094         * WebView/WebView.mm:
3095         (-[WebView _commonInitializationWithFrameName:groupName:]):
3096         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3097
3098 2014-11-21  Zalan Bujtas  <zalan@apple.com>
3099
3100         Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser.
3101         https://bugs.webkit.org/show_bug.cgi?id=138981
3102
3103         Reviewed by Simon Fraser.
3104
3105         * WebView/WebPreferenceKeysPrivate.h:
3106         * WebView/WebPreferences.mm:
3107         (+[WebPreferences initialize]):
3108         (-[WebPreferences simpleLineLayoutDebugBordersEnabled]):
3109         (-[WebPreferences setSimpleLineLayoutDebugBordersEnabled:]):
3110         * WebView/WebPreferencesPrivate.h:
3111         * WebView/WebView.mm:
3112         (-[WebView _preferencesChanged:]):
3113
3114 2014-11-21  Tim Horton  <timothy_horton@apple.com>
3115
3116         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
3117         ​https://bugs.webkit.org/show_bug.cgi?id=138960
3118         <rdar://problem/19056715>
3119
3120         Reviewed by Anders Carlsson.
3121
3122         * WebView/WebActionMenuController.mm:
3123         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
3124         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
3125         Use DataDetectors SPI instead of an explicit blacklist.
3126
3127 2014-11-21  Tim Horton  <timothy_horton@apple.com>
3128
3129         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
3130         https://bugs.webkit.org/show_bug.cgi?id=138960
3131         <rdar://problem/19056715>
3132
3133         Reviewed by Beth Dakin.
3134
3135         * WebView/WebActionMenuController.mm:
3136         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
3137         Blacklist contact results, because they don't have useful menus. If we
3138         bail before setting up _currentActionContext, we'll still allow fallthrough
3139         to ordinary text actions, avoiding mysterious failure when a contact is detected.
3140
3141         This doesn't break the case that r176351 was intended to fix,
3142         because in that case we were detecting e.g. addresses.
3143
3144 2014-11-21  Anders Carlsson  <andersca@apple.com>
3145
3146         Remove the Timer parameters from timer callbacks
3147         https://bugs.webkit.org/show_bug.cgi?id=138974
3148
3149         Reviewed by Antti Koivisto.
3150
3151         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3152         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3153         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
3154         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
3155         * Plugins/WebNetscapePluginStream.h:
3156         * Plugins/WebNetscapePluginStream.mm:
3157         (WebNetscapePluginStream::WebNetscapePluginStream):
3158         (WebNetscapePluginStream::deliverDataTimerFired):
3159
3160 2014-11-21  Anders Carlsson  <andersca@apple.com>
3161
3162         Make memoryCache() return a reference
3163         https://bugs.webkit.org/show_bug.cgi?id=138939
3164
3165         Reviewed by Antti Koivisto.
3166
3167         * Misc/WebCache.mm:
3168         (+[WebCache statistics]):
3169         (+[WebCache emptyInMemoryResources]):
3170         (+[WebCache sizeOfDeadResources:]):
3171         (+[WebCache addImageToCache:forURL:forFrame:]):
3172         (+[WebCache removeImageFromCacheForURL:forFrame:]):
3173         (+[WebCache imageForURL:]):
3174         (+[WebCache setDisabled:]):
3175         (+[WebCache isDisabled]):
3176         * WebView/WebView.mm:
3177         (+[WebView _setCacheModel:]):
3178
3179 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
3180
3181         Remove the remaining vestiges of minimal-ui
3182         https://bugs.webkit.org/show_bug.cgi?id=138890
3183
3184         Reviewed by Sam Weinig.
3185
3186         * History/WebHistoryItem.mm:
3187         * History/WebHistoryItemPrivate.h:
3188
3189 2014-11-20  Tim Horton  <timothy_horton@apple.com>
3190
3191         Cancel DataDetectors menu earlier if we know it can't be presented
3192         https://bugs.webkit.org/show_bug.cgi?id=138922
3193         <rdar://problem/18950441>
3194
3195         Reviewed by Beth Dakin.
3196
3197         * WebView/WebActionMenuController.mm:
3198         (-[WebActionMenuController prepareForMenu:withEvent:]):
3199         Move our call to shouldUseActionsWithContext earlier, to menuNeedsUpdate,
3200         and use a bigger hammer (removeAllItems).
3201
3202         (-[WebActionMenuController willOpenMenu:withEvent:]):
3203         If we end up with a menu with no items, don't change selection or anything.
3204
3205 2014-11-20  Beth Dakin  <bdakin@apple.com>
3206
3207         Invalid message WebPageProxy.DidPerformDictionaryLookup on Google stocks result
3208         https://bugs.webkit.org/show_bug.cgi?id=138568
3209         -and corresponding-
3210         rdar://problem/18904600
3211
3212         Reviewed by Tim Horton.
3213
3214         Skip images for lookup.
3215         * WebView/WebActionMenuController.mm:
3216         (performDictionaryLookupForRange):
3217
3218 2014-11-19  Beth Dakin  <bdakin@apple.com>
3219
3220         Invoking an action menu on a selection should result in the text menu
3221         https://bugs.webkit.org/show_bug.cgi?id=138892
3222         -and corresponding-
3223         rdar://problem/18996776
3224
3225         Reviewed by Tim Horton.
3226
3227         * WebView/WebActionMenuController.mm:
3228         (-[WebActionMenuController _defaultMenuItems]):
3229
3230 2014-11-19  Beth Dakin  <bdakin@apple.com>
3231
3232         Data detected results with no menu items should not fall through to regular text 
3233         action menus
3234         https://bugs.webkit.org/show_bug.cgi?id=138887
3235         -and corresponding-
3236         rdar://problem/18971616
3237
3238         Reviewed by Tim Horton.
3239
3240         * WebView/WebActionMenuController.mm:
3241         (-[WebActionMenuController _defaultMenuItems]):
3242
3243 2014-11-19  Daniel Bates  <dabates@apple.com>
3244
3245         [iOS] Make WebKit build with public iOS SDK
3246         https://bugs.webkit.org/show_bug.cgi?id=136863
3247
3248         Reviewed by David Kilzer.
3249
3250         * History/WebHistory.mm: Include header NSCalendarDateSPI.h.
3251         * History/WebHistoryItemPrivate.h: Remove include of private header Foundation/NSCalendarDate.h.
3252         * Misc/WebDownload.h: Forward declare NSURLDownload when building without header Foundation/NSURLDownload.h.
3253         We use __has_include() instead of WTF_USE_APPLE_INTERNAL_SDK since this header
3254         may be used by Apple internal clients that do not include wtf/Platform.h.
3255         * Misc/WebDownload.mm: Include header NSURLDownloadSPI.h instead of including
3256         private Foundation headers directly.
3257         * Misc/WebNSURLExtras.mm: Remove unnecessary include of private Foundation header.
3258         * WebCoreSupport/WebFrameNetworkingContext.mm: Include header CFNetworkSPI.h
3259         instead of including private CFNetwork headers directly. Also fixed up style and
3260         ordering of header include directives.
3261         * WebView/WebView.mm: Include header CFNetworkSPI.h instead of including private
3262         CFNetwork headers directly. Also sort the #import directives.
3263         * WebView/WebViewPrivate.h: Define ENABLE_TOUCH_EVENTS if not otherwise defined
3264         and added ENABLE_TOUCH_EVENTS-guard around -_touchEventRegions.
3265
3266 2014-11-18  David Kilzer  <ddkilzer@apple.com>
3267
3268         FeatureDefines.xcconfig: Switch from using PLATFORM_NAME to SDK selectors
3269         <http://webkit.org/b/138813>
3270
3271         Reviewed by Mark Rowe.
3272
3273         * Configurations/FeatureDefines.xcconfig: Switch to using SDK
3274         selectors.
3275
3276 2014-11-18  Chris Dumez  <cdumez@apple.com>
3277
3278         Add a setting to toggle DOMTimer throttling support
3279         https://bugs.webkit.org/show_bug.cgi?id=138844
3280         <rdar://problem/19020874>
3281
3282         Reviewed by Andreas Kling.
3283
3284         Add a setting to disable DOM timers throttling, in order to help
3285         developers determine if a specific issue is caused by timer
3286         throttling.
3287
3288         * WebView/WebPreferenceKeysPrivate.h:
3289         * WebView/WebPreferences.mm:
3290         (+[WebPreferences initialize]):
3291         (-[WebPreferences domTimersThrottlingEnabled]):
3292         (-[WebPreferences setDOMTimersThrottlingEnabled:]):
3293         * WebView/WebPreferencesPrivate.h:
3294         * WebView/WebView.mm:
3295         (-[WebView _preferencesChanged:]):
3296
3297 2014-11-18  Tim Horton  <timothy_horton@apple.com>
3298
3299         Avoid re-encoding action menu image data
3300         https://bugs.webkit.org/show_bug.cgi?id=138817
3301         <rdar://problem/18840382>
3302
3303         Reviewed by Anders Carlsson.
3304
3305         * WebView/WebActionMenuController.mm:
3306         (-[WebActionMenuController _defaultMenuItemsForImage:]):
3307         (-[WebActionMenuController _addImageToPhotos:]):
3308         Build a temporary filename from a UUID and the image's desired extension.
3309         Use the Image's encoded data instead of re-encoding it with CGImageDestination.
3310         Build an image menu only if we have an image, URL, data, and extension.
3311
3312 2014-11-18  Daniel Bates  <dabates@apple.com>
3313
3314         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
3315         SPI are not available in public SDK
3316         https://bugs.webkit.org/show_bug.cgi?id=138802
3317
3318         Reviewed by David Kilzer.
3319
3320         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
3321         libdispatch and MobileGestalt headers directly.
3322
3323         * WebView/WebView.mm:
3324
3325 2014-11-17  Brian Weinstein  <bweinstein@apple.com>
3326
3327         Remove calls to deprecated NSMenu methods
3328         https://bugs.webkit.org/show_bug.cgi?id=138808.
3329
3330         Reviewed by Anders Carlsson.
3331
3332         -[NSMenu menuChangedMessagesEnabled] and -[NSMenu setMenuChangedMessagesEnabled:] are no-ops as of 10.6.
3333
3334         * WebCoreSupport/PopupMenuMac.mm:
3335         (PopupMenuMac::populate):
3336
3337 2014-11-17  Daniel Bates  <dabates@apple.com>
3338
3339         Unreviewed, rolling out r176232.
3340
3341         Broke the Mac build. Will investigate offline.
3342
3343         Reverted changeset:
3344
3345         "[iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions,
3346         MobileGestalt"
3347         https://bugs.webkit.org/show_bug.cgi?id=138802
3348         http://trac.webkit.org/changeset/176232
3349
3350 2014-11-17  Daniel Bates  <dabates@apple.com>
3351
3352         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
3353         SPI are not available in public SDK
3354         https://bugs.webkit.org/show_bug.cgi?id=138802
3355
3356         Reviewed by David Kilzer.
3357
3358         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
3359         libdispatch and MobileGestalt headers directly.
3360
3361         * WebView/WebView.mm:
3362
3363 2014-11-17  Beth Dakin  <bdakin@apple.com>
3364
3365         Whitespace action menus should focus the HitTestResult and create an insertion 
3366         point
3367         https://bugs.webkit.org/show_bug.cgi?id=138786
3368         -and corresponding-
3369         rdar://problem/18944893
3370
3371         Reviewed by Tim Horton.
3372
3373         Whitespace menus should cause the HitTestResult to be focused, and they should set 
3374         the selection based on the HitTest location.
3375
3376         * WebView/WebActionMenuController.mm:
3377         (-[WebActionMenuController isMenuForTextContent]):
3378         (-[WebActionMenuController focusAndSelectHitTestResult]):
3379         (-[WebActionMenuController willOpenMenu:withEvent:]):
3380
3381 2014-11-17  Daniel Bates  <dabates@apple.com>
3382
3383         [iOS] QuartzCore SPI not available in public SDK
3384         https://bugs.webkit.org/show_bug.cgi?id=138751
3385
3386         Reviewed by David Kilzer.
3387
3388         Include header QuartzCoreSPI.h instead of including QuartzCore headers directly.
3389
3390         * WebInspector/WebNodeHighlight.mm:
3391         * WebView/WebIndicateLayer.mm:
3392
3393 2014-11-17  Eric Carlson  <eric.carlson@apple.com>
3394
3395         [iOS] allow host application to opt-out of alternate fullscreen
3396         https://bugs.webkit.org/show_bug.cgi?id=138787
3397
3398         Reviewed by Darin Adler.
3399
3400         * WebView/WebPreferenceKeysPrivate.h:
3401         * WebView/WebPreferences.mm:
3402         (+[WebPreferences initialize]):
3403         (-[WebPreferences allowsAlternateFullscreen]):
3404         (-[WebPreferences setAllowsAlternateFullscreen:]):
3405         * WebView/WebPreferencesPrivate.h:
3406         * WebView/WebView.mm:
3407         (-[WebView _preferencesChanged:]):
3408
3409 2014-11-16  Tim Horton  <timothy_horton@apple.com>
3410
3411         Use TextIndicator instead of the built in Lookup highlight
3412         https://bugs.webkit.org/show_bug.cgi?id=138775
3413         <rdar://problem/18953982>
3414
3415         Reviewed by Anders Carlsson.
3416
3417         * WebCoreSupport/WebSystemInterface.mm:
3418         (InitWebCoreSystemInterface):
3419         Remove a WKSI import.
3420
3421         * WebView/WebActionMenuController.mm:
3422         (-[WebActionMenuController _lookupText:]):
3423         (-[WebActionMenuController _createActionMenuItemForTag:]):
3424         Make use of the new Lookup SPI header.
3425         Disable the Lookup item if lookup is not available.
3426
3427 2014-11-15  Tim Horton  <timothy_horton@apple.com>
3428
3429         Implement data detectors and mailto action menus for WebKit1
3430         https://bugs.webkit.org/show_bug.cgi?id=138765
3431         <rdar://problem/18877535>
3432
3433         Reviewed by Beth Dakin.
3434
3435         * WebView/WebActionMenuController.h:
3436         * WebView/WebActionMenuController.mm:
3437         (-[WebActionMenuController willOpenMenu:withEvent:]):
3438         Tell DataDetectors that the menu is going to open.
3439         Select the text (or not) based on the number of items in the menu, just like WebKit2.
3440
3441         (-[WebActionMenuController didCloseMenu:withEvent:]):
3442         Tell DataDetectors that the menu closed.
3443
3444         (-[WebActionMenuController _defaultMenuItemsForLink]):
3445         Move these checks out of _defaultMenuItemsForLink, because we expect this
3446         to always return a complete link menu.
3447
3448         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
3449         Implement. More or less copied from WebKit2.
3450
3451         (-[WebActionMenuController _selectDataDetectedText]):
3452         Select the stashed range.
3453
3454         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
3455         Implement. More or less copied from WebKit2.
3456         The yellow highlight isn't hooked up yet.
3457         Give the client a chance to override via _webView:actionContextForHitTestResult:range:.
3458
3459         (-[WebActionMenuController _selectLookupText]):
3460         Remove an unnecessary return.
3461
3462         (-[WebActionMenuController _defaultMenuItems]):
3463         Call into the two new menu types.
3464
3465         * WebView/WebUIDelegatePrivate.h:
3466
3467 2014-11-14  Myles C. Maxfield  <mmaxfield@apple.com>
3468
3469         Get rid of WebFontCache
3470         https://bugs.webkit.org/show_bug.cgi?id=134752
3471
3472         Reviewed by Dave Hyatt.
3473
3474         * WebView/WebHTMLView.mm:
3475
3476 2014-11-14  Timothy Horton  <timothy_horton@apple.com>
3477
3478         Update some artwork for the legacy WebKit action menu
3479         https://bugs.webkit.org/show_bug.cgi?id=138758
3480         <rdar://problem/18989840>
3481
3482         * WebView/WebActionMenuController.mm:
3483         (webKitBundleImageNamed): Deleted.
3484         Fix the build.
3485
3486 2014-11-14  Tim Horton  <timothy_horton@apple.com>
3487
3488         Update some artwork for the legacy WebKit action menu
3489         https://bugs.webkit.org/show_bug.cgi?id=138758
3490         <rdar://problem/18989840>
3491
3492         Reviewed by Simon Fraser.
3493
3494         * WebView/WebActionMenuController.mm:
3495         (-[WebActionMenuController _createActionMenuItemForTag:]):
3496
3497 2014-11-14  Daniel Bates  <dabates@apple.com>
3498
3499         [iOS] NSFileManager and QuickLook SPI not available in public SDK
3500         https://bugs.webkit.org/show_bug.cgi?id=138742
3501
3502         Reviewed by Pratik Solanki.
3503
3504         Include header NSFileManagerSPI.h instead of the private header NSFileManager_NSURLExtras.h.
3505
3506         * WebCoreSupport/WebFrameLoaderClient.mm:
3507
3508 2014-11-14  Beth Dakin  <bdakin@apple.com>
3509
3510         WK1: Webpage preview can come up in wrong location
3511         https://bugs.webkit.org/show_bug.cgi?id=138747
3512         -and corresponding-
3513         rdar://problem/18979004
3514
3515         Reviewed by Tim Horton.
3516
3517         Converting to window twice is bad.
3518         * WebView/WebActionMenuController.mm:
3519         (elementBoundingBoxInWindowCoordinatesFromNode):
3520         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
3521         (elementBoundingBoxFromNode): Deleted.
3522
3523 2014-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
3524
3525         Move FontMac and FontCacheMac off of WKSI
3526         https://bugs.webkit.org/show_bug.cgi?id=138633
3527
3528         Reviewed by Simon Fraser.
3529
3530         * WebCoreSupport/WebSystemInterface.mm:
3531         (InitWebCoreSystemInterface):
3532         * WebKit.order:
3533
3534 2014-11-13  Beth Dakin  <bdakin@apple.com>
3535
3536         WK1: Clean up WebActionMenuController to use the _hitTestResult ivar
3537         https://bugs.webkit.org/show_bug.cgi?id=138716
3538         -and corresponding-
3539         rdar://problem/18977222
3540
3541         Reviewed by Tim Horton.
3542
3543         It’s not necessary to use the WebElementDictionary for so many things now that we 
3544         are caching the HitTestResult. We should just use the HitTestResult.
3545
3546         * WebView/WebActionMenuController.mm:
3547         (-[WebActionMenuController prepareForMenu:withEvent:]):
3548         (-[WebActionMenuController _openURLFromActionMenu:]):
3549         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
3550         (elementBoundingBoxFromNode):
3551         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
3552         (-[WebActionMenuController _defaultMenuItemsForLink]):
3553         (-[WebActionMenuController _defaultMenuItemsForImage]):
3554         (-[WebActionMenuController _defaultMenuItemsForVideo]):
3555         (-[WebActionMenuController _defaultMenuItemsForText]):
3556         (-[WebActionMenuController _defaultMenuItemsForEditableText]):
3557         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]):
3558         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]):
3559         (-[WebActionMenuController _createActionMenuItemForTag:]):
3560         (-[WebActionMenuController _defaultMenuItems]):
3561         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]): Deleted.
3562         (-[WebActionMenuController _defaultMenuItemsForLink:]): Deleted.
3563         (-[WebActionMenuController _defaultMenuItemsForImage:]): Deleted.
3564         (-[WebActionMenuController _defaultMenuItemsForVideo:]): Deleted.
3565         (-[WebActionMenuController _defaultMenuItemsForText:]): Deleted.
3566         (-[WebActionMenuController _defaultMenuItemsForEditableText:]): Deleted.
3567         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]): Deleted.
3568         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]): Deleted.
3569         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Deleted.
3570         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Deleted.
3571
3572 2014-11-13  Daniel Bates  <dabates@apple.com>
3573
3574         [iOS] NSGeometry data types are not available in the public SDK
3575         https://bugs.webkit.org/show_bug.cgi?id=137536
3576
3577         Reviewed by David Kilzer.
3578
3579         Substitute header WAKAppKitStubs.h for NSGeometry.h as the latter is a
3580         private header.
3581
3582         * DOM/WebDOMOperationsPrivate.h:
3583
3584 2014-11-13  Beth Dakin  <bdakin@apple.com>
3585
3586         WK1: Support default actions for video
3587         https://bugs.webkit.org/show_bug.cgi?id=138713
3588         -and corresponding-
3589         rdar://problem/18877520
3590
3591         Reviewed by Tim Horton.
3592
3593         Call setToNonShadowAncestor() for media HitTestResults.
3594         * WebView/WebActionMenuController.mm:
3595         (-[WebActionMenuController performHitTestAtPoint:]):
3596
3597         Default items and actions.
3598         (-[WebActionMenuController _defaultMenuItemsForVideo:]):
3599         (-[WebActionMenuController _copyVideoURL:]):
3600         (-[WebActionMenuController _saveVideoToDownloads:]):
3601         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3602         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3603         * WebView/WebUIDelegatePrivate.h:
3604
3605 2014-11-13  Tim Horton  <timothy_horton@apple.com>
3606
3607         WK1: Update icon for Add to Reading List
3608         https://bugs.webkit.org/show_bug.cgi?id=138710
3609         <rdar://problem/18975774>
3610
3611         Reviewed by Beth Dakin.
3612
3613         * WebView/WebActionMenuController.mm:
3614         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3615         Use the right icon, matching WebKit2.
3616
3617 2014-11-12  Beth Dakin  <bdakin@apple.com>
3618
3619         WK1: Support default actions for images
3620         https://bugs.webkit.org/show_bug.cgi?id=138668
3621         -and corresponding-
3622         rdar://problem/18785434
3623
3624         Reviewed by Tim Horton.
3625
3626         * WebView/WebActionMenuController.h:
3627         * WebView/WebActionMenuController.mm:
3628         (-[WebActionMenuController didCloseMenu:withEvent:]):
3629         (-[WebActionMenuController _defaultMenuItemsForImage:]):
3630         (-[WebActionMenuController _copyImage:]):
3631         (temporaryPhotosDirectoryPath):
3632         (pathToPhotoOnDisk):
3633         (-[WebActionMenuController _canAddMediaToPhotos]):
3634         (-[WebActionMenuController _addImageToPhotos:]):
3635         (-[WebActionMenuController _saveImageToDownloads:]):
3636         (-[WebActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
3637         (-[WebActionMenuController sharingServicePicker:delegateForSharingService:]):
3638         (-[WebActionMenuController sharingService:sourceWindowForShareItems:sharingContentScope:]):
3639         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3640         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3641         * WebView/WebUIDelegatePrivate.h:
3642
3643 2014-11-11  Beth Dakin  <bdakin@apple.com>
3644
3645         Action menu hit testing is not working properly with all WK1 apps
3646         https://bugs.webkit.org/show_bug.cgi?id=138643
3647         -and corresponding-
3648         rdar://problem/18949376
3649
3650         Reviewed by Tim Horton.
3651
3652         * WebView/WebActionMenuController.mm:
3653         (-[WebActionMenuController prepareForMenu:withEvent:]):
3654         (-[WebActionMenuController _lookupText:]):
3655
3656 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
3657
3658         Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
3659         https://bugs.webkit.org/show_bug.cgi?id=138623
3660
3661         Reviewed by Geoff Garen.
3662
3663         * WebCoreSupport/WebSystemInterface.mm:
3664         (InitWebCoreSystemInterface):
3665         * WebKit.order:
3666
3667 2014-11-11  Tim Horton  <timothy_horton@apple.com>
3668
3669         Localize strings for action menus
3670         https://bugs.webkit.org/show_bug.cgi?id=138591
3671         <rdar://problem/18815343>
3672
3673         Reviewed by Dan Bates.
3674
3675         * WebView/WebActionMenuController.mm:
3676         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3677         Make use of the new strings.
3678
3679 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
3680
3681         Cleanup from r175379
3682         https://bugs.webkit.org/show_bug.cgi?id=138616
3683
3684         Reviewed by Simon Fraser.
3685
3686         * WebCoreSupport/WebSystemInterface.mm:
3687         (InitWebCoreSystemInterface):
3688         * WebKit.order:
3689
3690 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
3691
3692         Move CTFontTransformGlyphs out from WKSI
3693         https://bugs.webkit.org/show_bug.cgi?id=138599
3694
3695         Reviewed by Simon Fraser.
3696
3697         * WebCoreSupport/WebSystemInterface.mm:
3698         (InitWebCoreSystemInterface):
3699         * WebKit.order:
3700
3701 2014-11-11  Dan Bernstein  <mitz@apple.com>
3702
3703         More iOS build fix.
3704
3705         * WebView/WebHTMLViewInternal.h:
3706
3707 2014-11-11  Dan Bernstein  <mitz@apple.com>
3708
3709         iOS build fix.
3710
3711         * WebView/WebHTMLView.mm:
3712
3713 2014-11-10  Beth Dakin  <bdakin@apple.com>
3714
3715         WK1: Support default actions for editable text with misspelled word
3716         https://bugs.webkit.org/show_bug.cgi?id=138590
3717         -and corresponding-
3718         rdar://problem/18877506
3719
3720         Reviewed by Tim Horton.
3721
3722         If there are misspelled word suggestions for editable text, create a new type of 
3723         menu with a spelling suggestion sub-menu.
3724
3725         * WebView/WebActionMenuController.mm:
3726         (-[WebActionMenuController isMenuForTextContent]):
3727         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]):
3728         (-[WebActionMenuController _changeSelectionToSuggestion:]):
3729         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3730         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3731         * WebView/WebHTMLView.mm:
3732         (-[WebHTMLView _changeSpellingToWord:]):
3733         * WebView/WebHTMLViewInternal.h:
3734         * WebView/WebUIDelegatePrivate.h:
3735
3736 2014-11-10  Beth Dakin  <bdakin@apple.com>
3737
3738         WK1: Support default actions for editable whitespace
3739         https://bugs.webkit.org/show_bug.cgi?id=138586
3740         -and corresponding-
3741         rdar://problem/18932048
3742
3743         Reviewed by Tim Horton.
3744
3745         New menu type. Just wants paste.
3746
3747         * WebView/WebActionMenuController.mm:
3748         (-[WebActionMenuController isMenuForTextContent]):
3749         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]):
3750         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3751         * WebView/WebUIDelegatePrivate.h:
3752
3753 2014-11-10  Beth Dakin  <bdakin@apple.com>
3754
3755         WK1: Support default actions for editable text
3756         https://bugs.webkit.org/show_bug.cgi?id=138580
3757         -and corresponding-
3758         rdar://problem/18877497
3759
3760         Reviewed by Tim Horton.
3761
3762         New menu type, and new action type for paste. 
3763
3764         * WebView/WebActionMenuController.mm:
3765         (-[WebActionMenuController isMenuForTextContent]):
3766         (-[WebActionMenuController willOpenMenu:withEvent:]):
3767         (-[WebActionMenuController _defaultMenuItemsForEditableText:]):
3768         (-[WebActionMenuController _paste:]):
3769         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3770         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3771         * WebView/WebUIDelegatePrivate.h:
3772
3773 2014-11-10  Beth Dakin  <bdakin@apple.com>
3774
3775         WK1: Text is getting selected even when an action menu fails to invoke
3776         https://bugs.webkit.org/show_bug.cgi?id=138576
3777         -and corresponding-
3778         rdar://problem/18931330
3779
3780         Reviewed by Tim Horton.
3781
3782         Selection changes should happen in willOpenMenu: instead of prepareForMenu:
3783         * WebView/WebActionMenuController.h:
3784         * WebView/WebActionMenuController.mm:
3785         (-[WebActionMenuController prepareForMenu:withEvent:]):
3786         (-[WebActionMenuController willOpenMenu:withEvent:]):
3787
3788         _selectLookupText no longer needs to return a BOOL indicating success or failure.
3789         (-[WebActionMenuController _selectLookupText]):
3790         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3791
3792         Pass willOpenMenu: on to the controller.
3793         * WebView/WebView.mm:
3794         (-[WebView willOpenMenu:withEvent:]):
3795
3796 2014-11-10  Beth Dakin  <bdakin@apple.com>
3797
3798         Speculative build fix.
3799
3800         * WebView/WebActionMenuController.mm:
3801
3802 2014-11-10  Beth Dakin  <bdakin@apple.com>
3803
3804         Action menu initialization should be moved to _commonInitializationWithFrameName
3805         https://bugs.webkit.org/show_bug.cgi?id=138572
3806         -and corresponding-
3807         rdar://problem/18929733
3808
3809         Reviewed by Tim Horton.
3810
3811         * WebView/WebView.mm:
3812         (-[WebView _commonInitializationWithFrameName:groupName:]):
3813         (-[WebView _initWithFrame:frameName:groupName:]):
3814
3815 2014-11-10  Beth Dakin  <bdakin@apple.com>
3816
3817         WK1: Support default actions for read-only text
3818         https://bugs.webkit.org/show_bug.cgi?id=138552
3819         -and corresponding-
3820         rdar://problem/18877483
3821
3822         Reviewed by Tim Horton.
3823
3824         New WKSystemInterface functions that WebCore needs to use.
3825         * WebCoreSupport/WebSystemInterface.mm:
3826         (InitWebCoreSystemInterface):
3827
3828         WebActionMenuController now keeps an ivar for the WebCore::HitTestResult. This 
3829         makes a lot of things easier.
3830         * WebView/WebActionMenuController.h:
3831         * WebView/WebActionMenuController.mm:
3832
3833         Perform the hit test ourselves instead of calling into WebView so that we can more 
3834         easily save the WebCore::HitTestResult for ourselves.
3835         (-[WebActionMenuController performHitTestAtPoint:]):
3836
3837         Clear selection for non-text menus.
3838         (-[WebActionMenuController prepareForMenu:withEvent:]):
3839
3840         Re-set the _type here just to be safe.
3841         (-[WebActionMenuController didCloseMenu:withEvent:]):
3842
3843         Moving this method to be next to the link actions so they can be within a pragma 
3844         mark.
3845         (-[WebActionMenuController _defaultMenuItemsForLink:]):
3846
3847         New method for default text actions — lookup and copy.
3848         (-[WebActionMenuController _defaultMenuItemsForText:]):
3849         (-[WebActionMenuController _copySelection:]):
3850         (-[WebActionMenuController _lookupText:]):
3851
3852         If there is not already a selection, invoking the action menu on text should 
3853         select the lookup text.
3854         (-[WebActionMenuController _selectLookupText]):
3855         (performDictionaryLookupForSelection):
3856         (performDictionaryLookupForRange):
3857
3858         Handle text now.
3859         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
3860         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
3861
3862         New enum values.
3863         * WebView/WebUIDelegatePrivate.h:
3864
3865         Pass didCloseMenu on to the controller.
3866         * WebView/WebView.mm:
3867         (-[WebView didCloseMenu:withEvent:]):
3868
3869 2014-11-09  Chris Dumez  <cdumez@apple.com>
3870
3871         Add a more correct way to compare floating point numbers and use it
3872         https://bugs.webkit.org/show_bug.cgi?id=138527
3873
3874         Reviewed by Darin Adler.
3875
3876         Use the new WTF::areEssentuallyEqual() utility function from MathExtras.h
3877         to compare floating-point numbers.
3878
3879         * WebView/WebHTMLView.mm:
3880         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
3881
3882 2014-11-08  Alexey Proskuryakov  <ap@apple.com>
3883
3884         Delete cookies between tests
3885         https://bugs.webkit.org/show_bug.cgi?id=138528
3886
3887         Reviewed by Sam Weinig.
3888
3889         * WebView/WebPreferences.mm: (+[WebPreferences _clearNetworkLoaderSession]):
3890         * WebView/WebPreferencesPrivate.h:
3891         Added an SPI for DumpRenderTree.
3892
3893 2014-11-07  Eric Carlson  <eric.carlson@apple.com>
3894
3895         [iOS] Update optimized fullscreen media controls
3896         https://bugs.webkit.org/show_bug.cgi?id=138493
3897
3898         Reviewed by Brent Fulgham.
3899
3900         * WebCoreSupport/WebSystemInterface.mm:
3901         (InitWebCoreSystemInterface): Initialize GetMediaUIImageData.
3902
3903 2014-11-06  Daniel Jalkut  <jalkut@red-sweater.com>
3904
3905         Wrap the bulk of -[WebView dealloc] with an autorelease pool.
3906         https://bugs.webkit.org/show_bug.cgi?id=138443
3907
3908         Reviewed by Anders Carlsson.
3909
3910         Wrapping the dealloc method in its own autorelease pool avoids the problem of
3911         complex tear-downs leading to the WebView itself being added to an autorelease
3912         pool that is not drained until after the instance has been dealloc'd.
3913  
3914         * WebView/WebView.mm:
3915         (-[WebView dealloc]):
3916
3917 2014-11-05  Jer Noble  <jer.noble@apple.com>
3918
3919         De-templatize Timer
3920         https://bugs.webkit.org/show_bug.cgi?id=138450
3921
3922         Reviewed by Anders Carlsson.
3923
3924         Remove template specifiers from Timer.
3925
3926         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3927         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3928         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
3929         * Plugins/WebNetscapePluginStream.h:
3930         * Plugins/WebNetscapePluginStream.mm:
3931         (WebNetscapePluginStream::deliverDataTimerFired):
3932
3933 2014-11-05  Dan Bernstein  <mitz@apple.com>
3934
3935         Remove the unused deletion UI feature
3936         https://bugs.webkit.org/show_bug.cgi?id=138442
3937
3938         Rubber-stamped by Alexey Proskuryakov.
3939
3940         * DefaultDelegates/WebDefaultEditingDelegate.m:
3941         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]): Deleted.
3942         * WebCoreSupport/WebEditorClient.h:
3943         * WebCoreSupport/WebEditorClient.mm:
3944         (WebEditorClient::shouldShowDeleteInterface): Deleted.
3945         * WebView/WebEditingDelegatePrivate.h: Removed declaration of
3946         -webView:shouldShowDeleteInterfaceForElement:.
3947
3948 2014-11-03  Dean Jackson  <dino@apple.com>
3949
3950         Add ENABLE_FILTERS_LEVEL_2 feature guard.
3951         https://bugs.webkit.org/show_bug.cgi?id=138362
3952
3953         Reviewed by Tim Horton.
3954
3955         Add a new feature define for Level 2 of CSS Filters.
3956         http://dev.w3.org/fxtf/filters-2/
3957
3958         * Configurations/FeatureDefines.xcconfig:
3959
3960 2014-11-03  Jeremy Jones  <jeremyj@apple.com>
3961
3962         Add button and enable optimized fullscreen.
3963         https://bugs.webkit.org/show_bug.cgi?id=138351
3964
3965         Reviewed by Eric Carlson.
3966
3967         Add IsOptimizedFullscreenSupported to enable the feature only where appropriate.
3968
3969         * WebCoreSupport/WebSystemInterface.mm:
3970         (InitWebCoreSystemInterface): added
3971
3972 2014-11-04  Chris Dumez  <cdumez@apple.com>
3973
3974         Add ptr() method to Ref class
3975         https://bugs.webkit.org/show_bug.cgi?id=138361
3976
3977         Reviewed by Darin Adler.
3978
3979         Use the new Ref::ptr() method.
3980
3981         * WebView/WebFrame.mm:
3982         (-[WebFrame _setTypingStyle:withUndoAction:]):
3983         * WebView/WebHTMLView.mm:
3984         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
3985         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
3986         * WebView/WebView.mm:
3987         (-[WebView applyStyle:]):
3988
3989 2014-11-04  Darin Adler  <darin@apple.com>
3990
3991         Eliminate ResourceBuffer and use SharedBuffer directly instead
3992         https://bugs.webkit.org/show_bug.cgi?id=138174
3993
3994         Reviewed by Antti Koivisto.
3995
3996         * WebView/WebDataSource.mm:
3997         (-[WebDataSource data]): Use SharedBuffer directly.
3998         * WebView/WebHTMLView.mm:
3999         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
4000
4001 2014-11-03  Commit Queue  <commit-queue@webkit.org>
4002
4003         Unreviewed, rolling out r175406, r175413, and r175423.
4004         https://bugs.webkit.org/show_bug.cgi?id=138327
4005
4006         Multipart tests are still broken (Requested by ap on #webkit).
4007
4008         Reverted changesets:
4009
4010         "Eliminate ResourceBuffer and use SharedBuffer directly
4011         instead"
4012         https://bugs.webkit.org/show_bug.cgi?id=138174
4013         http://trac.webkit.org/changeset/175406
4014
4015         "Unreviewed, iOS build fix since 175406."
4016         http://trac.webkit.org/changeset/175413
4017
4018         "Fix assertion in CachedResource::addDataBuffer"
4019         http://trac.webkit.org/changeset/175423
4020
4021 2014-10-31  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
4022
4023         Use std::unique_ptr for TypeCountSet
4024         https://bugs.webkit.org/show_bug.cgi?id=138242
4025
4026         Reviewed by Andreas Kling.
4027
4028         * Misc/WebCoreStatistics.mm:
4029         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): Use std::unique_ptr<> instead of OwnPtr.
4030         (+[WebCoreStatistics javaScriptObjectTypeCounts]): ditto.
4031
4032 2014-10-31  Beth Dakin  <bdakin@apple.com>
4033
4034         Use system art for action menus when possible
4035         https://bugs.webkit.org/show_bug.cgi?id=138260
4036
4037         Reviewed by Tim Horton.
4038
4039         * WebView/WebActionMenuController.mm:
4040         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
4041
4042 2014-10-30  Darin Adler  <darin@apple.com>
4043
4044         Eliminate ResourceBuffer and use SharedBuffer directly instead
4045         https://bugs.webkit.org/show_bug.cgi?id=138174
4046
4047         Reviewed by Antti Koivisto.
4048
4049         * WebView/WebDataSource.mm:
4050         (-[WebDataSource data]): Use SharedBuffer directly.
4051         * WebView/WebHTMLView.mm:
4052         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
4053
4054 2014-10-30  Jer Noble  <jer.noble@apple.com>
4055
4056         [EME] Add Setting for accessing storage location for MediaKeys data
4057         https://bugs.webkit.org/show_bug.cgi?id=138147
4058
4059         Reviewed by Brady Eidson.
4060
4061         * WebView/WebPreferenceKeysPrivate.h:
4062         * WebView/WebPreferences.mm:
4063         (+[WebPreferences initialize]): Set default location.
4064         (-[WebPreferences mediaKeysStorageDirectory]): Simple accessor.
4065         (-[WebPreferences setMediaKeysStorageDirectory:]): Simple setter.
4066         * WebView/WebPreferencesPrivate.h:
4067         * WebView/WebView.mm:
4068         (-[WebView _preferencesChanged:]): Pass location from WebPreferences into Settings.
4069
4070 2014-10-30  Dana Burkart  <dburkart@apple.com>
4071
4072         <rdar://problem/18821260> Prepare for the mysterious future
4073
4074         Reviewed by Lucas Forschler.
4075
4076         * Configurations/Base.xcconfig:
4077         * Configurations/DebugRelease.xcconfig:
4078         * Configurations/FeatureDefines.xcconfig:
4079         * Configurations/Version.xcconfig:
4080
4081 2014-10-28  Jeremy Jones  <jeremyj@apple.com>
4082
4083         Add optimized fullscreen mode.
4084         https://bugs.webkit.org/show_bug.cgi?id=138044
4085
4086         Reviewed by Jer Noble.
4087
4088         Enable different types of fullscreen video behavior.
4089         Add an enum parameter to enterVideoFullscreenForVideoElement for alternate types of fullscreen.
4090
4091         * WebCoreSupport/WebChromeClient.h: Add fullscreenType parameter
4092         * WebCoreSupport/WebChromeClient.mm:
4093         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
4094         * WebView/WebView.mm:
4095         (-[WebView _enterVideoFullscreenForVideoElement:type:]): ditto
4096         (-[WebView _enterVideoFullscreenForVideoElement:]): Deleted.
4097         * WebView/WebViewInternal.h: ditto
4098
4099 2014-10-27  Beth Dakin  <bdakin@apple.com>
4100
4101         Provide a way for WebKit1 clients to override default action menu items
4102         https://bugs.webkit.org/show_bug.cgi?id=138066
4103         -and corresponding-
4104         rdar://problem/18451638
4105
4106         Reviewed by Anders Carlsson.
4107
4108         WebActionMenuController now has an ivar for the WebActionMenuType so that it can 
4109         send that along to clients customizing the menu.
4110         * WebView/WebActionMenuController.h:
4111         * WebView/WebActionMenuController.mm:
4112         (-[WebActionMenuController prepareForMenu:withEvent:]):
4113         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
4114
4115         New enum and new SPI to customize menus.
4116         * WebView/WebUIDelegatePrivate.h:
4117
4118 2014-10-24  Benjamin Poulain  <bpoulain@apple.com>
4119
4120         Fix the iOS build
4121
4122         * Configurations/WebKitLegacy.xcconfig:
4123         * WebView/WebView.mm:
4124
4125 2014-10-24  Beth Dakin  <bdakin@apple.com>
4126
4127         Build fix.
4128
4129         * WebView/WebActionMenuController.mm:
4130         (-[WebActionMenuController _openURLFromActionMenu:]):
4131         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
4132         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
4133
4134 2014-10-24  Beth Dakin  <bdakin@apple.com>
4135
4136         WebKit1 should support action menus
4137         https://bugs.webkit.org/show_bug.cgi?id=138032
4138
4139         Reviewed by Tim Horton.
4140
4141         This patch adds basic support for action menus and adds actions for links.
4142
4143         Helper class takes care of all of the action menu work. WebView will forward the 
4144         prepareForMenu: message, and then the helper class takes it from there.
4145         * WebView/WebActionMenuController.h: Added.
4146         * WebView/WebActionMenuController.mm: Added.
4147         (-[WebActionMenuController webViewClosed]):
4148         (-[WebActionMenuController prepareForMenu:withEvent:]):
4149
4150         Selectors for link actions.
4151         (-[WebActionMenuController _openURLFromActionMenu:]):
4152         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
4153         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]):
4154         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
4155         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
4156         (webKitBundleImageNamed):
4157         (-[WebActionMenuController _defaultMenuItemsForLink:]):
4158         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
4159
4160         Tags for the action menu items.
4161         * WebView/WebUIDelegatePrivate.h:
4162         * WebView/WebView.mm:
4163
4164         Set the action menu if possible and create the controller.
4165         (-[WebView _initWithFrame:frameName:groupName:]):
4166         (-[WebView _close]):
4167         (-[WebView prepareForMenu:withEvent:]):
4168
4169         WebViewData stores the WebActionMenuHelper
4170         * WebView/WebViewData.h:
4171         * WebView/WebViewData.mm:
4172         (-[WebViewPrivate dealloc]):
4173
4174 2014-10-23  Joseph Pecoraro  <pecoraro@apple.com>
4175
4176         Web Inspector: Provide a way to have alternate inspector agents
4177         https://bugs.webkit.org/show_bug.cgi?id=137901
4178
4179         Reviewed by Brian Burg.
4180
4181         * Configurations/FeatureDefines.xcconfig:
4182
4183 2014-10-23  Tim Horton  <timothy_horton@apple.com>
4184
4185         Add some SPI headers for NSExtension and NSSharingService{Picker}
4186         https://bugs.webkit.org/show_bug.cgi?id=138027
4187
4188         Reviewed by Anders Carlsson.
4189
4190         * Misc/WebSharingServicePickerController.h:
4191         * Misc/WebSharingServicePickerController.mm:
4192         * WebCoreSupport/WebSelectionServiceController.mm:
4193         * WebCoreSupport/WebContextMenuClient.mm:
4194         Fix a sorting issue.
4195         Replace redefinitions with SPI header #imports.
4196
4197 2014-10-23  Tim Horton  <timothy_horton@apple.com>
4198
4199         Crashes under WebSelectionServiceController::hasRelevantSelectionServices
4200         https://bugs.webkit.org/show_bug.cgi?id=138013
4201
4202         Reviewed by Dan Bernstein.
4203
4204         * WebCoreSupport/WebSelectionServiceController.mm:
4205         (WebSelectionServiceController::hasRelevantSelectionServices):
4206         Don't adopt this autoreleased object.
4207
4208 2014-10-22  Chris Dumez  <cdumez@apple.com>
4209
4210         [Mac][WK2] Fix applicationIsSafari() detection
4211         https://bugs.webkit.org/show_bug.cgi?id=137893
4212
4213         Reviewed by Alexey Proskuryakov.
4214
4215         Provide an implementation for FrameLoaderClient's new
4216         needsQuickLookResourceCachingQuirks() that returns
4217         a static flag initialized using
4218         QuickLookMac::computeNeedsQuickLookResourceCachingQuirks().
4219
4220         * WebCoreSupport/WebFrameLoaderClient.h:
4221         * WebCoreSupport/WebFrameLoaderClient.mm:
4222