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