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