Unreviewed, rolling out r177037.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-12-09  Commit Queue  <commit-queue@webkit.org>
2
3         Unreviewed, rolling out r177037.
4         https://bugs.webkit.org/show_bug.cgi?id=139464
5
6         broke ~50 API tests (Requested by thorton on #webkit).
7
8         Reverted changeset:
9
10         "Use the new storage namespace provider in WebKit1"
11         https://bugs.webkit.org/show_bug.cgi?id=139425
12         http://trac.webkit.org/changeset/177037
13
14 2014-12-08  Anders Carlsson  <andersca@apple.com>
15
16         Use the new storage namespace provider in WebKit1
17         https://bugs.webkit.org/show_bug.cgi?id=139425
18
19         Reviewed by Tim Horton.
20
21         * WebView/WebView.mm:
22         (-[WebView _commonInitializationWithFrameName:groupName:]):
23         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
24         Set the storage namespace provider from the web page group.
25
26 2014-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
27
28         Delete Node::boundingBox()
29         https://bugs.webkit.org/show_bug.cgi?id=139333
30
31         Reviewed by Zalan Bujtas.
32
33         * WebView/WebActionMenuController.mm:
34         (elementBoundingBoxInWindowCoordinatesFromNode): Use
35         RenderObject::absoluteBoundingBoxRect().
36
37 2014-12-08  Alexey Proskuryakov  <ap@apple.com>
38
39         REGRESSION (r158036): WebView cannot handle HTTP Basic Authentication challenge
40         https://bugs.webkit.org/show_bug.cgi?id=138843
41         rdar://problem/18793695
42
43         Reviewed by Dan Bernstein.
44
45         * Panels/WebAuthenticationPanel.m:
46         (-[WebAuthenticationPanel cancel:]):
47         (-[WebAuthenticationPanel logIn:]):
48         Don't close the panel before using panel.sheetParent, because the parent becomes nil.
49         In fact, we don't need to close it at all, it's enough to call orderOut:, and even
50         that only when using an old NSWindow API.
51
52 2014-12-08  Beth Dakin  <bdakin@apple.com>
53
54         Copy and Lookup menu items should be disabled when something is not copyable
55         https://bugs.webkit.org/show_bug.cgi?id=139423
56
57         Reviewed by Tim Horton.
58
59         Disable both lookup and copy when a HitTestResult does not allow copy.
60         * WebView/WebActionMenuController.mm:
61
62         Set autoenablesItems to NO. It’s messing with our ability to control the enable/
63         disable state otherwise.
64         * WebView/WebView.mm:
65         (-[WebView _commonInitializationWithFrameName:groupName:]):
66
67 2014-12-08  Anders Carlsson  <andersca@apple.com>
68
69         Adding user content to a group should force that group to be created
70         https://bugs.webkit.org/show_bug.cgi?id=139421
71         rdar://problem/19180108
72
73         Reviewed by Sam Weinig.
74
75         * WebCoreSupport/WebViewGroup.h:
76         Store the local storage database path in the group.
77
78         * WebCoreSupport/WebViewGroup.mm:
79         (WebViewGroup::getOrCreate):
80         If we have an existing group that hasn't had its storage namespace provider created, and the path passed is not empty,
81         set it. This will ensure that getOrCreate will still work when creating a storage namspace provider.
82
83         (WebViewGroup::WebViewGroup):
84         Initialize the new member variable.
85
86         (WebViewGroup::storageNamespaceProvider):
87         Create the namespace provider lazily.
88
89         * WebView/WebView.mm:
90         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
91         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
92         Use getOrCreate instead of get.
93
94 2014-12-08  Anders Carlsson  <andersca@apple.com>
95
96         WebStorageNamespaceProvider should know about its local storage database path
97         https://bugs.webkit.org/show_bug.cgi?id=139413
98
99         Reviewed by Andreas Kling.
100
101         * WebCoreSupport/WebViewGroup.h:
102         * WebCoreSupport/WebViewGroup.mm:
103         (WebViewGroup::getOrCreate):
104         (WebViewGroup::WebViewGroup):
105         * WebView/WebView.mm:
106         (-[WebView _commonInitializationWithFrameName:groupName:]):
107         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
108         (-[WebView setGroupName:]):
109         (-[WebView groupName]): Deleted.
110
111 2014-12-08  Daniel Bates  <dabates@apple.com>
112
113         [iOS] Fix the WebKit build with the public SDK
114
115         Include header NSURLDownloadSPI.h.
116
117         * WebCoreSupport/WebFrameLoaderClient.mm:
118
119 2014-12-07  Dan Bernstein  <mitz@apple.com>
120
121         Introduce and deploy a function that allocates and returns an instance of a soft-linked class
122         https://bugs.webkit.org/show_bug.cgi?id=139348
123
124         Reviewed by Anders Carlsson.
125
126         In [[getFooClass() alloc] init*], the type of the result of +alloc is id, so the compiler
127         picks an arbitrary declaration of init*, not necessarily the Foo one. This can then lead
128         to warnings or errors if the types or attributes don’t match, or to runtime errors if Foo
129         doesn’t even have the expected initializer. The new allocFooInstance() returns a Foo *, thus
130         avoiding the ambiguity.
131
132         * WebView/WebActionMenuController.mm:
133         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
134
135 2014-12-06  Anders Carlsson  <andersca@apple.com>
136
137         Add a stubbed out version of WebStorageNamespaceProvider
138         https://bugs.webkit.org/show_bug.cgi?id=139213
139
140         Reviewed by Sam Weinig.
141
142         * WebCoreSupport/WebViewGroup.h:
143         (WebViewGroup::storageNamespaceProvider):
144         * WebCoreSupport/WebViewGroup.mm:
145         (WebViewGroup::getOrCreate):
146         (WebViewGroup::WebViewGroup):
147         Give WebViewGroup a storage namespace provider.
148
149 2014-12-06  Anders Carlsson  <andersca@apple.com>
150
151         Fix build with newer versions of clang.
152         rdar://problem/18978687
153
154         Add missing overrides and missing casts.
155
156         * Storage/WebDatabaseManagerClient.h:
157         * Storage/WebStorageTrackerClient.h:
158         * WebCoreSupport/WebChromeClient.h:
159         * WebCoreSupport/WebFrameLoaderClient.h:
160         * WebCoreSupport/WebInspectorClient.h:
161         * WebView/WebDataSource.mm:
162         (-[WebDataSource _makeRepresentation]):
163         * WebView/WebFrameView.mm:
164         (-[WebFrameView _makeDocumentViewForDataSource:]):
165
166 2014-12-05  Tim Horton  <timothy_horton@apple.com>
167
168         Legacy WebKit should set deviceScaleFactor in _commonInitializationWithFrameName, not _initWithFrame
169         https://bugs.webkit.org/show_bug.cgi?id=139306
170         <rdar://problem/19157955>
171
172         Reviewed by Beth Dakin.
173
174         * WebView/WebView.mm:
175         (-[WebView _commonInitializationWithFrameName:groupName:]):
176         (-[WebView _initWithFrame:frameName:groupName:]):
177         Move setDeviceScaleFactor to the initialization path that is guaranteed to happen.
178
179 2014-12-05  David Kilzer  <ddkilzer@apple.com>
180
181         FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
182         <http://webkit.org/b/139286>
183
184         Reviewed by Daniel Bates.
185
186         * Configurations/FeatureDefines.xcconfig: Switch back to using
187         PLATFORM_NAME to workaround a bug in Xcode 5.1.1 on 10.8.
188
189 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
190
191         Fix the 32-bit build.
192
193         * WebView/WebView.mm:
194         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
195
196 2014-12-04  Tim Horton  <timothy_horton@apple.com>
197
198         TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2
199         https://bugs.webkit.org/show_bug.cgi?id=139252
200         <rdar://problem/19140827>
201
202         Reviewed by Anders Carlsson.
203
204         * WebView/WebView.mm:
205         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
206         Adjust to the WebCore changes.
207
208 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
209
210         Implement action menus for tel: URLs
211         https://bugs.webkit.org/show_bug.cgi?id=139240
212         <rdar://problem/19115662>
213
214         Reviewed by Anders Carlsson.
215
216         * WebView/WebActionMenuController.mm:
217         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
218         Make sure to use the newly created currentActionContext... everywhere.
219
220 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
221
222         Implement action menus for tel: URLs
223         https://bugs.webkit.org/show_bug.cgi?id=139240
224         <rdar://problem/19115662>
225
226         Reviewed by Anders Carlsson.
227
228         * WebView/WebActionMenuController.mm:
229         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
230         Make sure to use the newly created currentActionContext.
231
232 2014-12-03  Beth Dakin  <bdakin@apple.com>
233
234         <input> elements get whitespace action menu instead of editable text menu
235         https://bugs.webkit.org/show_bug.cgi?id=139241
236         -and corresponding-
237         rdar://problem/19072083
238
239         Reviewed by Sam Weinig.
240
241         We should disallow shadow content in the hit test. This is the default and it is 
242         how context menus behave. We originally wanted to text inside shadow content so 
243         that we could find the text, but the new function I added to HitTestResult will 
244         allow that.
245         * WebView/WebActionMenuController.mm:
246         (-[WebActionMenuController performHitTestAtPoint:]):
247
248         Adjust to the fact that we don’t hit test shadow content any more.
249         (-[WebActionMenuController focusAndSelectHitTestResult]):
250
251         Offer the text menus for text inside form controls.
252         (-[WebActionMenuController _defaultMenuItems]):
253
254 2014-12-03  Tim Horton  <timothy_horton@apple.com>
255
256         Implement action menus for tel: URLs
257         https://bugs.webkit.org/show_bug.cgi?id=139240
258         <rdar://problem/19115662>
259
260         Reviewed by Anders Carlsson.
261
262         * WebView/WebActionMenuController.mm:
263         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
264         Rename this function as it will work for both mailto and tel URLs.
265         Adjust it to use contextForView:.
266
267         (-[WebActionMenuController webView:willHandleMouseDown:]):
268         (-[WebActionMenuController prepareForMenu:withEvent:]):
269         (-[WebActionMenuController didCloseMenu:withEvent:]):
270         (-[WebActionMenuController _defaultMenuItems]):
271         Don't check the menu type when going to interact with _currentActionContext.
272         We'll only have a _currentActionContext if we have a data detected item,
273         and there are multiple menu types that end up using DDActionContext.
274
275         * WebView/WebUIDelegatePrivate.h:
276         Add a new type.
277
278 2014-12-03  Anders Carlsson  <andersca@apple.com>
279
280         Set a visited link store when creating a simple WebView
281         https://bugs.webkit.org/show_bug.cgi?id=139234
282         <rdar://problem/19132978>
283
284         Reviewed by Sam Weinig.
285
286         * WebView/WebView.mm:
287         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
288
289 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
290
291         Fix the build.
292
293         * WebCoreSupport/WebFrameLoaderClient.mm:
294
295 2014-12-02  Alexey Proskuryakov  <ap@apple.com>
296
297         http/tests/appcache/main-resource-fallback-for-network-error-crash.html can break subsequent tests
298         https://bugs.webkit.org/show_bug.cgi?id=139149
299
300         Reviewed by Anders Carlsson.
301
302         This changes API behavior. I think that it's OK, because existing behavior made no sense.
303         We used to delete caches from disk, but they were still active in memory. Now we also
304         obsolete them in memory, so documents that use a cache still work, but new ones don't
305         pick one up.
306
307         * WebCoreSupport/WebApplicationCache.mm:
308         (+[WebApplicationCache setMaximumSize:]): Changing maximum on-disk size doesn't
309         need to delete in-momry caches too. Keep existing behavior.
310         (+[WebApplicationCache deleteAllApplicationCaches]): Use the new WebCore function
311         that properly deletes caches.
312
313 2014-12-02  Tim Horton  <timothy_horton@apple.com>
314
315         Remove a SnowLeopard-era quirk for QuickLook
316         https://bugs.webkit.org/show_bug.cgi?id=139208
317         <rdar://problem/19121822>
318
319         Reviewed by Alexey Proskuryakov.
320
321         * WebCoreSupport/WebFrameLoaderClient.h:
322         * WebCoreSupport/WebFrameLoaderClient.mm:
323
324 2014-12-02  Tim Horton  <timothy_horton@apple.com>
325
326         Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
327         https://bugs.webkit.org/show_bug.cgi?id=139204
328
329         Reviewed by Anders Carlsson.
330
331         * WebView/WebView.mm:
332         (-[WebView _commonInitializationWithFrameName:groupName:]):
333         (-[WebView _showDictionaryLookupPopup:]):
334         * WebView/WebViewData.h:
335         Work around this by delaying the softlinking (and setting up the notification
336         observer) until we actually need it. There's still an underlying bug, but
337         this will fix the test.
338
339 2014-12-02  Beth Dakin  <bdakin@apple.com>
340
341         Yet another build fix.
342
343         * WebView/WebActionMenuController.mm:
344         (-[WebActionMenuController _defaultMenuItemsForLink]):
345
346 2014-12-02  Beth Dakin  <bdakin@apple.com>
347
348         Build fix.
349
350         * WebView/WebActionMenuController.mm:
351         (-[WebActionMenuController _defaultMenuItemsForLink]):
352
353 2014-12-02  Beth Dakin  <bdakin@apple.com>
354
355         More build fixing.
356
357         * WebView/WebActionMenuController.mm:
358         (-[WebActionMenuController _defaultMenuItemsForLink]):
359
360 2014-12-02  Beth Dakin  <bdakin@apple.com>
361
362         Should use standardQuickLookMenuItem for apps that don't implement customizations
363         https://bugs.webkit.org/show_bug.cgi?id=139193
364         -and corresponding-
365         rdar://problem/18944696
366
367         Reviewed by Anders Carlsson.
368
369         Use [NSMenuItem standardQuickLookMenuItem].
370         * WebView/WebActionMenuController.mm:
371         (-[WebActionMenuController _defaultMenuItemsForLink]):
372
373         Delegate methods to set up the standardQuickLookMenuItem.
374         (-[WebActionMenuController menuItem:viewAtScreenPoint:]):
375         (-[WebActionMenuController menuItem:previewItemAtPoint:]):
376         (-[WebActionMenuController menuItem:preferredEdgeForPoint:]):
377
378         Remove all of the old QLPreviewBubble code.
379         (-[WebActionMenuController _createActionMenuItemForTag:]):
380         (-[WebActionMenuController _quickLookURLFromActionMenu:]): Deleted.
381
382 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
383
384         Fix the build.
385
386         * WebView/WebViewData.h:
387
388 2014-12-02  Tim Horton  <timothy_horton@apple.com>
389
390         Implement Lookup transition from selection for Legacy WebKit
391         https://bugs.webkit.org/show_bug.cgi?id=139180
392         <rdar://problem/19067172>
393
394         Reviewed by Beth Dakin.
395
396         * WebView/DictionaryPopupInfo.h: Added.
397         Split DictionaryPopupInfo out into its own file.
398
399         * WebView/WebActionMenuController.mm:
400         (-[WebActionMenuController _lookupText:]):
401         Hand the DictionaryPopupInfo to WebView, which will show the TextIndicator and invoke Lookup.
402
403         (performDictionaryLookupForSelection):
404         (performDictionaryLookupForRange):
405         Plumb the transition style through these helpers.
406         Create a TextIndicator from the selection range.
407
408         * WebView/WebHTMLView.mm:
409         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
410         Make use of TextIndicator (and DictionaryPopupInfo, and the new
411         _showDictionaryLookupPopup on WebView) to add a transition from blue
412         when performing Lookup from the context menu.
413
414         (-[WebHTMLView quickLookWithEvent:]):
415         Remove our TextIndicator whenever a normal three-finger-tap event
416         comes through, as it will have its own indication.
417
418         * WebView/WebView.mm:
419         (-[WebView _commonInitializationWithFrameName:groupName:]):
420         (-[WebView _dictionaryLookupPopoverWillClose:]):
421         Register for the LUNotificationPopoverWillClose notification and remove
422         our TextIndicator when it is called, just like in WebKit2.
423         Deregistration is already handled in _close.
424
425         (-[WebView _showDictionaryLookupPopup:]):
426         Just like WebKit2, show our TextIndicator and tell Lookup not to show its own,
427         if the relevant API is available.
428
429         * WebView/WebViewInternal.h:
430
431 2014-12-02  Anders Carlsson  <andersca@apple.com>
432
433         Remove visited link handling from PageGroup
434         https://bugs.webkit.org/show_bug.cgi?id=139185
435
436         Reviewed by Sam Weinig.
437
438         * History/WebHistory.mm:
439         (-[WebHistoryPrivate removeItemForURLString:]):
440         (-[WebHistoryPrivate removeAllItems]):
441         (+[WebHistory setOptionalSharedHistory:]):
442         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
443         (+[WebHistory _removeAllVisitedLinks]):
444         (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Deleted.
445         (-[WebHistory _addVisitedLinksToPageGroup:]): Deleted.
446         * History/WebHistoryInternal.h:
447         * WebCoreSupport/WebChromeClient.h:
448         * WebCoreSupport/WebChromeClient.mm:
449         (WebChromeClient::populateVisitedLinks): Deleted.
450         * WebView/WebView.mm:
451         (-[WebView addVisitedLinks:]):
452         (-[WebView removeVisitedLink:]):
453
454 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
455
456         Try to fix the Mac build.
457
458         * WebView/WebView.mm:
459         (-[WebView _commonInitializationWithFrameName:groupName:]):
460         (-[WebView _close]):
461
462 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
463
464         Fix the iOS build.
465
466         * WebView/WebActionMenuController.h:
467         * WebView/WebActionMenuController.mm:
468         * WebView/WebHTMLView.mm:
469         (-[WebHTMLView scrollWheel:scrollWheel:]):
470         (-[WebHTMLView mouseDown:mouseDown:]):
471         * WebView/WebView.mm:
472         * WebView/WebViewData.h:
473         * WebView/WebViewData.mm:
474         (-[WebViewPrivate dealloc]):
475         * WebView/WebViewInternal.h:
476
477 2014-12-01  Tim Horton  <timothy_horton@apple.com>
478
479         Implement yellow highlight for WebKit1 data detectors
480         https://bugs.webkit.org/show_bug.cgi?id=138956
481         <rdar://problem/18992185>
482
483         Reviewed by Beth Dakin.
484
485         * WebView/WebActionMenuController.h:
486         * WebView/WebActionMenuController.mm:
487         (-[WebActionMenuController webView:willHandleMouseDown:]):
488         (-[WebActionMenuController webView:didHandleScrollWheel:]):
489         (-[WebActionMenuController prepareForMenu:withEvent:]):
490         (-[WebActionMenuController didCloseMenu:withEvent:]):
491         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
492         (-[WebActionMenuController _showTextIndicator]):
493         (-[WebActionMenuController _hideTextIndicator]):
494         (-[WebActionMenuController _dismissActionMenuPopovers]):
495         Copy the WebKit2 WKActionMenuController TextIndicator implementation
496         into WebActionMenuController. The only significant difference is
497         that we build the TextIndicator right at menu construction time
498         instead of in the Web process.
499
500         * WebView/WebHTMLView.mm:
501         (-[WebHTMLView scrollWheel:]):
502         Let the WebActionMenuController know that we're handling a scroll.
503
504         (-[WebHTMLView mouseDown:]):
505         Let the WebActionMenuController know that we're handling a mouseDown.
506
507         * WebView/WebView.mm:
508         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
509         (-[WebView _clearTextIndicator]):
510         (-[WebView _actionMenuController]):
511         (-[WebView _convertRectFromRootView:]): Deleted.
512         * WebView/WebViewData.h:
513         * WebView/WebViewData.mm:
514         * WebView/WebViewInternal.h:
515         Keep a TextIndicatorWindow on WebView, just like WKView does.
516         Expose the WebActionMenuController on WebView (internally).
517
518 2014-12-01  Anders Carlsson  <andersca@apple.com>
519
520         Remove old site specific quirks code that was added in 2009
521         https://bugs.webkit.org/show_bug.cgi?id=139141
522
523         Reviewed by Antti Koivisto.
524
525         * WebCoreSupport/WebFrameNetworkingContext.h:
526         * WebCoreSupport/WebFrameNetworkingContext.mm:
527         (WebFrameNetworkingContext::needsSiteSpecificQuirks): Deleted.
528
529 2014-11-30  Anders Carlsson  <andersca@apple.com>
530
531         Fix a test failure.
532
533         * History/WebHistory.mm:
534         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
535         Call through to the visited link store.
536
537         (+[WebHistory _removeAllVisitedLinks]):
538         Ditto.
539
540         * WebCoreSupport/WebVisitedLinkStore.mm:
541         (WebVisitedLinkStore::isLinkVisited):
542         Make sure to populate visited links.
543
544 2014-11-30  Anders Carlsson  <andersca@apple.com>
545
546         Switch over to the visited link store from the WebViewGroup
547         https://bugs.webkit.org/show_bug.cgi?id=139112
548
549         Reviewed by Sam Weinig.
550
551         * WebView/WebView.mm:
552         (-[WebView _commonInitializationWithFrameName:groupName:]):
553         (-[WebView setGroupName:]):
554
555 2014-11-30  Anders Carlsson  <andersca@apple.com>
556
557         Add WebVisitedLinkStore::removeVisitedLink and use it on iOS
558         https://bugs.webkit.org/show_bug.cgi?id=139111
559
560         Reviewed by Sam Weinig.
561
562         * WebCoreSupport/WebVisitedLinkStore.h:
563         * WebCoreSupport/WebVisitedLinkStore.mm:
564         (WebVisitedLinkStore::removeVisitedLink):
565         * WebView/WebView.mm:
566         (-[WebView removeVisitedLink:]):
567
568 2014-11-29  Anders Carlsson  <andersca@apple.com>
569
570         Populate visited links
571         https://bugs.webkit.org/show_bug.cgi?id=139101
572
573         Reviewed by Sam Weinig.
574
575         * History/WebHistory.mm:
576         (-[WebHistoryPrivate addVisitedLinksToVisitedLinkStore:]):
577         Helper function that adds all visited link to the given store.
578
579         (-[WebHistory _addVisitedLinksToVisitedLinkStore:]):
580         Call the private method.
581
582         * History/WebHistoryInternal.h:
583         * WebCoreSupport/WebVisitedLinkStore.h:
584         Add new members.
585
586         * WebCoreSupport/WebVisitedLinkStore.mm:
587         (WebVisitedLinkStore::addVisitedLink):
588         Get the characters from the URL string and hash them, then call addVisitedLinkHash.
589
590         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
591         Implement this. First try the delegate, then try the shared history.
592
593         (WebVisitedLinkStore::addVisitedLinkHash):
594         Factor code that adds the link to the hash table into a separate function.
595
596         * WebView/WebView.mm:
597         (-[WebView addVisitedLinks:]):
598         Add the visited links to the store.
599
600 2014-11-29  Anders Carlsson  <andersca@apple.com>
601
602         More work on the legacy WebKit visited link store
603         https://bugs.webkit.org/show_bug.cgi?id=139100
604
605         Reviewed by Sam Weinig.
606
607         * History/WebHistory.mm:
608         (+[WebHistory setOptionalSharedHistory:]):
609         Call WebVisitedLinkStore::setShouldTrackVisitedLinks and WebVisitedLinkStore::removeAllVisitedLinks.
610
611         * WebCoreSupport/WebVisitedLinkStore.h:
612         * WebCoreSupport/WebVisitedLinkStore.mm:
613         (visitedLinkStores):
614         (WebVisitedLinkStore::WebVisitedLinkStore):
615         (WebVisitedLinkStore::~WebVisitedLinkStore):
616         Keep track of live visited link stores.
617
618         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
619         Update s_shouldTrackVisitedLinks and call removeAllVisitedLinks if necessary.
620
621         (WebVisitedLinkStore::removeAllVisitedLinks):
622         Iterate over all live link stores and remove their links.
623
624         (WebVisitedLinkStore::isLinkVisited):
625         Populate visited links and check if our hash table contains the link.
626
627         (WebVisitedLinkStore::addVisitedLink):
628         Add the link hash to the table.
629
630         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
631         Add stub.
632
633         (WebVisitedLinkStore::removeVisitedLinkHashes):
634         Clear out the hash table.
635
636 2014-11-27  Anders Carlsson  <andersca@apple.com>
637
638         Add a stubbed out WebVisitedLinkStore to WebViewGroup
639         https://bugs.webkit.org/show_bug.cgi?id=139066
640
641         Reviewed by Antti Koivisto.
642
643         * WebCoreSupport/WebViewGroup.h:
644         (WebViewGroup::visitedLinkStore):
645         * WebCoreSupport/WebViewGroup.mm:
646         (WebViewGroup::WebViewGroup):
647         * WebCoreSupport/WebVisitedLinkStore.h: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
648         * WebCoreSupport/WebVisitedLinkStore.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
649         (WebVisitedLinkStore::create):
650         (WebVisitedLinkStore::WebVisitedLinkStore):
651         (WebVisitedLinkStore::~WebVisitedLinkStore):
652         (WebVisitedLinkStore::isLinkVisited):
653         (WebVisitedLinkStore::addVisitedLink):
654
655 2014-11-25  Anders Carlsson  <andersca@apple.com>
656
657         Remove user content handling from PageGroup
658         https://bugs.webkit.org/show_bug.cgi?id=139051
659
660         Reviewed by Antti Koivisto.
661
662         Use the user content controller in the web view group.
663
664         * WebView/WebView.mm:
665         (-[WebView _injectOutlookQuirksScript]):
666
667 2014-11-25  Anders Carlsson  <andersca@apple.com>
668
669         Add a user content controller to WebViewGroup and use it for user content
670         https://bugs.webkit.org/show_bug.cgi?id=139043
671
672         Reviewed by Antti Koivisto.
673
674         This is another tiny step towards getting rid of user content handling inside PageGroup.
675
676         * WebCoreSupport/WebViewGroup.h:
677         (WebViewGroup::userContentController):
678         Add a UserContentController member and getter.
679
680         * WebCoreSupport/WebViewGroup.mm:
681         (WebViewGroup::get):
682         Helper function that returns a WebViewGroup by its name (or null if it doesn't exist).
683
684         (WebViewGroup::WebViewGroup):
685         Create a user content controller.
686
687         * WebView/WebView.mm:
688         (-[WebView _commonInitializationWithFrameName:groupName:]):
689         Instead of calling -[WebView setGroupName:], create a WebViewGroup before creating the page, that way we can
690         set its user content controller in the PageConfiguration.
691
692         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
693         Ditto.
694
695         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
696         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
697         (+[WebView _removeUserScriptFromGroup:world:url:]):
698         (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
699         (+[WebView _removeUserScriptsFromGroup:world:]):
700         (+[WebView _removeUserStyleSheetsFromGroup:world:]):
701         (+[WebView _removeAllUserContentFromGroup:]):
702         Instead of calling into the PageGroup, get the WebViewGroup's user content controller and call into that.
703
704         (-[WebView setGroupName:]):
705         Set the user content controller to the new WebViewGroup's user content controller.
706
707 2014-11-21  Jer Noble  <jer.noble@apple.com>
708
709         Support multiple signatures of diagnostic logging.
710         https://bugs.webkit.org/show_bug.cgi?id=138690
711
712         Reviewed by Anders Carlsson.
713
714         Page::PageClients has been renamed PageConfiguration.
715
716         * WebView/WebView.mm:
717         (-[WebView _commonInitializationWithFrameName:groupName:]):
718         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
719
720 2014-11-21  Zalan Bujtas  <zalan@apple.com>
721
722         Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser.
723         https://bugs.webkit.org/show_bug.cgi?id=138981
724
725         Reviewed by Simon Fraser.
726
727         * WebView/WebPreferenceKeysPrivate.h:
728         * WebView/WebPreferences.mm:
729         (+[WebPreferences initialize]):
730         (-[WebPreferences simpleLineLayoutDebugBordersEnabled]):
731         (-[WebPreferences setSimpleLineLayoutDebugBordersEnabled:]):
732         * WebView/WebPreferencesPrivate.h:
733         * WebView/WebView.mm:
734         (-[WebView _preferencesChanged:]):
735
736 2014-11-21  Tim Horton  <timothy_horton@apple.com>
737
738         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
739         ​https://bugs.webkit.org/show_bug.cgi?id=138960
740         <rdar://problem/19056715>
741
742         Reviewed by Anders Carlsson.
743
744         * WebView/WebActionMenuController.mm:
745         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
746         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
747         Use DataDetectors SPI instead of an explicit blacklist.
748
749 2014-11-21  Tim Horton  <timothy_horton@apple.com>
750
751         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
752         https://bugs.webkit.org/show_bug.cgi?id=138960
753         <rdar://problem/19056715>
754
755         Reviewed by Beth Dakin.
756
757         * WebView/WebActionMenuController.mm:
758         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
759         Blacklist contact results, because they don't have useful menus. If we
760         bail before setting up _currentActionContext, we'll still allow fallthrough
761         to ordinary text actions, avoiding mysterious failure when a contact is detected.
762
763         This doesn't break the case that r176351 was intended to fix,
764         because in that case we were detecting e.g. addresses.
765
766 2014-11-21  Anders Carlsson  <andersca@apple.com>
767
768         Remove the Timer parameters from timer callbacks
769         https://bugs.webkit.org/show_bug.cgi?id=138974
770
771         Reviewed by Antti Koivisto.
772
773         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
774         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
775         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
776         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
777         * Plugins/WebNetscapePluginStream.h:
778         * Plugins/WebNetscapePluginStream.mm:
779         (WebNetscapePluginStream::WebNetscapePluginStream):
780         (WebNetscapePluginStream::deliverDataTimerFired):
781
782 2014-11-21  Anders Carlsson  <andersca@apple.com>
783
784         Make memoryCache() return a reference
785         https://bugs.webkit.org/show_bug.cgi?id=138939
786
787         Reviewed by Antti Koivisto.
788
789         * Misc/WebCache.mm:
790         (+[WebCache statistics]):
791         (+[WebCache emptyInMemoryResources]):
792         (+[WebCache sizeOfDeadResources:]):
793         (+[WebCache addImageToCache:forURL:forFrame:]):
794         (+[WebCache removeImageFromCacheForURL:forFrame:]):
795         (+[WebCache imageForURL:]):
796         (+[WebCache setDisabled:]):
797         (+[WebCache isDisabled]):
798         * WebView/WebView.mm:
799         (+[WebView _setCacheModel:]):
800
801 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
802
803         Remove the remaining vestiges of minimal-ui
804         https://bugs.webkit.org/show_bug.cgi?id=138890
805
806         Reviewed by Sam Weinig.
807
808         * History/WebHistoryItem.mm:
809         * History/WebHistoryItemPrivate.h:
810
811 2014-11-20  Tim Horton  <timothy_horton@apple.com>
812
813         Cancel DataDetectors menu earlier if we know it can't be presented
814         https://bugs.webkit.org/show_bug.cgi?id=138922
815         <rdar://problem/18950441>
816
817         Reviewed by Beth Dakin.
818
819         * WebView/WebActionMenuController.mm:
820         (-[WebActionMenuController prepareForMenu:withEvent:]):
821         Move our call to shouldUseActionsWithContext earlier, to menuNeedsUpdate,
822         and use a bigger hammer (removeAllItems).
823
824         (-[WebActionMenuController willOpenMenu:withEvent:]):
825         If we end up with a menu with no items, don't change selection or anything.
826
827 2014-11-20  Beth Dakin  <bdakin@apple.com>
828
829         Invalid message WebPageProxy.DidPerformDictionaryLookup on Google stocks result
830         https://bugs.webkit.org/show_bug.cgi?id=138568
831         -and corresponding-
832         rdar://problem/18904600
833
834         Reviewed by Tim Horton.
835
836         Skip images for lookup.
837         * WebView/WebActionMenuController.mm:
838         (performDictionaryLookupForRange):
839
840 2014-11-19  Beth Dakin  <bdakin@apple.com>
841
842         Invoking an action menu on a selection should result in the text menu
843         https://bugs.webkit.org/show_bug.cgi?id=138892
844         -and corresponding-
845         rdar://problem/18996776
846
847         Reviewed by Tim Horton.
848
849         * WebView/WebActionMenuController.mm:
850         (-[WebActionMenuController _defaultMenuItems]):
851
852 2014-11-19  Beth Dakin  <bdakin@apple.com>
853
854         Data detected results with no menu items should not fall through to regular text 
855         action menus
856         https://bugs.webkit.org/show_bug.cgi?id=138887
857         -and corresponding-
858         rdar://problem/18971616
859
860         Reviewed by Tim Horton.
861
862         * WebView/WebActionMenuController.mm:
863         (-[WebActionMenuController _defaultMenuItems]):
864
865 2014-11-19  Daniel Bates  <dabates@apple.com>
866
867         [iOS] Make WebKit build with public iOS SDK
868         https://bugs.webkit.org/show_bug.cgi?id=136863
869
870         Reviewed by David Kilzer.
871
872         * History/WebHistory.mm: Include header NSCalendarDateSPI.h.
873         * History/WebHistoryItemPrivate.h: Remove include of private header Foundation/NSCalendarDate.h.
874         * Misc/WebDownload.h: Forward declare NSURLDownload when building without header Foundation/NSURLDownload.h.
875         We use __has_include() instead of WTF_USE_APPLE_INTERNAL_SDK since this header
876         may be used by Apple internal clients that do not include wtf/Platform.h.
877         * Misc/WebDownload.mm: Include header NSURLDownloadSPI.h instead of including
878         private Foundation headers directly.
879         * Misc/WebNSURLExtras.mm: Remove unnecessary include of private Foundation header.
880         * WebCoreSupport/WebFrameNetworkingContext.mm: Include header CFNetworkSPI.h
881         instead of including private CFNetwork headers directly. Also fixed up style and
882         ordering of header include directives.
883         * WebView/WebView.mm: Include header CFNetworkSPI.h instead of including private
884         CFNetwork headers directly. Also sort the #import directives.
885         * WebView/WebViewPrivate.h: Define ENABLE_TOUCH_EVENTS if not otherwise defined
886         and added ENABLE_TOUCH_EVENTS-guard around -_touchEventRegions.
887
888 2014-11-18  David Kilzer  <ddkilzer@apple.com>
889
890         FeatureDefines.xcconfig: Switch from using PLATFORM_NAME to SDK selectors
891         <http://webkit.org/b/138813>
892
893         Reviewed by Mark Rowe.
894
895         * Configurations/FeatureDefines.xcconfig: Switch to using SDK
896         selectors.
897
898 2014-11-18  Chris Dumez  <cdumez@apple.com>
899
900         Add a setting to toggle DOMTimer throttling support
901         https://bugs.webkit.org/show_bug.cgi?id=138844
902         <rdar://problem/19020874>
903
904         Reviewed by Andreas Kling.
905
906         Add a setting to disable DOM timers throttling, in order to help
907         developers determine if a specific issue is caused by timer
908         throttling.
909
910         * WebView/WebPreferenceKeysPrivate.h:
911         * WebView/WebPreferences.mm:
912         (+[WebPreferences initialize]):
913         (-[WebPreferences domTimersThrottlingEnabled]):
914         (-[WebPreferences setDOMTimersThrottlingEnabled:]):
915         * WebView/WebPreferencesPrivate.h:
916         * WebView/WebView.mm:
917         (-[WebView _preferencesChanged:]):
918
919 2014-11-18  Tim Horton  <timothy_horton@apple.com>
920
921         Avoid re-encoding action menu image data
922         https://bugs.webkit.org/show_bug.cgi?id=138817
923         <rdar://problem/18840382>
924
925         Reviewed by Anders Carlsson.
926
927         * WebView/WebActionMenuController.mm:
928         (-[WebActionMenuController _defaultMenuItemsForImage:]):
929         (-[WebActionMenuController _addImageToPhotos:]):
930         Build a temporary filename from a UUID and the image's desired extension.
931         Use the Image's encoded data instead of re-encoding it with CGImageDestination.
932         Build an image menu only if we have an image, URL, data, and extension.
933
934 2014-11-18  Daniel Bates  <dabates@apple.com>
935
936         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
937         SPI are not available in public SDK
938         https://bugs.webkit.org/show_bug.cgi?id=138802
939
940         Reviewed by David Kilzer.
941
942         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
943         libdispatch and MobileGestalt headers directly.
944
945         * WebView/WebView.mm:
946
947 2014-11-17  Brian Weinstein  <bweinstein@apple.com>
948
949         Remove calls to deprecated NSMenu methods
950         https://bugs.webkit.org/show_bug.cgi?id=138808.
951
952         Reviewed by Anders Carlsson.
953
954         -[NSMenu menuChangedMessagesEnabled] and -[NSMenu setMenuChangedMessagesEnabled:] are no-ops as of 10.6.
955
956         * WebCoreSupport/PopupMenuMac.mm:
957         (PopupMenuMac::populate):
958
959 2014-11-17  Daniel Bates  <dabates@apple.com>
960
961         Unreviewed, rolling out r176232.
962
963         Broke the Mac build. Will investigate offline.
964
965         Reverted changeset:
966
967         "[iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions,
968         MobileGestalt"
969         https://bugs.webkit.org/show_bug.cgi?id=138802
970         http://trac.webkit.org/changeset/176232
971
972 2014-11-17  Daniel Bates  <dabates@apple.com>
973
974         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
975         SPI are not available in public SDK
976         https://bugs.webkit.org/show_bug.cgi?id=138802
977
978         Reviewed by David Kilzer.
979
980         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
981         libdispatch and MobileGestalt headers directly.
982
983         * WebView/WebView.mm:
984
985 2014-11-17  Beth Dakin  <bdakin@apple.com>
986
987         Whitespace action menus should focus the HitTestResult and create an insertion 
988         point
989         https://bugs.webkit.org/show_bug.cgi?id=138786
990         -and corresponding-
991         rdar://problem/18944893
992
993         Reviewed by Tim Horton.
994
995         Whitespace menus should cause the HitTestResult to be focused, and they should set 
996         the selection based on the HitTest location.
997
998         * WebView/WebActionMenuController.mm:
999         (-[WebActionMenuController isMenuForTextContent]):
1000         (-[WebActionMenuController focusAndSelectHitTestResult]):
1001         (-[WebActionMenuController willOpenMenu:withEvent:]):
1002
1003 2014-11-17  Daniel Bates  <dabates@apple.com>
1004
1005         [iOS] QuartzCore SPI not available in public SDK
1006         https://bugs.webkit.org/show_bug.cgi?id=138751
1007
1008         Reviewed by David Kilzer.
1009
1010         Include header QuartzCoreSPI.h instead of including QuartzCore headers directly.
1011
1012         * WebInspector/WebNodeHighlight.mm:
1013         * WebView/WebIndicateLayer.mm:
1014
1015 2014-11-17  Eric Carlson  <eric.carlson@apple.com>
1016
1017         [iOS] allow host application to opt-out of alternate fullscreen
1018         https://bugs.webkit.org/show_bug.cgi?id=138787
1019
1020         Reviewed by Darin Adler.
1021
1022         * WebView/WebPreferenceKeysPrivate.h:
1023         * WebView/WebPreferences.mm:
1024         (+[WebPreferences initialize]):
1025         (-[WebPreferences allowsAlternateFullscreen]):
1026         (-[WebPreferences setAllowsAlternateFullscreen:]):
1027         * WebView/WebPreferencesPrivate.h:
1028         * WebView/WebView.mm:
1029         (-[WebView _preferencesChanged:]):
1030
1031 2014-11-16  Tim Horton  <timothy_horton@apple.com>
1032
1033         Use TextIndicator instead of the built in Lookup highlight
1034         https://bugs.webkit.org/show_bug.cgi?id=138775
1035         <rdar://problem/18953982>
1036
1037         Reviewed by Anders Carlsson.
1038
1039         * WebCoreSupport/WebSystemInterface.mm:
1040         (InitWebCoreSystemInterface):
1041         Remove a WKSI import.
1042
1043         * WebView/WebActionMenuController.mm:
1044         (-[WebActionMenuController _lookupText:]):
1045         (-[WebActionMenuController _createActionMenuItemForTag:]):
1046         Make use of the new Lookup SPI header.
1047         Disable the Lookup item if lookup is not available.
1048
1049 2014-11-15  Tim Horton  <timothy_horton@apple.com>
1050
1051         Implement data detectors and mailto action menus for WebKit1
1052         https://bugs.webkit.org/show_bug.cgi?id=138765
1053         <rdar://problem/18877535>
1054
1055         Reviewed by Beth Dakin.
1056
1057         * WebView/WebActionMenuController.h:
1058         * WebView/WebActionMenuController.mm:
1059         (-[WebActionMenuController willOpenMenu:withEvent:]):
1060         Tell DataDetectors that the menu is going to open.
1061         Select the text (or not) based on the number of items in the menu, just like WebKit2.
1062
1063         (-[WebActionMenuController didCloseMenu:withEvent:]):
1064         Tell DataDetectors that the menu closed.
1065
1066         (-[WebActionMenuController _defaultMenuItemsForLink]):
1067         Move these checks out of _defaultMenuItemsForLink, because we expect this
1068         to always return a complete link menu.
1069
1070         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
1071         Implement. More or less copied from WebKit2.
1072
1073         (-[WebActionMenuController _selectDataDetectedText]):
1074         Select the stashed range.
1075
1076         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
1077         Implement. More or less copied from WebKit2.
1078         The yellow highlight isn't hooked up yet.
1079         Give the client a chance to override via _webView:actionContextForHitTestResult:range:.
1080
1081         (-[WebActionMenuController _selectLookupText]):
1082         Remove an unnecessary return.
1083
1084         (-[WebActionMenuController _defaultMenuItems]):
1085         Call into the two new menu types.
1086
1087         * WebView/WebUIDelegatePrivate.h:
1088
1089 2014-11-14  Myles C. Maxfield  <mmaxfield@apple.com>
1090
1091         Get rid of WebFontCache
1092         https://bugs.webkit.org/show_bug.cgi?id=134752
1093
1094         Reviewed by Dave Hyatt.
1095
1096         * WebView/WebHTMLView.mm:
1097
1098 2014-11-14  Timothy Horton  <timothy_horton@apple.com>
1099
1100         Update some artwork for the legacy WebKit action menu
1101         https://bugs.webkit.org/show_bug.cgi?id=138758
1102         <rdar://problem/18989840>
1103
1104         * WebView/WebActionMenuController.mm:
1105         (webKitBundleImageNamed): Deleted.
1106         Fix the build.
1107
1108 2014-11-14  Tim Horton  <timothy_horton@apple.com>
1109
1110         Update some artwork for the legacy WebKit action menu
1111         https://bugs.webkit.org/show_bug.cgi?id=138758
1112         <rdar://problem/18989840>
1113
1114         Reviewed by Simon Fraser.
1115
1116         * WebView/WebActionMenuController.mm:
1117         (-[WebActionMenuController _createActionMenuItemForTag:]):
1118
1119 2014-11-14  Daniel Bates  <dabates@apple.com>
1120
1121         [iOS] NSFileManager and QuickLook SPI not available in public SDK
1122         https://bugs.webkit.org/show_bug.cgi?id=138742
1123
1124         Reviewed by Pratik Solanki.
1125
1126         Include header NSFileManagerSPI.h instead of the private header NSFileManager_NSURLExtras.h.
1127
1128         * WebCoreSupport/WebFrameLoaderClient.mm:
1129
1130 2014-11-14  Beth Dakin  <bdakin@apple.com>
1131
1132         WK1: Webpage preview can come up in wrong location
1133         https://bugs.webkit.org/show_bug.cgi?id=138747
1134         -and corresponding-
1135         rdar://problem/18979004
1136
1137         Reviewed by Tim Horton.
1138
1139         Converting to window twice is bad.
1140         * WebView/WebActionMenuController.mm:
1141         (elementBoundingBoxInWindowCoordinatesFromNode):
1142         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1143         (elementBoundingBoxFromNode): Deleted.
1144
1145 2014-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
1146
1147         Move FontMac and FontCacheMac off of WKSI
1148         https://bugs.webkit.org/show_bug.cgi?id=138633
1149
1150         Reviewed by Simon Fraser.
1151
1152         * WebCoreSupport/WebSystemInterface.mm:
1153         (InitWebCoreSystemInterface):
1154         * WebKit.order:
1155
1156 2014-11-13  Beth Dakin  <bdakin@apple.com>
1157
1158         WK1: Clean up WebActionMenuController to use the _hitTestResult ivar
1159         https://bugs.webkit.org/show_bug.cgi?id=138716
1160         -and corresponding-
1161         rdar://problem/18977222
1162
1163         Reviewed by Tim Horton.
1164
1165         It’s not necessary to use the WebElementDictionary for so many things now that we 
1166         are caching the HitTestResult. We should just use the HitTestResult.
1167
1168         * WebView/WebActionMenuController.mm:
1169         (-[WebActionMenuController prepareForMenu:withEvent:]):
1170         (-[WebActionMenuController _openURLFromActionMenu:]):
1171         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1172         (elementBoundingBoxFromNode):
1173         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1174         (-[WebActionMenuController _defaultMenuItemsForLink]):
1175         (-[WebActionMenuController _defaultMenuItemsForImage]):
1176         (-[WebActionMenuController _defaultMenuItemsForVideo]):
1177         (-[WebActionMenuController _defaultMenuItemsForText]):
1178         (-[WebActionMenuController _defaultMenuItemsForEditableText]):
1179         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]):
1180         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]):
1181         (-[WebActionMenuController _createActionMenuItemForTag:]):
1182         (-[WebActionMenuController _defaultMenuItems]):
1183         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]): Deleted.
1184         (-[WebActionMenuController _defaultMenuItemsForLink:]): Deleted.
1185         (-[WebActionMenuController _defaultMenuItemsForImage:]): Deleted.
1186         (-[WebActionMenuController _defaultMenuItemsForVideo:]): Deleted.
1187         (-[WebActionMenuController _defaultMenuItemsForText:]): Deleted.
1188         (-[WebActionMenuController _defaultMenuItemsForEditableText:]): Deleted.
1189         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]): Deleted.
1190         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]): Deleted.
1191         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Deleted.
1192         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Deleted.
1193
1194 2014-11-13  Daniel Bates  <dabates@apple.com>
1195
1196         [iOS] NSGeometry data types are not available in the public SDK
1197         https://bugs.webkit.org/show_bug.cgi?id=137536
1198
1199         Reviewed by David Kilzer.
1200
1201         Substitute header WAKAppKitStubs.h for NSGeometry.h as the latter is a
1202         private header.
1203
1204         * DOM/WebDOMOperationsPrivate.h:
1205
1206 2014-11-13  Beth Dakin  <bdakin@apple.com>
1207
1208         WK1: Support default actions for video
1209         https://bugs.webkit.org/show_bug.cgi?id=138713
1210         -and corresponding-
1211         rdar://problem/18877520
1212
1213         Reviewed by Tim Horton.
1214
1215         Call setToNonShadowAncestor() for media HitTestResults.
1216         * WebView/WebActionMenuController.mm:
1217         (-[WebActionMenuController performHitTestAtPoint:]):
1218
1219         Default items and actions.
1220         (-[WebActionMenuController _defaultMenuItemsForVideo:]):
1221         (-[WebActionMenuController _copyVideoURL:]):
1222         (-[WebActionMenuController _saveVideoToDownloads:]):
1223         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1224         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1225         * WebView/WebUIDelegatePrivate.h:
1226
1227 2014-11-13  Tim Horton  <timothy_horton@apple.com>
1228
1229         WK1: Update icon for Add to Reading List
1230         https://bugs.webkit.org/show_bug.cgi?id=138710
1231         <rdar://problem/18975774>
1232
1233         Reviewed by Beth Dakin.
1234
1235         * WebView/WebActionMenuController.mm:
1236         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1237         Use the right icon, matching WebKit2.
1238
1239 2014-11-12  Beth Dakin  <bdakin@apple.com>
1240
1241         WK1: Support default actions for images
1242         https://bugs.webkit.org/show_bug.cgi?id=138668
1243         -and corresponding-
1244         rdar://problem/18785434
1245
1246         Reviewed by Tim Horton.
1247
1248         * WebView/WebActionMenuController.h:
1249         * WebView/WebActionMenuController.mm:
1250         (-[WebActionMenuController didCloseMenu:withEvent:]):
1251         (-[WebActionMenuController _defaultMenuItemsForImage:]):
1252         (-[WebActionMenuController _copyImage:]):
1253         (temporaryPhotosDirectoryPath):
1254         (pathToPhotoOnDisk):
1255         (-[WebActionMenuController _canAddMediaToPhotos]):
1256         (-[WebActionMenuController _addImageToPhotos:]):
1257         (-[WebActionMenuController _saveImageToDownloads:]):
1258         (-[WebActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1259         (-[WebActionMenuController sharingServicePicker:delegateForSharingService:]):
1260         (-[WebActionMenuController sharingService:sourceWindowForShareItems:sharingContentScope:]):
1261         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1262         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1263         * WebView/WebUIDelegatePrivate.h:
1264
1265 2014-11-11  Beth Dakin  <bdakin@apple.com>
1266
1267         Action menu hit testing is not working properly with all WK1 apps
1268         https://bugs.webkit.org/show_bug.cgi?id=138643
1269         -and corresponding-
1270         rdar://problem/18949376
1271
1272         Reviewed by Tim Horton.
1273
1274         * WebView/WebActionMenuController.mm:
1275         (-[WebActionMenuController prepareForMenu:withEvent:]):
1276         (-[WebActionMenuController _lookupText:]):
1277
1278 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1279
1280         Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
1281         https://bugs.webkit.org/show_bug.cgi?id=138623
1282
1283         Reviewed by Geoff Garen.
1284
1285         * WebCoreSupport/WebSystemInterface.mm:
1286         (InitWebCoreSystemInterface):
1287         * WebKit.order:
1288
1289 2014-11-11  Tim Horton  <timothy_horton@apple.com>
1290
1291         Localize strings for action menus
1292         https://bugs.webkit.org/show_bug.cgi?id=138591
1293         <rdar://problem/18815343>
1294
1295         Reviewed by Dan Bates.
1296
1297         * WebView/WebActionMenuController.mm:
1298         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1299         Make use of the new strings.
1300
1301 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1302
1303         Cleanup from r175379
1304         https://bugs.webkit.org/show_bug.cgi?id=138616
1305
1306         Reviewed by Simon Fraser.
1307
1308         * WebCoreSupport/WebSystemInterface.mm:
1309         (InitWebCoreSystemInterface):
1310         * WebKit.order:
1311
1312 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1313
1314         Move CTFontTransformGlyphs out from WKSI
1315         https://bugs.webkit.org/show_bug.cgi?id=138599
1316
1317         Reviewed by Simon Fraser.
1318
1319         * WebCoreSupport/WebSystemInterface.mm:
1320         (InitWebCoreSystemInterface):
1321         * WebKit.order:
1322
1323 2014-11-11  Dan Bernstein  <mitz@apple.com>
1324
1325         More iOS build fix.
1326
1327         * WebView/WebHTMLViewInternal.h:
1328
1329 2014-11-11  Dan Bernstein  <mitz@apple.com>
1330
1331         iOS build fix.
1332
1333         * WebView/WebHTMLView.mm:
1334
1335 2014-11-10  Beth Dakin  <bdakin@apple.com>
1336
1337         WK1: Support default actions for editable text with misspelled word
1338         https://bugs.webkit.org/show_bug.cgi?id=138590
1339         -and corresponding-
1340         rdar://problem/18877506
1341
1342         Reviewed by Tim Horton.
1343
1344         If there are misspelled word suggestions for editable text, create a new type of 
1345         menu with a spelling suggestion sub-menu.
1346
1347         * WebView/WebActionMenuController.mm:
1348         (-[WebActionMenuController isMenuForTextContent]):
1349         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]):
1350         (-[WebActionMenuController _changeSelectionToSuggestion:]):
1351         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1352         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1353         * WebView/WebHTMLView.mm:
1354         (-[WebHTMLView _changeSpellingToWord:]):
1355         * WebView/WebHTMLViewInternal.h:
1356         * WebView/WebUIDelegatePrivate.h:
1357
1358 2014-11-10  Beth Dakin  <bdakin@apple.com>
1359
1360         WK1: Support default actions for editable whitespace
1361         https://bugs.webkit.org/show_bug.cgi?id=138586
1362         -and corresponding-
1363         rdar://problem/18932048
1364
1365         Reviewed by Tim Horton.
1366
1367         New menu type. Just wants paste.
1368
1369         * WebView/WebActionMenuController.mm:
1370         (-[WebActionMenuController isMenuForTextContent]):
1371         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]):
1372         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1373         * WebView/WebUIDelegatePrivate.h:
1374
1375 2014-11-10  Beth Dakin  <bdakin@apple.com>
1376
1377         WK1: Support default actions for editable text
1378         https://bugs.webkit.org/show_bug.cgi?id=138580
1379         -and corresponding-
1380         rdar://problem/18877497
1381
1382         Reviewed by Tim Horton.
1383
1384         New menu type, and new action type for paste. 
1385
1386         * WebView/WebActionMenuController.mm:
1387         (-[WebActionMenuController isMenuForTextContent]):
1388         (-[WebActionMenuController willOpenMenu:withEvent:]):
1389         (-[WebActionMenuController _defaultMenuItemsForEditableText:]):
1390         (-[WebActionMenuController _paste:]):
1391         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1392         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1393         * WebView/WebUIDelegatePrivate.h:
1394
1395 2014-11-10  Beth Dakin  <bdakin@apple.com>
1396
1397         WK1: Text is getting selected even when an action menu fails to invoke
1398         https://bugs.webkit.org/show_bug.cgi?id=138576
1399         -and corresponding-
1400         rdar://problem/18931330
1401
1402         Reviewed by Tim Horton.
1403
1404         Selection changes should happen in willOpenMenu: instead of prepareForMenu:
1405         * WebView/WebActionMenuController.h:
1406         * WebView/WebActionMenuController.mm:
1407         (-[WebActionMenuController prepareForMenu:withEvent:]):
1408         (-[WebActionMenuController willOpenMenu:withEvent:]):
1409
1410         _selectLookupText no longer needs to return a BOOL indicating success or failure.
1411         (-[WebActionMenuController _selectLookupText]):
1412         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1413
1414         Pass willOpenMenu: on to the controller.
1415         * WebView/WebView.mm:
1416         (-[WebView willOpenMenu:withEvent:]):
1417
1418 2014-11-10  Beth Dakin  <bdakin@apple.com>
1419
1420         Speculative build fix.
1421
1422         * WebView/WebActionMenuController.mm:
1423
1424 2014-11-10  Beth Dakin  <bdakin@apple.com>
1425
1426         Action menu initialization should be moved to _commonInitializationWithFrameName
1427         https://bugs.webkit.org/show_bug.cgi?id=138572
1428         -and corresponding-
1429         rdar://problem/18929733
1430
1431         Reviewed by Tim Horton.
1432
1433         * WebView/WebView.mm:
1434         (-[WebView _commonInitializationWithFrameName:groupName:]):
1435         (-[WebView _initWithFrame:frameName:groupName:]):
1436
1437 2014-11-10  Beth Dakin  <bdakin@apple.com>
1438
1439         WK1: Support default actions for read-only text
1440         https://bugs.webkit.org/show_bug.cgi?id=138552
1441         -and corresponding-
1442         rdar://problem/18877483
1443
1444         Reviewed by Tim Horton.
1445
1446         New WKSystemInterface functions that WebCore needs to use.
1447         * WebCoreSupport/WebSystemInterface.mm:
1448         (InitWebCoreSystemInterface):
1449
1450         WebActionMenuController now keeps an ivar for the WebCore::HitTestResult. This 
1451         makes a lot of things easier.
1452         * WebView/WebActionMenuController.h:
1453         * WebView/WebActionMenuController.mm:
1454
1455         Perform the hit test ourselves instead of calling into WebView so that we can more 
1456         easily save the WebCore::HitTestResult for ourselves.
1457         (-[WebActionMenuController performHitTestAtPoint:]):
1458
1459         Clear selection for non-text menus.
1460         (-[WebActionMenuController prepareForMenu:withEvent:]):
1461
1462         Re-set the _type here just to be safe.
1463         (-[WebActionMenuController didCloseMenu:withEvent:]):
1464
1465         Moving this method to be next to the link actions so they can be within a pragma 
1466         mark.
1467         (-[WebActionMenuController _defaultMenuItemsForLink:]):
1468
1469         New method for default text actions — lookup and copy.
1470         (-[WebActionMenuController _defaultMenuItemsForText:]):
1471         (-[WebActionMenuController _copySelection:]):
1472         (-[WebActionMenuController _lookupText:]):
1473
1474         If there is not already a selection, invoking the action menu on text should 
1475         select the lookup text.
1476         (-[WebActionMenuController _selectLookupText]):
1477         (performDictionaryLookupForSelection):
1478         (performDictionaryLookupForRange):
1479
1480         Handle text now.
1481         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1482         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1483
1484         New enum values.
1485         * WebView/WebUIDelegatePrivate.h:
1486
1487         Pass didCloseMenu on to the controller.
1488         * WebView/WebView.mm:
1489         (-[WebView didCloseMenu:withEvent:]):
1490
1491 2014-11-09  Chris Dumez  <cdumez@apple.com>
1492
1493         Add a more correct way to compare floating point numbers and use it
1494         https://bugs.webkit.org/show_bug.cgi?id=138527
1495
1496         Reviewed by Darin Adler.
1497
1498         Use the new WTF::areEssentuallyEqual() utility function from MathExtras.h
1499         to compare floating-point numbers.
1500
1501         * WebView/WebHTMLView.mm:
1502         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
1503
1504 2014-11-08  Alexey Proskuryakov  <ap@apple.com>
1505
1506         Delete cookies between tests
1507         https://bugs.webkit.org/show_bug.cgi?id=138528
1508
1509         Reviewed by Sam Weinig.
1510
1511         * WebView/WebPreferences.mm: (+[WebPreferences _clearNetworkLoaderSession]):
1512         * WebView/WebPreferencesPrivate.h:
1513         Added an SPI for DumpRenderTree.
1514
1515 2014-11-07  Eric Carlson  <eric.carlson@apple.com>
1516
1517         [iOS] Update optimized fullscreen media controls
1518         https://bugs.webkit.org/show_bug.cgi?id=138493
1519
1520         Reviewed by Brent Fulgham.
1521
1522         * WebCoreSupport/WebSystemInterface.mm:
1523         (InitWebCoreSystemInterface): Initialize GetMediaUIImageData.
1524
1525 2014-11-06  Daniel Jalkut  <jalkut@red-sweater.com>
1526
1527         Wrap the bulk of -[WebView dealloc] with an autorelease pool.
1528         https://bugs.webkit.org/show_bug.cgi?id=138443
1529
1530         Reviewed by Anders Carlsson.
1531
1532         Wrapping the dealloc method in its own autorelease pool avoids the problem of
1533         complex tear-downs leading to the WebView itself being added to an autorelease
1534         pool that is not drained until after the instance has been dealloc'd.
1535  
1536         * WebView/WebView.mm:
1537         (-[WebView dealloc]):
1538
1539 2014-11-05  Jer Noble  <jer.noble@apple.com>
1540
1541         De-templatize Timer
1542         https://bugs.webkit.org/show_bug.cgi?id=138450
1543
1544         Reviewed by Anders Carlsson.
1545
1546         Remove template specifiers from Timer.
1547
1548         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1549         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1550         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
1551         * Plugins/WebNetscapePluginStream.h:
1552         * Plugins/WebNetscapePluginStream.mm:
1553         (WebNetscapePluginStream::deliverDataTimerFired):
1554
1555 2014-11-05  Dan Bernstein  <mitz@apple.com>
1556
1557         Remove the unused deletion UI feature
1558         https://bugs.webkit.org/show_bug.cgi?id=138442
1559
1560         Rubber-stamped by Alexey Proskuryakov.
1561
1562         * DefaultDelegates/WebDefaultEditingDelegate.m:
1563         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]): Deleted.
1564         * WebCoreSupport/WebEditorClient.h:
1565         * WebCoreSupport/WebEditorClient.mm:
1566         (WebEditorClient::shouldShowDeleteInterface): Deleted.
1567         * WebView/WebEditingDelegatePrivate.h: Removed declaration of
1568         -webView:shouldShowDeleteInterfaceForElement:.
1569
1570 2014-11-03  Dean Jackson  <dino@apple.com>
1571
1572         Add ENABLE_FILTERS_LEVEL_2 feature guard.
1573         https://bugs.webkit.org/show_bug.cgi?id=138362
1574
1575         Reviewed by Tim Horton.
1576
1577         Add a new feature define for Level 2 of CSS Filters.
1578         http://dev.w3.org/fxtf/filters-2/
1579
1580         * Configurations/FeatureDefines.xcconfig:
1581
1582 2014-11-03  Jeremy Jones  <jeremyj@apple.com>
1583
1584         Add button and enable optimized fullscreen.
1585         https://bugs.webkit.org/show_bug.cgi?id=138351
1586
1587         Reviewed by Eric Carlson.
1588
1589         Add IsOptimizedFullscreenSupported to enable the feature only where appropriate.
1590
1591         * WebCoreSupport/WebSystemInterface.mm:
1592         (InitWebCoreSystemInterface): added
1593
1594 2014-11-04  Chris Dumez  <cdumez@apple.com>
1595
1596         Add ptr() method to Ref class
1597         https://bugs.webkit.org/show_bug.cgi?id=138361
1598
1599         Reviewed by Darin Adler.
1600
1601         Use the new Ref::ptr() method.
1602
1603         * WebView/WebFrame.mm:
1604         (-[WebFrame _setTypingStyle:withUndoAction:]):
1605         * WebView/WebHTMLView.mm:
1606         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
1607         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1608         * WebView/WebView.mm:
1609         (-[WebView applyStyle:]):
1610
1611 2014-11-04  Darin Adler  <darin@apple.com>
1612
1613         Eliminate ResourceBuffer and use SharedBuffer directly instead
1614         https://bugs.webkit.org/show_bug.cgi?id=138174
1615
1616         Reviewed by Antti Koivisto.
1617
1618         * WebView/WebDataSource.mm:
1619         (-[WebDataSource data]): Use SharedBuffer directly.
1620         * WebView/WebHTMLView.mm:
1621         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1622
1623 2014-11-03  Commit Queue  <commit-queue@webkit.org>
1624
1625         Unreviewed, rolling out r175406, r175413, and r175423.
1626         https://bugs.webkit.org/show_bug.cgi?id=138327
1627
1628         Multipart tests are still broken (Requested by ap on #webkit).
1629
1630         Reverted changesets:
1631
1632         "Eliminate ResourceBuffer and use SharedBuffer directly
1633         instead"
1634         https://bugs.webkit.org/show_bug.cgi?id=138174
1635         http://trac.webkit.org/changeset/175406
1636
1637         "Unreviewed, iOS build fix since 175406."
1638         http://trac.webkit.org/changeset/175413
1639
1640         "Fix assertion in CachedResource::addDataBuffer"
1641         http://trac.webkit.org/changeset/175423
1642
1643 2014-10-31  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1644
1645         Use std::unique_ptr for TypeCountSet
1646         https://bugs.webkit.org/show_bug.cgi?id=138242
1647
1648         Reviewed by Andreas Kling.
1649
1650         * Misc/WebCoreStatistics.mm:
1651         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): Use std::unique_ptr<> instead of OwnPtr.
1652         (+[WebCoreStatistics javaScriptObjectTypeCounts]): ditto.
1653
1654 2014-10-31  Beth Dakin  <bdakin@apple.com>
1655
1656         Use system art for action menus when possible
1657         https://bugs.webkit.org/show_bug.cgi?id=138260
1658
1659         Reviewed by Tim Horton.
1660
1661         * WebView/WebActionMenuController.mm:
1662         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1663
1664 2014-10-30  Darin Adler  <darin@apple.com>
1665
1666         Eliminate ResourceBuffer and use SharedBuffer directly instead
1667         https://bugs.webkit.org/show_bug.cgi?id=138174
1668
1669         Reviewed by Antti Koivisto.
1670
1671         * WebView/WebDataSource.mm:
1672         (-[WebDataSource data]): Use SharedBuffer directly.
1673         * WebView/WebHTMLView.mm:
1674         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1675
1676 2014-10-30  Jer Noble  <jer.noble@apple.com>
1677
1678         [EME] Add Setting for accessing storage location for MediaKeys data
1679         https://bugs.webkit.org/show_bug.cgi?id=138147
1680
1681         Reviewed by Brady Eidson.
1682
1683         * WebView/WebPreferenceKeysPrivate.h:
1684         * WebView/WebPreferences.mm:
1685         (+[WebPreferences initialize]): Set default location.
1686         (-[WebPreferences mediaKeysStorageDirectory]): Simple accessor.
1687         (-[WebPreferences setMediaKeysStorageDirectory:]): Simple setter.
1688         * WebView/WebPreferencesPrivate.h:
1689         * WebView/WebView.mm:
1690         (-[WebView _preferencesChanged:]): Pass location from WebPreferences into Settings.
1691
1692 2014-10-30  Dana Burkart  <dburkart@apple.com>
1693
1694         <rdar://problem/18821260> Prepare for the mysterious future
1695
1696         Reviewed by Lucas Forschler.
1697
1698         * Configurations/Base.xcconfig:
1699         * Configurations/DebugRelease.xcconfig:
1700         * Configurations/FeatureDefines.xcconfig:
1701         * Configurations/Version.xcconfig:
1702
1703 2014-10-28  Jeremy Jones  <jeremyj@apple.com>
1704
1705         Add optimized fullscreen mode.
1706         https://bugs.webkit.org/show_bug.cgi?id=138044
1707
1708         Reviewed by Jer Noble.
1709
1710         Enable different types of fullscreen video behavior.
1711         Add an enum parameter to enterVideoFullscreenForVideoElement for alternate types of fullscreen.
1712
1713         * WebCoreSupport/WebChromeClient.h: Add fullscreenType parameter
1714         * WebCoreSupport/WebChromeClient.mm:
1715         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
1716         * WebView/WebView.mm:
1717         (-[WebView _enterVideoFullscreenForVideoElement:type:]): ditto
1718         (-[WebView _enterVideoFullscreenForVideoElement:]): Deleted.
1719         * WebView/WebViewInternal.h: ditto
1720
1721 2014-10-27  Beth Dakin  <bdakin@apple.com>
1722
1723         Provide a way for WebKit1 clients to override default action menu items
1724         https://bugs.webkit.org/show_bug.cgi?id=138066
1725         -and corresponding-
1726         rdar://problem/18451638
1727
1728         Reviewed by Anders Carlsson.
1729
1730         WebActionMenuController now has an ivar for the WebActionMenuType so that it can 
1731         send that along to clients customizing the menu.
1732         * WebView/WebActionMenuController.h:
1733         * WebView/WebActionMenuController.mm:
1734         (-[WebActionMenuController prepareForMenu:withEvent:]):
1735         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1736
1737         New enum and new SPI to customize menus.
1738         * WebView/WebUIDelegatePrivate.h:
1739
1740 2014-10-24  Benjamin Poulain  <bpoulain@apple.com>
1741
1742         Fix the iOS build
1743
1744         * Configurations/WebKitLegacy.xcconfig:
1745         * WebView/WebView.mm:
1746
1747 2014-10-24  Beth Dakin  <bdakin@apple.com>
1748
1749         Build fix.
1750
1751         * WebView/WebActionMenuController.mm:
1752         (-[WebActionMenuController _openURLFromActionMenu:]):
1753         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1754         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1755
1756 2014-10-24  Beth Dakin  <bdakin@apple.com>
1757
1758         WebKit1 should support action menus
1759         https://bugs.webkit.org/show_bug.cgi?id=138032
1760
1761         Reviewed by Tim Horton.
1762
1763         This patch adds basic support for action menus and adds actions for links.
1764
1765         Helper class takes care of all of the action menu work. WebView will forward the 
1766         prepareForMenu: message, and then the helper class takes it from there.
1767         * WebView/WebActionMenuController.h: Added.
1768         * WebView/WebActionMenuController.mm: Added.
1769         (-[WebActionMenuController webViewClosed]):
1770         (-[WebActionMenuController prepareForMenu:withEvent:]):
1771
1772         Selectors for link actions.
1773         (-[WebActionMenuController _openURLFromActionMenu:]):
1774         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1775         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]):
1776         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1777         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1778         (webKitBundleImageNamed):
1779         (-[WebActionMenuController _defaultMenuItemsForLink:]):
1780         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1781
1782         Tags for the action menu items.
1783         * WebView/WebUIDelegatePrivate.h:
1784         * WebView/WebView.mm:
1785
1786         Set the action menu if possible and create the controller.
1787         (-[WebView _initWithFrame:frameName:groupName:]):
1788         (-[WebView _close]):
1789         (-[WebView prepareForMenu:withEvent:]):
1790
1791         WebViewData stores the WebActionMenuHelper
1792         * WebView/WebViewData.h:
1793         * WebView/WebViewData.mm:
1794         (-[WebViewPrivate dealloc]):
1795
1796 2014-10-23  Joseph Pecoraro  <pecoraro@apple.com>
1797
1798         Web Inspector: Provide a way to have alternate inspector agents
1799         https://bugs.webkit.org/show_bug.cgi?id=137901
1800
1801         Reviewed by Brian Burg.
1802
1803         * Configurations/FeatureDefines.xcconfig:
1804
1805 2014-10-23  Tim Horton  <timothy_horton@apple.com>
1806
1807         Add some SPI headers for NSExtension and NSSharingService{Picker}
1808         https://bugs.webkit.org/show_bug.cgi?id=138027
1809
1810         Reviewed by Anders Carlsson.
1811
1812         * Misc/WebSharingServicePickerController.h:
1813         * Misc/WebSharingServicePickerController.mm:
1814         * WebCoreSupport/WebSelectionServiceController.mm:
1815         * WebCoreSupport/WebContextMenuClient.mm:
1816         Fix a sorting issue.
1817         Replace redefinitions with SPI header #imports.
1818
1819 2014-10-23  Tim Horton  <timothy_horton@apple.com>
1820
1821         Crashes under WebSelectionServiceController::hasRelevantSelectionServices
1822         https://bugs.webkit.org/show_bug.cgi?id=138013
1823
1824         Reviewed by Dan Bernstein.
1825
1826         * WebCoreSupport/WebSelectionServiceController.mm:
1827         (WebSelectionServiceController::hasRelevantSelectionServices):
1828         Don't adopt this autoreleased object.
1829
1830 2014-10-22  Chris Dumez  <cdumez@apple.com>
1831
1832         [Mac][WK2] Fix applicationIsSafari() detection
1833         https://bugs.webkit.org/show_bug.cgi?id=137893
1834
1835         Reviewed by Alexey Proskuryakov.
1836
1837         Provide an implementation for FrameLoaderClient's new
1838         needsQuickLookResourceCachingQuirks() that returns
1839         a static flag initialized using
1840         QuickLookMac::computeNeedsQuickLookResourceCachingQuirks().
1841
1842         * WebCoreSupport/WebFrameLoaderClient.h:
1843         * WebCoreSupport/WebFrameLoaderClient.mm:
1844
1845 2014-10-20  Chris Dumez  <cdumez@apple.com>
1846
1847         ResourceRequest deserialization unnecessarily calls partitionName() on encoded cache partition
1848         https://bugs.webkit.org/show_bug.cgi?id=137797
1849
1850         Reviewed by Darin Adler.
1851
1852         Call ResourceRequest::setDomainForPartitionName() instead of
1853         setPartitionName() as the argument is a domain, not a valid
1854         partition name.
1855
1856         * Misc/WebCache.mm:
1857         (+[WebCache addImageToCache:forURL:forFrame:]):
1858         (+[WebCache removeImageFromCacheForURL:forFrame:]):
1859
1860 2014-10-20  Andy Estes  <aestes@apple.com>
1861
1862         Fix the iOS build.
1863
1864         * WebView/WebFrame.mm:
1865         (-[WebFrame getDictationResultRanges:andMetadatas:]):
1866         (-[WebFrame dictationResultMetadataForRange:]):
1867
1868 2014-10-19  Chris Dumez  <cdumez@apple.com>
1869
1870         Use is<>() / downcast<>() for all remaining RenderObject subclasses
1871         https://bugs.webkit.org/show_bug.cgi?id=137845
1872
1873         Reviewed by Darin Adler.
1874
1875         Use is<>() / downcast<>() for all remaining RenderObject subclasses and 
1876         clean up the surrounding code.
1877
1878         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1879         (-[WebHostedNetscapePluginView pluginHostDied]):
1880         * Plugins/WebBaseNetscapePluginView.mm:
1881         (-[WebBaseNetscapePluginView _windowClipRect]):
1882         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
1883         * WebCoreSupport/WebFrameLoaderClient.mm:
1884         (WebFrameLoaderClient::createPlugin):
1885         (WebFrameLoaderClient::createJavaAppletWidget):
1886
1887 2014-10-17  Tim Horton  <timothy_horton@apple.com>
1888
1889         Build fix for 32-bit Yosemite
1890
1891         * WebCoreSupport/WebContextMenuClient.mm:
1892         (WebContextMenuClient::contextMenuForEvent):
1893         Avoid using NSItemProvider in 32-bit, because it doesn't exist.
1894
1895 2014-10-17  Chris Dumez  <cdumez@apple.com>
1896
1897         Use is<>() / downcast<>() for RenderBox
1898         https://bugs.webkit.org/show_bug.cgi?id=137804
1899
1900         Reviewed by Andreas Kling.
1901
1902         Use is<>() / downcast<>() for RenderBox and clean up the surrounding
1903         code.
1904
1905         * WebCoreSupport/WebContextMenuClient.mm:
1906         (WebContextMenuClient::clientFloatRectForNode):
1907         * WebView/WebFrame.mm:
1908         (-[WebFrame renderedSizeOfNode:constrainedToWidth:]):
1909
1910 2014-10-17  Tim Horton  <timothy_horton@apple.com>
1911
1912         Fix the build with the public SDK.
1913
1914         * WebCoreSupport/WebSelectionServiceController.mm:
1915         We should transition all this SPI to real SPI headers as soon as possible.
1916
1917 2014-10-16  Tim Horton  <timothy_horton@apple.com>
1918
1919         Implement selection services menu for Legacy WebKit
1920         https://bugs.webkit.org/show_bug.cgi?id=137582
1921         <rdar://problem/18604241>
1922
1923         Reviewed by Brady Eidson.
1924
1925         * Misc/WebSharingServicePickerController.h:
1926         Move SPI into the header (in the near future it will be moved to a modern-style SPI header).
1927         Add WebSharingServicePickerClient, which other classes can implement
1928         instead of tying WebSharingServicePickerController strongly to WebContextMenuClient.
1929         Make initWithData:... -> initWithItems:... instead, taking an array of NSItemProviders.
1930
1931         * Misc/WebSharingServicePickerController.mm:
1932         Pass in NSSharingServicePickerStyle, so that clients can specify the style.
1933
1934         (-[WebSharingServicePickerController clear]):
1935         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
1936         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
1937         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
1938         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
1939         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
1940         Make use of WebSharingServicePickerClient.
1941
1942         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1943         If we're returned a NSAttributedString, paste it on top of the current selection,
1944         similar to what the WebKit2 implementation currently does.
1945         
1946         * WebCoreSupport/WebChromeClient.h:
1947         * WebCoreSupport/WebChromeClient.mm:
1948         (WebChromeClient::handleTelephoneNumberClick):
1949         (WebChromeClient::handleSelectionServiceClick):
1950         (WebChromeClient::hasRelevantSelectionServices):
1951         Override the services-related ChromeClient functions, forward them to WebSelectionServiceController.
1952
1953         * WebCoreSupport/WebContextMenuClient.h:
1954         * WebCoreSupport/WebContextMenuClient.mm:
1955         (WebContextMenuClient::sharingServicePickerWillBeDestroyed):
1956         (WebContextMenuClient::pageForSharingServicePicker):
1957         (WebContextMenuClient::windowForSharingServicePicker):
1958         (WebContextMenuClient::screenRectForCurrentSharingServicePickerItem):
1959         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
1960         (WebContextMenuClient::contextMenuForEvent):
1961         (WebContextMenuClient::screenRectForHitTestNode): Deleted.
1962         (WebContextMenuClient::renderedImageForControlledImage): Deleted.
1963         (WebContextMenuClient::clearSharingServicePickerController): Deleted.
1964         Have WebContextMenuClient implement WebSharingServicePickerClient to avoid
1965         having WebSharingServicePickerController tightly bound to it.
1966         Make an NSItemProvider array when instantiating WebSharingServicePickerController
1967         instead of handing it data directly.
1968
1969         * WebCoreSupport/WebSelectionServiceController.h: Copied from Source/WebKit/mac/WebCoreSupport/WebContextMenuClient.h.
1970         * WebCoreSupport/WebSelectionServiceController.mm: Added.
1971         (WebSelectionServiceController::WebSelectionServiceController):
1972         Add WebSelectionServiceController, which will act as the WebSharingServicePickerClient
1973         for selection services.
1974
1975         (WebSelectionServiceController::handleSelectionServiceClick):
1976         Create a WebSharingSericePickerController with the selection's attributed string, and show its menu.
1977
1978         (hasCompatibleServicesForItems):
1979         (WebSelectionServiceController::hasRelevantSelectionServices):
1980         Determine whether or not services are available.
1981
1982         (WebSelectionServiceController::sharingServicePickerWillBeDestroyed):
1983         (WebSelectionServiceController::pageForSharingServicePicker):
1984         (WebSelectionServiceController::windowForSharingServicePicker):
1985         Implement the rest of the WebSharingServicePickerClient overrides.
1986
1987         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem):
1988         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem):
1989         These are only useful for image sharing services, so we don't need to
1990         implement them (WebContextMenuClient does, on the other hand).
1991
1992         * WebView/WebView.mm:
1993         (-[WebView _selectionServiceController]):
1994         * WebView/WebViewData.h:
1995         * WebView/WebViewData.mm:
1996         * WebView/WebViewInternal.h:
1997         Keep a WebSelectionServiceController.
1998
1999 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
2000
2001         Improve debug description of WAKViews
2002         https://bugs.webkit.org/show_bug.cgi?id=137716
2003
2004         Reviewed by Simon Fraser.
2005
2006         * WebView/WebView.mm:
2007         (-[WebView _touchEventRegions]): Adding a comment.
2008
2009 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
2010
2011         Addressing post-review comment.
2012         https://bugs.webkit.org/show_bug.cgi?id=137550
2013
2014         Unreviewed.
2015
2016         * WebView/WebHTMLView.mm:
2017         (fontNameForDescription):
2018         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2019
2020 2014-10-14  Chris Dumez  <cdumez@apple.com>
2021
2022         Use is<>() / downcast<>() for RenderImage
2023         https://bugs.webkit.org/show_bug.cgi?id=137683
2024
2025         Reviewed by Mihnea Ovidenie.
2026
2027         Use is<>() / downcast<>() for RenderImage.
2028
2029         * Misc/WebNSPasteboardExtras.mm:
2030         (imageFromElement):
2031         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
2032
2033 2014-10-10  Daniel Bates  <dabates@apple.com>
2034
2035         Remove unused classes WebRender{Node, Layer}
2036         https://bugs.webkit.org/show_bug.cgi?id=137628
2037
2038         Reviewed by Simon Fraser.
2039
2040         We no longer make use of the WebKit1-specific classes WebRenderNode and WebRenderLayer.
2041         For completeness, there is a WebKit2 analogue of WebRenderLayer by the same name.
2042
2043         * Configurations/WebKitLegacy.xcconfig: Remove file WebRenderNode.mm from the list
2044         of excluded source files when building for iOS.
2045         * WebKit.exp: Remove symbol for WebRenderLayer.
2046         * WebKit.mac.exp: Remove symbol for WebRenderNode.
2047         * WebView/WebRenderLayer.h: Removed.
2048         * WebView/WebRenderLayer.mm: Removed.
2049         * WebView/WebRenderNode.h: Removed.
2050         * WebView/WebRenderNode.mm: Removed.
2051
2052 2014-10-10  Chris Dumez  <cdumez@apple.com>
2053
2054         Use is<>() / downcast<>() for RenderBoxModelObject
2055         https://bugs.webkit.org/show_bug.cgi?id=137587
2056
2057         Reviewed by Mihnea Ovidenie.
2058
2059         Use is<>() / downcast<>() for RenderBoxModelObject and clean up the
2060         surrounding code.
2061
2062         * Plugins/WebBaseNetscapePluginView.mm:
2063         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]):
2064         * WebView/WebRenderLayer.mm:
2065         (-[WebRenderLayer initWithWebFrame:]):
2066
2067 2014-10-09  Dean Jackson  <dino@apple.com>
2068
2069         Remove ENABLE_CSS3_CONDITIONAL_RULES
2070         https://bugs.webkit.org/show_bug.cgi?id=137571
2071
2072         Reviewed by Simon Fraser.
2073
2074         * Configurations/FeatureDefines.xcconfig:
2075
2076 2014-10-09  Tim Horton  <timothy_horton@apple.com>
2077
2078         Add a WebKit1 preference for selection services
2079         https://bugs.webkit.org/show_bug.cgi?id=137498
2080         <rdar://problem/18572699>
2081
2082         Reviewed by Simon Fraser.
2083
2084         * WebView/WebPreferenceKeysPrivate.h:
2085         * WebView/WebPreferences.mm:
2086         (+[WebPreferences initialize]):
2087         (-[WebPreferences serviceControlsEnabled]):
2088         (-[WebPreferences setServiceControlsEnabled:]):
2089         * WebView/WebPreferencesPrivate.h:
2090         * WebView/WebView.mm:
2091         (-[WebView _preferencesChanged:]):
2092         Add and plumb the preference.
2093
2094 2014-10-09  Myles C. Maxfield  <mmaxfield@apple.com>
2095
2096         Remove second-to-last client of WebFontCache
2097         https://bugs.webkit.org/show_bug.cgi?id=137550
2098
2099         Reviewed by Darin Adler.
2100
2101         Use FontCache::getCachedFontData() instead of WebFontCache.
2102
2103         * WebView/WebHTMLView.mm:
2104         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2105
2106 2014-10-09  Chris Dumez  <cdumez@apple.com>
2107
2108         Use is<>() / downcast<>() for Widget subclasses
2109         https://bugs.webkit.org/show_bug.cgi?id=137549
2110
2111         Reviewed by Darin Adler.
2112
2113         Use is<>() / downcast<>() for Widget subclasses and clean up the
2114         surrounding code.
2115
2116         * WebView/WebRenderNode.mm:
2117         (copyRenderNode):
2118         * WebView/WebView.mm:
2119         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
2120
2121 2014-10-07  Christophe Dumez  <cdumez@apple.com>
2122
2123         Use is<>() / downcast<>() for RenderText / RenderTextFragment
2124         https://bugs.webkit.org/show_bug.cgi?id=137476
2125
2126         Reviewed by Darin Adler.
2127
2128         * WebView/WebRenderNode.mm:
2129         (copyRenderNode):
2130
2131 2014-10-06  Dan Bernstein  <mitz@apple.com>
2132
2133         Build fix.
2134
2135         * Misc/WebCache.mm:
2136         (+[WebCache imageForURL:]):
2137
2138 2014-10-06  Chris Dumez  <cdumez@apple.com>
2139
2140         Unreviewed build fix after r174333.
2141
2142         Forgot explicit WebCore:: namespace.
2143
2144         * Misc/WebCache.mm:
2145         (+[WebCache imageForURL:]):
2146
2147 2014-10-05  Christophe Dumez  <cdumez@apple.com>
2148
2149         Use is<>() / downcast<>() for CachedResource subclasses
2150         https://bugs.webkit.org/show_bug.cgi?id=137431
2151
2152         Reviewed by Benjamin Poulain.
2153
2154         Use is<>() / downcast<>() for CachedResource subclasses.
2155
2156         * Misc/WebCache.mm:
2157         (+[WebCache imageForURL:]):
2158
2159 2014-10-02  Daniel Bates  <dabates@apple.com>
2160
2161         Use version number 101000 instead of 10100 for OS X Yosemite
2162         https://bugs.webkit.org/show_bug.cgi?id=137372
2163
2164         Reviewed by Mark Rowe.
2165
2166         The version number for OS X Yosemite is 101000.
2167
2168         * WebView/WebView.mm:
2169         (-[WebView _preferencesChanged:]):
2170
2171 2014-10-02  Tim Horton  <timothy_horton@apple.com>
2172
2173         Move PageOverlay[Controller] to WebCore
2174         https://bugs.webkit.org/show_bug.cgi?id=137164
2175         <rdar://problem/18508258>
2176
2177         Reviewed by Anders Carlsson.
2178
2179         * WebCoreSupport/WebChromeClient.h:
2180         * WebCoreSupport/WebChromeClient.mm:
2181         (WebChromeClient::attachViewOverlayGraphicsLayer):
2182         Add an empty ChromeClient override.
2183
2184 2014-10-01  Christophe Dumez  <cdumez@apple.com>
2185
2186         Have is<>(T*) function do a null check on the pointer argument
2187         https://bugs.webkit.org/show_bug.cgi?id=137333
2188
2189         Reviewed by Gavin Barraclough.
2190
2191         Have is<>(T*) function do a null check on the argument instead of a
2192         simple assertion. This makes sense for 2 reasons:
2193         1. It is more consistent with downcast<>(T*), which will succeed even
2194            if the argument is a nullptr.
2195         2. It simplifies the code a bit as it gets rid of a lot of explicit
2196            null checks.
2197
2198         * WebCoreSupport/WebChromeClient.mm:
2199         (WebChromeClient::focusedElementChanged):
2200         * WebCoreSupport/WebEditorClient.mm:
2201         (WebEditorClient::textFieldDidBeginEditing):
2202         (WebEditorClient::textFieldDidEndEditing):
2203         (WebEditorClient::textDidChangeInTextField):
2204         (WebEditorClient::doTextFieldCommandFromEvent):
2205         (WebEditorClient::textWillBeDeletedInTextField):
2206         (WebEditorClient::textDidChangeInTextArea):
2207         * WebView/WebHTMLRepresentation.mm:
2208         (inputElementFromDOMElement):
2209         (searchForLabelsBeforeElement):
2210         * WebView/WebRenderLayer.mm:
2211         (+[WebRenderLayer nameForLayer:]):
2212
2213 2014-10-01  Mark Rowe  <mrowe@apple.com>
2214
2215         <https://webkit.org/b/137308> WebKit should build on OS X Yosemite for external users
2216
2217         Reviewed by Dan Bernstein.
2218
2219         * Configurations/DebugRelease.xcconfig: Use libWebKitSystemInterfaceYosemite.a on Yosemite.
2220
2221 2014-09-30  Chris Dumez  <cdumez@apple.com>
2222
2223         Use is<>() / downcast<>() for Element
2224         https://bugs.webkit.org/show_bug.cgi?id=137241
2225
2226         Reviewed by Andreas Kling.
2227
2228         Use is<>() / downcast<>() for Element instead of isElementNode() /
2229         toElement().
2230
2231         * WebView/WebRenderLayer.mm:
2232         (+[WebRenderLayer nameForLayer:]):
2233
2234 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2235
2236         Move ColorInputType class to std::unique_ptr
2237         https://bugs.webkit.org/show_bug.cgi?id=137173
2238
2239         Reviewed by Darin Adler.
2240
2241         Replace uses of PassOwnPtr in code under ColorInputType class with std::unique_ptr.
2242         Child classes follow this change as well.
2243
2244         * WebCoreSupport/WebChromeClient.h:
2245         * WebCoreSupport/WebChromeClient.mm:
2246         (WebChromeClient::createColorChooser):
2247
2248 2014-09-24  Christophe Dumez  <cdumez@apple.com>
2249
2250         Add initial is<>() / downcast<>() support for any type of Nodes
2251         https://bugs.webkit.org/show_bug.cgi?id=137056
2252
2253         Reviewed by Benjamin Poulain.
2254
2255         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
2256         instead of isFormControlElement() / toHTMLFormControlElement().
2257
2258         * WebView/WebHTMLRepresentation.mm:
2259         (searchForLabelsBeforeElement):
2260
2261 2014-09-24  Christophe Dumez  <cdumez@apple.com>
2262
2263         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
2264         https://bugs.webkit.org/show_bug.cgi?id=137068
2265
2266         Reviewed by Ryosuke Niwa.
2267
2268         Start using is<HTML*Element>() instead of isHTML*Element().
2269         Remaining usages will be updated in a follow-up patch to
2270         reduce the size of the change.
2271
2272         * WebCoreSupport/WebChromeClient.mm:
2273         (WebChromeClient::focusedElementChanged):
2274         * WebCoreSupport/WebEditorClient.mm:
2275         (WebEditorClient::textFieldDidBeginEditing):
2276         (WebEditorClient::textFieldDidEndEditing):
2277         (WebEditorClient::textDidChangeInTextField):
2278         (WebEditorClient::doTextFieldCommandFromEvent):
2279         (WebEditorClient::textWillBeDeletedInTextField):
2280         (WebEditorClient::textDidChangeInTextArea):
2281         * WebView/WebHTMLRepresentation.mm:
2282         (inputElementFromDOMElement):
2283
2284 2014-09-21  Timothy Hatcher  <timothy@apple.com>
2285
2286         Make the Web Inspector use a separate web process.
2287
2288         https://bugs.webkit.org/show_bug.cgi?id=135120
2289
2290         Reviewed by Anders Carlsson.
2291
2292         * WebCoreSupport/WebInspectorClient.h:
2293         * WebCoreSupport/WebInspectorClient.mm:
2294         (WebInspectorClient::WebInspectorClient):
2295         (WebInspectorClient::openInspectorFrontend):
2296         (WebInspectorClient::releaseFrontend):
2297         Own WebInspectorFrontendClient instead of moving it.
2298
2299 2014-09-23  Chris Dumez  <cdumez@apple.com>
2300
2301         Use downcast<HTML*Element>() instead of toHTML*Element()
2302         https://bugs.webkit.org/show_bug.cgi?id=137007
2303
2304         Reviewed by Benjamin Poulain.
2305
2306         Use downcast<HTML*Element>() instead of toHTML*Element().
2307
2308         * DOM/WebDOMOperations.mm:
2309         (-[DOMHTMLInputElement _setAutofilled:]):
2310         * WebCoreSupport/WebChromeClient.mm:
2311         (WebChromeClient::focusedElementChanged):
2312         * WebCoreSupport/WebEditorClient.mm:
2313         (WebEditorClient::textFieldDidBeginEditing):
2314         (WebEditorClient::textFieldDidEndEditing):
2315         (WebEditorClient::textDidChangeInTextField):
2316         (WebEditorClient::doTextFieldCommandFromEvent):
2317         (WebEditorClient::textWillBeDeletedInTextField):
2318         (WebEditorClient::textDidChangeInTextArea):
2319         * WebView/WebHTMLRepresentation.mm:
2320         (inputElementFromDOMElement):
2321
2322 2014-09-21  Chris Dumez  <cdumez@apple.com>
2323
2324         Generate Element casting helper functions
2325         https://bugs.webkit.org/show_bug.cgi?id=136839
2326
2327         Reviewed by Darin Adler.
2328
2329         Use JSXXX::toWrapped() instead of toXXX() function.
2330
2331         * DOM/WebDOMOperations.mm:
2332         * WebView/WebView.mm:
2333         (-[WebView _notificationIDForTesting:]):
2334
2335 2014-09-21  Joseph Pecoraro  <pecoraro@apple.com>
2336
2337         Leak: WebNotificationPrivate ObjC leaks seen on leaks bot
2338         https://bugs.webkit.org/show_bug.cgi?id=136972
2339
2340         Reviewed by Darin Adler.
2341
2342         * WebView/WebNotification.h:
2343         * WebView/WebNotification.mm:
2344         (-[WebNotification initWithCoreNotification:notificationID:]):
2345         Switch to RetainPtr and adopt into _private to ensure when we are
2346         deallocated that _private will get deallocated.
2347
2348 2014-09-19  Dean Jackson  <dino@apple.com>
2349
2350         Multithreaded WebGL is a bad idea - remove it
2351         https://bugs.webkit.org/show_bug.cgi?id=136964
2352         <rdar://problem/18399858>
2353
2354         Reviewed by Brent Fulgham.
2355
2356         Remove the setting to allow multithreaded WebGL.
2357
2358         * WebView/WebPreferenceKeysPrivate.h:
2359         * WebView/WebPreferences.mm:
2360         (+[WebPreferences initialize]):
2361         (-[WebPreferences multithreadedWebGLEnabled]): Deleted.
2362         (-[WebPreferences setMultithreadedWebGLEnabled:]): Deleted.
2363         * WebView/WebPreferencesPrivate.h:
2364         * WebView/WebView.mm:
2365         (-[WebView _preferencesChanged:]):
2366
2367 2014-09-19  Daniel Bates  <dabates@apple.com>
2368
2369         Always assume internal SDK when building configuration Production
2370         https://bugs.webkit.org/show_bug.cgi?id=136925
2371         <rdar://problem/18362399>
2372
2373         Reviewed by Dan Bernstein.
2374
2375         As a side effect of this change we will always enable ENABLE_TOUCH_EVENTS, ENABLE_IOS_{GESTURE, TOUCH}_EVENTS,
2376         and ENABLE_XSLT when either building configuration Production or building with the Internal SDK.
2377
2378         * Configurations/Base.xcconfig:
2379
2380 2014-09-17  Daniel Bates  <dabates@apple.com>
2381
2382         Unreviewed, rolling out r173695.
2383
2384         Broke building third-party Legacy WebKit apps; will
2385         investigate offline
2386
2387         Reverted changeset:
2388
2389         "[iOS] Make WebCore build with public iOS SDK"
2390         https://bugs.webkit.org/show_bug.cgi?id=136487
2391         http://trac.webkit.org/changeset/173695
2392
2393 2014-09-17  Daniel Bates  <dabates@apple.com>
2394
2395         [iOS] Make WebCore build with public iOS SDK
2396         https://bugs.webkit.org/show_bug.cgi?id=136487
2397
2398         Reviewed by David Kilzer.
2399
2400         Update WebKit1 source files to include the wrapper SPI headers instead of the corresponding
2401         actual SPI header(s).
2402
2403         * DOM/WebDOMOperationsPrivate.h:
2404         * MigrateHeaders.make: Modified to only modify the include path of a "<WebCore/"-prefixed header
2405         file if its filename doesn't end in "SPI.h" as an alternative to having MigrateHeaders.make copy
2406         such files into the WebKit framework as private headers.
2407         * WebCoreSupport/WebFrameLoaderClient.mm:
2408         * WebInspector/WebNodeHighlight.mm:
2409         * WebView/WebIndicateLayer.mm:
2410         * WebView/WebRenderLayer.h:
2411         * WebView/WebView.mm:
2412
2413 2014-09-16  Daniel Bates  <dabates@apple.com>
2414
2415         [iOS] Add iOS SDK name and version suffix to WebKitSystemInterface debug/release product name
2416         https://bugs.webkit.org/show_bug.cgi?id=136862
2417
2418         Reviewed by David Kilzer.
2419
2420         * Configurations/DebugRelease.xcconfig:
2421
2422 2014-09-16  Enrica Casucci  <enrica@apple.com>
2423
2424         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2425         https://bugs.webkit.org/show_bug.cgi?id=136474
2426
2427         Reviewed by Benjamin Poulain.
2428
2429         This is the updated version of the patch that was landed in r173340.
2430         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2431         and removes the assumption that EAffinity values match NSSelectionAffinity
2432         values. It also removes the includes in TextAffinity.h, creating the need to
2433         include explicitly the files when necessary.
2434
2435         * WebCoreSupport/WebEditorClient.h:
2436         (kit):
2437         (core):
2438
2439 2014-09-14  Daniel Bates  <dabates@apple.com>
2440
2441         [iOS] Attempt to fix the iOS build after <http://trac.webkit.org/changeset/173606>
2442         (https://bugs.webkit.org/show_bug.cgi?id=136789)
2443
2444         Substitute Node::countChildNodes() for Node::childNodeCount() in more places.
2445
2446         * WebView/WebFrame.mm:
2447         (-[WebFrame focusedNodeHasContent]):
2448
2449 2014-09-14  Chris Dumez  <cdumez@apple.com>
2450
2451         Rename Node::childNodeCount() to countChildNodes() and avoid inefficient uses
2452         https://bugs.webkit.org/show_bug.cgi?id=136789
2453
2454         Reviewed by Darin Adler.
2455
2456         Rename childNodeCount() to countChildNodes().
2457
2458         * WebView/WebHTMLView.mm:
2459         (-[WebHTMLView attributedString]):
2460
2461 2014-09-10  Jon Honeycutt  <jhoneycutt@apple.com>
2462
2463         Re-add the request autocomplete feature
2464
2465         <https://bugs.webkit.org/show_bug.cgi?id=136730>
2466
2467         This feature was rolled out in r148731 because it was only used by
2468         Chromium. As we consider supporting this feature, roll it back in, but
2469         leave it disabled.
2470
2471         This rolls out r148731 (which removed the feature) with small changes
2472         needed to make the code build in ToT, to match modern style, to make
2473         the tests run, and to remove unused code.
2474
2475         Reviewed by Andy Estes.
2476
2477         * Configurations/FeatureDefines.xcconfig:
2478         * WebCoreSupport/WebFrameLoaderClient.h:
2479
2480 2014-09-12  Commit Queue  <commit-queue@webkit.org>
2481
2482         Unreviewed, rolling out r173575.
2483         https://bugs.webkit.org/show_bug.cgi?id=136790
2484
2485         Failing tests (Requested by enrica on #webkit).
2486
2487         Reverted changeset:
2488
2489         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2490         https://bugs.webkit.org/show_bug.cgi?id=136474
2491         http://trac.webkit.org/changeset/173575
2492
2493 2014-09-12  Enrica Casucci  <enrica@apple.com>
2494
2495         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2496         https://bugs.webkit.org/show_bug.cgi?id=136474
2497
2498         Reviewed by Benjamin Poulain.
2499
2500         This is the updated version of the patch that was landed in r173340.
2501         I changed the use of IntPoint to FloatPoint since it was causing tests
2502         to fail.
2503         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2504         and removes the assumption that EAffinity values match NSSelectionAffinity
2505         values. It also removes the includes in TextAffinity.h, creating the need to
2506         include explicitly the files when necessary. It also removes the unnecessary
2507         use of platform specific types, replacing them with WebCore types.
2508
2509         * WebCoreSupport/WebEditorClient.h:
2510         (kit):
2511         (core):
2512         * WebView/WebFrameView.mm:
2513         (-[WebFrameView _scrollToBeginningOfDocument]):
2514         (-[WebFrameView _scrollToEndOfDocument]):
2515
2516 2014-09-11  Bear Travis  <betravis@adobe.com>
2517
2518         [CSS Font Loading] Enable CSS Font Loading on Mac
2519         https://bugs.webkit.org/show_bug.cgi?id=135473
2520
2521         Reviewed by Antti Koivisto.
2522
2523         Enable CSS Font Loading in FeatureDefines.
2524
2525         * Configurations/FeatureDefines.xcconfig:
2526
2527 2014-09-11  Beth Dakin  <bdakin@apple.com>
2528
2529         Support rubber-banding in sub-frames
2530         https://bugs.webkit.org/show_bug.cgi?id=136726
2531         -and corresponding-
2532         rdar://problem/10011924
2533
2534         Reviewed by Tim Horton.
2535
2536         rubberBandingForOverflowScrollEnabled is re-named to
2537         rubberBandingForSubScrollableRegionsEnabled
2538         * WebView/WebView.mm:
2539         (-[WebView _preferencesChanged:]):
2540
2541 2014-09-09  Benjamin Poulain  <bpoulain@apple.com>
2542
2543         Disable the "unreachable-code" warning
2544         https://bugs.webkit.org/show_bug.cgi?id=136677
2545
2546         Reviewed by Darin Adler.
2547
2548         * Configurations/Base.xcconfig:
2549
2550 2014-09-08  Maciej Stachowiak  <mjs@apple.com>
2551
2552         Fix 32-bit Mac build for new warnings
2553         https://bugs.webkit.org/show_bug.cgi?id=136624
2554
2555         Reviewed by Darin Adler.
2556         
2557         (Jessie already fixed this but my version with typedefs seems a tiny bit cleaner.)
2558
2559         * Carbon/HIViewAdapter.m:
2560         (+[HIViewAdapter bindHIViewToNSView:nsView:]): Need to use explicit casting now.
2561
2562 2014-09-08  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2563
2564         Remove FILTERS flag
2565         https://bugs.webkit.org/show_bug.cgi?id=136571
2566
2567         Reviewed by Darin Adler.
2568
2569         * Configurations/FeatureDefines.xcconfig:
2570
2571 2014-09-08  Jessie Berlin  <jberlin@apple.com>
2572
2573         32-bit build fix after r173364.
2574
2575         * Carbon/HIViewAdapter.m:
2576         (+[HIViewAdapter bindHIViewToNSView:nsView:]):
2577
2578 2014-09-08  Dan Bernstein  <mitz@apple.com>
2579
2580         Build fix.
2581
2582         Added back SPI that is still in use.
2583
2584         * Misc/WebNSURLExtras.h:
2585         * Misc/WebNSURLExtras.mm:
2586         (-[NSURL _webkit_URLByRemovingFragment]):
2587
2588 2014-09-08  Dan Bernstein  <mitz@apple.com>
2589
2590         iOS Simulator build fix.
2591
2592         * Misc/WebKitSystemBits.m:
2593         (WebMemorySize):
2594
2595 2014-09-07  Darin Adler  <darin@apple.com>
2596
2597         Fix build failure seen on Mountain Lion buildbot.
2598
2599         * Misc/WebNSDataExtras.h: Make WEB_GUESS_MIME_TYPE_PEEK_LENGTH an unsigned instead
2600         of an int, to avoid warning about mixing signs.
2601
2602 2014-09-06  Darin Adler  <darin@apple.com>
2603
2604         Make updates suggested by new version of Xcode
2605         https://bugs.webkit.org/show_bug.cgi?id=136603
2606
2607         Reviewed by Mark Rowe.
2608
2609         * Configurations/Base.xcconfig: Added CLANG_WARN_UNREACHABLE_CODE, COMBINE_HIDPI_IMAGES,
2610         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
2611
2612         * History/WebURLsWithTitles.m:
2613         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use NSUInteger instead of
2614         unsigned for correctness, and to quiet the 32-to-64-bit compiler warning (which is
2615         not turned on because it gives us too many false positives).
2616         * Misc/WebElementDictionary.mm:
2617         (-[WebElementDictionary objectForKey:]): Ditto.
2618         * Misc/WebNSDataExtras.m:
2619         (-[NSData _webkit_guessedMIMETypeForXML]): Ditto.
2620         (-[NSData _webkit_guessedMIMEType]): Ditto.
2621         (-[NSData _webkit_parseRFC822HeaderFields]): Ditto.
2622         (-[NSData _web_locationAfterFirstBlankLine]): Ditto.
2623
2624         * Misc/WebNSURLExtras.h: Removed unused _web_URLWithLowercasedScheme, _web_hostData,
2625         _webkit_URLByRemovingFragment, _webkit_URLByRemovingResourceSpecifier, _webkit_isFTPDirectoryURL,
2626         _webkit_shouldLoadAsEmptyDocument, _web_hostNameNeedsDecodingWithRange:,
2627         _web_hostNameNeedsEncodingWithRange:, _web_decodeHostNameWithRange:, _web_encodeHostNameWithRange:,
2628         and _webkit_URLFragment methods.
2629
2630         * Misc/WebNSURLExtras.mm:
2631         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Deleted.
2632         (-[NSURL _webkit_URLByRemovingFragment]): Deleted.
2633         (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Deleted.
2634         (-[NSURL _webkit_isFTPDirectoryURL]): Deleted.
2635         (-[NSURL _webkit_shouldLoadAsEmptyDocument]): Deleted.
2636         (-[NSURL _web_URLWithLowercasedScheme]): Deleted.
2637         (-[NSString _webkit_isFTPDirectoryURL]): Deleted.
2638         (-[NSString _web_hostNameNeedsDecodingWithRange:]): Deleted.
2639         (-[NSString _web_hostNameNeedsEncodingWithRange:]): Deleted.
2640         (-[NSString _web_decodeHostNameWithRange:]): Deleted.
2641         (-[NSString _web_encodeHostNameWithRange:]): Deleted.
2642         (-[NSString _webkit_URLFragment]): Deleted.
2643
2644         * Plugins/WebPluginDatabase.mm:
2645         (-[WebPluginDatabase removePluginInstanceViewsFor:]): Use a modern for loop
2646         to iterate an array instead of a loop using the type "unsigned int".
2647
2648         * WebCoreSupport/WebOpenPanelResultListener.mm:
2649         (-[WebOpenPanelResultListener chooseFilenames:]): Use NSUInteger instead of int.
2650
2651         * WebView/WebDelegateImplementationCaching.mm:
2652         (CallDelegate): Use wtfCallIMP in one overload that was instead just calling the
2653         directly without a proper type for the function pointer. This might have been causing
2654         an actual problem on 64-bit systems, and it was different from all the other CallDelegate
2655         functions that were already doing this correctly.
2656
2657         * WebView/WebTextCompletionController.mm:
2658         (-[WebTextCompletionController _placePopupWindow:]): Use NSUInteger instead of int.
2659
2660 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
2661
2662         Web Inspector: convert DockSide to an enum class
2663         https://bugs.webkit.org/show_bug.cgi?id=136601
2664
2665         Reviewed by Timothy Hatcher.
2666
2667         * WebCoreSupport/WebInspectorClient.mm:
2668         (WebInspectorFrontendClient::frontendLoaded):
2669         (-[WebInspectorWindowController attachWindow:]):
2670         (-[WebInspectorWindowController attach]):
2671         (-[WebInspectorWindowController detach]):
2672         * WebInspector/WebInspectorFrontend.mm:
2673         (-[WebInspectorFrontend attach]):
2674
2675 2014-09-05  Commit Queue  <commit-queue@webkit.org>
2676
2677         Unreviewed, rolling out r173340 and r173342.
2678         https://bugs.webkit.org/show_bug.cgi?id=136596
2679
2680         Broke many tests (Requested by ap on #webkit).
2681
2682         Reverted changesets:
2683
2684         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2685         https://bugs.webkit.org/show_bug.cgi?id=136474
2686         http://trac.webkit.org/changeset/173340
2687
2688         "Build fix after r173340."
2689         http://trac.webkit.org/changeset/173342
2690
2691 2014-09-05  Enrica Casucci  <enrica@apple.com>
2692
2693         Build fix after r173340.
2694
2695         * WebCoreSupport/WebEditorClient.h:
2696         (kit):
2697         (core):
2698
2699 2014-09-05  Enrica Casucci  <enrica@apple.com>
2700
2701         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2702         https://bugs.webkit.org/show_bug.cgi?id=136474
2703
2704         Reviewed by Benjamin Poulain.
2705
2706         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2707         and removes the assumption that EAffinity values match NSSelectionAffinity
2708         values. It also removes the includes in TextAffinity.h, creating the need to
2709         include explicitly the files when necessary. It also removes the unnecessary
2710         use of platform specific types, replacing them with WebCore types.
2711
2712         * WebCoreSupport/WebEditorClient.h: Added kit and core for EAffinity.
2713         * WebView/WebFrameView.mm:
2714         (-[WebFrameView _scrollToBeginningOfDocument]):
2715         (-[WebFrameView _scrollToEndOfDocument]):
2716
2717 2014-09-05  Daniel Bates  <dabates@apple.com>
2718
2719         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
2720         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2721
2722         Move #endif inside -viewDidMoveToWindow up one line such that the closing brace ('}') is after it.
2723
2724         * WebView/WebHTMLView.mm:
2725         (-[WebHTMLView viewDidMoveToWindow]):
2726
2727 2014-09-05  Daniel Bates  <dabates@apple.com>
2728
2729         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
2730         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2731
2732         Add !PLATFORM(IOS)-guard in -viewDidMoveToWindow around code that references WebHTMLViewPrivate.flagsChangedEventMonitor.
2733         The instance variable WebHTMLViewPrivate.flagsChangedEventMonitor is guarded by !PLATFORM(IOS).
2734
2735         * WebView/WebHTMLView.mm:
2736         (-[WebHTMLView viewDidMoveToWindow]):
2737
2738 2014-09-05  Daniel Bates  <dabates@apple.com>
2739
2740         [iOS] Fix the iOS build after <http://trac.webkit.org/changeset/173309>
2741         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2742
2743         Include more code inside the !PLATFORM(IOS)-guarded section in -setDataSource:.
2744
2745         * WebView/WebHTMLView.mm:
2746         (-[WebHTMLView setDataSource:]):
2747
2748 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
2749
2750         Use tracking areas instead of (SPI) mouse moved notifications, and follow flags changes with an event monitor
2751         https://bugs.webkit.org/show_bug.cgi?id=136564
2752
2753         Reviewed by Dan Bernstein.
2754         
2755         WebKit1 depended on mouse moved event notifications to track mouse
2756         moves, and on being specially called by Safari to track flags
2757         changes. WebKit2 does both these things better - it uses a tracking area
2758         and event monitors. Copy those approaches.
2759
2760         * WebKit.order: Remove reference to obsolete call.
2761         * WebView/WebHTMLView.mm:
2762         (-[WebHTMLViewPrivate dealloc]): No need to deallocate tracking
2763         area, since we now just always have one.
2764         (-[WebHTMLViewPrivate clear]): ditto
2765         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2766         New method that posts a fake mouse move event in response to
2767         a flags change event, for use by the event monitor.
2768         (+[WebHTMLView _postFlagsChangedEvent:]): Empty this old call,
2769         still kept around for benefit of older Safari.
2770         (-[WebHTMLView _updateMouseoverWithEvent:]): Handle Dashboard's
2771         special mouseover mode (previously handled in a weird way).
2772         (-[WebHTMLView close]): No more need to mess with mouse moved observer.
2773         (-[WebHTMLView viewWillMoveToWindow:]): ditto
2774         (-[WebHTMLView viewDidMoveToWindow]): ditto; but now hook up a flags
2775         changed monitor.
2776         (-[WebHTMLView windowDidBecomeKey:]): No need to handle non-key window
2777         tracking area or mouse moved observer.
2778         (-[WebHTMLView windowDidResignKey:]): ditto
2779         (-[WebHTMLView windowWillOrderOnScreen:]): No need to mess with mouse
2780         moved observer.
2781         (-[WebHTMLView windowWillOrderOffScreen:]): ditto
2782         (-[WebHTMLView mouseMoved:]): Converted from the old mouseMovedNotification:
2783         (-[WebHTMLView setDataSource:]): Change if around body to early return. Hook
2784         up tracking area - we have to do it here, because before this point, the
2785         WebHTMLView does not know its WebView, which is where dashboard settings
2786         live.
2787         (-[WebHTMLView _removeMouseMovedObserverUnconditionally]): Deleted.
2788         (-[WebHTMLView addMouseMovedObserver]): Deleted.
2789         (-[WebHTMLView removeMouseMovedObserver]): Deleted.
2790
2791 2014-09-04  Pratik Solanki  <psolanki@apple.com>
2792
2793         Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
2794         https://bugs.webkit.org/show_bug.cgi?id=136560
2795
2796         Reviewed by Joseph Pecoraro.
2797
2798         I removed the disk image caching code in r173265. However, we still have clients that call
2799         setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.
2800
2801         * WebView/WebPreferences.mm:
2802         (-[WebPreferences setDiskImageCacheEnabled:]):
2803         * WebView/WebPreferencesPrivate.h:
2804
2805 2014-09-03  Andy Estes  <aestes@apple.com>
2806
2807         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
2808         https://bugs.webkit.org/show_bug.cgi?id=136521
2809
2810         Reviewed by Anders Carlsson.
2811
2812         Taught MigrateHeaders.make to remove WEBCORE_EXPORT from headers using this sed expression:
2813
2814             s/(^ *)WEBCORE_EXPORT /\1/g
2815
2816         This removes WEBCORE_EXPORT and a single following space character but preserves preceeding spaces.
2817
2818         * MigrateHeaders.make:
2819
2820 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
2821
2822         Remove WebCoreSystemInterface glue for otherwise unused WKSI calls
2823         https://bugs.webkit.org/show_bug.cgi?id=136527
2824
2825         Reviewed by Alexey Proskuryakov.
2826
2827         * WebCoreSupport/WebSystemInterface.mm:
2828         (InitWebCoreSystemInterface):
2829
2830 2014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2831
2832         Remove CSS_FILTERS flag
2833         https://bugs.webkit.org/show_bug.cgi?id=136529
2834
2835         Reviewed by Dirk Schulze.
2836
2837         * Configurations/FeatureDefines.xcconfig:
2838
2839 2014-09-04  Pratik Solanki  <psolanki@apple.com>
2840
2841         Remove iOS specific disk image cache
2842         https://bugs.webkit.org/show_bug.cgi?id=136517
2843
2844         Reviewed by Antti Koivisto.
2845
2846         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
2847         this now since we don't enable it in WebKit2 on iOS.
2848
2849         * Misc/WebCache.mm:
2850         (+[WebCache statistics]):
2851         * WebView/WebDataSource.mm:
2852         (-[WebDataSource _setAllowToBeMemoryMapped]):
2853         (-[WebDataSource setDataSourceDelegate:]):
2854         (-[WebDataSource dataSourceDelegate]):
2855         (-[WebDataSource dealloc]):
2856         (BufferMemoryMapped): Deleted.
2857         * WebView/WebPreferenceKeysPrivate.h:
2858         * WebView/WebPreferences.mm:
2859         (+[WebPreferences initialize]):
2860         (-[WebPreferences diskImageCacheEnabled]): Deleted.
2861         (-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
2862         (-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
2863         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
2864         (-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
2865         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
2866         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
2867         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
2868         * WebView/WebPreferencesPrivate.h:
2869         * WebView/WebView.mm:
2870         (-[WebView _commonInitializationWithFrameName:groupName:]):
2871         (+[WebView _handleMemoryWarning]):
2872         (-[WebView _preferencesChanged:]):
2873
2874 2014-09-04  Daniel Bates  <dabates@apple.com>
2875
2876         [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
2877         https://bugs.webkit.org/show_bug.cgi?id=136494
2878
2879         Reviewed by Andy Estes.
2880
2881         * MigrateHeaders.make: Migrate header WebEventRegion.h only when ENABLE_IOS_TOUCH_EVENTS is defined.
2882         * WebView/WebView.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
2883
2884 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
2885
2886         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
2887         https://bugs.webkit.org/show_bug.cgi?id=136476
2888
2889         Reviewed by Timothy Hatcher.
2890
2891         * Misc/WebCoreStatistics.mm:
2892         (+[WebCoreStatistics shouldPrintExceptions]):
2893         (+[WebCoreStatistics setShouldPrintExceptions:]):
2894
2895 2014-09-03  Enrica Casucci  <enrica@apple.com>
2896
2897         Remove PLATFORM(IOS) from WebCore/editing (Part 1).
2898         https://bugs.webkit.org/show_bug.cgi?id=136474
2899
2900         Reviewed by Tim Horton.
2901
2902         * WebCoreSupport/WebEditorClient.mm:
2903         (undoNameForEditAction):
2904
2905 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
2906
2907         Clean up naming for and slightly refactor legacy video fullscreen support
2908         https://bugs.webkit.org/show_bug.cgi?id=136446
2909
2910         Reviewed by Jer Noble.
2911
2912         Key changes:
2913         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
2914         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
2915         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
2916         
2917         The old versions had unnecessary parameters, did not clearly distinguish their purpose
2918         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
2919         Also changed many other places to use HTMLVideoElement* instead of Node* or 
2920         HTMLMediaElement* when they were in fact only used for video elements and would only
2921         work for such.
2922
2923         * WebCoreSupport/WebChromeClient.h:
2924         * WebCoreSupport/WebChromeClient.mm:
2925         (WebChromeClient::supportsVideoFullscreen): Adjust for main refactoring.
2926         Also no more need to check for video elementness.
2927         (WebChromeClient::enterVideoFullscreenForVideoElement): Adjust for main refactoring.
2928         (WebChromeClient::exitVideoFullscreen): ditto
2929         * WebView/WebView.mm:
2930         (-[WebView _enterVideoFullscreenForVideoElement:]): Adjust for main
2931         refactoring.
2932         (-[WebView _exitVideoFullscreen]): ditto
2933         (-[WebView _close]): ditto
2934         * WebView/WebViewInternal.h:
2935
2936 2014-09-03  Dan Bernstein  <mitz@apple.com>
2937
2938         Get rid of HIGH_DPI_CANVAS leftovers
2939         https://bugs.webkit.org/show_bug.cgi?id=136491
2940
2941         Reviewed by Benjamin Poulain.
2942
2943         * Configurations/FeatureDefines.xcconfig: Removed definition of ENABLE_HIGH_DPI_CANVAS
2944         and removed it from FEATURE_DEFINES.
2945
2946 2014-08-31  Tim Horton  <timothy_horton@apple.com>
2947
2948         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
2949         https://bugs.webkit.org/show_bug.cgi?id=136416
2950
2951         Reviewed by Dan Bernstein.
2952
2953         * WebView/WebFrameView.mm:
2954         (-[WebFrameView drawRect:]):
2955         We only end up filling, so only set the fill color.
2956
2957 2014-08-26  Maciej Stachowiak  <mjs@apple.com>
2958
2959         Use RetainPtr::autorelease in some places where it seems appropriate
2960         https://bugs.webkit.org/show_bug.cgi?id=136280
2961
2962         Reviewed by Darin Adler.
2963
2964         * WebView/WebHTMLView.mm:
2965         (imageFromRect): Use RetainPtr in this function.
2966         * WebView/WebPDFRepresentation.mm:
2967         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Use RetainPtr
2968         in this method.
2969
2970 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
2971
2972         Unreviwed, remove empty directories.
2973
2974         * ForwardingHeaders/wtf: Removed.
2975
2976 2014-08-27  Zalan Bujtas  <zalan@apple.com>
2977
2978         Subpixel layout: Rename LayoutRect's device pixel snapping functions.
2979         https://bugs.webkit.org/show_bug.cgi?id=136319
2980
2981         Reviewed by Simon Fraser.
2982
2983         From pixelSnappedForPainting() to snapRectToDevicePixels() and 
2984         pixelSnappedIntRect*() to snappedIntRect*().
2985
2986         No change in functionality.
2987
2988         * WebView/WebView.mm:
2989         (-[WebView _dashboardRegions]):
2990         (-[WebView trackedRepaintRects]):
2991
2992 2014-08-25  Maciej Stachowiak  <mjs@apple.com>
2993
2994         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
2995         https://bugs.webkit.org/show_bug.cgi?id=136082
2996
2997         Reviewed by Alexey Proskuryakov.
2998
2999         * Plugins/Hosted/NetscapePluginHostManager.mm:
3000         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
3001         localization name using WebCore helper instead of SPI.
3002         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
3003         file.
3004         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
3005         localization name using WebCore helper instead of SPI.
3006         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
3007         helper no longer pulls its weight.
3008         * WebCoreSupport/WebSystemInterface.mm: 
3009         (InitWebCoreSystemInterface): Remove mention of
3010         WKCopyCFLocalizationPreferredName.
3011         * WebKit.order: ditto
3012
3013 2014-08-25  Daniel Bates  <dabates@apple.com>
3014
3015         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/172889>
3016         (https://bugs.webkit.org/show_bug.cgi?id=109658)
3017
3018         Substitute GraphicsLayer::setContentsToPlatformLayer(..., GraphicsLayer::ContentsLayerForMedia)
3019         for GraphicsLayer::setContentsToMedia(...) because the latter was removed in <http://trac.webkit.org/changeset/172889>.
3020
3021         * WebView/WebView.mm:
3022         (-[WebView _setMediaLayer:forPluginView:]):
3023
3024 2014-08-22  Commit Queue  <commit-queue@webkit.org>
3025
3026         Unreviewed, rolling out r172866.
3027         https://bugs.webkit.org/show_bug.cgi?id=136177
3028
3029         Broke iOS build (Requested by othermaciej on #webkit).
3030
3031         Reverted changeset:
3032
3033         "Replace use of WKCopyCFLocalizationPreferredName with
3034         NSLocale public API"
3035         https://bugs.webkit.org/show_bug.cgi?id=136082
3036         http://trac.webkit.org/changeset/172866
3037
3038 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
3039
3040         Implement paint flashing in the WK1 InspectorOverlay page
3041         https://bugs.webkit.org/show_bug.cgi?id=136138
3042
3043         Reviewed by Sam Weinig, Joseph Pecoraro.
3044
3045         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
3046         We avoid allocating backing store for this canvas until we have paint rects.
3047         
3048         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
3049         an array of rects, and pushes them to the page when they change, before forcing a paint.
3050         
3051         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
3052         WebKit WebInspectorClient, but don't yet implement paint flashing there.
3053
3054         * WebCoreSupport/WebInspectorClient.h:
3055         * WebCoreSupport/WebInspectorClient.mm:
3056         (WebInspectorClient::WebInspectorClient):
3057
3058 2014-08-20  Maciej Stachowiak  <mjs@apple.com>
3059
3060         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
3061         https://bugs.webkit.org/show_bug.cgi?id=136082
3062
3063         Reviewed by Alexey Proskuryakov.
3064
3065         * Plugins/Hosted/NetscapePluginHostManager.mm:
3066         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
3067         localization name using WebCore helper instead of SPI.
3068         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
3069         file.
3070         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
3071         localization name using WebCore helper instead of SPI.
3072         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
3073         helper no longer pulls its weight.
3074         * WebCoreSupport/WebSystemInterface.mm: 
3075         (InitWebCoreSystemInterface): Remove mention of
3076         WKCopyCFLocalizationPreferredName.
3077         * WebKit.order: ditto
3078
3079 2014-08-22  Daniel Bates  <dabates@apple.com>
3080
3081         [iOS] Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, and temporarily disable ENABLE_TOUCH_EVENTS
3082         and ENABLE_XSLT when building with the iOS public SDK
3083         https://bugs.webkit.org/show_bug.cgi?id=135945
3084
3085         Reviewed by Andy Estes.
3086
3087         * Configurations/FeatureDefines.xcconfig: Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, ENABLE_TOUCH_EVENTS
3088         and ENABLE_XSLT when building with the public SDK.
3089         * MigrateHeaders.make: Conditionally migrate headers for touch and gesture events.
3090
3091 2014-08-22  Jon Lee  <jonlee@apple.com>
3092
3093         Fix iOS build due to r172832 and move RUBBER_BANDING out of FeatureDefines.h
3094         https://bugs.webkit.org/show_bug.cgi?id=136157
3095
3096         Reviewed by Simon Fraser.
3097
3098         * Configurations/FeatureDefines.xcconfig: Add ENABLE(RUBBER_BANDING).
3099         * WebView/WebView.mm:
3100         (-[WebView _preferencesChanged:]): Wrap in ENABLE(RUBBER_BANDING).
3101
3102 2014-08-21  Zalan Bujtas  <zalan@apple.com>
3103
3104         Enable SATURATED_LAYOUT_ARITHMETIC.
3105         https://bugs.webkit.org/show_bug.cgi?id=136106
3106
3107         Reviewed by Simon Fraser.
3108
3109         SATURATED_LAYOUT_ARITHMETIC protects LayoutUnit against arithmetic overflow.
3110         (No measurable performance regression on Mac.)
3111
3112         * Configurations/FeatureDefines.xcconfig:
3113
3114 2014-08-21  Beth Dakin  <bdakin@apple.com>
3115
3116         overflow:scroll elements should support rubber-banding
3117         https://bugs.webkit.org/show_bug.cgi?id=91655
3118
3119         Reviewed by Sam Weinig and Darin Adler.
3120
3121         Disable rubber-banding in overflow areas for now.
3122         * WebView/WebView.mm:
3123         (-[WebView _preferencesChanged:]):
3124
3125 2014-08-19  Pratik Solanki  <psolanki@apple.com>
3126
3127         Remove PurgeableBuffer since it is not very useful any more
3128         https://bugs.webkit.org/show_bug.cgi?id=135939
3129
3130         Reviewed by Andreas Kling.
3131
3132         * Misc/WebCache.mm:
3133         (+[WebCache statistics]):
3134
3135 2014-08-19  Zalan Bujtas  <zalan@apple.com>
3136
3137         Remove ENABLE(SUBPIXEL_LAYOUT).
3138         https://bugs.webkit.org/show_bug.cgi?id=136077
3139
3140         Reviewed by Simon Fraser.
3141
3142         Remove compile time flag SUBPIXEL_LAYOUT. All ports have it enabled for a while now.
3143
3144         * Configurations/FeatureDefines.xcconfig:
3145
3146 2014-08-18  Maciej Stachowiak  <mjs@apple.com>
3147
3148         Use NSURLFileTypeMappings directly instead of depending on WebKitSystemInterface wrappers for it
3149         https://bugs.webkit.org/show_bug.cgi?id=136035
3150
3151         Reviewed by Dan Bernstein.
3152
3153         * Misc/WebNSViewExtras.m:
3154         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Remove comment
3155         reference to obsolete WKSI function.
3156         * WebCoreSupport/WebSystemInterface.mm:
3157         (InitWebCoreSystemInterface): Don't initialize the no-longer-used WKGetExtensionsForMIMEType,
3158         WKGetPreferredExtensionForMIMEType, or WKGetMIMETypeForExtension
3159         * Plugins/WebPluginDatabase.mm:
3160         (-[WebPluginDatabase pluginForExtension:]): Include SPI header from WebCore; use
3161         NSURLFileTypeMappings directly instead of via WKSI wrapper.
3162         * WebCoreSupport/WebFrameLoaderClient.mm:
3163         (WebFrameLoaderClient::objectContentType): ditto
3164         * WebView/WebHTMLView.mm:
3165         (-[WebHTMLView _imageExistsAtPaths:]): ditto
3166         * WebView/WebView.mm:
3167         (+[WebView _supportedFileExtensions]): ditto
3168         (+[WebView suggestedFileExtensionForMIMEType:]): ditto
3169         (+[WebView _MIMETypeForFile:]): ditto
3170
3171 2014-08-18  Commit Queue  <commit-queue@webkit.org>
3172
3173         Unreviewed, rolling out r172736.
3174         https://bugs.webkit.org/show_bug.cgi?id=136060
3175
3176         Caused 14% PLT regressions (Requested by rniwa on #webkit).
3177
3178         Reverted changeset:
3179
3180         "Remove PurgeableBuffer since it is not very useful any more"
3181         https://bugs.webkit.org/show_bug.cgi?id=135939
3182         http://trac.webkit.org/changeset/172736
3183
3184 2014-08-18  Pratik Solanki  <psolanki@apple.com>
3185
3186         Remove PurgeableBuffer since it is not very useful any more
3187         https://bugs.webkit.org/show_bug.cgi?id=135939
3188
3189         Reviewed by Geoffrey Garen.
3190
3191         * Misc/WebCache.mm:
3192         (+[WebCache statistics]):
3193
3194 2014-08-18  Andy Estes  <aestes@apple.com>
3195
3196         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
3197         https://bugs.webkit.org/show_bug.cgi?id=136010
3198
3199         Reviewed by Darin Adler.
3200
3201         * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
3202         * WebView/WebPDFView.mm:
3203         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest.
3204         * WebView/WebView.mm:
3205         (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary.
3206
3207 2014-08-18  Andy Estes  <aestes@apple.com>
3208
3209         Revert r172697.
3210
3211         It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
3212
3213         * Misc/WebKitVersionChecks.h:
3214         * WebView/WebView.mm:
3215         (-[WebView _preferencesChanged:]):
3216
3217 2014-08-15  Andy Estes  <aestes@apple.com>
3218
3219         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
3220         https://bugs.webkit.org/show_bug.cgi?id=136010
3221
3222         Reviewed by Darin Adler.
3223
3224         Reverted the linked-on-or-after check added in r170120 since it is no longer necessary.
3225
3226         * Misc/WebKitVersionChecks.h:
3227         * WebView/WebView.mm:
3228         (-[WebView _preferencesChanged:]):
3229
3230 2014-08-16  Maciej Stachowiak  <mjs@apple.com>
3231
3232         Remove the obsolete WebKitEnableCoalescedUpdatesPreferenceKey
3233         https://bugs.webkit.org/show_bug.cgi?id=136024
3234
3235         Reviewed by Filip Pizlo.
3236
3237         * WebView/WebFrameView.mm:
3238         (-[WebFrameView initWithFrame:]): Remove code that respects
3239         this key. It was SPI and is no longer used; also it was
3240         only relevant for versions of OS X that WebKit no longer supports.
3241         * WebView/WebPreferenceKeysPrivate.h: Remove declaration.
3242
3243 2014-08-15  Daniel Bates  <dabates@apple.com>
3244
3245         [iOS] Teach postprocess-headers.sh to remove code guarded by ENABLE_IOS_GESTURE_EVENTS
3246         and ENABLE_TOUCH_EVENTS if applicable
3247         https://bugs.webkit.org/show_bug.cgi?id=135993
3248
3249         Reviewed by Andy Estes.
3250
3251         Add support infrastructure to remove code from public and private API headers that is
3252         guarded by macro define ENABLE_{IOS_GESTURE, TOUCH}_EVENTS when these features are disabled.
3253
3254         We aren't using this functionality yet, but we will soon.
3255
3256         * postprocess-headers.sh:
3257
3258 2014-08-13  Wenson Hsieh  <wenson_hsieh@apple.com>
3259
3260         Enable CSS_SCROLL_SNAP for iOS
3261         https://bugs.webkit.org/show_bug.cgi?id=135915
3262
3263         Turn on CSS_SCROLL_SNAP for iOS and the iOS simulator.
3264
3265         Reviewed by Tim Horton.
3266
3267         * Configurations/FeatureDefines.xcconfig:
3268
3269 2014-08-13  Mark Rowe  <mrowe@apple.com>
3270
3271         <https://webkit.org/b/135911> WebKit should build on Yosemite with the public SDK.
3272
3273         Reviewed by Darin Adler.
3274
3275         * Misc/WebSharingServicePickerController.mm: Forward-declare some details related to NSSharingServicePicker.
3276
3277 2014-08-13  Timothy Hatcher  <timothy@apple.com>
3278
3279         Web Inspector: Workaround a NSWindow change to the title bar.
3280         https://bugs.webkit.org/show_bug.cgi?id=135880
3281
3282         Reviewed by Joseph Pecoraro.
3283
3284         * WebCoreSupport/WebInspectorClient.mm:
3285         (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier.
3286         (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier.
3287         (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10.
3288         Only call border thickness APIs on 10.9 and earlier.
3289
3290 2014-08-12  Peyton Randolph  <prandolph@apple.com>
3291
3292         Runtime switch for long mouse press gesture. Part of 135257 - Add long mouse press gesture.           
3293         https://bugs.webkit.org/show_bug.cgi?id=135682
3294
3295         Reviewed by Tim Horton.
3296
3297         * Configurations/FeatureDefines.xcconfig:
3298         Remove LONG_MOUSE_PRESS feature flag.
3299
3300 2014-08-11  Andy Estes  <aestes@apple.com>
3301
3302         [iOS] Get rid of iOS.xcconfig
3303         https://bugs.webkit.org/show_bug.cgi?id=135809
3304
3305         Reviewed by Joseph Pecoraro.
3306
3307         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
3308
3309         * Configurations/Base.xcconfig:
3310         * Configurations/iOS.xcconfig: Removed.
3311
3312 2014-08-10  Timothy Hatcher  <timothy@apple.com>
3313
3314         Web Inspector: new glyphs are visible on OS X 10.9 builds
3315         https://bugs.webkit.org/show_bug.cgi?id=135743
3316
3317         Reviewed by Joseph Pecoraro.
3318
3319         * WebCoreSupport/WebInspectorClient.mm:
3320         (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version.
3321
3322 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
3323
3324         Get rid of SCRIPTED_SPEECH
3325         https://bugs.webkit.org/show_bug.cgi?id=135729
3326
3327         Reviewed by Brent Fulgham.
3328
3329         * Configurations/FeatureDefines.xcconfig:
3330
3331 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
3332
3333         Get rid of INPUT_SPEECH
3334         https://bugs.webkit.org/show_bug.cgi?id=135672
3335
3336         Reviewed by Andreas Kling.
3337
3338         * Configurations/FeatureDefines.xcconfig:
3339
3340 2014-08-07  Timothy Hatcher  <timothy@apple.com>
3341
3342         Web Inspector: Update glyphs to be more like Xcode 6
3343         https://bugs.webkit.org/show_bug.cgi?id=135705
3344
3345         Reviewed by Joseph Pecoraro.
3346
3347         * Resources/Dock.pdf: Added.
3348         * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf.
3349         * WebCoreSupport/WebInspectorClient.mm:
3350         (-[WebInspectorWindowController window]): Use new images.
3351
3352 2014-08-06  Dean Jackson  <dino@apple.com>
3353
3354         ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED is not used anywhere. Remove it.
3355         https://bugs.webkit.org/show_bug.cgi?id=135675
3356
3357         Reviewed by Sam Weinig.
3358
3359         * Configurations/FeatureDefines.xcconfig:
3360
3361 2014-08-06  Wenson Hsieh  <wenson_hsieh@apple.com>
3362
3363         Implement parsing for CSS scroll snap points
3364         https://bugs.webkit.org/show_bug.cgi?id=134301
3365
3366         Reviewed by Dean Jackson.
3367
3368         * Configurations/FeatureDefines.xcconfig: Added ENABLE_CSS_SCROLL_SNAP
3369
3370 2014-08-06  Alexey Proskuryakov  <ap@apple.com>
3371
3372         REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language
3373         https://bugs.webkit.org/show_bug.cgi?id=135667
3374         <rdar://problem/17862892>
3375
3376         Reviewed by Anders Carlsson.
3377
3378         * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
3379         Moved implementation to WebCore, so that it can be shared with WebKit2.
3380
3381         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
3382         We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized.
3383
3384 2014-08-05  Peyton Randolph  <prandolph@apple.com>
3385
3386         Rename MAC_LONG_PRESS feature flag to LONG_MOUSE_PRESS.
3387         https://bugs.webkit.org/show_bug.cgi?id=135276
3388
3389         Reviewed by Beth Dakin.
3390
3391         * Configurations/FeatureDefines.xcconfig:
3392
3393 2014-08-04  Benjamin Poulain  <benjamin@webkit.org>
3394
3395         Add a flag for the CSS Selectors level 4 implementation
3396         https://bugs.webkit.org/show_bug.cgi?id=135535
3397
3398         Reviewed by Andreas Kling.
3399
3400         * Configurations/FeatureDefines.xcconfig:
3401
3402 2014-08-04  Benjamin Poulain  <bpoulain@apple.com>
3403
3404         Check for null frame when processing geolocation authorization request
3405         https://bugs.webkit.org/show_bug.cgi?id=135577
3406         <rdar://problem/17896295>
3407
3408         Reviewed by Geoffrey Garen.
3409
3410         * WebCoreSupport/WebGeolocationClient.mm:
3411         (WebGeolocationClient::requestPermission):
3412
3413 2014-08-02  Jeremy Jones  <jeremyj@apple.com>
3414
3415         Support both window and view based video fullscreen.
3416         https://bugs.webkit.org/show_bug.cgi?id=135525
3417
3418         Reviewed by Simon Fraser.
3419
3420         Parenting in the view instead of the window gives the fullscreen implementation more latitude 
3421         in how it implements the animation.
3422
3423         * WebView/WebView.mm:
3424         (-[WebView _enterFullscreenForNode:]): Use view instead of window.
3425
3426 2014-08-01  Dan Bernstein  <mitz@apple.com>
3427
3428         <rdar://problem/17891752> [iOS] WebKit links against libraries it doesn’t use
3429         https://bugs.webkit.org/show_bug.cgi?id=135536
3430
3431         Reviewed by Tim Horton.
3432
3433         * Configurations/WebKitLegacy.xcconfig: Removed -framework MobileAsset from
3434         OTHER_LDFLAGS_iphoneos.
3435
3436 2014-07-30  Andy Estes  <aestes@apple.com>
3437
3438         USE(CONTENT_FILTERING) should be ENABLE(CONTENT_FILTERING)
3439         https://bugs.webkit.org/show_bug.cgi?id=135439
3440
3441         Reviewed by Tim Horton.
3442
3443         We now support two different platform content filters, and will soon support a mock content filter (as part of
3444         webkit.org/b/128858). This makes content filtering a feature of WebKit, not just an adoption of a third-party
3445         library. ENABLE() is the correct macro to use for such a feature.
3446
3447         * Configurations/FeatureDefines.xcconfig:
3448
3449 2014-07-30  Andreas Kling  <akling@apple.com>
3450
3451         Static hash tables no longer need to be coupled with a VM.
3452         <https://webkit.org/b/135421>
3453
3454         Reviewed by Geoffrey Garen.
3455
3456         * Plugins/Hosted/ProxyInstance.mm:
3457         * Plugins/Hosted/ProxyRuntimeObject.mm:
3458
3459 2014-07-30  Dan Bernstein  <mitz@apple.com>
3460
3461         Updated for changes to the WebCore::Credential API.
3462         Work towards fixing https://bugs.webkit.org/show_bug.cgi?id=135327
3463
3464         Reviewed by Alexey Proskuryakov.
3465
3466         * Misc/WebDownload.mm:
3467         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Use new nsCredential
3468         getter.
3469         * Plugins/WebBaseNetscapePluginView.mm:
3470         (WebKit::getAuthenticationInfo): Ditto.
3471
3472 2014-07-27  Pratik Solanki  <psolanki@apple.com>
3473
3474         Remove unused preference keys
3475         https://bugs.webkit.org/show_bug.cgi?id=135280
3476
3477         Reviewed by Darin Adler.
3478
3479         * WebView/WebPreferenceKeysPrivate.h:
3480         * WebView/WebPreferences.mm:
3481         (+[WebPreferences initialize]):
3482         (-[WebPreferences _setPageCacheSize:]): Deleted.
3483         (-[WebPreferences _pageCacheSize]): Deleted.
3484         (-[WebPreferences _setObjectCacheSize:]): Deleted.
3485         (-[WebPreferences _objectCacheSize]): Deleted.
3486         * WebView/WebPreferencesPrivate.h:
3487
3488 2014-07-27  Filip Pizlo  <fpizlo@apple.com>
3489
3490         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
3491
3492     2014-07-25  Mark Lam  <mark.lam@apple.com>
3493     
3494             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
3495             <https://webkit.org/b/134273>
3496     
3497             Reviewed by Michael Saboff.
3498     
3499             * WebView/WebScriptDebugDelegate.mm:
3500             - Removed unneeded #include.
3501     
3502 2014-07-26  Filip Pizlo  <fpizlo@apple.com>
3503
3504         Unreviewed, roll out r171641-r171644. It broke some tests; will investigate and
3505         reland later.
3506
3507         * WebView/WebScriptDebugDelegate.mm:
3508
3509 2014-07-25  Filip Pizlo  <fpizlo@apple.com>
3510
3511         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
3512
3513     2014-07-25  Mark Lam  <mark.lam@apple.com>
3514     
3515             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
3516             <https://webkit.org/b/134273>
3517     
3518             Reviewed by Michael Saboff.
3519     
3520             * WebView/WebScriptDebugDelegate.mm:
3521             - Removed unneeded #include.
3522     
3523 2014-07-25  Jeremy Jones  <jeremyj@apple.com>
3524
3525         Parent fullscreen from window instead of view
3526         https://bugs.webkit.org/show_bug.cgi?id=135310
3527
3528         Reviewed by Jer Noble.
3529
3530         Parenting in the view causes an incorrect animation to fullscreen, and can cause 
3531         fullscreen to only expand to the size of the view instead of the whole window.
3532
3533         * WebView/WebView.mm:
3534         (-[WebView _enterFullscreenForNode:]): Pass window instead of view.
3535
3536 2014-07-24  Pratik Solanki  <psolanki@apple.com>
3537
3538         [iOS] Remove prefs to tweak cache values
3539         https://bugs.webkit.org/show_bug.cgi?id=135274
3540         <rdar://problem/17784826>
3541
3542         Reviewed by Alexey Proskuryakov.
3543
3544         Remove iOS specific code that used to look up user defaults to see if any cache values were
3545         overridden. This was added for testing, is not used any more and is actually harmful now. It
3546         can cause unnecessary memory churn when under memory pressure since we call [WebView _setCacheModel]
3547         as a means to clear out memory cache.
3548
3549         * WebView/WebPreferenceKeysPrivate.h:
3550         * WebView/WebPreferences.mm:
3551         (+[WebPreferences initialize]):
3552         (-[WebPreferences _setNSURLMemoryCacheSize:]): Deleted.
3553         (-[WebPreferences _NSURLMemoryCacheSize]): Deleted.
3554         (-[WebPreferences _setNSURLDiskCacheSize:]): Deleted.
3555         (-[WebPreferences _NSURLDiskCacheSize]): Deleted.
3556         * WebView/WebPreferencesPrivate.h:
3557         * WebView/WebView.mm:
3558         (+[WebView _setCacheModel:]):
3559
3560 2014-07-24  Peyton Randolph  <prandolph@apple.com>
3561
3562         Rename feature flag for long-press gesture on Mac.                                                                   
3563         https://bugs.webkit.org/show_bug.cgi?id=135259       &