6a4aac252925256943506c0e7c98337cc75b6986
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-11-10  Beth Dakin  <bdakin@apple.com>
2
3         WK1: Support default actions for editable text
4         https://bugs.webkit.org/show_bug.cgi?id=138580
5         -and corresponding-
6         rdar://problem/18877497
7
8         Reviewed by Tim Horton.
9
10         New menu type, and new action type for paste. 
11
12         * WebView/WebActionMenuController.mm:
13         (-[WebActionMenuController isMenuForTextContent]):
14         (-[WebActionMenuController willOpenMenu:withEvent:]):
15         (-[WebActionMenuController _defaultMenuItemsForEditableText:]):
16         (-[WebActionMenuController _paste:]):
17         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
18         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
19         * WebView/WebUIDelegatePrivate.h:
20
21 2014-11-10  Beth Dakin  <bdakin@apple.com>
22
23         WK1: Text is getting selected even when an action menu fails to invoke
24         https://bugs.webkit.org/show_bug.cgi?id=138576
25         -and corresponding-
26         rdar://problem/18931330
27
28         Reviewed by Tim Horton.
29
30         Selection changes should happen in willOpenMenu: instead of prepareForMenu:
31         * WebView/WebActionMenuController.h:
32         * WebView/WebActionMenuController.mm:
33         (-[WebActionMenuController prepareForMenu:withEvent:]):
34         (-[WebActionMenuController willOpenMenu:withEvent:]):
35
36         _selectLookupText no longer needs to return a BOOL indicating success or failure.
37         (-[WebActionMenuController _selectLookupText]):
38         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
39
40         Pass willOpenMenu: on to the controller.
41         * WebView/WebView.mm:
42         (-[WebView willOpenMenu:withEvent:]):
43
44 2014-11-10  Beth Dakin  <bdakin@apple.com>
45
46         Speculative build fix.
47
48         * WebView/WebActionMenuController.mm:
49
50 2014-11-10  Beth Dakin  <bdakin@apple.com>
51
52         Action menu initialization should be moved to _commonInitializationWithFrameName
53         https://bugs.webkit.org/show_bug.cgi?id=138572
54         -and corresponding-
55         rdar://problem/18929733
56
57         Reviewed by Tim Horton.
58
59         * WebView/WebView.mm:
60         (-[WebView _commonInitializationWithFrameName:groupName:]):
61         (-[WebView _initWithFrame:frameName:groupName:]):
62
63 2014-11-10  Beth Dakin  <bdakin@apple.com>
64
65         WK1: Support default actions for read-only text
66         https://bugs.webkit.org/show_bug.cgi?id=138552
67         -and corresponding-
68         rdar://problem/18877483
69
70         Reviewed by Tim Horton.
71
72         New WKSystemInterface functions that WebCore needs to use.
73         * WebCoreSupport/WebSystemInterface.mm:
74         (InitWebCoreSystemInterface):
75
76         WebActionMenuController now keeps an ivar for the WebCore::HitTestResult. This 
77         makes a lot of things easier.
78         * WebView/WebActionMenuController.h:
79         * WebView/WebActionMenuController.mm:
80
81         Perform the hit test ourselves instead of calling into WebView so that we can more 
82         easily save the WebCore::HitTestResult for ourselves.
83         (-[WebActionMenuController performHitTestAtPoint:]):
84
85         Clear selection for non-text menus.
86         (-[WebActionMenuController prepareForMenu:withEvent:]):
87
88         Re-set the _type here just to be safe.
89         (-[WebActionMenuController didCloseMenu:withEvent:]):
90
91         Moving this method to be next to the link actions so they can be within a pragma 
92         mark.
93         (-[WebActionMenuController _defaultMenuItemsForLink:]):
94
95         New method for default text actions — lookup and copy.
96         (-[WebActionMenuController _defaultMenuItemsForText:]):
97         (-[WebActionMenuController _copySelection:]):
98         (-[WebActionMenuController _lookupText:]):
99
100         If there is not already a selection, invoking the action menu on text should 
101         select the lookup text.
102         (-[WebActionMenuController _selectLookupText]):
103         (performDictionaryLookupForSelection):
104         (performDictionaryLookupForRange):
105
106         Handle text now.
107         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
108         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
109
110         New enum values.
111         * WebView/WebUIDelegatePrivate.h:
112
113         Pass didCloseMenu on to the controller.
114         * WebView/WebView.mm:
115         (-[WebView didCloseMenu:withEvent:]):
116
117 2014-11-09  Chris Dumez  <cdumez@apple.com>
118
119         Add a more correct way to compare floating point numbers and use it
120         https://bugs.webkit.org/show_bug.cgi?id=138527
121
122         Reviewed by Darin Adler.
123
124         Use the new WTF::areEssentuallyEqual() utility function from MathExtras.h
125         to compare floating-point numbers.
126
127         * WebView/WebHTMLView.mm:
128         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
129
130 2014-11-08  Alexey Proskuryakov  <ap@apple.com>
131
132         Delete cookies between tests
133         https://bugs.webkit.org/show_bug.cgi?id=138528
134
135         Reviewed by Sam Weinig.
136
137         * WebView/WebPreferences.mm: (+[WebPreferences _clearNetworkLoaderSession]):
138         * WebView/WebPreferencesPrivate.h:
139         Added an SPI for DumpRenderTree.
140
141 2014-11-07  Eric Carlson  <eric.carlson@apple.com>
142
143         [iOS] Update optimized fullscreen media controls
144         https://bugs.webkit.org/show_bug.cgi?id=138493
145
146         Reviewed by Brent Fulgham.
147
148         * WebCoreSupport/WebSystemInterface.mm:
149         (InitWebCoreSystemInterface): Initialize GetMediaUIImageData.
150
151 2014-11-06  Daniel Jalkut  <jalkut@red-sweater.com>
152
153         Wrap the bulk of -[WebView dealloc] with an autorelease pool.
154         https://bugs.webkit.org/show_bug.cgi?id=138443
155
156         Reviewed by Anders Carlsson.
157
158         Wrapping the dealloc method in its own autorelease pool avoids the problem of
159         complex tear-downs leading to the WebView itself being added to an autorelease
160         pool that is not drained until after the instance has been dealloc'd.
161  
162         * WebView/WebView.mm:
163         (-[WebView dealloc]):
164
165 2014-11-05  Jer Noble  <jer.noble@apple.com>
166
167         De-templatize Timer
168         https://bugs.webkit.org/show_bug.cgi?id=138450
169
170         Reviewed by Anders Carlsson.
171
172         Remove template specifiers from Timer.
173
174         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
175         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
176         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
177         * Plugins/WebNetscapePluginStream.h:
178         * Plugins/WebNetscapePluginStream.mm:
179         (WebNetscapePluginStream::deliverDataTimerFired):
180
181 2014-11-05  Dan Bernstein  <mitz@apple.com>
182
183         Remove the unused deletion UI feature
184         https://bugs.webkit.org/show_bug.cgi?id=138442
185
186         Rubber-stamped by Alexey Proskuryakov.
187
188         * DefaultDelegates/WebDefaultEditingDelegate.m:
189         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]): Deleted.
190         * WebCoreSupport/WebEditorClient.h:
191         * WebCoreSupport/WebEditorClient.mm:
192         (WebEditorClient::shouldShowDeleteInterface): Deleted.
193         * WebView/WebEditingDelegatePrivate.h: Removed declaration of
194         -webView:shouldShowDeleteInterfaceForElement:.
195
196 2014-11-03  Dean Jackson  <dino@apple.com>
197
198         Add ENABLE_FILTERS_LEVEL_2 feature guard.
199         https://bugs.webkit.org/show_bug.cgi?id=138362
200
201         Reviewed by Tim Horton.
202
203         Add a new feature define for Level 2 of CSS Filters.
204         http://dev.w3.org/fxtf/filters-2/
205
206         * Configurations/FeatureDefines.xcconfig:
207
208 2014-11-03  Jeremy Jones  <jeremyj@apple.com>
209
210         Add button and enable optimized fullscreen.
211         https://bugs.webkit.org/show_bug.cgi?id=138351
212
213         Reviewed by Eric Carlson.
214
215         Add IsOptimizedFullscreenSupported to enable the feature only where appropriate.
216
217         * WebCoreSupport/WebSystemInterface.mm:
218         (InitWebCoreSystemInterface): added
219
220 2014-11-04  Chris Dumez  <cdumez@apple.com>
221
222         Add ptr() method to Ref class
223         https://bugs.webkit.org/show_bug.cgi?id=138361
224
225         Reviewed by Darin Adler.
226
227         Use the new Ref::ptr() method.
228
229         * WebView/WebFrame.mm:
230         (-[WebFrame _setTypingStyle:withUndoAction:]):
231         * WebView/WebHTMLView.mm:
232         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
233         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
234         * WebView/WebView.mm:
235         (-[WebView applyStyle:]):
236
237 2014-11-04  Darin Adler  <darin@apple.com>
238
239         Eliminate ResourceBuffer and use SharedBuffer directly instead
240         https://bugs.webkit.org/show_bug.cgi?id=138174
241
242         Reviewed by Antti Koivisto.
243
244         * WebView/WebDataSource.mm:
245         (-[WebDataSource data]): Use SharedBuffer directly.
246         * WebView/WebHTMLView.mm:
247         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
248
249 2014-11-03  Commit Queue  <commit-queue@webkit.org>
250
251         Unreviewed, rolling out r175406, r175413, and r175423.
252         https://bugs.webkit.org/show_bug.cgi?id=138327
253
254         Multipart tests are still broken (Requested by ap on #webkit).
255
256         Reverted changesets:
257
258         "Eliminate ResourceBuffer and use SharedBuffer directly
259         instead"
260         https://bugs.webkit.org/show_bug.cgi?id=138174
261         http://trac.webkit.org/changeset/175406
262
263         "Unreviewed, iOS build fix since 175406."
264         http://trac.webkit.org/changeset/175413
265
266         "Fix assertion in CachedResource::addDataBuffer"
267         http://trac.webkit.org/changeset/175423
268
269 2014-10-31  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
270
271         Use std::unique_ptr for TypeCountSet
272         https://bugs.webkit.org/show_bug.cgi?id=138242
273
274         Reviewed by Andreas Kling.
275
276         * Misc/WebCoreStatistics.mm:
277         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): Use std::unique_ptr<> instead of OwnPtr.
278         (+[WebCoreStatistics javaScriptObjectTypeCounts]): ditto.
279
280 2014-10-31  Beth Dakin  <bdakin@apple.com>
281
282         Use system art for action menus when possible
283         https://bugs.webkit.org/show_bug.cgi?id=138260
284
285         Reviewed by Tim Horton.
286
287         * WebView/WebActionMenuController.mm:
288         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
289
290 2014-10-30  Darin Adler  <darin@apple.com>
291
292         Eliminate ResourceBuffer and use SharedBuffer directly instead
293         https://bugs.webkit.org/show_bug.cgi?id=138174
294
295         Reviewed by Antti Koivisto.
296
297         * WebView/WebDataSource.mm:
298         (-[WebDataSource data]): Use SharedBuffer directly.
299         * WebView/WebHTMLView.mm:
300         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
301
302 2014-10-30  Jer Noble  <jer.noble@apple.com>
303
304         [EME] Add Setting for accessing storage location for MediaKeys data
305         https://bugs.webkit.org/show_bug.cgi?id=138147
306
307         Reviewed by Brady Eidson.
308
309         * WebView/WebPreferenceKeysPrivate.h:
310         * WebView/WebPreferences.mm:
311         (+[WebPreferences initialize]): Set default location.
312         (-[WebPreferences mediaKeysStorageDirectory]): Simple accessor.
313         (-[WebPreferences setMediaKeysStorageDirectory:]): Simple setter.
314         * WebView/WebPreferencesPrivate.h:
315         * WebView/WebView.mm:
316         (-[WebView _preferencesChanged:]): Pass location from WebPreferences into Settings.
317
318 2014-10-30  Dana Burkart  <dburkart@apple.com>
319
320         <rdar://problem/18821260> Prepare for the mysterious future
321
322         Reviewed by Lucas Forschler.
323
324         * Configurations/Base.xcconfig:
325         * Configurations/DebugRelease.xcconfig:
326         * Configurations/FeatureDefines.xcconfig:
327         * Configurations/Version.xcconfig:
328
329 2014-10-28  Jeremy Jones  <jeremyj@apple.com>
330
331         Add optimized fullscreen mode.
332         https://bugs.webkit.org/show_bug.cgi?id=138044
333
334         Reviewed by Jer Noble.
335
336         Enable different types of fullscreen video behavior.
337         Add an enum parameter to enterVideoFullscreenForVideoElement for alternate types of fullscreen.
338
339         * WebCoreSupport/WebChromeClient.h: Add fullscreenType parameter
340         * WebCoreSupport/WebChromeClient.mm:
341         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
342         * WebView/WebView.mm:
343         (-[WebView _enterVideoFullscreenForVideoElement:type:]): ditto
344         (-[WebView _enterVideoFullscreenForVideoElement:]): Deleted.
345         * WebView/WebViewInternal.h: ditto
346
347 2014-10-27  Beth Dakin  <bdakin@apple.com>
348
349         Provide a way for WebKit1 clients to override default action menu items
350         https://bugs.webkit.org/show_bug.cgi?id=138066
351         -and corresponding-
352         rdar://problem/18451638
353
354         Reviewed by Anders Carlsson.
355
356         WebActionMenuController now has an ivar for the WebActionMenuType so that it can 
357         send that along to clients customizing the menu.
358         * WebView/WebActionMenuController.h:
359         * WebView/WebActionMenuController.mm:
360         (-[WebActionMenuController prepareForMenu:withEvent:]):
361         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
362
363         New enum and new SPI to customize menus.
364         * WebView/WebUIDelegatePrivate.h:
365
366 2014-10-24  Benjamin Poulain  <bpoulain@apple.com>
367
368         Fix the iOS build
369
370         * Configurations/WebKitLegacy.xcconfig:
371         * WebView/WebView.mm:
372
373 2014-10-24  Beth Dakin  <bdakin@apple.com>
374
375         Build fix.
376
377         * WebView/WebActionMenuController.mm:
378         (-[WebActionMenuController _openURLFromActionMenu:]):
379         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
380         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
381
382 2014-10-24  Beth Dakin  <bdakin@apple.com>
383
384         WebKit1 should support action menus
385         https://bugs.webkit.org/show_bug.cgi?id=138032
386
387         Reviewed by Tim Horton.
388
389         This patch adds basic support for action menus and adds actions for links.
390
391         Helper class takes care of all of the action menu work. WebView will forward the 
392         prepareForMenu: message, and then the helper class takes it from there.
393         * WebView/WebActionMenuController.h: Added.
394         * WebView/WebActionMenuController.mm: Added.
395         (-[WebActionMenuController webViewClosed]):
396         (-[WebActionMenuController prepareForMenu:withEvent:]):
397
398         Selectors for link actions.
399         (-[WebActionMenuController _openURLFromActionMenu:]):
400         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
401         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]):
402         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
403         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
404         (webKitBundleImageNamed):
405         (-[WebActionMenuController _defaultMenuItemsForLink:]):
406         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
407
408         Tags for the action menu items.
409         * WebView/WebUIDelegatePrivate.h:
410         * WebView/WebView.mm:
411
412         Set the action menu if possible and create the controller.
413         (-[WebView _initWithFrame:frameName:groupName:]):
414         (-[WebView _close]):
415         (-[WebView prepareForMenu:withEvent:]):
416
417         WebViewData stores the WebActionMenuHelper
418         * WebView/WebViewData.h:
419         * WebView/WebViewData.mm:
420         (-[WebViewPrivate dealloc]):
421
422 2014-10-23  Joseph Pecoraro  <pecoraro@apple.com>
423
424         Web Inspector: Provide a way to have alternate inspector agents
425         https://bugs.webkit.org/show_bug.cgi?id=137901
426
427         Reviewed by Brian Burg.
428
429         * Configurations/FeatureDefines.xcconfig:
430
431 2014-10-23  Tim Horton  <timothy_horton@apple.com>
432
433         Add some SPI headers for NSExtension and NSSharingService{Picker}
434         https://bugs.webkit.org/show_bug.cgi?id=138027
435
436         Reviewed by Anders Carlsson.
437
438         * Misc/WebSharingServicePickerController.h:
439         * Misc/WebSharingServicePickerController.mm:
440         * WebCoreSupport/WebSelectionServiceController.mm:
441         * WebCoreSupport/WebContextMenuClient.mm:
442         Fix a sorting issue.
443         Replace redefinitions with SPI header #imports.
444
445 2014-10-23  Tim Horton  <timothy_horton@apple.com>
446
447         Crashes under WebSelectionServiceController::hasRelevantSelectionServices
448         https://bugs.webkit.org/show_bug.cgi?id=138013
449
450         Reviewed by Dan Bernstein.
451
452         * WebCoreSupport/WebSelectionServiceController.mm:
453         (WebSelectionServiceController::hasRelevantSelectionServices):
454         Don't adopt this autoreleased object.
455
456 2014-10-22  Chris Dumez  <cdumez@apple.com>
457
458         [Mac][WK2] Fix applicationIsSafari() detection
459         https://bugs.webkit.org/show_bug.cgi?id=137893
460
461         Reviewed by Alexey Proskuryakov.
462
463         Provide an implementation for FrameLoaderClient's new
464         needsQuickLookResourceCachingQuirks() that returns
465         a static flag initialized using
466         QuickLookMac::computeNeedsQuickLookResourceCachingQuirks().
467
468         * WebCoreSupport/WebFrameLoaderClient.h:
469         * WebCoreSupport/WebFrameLoaderClient.mm:
470
471 2014-10-20  Chris Dumez  <cdumez@apple.com>
472
473         ResourceRequest deserialization unnecessarily calls partitionName() on encoded cache partition
474         https://bugs.webkit.org/show_bug.cgi?id=137797
475
476         Reviewed by Darin Adler.
477
478         Call ResourceRequest::setDomainForPartitionName() instead of
479         setPartitionName() as the argument is a domain, not a valid
480         partition name.
481
482         * Misc/WebCache.mm:
483         (+[WebCache addImageToCache:forURL:forFrame:]):
484         (+[WebCache removeImageFromCacheForURL:forFrame:]):
485
486 2014-10-20  Andy Estes  <aestes@apple.com>
487
488         Fix the iOS build.
489
490         * WebView/WebFrame.mm:
491         (-[WebFrame getDictationResultRanges:andMetadatas:]):
492         (-[WebFrame dictationResultMetadataForRange:]):
493
494 2014-10-19  Chris Dumez  <cdumez@apple.com>
495
496         Use is<>() / downcast<>() for all remaining RenderObject subclasses
497         https://bugs.webkit.org/show_bug.cgi?id=137845
498
499         Reviewed by Darin Adler.
500
501         Use is<>() / downcast<>() for all remaining RenderObject subclasses and 
502         clean up the surrounding code.
503
504         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
505         (-[WebHostedNetscapePluginView pluginHostDied]):
506         * Plugins/WebBaseNetscapePluginView.mm:
507         (-[WebBaseNetscapePluginView _windowClipRect]):
508         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
509         * WebCoreSupport/WebFrameLoaderClient.mm:
510         (WebFrameLoaderClient::createPlugin):
511         (WebFrameLoaderClient::createJavaAppletWidget):
512
513 2014-10-17  Tim Horton  <timothy_horton@apple.com>
514
515         Build fix for 32-bit Yosemite
516
517         * WebCoreSupport/WebContextMenuClient.mm:
518         (WebContextMenuClient::contextMenuForEvent):
519         Avoid using NSItemProvider in 32-bit, because it doesn't exist.
520
521 2014-10-17  Chris Dumez  <cdumez@apple.com>
522
523         Use is<>() / downcast<>() for RenderBox
524         https://bugs.webkit.org/show_bug.cgi?id=137804
525
526         Reviewed by Andreas Kling.
527
528         Use is<>() / downcast<>() for RenderBox and clean up the surrounding
529         code.
530
531         * WebCoreSupport/WebContextMenuClient.mm:
532         (WebContextMenuClient::clientFloatRectForNode):
533         * WebView/WebFrame.mm:
534         (-[WebFrame renderedSizeOfNode:constrainedToWidth:]):
535
536 2014-10-17  Tim Horton  <timothy_horton@apple.com>
537
538         Fix the build with the public SDK.
539
540         * WebCoreSupport/WebSelectionServiceController.mm:
541         We should transition all this SPI to real SPI headers as soon as possible.
542
543 2014-10-16  Tim Horton  <timothy_horton@apple.com>
544
545         Implement selection services menu for Legacy WebKit
546         https://bugs.webkit.org/show_bug.cgi?id=137582
547         <rdar://problem/18604241>
548
549         Reviewed by Brady Eidson.
550
551         * Misc/WebSharingServicePickerController.h:
552         Move SPI into the header (in the near future it will be moved to a modern-style SPI header).
553         Add WebSharingServicePickerClient, which other classes can implement
554         instead of tying WebSharingServicePickerController strongly to WebContextMenuClient.
555         Make initWithData:... -> initWithItems:... instead, taking an array of NSItemProviders.
556
557         * Misc/WebSharingServicePickerController.mm:
558         Pass in NSSharingServicePickerStyle, so that clients can specify the style.
559
560         (-[WebSharingServicePickerController clear]):
561         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
562         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
563         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
564         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
565         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
566         Make use of WebSharingServicePickerClient.
567
568         (-[WebSharingServicePickerController sharingService:didShareItems:]):
569         If we're returned a NSAttributedString, paste it on top of the current selection,
570         similar to what the WebKit2 implementation currently does.
571         
572         * WebCoreSupport/WebChromeClient.h:
573         * WebCoreSupport/WebChromeClient.mm:
574         (WebChromeClient::handleTelephoneNumberClick):
575         (WebChromeClient::handleSelectionServiceClick):
576         (WebChromeClient::hasRelevantSelectionServices):
577         Override the services-related ChromeClient functions, forward them to WebSelectionServiceController.
578
579         * WebCoreSupport/WebContextMenuClient.h:
580         * WebCoreSupport/WebContextMenuClient.mm:
581         (WebContextMenuClient::sharingServicePickerWillBeDestroyed):
582         (WebContextMenuClient::pageForSharingServicePicker):
583         (WebContextMenuClient::windowForSharingServicePicker):
584         (WebContextMenuClient::screenRectForCurrentSharingServicePickerItem):
585         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
586         (WebContextMenuClient::contextMenuForEvent):
587         (WebContextMenuClient::screenRectForHitTestNode): Deleted.
588         (WebContextMenuClient::renderedImageForControlledImage): Deleted.
589         (WebContextMenuClient::clearSharingServicePickerController): Deleted.
590         Have WebContextMenuClient implement WebSharingServicePickerClient to avoid
591         having WebSharingServicePickerController tightly bound to it.
592         Make an NSItemProvider array when instantiating WebSharingServicePickerController
593         instead of handing it data directly.
594
595         * WebCoreSupport/WebSelectionServiceController.h: Copied from Source/WebKit/mac/WebCoreSupport/WebContextMenuClient.h.
596         * WebCoreSupport/WebSelectionServiceController.mm: Added.
597         (WebSelectionServiceController::WebSelectionServiceController):
598         Add WebSelectionServiceController, which will act as the WebSharingServicePickerClient
599         for selection services.
600
601         (WebSelectionServiceController::handleSelectionServiceClick):
602         Create a WebSharingSericePickerController with the selection's attributed string, and show its menu.
603
604         (hasCompatibleServicesForItems):
605         (WebSelectionServiceController::hasRelevantSelectionServices):
606         Determine whether or not services are available.
607
608         (WebSelectionServiceController::sharingServicePickerWillBeDestroyed):
609         (WebSelectionServiceController::pageForSharingServicePicker):
610         (WebSelectionServiceController::windowForSharingServicePicker):
611         Implement the rest of the WebSharingServicePickerClient overrides.
612
613         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem):
614         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem):
615         These are only useful for image sharing services, so we don't need to
616         implement them (WebContextMenuClient does, on the other hand).
617
618         * WebView/WebView.mm:
619         (-[WebView _selectionServiceController]):
620         * WebView/WebViewData.h:
621         * WebView/WebViewData.mm:
622         * WebView/WebViewInternal.h:
623         Keep a WebSelectionServiceController.
624
625 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
626
627         Improve debug description of WAKViews
628         https://bugs.webkit.org/show_bug.cgi?id=137716
629
630         Reviewed by Simon Fraser.
631
632         * WebView/WebView.mm:
633         (-[WebView _touchEventRegions]): Adding a comment.
634
635 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
636
637         Addressing post-review comment.
638         https://bugs.webkit.org/show_bug.cgi?id=137550
639
640         Unreviewed.
641
642         * WebView/WebHTMLView.mm:
643         (fontNameForDescription):
644         (-[WebHTMLView _addToStyle:fontA:fontB:]):
645
646 2014-10-14  Chris Dumez  <cdumez@apple.com>
647
648         Use is<>() / downcast<>() for RenderImage
649         https://bugs.webkit.org/show_bug.cgi?id=137683
650
651         Reviewed by Mihnea Ovidenie.
652
653         Use is<>() / downcast<>() for RenderImage.
654
655         * Misc/WebNSPasteboardExtras.mm:
656         (imageFromElement):
657         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
658
659 2014-10-10  Daniel Bates  <dabates@apple.com>
660
661         Remove unused classes WebRender{Node, Layer}
662         https://bugs.webkit.org/show_bug.cgi?id=137628
663
664         Reviewed by Simon Fraser.
665
666         We no longer make use of the WebKit1-specific classes WebRenderNode and WebRenderLayer.
667         For completeness, there is a WebKit2 analogue of WebRenderLayer by the same name.
668
669         * Configurations/WebKitLegacy.xcconfig: Remove file WebRenderNode.mm from the list
670         of excluded source files when building for iOS.
671         * WebKit.exp: Remove symbol for WebRenderLayer.
672         * WebKit.mac.exp: Remove symbol for WebRenderNode.
673         * WebView/WebRenderLayer.h: Removed.
674         * WebView/WebRenderLayer.mm: Removed.
675         * WebView/WebRenderNode.h: Removed.
676         * WebView/WebRenderNode.mm: Removed.
677
678 2014-10-10  Chris Dumez  <cdumez@apple.com>
679
680         Use is<>() / downcast<>() for RenderBoxModelObject
681         https://bugs.webkit.org/show_bug.cgi?id=137587
682
683         Reviewed by Mihnea Ovidenie.
684
685         Use is<>() / downcast<>() for RenderBoxModelObject and clean up the
686         surrounding code.
687
688         * Plugins/WebBaseNetscapePluginView.mm:
689         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]):
690         * WebView/WebRenderLayer.mm:
691         (-[WebRenderLayer initWithWebFrame:]):
692
693 2014-10-09  Dean Jackson  <dino@apple.com>
694
695         Remove ENABLE_CSS3_CONDITIONAL_RULES
696         https://bugs.webkit.org/show_bug.cgi?id=137571
697
698         Reviewed by Simon Fraser.
699
700         * Configurations/FeatureDefines.xcconfig:
701
702 2014-10-09  Tim Horton  <timothy_horton@apple.com>
703
704         Add a WebKit1 preference for selection services
705         https://bugs.webkit.org/show_bug.cgi?id=137498
706         <rdar://problem/18572699>
707
708         Reviewed by Simon Fraser.
709
710         * WebView/WebPreferenceKeysPrivate.h:
711         * WebView/WebPreferences.mm:
712         (+[WebPreferences initialize]):
713         (-[WebPreferences serviceControlsEnabled]):
714         (-[WebPreferences setServiceControlsEnabled:]):
715         * WebView/WebPreferencesPrivate.h:
716         * WebView/WebView.mm:
717         (-[WebView _preferencesChanged:]):
718         Add and plumb the preference.
719
720 2014-10-09  Myles C. Maxfield  <mmaxfield@apple.com>
721
722         Remove second-to-last client of WebFontCache
723         https://bugs.webkit.org/show_bug.cgi?id=137550
724
725         Reviewed by Darin Adler.
726
727         Use FontCache::getCachedFontData() instead of WebFontCache.
728
729         * WebView/WebHTMLView.mm:
730         (-[WebHTMLView _addToStyle:fontA:fontB:]):
731
732 2014-10-09  Chris Dumez  <cdumez@apple.com>
733
734         Use is<>() / downcast<>() for Widget subclasses
735         https://bugs.webkit.org/show_bug.cgi?id=137549
736
737         Reviewed by Darin Adler.
738
739         Use is<>() / downcast<>() for Widget subclasses and clean up the
740         surrounding code.
741
742         * WebView/WebRenderNode.mm:
743         (copyRenderNode):
744         * WebView/WebView.mm:
745         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
746
747 2014-10-07  Christophe Dumez  <cdumez@apple.com>
748
749         Use is<>() / downcast<>() for RenderText / RenderTextFragment
750         https://bugs.webkit.org/show_bug.cgi?id=137476
751
752         Reviewed by Darin Adler.
753
754         * WebView/WebRenderNode.mm:
755         (copyRenderNode):
756
757 2014-10-06  Dan Bernstein  <mitz@apple.com>
758
759         Build fix.
760
761         * Misc/WebCache.mm:
762         (+[WebCache imageForURL:]):
763
764 2014-10-06  Chris Dumez  <cdumez@apple.com>
765
766         Unreviewed build fix after r174333.
767
768         Forgot explicit WebCore:: namespace.
769
770         * Misc/WebCache.mm:
771         (+[WebCache imageForURL:]):
772
773 2014-10-05  Christophe Dumez  <cdumez@apple.com>
774
775         Use is<>() / downcast<>() for CachedResource subclasses
776         https://bugs.webkit.org/show_bug.cgi?id=137431
777
778         Reviewed by Benjamin Poulain.
779
780         Use is<>() / downcast<>() for CachedResource subclasses.
781
782         * Misc/WebCache.mm:
783         (+[WebCache imageForURL:]):
784
785 2014-10-02  Daniel Bates  <dabates@apple.com>
786
787         Use version number 101000 instead of 10100 for OS X Yosemite
788         https://bugs.webkit.org/show_bug.cgi?id=137372
789
790         Reviewed by Mark Rowe.
791
792         The version number for OS X Yosemite is 101000.
793
794         * WebView/WebView.mm:
795         (-[WebView _preferencesChanged:]):
796
797 2014-10-02  Tim Horton  <timothy_horton@apple.com>
798
799         Move PageOverlay[Controller] to WebCore
800         https://bugs.webkit.org/show_bug.cgi?id=137164
801         <rdar://problem/18508258>
802
803         Reviewed by Anders Carlsson.
804
805         * WebCoreSupport/WebChromeClient.h:
806         * WebCoreSupport/WebChromeClient.mm:
807         (WebChromeClient::attachViewOverlayGraphicsLayer):
808         Add an empty ChromeClient override.
809
810 2014-10-01  Christophe Dumez  <cdumez@apple.com>
811
812         Have is<>(T*) function do a null check on the pointer argument
813         https://bugs.webkit.org/show_bug.cgi?id=137333
814
815         Reviewed by Gavin Barraclough.
816
817         Have is<>(T*) function do a null check on the argument instead of a
818         simple assertion. This makes sense for 2 reasons:
819         1. It is more consistent with downcast<>(T*), which will succeed even
820            if the argument is a nullptr.
821         2. It simplifies the code a bit as it gets rid of a lot of explicit
822            null checks.
823
824         * WebCoreSupport/WebChromeClient.mm:
825         (WebChromeClient::focusedElementChanged):
826         * WebCoreSupport/WebEditorClient.mm:
827         (WebEditorClient::textFieldDidBeginEditing):
828         (WebEditorClient::textFieldDidEndEditing):
829         (WebEditorClient::textDidChangeInTextField):
830         (WebEditorClient::doTextFieldCommandFromEvent):
831         (WebEditorClient::textWillBeDeletedInTextField):
832         (WebEditorClient::textDidChangeInTextArea):
833         * WebView/WebHTMLRepresentation.mm:
834         (inputElementFromDOMElement):
835         (searchForLabelsBeforeElement):
836         * WebView/WebRenderLayer.mm:
837         (+[WebRenderLayer nameForLayer:]):
838
839 2014-10-01  Mark Rowe  <mrowe@apple.com>
840
841         <https://webkit.org/b/137308> WebKit should build on OS X Yosemite for external users
842
843         Reviewed by Dan Bernstein.
844
845         * Configurations/DebugRelease.xcconfig: Use libWebKitSystemInterfaceYosemite.a on Yosemite.
846
847 2014-09-30  Chris Dumez  <cdumez@apple.com>
848
849         Use is<>() / downcast<>() for Element
850         https://bugs.webkit.org/show_bug.cgi?id=137241
851
852         Reviewed by Andreas Kling.
853
854         Use is<>() / downcast<>() for Element instead of isElementNode() /
855         toElement().
856
857         * WebView/WebRenderLayer.mm:
858         (+[WebRenderLayer nameForLayer:]):
859
860 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
861
862         Move ColorInputType class to std::unique_ptr
863         https://bugs.webkit.org/show_bug.cgi?id=137173
864
865         Reviewed by Darin Adler.
866
867         Replace uses of PassOwnPtr in code under ColorInputType class with std::unique_ptr.
868         Child classes follow this change as well.
869
870         * WebCoreSupport/WebChromeClient.h:
871         * WebCoreSupport/WebChromeClient.mm:
872         (WebChromeClient::createColorChooser):
873
874 2014-09-24  Christophe Dumez  <cdumez@apple.com>
875
876         Add initial is<>() / downcast<>() support for any type of Nodes
877         https://bugs.webkit.org/show_bug.cgi?id=137056
878
879         Reviewed by Benjamin Poulain.
880
881         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
882         instead of isFormControlElement() / toHTMLFormControlElement().
883
884         * WebView/WebHTMLRepresentation.mm:
885         (searchForLabelsBeforeElement):
886
887 2014-09-24  Christophe Dumez  <cdumez@apple.com>
888
889         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
890         https://bugs.webkit.org/show_bug.cgi?id=137068
891
892         Reviewed by Ryosuke Niwa.
893
894         Start using is<HTML*Element>() instead of isHTML*Element().
895         Remaining usages will be updated in a follow-up patch to
896         reduce the size of the change.
897
898         * WebCoreSupport/WebChromeClient.mm:
899         (WebChromeClient::focusedElementChanged):
900         * WebCoreSupport/WebEditorClient.mm:
901         (WebEditorClient::textFieldDidBeginEditing):
902         (WebEditorClient::textFieldDidEndEditing):
903         (WebEditorClient::textDidChangeInTextField):
904         (WebEditorClient::doTextFieldCommandFromEvent):
905         (WebEditorClient::textWillBeDeletedInTextField):
906         (WebEditorClient::textDidChangeInTextArea):
907         * WebView/WebHTMLRepresentation.mm:
908         (inputElementFromDOMElement):
909
910 2014-09-21  Timothy Hatcher  <timothy@apple.com>
911
912         Make the Web Inspector use a separate web process.
913
914         https://bugs.webkit.org/show_bug.cgi?id=135120
915
916         Reviewed by Anders Carlsson.
917
918         * WebCoreSupport/WebInspectorClient.h:
919         * WebCoreSupport/WebInspectorClient.mm:
920         (WebInspectorClient::WebInspectorClient):
921         (WebInspectorClient::openInspectorFrontend):
922         (WebInspectorClient::releaseFrontend):
923         Own WebInspectorFrontendClient instead of moving it.
924
925 2014-09-23  Chris Dumez  <cdumez@apple.com>
926
927         Use downcast<HTML*Element>() instead of toHTML*Element()
928         https://bugs.webkit.org/show_bug.cgi?id=137007
929
930         Reviewed by Benjamin Poulain.
931
932         Use downcast<HTML*Element>() instead of toHTML*Element().
933
934         * DOM/WebDOMOperations.mm:
935         (-[DOMHTMLInputElement _setAutofilled:]):
936         * WebCoreSupport/WebChromeClient.mm:
937         (WebChromeClient::focusedElementChanged):
938         * WebCoreSupport/WebEditorClient.mm:
939         (WebEditorClient::textFieldDidBeginEditing):
940         (WebEditorClient::textFieldDidEndEditing):
941         (WebEditorClient::textDidChangeInTextField):
942         (WebEditorClient::doTextFieldCommandFromEvent):
943         (WebEditorClient::textWillBeDeletedInTextField):
944         (WebEditorClient::textDidChangeInTextArea):
945         * WebView/WebHTMLRepresentation.mm:
946         (inputElementFromDOMElement):
947
948 2014-09-21  Chris Dumez  <cdumez@apple.com>
949
950         Generate Element casting helper functions
951         https://bugs.webkit.org/show_bug.cgi?id=136839
952
953         Reviewed by Darin Adler.
954
955         Use JSXXX::toWrapped() instead of toXXX() function.
956
957         * DOM/WebDOMOperations.mm:
958         * WebView/WebView.mm:
959         (-[WebView _notificationIDForTesting:]):
960
961 2014-09-21  Joseph Pecoraro  <pecoraro@apple.com>
962
963         Leak: WebNotificationPrivate ObjC leaks seen on leaks bot
964         https://bugs.webkit.org/show_bug.cgi?id=136972
965
966         Reviewed by Darin Adler.
967
968         * WebView/WebNotification.h:
969         * WebView/WebNotification.mm:
970         (-[WebNotification initWithCoreNotification:notificationID:]):
971         Switch to RetainPtr and adopt into _private to ensure when we are
972         deallocated that _private will get deallocated.
973
974 2014-09-19  Dean Jackson  <dino@apple.com>
975
976         Multithreaded WebGL is a bad idea - remove it
977         https://bugs.webkit.org/show_bug.cgi?id=136964
978         <rdar://problem/18399858>
979
980         Reviewed by Brent Fulgham.
981
982         Remove the setting to allow multithreaded WebGL.
983
984         * WebView/WebPreferenceKeysPrivate.h:
985         * WebView/WebPreferences.mm:
986         (+[WebPreferences initialize]):
987         (-[WebPreferences multithreadedWebGLEnabled]): Deleted.
988         (-[WebPreferences setMultithreadedWebGLEnabled:]): Deleted.
989         * WebView/WebPreferencesPrivate.h:
990         * WebView/WebView.mm:
991         (-[WebView _preferencesChanged:]):
992
993 2014-09-19  Daniel Bates  <dabates@apple.com>
994
995         Always assume internal SDK when building configuration Production
996         https://bugs.webkit.org/show_bug.cgi?id=136925
997         <rdar://problem/18362399>
998
999         Reviewed by Dan Bernstein.
1000
1001         As a side effect of this change we will always enable ENABLE_TOUCH_EVENTS, ENABLE_IOS_{GESTURE, TOUCH}_EVENTS,
1002         and ENABLE_XSLT when either building configuration Production or building with the Internal SDK.
1003
1004         * Configurations/Base.xcconfig:
1005
1006 2014-09-17  Daniel Bates  <dabates@apple.com>
1007
1008         Unreviewed, rolling out r173695.
1009
1010         Broke building third-party Legacy WebKit apps; will
1011         investigate offline
1012
1013         Reverted changeset:
1014
1015         "[iOS] Make WebCore build with public iOS SDK"
1016         https://bugs.webkit.org/show_bug.cgi?id=136487
1017         http://trac.webkit.org/changeset/173695
1018
1019 2014-09-17  Daniel Bates  <dabates@apple.com>
1020
1021         [iOS] Make WebCore build with public iOS SDK
1022         https://bugs.webkit.org/show_bug.cgi?id=136487
1023
1024         Reviewed by David Kilzer.
1025
1026         Update WebKit1 source files to include the wrapper SPI headers instead of the corresponding
1027         actual SPI header(s).
1028
1029         * DOM/WebDOMOperationsPrivate.h:
1030         * MigrateHeaders.make: Modified to only modify the include path of a "<WebCore/"-prefixed header
1031         file if its filename doesn't end in "SPI.h" as an alternative to having MigrateHeaders.make copy
1032         such files into the WebKit framework as private headers.
1033         * WebCoreSupport/WebFrameLoaderClient.mm:
1034         * WebInspector/WebNodeHighlight.mm:
1035         * WebView/WebIndicateLayer.mm:
1036         * WebView/WebRenderLayer.h:
1037         * WebView/WebView.mm:
1038
1039 2014-09-16  Daniel Bates  <dabates@apple.com>
1040
1041         [iOS] Add iOS SDK name and version suffix to WebKitSystemInterface debug/release product name
1042         https://bugs.webkit.org/show_bug.cgi?id=136862
1043
1044         Reviewed by David Kilzer.
1045
1046         * Configurations/DebugRelease.xcconfig:
1047
1048 2014-09-16  Enrica Casucci  <enrica@apple.com>
1049
1050         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
1051         https://bugs.webkit.org/show_bug.cgi?id=136474
1052
1053         Reviewed by Benjamin Poulain.
1054
1055         This is the updated version of the patch that was landed in r173340.
1056         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
1057         and removes the assumption that EAffinity values match NSSelectionAffinity
1058         values. It also removes the includes in TextAffinity.h, creating the need to
1059         include explicitly the files when necessary.
1060
1061         * WebCoreSupport/WebEditorClient.h:
1062         (kit):
1063         (core):
1064
1065 2014-09-14  Daniel Bates  <dabates@apple.com>
1066
1067         [iOS] Attempt to fix the iOS build after <http://trac.webkit.org/changeset/173606>
1068         (https://bugs.webkit.org/show_bug.cgi?id=136789)
1069
1070         Substitute Node::countChildNodes() for Node::childNodeCount() in more places.
1071
1072         * WebView/WebFrame.mm:
1073         (-[WebFrame focusedNodeHasContent]):
1074
1075 2014-09-14  Chris Dumez  <cdumez@apple.com>
1076
1077         Rename Node::childNodeCount() to countChildNodes() and avoid inefficient uses
1078         https://bugs.webkit.org/show_bug.cgi?id=136789
1079
1080         Reviewed by Darin Adler.
1081
1082         Rename childNodeCount() to countChildNodes().
1083
1084         * WebView/WebHTMLView.mm:
1085         (-[WebHTMLView attributedString]):
1086
1087 2014-09-10  Jon Honeycutt  <jhoneycutt@apple.com>
1088
1089         Re-add the request autocomplete feature
1090
1091         <https://bugs.webkit.org/show_bug.cgi?id=136730>
1092
1093         This feature was rolled out in r148731 because it was only used by
1094         Chromium. As we consider supporting this feature, roll it back in, but
1095         leave it disabled.
1096
1097         This rolls out r148731 (which removed the feature) with small changes
1098         needed to make the code build in ToT, to match modern style, to make
1099         the tests run, and to remove unused code.
1100
1101         Reviewed by Andy Estes.
1102
1103         * Configurations/FeatureDefines.xcconfig:
1104         * WebCoreSupport/WebFrameLoaderClient.h:
1105
1106 2014-09-12  Commit Queue  <commit-queue@webkit.org>
1107
1108         Unreviewed, rolling out r173575.
1109         https://bugs.webkit.org/show_bug.cgi?id=136790
1110
1111         Failing tests (Requested by enrica on #webkit).
1112
1113         Reverted changeset:
1114
1115         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
1116         https://bugs.webkit.org/show_bug.cgi?id=136474
1117         http://trac.webkit.org/changeset/173575
1118
1119 2014-09-12  Enrica Casucci  <enrica@apple.com>
1120
1121         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
1122         https://bugs.webkit.org/show_bug.cgi?id=136474
1123
1124         Reviewed by Benjamin Poulain.
1125
1126         This is the updated version of the patch that was landed in r173340.
1127         I changed the use of IntPoint to FloatPoint since it was causing tests
1128         to fail.
1129         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
1130         and removes the assumption that EAffinity values match NSSelectionAffinity
1131         values. It also removes the includes in TextAffinity.h, creating the need to
1132         include explicitly the files when necessary. It also removes the unnecessary
1133         use of platform specific types, replacing them with WebCore types.
1134
1135         * WebCoreSupport/WebEditorClient.h:
1136         (kit):
1137         (core):
1138         * WebView/WebFrameView.mm:
1139         (-[WebFrameView _scrollToBeginningOfDocument]):
1140         (-[WebFrameView _scrollToEndOfDocument]):
1141
1142 2014-09-11  Bear Travis  <betravis@adobe.com>
1143
1144         [CSS Font Loading] Enable CSS Font Loading on Mac
1145         https://bugs.webkit.org/show_bug.cgi?id=135473
1146
1147         Reviewed by Antti Koivisto.
1148
1149         Enable CSS Font Loading in FeatureDefines.
1150
1151         * Configurations/FeatureDefines.xcconfig:
1152
1153 2014-09-11  Beth Dakin  <bdakin@apple.com>
1154
1155         Support rubber-banding in sub-frames
1156         https://bugs.webkit.org/show_bug.cgi?id=136726
1157         -and corresponding-
1158         rdar://problem/10011924
1159
1160         Reviewed by Tim Horton.
1161
1162         rubberBandingForOverflowScrollEnabled is re-named to
1163         rubberBandingForSubScrollableRegionsEnabled
1164         * WebView/WebView.mm:
1165         (-[WebView _preferencesChanged:]):
1166
1167 2014-09-09  Benjamin Poulain  <bpoulain@apple.com>
1168
1169         Disable the "unreachable-code" warning
1170         https://bugs.webkit.org/show_bug.cgi?id=136677
1171
1172         Reviewed by Darin Adler.
1173
1174         * Configurations/Base.xcconfig:
1175
1176 2014-09-08  Maciej Stachowiak  <mjs@apple.com>
1177
1178         Fix 32-bit Mac build for new warnings
1179         https://bugs.webkit.org/show_bug.cgi?id=136624
1180
1181         Reviewed by Darin Adler.
1182         
1183         (Jessie already fixed this but my version with typedefs seems a tiny bit cleaner.)
1184
1185         * Carbon/HIViewAdapter.m:
1186         (+[HIViewAdapter bindHIViewToNSView:nsView:]): Need to use explicit casting now.
1187
1188 2014-09-08  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
1189
1190         Remove FILTERS flag
1191         https://bugs.webkit.org/show_bug.cgi?id=136571
1192
1193         Reviewed by Darin Adler.
1194
1195         * Configurations/FeatureDefines.xcconfig:
1196
1197 2014-09-08  Jessie Berlin  <jberlin@apple.com>
1198
1199         32-bit build fix after r173364.
1200
1201         * Carbon/HIViewAdapter.m:
1202         (+[HIViewAdapter bindHIViewToNSView:nsView:]):
1203
1204 2014-09-08  Dan Bernstein  <mitz@apple.com>
1205
1206         Build fix.
1207
1208         Added back SPI that is still in use.
1209
1210         * Misc/WebNSURLExtras.h:
1211         * Misc/WebNSURLExtras.mm:
1212         (-[NSURL _webkit_URLByRemovingFragment]):
1213
1214 2014-09-08  Dan Bernstein  <mitz@apple.com>
1215
1216         iOS Simulator build fix.
1217
1218         * Misc/WebKitSystemBits.m:
1219         (WebMemorySize):
1220
1221 2014-09-07  Darin Adler  <darin@apple.com>
1222
1223         Fix build failure seen on Mountain Lion buildbot.
1224
1225         * Misc/WebNSDataExtras.h: Make WEB_GUESS_MIME_TYPE_PEEK_LENGTH an unsigned instead
1226         of an int, to avoid warning about mixing signs.
1227
1228 2014-09-06  Darin Adler  <darin@apple.com>
1229
1230         Make updates suggested by new version of Xcode
1231         https://bugs.webkit.org/show_bug.cgi?id=136603
1232
1233         Reviewed by Mark Rowe.
1234
1235         * Configurations/Base.xcconfig: Added CLANG_WARN_UNREACHABLE_CODE, COMBINE_HIDPI_IMAGES,
1236         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
1237
1238         * History/WebURLsWithTitles.m:
1239         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use NSUInteger instead of
1240         unsigned for correctness, and to quiet the 32-to-64-bit compiler warning (which is
1241         not turned on because it gives us too many false positives).
1242         * Misc/WebElementDictionary.mm:
1243         (-[WebElementDictionary objectForKey:]): Ditto.
1244         * Misc/WebNSDataExtras.m:
1245         (-[NSData _webkit_guessedMIMETypeForXML]): Ditto.
1246         (-[NSData _webkit_guessedMIMEType]): Ditto.
1247         (-[NSData _webkit_parseRFC822HeaderFields]): Ditto.
1248         (-[NSData _web_locationAfterFirstBlankLine]): Ditto.
1249
1250         * Misc/WebNSURLExtras.h: Removed unused _web_URLWithLowercasedScheme, _web_hostData,
1251         _webkit_URLByRemovingFragment, _webkit_URLByRemovingResourceSpecifier, _webkit_isFTPDirectoryURL,
1252         _webkit_shouldLoadAsEmptyDocument, _web_hostNameNeedsDecodingWithRange:,
1253         _web_hostNameNeedsEncodingWithRange:, _web_decodeHostNameWithRange:, _web_encodeHostNameWithRange:,
1254         and _webkit_URLFragment methods.
1255
1256         * Misc/WebNSURLExtras.mm:
1257         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Deleted.
1258         (-[NSURL _webkit_URLByRemovingFragment]): Deleted.
1259         (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Deleted.
1260         (-[NSURL _webkit_isFTPDirectoryURL]): Deleted.
1261         (-[NSURL _webkit_shouldLoadAsEmptyDocument]): Deleted.
1262         (-[NSURL _web_URLWithLowercasedScheme]): Deleted.
1263         (-[NSString _webkit_isFTPDirectoryURL]): Deleted.
1264         (-[NSString _web_hostNameNeedsDecodingWithRange:]): Deleted.
1265         (-[NSString _web_hostNameNeedsEncodingWithRange:]): Deleted.
1266         (-[NSString _web_decodeHostNameWithRange:]): Deleted.
1267         (-[NSString _web_encodeHostNameWithRange:]): Deleted.
1268         (-[NSString _webkit_URLFragment]): Deleted.
1269
1270         * Plugins/WebPluginDatabase.mm:
1271         (-[WebPluginDatabase removePluginInstanceViewsFor:]): Use a modern for loop
1272         to iterate an array instead of a loop using the type "unsigned int".
1273
1274         * WebCoreSupport/WebOpenPanelResultListener.mm:
1275         (-[WebOpenPanelResultListener chooseFilenames:]): Use NSUInteger instead of int.
1276
1277         * WebView/WebDelegateImplementationCaching.mm:
1278         (CallDelegate): Use wtfCallIMP in one overload that was instead just calling the
1279         directly without a proper type for the function pointer. This might have been causing
1280         an actual problem on 64-bit systems, and it was different from all the other CallDelegate
1281         functions that were already doing this correctly.
1282
1283         * WebView/WebTextCompletionController.mm:
1284         (-[WebTextCompletionController _placePopupWindow:]): Use NSUInteger instead of int.
1285
1286 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
1287
1288         Web Inspector: convert DockSide to an enum class
1289         https://bugs.webkit.org/show_bug.cgi?id=136601
1290
1291         Reviewed by Timothy Hatcher.
1292
1293         * WebCoreSupport/WebInspectorClient.mm:
1294         (WebInspectorFrontendClient::frontendLoaded):
1295         (-[WebInspectorWindowController attachWindow:]):
1296         (-[WebInspectorWindowController attach]):
1297         (-[WebInspectorWindowController detach]):
1298         * WebInspector/WebInspectorFrontend.mm:
1299         (-[WebInspectorFrontend attach]):
1300
1301 2014-09-05  Commit Queue  <commit-queue@webkit.org>
1302
1303         Unreviewed, rolling out r173340 and r173342.
1304         https://bugs.webkit.org/show_bug.cgi?id=136596
1305
1306         Broke many tests (Requested by ap on #webkit).
1307
1308         Reverted changesets:
1309
1310         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
1311         https://bugs.webkit.org/show_bug.cgi?id=136474
1312         http://trac.webkit.org/changeset/173340
1313
1314         "Build fix after r173340."
1315         http://trac.webkit.org/changeset/173342
1316
1317 2014-09-05  Enrica Casucci  <enrica@apple.com>
1318
1319         Build fix after r173340.
1320
1321         * WebCoreSupport/WebEditorClient.h:
1322         (kit):
1323         (core):
1324
1325 2014-09-05  Enrica Casucci  <enrica@apple.com>
1326
1327         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
1328         https://bugs.webkit.org/show_bug.cgi?id=136474
1329
1330         Reviewed by Benjamin Poulain.
1331
1332         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
1333         and removes the assumption that EAffinity values match NSSelectionAffinity
1334         values. It also removes the includes in TextAffinity.h, creating the need to
1335         include explicitly the files when necessary. It also removes the unnecessary
1336         use of platform specific types, replacing them with WebCore types.
1337
1338         * WebCoreSupport/WebEditorClient.h: Added kit and core for EAffinity.
1339         * WebView/WebFrameView.mm:
1340         (-[WebFrameView _scrollToBeginningOfDocument]):
1341         (-[WebFrameView _scrollToEndOfDocument]):
1342
1343 2014-09-05  Daniel Bates  <dabates@apple.com>
1344
1345         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
1346         (https://bugs.webkit.org/show_bug.cgi?id=136564)
1347
1348         Move #endif inside -viewDidMoveToWindow up one line such that the closing brace ('}') is after it.
1349
1350         * WebView/WebHTMLView.mm:
1351         (-[WebHTMLView viewDidMoveToWindow]):
1352
1353 2014-09-05  Daniel Bates  <dabates@apple.com>
1354
1355         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
1356         (https://bugs.webkit.org/show_bug.cgi?id=136564)
1357
1358         Add !PLATFORM(IOS)-guard in -viewDidMoveToWindow around code that references WebHTMLViewPrivate.flagsChangedEventMonitor.
1359         The instance variable WebHTMLViewPrivate.flagsChangedEventMonitor is guarded by !PLATFORM(IOS).
1360
1361         * WebView/WebHTMLView.mm:
1362         (-[WebHTMLView viewDidMoveToWindow]):
1363
1364 2014-09-05  Daniel Bates  <dabates@apple.com>
1365
1366         [iOS] Fix the iOS build after <http://trac.webkit.org/changeset/173309>
1367         (https://bugs.webkit.org/show_bug.cgi?id=136564)
1368
1369         Include more code inside the !PLATFORM(IOS)-guarded section in -setDataSource:.
1370
1371         * WebView/WebHTMLView.mm:
1372         (-[WebHTMLView setDataSource:]):
1373
1374 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
1375
1376         Use tracking areas instead of (SPI) mouse moved notifications, and follow flags changes with an event monitor
1377         https://bugs.webkit.org/show_bug.cgi?id=136564
1378
1379         Reviewed by Dan Bernstein.
1380         
1381         WebKit1 depended on mouse moved event notifications to track mouse
1382         moves, and on being specially called by Safari to track flags
1383         changes. WebKit2 does both these things better - it uses a tracking area
1384         and event monitors. Copy those approaches.
1385
1386         * WebKit.order: Remove reference to obsolete call.
1387         * WebView/WebHTMLView.mm:
1388         (-[WebHTMLViewPrivate dealloc]): No need to deallocate tracking
1389         area, since we now just always have one.
1390         (-[WebHTMLViewPrivate clear]): ditto
1391         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
1392         New method that posts a fake mouse move event in response to
1393         a flags change event, for use by the event monitor.
1394         (+[WebHTMLView _postFlagsChangedEvent:]): Empty this old call,
1395         still kept around for benefit of older Safari.
1396         (-[WebHTMLView _updateMouseoverWithEvent:]): Handle Dashboard's
1397         special mouseover mode (previously handled in a weird way).
1398         (-[WebHTMLView close]): No more need to mess with mouse moved observer.
1399         (-[WebHTMLView viewWillMoveToWindow:]): ditto
1400         (-[WebHTMLView viewDidMoveToWindow]): ditto; but now hook up a flags
1401         changed monitor.
1402         (-[WebHTMLView windowDidBecomeKey:]): No need to handle non-key window
1403         tracking area or mouse moved observer.
1404         (-[WebHTMLView windowDidResignKey:]): ditto
1405         (-[WebHTMLView windowWillOrderOnScreen:]): No need to mess with mouse
1406         moved observer.
1407         (-[WebHTMLView windowWillOrderOffScreen:]): ditto
1408         (-[WebHTMLView mouseMoved:]): Converted from the old mouseMovedNotification:
1409         (-[WebHTMLView setDataSource:]): Change if around body to early return. Hook
1410         up tracking area - we have to do it here, because before this point, the
1411         WebHTMLView does not know its WebView, which is where dashboard settings
1412         live.
1413         (-[WebHTMLView _removeMouseMovedObserverUnconditionally]): Deleted.
1414         (-[WebHTMLView addMouseMovedObserver]): Deleted.
1415         (-[WebHTMLView removeMouseMovedObserver]): Deleted.
1416
1417 2014-09-04  Pratik Solanki  <psolanki@apple.com>
1418
1419         Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
1420         https://bugs.webkit.org/show_bug.cgi?id=136560
1421
1422         Reviewed by Joseph Pecoraro.
1423
1424         I removed the disk image caching code in r173265. However, we still have clients that call
1425         setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.
1426
1427         * WebView/WebPreferences.mm:
1428         (-[WebPreferences setDiskImageCacheEnabled:]):
1429         * WebView/WebPreferencesPrivate.h:
1430
1431 2014-09-03  Andy Estes  <aestes@apple.com>
1432
1433         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
1434         https://bugs.webkit.org/show_bug.cgi?id=136521
1435
1436         Reviewed by Anders Carlsson.
1437
1438         Taught MigrateHeaders.make to remove WEBCORE_EXPORT from headers using this sed expression:
1439
1440             s/(^ *)WEBCORE_EXPORT /\1/g
1441
1442         This removes WEBCORE_EXPORT and a single following space character but preserves preceeding spaces.
1443
1444         * MigrateHeaders.make:
1445
1446 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
1447
1448         Remove WebCoreSystemInterface glue for otherwise unused WKSI calls
1449         https://bugs.webkit.org/show_bug.cgi?id=136527
1450
1451         Reviewed by Alexey Proskuryakov.
1452
1453         * WebCoreSupport/WebSystemInterface.mm:
1454         (InitWebCoreSystemInterface):
1455
1456 2014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
1457
1458         Remove CSS_FILTERS flag
1459         https://bugs.webkit.org/show_bug.cgi?id=136529
1460
1461         Reviewed by Dirk Schulze.
1462
1463         * Configurations/FeatureDefines.xcconfig:
1464
1465 2014-09-04  Pratik Solanki  <psolanki@apple.com>
1466
1467         Remove iOS specific disk image cache
1468         https://bugs.webkit.org/show_bug.cgi?id=136517
1469
1470         Reviewed by Antti Koivisto.
1471
1472         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
1473         this now since we don't enable it in WebKit2 on iOS.
1474
1475         * Misc/WebCache.mm:
1476         (+[WebCache statistics]):
1477         * WebView/WebDataSource.mm:
1478         (-[WebDataSource _setAllowToBeMemoryMapped]):
1479         (-[WebDataSource setDataSourceDelegate:]):
1480         (-[WebDataSource dataSourceDelegate]):
1481         (-[WebDataSource dealloc]):
1482         (BufferMemoryMapped): Deleted.
1483         * WebView/WebPreferenceKeysPrivate.h:
1484         * WebView/WebPreferences.mm:
1485         (+[WebPreferences initialize]):
1486         (-[WebPreferences diskImageCacheEnabled]): Deleted.
1487         (-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
1488         (-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
1489         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
1490         (-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
1491         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
1492         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
1493         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
1494         * WebView/WebPreferencesPrivate.h:
1495         * WebView/WebView.mm:
1496         (-[WebView _commonInitializationWithFrameName:groupName:]):
1497         (+[WebView _handleMemoryWarning]):
1498         (-[WebView _preferencesChanged:]):
1499
1500 2014-09-04  Daniel Bates  <dabates@apple.com>
1501
1502         [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
1503         https://bugs.webkit.org/show_bug.cgi?id=136494
1504
1505         Reviewed by Andy Estes.
1506
1507         * MigrateHeaders.make: Migrate header WebEventRegion.h only when ENABLE_IOS_TOUCH_EVENTS is defined.
1508         * WebView/WebView.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
1509
1510 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
1511
1512         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
1513         https://bugs.webkit.org/show_bug.cgi?id=136476
1514
1515         Reviewed by Timothy Hatcher.
1516
1517         * Misc/WebCoreStatistics.mm:
1518         (+[WebCoreStatistics shouldPrintExceptions]):
1519         (+[WebCoreStatistics setShouldPrintExceptions:]):
1520
1521 2014-09-03  Enrica Casucci  <enrica@apple.com>
1522
1523         Remove PLATFORM(IOS) from WebCore/editing (Part 1).
1524         https://bugs.webkit.org/show_bug.cgi?id=136474
1525
1526         Reviewed by Tim Horton.
1527
1528         * WebCoreSupport/WebEditorClient.mm:
1529         (undoNameForEditAction):
1530
1531 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
1532
1533         Clean up naming for and slightly refactor legacy video fullscreen support
1534         https://bugs.webkit.org/show_bug.cgi?id=136446
1535
1536         Reviewed by Jer Noble.
1537
1538         Key changes:
1539         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
1540         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
1541         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
1542         
1543         The old versions had unnecessary parameters, did not clearly distinguish their purpose
1544         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
1545         Also changed many other places to use HTMLVideoElement* instead of Node* or 
1546         HTMLMediaElement* when they were in fact only used for video elements and would only
1547         work for such.
1548
1549         * WebCoreSupport/WebChromeClient.h:
1550         * WebCoreSupport/WebChromeClient.mm:
1551         (WebChromeClient::supportsVideoFullscreen): Adjust for main refactoring.
1552         Also no more need to check for video elementness.
1553         (WebChromeClient::enterVideoFullscreenForVideoElement): Adjust for main refactoring.
1554         (WebChromeClient::exitVideoFullscreen): ditto
1555         * WebView/WebView.mm:
1556         (-[WebView _enterVideoFullscreenForVideoElement:]): Adjust for main
1557         refactoring.
1558         (-[WebView _exitVideoFullscreen]): ditto
1559         (-[WebView _close]): ditto
1560         * WebView/WebViewInternal.h:
1561
1562 2014-09-03  Dan Bernstein  <mitz@apple.com>
1563
1564         Get rid of HIGH_DPI_CANVAS leftovers
1565         https://bugs.webkit.org/show_bug.cgi?id=136491
1566
1567         Reviewed by Benjamin Poulain.
1568
1569         * Configurations/FeatureDefines.xcconfig: Removed definition of ENABLE_HIGH_DPI_CANVAS
1570         and removed it from FEATURE_DEFINES.
1571
1572 2014-08-31  Tim Horton  <timothy_horton@apple.com>
1573
1574         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
1575         https://bugs.webkit.org/show_bug.cgi?id=136416
1576
1577         Reviewed by Dan Bernstein.
1578
1579         * WebView/WebFrameView.mm:
1580         (-[WebFrameView drawRect:]):
1581         We only end up filling, so only set the fill color.
1582
1583 2014-08-26  Maciej Stachowiak  <mjs@apple.com>
1584
1585         Use RetainPtr::autorelease in some places where it seems appropriate
1586         https://bugs.webkit.org/show_bug.cgi?id=136280
1587
1588         Reviewed by Darin Adler.
1589
1590         * WebView/WebHTMLView.mm:
1591         (imageFromRect): Use RetainPtr in this function.
1592         * WebView/WebPDFRepresentation.mm:
1593         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Use RetainPtr
1594         in this method.
1595
1596 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
1597
1598         Unreviwed, remove empty directories.
1599
1600         * ForwardingHeaders/wtf: Removed.
1601
1602 2014-08-27  Zalan Bujtas  <zalan@apple.com>
1603
1604         Subpixel layout: Rename LayoutRect's device pixel snapping functions.
1605         https://bugs.webkit.org/show_bug.cgi?id=136319
1606
1607         Reviewed by Simon Fraser.
1608
1609         From pixelSnappedForPainting() to snapRectToDevicePixels() and 
1610         pixelSnappedIntRect*() to snappedIntRect*().
1611
1612         No change in functionality.
1613
1614         * WebView/WebView.mm:
1615         (-[WebView _dashboardRegions]):
1616         (-[WebView trackedRepaintRects]):
1617
1618 2014-08-25  Maciej Stachowiak  <mjs@apple.com>
1619
1620         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
1621         https://bugs.webkit.org/show_bug.cgi?id=136082
1622
1623         Reviewed by Alexey Proskuryakov.
1624
1625         * Plugins/Hosted/NetscapePluginHostManager.mm:
1626         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
1627         localization name using WebCore helper instead of SPI.
1628         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
1629         file.
1630         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
1631         localization name using WebCore helper instead of SPI.
1632         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
1633         helper no longer pulls its weight.
1634         * WebCoreSupport/WebSystemInterface.mm: 
1635         (InitWebCoreSystemInterface): Remove mention of
1636         WKCopyCFLocalizationPreferredName.
1637         * WebKit.order: ditto
1638
1639 2014-08-25  Daniel Bates  <dabates@apple.com>
1640
1641         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/172889>
1642         (https://bugs.webkit.org/show_bug.cgi?id=109658)
1643
1644         Substitute GraphicsLayer::setContentsToPlatformLayer(..., GraphicsLayer::ContentsLayerForMedia)
1645         for GraphicsLayer::setContentsToMedia(...) because the latter was removed in <http://trac.webkit.org/changeset/172889>.
1646
1647         * WebView/WebView.mm:
1648         (-[WebView _setMediaLayer:forPluginView:]):
1649
1650 2014-08-22  Commit Queue  <commit-queue@webkit.org>
1651
1652         Unreviewed, rolling out r172866.
1653         https://bugs.webkit.org/show_bug.cgi?id=136177
1654
1655         Broke iOS build (Requested by othermaciej on #webkit).
1656
1657         Reverted changeset:
1658
1659         "Replace use of WKCopyCFLocalizationPreferredName with
1660         NSLocale public API"
1661         https://bugs.webkit.org/show_bug.cgi?id=136082
1662         http://trac.webkit.org/changeset/172866
1663
1664 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
1665
1666         Implement paint flashing in the WK1 InspectorOverlay page
1667         https://bugs.webkit.org/show_bug.cgi?id=136138
1668
1669         Reviewed by Sam Weinig, Joseph Pecoraro.
1670
1671         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
1672         We avoid allocating backing store for this canvas until we have paint rects.
1673         
1674         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
1675         an array of rects, and pushes them to the page when they change, before forcing a paint.
1676         
1677         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
1678         WebKit WebInspectorClient, but don't yet implement paint flashing there.
1679
1680         * WebCoreSupport/WebInspectorClient.h:
1681         * WebCoreSupport/WebInspectorClient.mm:
1682         (WebInspectorClient::WebInspectorClient):
1683
1684 2014-08-20  Maciej Stachowiak  <mjs@apple.com>
1685
1686         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
1687         https://bugs.webkit.org/show_bug.cgi?id=136082
1688
1689         Reviewed by Alexey Proskuryakov.
1690
1691         * Plugins/Hosted/NetscapePluginHostManager.mm:
1692         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
1693         localization name using WebCore helper instead of SPI.
1694         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
1695         file.
1696         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
1697         localization name using WebCore helper instead of SPI.
1698         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
1699         helper no longer pulls its weight.
1700         * WebCoreSupport/WebSystemInterface.mm: 
1701         (InitWebCoreSystemInterface): Remove mention of
1702         WKCopyCFLocalizationPreferredName.
1703         * WebKit.order: ditto
1704
1705 2014-08-22  Daniel Bates  <dabates@apple.com>
1706
1707         [iOS] Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, and temporarily disable ENABLE_TOUCH_EVENTS
1708         and ENABLE_XSLT when building with the iOS public SDK
1709         https://bugs.webkit.org/show_bug.cgi?id=135945
1710
1711         Reviewed by Andy Estes.
1712
1713         * Configurations/FeatureDefines.xcconfig: Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, ENABLE_TOUCH_EVENTS
1714         and ENABLE_XSLT when building with the public SDK.
1715         * MigrateHeaders.make: Conditionally migrate headers for touch and gesture events.
1716
1717 2014-08-22  Jon Lee  <jonlee@apple.com>
1718
1719         Fix iOS build due to r172832 and move RUBBER_BANDING out of FeatureDefines.h
1720         https://bugs.webkit.org/show_bug.cgi?id=136157
1721
1722         Reviewed by Simon Fraser.
1723
1724         * Configurations/FeatureDefines.xcconfig: Add ENABLE(RUBBER_BANDING).
1725         * WebView/WebView.mm:
1726         (-[WebView _preferencesChanged:]): Wrap in ENABLE(RUBBER_BANDING).
1727
1728 2014-08-21  Zalan Bujtas  <zalan@apple.com>
1729
1730         Enable SATURATED_LAYOUT_ARITHMETIC.
1731         https://bugs.webkit.org/show_bug.cgi?id=136106
1732
1733         Reviewed by Simon Fraser.
1734
1735         SATURATED_LAYOUT_ARITHMETIC protects LayoutUnit against arithmetic overflow.
1736         (No measurable performance regression on Mac.)
1737
1738         * Configurations/FeatureDefines.xcconfig:
1739
1740 2014-08-21  Beth Dakin  <bdakin@apple.com>
1741
1742         overflow:scroll elements should support rubber-banding
1743         https://bugs.webkit.org/show_bug.cgi?id=91655
1744
1745         Reviewed by Sam Weinig and Darin Adler.
1746
1747         Disable rubber-banding in overflow areas for now.
1748         * WebView/WebView.mm:
1749         (-[WebView _preferencesChanged:]):
1750
1751 2014-08-19  Pratik Solanki  <psolanki@apple.com>
1752
1753         Remove PurgeableBuffer since it is not very useful any more
1754         https://bugs.webkit.org/show_bug.cgi?id=135939
1755
1756         Reviewed by Andreas Kling.
1757
1758         * Misc/WebCache.mm:
1759         (+[WebCache statistics]):
1760
1761 2014-08-19  Zalan Bujtas  <zalan@apple.com>
1762
1763         Remove ENABLE(SUBPIXEL_LAYOUT).
1764         https://bugs.webkit.org/show_bug.cgi?id=136077
1765
1766         Reviewed by Simon Fraser.
1767
1768         Remove compile time flag SUBPIXEL_LAYOUT. All ports have it enabled for a while now.
1769
1770         * Configurations/FeatureDefines.xcconfig:
1771
1772 2014-08-18  Maciej Stachowiak  <mjs@apple.com>
1773
1774         Use NSURLFileTypeMappings directly instead of depending on WebKitSystemInterface wrappers for it
1775         https://bugs.webkit.org/show_bug.cgi?id=136035
1776
1777         Reviewed by Dan Bernstein.
1778
1779         * Misc/WebNSViewExtras.m:
1780         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Remove comment
1781         reference to obsolete WKSI function.
1782         * WebCoreSupport/WebSystemInterface.mm:
1783         (InitWebCoreSystemInterface): Don't initialize the no-longer-used WKGetExtensionsForMIMEType,
1784         WKGetPreferredExtensionForMIMEType, or WKGetMIMETypeForExtension
1785         * Plugins/WebPluginDatabase.mm:
1786         (-[WebPluginDatabase pluginForExtension:]): Include SPI header from WebCore; use
1787         NSURLFileTypeMappings directly instead of via WKSI wrapper.
1788         * WebCoreSupport/WebFrameLoaderClient.mm:
1789         (WebFrameLoaderClient::objectContentType): ditto
1790         * WebView/WebHTMLView.mm:
1791         (-[WebHTMLView _imageExistsAtPaths:]): ditto
1792         * WebView/WebView.mm:
1793         (+[WebView _supportedFileExtensions]): ditto
1794         (+[WebView suggestedFileExtensionForMIMEType:]): ditto
1795         (+[WebView _MIMETypeForFile:]): ditto
1796
1797 2014-08-18  Commit Queue  <commit-queue@webkit.org>
1798
1799         Unreviewed, rolling out r172736.
1800         https://bugs.webkit.org/show_bug.cgi?id=136060
1801
1802         Caused 14% PLT regressions (Requested by rniwa on #webkit).
1803
1804         Reverted changeset:
1805
1806         "Remove PurgeableBuffer since it is not very useful any more"
1807         https://bugs.webkit.org/show_bug.cgi?id=135939
1808         http://trac.webkit.org/changeset/172736
1809
1810 2014-08-18  Pratik Solanki  <psolanki@apple.com>
1811
1812         Remove PurgeableBuffer since it is not very useful any more
1813         https://bugs.webkit.org/show_bug.cgi?id=135939
1814
1815         Reviewed by Geoffrey Garen.
1816
1817         * Misc/WebCache.mm:
1818         (+[WebCache statistics]):
1819
1820 2014-08-18  Andy Estes  <aestes@apple.com>
1821
1822         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
1823         https://bugs.webkit.org/show_bug.cgi?id=136010
1824
1825         Reviewed by Darin Adler.
1826
1827         * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
1828         * WebView/WebPDFView.mm:
1829         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest.
1830         * WebView/WebView.mm:
1831         (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary.
1832
1833 2014-08-18  Andy Estes  <aestes@apple.com>
1834
1835         Revert r172697.
1836
1837         It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
1838
1839         * Misc/WebKitVersionChecks.h:
1840         * WebView/WebView.mm:
1841         (-[WebView _preferencesChanged:]):
1842
1843 2014-08-15  Andy Estes  <aestes@apple.com>
1844
1845         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
1846         https://bugs.webkit.org/show_bug.cgi?id=136010
1847
1848         Reviewed by Darin Adler.
1849
1850         Reverted the linked-on-or-after check added in r170120 since it is no longer necessary.
1851
1852         * Misc/WebKitVersionChecks.h:
1853         * WebView/WebView.mm:
1854         (-[WebView _preferencesChanged:]):
1855
1856 2014-08-16  Maciej Stachowiak  <mjs@apple.com>
1857
1858         Remove the obsolete WebKitEnableCoalescedUpdatesPreferenceKey
1859         https://bugs.webkit.org/show_bug.cgi?id=136024
1860
1861         Reviewed by Filip Pizlo.
1862
1863         * WebView/WebFrameView.mm:
1864         (-[WebFrameView initWithFrame:]): Remove code that respects
1865         this key. It was SPI and is no longer used; also it was
1866         only relevant for versions of OS X that WebKit no longer supports.
1867         * WebView/WebPreferenceKeysPrivate.h: Remove declaration.
1868
1869 2014-08-15  Daniel Bates  <dabates@apple.com>
1870
1871         [iOS] Teach postprocess-headers.sh to remove code guarded by ENABLE_IOS_GESTURE_EVENTS
1872         and ENABLE_TOUCH_EVENTS if applicable
1873         https://bugs.webkit.org/show_bug.cgi?id=135993
1874
1875         Reviewed by Andy Estes.
1876
1877         Add support infrastructure to remove code from public and private API headers that is
1878         guarded by macro define ENABLE_{IOS_GESTURE, TOUCH}_EVENTS when these features are disabled.
1879
1880         We aren't using this functionality yet, but we will soon.
1881
1882         * postprocess-headers.sh:
1883
1884 2014-08-13  Wenson Hsieh  <wenson_hsieh@apple.com>
1885
1886         Enable CSS_SCROLL_SNAP for iOS
1887         https://bugs.webkit.org/show_bug.cgi?id=135915
1888
1889         Turn on CSS_SCROLL_SNAP for iOS and the iOS simulator.
1890
1891         Reviewed by Tim Horton.
1892
1893         * Configurations/FeatureDefines.xcconfig:
1894
1895 2014-08-13  Mark Rowe  <mrowe@apple.com>
1896
1897         <https://webkit.org/b/135911> WebKit should build on Yosemite with the public SDK.
1898
1899         Reviewed by Darin Adler.
1900
1901         * Misc/WebSharingServicePickerController.mm: Forward-declare some details related to NSSharingServicePicker.
1902
1903 2014-08-13  Timothy Hatcher  <timothy@apple.com>
1904
1905         Web Inspector: Workaround a NSWindow change to the title bar.
1906         https://bugs.webkit.org/show_bug.cgi?id=135880
1907
1908         Reviewed by Joseph Pecoraro.
1909
1910         * WebCoreSupport/WebInspectorClient.mm:
1911         (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier.
1912         (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier.
1913         (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10.
1914         Only call border thickness APIs on 10.9 and earlier.
1915
1916 2014-08-12  Peyton Randolph  <prandolph@apple.com>
1917
1918         Runtime switch for long mouse press gesture. Part of 135257 - Add long mouse press gesture.           
1919         https://bugs.webkit.org/show_bug.cgi?id=135682
1920
1921         Reviewed by Tim Horton.
1922
1923         * Configurations/FeatureDefines.xcconfig:
1924         Remove LONG_MOUSE_PRESS feature flag.
1925
1926 2014-08-11  Andy Estes  <aestes@apple.com>
1927
1928         [iOS] Get rid of iOS.xcconfig
1929         https://bugs.webkit.org/show_bug.cgi?id=135809
1930
1931         Reviewed by Joseph Pecoraro.
1932
1933         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
1934
1935         * Configurations/Base.xcconfig:
1936         * Configurations/iOS.xcconfig: Removed.
1937
1938 2014-08-10  Timothy Hatcher  <timothy@apple.com>
1939
1940         Web Inspector: new glyphs are visible on OS X 10.9 builds
1941         https://bugs.webkit.org/show_bug.cgi?id=135743
1942
1943         Reviewed by Joseph Pecoraro.
1944
1945         * WebCoreSupport/WebInspectorClient.mm:
1946         (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version.
1947
1948 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
1949
1950         Get rid of SCRIPTED_SPEECH
1951         https://bugs.webkit.org/show_bug.cgi?id=135729
1952
1953         Reviewed by Brent Fulgham.
1954
1955         * Configurations/FeatureDefines.xcconfig:
1956
1957 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
1958
1959         Get rid of INPUT_SPEECH
1960         https://bugs.webkit.org/show_bug.cgi?id=135672
1961
1962         Reviewed by Andreas Kling.
1963
1964         * Configurations/FeatureDefines.xcconfig:
1965
1966 2014-08-07  Timothy Hatcher  <timothy@apple.com>
1967
1968         Web Inspector: Update glyphs to be more like Xcode 6
1969         https://bugs.webkit.org/show_bug.cgi?id=135705
1970
1971         Reviewed by Joseph Pecoraro.
1972
1973         * Resources/Dock.pdf: Added.
1974         * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf.
1975         * WebCoreSupport/WebInspectorClient.mm:
1976         (-[WebInspectorWindowController window]): Use new images.
1977
1978 2014-08-06  Dean Jackson  <dino@apple.com>
1979
1980         ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED is not used anywhere. Remove it.
1981         https://bugs.webkit.org/show_bug.cgi?id=135675
1982
1983         Reviewed by Sam Weinig.
1984
1985         * Configurations/FeatureDefines.xcconfig:
1986
1987 2014-08-06  Wenson Hsieh  <wenson_hsieh@apple.com>
1988
1989         Implement parsing for CSS scroll snap points
1990         https://bugs.webkit.org/show_bug.cgi?id=134301
1991
1992         Reviewed by Dean Jackson.
1993
1994         * Configurations/FeatureDefines.xcconfig: Added ENABLE_CSS_SCROLL_SNAP
1995
1996 2014-08-06  Alexey Proskuryakov  <ap@apple.com>
1997
1998         REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language
1999         https://bugs.webkit.org/show_bug.cgi?id=135667
2000         <rdar://problem/17862892>
2001
2002         Reviewed by Anders Carlsson.
2003
2004         * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
2005         Moved implementation to WebCore, so that it can be shared with WebKit2.
2006
2007         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
2008         We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized.
2009
2010 2014-08-05  Peyton Randolph  <prandolph@apple.com>
2011
2012         Rename MAC_LONG_PRESS feature flag to LONG_MOUSE_PRESS.
2013         https://bugs.webkit.org/show_bug.cgi?id=135276
2014
2015         Reviewed by Beth Dakin.
2016
2017         * Configurations/FeatureDefines.xcconfig:
2018
2019 2014-08-04  Benjamin Poulain  <benjamin@webkit.org>
2020
2021         Add a flag for the CSS Selectors level 4 implementation
2022         https://bugs.webkit.org/show_bug.cgi?id=135535
2023
2024         Reviewed by Andreas Kling.
2025
2026         * Configurations/FeatureDefines.xcconfig:
2027
2028 2014-08-04  Benjamin Poulain  <bpoulain@apple.com>
2029
2030         Check for null frame when processing geolocation authorization request
2031         https://bugs.webkit.org/show_bug.cgi?id=135577
2032         <rdar://problem/17896295>
2033
2034         Reviewed by Geoffrey Garen.
2035
2036         * WebCoreSupport/WebGeolocationClient.mm:
2037         (WebGeolocationClient::requestPermission):
2038
2039 2014-08-02  Jeremy Jones  <jeremyj@apple.com>
2040
2041         Support both window and view based video fullscreen.
2042         https://bugs.webkit.org/show_bug.cgi?id=135525
2043
2044         Reviewed by Simon Fraser.
2045
2046         Parenting in the view instead of the window gives the fullscreen implementation more latitude 
2047         in how it implements the animation.
2048
2049         * WebView/WebView.mm:
2050         (-[WebView _enterFullscreenForNode:]): Use view instead of window.
2051
2052 2014-08-01  Dan Bernstein  <mitz@apple.com>
2053
2054         <rdar://problem/17891752> [iOS] WebKit links against libraries it doesn’t use
2055         https://bugs.webkit.org/show_bug.cgi?id=135536
2056
2057         Reviewed by Tim Horton.
2058
2059         * Configurations/WebKitLegacy.xcconfig: Removed -framework MobileAsset from
2060         OTHER_LDFLAGS_iphoneos.
2061
2062 2014-07-30  Andy Estes  <aestes@apple.com>
2063
2064         USE(CONTENT_FILTERING) should be ENABLE(CONTENT_FILTERING)
2065         https://bugs.webkit.org/show_bug.cgi?id=135439
2066
2067         Reviewed by Tim Horton.
2068
2069         We now support two different platform content filters, and will soon support a mock content filter (as part of
2070         webkit.org/b/128858). This makes content filtering a feature of WebKit, not just an adoption of a third-party
2071         library. ENABLE() is the correct macro to use for such a feature.
2072
2073         * Configurations/FeatureDefines.xcconfig:
2074
2075 2014-07-30  Andreas Kling  <akling@apple.com>
2076
2077         Static hash tables no longer need to be coupled with a VM.
2078         <https://webkit.org/b/135421>
2079
2080         Reviewed by Geoffrey Garen.
2081
2082         * Plugins/Hosted/ProxyInstance.mm:
2083         * Plugins/Hosted/ProxyRuntimeObject.mm:
2084
2085 2014-07-30  Dan Bernstein  <mitz@apple.com>
2086
2087         Updated for changes to the WebCore::Credential API.
2088         Work towards fixing https://bugs.webkit.org/show_bug.cgi?id=135327
2089
2090         Reviewed by Alexey Proskuryakov.
2091
2092         * Misc/WebDownload.mm:
2093         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Use new nsCredential
2094         getter.
2095         * Plugins/WebBaseNetscapePluginView.mm:
2096         (WebKit::getAuthenticationInfo): Ditto.
2097
2098 2014-07-27  Pratik Solanki  <psolanki@apple.com>
2099
2100         Remove unused preference keys
2101         https://bugs.webkit.org/show_bug.cgi?id=135280
2102
2103         Reviewed by Darin Adler.
2104
2105         * WebView/WebPreferenceKeysPrivate.h:
2106         * WebView/WebPreferences.mm:
2107         (+[WebPreferences initialize]):
2108         (-[WebPreferences _setPageCacheSize:]): Deleted.
2109         (-[WebPreferences _pageCacheSize]): Deleted.
2110         (-[WebPreferences _setObjectCacheSize:]): Deleted.
2111         (-[WebPreferences _objectCacheSize]): Deleted.
2112         * WebView/WebPreferencesPrivate.h:
2113
2114 2014-07-27  Filip Pizlo  <fpizlo@apple.com>
2115
2116         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
2117
2118     2014-07-25  Mark Lam  <mark.lam@apple.com>
2119     
2120             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
2121             <https://webkit.org/b/134273>
2122     
2123             Reviewed by Michael Saboff.
2124     
2125             * WebView/WebScriptDebugDelegate.mm:
2126             - Removed unneeded #include.
2127     
2128 2014-07-26  Filip Pizlo  <fpizlo@apple.com>
2129
2130         Unreviewed, roll out r171641-r171644. It broke some tests; will investigate and
2131         reland later.
2132
2133         * WebView/WebScriptDebugDelegate.mm:
2134
2135 2014-07-25  Filip Pizlo  <fpizlo@apple.com>
2136
2137         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
2138
2139     2014-07-25  Mark Lam  <mark.lam@apple.com>
2140     
2141             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
2142             <https://webkit.org/b/134273>
2143     
2144             Reviewed by Michael Saboff.
2145     
2146             * WebView/WebScriptDebugDelegate.mm:
2147             - Removed unneeded #include.
2148     
2149 2014-07-25  Jeremy Jones  <jeremyj@apple.com>
2150
2151         Parent fullscreen from window instead of view
2152         https://bugs.webkit.org/show_bug.cgi?id=135310
2153
2154         Reviewed by Jer Noble.
2155
2156         Parenting in the view causes an incorrect animation to fullscreen, and can cause 
2157         fullscreen to only expand to the size of the view instead of the whole window.
2158
2159         * WebView/WebView.mm:
2160         (-[WebView _enterFullscreenForNode:]): Pass window instead of view.
2161
2162 2014-07-24  Pratik Solanki  <psolanki@apple.com>
2163
2164         [iOS] Remove prefs to tweak cache values
2165         https://bugs.webkit.org/show_bug.cgi?id=135274
2166         <rdar://problem/17784826>
2167
2168         Reviewed by Alexey Proskuryakov.
2169
2170         Remove iOS specific code that used to look up user defaults to see if any cache values were
2171         overridden. This was added for testing, is not used any more and is actually harmful now. It
2172         can cause unnecessary memory churn when under memory pressure since we call [WebView _setCacheModel]
2173         as a means to clear out memory cache.
2174
2175         * WebView/WebPreferenceKeysPrivate.h:
2176         * WebView/WebPreferences.mm:
2177         (+[WebPreferences initialize]):
2178         (-[WebPreferences _setNSURLMemoryCacheSize:]): Deleted.
2179         (-[WebPreferences _NSURLMemoryCacheSize]): Deleted.
2180         (-[WebPreferences _setNSURLDiskCacheSize:]): Deleted.
2181         (-[WebPreferences _NSURLDiskCacheSize]): Deleted.
2182         * WebView/WebPreferencesPrivate.h:
2183         * WebView/WebView.mm:
2184         (+[WebView _setCacheModel:]):
2185
2186 2014-07-24  Peyton Randolph  <prandolph@apple.com>
2187
2188         Rename feature flag for long-press gesture on Mac.                                                                   
2189         https://bugs.webkit.org/show_bug.cgi?id=135259                                                                 
2190
2191         Reviewed by Beth Dakin.
2192
2193         * Configurations/FeatureDefines.xcconfig:
2194         Rename LINK_LONG_PRESS to MAC_LONG_PRESS.
2195
2196 2014-07-24  Dan Bernstein  <mitz@apple.com>
2197
2198         WebKit part of <rdar://problem/17766348> [Cocoa] WebCore::ProtectionSpace doesn’t preserve all NSURLProtectionSpace properties, such as the distinguishedNames array
2199         https://bugs.webkit.org/show_bug.cgi?id=135229
2200
2201         Reviewed by Alexey Proskuryakov.
2202
2203         * Misc/WebDownload.mm:
2204         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Chanegd to use the
2205         ProtectionSpace constructor that takes an NSURLProtectionSpace.
2206
2207         * Plugins/WebBaseNetscapePluginView.mm:
2208         (WebKit::getAuthenticationInfo): Ditto.
2209
2210         * WebCoreSupport/WebFrameLoaderClient.mm:
2211         (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Changed to use
2212         ProtectionSpace::nsSpace.
2213
2214 2014-07-23  Bem Jones-Bey  <bjonesbe@adobe.com>
2215
2216         Remove CSS_EXCLUSIONS compile flag and leftover code
2217         https://bugs.webkit.org/show_bug.cgi?id=135175
2218
2219         Reviewed by Zoltan Horvath.
2220
2221         At this point, the CSS_EXCLUSIONS flag guards nothing but some useless
2222         stubs. This removes the flag and the useless code.
2223
2224         * Configurations/FeatureDefines.xcconfig:
2225
2226 2014-07-22  Enrica Casucci  <enrica@apple.com>
2227
2228         REGRESSION (WebKit2): Selection inside accelerated overflow:scroll doesn't track scrolling.
2229         https://bugs.webkit.org/show_bug.cgi?id=135180
2230         <rdar://problem/16721055>
2231
2232         Reviewed by Simon Fraser.
2233
2234         * WebCoreSupport/WebEditorClient.h:
2235
2236 2014-07-22  Jeremy Jones  <jeremyj@apple.com>
2237
2238         Don't create new UIWindow for video fullscreen.
2239         https://bugs.webkit.org/show_bug.cgi?id=135038
2240
2241         Reviewed by Darin Adler.
2242
2243         Provide UIView to WebVideoFullscreenController
2244
2245         * WebView/WebView.mm:
2246         (-[WebView _enterFullscreenForNode:]): pass UIView instead of nil
2247
2248 2014-07-21  Pratik Solanki  <psolanki@apple.com>
2249
2250         Unreviewed iOS build fix after r171321.
2251
2252         * WebView/WebView.mm:
2253         (-[WebView _preferencesChanged:]):
2254
2255 2014-07-21  Beth Dakin  <bdakin@apple.com>
2256
2257         WK1 should always setAcceleratedCompositingForFixedPositionEnabled(true) on 
2258         Yosemite
2259         https://bugs.webkit.org/show_bug.cgi?id=135135
2260
2261         Reviewed by Darin Adler.
2262
2263         Get rid of the ChromeClient function, and enable the Setting instead.
2264         * WebCoreSupport/WebChromeClient.h:
2265         * WebCoreSupport/WebChromeClient.mm:
2266         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition): Deleted.
2267         * WebView/WebView.mm:
2268         (-[WebView _preferencesChanged:]):
2269
2270 2014-07-21  Beth Dakin  <bdakin@apple.com>
2271
2272         Build fix.
2273
2274         * WebCoreSupport/WebChromeClient.mm:
2275         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition):
2276
2277 2014-07-21  Beth Dakin  <bdakin@apple.com>
2278
2279         Put position:fixed elements into layers when a WK1 view is layer-backed
2280         https://bugs.webkit.org/show_bug.cgi?id=135075
2281
2282         Reviewed by Darin Adler.
2283
2284         Returns true when the WebHTMLView has a layer.
2285
2286         * WebCoreSupport/WebChromeClient.h:
2287         * WebCoreSupport/WebChromeClient.mm:
2288         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition):
2289
2290 2014-07-18  Andy Estes  <aestes@apple.com>
2291
2292         [iOS] Tapping "Allow Website" on a restricted page does not bring up the keypad
2293         https://bugs.webkit.org/show_bug.cgi?id=135072
2294         <rdar://problem/17528188>
2295
2296         Reviewed by David Kilzer.
2297
2298         * WebCoreSupport/WebFrameLoaderClient.h: Override contentFilterDidBlockLoad().
2299         * WebCoreSupport/WebFrameLoaderClient.mm:
2300         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Reset contentFilterForBlockedLoad to nullptr.
2301         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Check if this is navigation represents an
2302         unblock request and ignore if so.
2303         * WebView/WebFrame.mm:
2304         (-[WebFrame _contentFilterDidHandleNavigationAction:]): Called ContentFilter::handleUnblockRequestAndDispatchIfSuccessful().
2305         If the unblock is successful, reload the main frame.
2306         * WebView/WebFrameInternal.h:
2307
2308 2014-07-17  David Kilzer  <ddkilzer@apple.com>
2309
2310         SECTORDER_FLAGS should be defined in target's xcconfig file, not Base.xcconfig
2311         <http://webkit.org/b/135006>
2312
2313         Reviewed by Darin Adler.
2314
2315         * Configurations/Base.xcconfig: Move SECTORDER_FLAGS to
2316         WebKitLegacy.xcconfig.
2317         * Configurations/DebugRelease.xcconfig: Remove empty
2318         SECTORDER_FLAGS definition.
2319         * Configurations/WebKit.xcconfig: Removed.  Unused.
2320         * Configurations/WebKitLegacy.xcconfig: Use $(CONFIGURATION) so
2321         SECTORDER_FLAGS is only set on Production builds.
2322
2323 2014-07-17  Timothy Hatcher  <timothy@apple.com>
2324
2325         Make console.profile record to the Timeline.
2326
2327         https://bugs.webkit.org/show_bug.cgi?id=134643
2328
2329         Reviewed by Joseph Pecoraro.
2330
2331         * WebInspector/WebInspector.mm:
2332         (-[WebInspector isProfilingJavaScript]):
2333         (-[WebInspector toggleProfilingJavaScript:]):
2334         (-[WebInspector startProfilingJavaScript:]):
2335         (-[WebInspector stopProfilingJavaScript:]):
2336         (-[WebInspector isJavaScriptProfilingEnabled]):
2337         (-[WebInspector setJavaScriptProfilingEnabled:]):
2338
2339 2014-07-16  David Kilzer  <ddkilzer@apple.com>
2340
2341         [iOS] Update order file paths for WebKit and WebKit2
2342         <http://webkit.org/b/134993>
2343         <rdar://problem/17557776>
2344
2345         Reviewed by Darin Adler.
2346
2347         * Configurations/Base.xcconfig: Rename WebKit.order to
2348         WebKitLegacy.order.
2349
2350 2014-07-16  Brady Eidson  <beidson@apple.com>
2351
2352         Add WebSecurityOrigin "webSecurityOriginFromDatabaseIdentifier" SPI and change _websiteDataURLForContainerWithURL: SPI
2353         <rdar://problem/17454712> and https://bugs.webkit.org/show_bug.cgi?id=134984
2354
2355         Reviewed by Dan Bernstein.
2356
2357         * WebCoreSupport/WebSecurityOrigin.mm:
2358         (+[WebSecurityOrigin webSecurityOriginFromDatabaseIdentifier:]): Added.
2359         (-[WebSecurityOrigin initWithURL:]): Update using RefPtr API to avoid a ref().
2360
2361 2014-07-15  Myles C. Maxfield  <mmaxfield@apple.com>
2362
2363         [OSX] [WK1] Crash when exiting fullscreen
2364         https://bugs.webkit.org/show_bug.cgi?id=134943
2365
2366         Reviewed by Dean Jackson.
2367
2368         AppKit doesn't remove a view from the Key View Loop when removing it from its superview.
2369
2370         This codepath is already "tested" in fullscreen/full-screen-cancel.html, but because of our
2371         testing infrastructure, the broken codepath doesn't actually get hit in DRT. Therefore,
2372         there is no test.
2373
2374         * WebView/WebFullScreenController.mm:
2375         (-[WebFullScreenController enterFullScreen:]):
2376
2377         * WebCoreSupport/WebSecurityOriginPrivate.h:
2378
2379 2014-07-14  Bear Travis  <betravis@adobe.com>
2380
2381         [Feature Queries] Enable Feature Queries on Mac
2382         https://bugs.webkit.org/show_bug.cgi?id=134404
2383
2384         Reviewed by Antti Koivisto.
2385
2386         Enable Feature Queries on Mac and resume running the
2387         feature tests.
2388
2389         * Configurations/FeatureDefines.xcconfig: Turn on
2390         ENABLE_CSS3_CONDITIONAL_RULES.
2391
2392 2014-07-11  Zalan Bujtas  <zalan@apple.com>
2393
2394         Subpixel layout: return integral results for offset*, client*, scroll* by default.
2395         https://bugs.webkit.org/show_bug.cgi?id=134651
2396
2397         Reviewed by Simon Fraser.
2398
2399         Revert to returning integral values for Element.offset* client* scroll* by default.
2400         Fractional values break number of sites(tight design) and JS frameworks(fail to handle fractional values).
2401
2402         Since snapped dimension depends on both the original point and the width/height of the box,
2403         we need to call RenderBoxModelObject::pixelSnapped*() helpers, instead of round().
2404
2405         Covered by existing tests
2406
2407         * WebView/WebPreferences.mm:
2408         (+[WebPreferences initialize]):
2409
2410 2014-07-10  Joseph Pecoraro  <pecoraro@apple.com>
2411
2412         [Mac] NSWindow warning: adding an unknown subview opening detached Inspector
2413         https://bugs.webkit.org/show_bug.cgi?id=134813
2414
2415         Reviewed by Timothy Hatcher.
2416
2417         * WebCoreSupport/WebInspectorClient.mm:
2418         (-[WebInspectorWindowController window]):
2419         Use a selector that will avoid the warning message.
2420
2421 2014-07-09  Ryosuke Niwa  <rniwa@webkit.org>
2422
2423         REGRESSION(r167770): Cannot login in Evernote Safari extension
2424         https://bugs.webkit.org/show_bug.cgi?id=134776
2425
2426         Reviewed by Enrica Casucci.
2427
2428         Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
2429         so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
2430
2431         * WebView/WebView.mm:
2432         (-[WebView _windowChangedKeyState]):
2433
2434 2014-07-09  Enrica Casucci  <enrica@apple.com>
2435
2436         Implement Editor::fontAttributesForSelectionStart() or iOS.
2437         https://bugs.webkit.org/show_bug.cgi?id=134771
2438         <rdar://problem/16167838>
2439
2440         Reviewed by Ryosuke Niwa.
2441
2442         * WebView/WebViewPrivate.h:
2443
2444 2014-07-08  Tim Horton  <timothy_horton@apple.com>
2445
2446         [WK2] Expose a few drawing/compositing settings on WKPreferences(Private)
2447         https://bugs.webkit.org/show_bug.cgi?id=134645
2448
2449         Reviewed by Dan Bernstein.
2450
2451         * WebView/WebPreferences.mm:
2452         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
2453         Remove an extra unnecessary space.
2454
2455 2014-07-03  Daniel Bates  <dabates@apple.com>
2456
2457         Add WTF::move()
2458         https://bugs.webkit.org/show_bug.cgi?id=134500
2459
2460         Rubber-stamped by Anders Carlsson.
2461
2462         Substitute WTF::move() for std::move().
2463
2464         * History/WebHistoryItem.mm:
2465         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2466         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2467         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
2468         * Plugins/WebNetscapePluginView.mm:
2469         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
2470         * WebCoreSupport/WebFrameLoaderClient.mm:
2471         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2472         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2473         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2474         (WebFrameLoaderClient::dispatchWillSubmitForm):
2475         * WebCoreSupport/WebInspectorClient.mm:
2476         (WebInspectorClient::openInspectorFrontend):
2477         (WebInspectorFrontendClient::WebInspectorFrontendClient):
2478         * WebView/WebArchive.mm:
2479         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2480
2481 2014-07-01  Mark Rowe  <mrowe@apple.com>
2482
2483         <https://webkit.org/b/134522> Remove duplication in code that prepares the user agent string on Mac and iOS
2484
2485         Reviewed by Simon Fraser.
2486
2487         * WebView/WebView.mm:
2488         (webKitBundleVersionString): Return the entire CFBundleVersion now that WebCore handles formatting it.
2489         (+[WebView _standardUserAgentWithApplicationName:]):
2490
2491 2014-07-02  Dan Bernstein  <mitz@apple.com>
2492
2493         Remove some code only needed for versions of Safari that are no longer supported
2494         https://bugs.webkit.org/show_bug.cgi?id=134537
2495
2496         Reviewed by Anders Carlsson.
2497
2498         * History/WebHistoryItem.mm:
2499         * Misc/WebKitVersionChecks.h:
2500         * WebCoreSupport/WebSecurityOrigin.mm:
2501         (-[WebSecurityOrigin domain]): Deleted.
2502         * WebInspector/WebInspector.mm:
2503         (-[WebInspector showTimeline:]): Deleted.
2504         (+[WebInspector webInspector]): Deleted.
2505         (-[WebInspector setWebFrame:]): Deleted.
2506         (-[WebInspector window]): Deleted.
2507         (-[WebInspector showWindow:]): Deleted.
2508         * WebView/WebFrame.mm:
2509         (-[WebFrame reload]):
2510         * WebView/WebPDFView.mm:
2511         (-[WebPDFView menuForEvent:]):
2512         (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
2513         * WebView/WebView.mm:
2514         (-[WebView _initWithFrame:frameName:groupName:]):
2515         (-[WebView _preferencesChanged:]):
2516         (-[WebView initWithFrame:frameName:groupName:]):
2517         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
2518         (+[WebView _setAlwaysUseATSU:]): Deleted.
2519         (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
2520         * WebView/WebViewPrivate.h:
2521
2522 2014-07-01  Dan Bernstein  <mitz@apple.com>
2523
2524         Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1
2525         https://bugs.webkit.org/show_bug.cgi?id=134531
2526
2527         Reviewed by Daniel Bates.
2528
2529         * WebCoreSupport/WebChromeClient.mm:
2530         (WebChromeClient::exceededDatabaseQuota):
2531
2532 2014-06-29  Yoav Weiss  <yoav@yoav.ws>
2533
2534         Add support for HTMLImageElement's sizes attribute
2535         https://bugs.webkit.org/show_bug.cgi?id=133620
2536
2537         Reviewed by Dean Jackson.
2538
2539         Added an ENABLE_PICTURE_SIZES compile flag.
2540
2541         * Configurations/FeatureDefines.xcconfig:
2542
2543 2014-06-27  Sam Weinig  <sam@webkit.org>
2544
2545         InfoClick (from Nisus Software) dies on viewing found items
2546         <rdar://problem/17395601>
2547         https://bugs.webkit.org/show_bug.cgi?id=134410
2548
2549         Reviewed by Andy Estes.
2550
2551         InfoClick was calling -[WebPreferences setPrivateBrowsingEnabled:] before
2552         setting up a WebView (or anything else that would have set up WebKitSystemInterface),
2553         which now requires a set up WebKitSystemInterface. We can fix this by initializing
2554         it from +[WebPreferences initialize].
2555
2556         * WebView/WebPreferences.mm:
2557         (+[WebPreferences initialize]):
2558         Add call to InitWebCoreSystemInterface().
2559
2560         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
2561         Remove now unnecessary call to InitWebCoreSystemInterface().
2562
2563 2014-06-27  Peyton Randolph  <prandolph@apple.com>
2564
2565         Add feature flag for link long-press gesture.
2566         https://bugs.webkit.org/show_bug.cgi?id=134262
2567
2568         Reviewed by Enrica Casucci.
2569
2570         * Configurations/FeatureDefines.xcconfig:
2571         Add ENABLE_LINK_LONG_PRESS.
2572
2573 2014-06-26  Brady Eidson  <beidson@apple.com>
2574
2575         Remove use of PlatformStrategies for Gamepad API.
2576         https://bugs.webkit.org/show_bug.cgi?id=134348
2577
2578         Reviewed by Dean Jackson.
2579
2580         Remove all the GamepadStrategy gunk:
2581         * WebCoreSupport/WebHIDGamepadController.mm: Removed.
2582         * WebCoreSupport/WebPlatformStrategies.h:
2583         * WebCoreSupport/WebPlatformStrategies.mm:
2584         (WebPlatformStrategies::createGamepadStrategy): Deleted.
2585         (WebPlatformStrategies::startMonitoringGamepads): Deleted.
2586         (WebPlatformStrategies::stopMonitoringGamepads): Deleted.
2587         (WebPlatformStrategies::platformGamepads): Deleted.
2588
2589         Instead, install the HIDGamepadProvider as the shared GamepadProvider:
2590         * WebView/WebView.mm:
2591         (WebKitInitializeGamepadProviderIfNecessary):
2592         (-[WebView _commonInitializationWithFrameName:groupName:]):
2593
2594 2014-06-26  Joseph Pecoraro  <pecoraro@apple.com>
2595
2596         [iOS] Remove User Default for iOS TextField Debugging
2597         https://bugs.webkit.org/show_bug.cgi?id=134356
2598
2599         Reviewed by Timothy Hatcher.
2600
2601         * WebView/WebPreferenceKeysPrivate.h:
2602         * WebView/WebView.mm:
2603         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2604
2605 2014-06-25  Brady Eidson  <beidson@apple.com>
2606
2607         Add HID-based gamepad implementation for Mac
2608         https://bugs.webkit.org/show_bug.cgi?id=134324
2609
2610         Reviewed by Dean Jackson.
2611
2612         Add a class that acts as an intermediary between the GamepadStrategyClient
2613         and the HIDGamepadListener:
2614         * WebCoreSupport/WebHIDGamepadController.h:
2615         * WebCoreSupport/WebHIDGamepadController.mm:
2616         (WebHIDGamepadController::shared):
2617         (WebHIDGamepadController::WebHIDGamepadController):
2618         (WebHIDGamepadController::gamepadConnected):
2619         (WebHIDGamepadController::gamepadDisconnected):
2620         (WebHIDGamepadController::registerGamepadStrategyClient):
2621         (WebHIDGamepadController::unregisterGamepadStrategyClient):
2622
2623         Implement the strategies by using the HIDGamepadListener:
2624         * WebCoreSupport/WebPlatformStrategies.mm:
2625         (WebPlatformStrategies::startMonitoringGamepads):
2626         (WebPlatformStrategies::stopMonitoringGamepads):
2627         (WebPlatformStrategies::platformGamepads):
2628
2629 2014-06-25  Brady Eidson  <beidson@apple.com>
2630
2631         Add new platform gamepad abstractions
2632         https://bugs.webkit.org/show_bug.cgi?id=134325
2633
2634         Reviewed by Dean Jackson.
2635
2636         * WebCoreSupport/WebPlatformStrategies.h:
2637         * WebCoreSupport/WebPlatformStrategies.mm:
2638         (WebPlatformStrategies::createGamepadStrategy):
2639         (WebPlatformStrategies::startMonitoringGamepads):
2640         (WebPlatformStrategies::stopMonitoringGamepads):
2641         (WebPlatformStrategies::platformGamepads):
2642
2643 2014-06-25  Gavin Barraclough  <baraclough@apple.com>
2644
2645         Should _updateVisibilityState on view hide/unhide.
2646         https://bugs.webkit.org/show_bug.cgi?id=134314
2647         rdar://17171803
2648
2649         Reviewed by Sam Weinig.
2650
2651         * WebView/WebView.mm:
2652         (-[WebView viewDidHide]):
2653         (-[WebView viewDidUnhide]):
2654
2655 2014-06-25  Chris Fleizach  <cfleizach@apple.com>
2656
2657         Add an undo group for each dictated utterance in WebKit
2658         https://bugs.webkit.org/show_bug.cgi?id=134086
2659
2660         Reviewed by Enrica Casucci.
2661
2662         * WebView/WebHTMLView.mm:
2663         (-[WebHTMLView validAttributesForMarkedText]):
2664         (-[WebHTMLView insertText:]):
2665
2666 2014-06-25  Dana Burkart  <dburkart@apple.com>
2667
2668         Add support for 5-tuple versioning.
2669
2670         Reviewed by David Farler.
2671
2672         * Configurations/Version.xcconfig:
2673
2674 2014-06-25  Laszlo Gombos  <l.gombos@samsung.com>
2675
2676         Remove build guard for progress element
2677         https://bugs.webkit.org/show_bug.cgi?id=134292
2678
2679         Reviewed by Benjamin Poulain.
2680
2681         * Configurations/FeatureDefines.xcconfig:
2682
2683 2014-06-24  Benjamin Poulain  <bpoulain@apple.com>
2684
2685         WK1 WebFrameNetworkingContext cleanup: do not instanciate an empty NSString to create an empty WTF::String
2686         https://bugs.webkit.org/show_bug.cgi?id=134222
2687
2688         Reviewed by Andreas Kling.
2689
2690         * WebCoreSupport/WebFrameNetworkingContext.mm:
2691         (WebFrameNetworkingContext::sourceApplicationIdentifier):
2692
2693 2014-06-24  Joseph Pecoraro  <pecoraro@apple.com>
2694
2695         [iOS]: WK2 Inspector Node Highlighting
2696         https://bugs.webkit.org/show_bug.cgi?id=134257
2697
2698         Reviewed by Timothy Hatcher.
2699
2700         * WebInspector/WebNodeHighlightView.mm:
2701         (-[WebNodeHighlightView layoutSublayers:]):
2702
2703 2014-06-24  Brady Eidson  <beidson@apple.com>
2704
2705         Enable GAMEPAD in the Mac build, but disabled at runtime.
2706         https://bugs.webkit.org/show_bug.cgi?id=134255
2707
2708         Reviewed by Dean Jackson.
2709
2710         * Configurations/FeatureDefines.xcconfig:
2711
2712         * WebView/WebPreferenceKeysPrivate.h:
2713         * WebView/WebPreferences.mm:
2714         (-[WebPreferences gamepadsEnabled]):
2715         (-[WebPreferences setGamepadsEnabled:]):
2716         * WebView/WebPreferencesPrivate.h:
2717
2718         * WebView/WebView.mm:
2719         (-[WebView _preferencesChanged:]):
2720
2721 2014-06-24  Dan Bernstein  <mitz@apple.com>
2722
2723         Fixed the iOS build after r170358.
2724
2725         * WebView/WebView.mm:
2726         (kit):
2727
2728 2014-06-23  Anders Carlsson  <andersca@apple.com>
2729
2730         Remove unused history visit code from WebHistoryItem
2731         https://bugs.webkit.org/show_bug.cgi?id=134201
2732
2733         Reviewed by Sam Weinig.
2734
2735         * History/HistoryPropertyList.h:
2736         * History/HistoryPropertyList.mm:
2737         (HistoryPropertyListWriter::HistoryPropertyListWriter):
2738         (HistoryPropertyListWriter::writeHistoryItem):
2739         * History/WebHistory.mm:
2740         (-[WebHistoryPrivate visitedURL:withTitle:]):
2741         (-[WebHistoryPrivate addItem:discardDuplicate:]):
2742         (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
2743         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): Deleted.
2744         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]): Deleted.
2745         * History/WebHistoryInternal.h:
2746         * History/WebHistoryItem.mm:
2747         (-[WebHistoryItem copyWithZone:]):
2748         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2749         (-[WebHistoryItem _visitedWithTitle:]):
2750         (-[WebHistoryItem setVisitCount:]): Deleted.
2751         (-[WebHistoryItem _mergeAutoCompleteHints:]): Deleted.
2752         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]): Deleted.
2753         (-[WebHistoryItem _recordInitialVisit]): Deleted.
2754         (timeToDay): Deleted.
2755         (-[WebHistoryItem _padDailyCountsForNewVisit:]): Deleted.
2756         (-[WebHistoryItem _collapseDailyVisitsToWeekly]): Deleted.
2757         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]): Deleted.
2758         (-[WebHistoryItem _setLastVisitedTimeInterval:]): Deleted.
2759         * History/WebHistoryItemInternal.h:
2760         * History/WebHistoryItemPrivate.h:
2761         * WebCoreSupport/WebFrameLoaderClient.mm:
2762         (WebFrameLoaderClient::updateGlobalHistory):
2763
2764 2014-06-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2765
2766         REGRESSION(r170235): Remove incorrect ifdef guard
2767         https://bugs.webkit.org/show_bug.cgi?id=134246
2768
2769         Reviewed by Csaba Osztrogonác.
2770
2771         * WebView/WebView.mm:
2772         (-[WebView _visibilityState]):
2773
2774 2014-06-23  Anders Carlsson  <andersca@apple.com>
2775
2776         Fix build.
2777
2778         * WebCoreSupport/WebSystemInterface.mm:
2779         (InitWebCoreSystemInterface):
2780
2781 2014-06-21  Dan Bernstein  <mitz@apple.com>
2782
2783         Tried to fix the iOS build after r170235.
2784
2785         * WebView/WebView.mm:
2786
2787 2014-06-21  Brady Eidson  <beidson@apple.com>
2788
2789         Gamepad API - Deprecate the existing implementation
2790         https://bugs.webkit.org/show_bug.cgi?id=134108
2791
2792         Reviewed by Timothy Hatcher.
2793
2794         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
2795         -Move some implementation files into a "deprecated" subdirectory.
2796
2797         * Configurations/FeatureDefines.xcconfig:
2798
2799 2014-06-21  Commit Queue  <commit-queue@webkit.org>
2800
2801         Unreviewed, rolling out r170244.
2802         https://bugs.webkit.org/show_bug.cgi?id=134157
2803
2804         GTK/EFL bindings generator works differently, making this
2805         patch not work there.  Will fix entire patch after a rollout.
2806         (Requested by bradee-oh on #webkit).
2807
2808         Reverted changeset:
2809
2810         "Gamepad API - Deprecate the existing implementation"
2811         https://bugs.webkit.org/show_bug.cgi?id=134108
2812         http://trac.webkit.org/changeset/170244
2813
2814 2014-06-21  Brady Eidson  <beidson@apple.com>
2815
2816         Gamepad API - Deprecate the existing implementation
2817         https://bugs.webkit.org/show_bug.cgi?id=134108
2818
2819         Reviewed by Timothy Hatcher.
2820
2821         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
2822         -Add the "Deprecated" suffix to some implementation files
2823
2824         * Configurations/FeatureDefines.xcconfig:
2825
2826 2014-06-21  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2827
2828         Removing PAGE_VISIBILITY_API compile guard.
2829         https://bugs.webkit.org/show_bug.cgi?id=133844
2830
2831         Reviewed by Gavin Barraclough.
2832
2833         * Configurations/FeatureDefines.xcconfig:
2834         * WebView/WebView.mm:
2835         (-[WebView _preferencesChanged:]):
2836         (-[WebView _visibilityState]):
2837
2838 2014-06-18  Anders Carlsson  <andersca@apple.com>
2839
2840         Make FrameLoadType a strongly typed enum
2841         https://bugs.webkit.org/show_bug.cgi?id=134047
2842
2843         Reviewed by Andreas Kling.
2844
2845         * WebView/WebFrame.mm:
2846         (toWebFrameLoadType):
2847         (-[WebFrame _loadType]):
2848         * WebView/WebView.mm:
2849         (-[WebView _loadBackForwardListFromOtherView:]):
2850         (-[WebView goToBackForwardItem:]):
2851
2852 2014-06-18  Daniel Bates  <dabates@apple.com>
2853
2854         REGRESSION (r167856): Unable to log into HSBC app
2855         https://bugs.webkit.org/show_bug.cgi?id=133991
2856         <rdar://problem/17044839>
2857
2858         Reviewed by David Kilzer.
2859
2860         Only enable the setting allowNavigationToInvalidURL for iOS app linked against WebKit/UIKit before iOS 8.
2861
2862         * Misc/WebKitVersionChecks.h: Added macro constant WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
2863         * WebView/WebView.mm:
2864         (-[WebView _preferencesChanged:]): Enable or disable the setting allowNavigationToInvalidURL as appropriate.
2865
2866 2014-06-18  Anders Carlsson  <andersca@apple.com>
2867
2868         Adopt modern C++11 loops and fix WebArchive creation functions
2869         https://bugs.webkit.org/show_bug.cgi?id=134032
2870
2871         Reviewed by Andreas Kling.
2872
2873         * WebView/WebArchive.mm:
2874         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2875         * WebView/WebDataSource.mm:
2876         (-[WebDataSource subresources]):
2877
2878 2014-06-15  Anders Carlsson  <andersca@apple.com>
2879
2880         Add an autorelease() member function to RetainPtr
2881         https://bugs.webkit.org/show_bug.cgi?id=133929
2882
2883         Reviewed by Dan Bernstein.
2884
2885         * WebView/WebDataSource.mm:
2886         (-[WebDataSource data]):
2887         * WebView/WebHTMLView.mm:
2888         (-[WebHTMLView _selectionDraggingImage]):
2889         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
2890         * WebView/WebResource.mm:
2891         (-[WebResource data]):
2892
2893 2014-06-11  Jeremy Jones  <jeremyj@apple.com>
2894
2895         WebFrameNetworkContext should not have a sourceApplicationIdentifier in WK1.
2896         https://bugs.webkit.org/show_bug.cgi?id=133772
2897
2898         Reviewed by Jer Noble.
2899
2900         Return empty string from sourceApplicationIdentifier for WK1.
2901
2902         * WebCoreSupport/WebFrameNetworkingContext.mm:
2903         (WebFrameNetworkingContext::sourceApplicationIdentifier):
2904
2905 2014-06-10  Timothy Horton  <timothy_horton@apple.com>
2906
2907         Factor repeated CFRunLoopObserver code out
2908         https://bugs.webkit.org/show_bug.cgi?id=133690
2909
2910         Reviewed by Simon Fraser.
2911
2912         * WebView/WebViewData.h:
2913
2914 2014-06-05  Pratik Solanki  <psolanki@apple.com>
2915
2916         Remove unsused method _setAcceleratedImageDecoding
2917         https://bugs.webkit.org/show_bug.cgi?id=133554
2918
2919         Reviewed by Jon Honeycutt.
2920
2921         * WebView/WebView.mm:
2922         (+[WebView _setAcceleratedImageDecoding:]): Deleted.
2923         * WebView/WebViewPrivate.h:
2924
2925 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
2926
2927         [iOS][WK2] Add device orientation
2928         https://bugs.webkit.org/show_bug.cgi?id=133530
2929
2930         Reviewed by Tim Horton.
2931
2932         * WebView/WebFrame.mm:
2933         (-[WebFrame deviceOrientationChanged]):
2934         (-[WebFrame sendOrientationChangeEvent:]):
2935         * WebView/WebFramePrivate.h:
2936
2937 2014-05-31  Anders Carlsson  <andersca@apple.com>
2938
2939         Change DeferrableOneShotTimer to use std::function instead of being a class template
2940         https://bugs.webkit.org/show_bug.cgi?id=133423
2941
2942         Reviewed by Antti Koivisto.
2943
2944         * WebView/WebView.mm:
2945         (+[WebView _setCacheModel:]):
2946
2947 2014-05-27  Jon Lee  <jonlee@apple.com>
2948
2949         Update ENABLE(MEDIA_SOURCE) on Mac
2950         https://bugs.webkit.org/show_bug.cgi?id=133141
2951
2952         Reviewed by Darin Adler.
2953
2954         * Configurations/FeatureDefines.xcconfig:
2955
2956 2014-05-27  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
2957
2958         Remove BLOB guards
2959         https://bugs.webkit.org/show_bug.cgi?id=132863
2960
2961         Reviewed by Csaba Osztrogonác.
2962
2963         * Configurations/FeatureDefines.xcconfig:
2964         * WebView/WebView.mm:
2965         (+[WebView _canHandleRequest:forMainFrame:]):
2966
2967 2014-05-24  Chris Fleizach  <cfleizach@apple.com>
2968
2969         AX: fix coordinate mapping for iOS accessibility
2970         https://bugs.webkit.org/show_bug.cgi?id=133188
2971
2972         Reviewed by Sam Weinig.
2973
2974         * WebCoreSupport/WebChromeClient.h:
2975         * WebCoreSupport/WebChromeClient.mm:
2976         (WebChromeClient::accessibilityScreenToRootView):
2977         (WebChromeClient::rootViewToAccessibilityScreen):
2978
2979 2014-05-23  Jeremy Jones  <jeremyj@apple.com>
2980
2981         Hide fullscreen immediately when switching tabs.
2982         https://bugs.webkit.org/show_bug.cgi?id=133239
2983
2984         Reviewed by Eric Carlson.
2985
2986         Renamed a function to better describe it's new functionality.
2987
2988         * WebView/WebView.mm:
2989         (-[WebView viewDidMoveToWindow]):
2990         now calls: requestHideAndExitFullscreen
2991
2992 2014-05-20  Dean Jackson  <dino@apple.com>
2993
2994         [Mac] Allow popup menus to override default appearance
2995         https://bugs.webkit.org/show_bug.cgi?id=133129
2996
2997         Reviewed by Tim Horton.
2998
2999         Replace the call to wkPopupMenuWithSize with wkPopupMenu, now
3000         with extra parameters to indicate the control size and whether
3001         or not to draw the arrows at the end.
3002
3003         * WebCoreSupport/PopupMenuMac.mm:
3004         (PopupMenuMac::show):
3005
3006 2014-05-20  Eric Carlson  <eric.carlson@apple.com>
3007
3008         [Mac] do not deactivate an audio session that has running I/O
3009         https://bugs.webkit.org/show_bug.cgi?id=133127
3010
3011         Reviewed by Jer Noble.
3012
3013         * WebView/WebView.mm:
3014         (-[WebView _commonInitializationWithFrameName:groupName:]): Settings::setShouldManageAudioSession
3015             renamed to setShouldManageAudioSessionCategory, deal with it.
3016
3017 2014-05-19  Brady Eidson  <beidson@apple.com>
3018
3019         Use different AppKit API for image control menus.
3020         <rdar://problem/16807828> and https://bugs.webkit.org/show_bug.cgi?id=133087
3021
3022         Reviewed by Tim Horton.
3023
3024         For image control menus, use popUpMenuPositioningItem: instead of popUpContextMenu:
3025         
3026         * WebCoreSupport/WebContextMenuClient.h:
3027         * WebCoreSupport/WebContextMenuClient.mm:
3028         (WebContextMenuClient::contextMenuForEvent):
3029         (WebContextMenuClient::showContextMenu):
3030
3031 2014-05-19  Andy Estes  <aestes@apple.com>
3032
3033         Set WebKitSuppressesIncrementalRenderingKey to NO by default on both Mac and iOS
3034         https://bugs.webkit.org/show_bug.cgi?id=133073
3035
3036         Reviewed by Simon Fraser.
3037
3038         * WebView/WebPreferences.mm:
3039         (+[WebPreferences initialize]):
3040
3041 2014-05-18  Anders Carlsson  <andersca@apple.com>
3042
3043         Bring back two NSString category methods on iOS
3044         https://bugs.webkit.org/show_bug.cgi?id=133055
3045         <rdar://problem/16951983>
3046
3047         Reviewed by Adele Peterson.
3048
3049         * Misc/WebNSURLExtras.h:
3050         * Misc/WebNSURLExtras.mm:
3051         (-[NSString _webkit_unescapedQueryValue]):
3052         (-[NSString _webkit_queryKeysAndValues]):
3053
3054 2014-05-18  Rik Cabanier  <cabanier@adobe.com>
3055
3056         support for navigator.hardwareConcurrency
3057         https://bugs.webkit.org/show_bug.cgi?id=132588
3058
3059         Reviewed by Filip Pizlo.
3060
3061         * Configurations/FeatureDefines.xcconfig:
3062
3063 2014-05-17  Zalan Bujtas  <zalan@apple.com>
3064
3065         Subpixel rendering: Add subpixelCSSOMElementMetricsEnabled to WK1 WebPreferences.
3066         https://bugs.webkit.org/show_bug.cgi?id=133029
3067
3068         Reviewed by Simon Fraser.
3069
3070         To match the WK2 preferences API.
3071
3072         * WebView/WebPreferenceKeysPrivate.h:
3073         * WebView/WebPreferences.mm:
3074         (+[WebPreferences initialize]):
3075         (-[WebPreferences subpixelCSSOMElementMetricsEnabled]):
3076         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
3077         * WebView/WebPreferencesPrivate.h:
3078         * WebView/WebView.mm:
3079         (-[WebView _preferencesChanged:]):
3080
3081 2014-05-16  Simon Fraser  <simon.fraser@apple.com>
3082
3083         Remove "region-based columns" prefs
3084         https://bugs.webkit.org/show_bug.cgi?id=133006
3085         <rdar://problem/16945824>
3086
3087         Reviewed by Dave Hyatt.
3088
3089         Remove "region-based columns" prefs and related code, since this is only
3090         way to render columns now.
3091
3092         * WebView/WebPreferenceKeysPrivate.h:
3093         * WebView/WebPreferences.mm:
3094         (+[WebPreferences initialize]):
3095         (-[WebPreferences setRegionBasedColumnsEnabled:]): Deleted.
3096         (-[WebPreferences regionBasedColumnsEnabled]): Deleted.
3097         * WebView/WebPreferencesPrivate.h:
3098         * WebView/WebView.mm:
3099         (-[WebView _preferencesChanged:]):
3100
3101 2014-05-15  Brady Eidson  <beidson@apple.com>
3102
3103         Crash in [WebSharingServicePickerController clear]
3104         <rdar://problem/16879073> and https://bugs.webkit.org/show_bug.cgi?id=132968
3105
3106         Reviewed by Tim Horton.
3107
3108         * Misc/WebSharingServicePickerController.mm:
3109         (-[WebSharingServicePickerController clear]): Add a RetainPtr protector so this object
3110           isn’t dealloc’ed partway through.
3111
3112 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
3113
3114         Initialize the WebKitRegionBasedColumnsEnabled pref on iOS WK1
3115         https://bugs.webkit.org/show_bug.cgi?id=132969
3116
3117         Reviewed by Dan Bernstein.
3118         
3119         Move this outside the #if !PLATFORM(IOS) block.
3120
3121         * WebView/WebPreferences.mm:
3122         (+[WebPreferences initialize]):
3123
3124 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
3125
3126         Clean up -[WebView _preferencesChanged]
3127         https://bugs.webkit.org/show_bug.cgi?id=132967
3128
3129         Reviewed by Sam Weinig.
3130         
3131         -[WebView _preferencesChanged] was a horrible mess of #ifdefs. Clean this up by
3132         moving all the #if PLATFORM() code together, and moving all the feature-define related
3133         settings to the end.
3134         
3135         No behavior changes, checked by diffing the resulting Settings with and without
3136         the patch, on OS X and iOS.
3137
3138         * WebView/WebView.mm:
3139         (-[WebView _preferencesChanged:]):
3140
3141 2014-05-15  Alex Christensen  <achristensen@webkit.org>
3142
3143         Add pointer lock to features without enabling it.
3144         https://bugs.webkit.org/show_bug.cgi?id=132961
3145
3146         Reviewed by Sam Weinig.
3147
3148         * Configurations/FeatureDefines.xcconfig:
3149         Added ENABLE_POINTER_LOCK to list of features.
3150         * WebView/WebPDFView.mm:
3151         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3152         Added extra parameters needed when pointer lock is enabled.
3153
3154 2014-05-14  Brady Eidson  <beidson@apple.com>
3155
3156         Implement NSSharingServiceDelegate method "transitionImageForShareItem"
3157         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
3158
3159         Reviewed by Tim Horton.
3160
3161         * Misc/WebSharingServicePickerController.mm:
3162         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
3163
3164         * WebCoreSupport/WebContextMenuClient.h:
3165         * WebCoreSupport/WebContextMenuClient.mm:
3166         (WebContextMenuClient::renderedImageForControlledImage): Paint the entire content rect for the controlled image
3167           into an ImageBuffer, then return the resulting NSImage. This only paints the image itself and not any
3168           overlapping content by setting the selection and appropriate painting mode.
3169
3170 2014-05-14  Brady Eidson  <beidson@apple.com>
3171
3172         sourceFrameOnScreenForShareItem: can be off by a pixel
3173         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
3174
3175         Reviewed by Simon Fraser.
3176
3177         In a land of LayoutUnits and sub-pixel rendering, converting between IntRects and
3178         FloatRects can be error prone. So we now try to minimize such conversions.
3179
3180         * Misc/WebSharingServicePickerController.mm:
3181         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
3182
3183         * WebCoreSupport/WebContextMenuClient.h:
3184         * WebCoreSupport/WebContextMenuClient.mm:
3185         (WebContextMenuClient::clientFloatRectForNode): Split this into a separate utility method
3186           as it will be shared with other code very soon. Instead of using absoluteBoundingBoxRect()
3187           which does lossy float->int conversions, try to keep things in terms of FloatRects as
3188           much as possible.
3189         (WebContextMenuClient::screenRectForHitTestNode): Call clientFloatRectForNode to get the
3190           FloatRect, then perform the lossy rounding conversion to an IntRect only once.
3191
3192 2014-05-14  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
3193
3194         Remove CSS_STICKY_POSITION guards
3195         https://bugs.webkit.org/show_bug.cgi?id=132676
3196
3197         Reviewed by Simon Fraser.
3198
3199         * Configurations/FeatureDefines.xcconfig:
3200
3201 2014-05-14  Antti Koivisto  <antti@apple.com>
3202
3203         GIF animations don't restart after scrolling with iOS WebKit1
3204         https://bugs.webkit.org/show_bug.cgi?id=132900
3205         <rdar://problem/16490858>
3206
3207         Reviewed by Andreas Kling.
3208
3209         * WebView/WebView.mm:
3210         (-[WebView _didFinishScrollingOrZooming]):
3211         
3212             Check if the animations need to be restarted after scrolling finishes.
3213
3214 2014-05-09  Joseph Pecoraro  <pecoraro@apple.com>
3215
3216         Web Inspector: Allow Remote Inspector to entitlement check UIProcess through WebProcess
3217         https://bugs.webkit.org/show_bug.cgi?id=132409
3218
3219         Reviewed by Timothy Hatcher.
3220
3221         Simplify the legacy iOS UIWebViewController case by passing on
3222         the host process pid and audit_token.
3223
3224         * WebView/WebView.mm:
3225         (-[WebView _setHostApplicationProcessIdentifier:auditToken:]):
3226         (-[WebView setHostApplicationBundleId:name:]): Deleted.
3227         (-[WebView hostApplicationBundleId]): Deleted.
3228         (-[WebView hostApplicationName]): Deleted.
3229         * WebView/WebViewData.h:
3230         * WebView/WebViewData.mm:
3231         (-[WebViewPrivate dealloc]):
3232         * WebView/WebViewPrivate.h:
3233
3234 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
3235
3236         [iOS] Switch geolocation to an explicit authorization query model
3237         https://bugs.webkit.org/show_bug.cgi?id=132717
3238
3239         Reviewed by Sam Weinig.
3240
3241         Since there is no warmup code, WebGeolocationPolicyListener no longer need to know about the provider,
3242         which is awesome :)
3243
3244         * WebCoreSupport/WebGeolocationClient.mm:
3245         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
3246         (-[WebGeolocationPolicyListener deny]):
3247         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]):
3248         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:]):
3249         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:provider:]): Deleted.
3250         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:provider:]): Deleted.
3251         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:provider:]): Deleted.
3252         * WebView/WebViewPrivate.h:
3253
3254 2014-05-08  Jer Noble  <jer.noble@apple.com>
3255
3256         [Mac, iOS] Add source application accounting to AVURLAsset.
3257         https://bugs.webkit.org/show_bug.cgi?id=132637
3258
3259         Reviewed by Eric Carlson.
3260
3261         Add accessor for sourceApplicationIdentifier.
3262
3263         * WebCoreSupport/WebFrameNetworkingContext.h:
3264         * WebCoreSupport/WebFrameNetworkingContext.mm:
3265         (WebFrameNetworkingContext::sourceApplicationIdentifier):
3266
3267 2014-05-08  Anders Carlsson  <andersca@apple.com>
3268
3269         Use a different install name for WebKitLegacy.framework for staged framework builds
3270         https://bugs.webkit.org/show_bug.cgi?id=132711
3271         <rdar://problem/16850620>
3272
3273         Reviewed by Dan Bernstein.
3274
3275         * Configurations/WebKitLegacy.xcconfig:
3276
3277 2014-05-08  Brady Eidson  <beidson@apple.com>
3278
3279         Wrap a new class definition with __has_include()
3280         <rdar://problem/16852395> and https://bugs.webkit.org/show_bug.cgi?id=132694
3281
3282         Reviewed by Tim Horton.
3283
3284         * Misc/WebSharingServicePickerController.mm:
3285
3286 2014-05-07  Pratik Solanki  <psolanki@apple.com>
3287
3288         Use system defaults for hardware jpeg decoding
3289         https://bugs.webkit.org/show_bug.cgi?id=132661
3290         <rdar://problem/11348201>
3291
3292         Reviewed by Tim Horton.
3293
3294         Remove code that explicitly disabled hardware image decoding. Let the system decide what to do.
3295
3296         * WebView/WebView.mm:
3297         (+[WebView _setAcceleratedImageDecoding:]):
3298         (+[WebView _acceleratedImageDecoding]): Deleted.
3299         * WebView/WebViewPrivate.h:
3300
3301 2014-05-07  Brent Fulgham  <bfulgham@apple.com>
3302
3303         [Mac, iOS] REGRESSION: WK2 YouTube support
3304         https://bugs.webkit.org/show_bug.cgi?id=132568
3305         <rdar://problem/11464344>
3306
3307         Reviewed by Darin Adler.
3308
3309         * Misc/WebNSURLExtras.h:
3310         * Misc/WebNSURLExtras.mm: Remove code that has been converted to C++
3311         and added to YouTubePluginReplacement.cpp.
3312         (-[NSURL _webkit_youTubeURL]):
3313         (-[NSString _webkit_queryKeysAndValues]):
3314         (createYouTubeURL): Deleted.
3315         (-[NSString _webkit_unescapedQueryValue]): Deleted.
3316
3317 2014-05-07  Jeremy Jones  <jeremyj@apple.com>
3318
3319         HTMLMediaElement should exitFullscreen when view is removed from the window.
3320         https://bugs.webkit.org/show_bug.cgi?id=132506
3321
3322         Reviewed by Tim Horton.
3323
3324         * WebView/WebView.mm:
3325         (-[WebView viewDidMoveToWindow]):
3326         Request WebVideoFullscreenController to exitFullscreen when view is removed from the window.
3327
3328 2014-05-07  Brady Eidson  <beidson@apple.com>
3329
3330         Image menu is offset by the amount the view is scrolled
3331         <rdar://problem/16818966> and https://bugs.webkit.org/show_bug.cgi?id=132663
3332
3333         Reviewed by Tim Horton.
3334
3335         * WebCoreSupport/WebContextMenuClient.mm:
3336         (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, 
3337           and skip the [NSView convertPoint:toView:] step.
3338
3339 2014-05-07  Simon Fraser  <simon.fraser@apple.com>
3340
3341         WebKit1 is flashy when compositing layers come and go
3342         https://bugs.webkit.org/show_bug.cgi?id=132655
3343
3344         Reviewed by Sam Weinig.
3345         
3346         In r166117 I removed code to flush compositing layers in FrameView::paintContents(),
3347         which caused problems when painting iframes. However, this removed a flush
3348         that WebKit1 relied on to flush compositing layers when painting, which caused
3349         flashing when compositing layers come and go, and broke WebView snapshotting
3350         in some cases.
3351         
3352         Fix by adding back compositing layer flushing, but this time in WebKit1's
3353         -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree.
3354
3355         * WebView/WebHTMLView.mm:
3356         (-[WebHTMLView viewWillDraw]):
3357         * WebView/WebView.mm:
3358         (-[WebView _flushCompositingChanges]):
3359         * WebView/WebViewInternal.h:
3360         * WebView/WebViewPrivate.h:
3361
3362 2014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
3363
3364         [CSS Grid Layout] Remove runtime feature
3365         https://bugs.webkit.org/show_bug.cgi?id=132382
3366
3367         Reviewed by Benjamin Poulain.
3368
3369         Remove cssGridLayoutEnabled setting usage.
3370
3371         * WebKit.order:
3372         * WebView/WebPreferenceKeysPrivate.h:
3373         * WebView/WebPreferences.mm:
3374         (+[WebPreferences initialize]):
3375         (-[WebPreferences cssGridLayoutEnabled]): Deleted.
3376         (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted.
3377         * WebView/WebPreferencesPrivate.h:
3378         * WebView/WebView.mm:
3379         (-[WebView _preferencesChanged:]):
3380
3381 2014-05-06  Dean Jackson  <dino@apple.com>
3382
3383         [Mac] Allow focus rings to redraw themselves if necessary
3384         https://bugs.webkit.org/show_bug.cgi?id=132593
3385
3386         Reviewed by Simon Fraser.
3387
3388         * WebCoreSupport/WebSystemInterface.mm:
3389         (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime.
3390
3391 2014-05-06  Brady Eidson  <beidson@apple.com>
3392
3393         Don't select an image that is about to have its menu shown.
3394         <rdar://problem/16807845> and https://bugs.webkit.org/show_bug.cgi?id=132579
3395
3396         Reviewed by Tim Horton.
3397
3398         * Misc/WebSharingServicePickerController.mm:
3399         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
3400           Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard.
3401
3402 2014-05-06  Anders Carlsson  <andersca@apple.com>
3403
3404         Move the WebKitLegacy header check to the right file
3405         https://bugs.webkit.org/show_bug.cgi?id=132620
3406         <rdar://problem/16815716>
3407
3408         Reviewed by Dan Bernstein.
3409
3410         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make:
3411         * WebKitLegacy/WebKit.h:
3412
3413 2014-05-06  Anders Carlsson  <andersca@apple.com>
3414
3415         Put WebKitPluginHost.app in WebKitLegacy.framework
3416         https://bugs.webkit.org/show_bug.cgi?id=132592
3417         <rdar://problem/15920046>
3418
3419         Reviewed by Dan Bernstein.
3420
3421         * Plugins/Hosted/NetscapePluginHostManager.mm:
3422         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3423
3424 2014-05-06  Darin Adler  <darin@apple.com>
3425
3426         [iOS] Fix two more AdoptCF I missed in my last patch.
3427
3428         * WebView/WebHTMLView.mm:
3429         (imageFromRect): Use adoptCF instead of AdoptCF.
3430
3431 2014-05-05  Andreas Kling  <akling@apple.com>
3432
3433         Unreviewed, rolling out r168334.
3434
3435         Broke builds.
3436
3437         Reverted changeset:
3438
3439         "Put WebKitPluginHost.app in WebKitLegacy.framework"
3440         https://bugs.webkit.org/show_bug.cgi?id=132592
3441         http://trac.webkit.org/changeset/168334
3442
3443 2014-05-05  Anders Carlsson  <andersca@apple.com>
3444
3445         Put WebKitPluginHost.app in WebKitLegacy.framework
3446         https://bugs.webkit.org/show_bug.cgi?id=132592
3447         <rdar://problem/15920046>
3448
3449         Reviewed by Dan Bernstein.
3450
3451         * Plugins/Hosted/NetscapePluginHostManager.mm:
3452         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3453
3454 2014-05-02  Brady Eidson  <beidson@apple.com>
3455
3456         Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:.
3457         <rdar://problem/16797425> and https://bugs.webkit.org/show_bug.cgi?id=132484
3458
3459         Reviewed by Tim Horton.
3460
3461         * Misc/WebSharingServicePickerController.mm:
3462         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
3463
3464         * WebCoreSupport/WebContextMenuClient.h:
3465         * WebCoreSupport/WebContextMenuClient.mm:
3466         (WebContextMenuClient::screenRectForHitTestNode):
3467
3468 2014-05-02  Brady Eidson  <beidson@apple.com>
3469
3470         Crash inside [WebSharingServicePickerController clear]
3471         <rdar://problem/16791944> and https://bugs.webkit.org/show_bug.cgi?id=132477
3472
3473         Reviewed by Tim Horton.
3474
3475         * Misc/WebSharingServicePickerController.h:
3476         * Misc/WebSharingServicePickerController.mm:
3477         (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient.
3478
3479         * WebCoreSupport/WebContextMenuClient.h:
3480         * WebCoreSupport/WebContextMenuClient.mm:
3481         (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here.
3482
3483 2014-05-01  Tim Horton  <timothy_horton@apple.com>
3484
3485         More 32-bit build fixes.
3486
3487         * Misc/WebSharingServicePickerController.mm:
3488         (-[WebSharingServicePickerController sharingService:didShareItems:]):
3489
3490 2014-05-01  Tim Horton  <timothy_horton@apple.com>
3491
3492         Temporarily "fix" the 32-bit build.
3493
3494         * Misc/WebSharingServicePickerController.mm:
3495         This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process.
3496
3497 2014-05-01  Brady Eidson  <beidson@apple.com>
3498
3499         Update service picker API usage.
3500         <rdar://problem/16772674> and https://bugs.webkit.org/show_bug.cgi?id=132452
3501
3502         Reviewed by Tim Horton.
3503
3504         * Misc/WebSharingServicePickerController.h:
3505         * Misc/WebSharingServicePickerController.mm:
3506         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
3507           Factor out a common "didShare" handler that optionally validates whether the data represents an image.
3508         (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling
3509           on off-main thread call back to the main thread.
3510
3511         * WebCoreSupport/WebContextMenuClient.mm:
3512         (WebContextMenuClient::contextMenuForEvent): Update API usage.
3513
3514 2014-05-01  Anders Carlsson  <andersca@apple.com>
3515
3516         Support OS-version-specific install paths for WebKit.framework
3517         https://bugs.webkit.org/show_bug.cgi?id=132448
3518         <rdar://problem/16784932>
3519
3520         Reviewed by Dan Bernstein.
3521
3522         * WebKitLegacy/WebKit.m:
3523         Add version specific install names.
3524
3525 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
3526
3527         Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
3528         Clean up unnecessary methods in the BackForwardClient interface
3529
3530         It broke a regression test and an API test.
3531
3532         * History/WebBackForwardList.mm:
3533         (-[WebBackForwardList initWithBackForwardList:]):
3534         (-[WebBackForwardList init]):
3535         (-[WebBackForwardList dealloc]):
3536         (-[WebBackForwardList finalize]):
3537         (-[WebBackForwardList setPageCacheSize:]):
3538         (-[WebBackForwardList pageCacheSize]):
3539         * History/WebBackForwardListInternal.h:
3540         * WebCoreSupport/WebFrameLoaderClient.mm:
3541         (WebFrameLoaderClient::canCachePage):
3542         * WebView/WebFrameView.mm:
3543         (-[WebFrameView keyDown:keyDown:]):
3544         * WebView/WebView.mm:
3545         (-[WebView _loadBackForwardListFromOtherView:]):
3546         (-[WebView initWithCoder:]):
3547         (-[WebView encodeWithCoder:]):
3548         (-[WebView backForwardList]):
3549         (-[WebView setMaintainsBackForwardList:]):
3550
3551 2014-04-30  Simon Fraser  <simon.fraser@apple.com>
3552
3553         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO
3554         https://bugs.webkit.org/show_bug.cgi?id=132396
3555
3556         Reviewed by Eric Carlson.
3557
3558         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code.
3559
3560         * Configurations/FeatureDefines.xcconfig:
3561         * Plugins/WebPluginContainerPrivate.h:
3562         * Plugins/WebPluginController.h:
3563         * Plugins/WebPluginController.mm:
3564         (-[WebPluginController dealloc]):
3565         (-[WebPluginController plugInsAreRunning]):
3566         (-[WebPluginController stopAllPlugins]):
3567         (-[WebPluginController stopPluginsForPageCache]):
3568         (-[WebPluginController restorePluginsFromCache]):
3569         (-[WebPluginController addPlugin:]):
3570         (-[WebPluginController destroyPlugin:]):
3571         (-[WebPluginController destroyAllPlugins]):
3572         (-[NSView isMediaPlugInProxyView]): Deleted.
3573         (-[NSView setIsMediaPlugInProxyView:]): Deleted.
3574         (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted.
3575         (+[WebPluginController pluginViewHidden:]): Deleted.
3576         (mediaProxyClient): Deleted.
3577         (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted.
3578         (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted.
3579         * WebCoreSupport/WebFrameLoaderClient.h:
3580         * WebCoreSupport/WebFrameLoaderClient.mm:
3581         (pluginView):
3582         * WebView/WebView.mm:
3583         (-[WebView _preferencesChanged:]):
3584         (-[WebView _videoProxyPluginForMIMEType:]): Deleted.
3585         * WebView/WebViewInternal.h:
3586
3587 2014-04-30  Anders Carlsson  <andersca@apple.com>
3588
3589         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
3590         https://bugs.webkit.org/show_bug.cgi?id=132399
3591         <rdar://problem/15920046>
3592
3593         Reviewed by Dan Bernstein.
3594
3595         * Carbon/CarbonUtils.h:
3596         * Carbon/HIViewAdapter.h:
3597         * Carbon/HIWebView.h:
3598         Import WebKitLegacy headers instead of WebKit headers.
3599
3600         * Configurations/WebKit.xcconfig:
3601         Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
3602         add the relevant definitions needed for re-exporting WebKitLegacy.framework.
3603
3604         * Configurations/WebKitLegacy.xcconfig:
3605         Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
3606
3607         * DOM/WebDOMOperations.h:
3608         * DOM/WebDOMOperations.mm:
3609         * DOM/WebDOMOperationsInternal.h:
3610         * DOM/WebDOMOperationsPrivate.h:
3611         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
3612         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
3613         * DefaultDelegates/WebDefaultEditingDelegate.m:
3614         * History/WebBackForwardListInternal.h:
3615         * History/WebBackForwardListPrivate.h:
3616         * History/WebHistoryItemPrivate.h:
3617         * History/WebHistoryPrivate.h:
3618         * History/WebURLsWithTitles.m:
3619         Import WebKitLegacy headers instead of WebKit headers.
3620
3621         * MigrateHeaders.make:
3622         Update header paths now that all WebKitLegacy headers are private.
3623         Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
3624         
3625         * Misc/WebCoreStatistics.h:
3626         * Misc/WebDownload.h:
3627         * Misc/WebDownload.mm:
3628         * Misc/WebDownloadInternal.h:
3629         * Misc/WebElementDictionary.mm:
3630         * Misc/WebIconDatabasePrivate.h:
3631         * Misc/WebKit.h:
3632         * Misc/WebKitErrors.m:
3633         * Misc/WebKitErrorsPrivate.h:
3634         * Misc/WebKitNSStringExtras.mm:
3635         * Misc/WebLocalizableStrings.mm:
3636         * Misc/WebNSDataExtras.m:
3637         * Misc/WebNSDictionaryExtras.m:
3638         * Misc/WebNSEventExtras.m:
3639         * Misc/WebNSFileManagerExtras.mm:
3640         * Misc/WebNSImageExtras.m:
3641         * Misc/WebNSPasteboardExtras.mm:
3642         * Misc/WebNSViewExtras.h:
3643         * Misc/WebNSViewExtras.m:
3644         * Panels/WebAuthenticationPanel.m:
3645         * Panels/WebPanelAuthenticationHandler.m:
3646         * Plugins/Hosted/HostedNetscapePluginStream.h:
3647         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3648         * Plugins/Hosted/WebKitPluginAgent.defs:
3649         * Plugins/Hosted/WebKitPluginAgentReply.defs:
3650         * Plugins/Hosted/WebKitPluginClient.defs:
3651         * Plugins/Hosted/WebKitPluginHost.defs:
3652         * Plugins/Hosted/WebKitPluginHostTypes.defs:
3653         * Plugins/WebBaseNetscapePluginView.mm:
3654         * Plugins/WebBasePluginPackage.h:
3655         * Plugins/WebBasePluginPackage.mm:
3656         * Plugins/WebNetscapeContainerCheckPrivate.h:
3657         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
3658         * Plugins/WebNetscapePluginStream.h:
3659         * Plugins/WebNetscapePluginView.h:
3660         * Plugins/WebNetscapePluginView.mm:
3661         * Plugins/WebPlugin.h:
3662         * Plugins/WebPluginController.h:
3663         * Plugins/WebPluginDatabase.h:
3664         * Plugins/WebPluginPackage.h:
3665         * Plugins/WebPluginPackage.mm:
3666         * Plugins/WebPluginViewFactory.h:
3667         * Plugins/WebPluginViewFactoryPrivate.h:
3668         * Plugins/npapi.mm:
3669         * Storage/WebDatabaseManagerPrivate.h:
3670         * WebCoreSupport/WebContextMenuClient.mm:
3671         * WebCoreSupport/WebFrameLoaderClient.mm:
3672         * WebCoreSupport/WebFrameNetworkingContext.mm:
3673         * WebCoreSupport/WebGeolocationClient.mm:
3674         * WebCoreSupport/WebInspectorClient.mm:
3675         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
3676         * WebCoreSupport/WebKeyGenerator.mm:
3677         * WebInspector/WebInspectorPrivate.h:
3678         * WebInspector/WebNodeHighlight.h:
3679         * WebInspector/WebNodeHighlightView.h:
3680         Import WebKitLegacy headers instead of WebKit headers.
3681         
3682         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
3683         New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
3684         imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
3685         On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
3686         and getting rid of C SPI imports.
3687         
3688         * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
3689         This is no longer needed.
3690         
3691         * WebKitLegacy/WebKit.h: Added.
3692         New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
3693
3694         * WebKitLegacy/WebKit.m:
3695         This is an empty file so we'll have something to link.
3696
3697         * WebKitLegacy/WebKitPrivate.h:
3698         New SPI header that imports the private headers of the modern API.
3699
3700         * WebView/WebDataSource.h:
3701         * WebView/WebDataSource.mm:
3702         * WebView/WebDataSourcePrivate.h:
3703         * WebView/WebDelegateImplementationCaching.h:
3704         * WebView/WebDocument.h:
3705         * WebView/WebDocumentInternal.h:
3706         * WebView/WebDocumentPrivate.h:
3707         * WebView/WebEditingDelegate.h:
3708         * WebView/WebEditingDelegatePrivate.h:
3709         * WebView/WebFrameLoadDelegate.h:
3710         * WebView/WebFrameLoadDelegatePrivate.h:
3711         * WebView/WebFramePrivate.h:
3712         * WebView/WebFrameView.h:
3713         * WebView/WebFrameViewInternal.h:
3714         * WebView/WebFrameViewPrivate.h:
3715         * WebView/WebHTMLRepresentation.h:
3716         * WebView/WebHTMLRepresentation.mm:
3717         * WebView/WebHTMLRepresentationPrivate.h:
3718         * WebView/WebHTMLView.h:
3719         * WebView/WebHTMLView.mm:
3720         * WebView/WebHTMLViewPrivate.h:
3721         * WebView/WebPDFView.h:
3722         * WebView/WebPolicyDelegatePrivate.h:
3723         * WebView/WebPreferencesPrivate.h:
3724         * WebView/WebResourcePrivate.h:
3725         * WebView/WebUIDelegate.h:
3726         * WebView/WebUIDelegatePrivate.h:
3727         * WebView/WebView.h:
3728         * WebView/WebView.mm:
3729         * WebView/WebViewPrivate.h:
3730         Import WebKitLegacy headers instead of WebKit headers.
3731
3732         * migrate-headers.sh:
3733         Derived sources are put in DerivedSources/WebKitLegacy now.
3734
3735 2014-04-30  David Hyatt  <hyatt@apple.com>
3736
3737         [New Multicolumn] Enable new multi-column mode
3738         https://bugs.webkit.org/show_bug.cgi?id=131825
3739
3740         Reviewed by Simon Fraser.
3741
3742         * WebView/WebPreferences.mm:
3743         (+[WebPreferences initialize]):
3744
3745 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
3746
3747         Clean up unnecessary methods in the BackForwardClient interface
3748         https://bugs.webkit.org/show_bug.cgi?id=131637
3749
3750         Reviewed by Andreas Kling.
3751
3752         BackForwardClient instances now have ownership lifetime semantics, so
3753         WebBackForwardList now explicitly deletes its inner BackForwardList.
3754
3755         Convert uses of WebCore::BackForwardList through backForward().client() to
3756         accept references instead of pointers.
3757
3758         Use BackForwardController methods rather than directly operating with the
3759         BackForwardClient where possible.
3760
3761         Remove page cache-related methods that are not used anywhere and that call
3762         BackForwardClient::page(), which is removed by this change.
3763
3764         * History/WebBackForwardList.mm:
3765         (-[WebBackForwardList initWithBackForwardList:]):
3766         (-[WebBackForwardList init]):
3767         (-[WebBackForwardList dealloc]):
3768         (-[WebBackForwardList finalize]):
3769         (-[WebBackForwardList setPageCacheSize]): Deleted.
3770         (-[WebBackForwardList pageCacheSize]): Deleted.
3771         (-[WebBackForwardList itemAtIndex:]): Deleted.
3772         * History/WebBackForwardListInternal.h:
3773         * WebCoreSupport/WebFrameLoaderClient.mm:
3774         (WebFrameLoaderClient::canCachePage):
3775         * WebView/WebFrameView.mm:
3776         (-[WebFrameView keyDown:keyDown:]):
3777         * WebView/WebView.mm:
3778         (-[WebView _loadBackForwardListFromOtherView:]):
3779         (-[WebView initWithCoder:]):
3780         (-[WebView encodeWithCoder:]):
3781         (-[WebView backForwardList]):
3782         (-[WebView setMaintainsBackForwardList:]):
3783
3784 2014-04-29  Sam Weinig  <sam@webkit.org>
3785
3786         [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
3787         https://bugs.webkit.org/show_bug.cgi?id=132359
3788
3789         Reviewed by Darin Adler.
3790
3791         * WebView/WebHTMLView.mm:
3792         (imageFromRect):
3793         (selectionImage):
3794         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
3795         Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
3796         is still unimplemented on iOS.
3797
3798         * WebView/WebView.mm:
3799         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3800         Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
3801         to ensure that the snapshot is the correct size.
3802
3803 2014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
3804
3805         [CSS Grid Layout] Enable runtime feature by default
3806         https://bugs.webkit.org/show_bug.cgi?id=132189
3807
3808         Reviewed by Benjamin Poulain.
3809
3810         * WebView/WebPreferences.mm:
3811         (+[WebPreferences initialize]): Remove unneeded changes that
3812         enable/disable the runtime feature depending on the compilation flag.
3813         And set it to true by default.
3814
3815 2014-04-29  Filip Pizlo  <fpizlo@apple.com>
3816
3817         Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
3818         https://bugs.webkit.org/show_bug.cgi?id=112840
3819
3820         Rubber stamped by Geoffrey Garen.
3821
3822         * Configurations/FeatureDefines.xcconfig:
3823
3824 2014-04-29  Brady Eidson  <beidson@apple.com>
3825
3826         Change Image Controls replacement to use selection and paste
3827         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
3828
3829         Reviewed by Tim Horton.
3830
3831         * Misc/WebSharingServicePickerController.mm:
3832         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
3833           replacement data to a special pasteboard, then replace the current selection from
3834           that pasteboard.
3835
3836 2014-04-27  Sam Weinig  <sam@webkit.org>
3837
3838         [iOS WebKit2] Add support for text autosizing
3839         <rdar://problem/16545245>
3840         https://bugs.webkit.org/show_bug.cgi?id=132237
3841
3842         Reviewed by Tim Horton.
3843
3844         * WebView/WebFrame.mm:
3845         (-[WebFrame _setTextAutosizingWidth:]):
3846         Forward setting of the text autosizing width to the Page.
3847
3848 2014-04-25  Dean Jackson  <dino@apple.com>
3849
3850         Allow a platform-specific size enumeration to be passed into popup-menu display
3851         https://bugs.webkit.org/show_bug.cgi?id=132195
3852
3853         Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
3854
3855         Platforms like OS X use a set of predefined sizes for built-in controls
3856         used for <select>: normal, small and mini. Expose that information to
3857         the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
3858         into the platform code in WebKitSystemInterface.
3859
3860         * WebCoreSupport/PopupMenuMac.mm:
3861         (PopupMenuMac::show): Convert the WebCore menu size type into the
3862         WebCoreSystemInterface type.
3863
3864 2014-04-24  Commit Queue  <commit-queue@webkit.org>
3865
3866         Unreviewed, rolling out r167700.
3867         https://bugs.webkit.org/show_bug.cgi?id=132142
3868
3869         Incorrectly reverted the change in r167547 for
3870         webkit.org/b/131898 (Requested by rniwa on #webkit).
3871
3872         Reverted changeset:
3873
3874         "Cursor doesn't change back to pointer when leaving the Safari
3875         window"
3876         https://bugs.webkit.org/show_bug.cgi?id=132038
3877         http://trac.webkit.org/changeset/167700
3878
3879 2014-04-24  Brady Eidson  <beidson@apple.com>
3880
3881         Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
3882         https://bugs.webkit.org/show_bug.cgi?id=132155
3883
3884         Reviewed by Tim Horton.
3885
3886         * Configurations/FeatureDefines.xcconfig:
3887         * Misc/WebSharingServicePickerController.h:
3888         * Misc/WebSharingServicePickerController.mm:
3889         * WebCoreSupport/WebContextMenuClient.h:
3890         * WebCoreSupport/WebContextMenuClient.mm:
3891         (WebContextMenuClient::contextMenuForEvent):
3892         * WebView/WebPreferences.mm:
3893         (+[WebPreferences initialize]):
3894         * WebView/WebView.mm:
3895         (-[WebView _preferencesChanged:]):
3896
3897 2014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
3898
3899         Text caret disappears in Mail after returning from another application
3900         https://bugs.webkit.org/show_bug.cgi?id=132111
3901
3902         Reviewed by Darin Adler.
3903
3904         The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
3905
3906         Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
3907         notifications as done in WebKit2 since they DO get called upon deminiaturization.
3908
3909         * WebView/WebView.mm:
3910         (-[WebView addWindowObserversForWindow:]):
3911         (-[WebView removeWindowObservers]):
3912         (-[WebView _windowKeyStateChanged:]):
3913         (-[WebView _windowChangedKeyState]): Deleted.
3914
3915 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
3916
3917         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
3918         https://bugs.webkit.org/show_bug.cgi?id=132110
3919
3920         Reviewed by Tim Horton.
3921
3922         Updates callers to use '.' instead of '->'.
3923
3924         No new tests are necessary because there should be no behavior change.
3925
3926         * Misc/WebCoreStatistics.mm:
3927         (+[WebCoreStatistics cachedFontDataCount]):
3928         (+[WebCoreStatistics cachedFontDataInactiveCount]):
3929         (+[WebCoreStatistics purgeInactiveFontData]):
3930         * WebView/WebView.mm:
3931         (+[WebView purgeInactiveFontData]):
3932
3933 2014-04-24  Eric Carlson  <eric.carlson@apple.com>
3934
3935         [iOS] Manage AudioSession category according to media type
3936         https://bugs.webkit.org/show_bug.cgi?id=132096
3937
3938         Reviewed by Jer Noble.
3939
3940         * WebView/WebView.mm:
3941         (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
3942             WebCore to manage the AudioSession when running in MobileSafari.
3943
3944 2014-04-23  Andreas Kling  <akling@apple.com>
3945
3946         Remove Apple Dictionary workaround in WebFrameLoaderClient.
3947         <https://webkit.org/b/132095>
3948
3949         Kill a hack to work around a WK1 client bug that got fixed years ago.
3950         See <rdar://problem/6471058> for backstory.
3951
3952         Reviewed by Darin Adler.
3953
3954         * WebCoreSupport/WebFrameLoaderClient.mm:
3955         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
3956         (WebFrameLoaderClient::dispatchWillSendRequest):
3957         (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
3958         (applyAppleDictionaryApplicationQuirk): Deleted.
3959
3960 2014-04-23  Anders Carlsson  <andersca@apple.com>
3961
3962         Don't migrate the WKView.h header from WebCore to WebKit
3963         https://bugs.webkit.org/show_bug.cgi?id=132086
3964
3965         Reviewed by Dan Bernstein.
3966
3967         * MigrateHeaders.make:
3968         Remove WKView.h from the list of headers to migrate.
3969
3970         * WebView/WebView.mm:
3971         Import WKView.h.
3972
3973 2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
3974
3975         Cursor doesn't change back to pointer when leaving the Safari window
3976         https://bugs.webkit.org/show_bug.cgi?id=132038
3977
3978         Reviewed by Alexey Proskuryakov.
3979
3980         Since the cursor type is now updated asynchronously after r147739,
3981         [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
3982         evalutes to false depending on how fast cursor is moving.
3983
3984         Instead, check whether the NSWindow of the WebView is the key window or not since
3985         key window appears to control the cursor style in Cocoa as far as I've tested:
3986         https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
3987
3988         * WebCoreSupport/WebChromeClient.mm:
3989         (WebChromeClient::setCursor):
3990
3991 2014-04-22  Commit Queue  <commit-queue@webkit.org>
3992
3993         Unreviewed, rolling out r167674.
3994         https://bugs.webkit.org/show_bug.cgi?id=132025
3995
3996         Going a different way with this (Requested by bradee-oh on
3997         #webkit).
3998
3999         Reverted changeset:
4000
4001         "Change Image Controls replacement to use selection and paste"
4002         https://bugs.webkit.org/show_bug.cgi?id=131992
4003         http://trac.webkit.org/changeset/167674
4004
4005 2014-04-22  Brady Eidson  <beidson@apple.com>
4006
4007         Change Image Controls replacement to use selection and paste
4008         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
4009
4010         Reviewed by Tim Horton.
4011
4012         * Misc/WebSharingServicePickerController.mm:
4013         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
4014           replacement data to a special pasteboard, then replace the current selection from
4015           that pasteboard.
4016
4017 2014-04-21  Eric Carlson  <eric.carlson@apple.com>
4018
4019         [Mac] implement WebKitDataCue
4020         https://bugs.webkit.org/show_bug.cgi?id=131799
4021
4022         Reviewed by Dean Jackson.
4023
4024         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
4025
4026 2014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
4027
4028         Remove unused WebKitSystemInterface functions
4029         https://bugs.webkit.org/show_bug.cgi?id=131938
4030
4031         Reviewed by Alexey Proskuryakov.
4032
4033         * WebCoreSupport/WebSystemInterface.mm:
4034         (InitWebCoreSystemInterface):
4035
4036 2014-04-21  Zan Dobersek  <zdobersek@igalia.com>
4037
4038         Move cross-port Source/WebCore/page/ code to std::unique_ptr
4039         https://bugs.webkit.org/show_bug.cgi?id=130534
4040
4041         Reviewed by Darin Adler.
4042
4043         * WebView/WebHTMLRepresentation.mm:
4044         (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
4045
4046 2014-04-19  Darin Adler  <darin@apple.com>
4047
4048         [Mac] WebView adjusts the cursor even when another window is in front
4049         https://bugs.webkit.org/show_bug.cgi?id=131898
4050         rdar://problem/14619911
4051
4052         Reviewed by Dan Bernstein.
4053
4054         * WebCoreSupport/WebChromeClient.mm:
4055         (WebChromeClient::setCursor): Added a check that the window is under the cursor
4056         and do nothing if it's not.
4057
4058 2014-04-18  Commit Queue  <commit-queue@webkit.org>
4059
4060         Unreviewed, rolling out r167527.
4061         https://bugs.webkit.org/show_bug.cgi?id=131883
4062
4063         Broke 32-bit build (Requested by ap on #webkit).
4064
4065         Reverted changeset:
4066
4067         "[Mac] implement WebKitDataCue"
4068         https://bugs.webkit.org/show_bug.cgi?id=131799
4069         http://trac.webkit.org/changeset/167527
4070
4071 2014-04-18  Eric Carlson  <eric.carlson@apple.com>
4072
4073         [Mac] implement WebKitDataCue
4074         https://bugs.webkit.org/show_bug.cgi?id=131799
4075
4076         Reviewed by Dean Jackson.
4077
4078         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
4079
4080 2014-04-17  Daniel Bates  <dabates@apple.com>
4081
4082         [iOS] Hook up screen.{availHeight, availWidth, height, width}
4083         https://bugs.webkit.org/show_bug.cgi?id=131821
4084         <rdar://problem/16413795>
4085
4086         Reviewed by Benjamin Poulain and Tim Horton.
4087
4088         Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
4089
4090         Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
4091
4092         * WebCoreSupport/WebSystemInterface.mm:
4093         (InitWebCoreSystemInterface):
4094
4095 2014-04-17  Darin Adler  <darin@apple.com>
4096
4097         Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
4098         https://bugs.webkit.org/show_bug.cgi?id=131785
4099         rdar://problem/16003108
4100
4101         Reviewed by Brady Eidson.
4102         
4103         * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
4104
4105 2014-04-16  Tim Horton  <timothy_horton@apple.com>
4106
4107         Images dragged from WebKit1 on 2x displays are too big
4108         https://bugs.webkit.org/show_bug.cgi?id=131775
4109         <rdar://problem/15933525>
4110
4111         Reviewed by Simon Fraser.
4112
4113         * WebCoreSupport/WebDragClient.mm:
4114         (WebDragClient::startDrag):
4115         Scale the drag image's logical size down by the device scale factor
4116         in WebKit1 just like we do in WebKit2.
4117
4118 2014-04-13  Andy Estes  <aestes@apple.com>
4119
4120         [QuickLook] Move file system-related code into WebKit
4121         https://bugs.webkit.org/show_bug.cgi?id=131597
4122
4123         Reviewed by Dan Bernstein.
4124
4125         Moved file system and WebKit1-only code from QuickLookHandle into a new
4126         QuickLookHandleClient subclass.
4127
4128         * WebCoreSupport/WebFrameLoaderClient.h:
4129         * WebCoreSupport/WebFrameLoaderClient.mm:
4130
4131 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
4132
4133         Eliminate DragSession structure
4134         https://bugs.webkit.org/show_bug.cgi?id=131465
4135
4136         Reviewed by Benjamin Poulain.
4137
4138         * WebView/WebView.mm:
4139         (-[WebView draggingEntered:]):
4140         (-[WebView draggingUpdated:]):
4141
4142 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
4143
4144         Rename some dragging functions
4145         https://bugs.webkit.org/show_bug.cgi?id=131460
4146
4147         Reviewed by Tim Horton.
4148
4149         Renamed performDrag to performDragOperation.
4150
4151         * WebView/WebView.mm: (-[WebView performDragOperation:]):
4152
4153 2014-04-08  Jon Lee  <jonlee@apple.com>
4154
4155         Turn MSE on by default
4156         https://bugs.webkit.org/show_bug.cgi?id=131313
4157         <rdar://problem/16525223>
4158
4159         Reviewed by Jer Noble.
4160
4161         * Configurations/FeatureDefines.xcconfig:
4162         * WebView/WebPreferences.mm:
4163         (+[WebPreferences initialize]): Set default to true.
4164
4165 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
4166
4167         Rename Clipboard to DataTransfer
4168         https://bugs.webkit.org/show_bug.cgi?id=131371
4169
4170         Reviewed by Anders Carlsson.
4171
4172         * WebCoreSupport/WebDragClient.h:
4173         * WebCoreSupport/WebDragClient.mm:
4174         (WebDragClient::willPerformDragSourceAction):
4175         (WebDragClient::startDrag):
4176         * WebView/WebPDFView.mm:
4177
4178 2014-04-08  Dan Bernstein  <mitz@apple.com>
4179
4180         WebKit part of [Cocoa] Add WKFormDelegate
4181         https://bugs.webkit.org/show_bug.cgi?id=131343
4182
4183         Reviewed by Anders Carlsson.
4184
4185         * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
4186
4187 2014-04-08  Daniel Bates  <dabates@apple.com>
4188
4189         Fallback to default storage session when there isn't a valid session ID
4190         https://bugs.webkit.org/show_bug.cgi?id=131326
4191         <rdar://problem/16231679>
4192
4193         Reviewed by Alexey Proskuryakov.
4194
4195         Fixes and issue where we may use the wrong storage session after disabling
4196         a private browsing session.
4197
4198         Currently WebKit1 and WebKit2 without NetworkProcess assume that there
4199         is always a non-null private browsing storage session so long as the page
4200         has a non-default session ID. Instead we should only use the private browsing
4201         storage session when it's non-null and the page has a non-default session ID;
4202         otherwise, we should use the default storage session. This change will make
4203         the behavior in WebKit1 and WebKit2 without NetworkProcess consistent with
4204         the behavior in WebKit2 with NetworkProcess.
4205
4206         * WebCoreSupport/WebFrameNetworkingContext.mm: