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