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