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