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