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