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