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