REGRESSION(r167770): Cannot login in Evernote Safari extension
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-07-09  Ryosuke Niwa  <rniwa@webkit.org>
2
3         REGRESSION(r167770): Cannot login in Evernote Safari extension
4         https://bugs.webkit.org/show_bug.cgi?id=134776
5
6         Reviewed by Enrica Casucci.
7
8         Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
9         so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
10
11         * WebView/WebView.mm:
12         (-[WebView _windowChangedKeyState]):
13
14 2014-07-09  Enrica Casucci  <enrica@apple.com>
15
16         Implement Editor::fontAttributesForSelectionStart() or iOS.
17         https://bugs.webkit.org/show_bug.cgi?id=134771
18         <rdar://problem/16167838>
19
20         Reviewed by Ryosuke Niwa.
21
22         * WebView/WebViewPrivate.h:
23
24 2014-07-08  Tim Horton  <timothy_horton@apple.com>
25
26         [WK2] Expose a few drawing/compositing settings on WKPreferences(Private)
27         https://bugs.webkit.org/show_bug.cgi?id=134645
28
29         Reviewed by Dan Bernstein.
30
31         * WebView/WebPreferences.mm:
32         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
33         Remove an extra unnecessary space.
34
35 2014-07-03  Daniel Bates  <dabates@apple.com>
36
37         Add WTF::move()
38         https://bugs.webkit.org/show_bug.cgi?id=134500
39
40         Rubber-stamped by Anders Carlsson.
41
42         Substitute WTF::move() for std::move().
43
44         * History/WebHistoryItem.mm:
45         (-[WebHistoryItem initFromDictionaryRepresentation:]):
46         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
47         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
48         * Plugins/WebNetscapePluginView.mm:
49         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
50         * WebCoreSupport/WebFrameLoaderClient.mm:
51         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
52         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
53         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
54         (WebFrameLoaderClient::dispatchWillSubmitForm):
55         * WebCoreSupport/WebInspectorClient.mm:
56         (WebInspectorClient::openInspectorFrontend):
57         (WebInspectorFrontendClient::WebInspectorFrontendClient):
58         * WebView/WebArchive.mm:
59         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
60
61 2014-07-01  Mark Rowe  <mrowe@apple.com>
62
63         <https://webkit.org/b/134522> Remove duplication in code that prepares the user agent string on Mac and iOS
64
65         Reviewed by Simon Fraser.
66
67         * WebView/WebView.mm:
68         (webKitBundleVersionString): Return the entire CFBundleVersion now that WebCore handles formatting it.
69         (+[WebView _standardUserAgentWithApplicationName:]):
70
71 2014-07-02  Dan Bernstein  <mitz@apple.com>
72
73         Remove some code only needed for versions of Safari that are no longer supported
74         https://bugs.webkit.org/show_bug.cgi?id=134537
75
76         Reviewed by Anders Carlsson.
77
78         * History/WebHistoryItem.mm:
79         * Misc/WebKitVersionChecks.h:
80         * WebCoreSupport/WebSecurityOrigin.mm:
81         (-[WebSecurityOrigin domain]): Deleted.
82         * WebInspector/WebInspector.mm:
83         (-[WebInspector showTimeline:]): Deleted.
84         (+[WebInspector webInspector]): Deleted.
85         (-[WebInspector setWebFrame:]): Deleted.
86         (-[WebInspector window]): Deleted.
87         (-[WebInspector showWindow:]): Deleted.
88         * WebView/WebFrame.mm:
89         (-[WebFrame reload]):
90         * WebView/WebPDFView.mm:
91         (-[WebPDFView menuForEvent:]):
92         (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
93         * WebView/WebView.mm:
94         (-[WebView _initWithFrame:frameName:groupName:]):
95         (-[WebView _preferencesChanged:]):
96         (-[WebView initWithFrame:frameName:groupName:]):
97         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
98         (+[WebView _setAlwaysUseATSU:]): Deleted.
99         (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
100         * WebView/WebViewPrivate.h:
101
102 2014-07-01  Dan Bernstein  <mitz@apple.com>
103
104         Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1
105         https://bugs.webkit.org/show_bug.cgi?id=134531
106
107         Reviewed by Daniel Bates.
108
109         * WebCoreSupport/WebChromeClient.mm:
110         (WebChromeClient::exceededDatabaseQuota):
111
112 2014-06-29  Yoav Weiss  <yoav@yoav.ws>
113
114         Add support for HTMLImageElement's sizes attribute
115         https://bugs.webkit.org/show_bug.cgi?id=133620
116
117         Reviewed by Dean Jackson.
118
119         Added an ENABLE_PICTURE_SIZES compile flag.
120
121         * Configurations/FeatureDefines.xcconfig:
122
123 2014-06-27  Sam Weinig  <sam@webkit.org>
124
125         InfoClick (from Nisus Software) dies on viewing found items
126         <rdar://problem/17395601>
127         https://bugs.webkit.org/show_bug.cgi?id=134410
128
129         Reviewed by Andy Estes.
130
131         InfoClick was calling -[WebPreferences setPrivateBrowsingEnabled:] before
132         setting up a WebView (or anything else that would have set up WebKitSystemInterface),
133         which now requires a set up WebKitSystemInterface. We can fix this by initializing
134         it from +[WebPreferences initialize].
135
136         * WebView/WebPreferences.mm:
137         (+[WebPreferences initialize]):
138         Add call to InitWebCoreSystemInterface().
139
140         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
141         Remove now unnecessary call to InitWebCoreSystemInterface().
142
143 2014-06-27  Peyton Randolph  <prandolph@apple.com>
144
145         Add feature flag for link long-press gesture.
146         https://bugs.webkit.org/show_bug.cgi?id=134262
147
148         Reviewed by Enrica Casucci.
149
150         * Configurations/FeatureDefines.xcconfig:
151         Add ENABLE_LINK_LONG_PRESS.
152
153 2014-06-26  Brady Eidson  <beidson@apple.com>
154
155         Remove use of PlatformStrategies for Gamepad API.
156         https://bugs.webkit.org/show_bug.cgi?id=134348
157
158         Reviewed by Dean Jackson.
159
160         Remove all the GamepadStrategy gunk:
161         * WebCoreSupport/WebHIDGamepadController.mm: Removed.
162         * WebCoreSupport/WebPlatformStrategies.h:
163         * WebCoreSupport/WebPlatformStrategies.mm:
164         (WebPlatformStrategies::createGamepadStrategy): Deleted.
165         (WebPlatformStrategies::startMonitoringGamepads): Deleted.
166         (WebPlatformStrategies::stopMonitoringGamepads): Deleted.
167         (WebPlatformStrategies::platformGamepads): Deleted.
168
169         Instead, install the HIDGamepadProvider as the shared GamepadProvider:
170         * WebView/WebView.mm:
171         (WebKitInitializeGamepadProviderIfNecessary):
172         (-[WebView _commonInitializationWithFrameName:groupName:]):
173
174 2014-06-26  Joseph Pecoraro  <pecoraro@apple.com>
175
176         [iOS] Remove User Default for iOS TextField Debugging
177         https://bugs.webkit.org/show_bug.cgi?id=134356
178
179         Reviewed by Timothy Hatcher.
180
181         * WebView/WebPreferenceKeysPrivate.h:
182         * WebView/WebView.mm:
183         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
184
185 2014-06-25  Brady Eidson  <beidson@apple.com>
186
187         Add HID-based gamepad implementation for Mac
188         https://bugs.webkit.org/show_bug.cgi?id=134324
189
190         Reviewed by Dean Jackson.
191
192         Add a class that acts as an intermediary between the GamepadStrategyClient
193         and the HIDGamepadListener:
194         * WebCoreSupport/WebHIDGamepadController.h:
195         * WebCoreSupport/WebHIDGamepadController.mm:
196         (WebHIDGamepadController::shared):
197         (WebHIDGamepadController::WebHIDGamepadController):
198         (WebHIDGamepadController::gamepadConnected):
199         (WebHIDGamepadController::gamepadDisconnected):
200         (WebHIDGamepadController::registerGamepadStrategyClient):
201         (WebHIDGamepadController::unregisterGamepadStrategyClient):
202
203         Implement the strategies by using the HIDGamepadListener:
204         * WebCoreSupport/WebPlatformStrategies.mm:
205         (WebPlatformStrategies::startMonitoringGamepads):
206         (WebPlatformStrategies::stopMonitoringGamepads):
207         (WebPlatformStrategies::platformGamepads):
208
209 2014-06-25  Brady Eidson  <beidson@apple.com>
210
211         Add new platform gamepad abstractions
212         https://bugs.webkit.org/show_bug.cgi?id=134325
213
214         Reviewed by Dean Jackson.
215
216         * WebCoreSupport/WebPlatformStrategies.h:
217         * WebCoreSupport/WebPlatformStrategies.mm:
218         (WebPlatformStrategies::createGamepadStrategy):
219         (WebPlatformStrategies::startMonitoringGamepads):
220         (WebPlatformStrategies::stopMonitoringGamepads):
221         (WebPlatformStrategies::platformGamepads):
222
223 2014-06-25  Gavin Barraclough  <baraclough@apple.com>
224
225         Should _updateVisibilityState on view hide/unhide.
226         https://bugs.webkit.org/show_bug.cgi?id=134314
227         rdar://17171803
228
229         Reviewed by Sam Weinig.
230
231         * WebView/WebView.mm:
232         (-[WebView viewDidHide]):
233         (-[WebView viewDidUnhide]):
234
235 2014-06-25  Chris Fleizach  <cfleizach@apple.com>
236
237         Add an undo group for each dictated utterance in WebKit
238         https://bugs.webkit.org/show_bug.cgi?id=134086
239
240         Reviewed by Enrica Casucci.
241
242         * WebView/WebHTMLView.mm:
243         (-[WebHTMLView validAttributesForMarkedText]):
244         (-[WebHTMLView insertText:]):
245
246 2014-06-25  Dana Burkart  <dburkart@apple.com>
247
248         Add support for 5-tuple versioning.
249
250         Reviewed by David Farler.
251
252         * Configurations/Version.xcconfig:
253
254 2014-06-25  Laszlo Gombos  <l.gombos@samsung.com>
255
256         Remove build guard for progress element
257         https://bugs.webkit.org/show_bug.cgi?id=134292
258
259         Reviewed by Benjamin Poulain.
260
261         * Configurations/FeatureDefines.xcconfig:
262
263 2014-06-24  Benjamin Poulain  <bpoulain@apple.com>
264
265         WK1 WebFrameNetworkingContext cleanup: do not instanciate an empty NSString to create an empty WTF::String
266         https://bugs.webkit.org/show_bug.cgi?id=134222
267
268         Reviewed by Andreas Kling.
269
270         * WebCoreSupport/WebFrameNetworkingContext.mm:
271         (WebFrameNetworkingContext::sourceApplicationIdentifier):
272
273 2014-06-24  Joseph Pecoraro  <pecoraro@apple.com>
274
275         [iOS]: WK2 Inspector Node Highlighting
276         https://bugs.webkit.org/show_bug.cgi?id=134257
277
278         Reviewed by Timothy Hatcher.
279
280         * WebInspector/WebNodeHighlightView.mm:
281         (-[WebNodeHighlightView layoutSublayers:]):
282
283 2014-06-24  Brady Eidson  <beidson@apple.com>
284
285         Enable GAMEPAD in the Mac build, but disabled at runtime.
286         https://bugs.webkit.org/show_bug.cgi?id=134255
287
288         Reviewed by Dean Jackson.
289
290         * Configurations/FeatureDefines.xcconfig:
291
292         * WebView/WebPreferenceKeysPrivate.h:
293         * WebView/WebPreferences.mm:
294         (-[WebPreferences gamepadsEnabled]):
295         (-[WebPreferences setGamepadsEnabled:]):
296         * WebView/WebPreferencesPrivate.h:
297
298         * WebView/WebView.mm:
299         (-[WebView _preferencesChanged:]):
300
301 2014-06-24  Dan Bernstein  <mitz@apple.com>
302
303         Fixed the iOS build after r170358.
304
305         * WebView/WebView.mm:
306         (kit):
307
308 2014-06-23  Anders Carlsson  <andersca@apple.com>
309
310         Remove unused history visit code from WebHistoryItem
311         https://bugs.webkit.org/show_bug.cgi?id=134201
312
313         Reviewed by Sam Weinig.
314
315         * History/HistoryPropertyList.h:
316         * History/HistoryPropertyList.mm:
317         (HistoryPropertyListWriter::HistoryPropertyListWriter):
318         (HistoryPropertyListWriter::writeHistoryItem):
319         * History/WebHistory.mm:
320         (-[WebHistoryPrivate visitedURL:withTitle:]):
321         (-[WebHistoryPrivate addItem:discardDuplicate:]):
322         (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
323         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): Deleted.
324         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]): Deleted.
325         * History/WebHistoryInternal.h:
326         * History/WebHistoryItem.mm:
327         (-[WebHistoryItem copyWithZone:]):
328         (-[WebHistoryItem initFromDictionaryRepresentation:]):
329         (-[WebHistoryItem _visitedWithTitle:]):
330         (-[WebHistoryItem setVisitCount:]): Deleted.
331         (-[WebHistoryItem _mergeAutoCompleteHints:]): Deleted.
332         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]): Deleted.
333         (-[WebHistoryItem _recordInitialVisit]): Deleted.
334         (timeToDay): Deleted.
335         (-[WebHistoryItem _padDailyCountsForNewVisit:]): Deleted.
336         (-[WebHistoryItem _collapseDailyVisitsToWeekly]): Deleted.
337         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]): Deleted.
338         (-[WebHistoryItem _setLastVisitedTimeInterval:]): Deleted.
339         * History/WebHistoryItemInternal.h:
340         * History/WebHistoryItemPrivate.h:
341         * WebCoreSupport/WebFrameLoaderClient.mm:
342         (WebFrameLoaderClient::updateGlobalHistory):
343
344 2014-06-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
345
346         REGRESSION(r170235): Remove incorrect ifdef guard
347         https://bugs.webkit.org/show_bug.cgi?id=134246
348
349         Reviewed by Csaba Osztrogonác.
350
351         * WebView/WebView.mm:
352         (-[WebView _visibilityState]):
353
354 2014-06-23  Anders Carlsson  <andersca@apple.com>
355
356         Fix build.
357
358         * WebCoreSupport/WebSystemInterface.mm:
359         (InitWebCoreSystemInterface):
360
361 2014-06-21  Dan Bernstein  <mitz@apple.com>
362
363         Tried to fix the iOS build after r170235.
364
365         * WebView/WebView.mm:
366
367 2014-06-21  Brady Eidson  <beidson@apple.com>
368
369         Gamepad API - Deprecate the existing implementation
370         https://bugs.webkit.org/show_bug.cgi?id=134108
371
372         Reviewed by Timothy Hatcher.
373
374         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
375         -Move some implementation files into a "deprecated" subdirectory.
376
377         * Configurations/FeatureDefines.xcconfig:
378
379 2014-06-21  Commit Queue  <commit-queue@webkit.org>
380
381         Unreviewed, rolling out r170244.
382         https://bugs.webkit.org/show_bug.cgi?id=134157
383
384         GTK/EFL bindings generator works differently, making this
385         patch not work there.  Will fix entire patch after a rollout.
386         (Requested by bradee-oh on #webkit).
387
388         Reverted changeset:
389
390         "Gamepad API - Deprecate the existing implementation"
391         https://bugs.webkit.org/show_bug.cgi?id=134108
392         http://trac.webkit.org/changeset/170244
393
394 2014-06-21  Brady Eidson  <beidson@apple.com>
395
396         Gamepad API - Deprecate the existing implementation
397         https://bugs.webkit.org/show_bug.cgi?id=134108
398
399         Reviewed by Timothy Hatcher.
400
401         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
402         -Add the "Deprecated" suffix to some implementation files
403
404         * Configurations/FeatureDefines.xcconfig:
405
406 2014-06-21  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
407
408         Removing PAGE_VISIBILITY_API compile guard.
409         https://bugs.webkit.org/show_bug.cgi?id=133844
410
411         Reviewed by Gavin Barraclough.
412
413         * Configurations/FeatureDefines.xcconfig:
414         * WebView/WebView.mm:
415         (-[WebView _preferencesChanged:]):
416         (-[WebView _visibilityState]):
417
418 2014-06-18  Anders Carlsson  <andersca@apple.com>
419
420         Make FrameLoadType a strongly typed enum
421         https://bugs.webkit.org/show_bug.cgi?id=134047
422
423         Reviewed by Andreas Kling.
424
425         * WebView/WebFrame.mm:
426         (toWebFrameLoadType):
427         (-[WebFrame _loadType]):
428         * WebView/WebView.mm:
429         (-[WebView _loadBackForwardListFromOtherView:]):
430         (-[WebView goToBackForwardItem:]):
431
432 2014-06-18  Daniel Bates  <dabates@apple.com>
433
434         REGRESSION (r167856): Unable to log into HSBC app
435         https://bugs.webkit.org/show_bug.cgi?id=133991
436         <rdar://problem/17044839>
437
438         Reviewed by David Kilzer.
439
440         Only enable the setting allowNavigationToInvalidURL for iOS app linked against WebKit/UIKit before iOS 8.
441
442         * Misc/WebKitVersionChecks.h: Added macro constant WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
443         * WebView/WebView.mm:
444         (-[WebView _preferencesChanged:]): Enable or disable the setting allowNavigationToInvalidURL as appropriate.
445
446 2014-06-18  Anders Carlsson  <andersca@apple.com>
447
448         Adopt modern C++11 loops and fix WebArchive creation functions
449         https://bugs.webkit.org/show_bug.cgi?id=134032
450
451         Reviewed by Andreas Kling.
452
453         * WebView/WebArchive.mm:
454         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
455         * WebView/WebDataSource.mm:
456         (-[WebDataSource subresources]):
457
458 2014-06-15  Anders Carlsson  <andersca@apple.com>
459
460         Add an autorelease() member function to RetainPtr
461         https://bugs.webkit.org/show_bug.cgi?id=133929
462
463         Reviewed by Dan Bernstein.
464
465         * WebView/WebDataSource.mm:
466         (-[WebDataSource data]):
467         * WebView/WebHTMLView.mm:
468         (-[WebHTMLView _selectionDraggingImage]):
469         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
470         * WebView/WebResource.mm:
471         (-[WebResource data]):
472
473 2014-06-11  Jeremy Jones  <jeremyj@apple.com>
474
475         WebFrameNetworkContext should not have a sourceApplicationIdentifier in WK1.
476         https://bugs.webkit.org/show_bug.cgi?id=133772
477
478         Reviewed by Jer Noble.
479
480         Return empty string from sourceApplicationIdentifier for WK1.
481
482         * WebCoreSupport/WebFrameNetworkingContext.mm:
483         (WebFrameNetworkingContext::sourceApplicationIdentifier):
484
485 2014-06-10  Timothy Horton  <timothy_horton@apple.com>
486
487         Factor repeated CFRunLoopObserver code out
488         https://bugs.webkit.org/show_bug.cgi?id=133690
489
490         Reviewed by Simon Fraser.
491
492         * WebView/WebViewData.h:
493
494 2014-06-05  Pratik Solanki  <psolanki@apple.com>
495
496         Remove unsused method _setAcceleratedImageDecoding
497         https://bugs.webkit.org/show_bug.cgi?id=133554
498
499         Reviewed by Jon Honeycutt.
500
501         * WebView/WebView.mm:
502         (+[WebView _setAcceleratedImageDecoding:]): Deleted.
503         * WebView/WebViewPrivate.h:
504
505 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
506
507         [iOS][WK2] Add device orientation
508         https://bugs.webkit.org/show_bug.cgi?id=133530
509
510         Reviewed by Tim Horton.
511
512         * WebView/WebFrame.mm:
513         (-[WebFrame deviceOrientationChanged]):
514         (-[WebFrame sendOrientationChangeEvent:]):
515         * WebView/WebFramePrivate.h:
516
517 2014-05-31  Anders Carlsson  <andersca@apple.com>
518
519         Change DeferrableOneShotTimer to use std::function instead of being a class template
520         https://bugs.webkit.org/show_bug.cgi?id=133423
521
522         Reviewed by Antti Koivisto.
523
524         * WebView/WebView.mm:
525         (+[WebView _setCacheModel:]):
526
527 2014-05-27  Jon Lee  <jonlee@apple.com>
528
529         Update ENABLE(MEDIA_SOURCE) on Mac
530         https://bugs.webkit.org/show_bug.cgi?id=133141
531
532         Reviewed by Darin Adler.
533
534         * Configurations/FeatureDefines.xcconfig:
535
536 2014-05-27  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
537
538         Remove BLOB guards
539         https://bugs.webkit.org/show_bug.cgi?id=132863
540
541         Reviewed by Csaba Osztrogonác.
542
543         * Configurations/FeatureDefines.xcconfig:
544         * WebView/WebView.mm:
545         (+[WebView _canHandleRequest:forMainFrame:]):
546
547 2014-05-24  Chris Fleizach  <cfleizach@apple.com>
548
549         AX: fix coordinate mapping for iOS accessibility
550         https://bugs.webkit.org/show_bug.cgi?id=133188
551
552         Reviewed by Sam Weinig.
553
554         * WebCoreSupport/WebChromeClient.h:
555         * WebCoreSupport/WebChromeClient.mm:
556         (WebChromeClient::accessibilityScreenToRootView):
557         (WebChromeClient::rootViewToAccessibilityScreen):
558
559 2014-05-23  Jeremy Jones  <jeremyj@apple.com>
560
561         Hide fullscreen immediately when switching tabs.
562         https://bugs.webkit.org/show_bug.cgi?id=133239
563
564         Reviewed by Eric Carlson.
565
566         Renamed a function to better describe it's new functionality.
567
568         * WebView/WebView.mm:
569         (-[WebView viewDidMoveToWindow]):
570         now calls: requestHideAndExitFullscreen
571
572 2014-05-20  Dean Jackson  <dino@apple.com>
573
574         [Mac] Allow popup menus to override default appearance
575         https://bugs.webkit.org/show_bug.cgi?id=133129
576
577         Reviewed by Tim Horton.
578
579         Replace the call to wkPopupMenuWithSize with wkPopupMenu, now
580         with extra parameters to indicate the control size and whether
581         or not to draw the arrows at the end.
582
583         * WebCoreSupport/PopupMenuMac.mm:
584         (PopupMenuMac::show):
585
586 2014-05-20  Eric Carlson  <eric.carlson@apple.com>
587
588         [Mac] do not deactivate an audio session that has running I/O
589         https://bugs.webkit.org/show_bug.cgi?id=133127
590
591         Reviewed by Jer Noble.
592
593         * WebView/WebView.mm:
594         (-[WebView _commonInitializationWithFrameName:groupName:]): Settings::setShouldManageAudioSession
595             renamed to setShouldManageAudioSessionCategory, deal with it.
596
597 2014-05-19  Brady Eidson  <beidson@apple.com>
598
599         Use different AppKit API for image control menus.
600         <rdar://problem/16807828> and https://bugs.webkit.org/show_bug.cgi?id=133087
601
602         Reviewed by Tim Horton.
603
604         For image control menus, use popUpMenuPositioningItem: instead of popUpContextMenu:
605         
606         * WebCoreSupport/WebContextMenuClient.h:
607         * WebCoreSupport/WebContextMenuClient.mm:
608         (WebContextMenuClient::contextMenuForEvent):
609         (WebContextMenuClient::showContextMenu):
610
611 2014-05-19  Andy Estes  <aestes@apple.com>
612
613         Set WebKitSuppressesIncrementalRenderingKey to NO by default on both Mac and iOS
614         https://bugs.webkit.org/show_bug.cgi?id=133073
615
616         Reviewed by Simon Fraser.
617
618         * WebView/WebPreferences.mm:
619         (+[WebPreferences initialize]):
620
621 2014-05-18  Anders Carlsson  <andersca@apple.com>
622
623         Bring back two NSString category methods on iOS
624         https://bugs.webkit.org/show_bug.cgi?id=133055
625         <rdar://problem/16951983>
626
627         Reviewed by Adele Peterson.
628
629         * Misc/WebNSURLExtras.h:
630         * Misc/WebNSURLExtras.mm:
631         (-[NSString _webkit_unescapedQueryValue]):
632         (-[NSString _webkit_queryKeysAndValues]):
633
634 2014-05-18  Rik Cabanier  <cabanier@adobe.com>
635
636         support for navigator.hardwareConcurrency
637         https://bugs.webkit.org/show_bug.cgi?id=132588
638
639         Reviewed by Filip Pizlo.
640
641         * Configurations/FeatureDefines.xcconfig:
642
643 2014-05-17  Zalan Bujtas  <zalan@apple.com>
644
645         Subpixel rendering: Add subpixelCSSOMElementMetricsEnabled to WK1 WebPreferences.
646         https://bugs.webkit.org/show_bug.cgi?id=133029
647
648         Reviewed by Simon Fraser.
649
650         To match the WK2 preferences API.
651
652         * WebView/WebPreferenceKeysPrivate.h:
653         * WebView/WebPreferences.mm:
654         (+[WebPreferences initialize]):
655         (-[WebPreferences subpixelCSSOMElementMetricsEnabled]):
656         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
657         * WebView/WebPreferencesPrivate.h:
658         * WebView/WebView.mm:
659         (-[WebView _preferencesChanged:]):
660
661 2014-05-16  Simon Fraser  <simon.fraser@apple.com>
662
663         Remove "region-based columns" prefs
664         https://bugs.webkit.org/show_bug.cgi?id=133006
665         <rdar://problem/16945824>
666
667         Reviewed by Dave Hyatt.
668
669         Remove "region-based columns" prefs and related code, since this is only
670         way to render columns now.
671
672         * WebView/WebPreferenceKeysPrivate.h:
673         * WebView/WebPreferences.mm:
674         (+[WebPreferences initialize]):
675         (-[WebPreferences setRegionBasedColumnsEnabled:]): Deleted.
676         (-[WebPreferences regionBasedColumnsEnabled]): Deleted.
677         * WebView/WebPreferencesPrivate.h:
678         * WebView/WebView.mm:
679         (-[WebView _preferencesChanged:]):
680
681 2014-05-15  Brady Eidson  <beidson@apple.com>
682
683         Crash in [WebSharingServicePickerController clear]
684         <rdar://problem/16879073> and https://bugs.webkit.org/show_bug.cgi?id=132968
685
686         Reviewed by Tim Horton.
687
688         * Misc/WebSharingServicePickerController.mm:
689         (-[WebSharingServicePickerController clear]): Add a RetainPtr protector so this object
690           isn’t dealloc’ed partway through.
691
692 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
693
694         Initialize the WebKitRegionBasedColumnsEnabled pref on iOS WK1
695         https://bugs.webkit.org/show_bug.cgi?id=132969
696
697         Reviewed by Dan Bernstein.
698         
699         Move this outside the #if !PLATFORM(IOS) block.
700
701         * WebView/WebPreferences.mm:
702         (+[WebPreferences initialize]):
703
704 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
705
706         Clean up -[WebView _preferencesChanged]
707         https://bugs.webkit.org/show_bug.cgi?id=132967
708
709         Reviewed by Sam Weinig.
710         
711         -[WebView _preferencesChanged] was a horrible mess of #ifdefs. Clean this up by
712         moving all the #if PLATFORM() code together, and moving all the feature-define related
713         settings to the end.
714         
715         No behavior changes, checked by diffing the resulting Settings with and without
716         the patch, on OS X and iOS.
717
718         * WebView/WebView.mm:
719         (-[WebView _preferencesChanged:]):
720
721 2014-05-15  Alex Christensen  <achristensen@webkit.org>
722
723         Add pointer lock to features without enabling it.
724         https://bugs.webkit.org/show_bug.cgi?id=132961
725
726         Reviewed by Sam Weinig.
727
728         * Configurations/FeatureDefines.xcconfig:
729         Added ENABLE_POINTER_LOCK to list of features.
730         * WebView/WebPDFView.mm:
731         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
732         Added extra parameters needed when pointer lock is enabled.
733
734 2014-05-14  Brady Eidson  <beidson@apple.com>
735
736         Implement NSSharingServiceDelegate method "transitionImageForShareItem"
737         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
738
739         Reviewed by Tim Horton.
740
741         * Misc/WebSharingServicePickerController.mm:
742         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
743
744         * WebCoreSupport/WebContextMenuClient.h:
745         * WebCoreSupport/WebContextMenuClient.mm:
746         (WebContextMenuClient::renderedImageForControlledImage): Paint the entire content rect for the controlled image
747           into an ImageBuffer, then return the resulting NSImage. This only paints the image itself and not any
748           overlapping content by setting the selection and appropriate painting mode.
749
750 2014-05-14  Brady Eidson  <beidson@apple.com>
751
752         sourceFrameOnScreenForShareItem: can be off by a pixel
753         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
754
755         Reviewed by Simon Fraser.
756
757         In a land of LayoutUnits and sub-pixel rendering, converting between IntRects and
758         FloatRects can be error prone. So we now try to minimize such conversions.
759
760         * Misc/WebSharingServicePickerController.mm:
761         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
762
763         * WebCoreSupport/WebContextMenuClient.h:
764         * WebCoreSupport/WebContextMenuClient.mm:
765         (WebContextMenuClient::clientFloatRectForNode): Split this into a separate utility method
766           as it will be shared with other code very soon. Instead of using absoluteBoundingBoxRect()
767           which does lossy float->int conversions, try to keep things in terms of FloatRects as
768           much as possible.
769         (WebContextMenuClient::screenRectForHitTestNode): Call clientFloatRectForNode to get the
770           FloatRect, then perform the lossy rounding conversion to an IntRect only once.
771
772 2014-05-14  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
773
774         Remove CSS_STICKY_POSITION guards
775         https://bugs.webkit.org/show_bug.cgi?id=132676
776
777         Reviewed by Simon Fraser.
778
779         * Configurations/FeatureDefines.xcconfig:
780
781 2014-05-14  Antti Koivisto  <antti@apple.com>
782
783         GIF animations don't restart after scrolling with iOS WebKit1
784         https://bugs.webkit.org/show_bug.cgi?id=132900
785         <rdar://problem/16490858>
786
787         Reviewed by Andreas Kling.
788
789         * WebView/WebView.mm:
790         (-[WebView _didFinishScrollingOrZooming]):
791         
792             Check if the animations need to be restarted after scrolling finishes.
793
794 2014-05-09  Joseph Pecoraro  <pecoraro@apple.com>
795
796         Web Inspector: Allow Remote Inspector to entitlement check UIProcess through WebProcess
797         https://bugs.webkit.org/show_bug.cgi?id=132409
798
799         Reviewed by Timothy Hatcher.
800
801         Simplify the legacy iOS UIWebViewController case by passing on
802         the host process pid and audit_token.
803
804         * WebView/WebView.mm:
805         (-[WebView _setHostApplicationProcessIdentifier:auditToken:]):
806         (-[WebView setHostApplicationBundleId:name:]): Deleted.
807         (-[WebView hostApplicationBundleId]): Deleted.
808         (-[WebView hostApplicationName]): Deleted.
809         * WebView/WebViewData.h:
810         * WebView/WebViewData.mm:
811         (-[WebViewPrivate dealloc]):
812         * WebView/WebViewPrivate.h:
813
814 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
815
816         [iOS] Switch geolocation to an explicit authorization query model
817         https://bugs.webkit.org/show_bug.cgi?id=132717
818
819         Reviewed by Sam Weinig.
820
821         Since there is no warmup code, WebGeolocationPolicyListener no longer need to know about the provider,
822         which is awesome :)
823
824         * WebCoreSupport/WebGeolocationClient.mm:
825         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
826         (-[WebGeolocationPolicyListener deny]):
827         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]):
828         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:]):
829         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:provider:]): Deleted.
830         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:provider:]): Deleted.
831         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:provider:]): Deleted.
832         * WebView/WebViewPrivate.h:
833
834 2014-05-08  Jer Noble  <jer.noble@apple.com>
835
836         [Mac, iOS] Add source application accounting to AVURLAsset.
837         https://bugs.webkit.org/show_bug.cgi?id=132637
838
839         Reviewed by Eric Carlson.
840
841         Add accessor for sourceApplicationIdentifier.
842
843         * WebCoreSupport/WebFrameNetworkingContext.h:
844         * WebCoreSupport/WebFrameNetworkingContext.mm:
845         (WebFrameNetworkingContext::sourceApplicationIdentifier):
846
847 2014-05-08  Anders Carlsson  <andersca@apple.com>
848
849         Use a different install name for WebKitLegacy.framework for staged framework builds
850         https://bugs.webkit.org/show_bug.cgi?id=132711
851         <rdar://problem/16850620>
852
853         Reviewed by Dan Bernstein.
854
855         * Configurations/WebKitLegacy.xcconfig:
856
857 2014-05-08  Brady Eidson  <beidson@apple.com>
858
859         Wrap a new class definition with __has_include()
860         <rdar://problem/16852395> and https://bugs.webkit.org/show_bug.cgi?id=132694
861
862         Reviewed by Tim Horton.
863
864         * Misc/WebSharingServicePickerController.mm:
865
866 2014-05-07  Pratik Solanki  <psolanki@apple.com>
867
868         Use system defaults for hardware jpeg decoding
869         https://bugs.webkit.org/show_bug.cgi?id=132661
870         <rdar://problem/11348201>
871
872         Reviewed by Tim Horton.
873
874         Remove code that explicitly disabled hardware image decoding. Let the system decide what to do.
875
876         * WebView/WebView.mm:
877         (+[WebView _setAcceleratedImageDecoding:]):
878         (+[WebView _acceleratedImageDecoding]): Deleted.
879         * WebView/WebViewPrivate.h:
880
881 2014-05-07  Brent Fulgham  <bfulgham@apple.com>
882
883         [Mac, iOS] REGRESSION: WK2 YouTube support
884         https://bugs.webkit.org/show_bug.cgi?id=132568
885         <rdar://problem/11464344>
886
887         Reviewed by Darin Adler.
888
889         * Misc/WebNSURLExtras.h:
890         * Misc/WebNSURLExtras.mm: Remove code that has been converted to C++
891         and added to YouTubePluginReplacement.cpp.
892         (-[NSURL _webkit_youTubeURL]):
893         (-[NSString _webkit_queryKeysAndValues]):
894         (createYouTubeURL): Deleted.
895         (-[NSString _webkit_unescapedQueryValue]): Deleted.
896
897 2014-05-07  Jeremy Jones  <jeremyj@apple.com>
898
899         HTMLMediaElement should exitFullscreen when view is removed from the window.
900         https://bugs.webkit.org/show_bug.cgi?id=132506
901
902         Reviewed by Tim Horton.
903
904         * WebView/WebView.mm:
905         (-[WebView viewDidMoveToWindow]):
906         Request WebVideoFullscreenController to exitFullscreen when view is removed from the window.
907
908 2014-05-07  Brady Eidson  <beidson@apple.com>
909
910         Image menu is offset by the amount the view is scrolled
911         <rdar://problem/16818966> and https://bugs.webkit.org/show_bug.cgi?id=132663
912
913         Reviewed by Tim Horton.
914
915         * WebCoreSupport/WebContextMenuClient.mm:
916         (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, 
917           and skip the [NSView convertPoint:toView:] step.
918
919 2014-05-07  Simon Fraser  <simon.fraser@apple.com>
920
921         WebKit1 is flashy when compositing layers come and go
922         https://bugs.webkit.org/show_bug.cgi?id=132655
923
924         Reviewed by Sam Weinig.
925         
926         In r166117 I removed code to flush compositing layers in FrameView::paintContents(),
927         which caused problems when painting iframes. However, this removed a flush
928         that WebKit1 relied on to flush compositing layers when painting, which caused
929         flashing when compositing layers come and go, and broke WebView snapshotting
930         in some cases.
931         
932         Fix by adding back compositing layer flushing, but this time in WebKit1's
933         -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree.
934
935         * WebView/WebHTMLView.mm:
936         (-[WebHTMLView viewWillDraw]):
937         * WebView/WebView.mm:
938         (-[WebView _flushCompositingChanges]):
939         * WebView/WebViewInternal.h:
940         * WebView/WebViewPrivate.h:
941
942 2014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
943
944         [CSS Grid Layout] Remove runtime feature
945         https://bugs.webkit.org/show_bug.cgi?id=132382
946
947         Reviewed by Benjamin Poulain.
948
949         Remove cssGridLayoutEnabled setting usage.
950
951         * WebKit.order:
952         * WebView/WebPreferenceKeysPrivate.h:
953         * WebView/WebPreferences.mm:
954         (+[WebPreferences initialize]):
955         (-[WebPreferences cssGridLayoutEnabled]): Deleted.
956         (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted.
957         * WebView/WebPreferencesPrivate.h:
958         * WebView/WebView.mm:
959         (-[WebView _preferencesChanged:]):
960
961 2014-05-06  Dean Jackson  <dino@apple.com>
962
963         [Mac] Allow focus rings to redraw themselves if necessary
964         https://bugs.webkit.org/show_bug.cgi?id=132593
965
966         Reviewed by Simon Fraser.
967
968         * WebCoreSupport/WebSystemInterface.mm:
969         (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime.
970
971 2014-05-06  Brady Eidson  <beidson@apple.com>
972
973         Don't select an image that is about to have its menu shown.
974         <rdar://problem/16807845> and https://bugs.webkit.org/show_bug.cgi?id=132579
975
976         Reviewed by Tim Horton.
977
978         * Misc/WebSharingServicePickerController.mm:
979         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
980           Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard.
981
982 2014-05-06  Anders Carlsson  <andersca@apple.com>
983
984         Move the WebKitLegacy header check to the right file
985         https://bugs.webkit.org/show_bug.cgi?id=132620
986         <rdar://problem/16815716>
987
988         Reviewed by Dan Bernstein.
989
990         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make:
991         * WebKitLegacy/WebKit.h:
992
993 2014-05-06  Anders Carlsson  <andersca@apple.com>
994
995         Put WebKitPluginHost.app in WebKitLegacy.framework
996         https://bugs.webkit.org/show_bug.cgi?id=132592
997         <rdar://problem/15920046>
998
999         Reviewed by Dan Bernstein.
1000
1001         * Plugins/Hosted/NetscapePluginHostManager.mm:
1002         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1003
1004 2014-05-06  Darin Adler  <darin@apple.com>
1005
1006         [iOS] Fix two more AdoptCF I missed in my last patch.
1007
1008         * WebView/WebHTMLView.mm:
1009         (imageFromRect): Use adoptCF instead of AdoptCF.
1010
1011 2014-05-05  Andreas Kling  <akling@apple.com>
1012
1013         Unreviewed, rolling out r168334.
1014
1015         Broke builds.
1016
1017         Reverted changeset:
1018
1019         "Put WebKitPluginHost.app in WebKitLegacy.framework"
1020         https://bugs.webkit.org/show_bug.cgi?id=132592
1021         http://trac.webkit.org/changeset/168334
1022
1023 2014-05-05  Anders Carlsson  <andersca@apple.com>
1024
1025         Put WebKitPluginHost.app in WebKitLegacy.framework
1026         https://bugs.webkit.org/show_bug.cgi?id=132592
1027         <rdar://problem/15920046>
1028
1029         Reviewed by Dan Bernstein.
1030
1031         * Plugins/Hosted/NetscapePluginHostManager.mm:
1032         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1033
1034 2014-05-02  Brady Eidson  <beidson@apple.com>
1035
1036         Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:.
1037         <rdar://problem/16797425> and https://bugs.webkit.org/show_bug.cgi?id=132484
1038
1039         Reviewed by Tim Horton.
1040
1041         * Misc/WebSharingServicePickerController.mm:
1042         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
1043
1044         * WebCoreSupport/WebContextMenuClient.h:
1045         * WebCoreSupport/WebContextMenuClient.mm:
1046         (WebContextMenuClient::screenRectForHitTestNode):
1047
1048 2014-05-02  Brady Eidson  <beidson@apple.com>
1049
1050         Crash inside [WebSharingServicePickerController clear]
1051         <rdar://problem/16791944> and https://bugs.webkit.org/show_bug.cgi?id=132477
1052
1053         Reviewed by Tim Horton.
1054
1055         * Misc/WebSharingServicePickerController.h:
1056         * Misc/WebSharingServicePickerController.mm:
1057         (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient.
1058
1059         * WebCoreSupport/WebContextMenuClient.h:
1060         * WebCoreSupport/WebContextMenuClient.mm:
1061         (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here.
1062
1063 2014-05-01  Tim Horton  <timothy_horton@apple.com>
1064
1065         More 32-bit build fixes.
1066
1067         * Misc/WebSharingServicePickerController.mm:
1068         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1069
1070 2014-05-01  Tim Horton  <timothy_horton@apple.com>
1071
1072         Temporarily "fix" the 32-bit build.
1073
1074         * Misc/WebSharingServicePickerController.mm:
1075         This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process.
1076
1077 2014-05-01  Brady Eidson  <beidson@apple.com>
1078
1079         Update service picker API usage.
1080         <rdar://problem/16772674> and https://bugs.webkit.org/show_bug.cgi?id=132452
1081
1082         Reviewed by Tim Horton.
1083
1084         * Misc/WebSharingServicePickerController.h:
1085         * Misc/WebSharingServicePickerController.mm:
1086         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
1087           Factor out a common "didShare" handler that optionally validates whether the data represents an image.
1088         (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling
1089           on off-main thread call back to the main thread.
1090
1091         * WebCoreSupport/WebContextMenuClient.mm:
1092         (WebContextMenuClient::contextMenuForEvent): Update API usage.
1093
1094 2014-05-01  Anders Carlsson  <andersca@apple.com>
1095
1096         Support OS-version-specific install paths for WebKit.framework
1097         https://bugs.webkit.org/show_bug.cgi?id=132448
1098         <rdar://problem/16784932>
1099
1100         Reviewed by Dan Bernstein.
1101
1102         * WebKitLegacy/WebKit.m:
1103         Add version specific install names.
1104
1105 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
1106
1107         Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
1108         Clean up unnecessary methods in the BackForwardClient interface
1109
1110         It broke a regression test and an API test.
1111
1112         * History/WebBackForwardList.mm:
1113         (-[WebBackForwardList initWithBackForwardList:]):
1114         (-[WebBackForwardList init]):
1115         (-[WebBackForwardList dealloc]):
1116         (-[WebBackForwardList finalize]):
1117         (-[WebBackForwardList setPageCacheSize:]):
1118         (-[WebBackForwardList pageCacheSize]):
1119         * History/WebBackForwardListInternal.h:
1120         * WebCoreSupport/WebFrameLoaderClient.mm:
1121         (WebFrameLoaderClient::canCachePage):
1122         * WebView/WebFrameView.mm:
1123         (-[WebFrameView keyDown:keyDown:]):
1124         * WebView/WebView.mm:
1125         (-[WebView _loadBackForwardListFromOtherView:]):
1126         (-[WebView initWithCoder:]):
1127         (-[WebView encodeWithCoder:]):
1128         (-[WebView backForwardList]):
1129         (-[WebView setMaintainsBackForwardList:]):
1130
1131 2014-04-30  Simon Fraser  <simon.fraser@apple.com>
1132
1133         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO
1134         https://bugs.webkit.org/show_bug.cgi?id=132396
1135
1136         Reviewed by Eric Carlson.
1137
1138         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code.
1139
1140         * Configurations/FeatureDefines.xcconfig:
1141         * Plugins/WebPluginContainerPrivate.h:
1142         * Plugins/WebPluginController.h:
1143         * Plugins/WebPluginController.mm:
1144         (-[WebPluginController dealloc]):
1145         (-[WebPluginController plugInsAreRunning]):
1146         (-[WebPluginController stopAllPlugins]):
1147         (-[WebPluginController stopPluginsForPageCache]):
1148         (-[WebPluginController restorePluginsFromCache]):
1149         (-[WebPluginController addPlugin:]):
1150         (-[WebPluginController destroyPlugin:]):
1151         (-[WebPluginController destroyAllPlugins]):
1152         (-[NSView isMediaPlugInProxyView]): Deleted.
1153         (-[NSView setIsMediaPlugInProxyView:]): Deleted.
1154         (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted.
1155         (+[WebPluginController pluginViewHidden:]): Deleted.
1156         (mediaProxyClient): Deleted.
1157         (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted.
1158         (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted.
1159         * WebCoreSupport/WebFrameLoaderClient.h:
1160         * WebCoreSupport/WebFrameLoaderClient.mm:
1161         (pluginView):
1162         * WebView/WebView.mm:
1163         (-[WebView _preferencesChanged:]):
1164         (-[WebView _videoProxyPluginForMIMEType:]): Deleted.
1165         * WebView/WebViewInternal.h:
1166
1167 2014-04-30  Anders Carlsson  <andersca@apple.com>
1168
1169         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
1170         https://bugs.webkit.org/show_bug.cgi?id=132399
1171         <rdar://problem/15920046>
1172
1173         Reviewed by Dan Bernstein.
1174
1175         * Carbon/CarbonUtils.h:
1176         * Carbon/HIViewAdapter.h:
1177         * Carbon/HIWebView.h:
1178         Import WebKitLegacy headers instead of WebKit headers.
1179
1180         * Configurations/WebKit.xcconfig:
1181         Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
1182         add the relevant definitions needed for re-exporting WebKitLegacy.framework.
1183
1184         * Configurations/WebKitLegacy.xcconfig:
1185         Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
1186
1187         * DOM/WebDOMOperations.h:
1188         * DOM/WebDOMOperations.mm:
1189         * DOM/WebDOMOperationsInternal.h:
1190         * DOM/WebDOMOperationsPrivate.h:
1191         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
1192         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1193         * DefaultDelegates/WebDefaultEditingDelegate.m:
1194         * History/WebBackForwardListInternal.h:
1195         * History/WebBackForwardListPrivate.h:
1196         * History/WebHistoryItemPrivate.h:
1197         * History/WebHistoryPrivate.h:
1198         * History/WebURLsWithTitles.m:
1199         Import WebKitLegacy headers instead of WebKit headers.
1200
1201         * MigrateHeaders.make:
1202         Update header paths now that all WebKitLegacy headers are private.
1203         Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
1204         
1205         * Misc/WebCoreStatistics.h:
1206         * Misc/WebDownload.h:
1207         * Misc/WebDownload.mm:
1208         * Misc/WebDownloadInternal.h:
1209         * Misc/WebElementDictionary.mm:
1210         * Misc/WebIconDatabasePrivate.h:
1211         * Misc/WebKit.h:
1212         * Misc/WebKitErrors.m:
1213         * Misc/WebKitErrorsPrivate.h:
1214         * Misc/WebKitNSStringExtras.mm:
1215         * Misc/WebLocalizableStrings.mm:
1216         * Misc/WebNSDataExtras.m:
1217         * Misc/WebNSDictionaryExtras.m:
1218         * Misc/WebNSEventExtras.m:
1219         * Misc/WebNSFileManagerExtras.mm:
1220         * Misc/WebNSImageExtras.m:
1221         * Misc/WebNSPasteboardExtras.mm:
1222         * Misc/WebNSViewExtras.h:
1223         * Misc/WebNSViewExtras.m:
1224         * Panels/WebAuthenticationPanel.m:
1225         * Panels/WebPanelAuthenticationHandler.m:
1226         * Plugins/Hosted/HostedNetscapePluginStream.h:
1227         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1228         * Plugins/Hosted/WebKitPluginAgent.defs:
1229         * Plugins/Hosted/WebKitPluginAgentReply.defs:
1230         * Plugins/Hosted/WebKitPluginClient.defs:
1231         * Plugins/Hosted/WebKitPluginHost.defs:
1232         * Plugins/Hosted/WebKitPluginHostTypes.defs:
1233         * Plugins/WebBaseNetscapePluginView.mm:
1234         * Plugins/WebBasePluginPackage.h:
1235         * Plugins/WebBasePluginPackage.mm:
1236         * Plugins/WebNetscapeContainerCheckPrivate.h:
1237         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1238         * Plugins/WebNetscapePluginStream.h:
1239         * Plugins/WebNetscapePluginView.h:
1240         * Plugins/WebNetscapePluginView.mm:
1241         * Plugins/WebPlugin.h:
1242         * Plugins/WebPluginController.h:
1243         * Plugins/WebPluginDatabase.h:
1244         * Plugins/WebPluginPackage.h:
1245         * Plugins/WebPluginPackage.mm:
1246         * Plugins/WebPluginViewFactory.h:
1247         * Plugins/WebPluginViewFactoryPrivate.h:
1248         * Plugins/npapi.mm:
1249         * Storage/WebDatabaseManagerPrivate.h:
1250         * WebCoreSupport/WebContextMenuClient.mm:
1251         * WebCoreSupport/WebFrameLoaderClient.mm:
1252         * WebCoreSupport/WebFrameNetworkingContext.mm:
1253         * WebCoreSupport/WebGeolocationClient.mm:
1254         * WebCoreSupport/WebInspectorClient.mm:
1255         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1256         * WebCoreSupport/WebKeyGenerator.mm:
1257         * WebInspector/WebInspectorPrivate.h:
1258         * WebInspector/WebNodeHighlight.h:
1259         * WebInspector/WebNodeHighlightView.h:
1260         Import WebKitLegacy headers instead of WebKit headers.
1261         
1262         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
1263         New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
1264         imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
1265         On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
1266         and getting rid of C SPI imports.
1267         
1268         * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
1269         This is no longer needed.
1270         
1271         * WebKitLegacy/WebKit.h: Added.
1272         New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
1273
1274         * WebKitLegacy/WebKit.m:
1275         This is an empty file so we'll have something to link.
1276
1277         * WebKitLegacy/WebKitPrivate.h:
1278         New SPI header that imports the private headers of the modern API.
1279
1280         * WebView/WebDataSource.h:
1281         * WebView/WebDataSource.mm:
1282         * WebView/WebDataSourcePrivate.h:
1283         * WebView/WebDelegateImplementationCaching.h:
1284         * WebView/WebDocument.h:
1285         * WebView/WebDocumentInternal.h:
1286         * WebView/WebDocumentPrivate.h:
1287         * WebView/WebEditingDelegate.h:
1288         * WebView/WebEditingDelegatePrivate.h:
1289         * WebView/WebFrameLoadDelegate.h:
1290         * WebView/WebFrameLoadDelegatePrivate.h:
1291         * WebView/WebFramePrivate.h:
1292         * WebView/WebFrameView.h:
1293         * WebView/WebFrameViewInternal.h:
1294         * WebView/WebFrameViewPrivate.h:
1295         * WebView/WebHTMLRepresentation.h:
1296         * WebView/WebHTMLRepresentation.mm:
1297         * WebView/WebHTMLRepresentationPrivate.h:
1298         * WebView/WebHTMLView.h:
1299         * WebView/WebHTMLView.mm:
1300         * WebView/WebHTMLViewPrivate.h:
1301         * WebView/WebPDFView.h:
1302         * WebView/WebPolicyDelegatePrivate.h:
1303         * WebView/WebPreferencesPrivate.h:
1304         * WebView/WebResourcePrivate.h:
1305         * WebView/WebUIDelegate.h:
1306         * WebView/WebUIDelegatePrivate.h:
1307         * WebView/WebView.h:
1308         * WebView/WebView.mm:
1309         * WebView/WebViewPrivate.h:
1310         Import WebKitLegacy headers instead of WebKit headers.
1311
1312         * migrate-headers.sh:
1313         Derived sources are put in DerivedSources/WebKitLegacy now.
1314
1315 2014-04-30  David Hyatt  <hyatt@apple.com>
1316
1317         [New Multicolumn] Enable new multi-column mode
1318         https://bugs.webkit.org/show_bug.cgi?id=131825
1319
1320         Reviewed by Simon Fraser.
1321
1322         * WebView/WebPreferences.mm:
1323         (+[WebPreferences initialize]):
1324
1325 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
1326
1327         Clean up unnecessary methods in the BackForwardClient interface
1328         https://bugs.webkit.org/show_bug.cgi?id=131637
1329
1330         Reviewed by Andreas Kling.
1331
1332         BackForwardClient instances now have ownership lifetime semantics, so
1333         WebBackForwardList now explicitly deletes its inner BackForwardList.
1334
1335         Convert uses of WebCore::BackForwardList through backForward().client() to
1336         accept references instead of pointers.
1337
1338         Use BackForwardController methods rather than directly operating with the
1339         BackForwardClient where possible.
1340
1341         Remove page cache-related methods that are not used anywhere and that call
1342         BackForwardClient::page(), which is removed by this change.
1343
1344         * History/WebBackForwardList.mm:
1345         (-[WebBackForwardList initWithBackForwardList:]):
1346         (-[WebBackForwardList init]):
1347         (-[WebBackForwardList dealloc]):
1348         (-[WebBackForwardList finalize]):
1349         (-[WebBackForwardList setPageCacheSize]): Deleted.
1350         (-[WebBackForwardList pageCacheSize]): Deleted.
1351         (-[WebBackForwardList itemAtIndex:]): Deleted.
1352         * History/WebBackForwardListInternal.h:
1353         * WebCoreSupport/WebFrameLoaderClient.mm:
1354         (WebFrameLoaderClient::canCachePage):
1355         * WebView/WebFrameView.mm:
1356         (-[WebFrameView keyDown:keyDown:]):
1357         * WebView/WebView.mm:
1358         (-[WebView _loadBackForwardListFromOtherView:]):
1359         (-[WebView initWithCoder:]):
1360         (-[WebView encodeWithCoder:]):
1361         (-[WebView backForwardList]):
1362         (-[WebView setMaintainsBackForwardList:]):
1363
1364 2014-04-29  Sam Weinig  <sam@webkit.org>
1365
1366         [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
1367         https://bugs.webkit.org/show_bug.cgi?id=132359
1368
1369         Reviewed by Darin Adler.
1370
1371         * WebView/WebHTMLView.mm:
1372         (imageFromRect):
1373         (selectionImage):
1374         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
1375         Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
1376         is still unimplemented on iOS.
1377
1378         * WebView/WebView.mm:
1379         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1380         Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
1381         to ensure that the snapshot is the correct size.
1382
1383 2014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
1384
1385         [CSS Grid Layout] Enable runtime feature by default
1386         https://bugs.webkit.org/show_bug.cgi?id=132189
1387
1388         Reviewed by Benjamin Poulain.
1389
1390         * WebView/WebPreferences.mm:
1391         (+[WebPreferences initialize]): Remove unneeded changes that
1392         enable/disable the runtime feature depending on the compilation flag.
1393         And set it to true by default.
1394
1395 2014-04-29  Filip Pizlo  <fpizlo@apple.com>
1396
1397         Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
1398         https://bugs.webkit.org/show_bug.cgi?id=112840
1399
1400         Rubber stamped by Geoffrey Garen.
1401
1402         * Configurations/FeatureDefines.xcconfig:
1403
1404 2014-04-29  Brady Eidson  <beidson@apple.com>
1405
1406         Change Image Controls replacement to use selection and paste
1407         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
1408
1409         Reviewed by Tim Horton.
1410
1411         * Misc/WebSharingServicePickerController.mm:
1412         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
1413           replacement data to a special pasteboard, then replace the current selection from
1414           that pasteboard.
1415
1416 2014-04-27  Sam Weinig  <sam@webkit.org>
1417
1418         [iOS WebKit2] Add support for text autosizing
1419         <rdar://problem/16545245>
1420         https://bugs.webkit.org/show_bug.cgi?id=132237
1421
1422         Reviewed by Tim Horton.
1423
1424         * WebView/WebFrame.mm:
1425         (-[WebFrame _setTextAutosizingWidth:]):
1426         Forward setting of the text autosizing width to the Page.
1427
1428 2014-04-25  Dean Jackson  <dino@apple.com>
1429
1430         Allow a platform-specific size enumeration to be passed into popup-menu display
1431         https://bugs.webkit.org/show_bug.cgi?id=132195
1432
1433         Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
1434
1435         Platforms like OS X use a set of predefined sizes for built-in controls
1436         used for <select>: normal, small and mini. Expose that information to
1437         the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
1438         into the platform code in WebKitSystemInterface.
1439
1440         * WebCoreSupport/PopupMenuMac.mm:
1441         (PopupMenuMac::show): Convert the WebCore menu size type into the
1442         WebCoreSystemInterface type.
1443
1444 2014-04-24  Commit Queue  <commit-queue@webkit.org>
1445
1446         Unreviewed, rolling out r167700.
1447         https://bugs.webkit.org/show_bug.cgi?id=132142
1448
1449         Incorrectly reverted the change in r167547 for
1450         webkit.org/b/131898 (Requested by rniwa on #webkit).
1451
1452         Reverted changeset:
1453
1454         "Cursor doesn't change back to pointer when leaving the Safari
1455         window"
1456         https://bugs.webkit.org/show_bug.cgi?id=132038
1457         http://trac.webkit.org/changeset/167700
1458
1459 2014-04-24  Brady Eidson  <beidson@apple.com>
1460
1461         Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
1462         https://bugs.webkit.org/show_bug.cgi?id=132155
1463
1464         Reviewed by Tim Horton.
1465
1466         * Configurations/FeatureDefines.xcconfig:
1467         * Misc/WebSharingServicePickerController.h:
1468         * Misc/WebSharingServicePickerController.mm:
1469         * WebCoreSupport/WebContextMenuClient.h:
1470         * WebCoreSupport/WebContextMenuClient.mm:
1471         (WebContextMenuClient::contextMenuForEvent):
1472         * WebView/WebPreferences.mm:
1473         (+[WebPreferences initialize]):
1474         * WebView/WebView.mm:
1475         (-[WebView _preferencesChanged:]):
1476
1477 2014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
1478
1479         Text caret disappears in Mail after returning from another application
1480         https://bugs.webkit.org/show_bug.cgi?id=132111
1481
1482         Reviewed by Darin Adler.
1483
1484         The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
1485
1486         Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
1487         notifications as done in WebKit2 since they DO get called upon deminiaturization.
1488
1489         * WebView/WebView.mm:
1490         (-[WebView addWindowObserversForWindow:]):
1491         (-[WebView removeWindowObservers]):
1492         (-[WebView _windowKeyStateChanged:]):
1493         (-[WebView _windowChangedKeyState]): Deleted.
1494
1495 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
1496
1497         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
1498         https://bugs.webkit.org/show_bug.cgi?id=132110
1499
1500         Reviewed by Tim Horton.
1501
1502         Updates callers to use '.' instead of '->'.
1503
1504         No new tests are necessary because there should be no behavior change.
1505
1506         * Misc/WebCoreStatistics.mm:
1507         (+[WebCoreStatistics cachedFontDataCount]):
1508         (+[WebCoreStatistics cachedFontDataInactiveCount]):
1509         (+[WebCoreStatistics purgeInactiveFontData]):
1510         * WebView/WebView.mm:
1511         (+[WebView purgeInactiveFontData]):
1512
1513 2014-04-24  Eric Carlson  <eric.carlson@apple.com>
1514
1515         [iOS] Manage AudioSession category according to media type
1516         https://bugs.webkit.org/show_bug.cgi?id=132096
1517
1518         Reviewed by Jer Noble.
1519
1520         * WebView/WebView.mm:
1521         (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
1522             WebCore to manage the AudioSession when running in MobileSafari.
1523
1524 2014-04-23  Andreas Kling  <akling@apple.com>
1525
1526         Remove Apple Dictionary workaround in WebFrameLoaderClient.
1527         <https://webkit.org/b/132095>
1528
1529         Kill a hack to work around a WK1 client bug that got fixed years ago.
1530         See <rdar://problem/6471058> for backstory.
1531
1532         Reviewed by Darin Adler.
1533
1534         * WebCoreSupport/WebFrameLoaderClient.mm:
1535         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1536         (WebFrameLoaderClient::dispatchWillSendRequest):
1537         (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
1538         (applyAppleDictionaryApplicationQuirk): Deleted.
1539
1540 2014-04-23  Anders Carlsson  <andersca@apple.com>
1541
1542         Don't migrate the WKView.h header from WebCore to WebKit
1543         https://bugs.webkit.org/show_bug.cgi?id=132086
1544
1545         Reviewed by Dan Bernstein.
1546
1547         * MigrateHeaders.make:
1548         Remove WKView.h from the list of headers to migrate.
1549
1550         * WebView/WebView.mm:
1551         Import WKView.h.
1552
1553 2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
1554
1555         Cursor doesn't change back to pointer when leaving the Safari window
1556         https://bugs.webkit.org/show_bug.cgi?id=132038
1557
1558         Reviewed by Alexey Proskuryakov.
1559
1560         Since the cursor type is now updated asynchronously after r147739,
1561         [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
1562         evalutes to false depending on how fast cursor is moving.
1563
1564         Instead, check whether the NSWindow of the WebView is the key window or not since
1565         key window appears to control the cursor style in Cocoa as far as I've tested:
1566         https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
1567
1568         * WebCoreSupport/WebChromeClient.mm:
1569         (WebChromeClient::setCursor):
1570
1571 2014-04-22  Commit Queue  <commit-queue@webkit.org>
1572
1573         Unreviewed, rolling out r167674.
1574         https://bugs.webkit.org/show_bug.cgi?id=132025
1575
1576         Going a different way with this (Requested by bradee-oh on
1577         #webkit).
1578
1579         Reverted changeset:
1580
1581         "Change Image Controls replacement to use selection and paste"
1582         https://bugs.webkit.org/show_bug.cgi?id=131992
1583         http://trac.webkit.org/changeset/167674
1584
1585 2014-04-22  Brady Eidson  <beidson@apple.com>
1586
1587         Change Image Controls replacement to use selection and paste
1588         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
1589
1590         Reviewed by Tim Horton.
1591
1592         * Misc/WebSharingServicePickerController.mm:
1593         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
1594           replacement data to a special pasteboard, then replace the current selection from
1595           that pasteboard.
1596
1597 2014-04-21  Eric Carlson  <eric.carlson@apple.com>
1598
1599         [Mac] implement WebKitDataCue
1600         https://bugs.webkit.org/show_bug.cgi?id=131799
1601
1602         Reviewed by Dean Jackson.
1603
1604         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
1605
1606 2014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
1607
1608         Remove unused WebKitSystemInterface functions
1609         https://bugs.webkit.org/show_bug.cgi?id=131938
1610
1611         Reviewed by Alexey Proskuryakov.
1612
1613         * WebCoreSupport/WebSystemInterface.mm:
1614         (InitWebCoreSystemInterface):
1615
1616 2014-04-21  Zan Dobersek  <zdobersek@igalia.com>
1617
1618         Move cross-port Source/WebCore/page/ code to std::unique_ptr
1619         https://bugs.webkit.org/show_bug.cgi?id=130534
1620
1621         Reviewed by Darin Adler.
1622
1623         * WebView/WebHTMLRepresentation.mm:
1624         (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
1625
1626 2014-04-19  Darin Adler  <darin@apple.com>
1627
1628         [Mac] WebView adjusts the cursor even when another window is in front
1629         https://bugs.webkit.org/show_bug.cgi?id=131898
1630         rdar://problem/14619911
1631
1632         Reviewed by Dan Bernstein.
1633
1634         * WebCoreSupport/WebChromeClient.mm:
1635         (WebChromeClient::setCursor): Added a check that the window is under the cursor
1636         and do nothing if it's not.
1637
1638 2014-04-18  Commit Queue  <commit-queue@webkit.org>
1639
1640         Unreviewed, rolling out r167527.
1641         https://bugs.webkit.org/show_bug.cgi?id=131883
1642
1643         Broke 32-bit build (Requested by ap on #webkit).
1644
1645         Reverted changeset:
1646
1647         "[Mac] implement WebKitDataCue"
1648         https://bugs.webkit.org/show_bug.cgi?id=131799
1649         http://trac.webkit.org/changeset/167527
1650
1651 2014-04-18  Eric Carlson  <eric.carlson@apple.com>
1652
1653         [Mac] implement WebKitDataCue
1654         https://bugs.webkit.org/show_bug.cgi?id=131799
1655
1656         Reviewed by Dean Jackson.
1657
1658         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
1659
1660 2014-04-17  Daniel Bates  <dabates@apple.com>
1661
1662         [iOS] Hook up screen.{availHeight, availWidth, height, width}
1663         https://bugs.webkit.org/show_bug.cgi?id=131821
1664         <rdar://problem/16413795>
1665
1666         Reviewed by Benjamin Poulain and Tim Horton.
1667
1668         Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
1669
1670         Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
1671
1672         * WebCoreSupport/WebSystemInterface.mm:
1673         (InitWebCoreSystemInterface):
1674
1675 2014-04-17  Darin Adler  <darin@apple.com>
1676
1677         Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
1678         https://bugs.webkit.org/show_bug.cgi?id=131785
1679         rdar://problem/16003108
1680
1681         Reviewed by Brady Eidson.
1682         
1683         * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
1684
1685 2014-04-16  Tim Horton  <timothy_horton@apple.com>
1686
1687         Images dragged from WebKit1 on 2x displays are too big
1688         https://bugs.webkit.org/show_bug.cgi?id=131775
1689         <rdar://problem/15933525>
1690
1691         Reviewed by Simon Fraser.
1692
1693         * WebCoreSupport/WebDragClient.mm:
1694         (WebDragClient::startDrag):
1695         Scale the drag image's logical size down by the device scale factor
1696         in WebKit1 just like we do in WebKit2.
1697
1698 2014-04-13  Andy Estes  <aestes@apple.com>
1699
1700         [QuickLook] Move file system-related code into WebKit
1701         https://bugs.webkit.org/show_bug.cgi?id=131597
1702
1703         Reviewed by Dan Bernstein.
1704
1705         Moved file system and WebKit1-only code from QuickLookHandle into a new
1706         QuickLookHandleClient subclass.
1707
1708         * WebCoreSupport/WebFrameLoaderClient.h:
1709         * WebCoreSupport/WebFrameLoaderClient.mm:
1710
1711 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
1712
1713         Eliminate DragSession structure
1714         https://bugs.webkit.org/show_bug.cgi?id=131465
1715
1716         Reviewed by Benjamin Poulain.
1717
1718         * WebView/WebView.mm:
1719         (-[WebView draggingEntered:]):
1720         (-[WebView draggingUpdated:]):
1721
1722 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
1723
1724         Rename some dragging functions
1725         https://bugs.webkit.org/show_bug.cgi?id=131460
1726
1727         Reviewed by Tim Horton.
1728
1729         Renamed performDrag to performDragOperation.
1730
1731         * WebView/WebView.mm: (-[WebView performDragOperation:]):
1732
1733 2014-04-08  Jon Lee  <jonlee@apple.com>
1734
1735         Turn MSE on by default
1736         https://bugs.webkit.org/show_bug.cgi?id=131313
1737         <rdar://problem/16525223>
1738
1739         Reviewed by Jer Noble.
1740
1741         * Configurations/FeatureDefines.xcconfig:
1742         * WebView/WebPreferences.mm:
1743         (+[WebPreferences initialize]): Set default to true.
1744
1745 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
1746
1747         Rename Clipboard to DataTransfer
1748         https://bugs.webkit.org/show_bug.cgi?id=131371
1749
1750         Reviewed by Anders Carlsson.
1751
1752         * WebCoreSupport/WebDragClient.h:
1753         * WebCoreSupport/WebDragClient.mm:
1754         (WebDragClient::willPerformDragSourceAction):
1755         (WebDragClient::startDrag):
1756         * WebView/WebPDFView.mm:
1757
1758 2014-04-08  Dan Bernstein  <mitz@apple.com>
1759
1760         WebKit part of [Cocoa] Add WKFormDelegate
1761         https://bugs.webkit.org/show_bug.cgi?id=131343
1762
1763         Reviewed by Anders Carlsson.
1764
1765         * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
1766
1767 2014-04-08  Daniel Bates  <dabates@apple.com>
1768
1769         Fallback to default storage session when there isn't a valid session ID
1770         https://bugs.webkit.org/show_bug.cgi?id=131326
1771         <rdar://problem/16231679>
1772
1773         Reviewed by Alexey Proskuryakov.
1774
1775         Fixes and issue where we may use the wrong storage session after disabling
1776         a private browsing session.
1777
1778         Currently WebKit1 and WebKit2 without NetworkProcess assume that there
1779         is always a non-null private browsing storage session so long as the page
1780         has a non-default session ID. Instead we should only use the private browsing
1781         storage session when it's non-null and the page has a non-default session ID;
1782         otherwise, we should use the default storage session. This change will make
1783         the behavior in WebKit1 and WebKit2 without NetworkProcess consistent with
1784         the behavior in WebKit2 with NetworkProcess.
1785
1786         * WebCoreSupport/WebFrameNetworkingContext.mm:
1787         (WebFrameNetworkingContext::storageSession):
1788
1789 2014-04-06  Sam Weinig  <sam@webkit.org>
1790
1791         Document user content related APIs
1792
1793         Reviewed by Anders Carlsson.
1794
1795         * MigrateHeaders.make:
1796
1797 2014-04-06  Darin Adler  <darin@apple.com>
1798
1799         Refactor post-attach and HTMLObjectElement-related code
1800         https://bugs.webkit.org/show_bug.cgi?id=131282
1801
1802         Reviewed by Antti Koivisto.
1803
1804         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
1805         doing a static_cast.
1806
1807 2014-04-04  Brian J. Burg  <burg@cs.washington.edu>
1808
1809         Enable WEB_REPLAY for PLATFORM(MAC)
1810         https://bugs.webkit.org/show_bug.cgi?id=130700
1811
1812         Reviewed by Timothy Hatcher.
1813
1814         * Configurations/FeatureDefines.xcconfig:
1815
1816 2014-04-03  Sam Weinig  <sam@webkit.org>
1817
1818         [WebKit2] Promote user script SPI to API
1819         https://bugs.webkit.org/show_bug.cgi?id=131181
1820
1821         Reviewed by Anders Carlsson.
1822
1823         * MigrateHeaders.make:
1824
1825 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
1826
1827         [iOS] Remove the legacy string drawing code
1828         https://bugs.webkit.org/show_bug.cgi?id=131088
1829
1830         Reviewed by Sam Weinig.
1831
1832         * Configurations/WebKit.xcconfig:
1833
1834 2014-04-02  Mark Rowe  <mrowe@apple.com>
1835
1836         <https://webkit.org/b/131135> Introduce LockHistory and LockBackForwardList enums to use in place of bools.
1837
1838         These arguments are often passed using literals at the call site, where the use of bools severely hinders
1839         the readability of the code.
1840
1841         Reviewed by Andreas Kling.
1842
1843         * WebView/WebPDFView.mm:
1844         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1845
1846 2014-04-02  Stephanie Lewis  <slewis@apple.com>
1847
1848         Roll out http://trac.webkit.org/changeset/166144
1849         <rdar://problem/16481284> PLT stops loading on news.google.com
1850         
1851         Unreviewed rollout.
1852
1853         Rollout 166144 since it prevents the PLT from completing.
1854
1855         * WebCoreSupport/WebFrameLoaderClient.mm:
1856
1857 2014-04-02  Daniel Bates  <dabates@apple.com>
1858
1859         Remove Settings::maximumDecodedImageSize()
1860         https://bugs.webkit.org/show_bug.cgi?id=131057
1861         <rdar://problem/15626368>
1862
1863         Reviewed by Darin Adler. 
1864
1865         Remove preferences key WebKitMaximumImageSize.
1866
1867         * WebView/WebPreferenceKeysPrivate.h:
1868         * WebView/WebPreferences.mm:
1869         (+[WebPreferences initialize]):
1870         (-[WebPreferences _maximumImageSize:]): Deleted.
1871         * WebView/WebPreferencesPrivate.h:
1872         * WebView/WebView.mm:
1873         (-[WebView _preferencesChanged:]):
1874
1875 2014-04-02  Martin Hock  <mhock@apple.com>
1876
1877         Unify private browsing with sessions.
1878         https://bugs.webkit.org/show_bug.cgi?id=130099
1879
1880         Reviewed by Alexey Proskuryakov.
1881
1882         * WebCoreSupport/WebFrameLoaderClient.mm: Change WebCore::Settings::privateBrowsingEnabled() to Page::sessionID().isEphemeral().
1883         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
1884         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
1885         (WebFrameNetworkingContext::storageSession):
1886         * WebView/WebView.mm: Change WebCore::Settings::setPrivateBrowsingEnabled() to Page::enableLegacyPrivateBrowsing().
1887         (-[WebView _preferencesChanged:]):
1888
1889 2014-04-01  Anders Carlsson  <andersca@apple.com>
1890
1891         Migrate more headers
1892         https://bugs.webkit.org/show_bug.cgi?id=131068
1893
1894         Reviewed by Tim Horton.
1895
1896         * MigrateHeaders.make:
1897
1898 2014-04-01  Manuel Rego Casasnovas  <rego@igalia.com>
1899
1900         [CSS Grid Layout] Enable runtime feature if feature flag is enabled
1901         https://bugs.webkit.org/show_bug.cgi?id=130013
1902
1903         Reviewed by Simon Fraser.
1904
1905         Enable CSS Grid Layout runtime feature when ENABLE_CSS_GRID_LAYOUT flag is true.
1906
1907         * WebView/WebPreferences.mm:
1908         (+[WebPreferences initialize]):
1909
1910 2014-03-31  Simon Fraser  <simon.fraser@apple.com>
1911
1912         Enable WEB_TIMING on Mac and iOS
1913         https://bugs.webkit.org/show_bug.cgi?id=128064
1914
1915         Reviewed by Sam Weinig, Brent Fulgham.
1916
1917         Enable WEB_TIMING.
1918
1919         * Configurations/FeatureDefines.xcconfig:
1920
1921 2014-03-31  Dean Jackson  <dino@apple.com>
1922
1923         Remove WEB_ANIMATIONS
1924         https://bugs.webkit.org/show_bug.cgi?id=130989
1925
1926         Reviewed by Simon Fraser.
1927
1928         Remove this feature flag until we plan to implement.
1929
1930         * Configurations/FeatureDefines.xcconfig:
1931
1932 2014-03-31  Antti Koivisto  <antti@apple.com>
1933
1934         Rename TileCache to LegacyTileCache
1935         https://bugs.webkit.org/show_bug.cgi?id=130986
1936
1937         Reviewed by Simon Fraser.
1938
1939         * WebView/WebView.mm:
1940         (+[WebView drainLayerPool]):
1941         (+[WebView _setTileCacheLayerPoolCapacity:]):
1942
1943 2014-03-28  Darin Adler  <darin@apple.com>
1944
1945         Fix recently-introduced off-by-one error in centerTruncateToBuffer
1946         https://bugs.webkit.org/show_bug.cgi?id=130889
1947
1948         Reviewed by Alexey Proskuryakov.
1949
1950         * Misc/WebStringTruncator.mm:
1951         (defaultMenuFont): Changed to use NeverDestroyed since I had to touch this file anyway.
1952         (fontFromNSFont): Ditto. Also improved variable names a bit.
1953         (+[WebStringTruncator initialize]): Added threading initialization, needed for main
1954         thread assertions in string truncator code.
1955
1956 2014-03-27  Commit Queue  <commit-queue@webkit.org>
1957
1958         Unreviewed, rolling out r166360.
1959         https://bugs.webkit.org/show_bug.cgi?id=130869
1960
1961         Seems to have broken PLT (Requested by ap on #webkit).
1962
1963         Reverted changeset:
1964
1965         "Connection::dispatchOneMessage() can be re-entered while
1966         handling Cmd-key menu"
1967         https://bugs.webkit.org/show_bug.cgi?id=130767
1968         http://trac.webkit.org/changeset/166360
1969
1970 2014-03-27  Alexey Proskuryakov  <ap@apple.com>
1971
1972         Connection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
1973         equivalents, ASSERT(!_data->_keyDownEventBeingResent)
1974         https://bugs.webkit.org/show_bug.cgi?id=130767
1975         <rdar://problem/16307487>
1976
1977         Reviewed by Darin Adler.
1978
1979         Switched to a WebCore wrapper for RunLoop::initializeMainRunLoop that adds
1980         NSModalPanelRunLoopMode to RunLoop event source and timer modes.
1981
1982         * Carbon/CarbonWindowAdapter.mm: (+[CarbonWindowAdapter initialize]):
1983         * History/WebBackForwardList.mm: (+[WebBackForwardList initialize]):
1984         * History/WebHistoryItem.mm: (+[WebHistoryItem initialize]):
1985         * Misc/WebCache.mm: (+[WebCache initialize]):
1986         * Misc/WebElementDictionary.mm: (+[WebElementDictionary initialize]):
1987         * Misc/WebIconDatabase.mm: (+[WebIconDatabase initialize]):
1988         * Plugins/Hosted/WebHostedNetscapePluginView.mm: (+[WebHostedNetscapePluginView initialize]):
1989         * Plugins/WebBaseNetscapePluginView.mm:
1990         * Plugins/WebBasePluginPackage.mm:
1991         * Plugins/WebNetscapePluginView.mm: (+[WebNetscapePluginView initialize]):
1992         * WebCoreSupport/WebEditorClient.mm: (+[WebUndoStep initialize]):
1993         * WebCoreSupport/WebFrameLoaderClient.mm:
1994         * WebView/WebArchive.mm: (+[WebArchivePrivate initialize]):
1995         * WebView/WebDataSource.mm: (+[WebDataSource initialize]):
1996         * WebView/WebHTMLView.mm:
1997         (+[WebHTMLViewPrivate initialize]):
1998         (+[WebHTMLView initialize]):
1999         * WebView/WebPreferences.mm: (+[WebPreferences initialize]):
2000         * WebView/WebResource.mm: (+[WebResourcePrivate initialize]):
2001         * WebView/WebTextIterator.mm: (+[WebTextIteratorPrivate initialize]):
2002         * WebView/WebView.mm: (+[WebView initialize]):
2003         * WebView/WebViewData.mm: (+[WebViewPrivate initialize]):
2004
2005 2014-03-26  Timothy Hatcher  <timothy@apple.com>
2006
2007         Propagate the hiddenFromInspector flag on ResourceRequest in
2008         places when a new request a made or passed between processes.
2009
2010         https://bugs.webkit.org/show_bug.cgi?id=130741
2011
2012         Reviewed by Joseph Pecoraro.
2013
2014         * WebCoreSupport/WebFrameLoaderClient.mm:
2015         (WebFrameLoaderClient::dispatchWillSendRequest): Copy hiddenFromInspector to
2016         the new request.
2017
2018 2014-03-26  Zoltan Horvath  <zoltan@webkit.org>
2019
2020         [CSS Shapes] Remove shape-inside support
2021         https://bugs.webkit.org/show_bug.cgi?id=130698
2022
2023         Reviewed by David Hyatt.
2024
2025         * Configurations/FeatureDefines.xcconfig:
2026
2027 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
2028
2029         [iOS] Inspector View Indication Support
2030         https://bugs.webkit.org/show_bug.cgi?id=130709
2031
2032         Reviewed by Simon Fraser.
2033
2034         * WebCoreSupport/WebInspectorClient.h:
2035         * WebCoreSupport/WebInspectorClient.mm:
2036         (WebInspectorClient::didSetSearchingForNode): Deleted.
2037         (WebInspectorClient::releaseFrontend): Deleted.
2038         * WebView/WebView.mm:
2039         (-[WebView setShowingInspectorIndication:]):
2040         * WebView/WebViewPrivate.h:
2041         Renamed methods.
2042
2043 2014-03-24  Brent Fulgham  <bfulgham@apple.com>
2044
2045         Activate WebVTT Tests Once Merging is Complete
2046         https://bugs.webkit.org/show_bug.cgi?id=130420
2047
2048         Reviewed by Eric Carlson.
2049
2050         * Configurations/FeatureDefines.xcconfig: Turn on ENABLE(WEBVTT_REGIONS)
2051
2052 2014-03-24  Andy Estes  <aestes@apple.com>
2053
2054         [iOS] Download support by CFURLDownloadRef under USE(CFNETWORK).
2055         https://bugs.webkit.org/show_bug.cgi?id=129322
2056
2057         Reviewed by Anders Carlsson.
2058
2059         * WebCoreSupport/WebFrameLoaderClient.mm:
2060         (WebFrameLoaderClient::convertMainResourceLoadToDownload): Use the
2061         RetainPtr returned by releaseConnectionForDownload() rather than
2062         manually releasing.
2063
2064 2014-03-24  Jon Lee  <jonlee@apple.com>
2065
2066         Build fixes.
2067
2068         Unreviewed.
2069
2070         * WebInspector/WebNodeHighlightView.mm: Missing include to GeometryUtilities.
2071
2072 2014-03-23  Sam Weinig  <sam@webkit.org>
2073
2074         Remove some unnecessary .get()s that Darin noticed.
2075
2076         * WebView/WebHTMLRepresentation.mm:
2077         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2078         * WebView/WebHTMLView.mm:
2079         (-[WebHTMLView attributedString]):
2080
2081 2014-03-23  Sam Weinig  <sam@webkit.org>
2082
2083         Simplify the HTMLConverter interface (Part 2)
2084         https://bugs.webkit.org/show_bug.cgi?id=130654
2085
2086         Reviewed by Darin Adler.
2087
2088         * WebView/WebHTMLRepresentation.mm:
2089         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2090         * WebView/WebHTMLView.mm:
2091         (-[WebHTMLView attributedSubstringFromRange:]):
2092         (-[WebHTMLView attributedString]):
2093         (-[WebHTMLView selectedAttributedString]):
2094
2095 2014-03-23  Darin Adler  <darin@apple.com>
2096
2097         Remove code in HTMLObjectElement attribute parsing that forces style resolution and layout
2098         https://bugs.webkit.org/show_bug.cgi?id=130653
2099
2100         Reviewed by Antti Koivisto.
2101
2102         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
2103         doing a static_cast.
2104
2105 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
2106
2107         Don't flush compositing layers within FrameView::willPaintContents()
2108         https://bugs.webkit.org/show_bug.cgi?id=130627
2109
2110         Reviewed by Sam Weinig.
2111         
2112         Make _flushCompositingChanges private so DRT can call it;
2113         moved it into the Private category.
2114
2115         * WebView/WebView.mm:
2116         (-[WebView _flushCompositingChanges]):
2117         * WebView/WebViewPrivate.h:
2118
2119 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
2120
2121         Remove duplicate line added during merging
2122         https://bugs.webkit.org/show_bug.cgi?id=130623
2123
2124         Reviewed by Beth Dakin.
2125         
2126         Remove a duplicate call to -_viewWillDrawInternal which
2127         was added during merges.
2128
2129         * WebView/WebView.mm:
2130         (LayerFlushController::flushLayers):
2131
2132 2014-03-21  Darin Adler  <darin@apple.com>
2133
2134         Improve idiom used for string building in a few places
2135         https://bugs.webkit.org/show_bug.cgi?id=130561
2136
2137         Reviewed by Andreas Kling.
2138
2139         * WebView/WebHTMLRepresentation.mm:
2140         (regExpForLabels): Use StringBuilder.
2141
2142 2014-03-21  Darin Adler  <darin@apple.com>
2143
2144         Add a combined decodeAndFlush to TextResourceDecoder
2145         https://bugs.webkit.org/show_bug.cgi?id=130560
2146
2147         Reviewed by Andreas Kling.
2148
2149         * WebView/WebView.mm:
2150         (+[WebView _decodeData:]): Use decodeAndFlush.
2151
2152 2014-03-20  Anders Carlsson  <andersca@apple.com>
2153
2154         Fix build.
2155
2156         * MigrateHeaders.make:
2157
2158 2014-03-20  Pratik Solanki  <psolanki@apple.com>
2159
2160         [iOS] Get code to compile on older iOS versions
2161         https://bugs.webkit.org/show_bug.cgi?id=130142
2162         <rdar://problem/16302908>
2163
2164         Reviewed by Darin Adler.
2165
2166         * History/WebHistory.mm:
2167         (getDayBoundaries):
2168         * Plugins/WebPluginController.h:
2169         * Plugins/WebPluginController.mm:
2170         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2171         * WebCoreSupport/WebFrameLoaderClient.mm:
2172         (pluginView):
2173         * WebView/WebPreferences.mm:
2174         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
2175         * WebView/WebPreferencesPrivate.h:
2176
2177 2014-03-20  Lucas Forschler  <lforschler@apple.com>
2178
2179     Rollout r165944.  Build break.
2180     
2181 2014-03-19  Pratik Solanki  <psolanki@apple.com>
2182
2183         [iOS] Get code to compile on older iOS versions
2184         https://bugs.webkit.org/show_bug.cgi?id=130142
2185         <rdar://problem/16302908>
2186
2187         Reviewed by Darin Adler.
2188
2189         * History/WebHistory.mm:
2190         (getDayBoundaries):
2191         * Plugins/WebPluginController.h:
2192         * Plugins/WebPluginController.mm:
2193         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2194         * WebCoreSupport/WebFrameLoaderClient.mm:
2195         (pluginView):
2196         * WebView/WebPreferences.mm:
2197         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
2198         * WebView/WebPreferencesPrivate.h:
2199
2200 2014-03-19  Jer Noble  <jer.noble@apple.com>
2201
2202         [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
2203         https://bugs.webkit.org/show_bug.cgi?id=130459
2204
2205         Reviewed by Eric Carlson.
2206
2207         * WebCoreSupport/WebSystemInterface.mm:
2208         (InitWebCoreSystemInterface): Initialize the new WCSI method.
2209
2210 2014-03-19  Brady Eidson  <beidson@apple.com>
2211
2212         Filter out editable services from image menu for non-contenteditable images
2213         <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
2214
2215         Reviewed by Tim Horton.
2216
2217         * Misc/WebSharingServicePickerController.h:
2218         * Misc/WebSharingServicePickerController.mm:
2219         (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
2220           Filter out editing services based on the includeEditorServices flag.
2221         * WebCoreSupport/WebContextMenuClient.mm:
2222         (WebContextMenuClient::contextMenuForEvent):
2223
2224 2014-03-19  Jer Noble  <jer.noble@apple.com>
2225
2226         [iOS] Disable the video plugin proxy by default on WK1.
2227         https://bugs.webkit.org/show_bug.cgi?id=130460
2228
2229         Reviewed by Eric Carlson.
2230
2231         Update the defaults to universally enable the AVFoundationEnabled preference, disable the
2232         VideoPluginProxyEnabled preference, and on iOS only enable the AVKitEnabled preference.
2233
2234         * WebView/WebPreferences.mm:
2235         (+[WebPreferences initialize]):
2236
2237 2014-03-18  Samuel White  <samuel_white@apple.com>
2238
2239         AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
2240         https://bugs.webkit.org/show_bug.cgi?id=130250
2241
2242         Reviewed by Chris Fleizach.
2243
2244         Added ability to toggle enhanced accessibility on and off to support tests that require it.
2245
2246         * WebView/WebFrame.mm:
2247         (-[WebFrame enhancedAccessibilityEnabled]):
2248         (-[WebFrame setEnhancedAccessibility:]):
2249         * WebView/WebFramePrivate.h:
2250
2251 2014-03-17  Filip Pizlo  <fpizlo@apple.com>
2252
2253         More FTL enabling.
2254
2255         Rubber stamped by Dan Bernstein.
2256
2257         * Configurations/FeatureDefines.xcconfig:
2258
2259 2014-03-17  Andy Estes  <aestes@apple.com>
2260
2261         Remove staging code added for <http://webkit.org/b/129358> [iOS] Support network state notification using CPNetworkObserver
2262
2263         Reviewed by Enrica Casucci.
2264
2265         * WebView/WebView.mm:
2266
2267 2014-03-17  Anders Carlsson  <andersca@apple.com>
2268
2269         WebKitLegacy headers should #import the relevant WebKit headers
2270         https://bugs.webkit.org/show_bug.cgi?id=130372
2271         <rdar://problem/16349094>
2272
2273         Reviewed by Dan Bernstein.
2274
2275         Create forwarding headers instead.
2276
2277         * WebKitLegacy/MigrateHeadersToLegacy.make:
2278
2279 2014-03-17  Tim Horton  <timothy_horton@apple.com>
2280
2281         Rename WKThumbnailView to _WKThumbnailView
2282         https://bugs.webkit.org/show_bug.cgi?id=130361
2283
2284         Reviewed by Anders Carlsson.
2285
2286         * MigrateHeaders.make:
2287
2288 2014-03-17  David Farler  <dfarler@apple.com>
2289
2290         REGRESSION: WebKitLegacy causes ASan build to fail
2291         <rdar://problem/16344326>
2292
2293         Reviewed by David Kilzer.
2294
2295         * Configurations/DebugRelease.xcconfig: Remove $(inherited) from
2296         OTHER_CFLAGS, OTHER_CPLUSPLUSFLAGS, OTHER_LDFLAGS to prevent
2297         double complete ASAN flags.
2298
2299 2014-03-16  Brent Fulgham  <bfulgham@apple.com>
2300
2301         Provide preference to enable additional AVFoundation options
2302         https://bugs.webkit.org/show_bug.cgi?id=130275
2303
2304         Reviewed by Eric Carlson.
2305
2306         * WebView/WebPreferenceKeysPrivate.h: Added new preference.
2307         * WebView/WebPreferences.mm:
2308         (+[WebPreferences initialize]): Initialize preference to false.
2309         (-[WebPreferences isInheritURIQueryComponentEnabled]): Added.
2310         (-[WebPreferences setEnableInheritURIQueryComponent:]): Added.
2311         * WebView/WebPreferencesPrivate.h:
2312         * WebView/WebView.mm:
2313         (-[WebView _preferencesChanged:]): Handle new preference.
2314
2315 2014-03-16  Darin Adler  <darin@apple.com>
2316
2317         Remove all deprecatedCharacters use from WebKit directory
2318         https://bugs.webkit.org/show_bug.cgi?id=130305
2319
2320         Reviewed by Andreas Kling.
2321
2322         * History/BinaryPropertyList.cpp:
2323         (BinaryPropertyListSerializer::appendStringObject): Use operator[]
2324         instead of deprecatedCharacters.
2325
2326 2014-03-14  Mark Rowe  <mrowe@apple.com>
2327
2328         Fix the production build.
2329
2330         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
2331         be at the expected relative path when working from installed source.
2332
2333         * Configurations/Base.xcconfig:
2334
2335 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
2336
2337         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2338         https://bugs.webkit.org/show_bug.cgi?id=130276
2339         <rdar://problem/16266927>
2340         
2341         Reviewed by Simon Fraser.
2342
2343         * Carbon/CarbonUtils.h:
2344         * Carbon/CarbonUtils.m:
2345         * Carbon/CarbonWindowAdapter.h:
2346         * Carbon/CarbonWindowAdapter.mm:
2347         * Carbon/CarbonWindowContentView.h:
2348         * Carbon/CarbonWindowContentView.m:
2349         * Carbon/CarbonWindowFrame.h:
2350         * Carbon/CarbonWindowFrame.m:
2351         * Carbon/HIViewAdapter.h:
2352         * Carbon/HIViewAdapter.m:
2353         * Carbon/HIWebView.h:
2354         * Carbon/HIWebView.mm:
2355         * DOM/WebDOMOperations.h:
2356         * DOM/WebDOMOperations.mm:
2357         * DOM/WebDOMOperationsInternal.h:
2358         * DOM/WebDOMOperationsPrivate.h:
2359         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
2360         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2361         * DefaultDelegates/WebDefaultEditingDelegate.h:
2362         * DefaultDelegates/WebDefaultEditingDelegate.m:
2363         * DefaultDelegates/WebDefaultPolicyDelegate.h:
2364         * DefaultDelegates/WebDefaultPolicyDelegate.m:
2365         * DefaultDelegates/WebDefaultUIDelegate.h:
2366         * DefaultDelegates/WebDefaultUIDelegate.m:
2367         * History/WebBackForwardList.h:
2368         * History/WebBackForwardList.mm:
2369         * History/WebBackForwardListInternal.h:
2370         * History/WebBackForwardListPrivate.h:
2371         * History/WebHistory.h:
2372         * History/WebHistory.mm:
2373         * History/WebHistoryInternal.h:
2374         * History/WebHistoryItem.h:
2375         * History/WebHistoryItem.mm:
2376         * History/WebHistoryItemInternal.h:
2377         * History/WebHistoryItemPrivate.h:
2378         * History/WebHistoryPrivate.h:
2379         * History/WebURLsWithTitles.h:
2380         * History/WebURLsWithTitles.m:
2381         * MigrateHeaders.make:
2382         * Misc/OldWebAssertions.c:
2383         * Misc/WebCache.h:
2384         * Misc/WebCache.mm:
2385         * Misc/WebCoreStatistics.h:
2386         * Misc/WebCoreStatistics.mm:
2387         * Misc/WebDownload.h:
2388         * Misc/WebDownload.mm:
2389         * Misc/WebDownloadInternal.h:
2390         * Misc/WebElementDictionary.h:
2391         * Misc/WebElementDictionary.mm:
2392         * Misc/WebIconDatabase.h:
2393         * Misc/WebIconDatabase.mm:
2394         * Misc/WebIconDatabaseDelegate.h:
2395         * Misc/WebIconDatabaseInternal.h:
2396         * Misc/WebIconDatabasePrivate.h:
2397         * Misc/WebKit.h:
2398         * Misc/WebKitErrors.h:
2399         * Misc/WebKitErrors.m:
2400         * Misc/WebKitErrorsPrivate.h:
2401         * Misc/WebKitLogging.h:
2402         * Misc/WebKitLogging.m:
2403         * Misc/WebKitNSStringExtras.h:
2404         * Misc/WebKitNSStringExtras.mm:
2405         * Misc/WebKitStatistics.h:
2406         * Misc/WebKitStatistics.m:
2407         * Misc/WebKitStatisticsPrivate.h:
2408         * Misc/WebKitSystemBits.h:
2409         * Misc/WebKitSystemBits.m:
2410         * Misc/WebKitVersionChecks.h:
2411         * Misc/WebKitVersionChecks.m:
2412         * Misc/WebLocalizableStrings.h:
2413         * Misc/WebLocalizableStrings.mm:
2414         * Misc/WebNSArrayExtras.h:
2415         * Misc/WebNSArrayExtras.m:
2416         * Misc/WebNSControlExtras.h:
2417         * Misc/WebNSControlExtras.m:
2418         * Misc/WebNSDataExtras.h:
2419         * Misc/WebNSDataExtras.m:
2420         * Misc/WebNSDataExtrasPrivate.h:
2421         * Misc/WebNSDictionaryExtras.h:
2422         * Misc/WebNSDictionaryExtras.m:
2423         * Misc/WebNSEventExtras.h:
2424         * Misc/WebNSEventExtras.m:
2425         * Misc/WebNSFileManagerExtras.h:
2426         * Misc/WebNSFileManagerExtras.mm:
2427         * Misc/WebNSImageExtras.h:
2428         * Misc/WebNSImageExtras.m:
2429         * Misc/WebNSObjectExtras.h:
2430         * Misc/WebNSObjectExtras.mm:
2431         * Misc/WebNSPasteboardExtras.h:
2432         * Misc/WebNSPasteboardExtras.mm:
2433         * Misc/WebNSPrintOperationExtras.h:
2434         * Misc/WebNSPrintOperationExtras.m:
2435         * Misc/WebNSURLExtras.h:
2436         * Misc/WebNSURLExtras.mm:
2437         * Misc/WebNSURLRequestExtras.h:
2438         * Misc/WebNSURLRequestExtras.m:
2439         * Misc/WebNSUserDefaultsExtras.h:
2440         * Misc/WebNSUserDefaultsExtras.mm:
2441         * Misc/WebNSViewExtras.h:
2442         * Misc/WebNSViewExtras.m:
2443         * Misc/WebNSWindowExtras.h:
2444         * Misc/WebNSWindowExtras.m:
2445         * Misc/WebStringTruncator.h:
2446         * Misc/WebStringTruncator.mm:
2447         * Misc/WebTypesInternal.h:
2448         * Panels/WebAuthenticationPanel.h:
2449         * Panels/WebAuthenticationPanel.m:
2450         * Panels/WebPanelAuthenticationHandler.h:
2451         * Panels/WebPanelAuthenticationHandler.m:
2452         * Plugins/Hosted/ProxyRuntimeObject.h:
2453         * Plugins/Hosted/ProxyRuntimeObject.mm:
2454         * Plugins/WebBaseNetscapePluginView.h:
2455         * Plugins/WebBaseNetscapePluginView.mm:
2456         * Plugins/WebBasePluginPackage.h:
2457         * Plugins/WebBasePluginPackage.mm:
2458         * Plugins/WebJavaPlugIn.h:
2459         * Plugins/WebNetscapeContainerCheckContextInfo.h:
2460         * Plugins/WebNetscapeContainerCheckPrivate.h:
2461         * Plugins/WebNetscapeContainerCheckPrivate.mm:
2462         * Plugins/WebNetscapePluginPackage.h:
2463         * Plugins/WebNetscapePluginPackage.mm:
2464         * Plugins/WebNetscapePluginStream.h:
2465         * Plugins/WebNetscapePluginStream.mm:
2466         * Plugins/WebNetscapePluginView.h:
2467         * Plugins/WebNetscapePluginView.mm:
2468         * Plugins/WebPlugin.h:
2469         * Plugins/WebPluginContainer.h:
2470         * Plugins/WebPluginContainerCheck.h:
2471         * Plugins/WebPluginContainerCheck.mm:
2472         * Plugins/WebPluginContainerPrivate.h:
2473         * Plugins/WebPluginController.h:
2474         * Plugins/WebPluginController.mm:
2475         * Plugins/WebPluginDatabase.h:
2476         * Plugins/WebPluginDatabase.mm:
2477         * Plugins/WebPluginPackage.h:
2478         * Plugins/WebPluginPackage.mm:
2479         * Plugins/WebPluginRequest.h:
2480         * Plugins/WebPluginRequest.m:
2481         * Plugins/WebPluginViewFactory.h:
2482         * Plugins/WebPluginViewFactoryPrivate.h:
2483         * Plugins/WebPluginsPrivate.h:
2484         * Plugins/WebPluginsPrivate.m:
2485         * Plugins/npapi.mm:
2486         * Storage/WebDatabaseManager.mm:
2487         * Storage/WebDatabaseManagerInternal.h:
2488         * Storage/WebDatabaseManagerPrivate.h:
2489         * WebCoreSupport/SearchPopupMenuMac.mm:
2490         * WebCoreSupport/WebAlternativeTextClient.h:
2491         * WebCoreSupport/WebAlternativeTextClient.mm:
2492         * WebCoreSupport/WebCachedFramePlatformData.h:
2493         * WebCoreSupport/WebChromeClient.h:
2494         * WebCoreSupport/WebChromeClient.mm:
2495         * WebCoreSupport/WebContextMenuClient.h:
2496         * WebCoreSupport/WebContextMenuClient.mm:
2497         * WebCoreSupport/WebDragClient.h:
2498         * WebCoreSupport/WebDragClient.mm:
2499         * WebCoreSupport/WebEditorClient.h:
2500         * WebCoreSupport/WebEditorClient.mm:
2501         * WebCoreSupport/WebFrameLoaderClient.h:
2502         * WebCoreSupport/WebFrameLoaderClient.mm:
2503         * WebCoreSupport/WebIconDatabaseClient.h:
2504         * WebCoreSupport/WebIconDatabaseClient.mm:
2505         * WebCoreSupport/WebInspectorClient.h:
2506         * WebCoreSupport/WebInspectorClient.mm:
2507         * WebCoreSupport/WebJavaScriptTextInputPanel.h:
2508         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
2509         * WebCoreSupport/WebSecurityOrigin.mm:
2510         * WebCoreSupport/WebSecurityOriginInternal.h:
2511         * WebCoreSupport/WebSecurityOriginPrivate.h:
2512         * WebCoreSupport/WebSystemInterface.h:
2513         * WebCoreSupport/WebSystemInterface.mm:
2514         * WebInspector/WebInspector.h:
2515         * WebInspector/WebInspector.mm:
2516         * WebInspector/WebInspectorPrivate.h:
2517         * WebInspector/WebNodeHighlight.h:
2518         * WebInspector/WebNodeHighlight.mm:
2519         * WebInspector/WebNodeHighlightView.h:
2520         * WebInspector/WebNodeHighlightView.mm:
2521         * WebInspector/WebNodeHighlighter.h:
2522         * WebInspector/WebNodeHighlighter.mm:
2523         * WebKitLegacy/MigrateHeadersToLegacy.make:
2524         * WebKitPrefix.h:
2525         * WebView/WebArchive.h:
2526         * WebView/WebArchive.mm:
2527         * WebView/WebArchiveInternal.h:
2528         * WebView/WebClipView.h:
2529         * WebView/WebClipView.mm:
2530         * WebView/WebDashboardRegion.h:
2531         * WebView/WebDashboardRegion.mm:
2532         * WebView/WebDataSource.h:
2533         * WebView/WebDataSource.mm:
2534         * WebView/WebDataSourceInternal.h:
2535         * WebView/WebDataSourcePrivate.h:
2536         * WebView/WebDelegateImplementationCaching.h:
2537         * WebView/WebDelegateImplementationCaching.mm:
2538         * WebView/WebDocument.h:
2539         * WebView/WebDocumentInternal.h:
2540         * WebView/WebDocumentLoaderMac.h:
2541         * WebView/WebDocumentLoaderMac.mm:
2542         * WebView/WebDocumentPrivate.h:
2543         * WebView/WebDynamicScrollBarsViewInternal.h:
2544         * WebView/WebEditingDelegate.h:
2545         * WebView/WebEditingDelegatePrivate.h:
2546         * WebView/WebFormDelegate.h:
2547         * WebView/WebFormDelegate.m:
2548         * WebView/WebFormDelegatePrivate.h:
2549         * WebView/WebFrame.h:
2550         * WebView/WebFrame.mm:
2551         * WebView/WebFrameInternal.h:
2552         * WebView/WebFrameLoadDelegate.h:
2553         * WebView/WebFrameLoadDelegatePrivate.h:
2554         * WebView/WebFramePrivate.h:
2555         * WebView/WebFrameView.h:
2556         * WebView/WebFrameView.mm:
2557         * WebView/WebFrameViewInternal.h:
2558         * WebView/WebFrameViewPrivate.h:
2559         * WebView/WebHTMLRepresentation.h:
2560         * WebView/WebHTMLRepresentation.mm:
2561         * WebView/WebHTMLRepresentationPrivate.h:
2562         * WebView/WebHTMLView.h:
2563         * WebView/WebHTMLView.mm:
2564         * WebView/WebHTMLViewInternal.h:
2565         * WebView/WebHTMLViewPrivate.h:
2566         * WebView/WebNotification.h:
2567         * WebView/WebNotification.mm:
2568         * WebView/WebNotificationInternal.h:
2569         * WebView/WebPDFRepresentation.h:
2570         * WebView/WebPDFRepresentation.mm:
2571         * WebView/WebPDFView.h:
2572         * WebView/WebPDFView.mm:
2573         * WebView/WebPolicyDelegate.h:
2574         * WebView/WebPolicyDelegate.mm:
2575         * WebView/WebPolicyDelegatePrivate.h:
2576         * WebView/WebPreferenceKeysPrivate.h:
2577         * WebView/WebPreferences.h:
2578         * WebView/WebPreferences.mm:
2579         * WebView/WebPreferencesPrivate.h:
2580         * WebView/WebRenderLayer.h:
2581         * WebView/WebRenderLayer.mm:
2582         * WebView/WebRenderNode.h:
2583         * WebView/WebRenderNode.mm:
2584         * WebView/WebResource.h:
2585         * WebView/WebResource.mm:
2586         * WebView/WebResourceInternal.h:
2587         * WebView/WebResourceLoadDelegate.h:
2588         * WebView/WebResourceLoadDelegatePrivate.h:
2589         * WebView/WebResourcePrivate.h:
2590         * WebView/WebScriptDebugDelegate.h:
2591         * WebView/WebScriptDebugDelegate.mm:
2592         * WebView/WebScriptDebugger.h:
2593         * WebView/WebScriptDebugger.mm:
2594         * WebView/WebTextCompletionController.mm:
2595         * WebView/WebUIDelegate.h:
2596         * WebView/WebUIDelegatePrivate.h:
2597         * WebView/WebView.h:
2598         * WebView/WebView.mm:
2599         * WebView/WebViewData.h:
2600         * WebView/WebViewData.mm:
2601         * WebView/WebViewInternal.h:
2602         * WebView/WebViewPrivate.h:
2603
2604 2014-03-14  Ryosuke Niwa  <rniwa@webkit.org>
2605
2606         REGRESSION(r165385): [WebTextIterator currentRange] crashes
2607         https://bugs.webkit.org/show_bug.cgi?id=130271
2608
2609         Reviewed by Anders Carlsson.
2610
2611         After r165385, TextIterator::range no longer checked the nullity of m_positionNode. As a result,
2612         [WebTextIterator currentRange] which simply calls TextIterator::range crashes when an application
2613         that embeds WebKit doesn't check [WebTextIterator atEnd] first.
2614
2615         Preserve the old public API behavior by checking atEnd in [WebTextIterator currentRange].
2616
2617         * WebView/WebTextIterator.mm:
2618         (-[WebTextIterator currentRange]):
2619
2620 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
2621
2622         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
2623         https://bugs.webkit.org/show_bug.cgi?id=129612
2624
2625         Reviewed by Darin Adler.
2626
2627         For new code use static NeverDestroyed<T> instead.
2628
2629         * History/WebBackForwardList.mm:
2630         (backForwardLists):
2631         * History/WebHistoryItem.mm:
2632         (historyItemWrappers):
2633         * Misc/WebNSPasteboardExtras.mm:
2634         (+[NSPasteboard _web_writableTypesForURL]):
2635         (_writableTypesForImageWithoutArchive):
2636         (_writableTypesForImageWithArchive):
2637         * Misc/WebStringTruncator.mm:
2638         (fontFromNSFont):
2639         * Plugins/Hosted/NetscapePluginHostManager.mm:
2640         (WebKit::NetscapePluginHostManager::shared):
2641         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2642         (WebKit::pluginProxyMap):
2643         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2644         (WebKit::globalExceptionString):
2645         * Plugins/Hosted/ProxyInstance.mm:
2646         (WebKit::proxyClass):
2647         * Plugins/WebNetscapePluginStream.mm:
2648         (streams):
2649         * Storage/WebDatabaseManager.mm:
2650         (transactionBackgroundTaskIdentifierLock):
2651         * WebCoreSupport/WebUserMediaClient.mm:
2652         (userMediaRequestsMap):
2653         * WebView/WebHTMLRepresentation.mm:
2654         (regExpForLabels):
2655         * WebView/WebView.mm:
2656         (aeDescFromJSValue):
2657
2658 2014-03-13  Tim Horton  <timothy_horton@apple.com>
2659
2660         Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
2661
2662         Rubber-stamped by Mark Rowe.
2663
2664         One-too-few "..".
2665
2666         * Configurations/Base.xcconfig:
2667
2668 2014-03-13  Anders Carlsson  <andersca@apple.com>
2669
2670         Fix build.
2671
2672         * Misc/WebSharingServicePickerController.mm:
2673
2674 2014-03-13  Radu Stavila  <stavila@adobe.com>
2675
2676         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
2677         https://bugs.webkit.org/show_bug.cgi?id=130087
2678
2679         Reviewed by Mark Rowe.
2680
2681         Disable garbage collection on macosx when not using internal SDK.
2682
2683         * Configurations/Base.xcconfig:
2684
2685 2014-03-10  Darin Adler  <darin@apple.com>
2686
2687         Avoid copy-prone idiom "for (auto item : collection)"
2688         https://bugs.webkit.org/show_bug.cgi?id=129990
2689
2690         Reviewed by Geoffrey Garen.
2691
2692         * WebView/WebFrame.mm:
2693         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2694         Use auto*. Also removed uneeded ASSERT_NO_EXCEPTION, which is already
2695         the default without specifying it explicitly.
2696
2697 2014-03-12  Brian Burg  <bburg@apple.com>
2698
2699         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
2700         https://bugs.webkit.org/show_bug.cgi?id=129744
2701
2702         Reviewed by Timothy Hatcher.
2703
2704         * WebInspector/WebInspector.mm:
2705         (-[WebInspector evaluateInFrontend:script:]):
2706         * WebInspector/WebInspectorPrivate.h:
2707
2708 2014-03-12  Dean Jackson  <dino@apple.com>
2709
2710         [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
2711         https://bugs.webkit.org/show_bug.cgi?id=130162
2712
2713         Reviewed by Simon Fraser.
2714
2715         Implement the webGLPolicyForURL methods, calling into WebKitSystemInterface.
2716
2717         * Configurations/WebKit.xcconfig: Add MobileAsset to iOS config.
2718         * WebCoreSupport/WebFrameLoaderClient.h:
2719         * WebCoreSupport/WebFrameLoaderClient.mm:
2720
2721 2014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
2722
2723         Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
2724         https://bugs.webkit.org/show_bug.cgi?id=130118
2725
2726         Reviewed by Timothy Hatcher.
2727
2728         * Configurations/FeatureDefines.xcconfig:
2729
2730         * WebCoreSupport/WebInspectorClient.mm:
2731         (WebInspectorClient::indicate):
2732         (WebInspectorClient::hideIndication):
2733         Properly guard REMOTE_INSPECTOR only calls.
2734
2735 2014-03-12  Tim Horton  <timothy_horton@apple.com>
2736
2737         Build fix for ENABLE(IMAGE_CONTROLS) after 165479
2738
2739         * Misc/WebSharingServicePickerController.h:
2740         * Misc/WebSharingServicePickerController.mm:
2741         Don't use new-runtime features in code that has to build 32-bit.
2742
2743 2014-03-12  Anders Carlsson  <andersca@apple.com>
2744
2745         <rdar://problem/16307346> Add new WebKitLegacy.framework.
2746
2747         Reviewed by Dan Bernstein.
2748
2749         * Configurations/WebKitLegacy.xcconfig:
2750         Add xcconfig file for the new framework.
2751
2752         * WebKitLegacy/Info.plist:
2753         Add Info.plist for WebKitLegacy.framework.
2754
2755         * WebKitLegacy/MigrateHeadersToLegacy.make:
2756         Add makefile that copies headers from WebKit to WebKitLegacy and rewrites includes from WebKit/ to WebKitLegacy/
2757         * WebKitLegacy/WebKitLegacy.cpp:
2758         Add an empty file so we'll have something to link.
2759
2760 2014-03-12  Tim Horton  <timothy_horton@apple.com>
2761
2762         Hook up image controls for WebKit1
2763         https://bugs.webkit.org/show_bug.cgi?id=130062
2764         <rdar://problem/15964809>
2765
2766         Reviewed by Brady Eidson.
2767
2768         * Misc/WebSharingServicePickerController.h: Added.
2769         * Misc/WebSharingServicePickerController.mm: Added.
2770         (-[WebSharingServicePickerController initWithImage:menuClient:]):
2771         (-[WebSharingServicePickerController menu]):
2772         (-[WebSharingServicePickerController sharingServicePicker:delegateForSharingService:]):
2773         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
2774         (-[WebSharingServicePickerController sharingService:didShareItems:]):
2775         (-[WebSharingServicePickerController sharingService:didFailToShareItems:error:]):
2776         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
2777         Add a NSSharingServiceDelegate and NSSharingServicePickerDelegate, which will also
2778         provide a NSMenu instance for WebContextMenuClient to pop up when image controls are needed.
2779         When data is returned from the service, it is re-inserted into the image via replaceControlledImage.
2780
2781         * WebCoreSupport/WebContextMenuClient.h:
2782         * WebCoreSupport/WebContextMenuClient.mm:
2783         (WebContextMenuClient::contextMenuForEvent):
2784         Factor out code to decide which NSMenu to use, so that we can use early-returns to simplify it.
2785         If we hit an image with image controls, use the WebSharingServicePickerController's menu.
2786
2787         (WebContextMenuClient::showContextMenu):
2788         (WebContextMenuClient::clearSharingServicePickerController):
2789
2790 2014-03-10  Jer Noble  <jer.noble@apple.com>
2791
2792         [iOS][WK1] Crash in HTMLMediaElement::createElementRenderer() - "-[NSSet addObject:]: object cannot be nil"
2793         https://bugs.webkit.org/show_bug.cgi?id=129634
2794
2795         Reviewed by Eric Carlson.
2796
2797         If a plugin fails to create a NSView, a nil object is inserted into the WebPluginController's
2798         pluginViews set. This is an exceptional case, so add an ASSERT so that this error will continue
2799         to occur in debug builds, but also add an early return so as not to crash release builds.
2800
2801         * Plugins/WebPluginController.mm:
2802         (+[WebPluginController addPlugInView:]):
2803
2804 2014-03-06  Alexey Proskuryakov  <ap@apple.com>
2805
2806         [Mac] Don't perform a round-trip through WebProcess before interpreting key events
2807         https://bugs.webkit.org/show_bug.cgi?id=129812
2808
2809         Reviewed by Darin Adler.
2810
2811         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleInputMethodKeydown):
2812         Added a FIXME. WebKit1/mac is the only port that uses this roundabout way to
2813         interpret events, so it would simplify code if we switched it to WebKit2/mac model.
2814
2815 2014-03-08  Simon Fraser  <simon.fraser@apple.com>
2816
2817         [iOS Wk2] Can't scroll after going back to page in page cache
2818         https://bugs.webkit.org/show_bug.cgi?id=129989
2819         <rdar://problem/16217588>
2820
2821         Reviewed by Dan Bernstein.
2822
2823         iOS has a special FrameLoader::forceLayoutWithoutRecalculatingStyle()
2824         function that is called instead of FrameView::forceLayout(). This was unimplemented
2825         for the WK2 FrameLoaderClient, so no layout was forced, with the result
2826         that the contentSize was never updated and scrolling was broken.
2827         
2828         Fix by renaming the client function to forceLayoutOnRestoreFromPageCache()
2829         and having it return a bool to say whether the default forceLayout()
2830         should be done. WK1 can then continue to have its custom behavior,
2831         and Wk2 will simply do a forceLayout().
2832         
2833         Also remove FrameLaoderClient::forceLayout(), which was never called.
2834
2835         * WebCoreSupport/WebFrameLoaderClient.h:
2836         * WebCoreSupport/WebFrameLoaderClient.mm:
2837         (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
2838
2839 2014-03-07  Anders Carlsson  <andersca@apple.com>
2840
2841         Add the remaining WebKit2 headers to WEBKIT2_HEADERS
2842         https://bugs.webkit.org/show_bug.cgi?id=129942
2843         <rdar://problem/15920020>
2844
2845         Reviewed by Tim Horton.
2846
2847         * MigrateHeaders.make:
2848
2849 2014-03-07  Anders Carlsson  <andersca@apple.com>
2850
2851         MigrateHeaders.make should remove C SPI includes from WebKit2 headers
2852         https://bugs.webkit.org/show_bug.cgi?id=129937
2853         <rdar://problem/15920020>
2854
2855         Reviewed by Tim Horton.
2856
2857         * MigrateHeaders.make:
2858         Add WKPreferences.h to WEBKIT2_HEADERS. 
2859         Add a sed rule that deletes all lines that start with a # and contain <WebKit/*Ref.h>.
2860
2861 2014-03-07  Anders Carlsson  <andersca@apple.com>
2862
2863         Make it possible to copy WebKit2 headers to WebKit.framework
2864         https://bugs.webkit.org/show_bug.cgi?id=129935
2865         <rdar://problem/15920020>
2866
2867         Reviewed by Dan Bernstein.
2868
2869         * MigrateHeaders.make:
2870         Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
2871         The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
2872         and also have their #imports rewritten to reference WebKit instead of WebKit2.
2873
2874         * migrate-headers.sh: Added.
2875         Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
2876
2877 2014-03-07  Anders Carlsson  <andersca@apple.com>
2878
2879         Fix a typo
2880         <rdar://problem/15920020>
2881
2882         Rubber-stamped by Dan Bernstein.
2883
2884         * Configurations/WebKit.xcconfig:
2885
2886 2014-03-07  Anders Carlsson  <andersca@apple.com>
2887
2888         Tweak the WebKit2 frameworks directories
2889         https://bugs.webkit.org/show_bug.cgi?id=129910
2890         <rdar://problem/15920020>
2891
2892         Reviewed by Dan Bernstein.
2893
2894         Use an SDK relative directory for production builds.
2895
2896         * Configurations/WebKit.xcconfig:
2897
2898 2014-03-07  Anders Carlsson  <andersca@apple.com>
2899
2900         Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
2901         https://bugs.webkit.org/show_bug.cgi?id=129901
2902         <rdar://problem/15920020>
2903
2904         Reviewed by Andreas Kling.
2905
2906         * Configurations/WebKit.xcconfig:
2907
2908 2014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
2909
2910         Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
2911         https://bugs.webkit.org/show_bug.cgi?id=127944
2912
2913         Reviewed by Geoffrey Garen.
2914
2915         * WebCoreSupport/WebChromeClient.h:
2916         * WebCoreSupport/WebChromeClient.mm:
2917         Update namespaces.
2918
2919 2014-03-05  Eric Carlson  <eric.carlson@apple.com>
2920
2921         [iOS] Show external device name/type in placeholder
2922         https://bugs.webkit.org/show_bug.cgi?id=129723
2923
2924         Reviewed by Jer Noble.
2925
2926         * WebCoreSupport/WebSystemInterface.mm:
2927         (InitWebCoreSystemInterface):
2928
2929 2014-03-05  Simon Fraser  <simon.fraser@apple.com>
2930
2931         ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
2932         https://bugs.webkit.org/show_bug.cgi?id=129752
2933
2934         Reviewed by Enrica Casucci.
2935         
2936         Call URLByCanonicalizingURL() which is implemented in WebCore.
2937
2938         * Misc/WebNSURLExtras.mm:
2939         (-[NSURL _webkit_canonicalize]):
2940
2941 2014-03-04  Zalan Bujtas  <zalan@apple.com>
2942
2943         Enable device pixel repaint rect tracking.
2944         https://bugs.webkit.org/show_bug.cgi?id=129712
2945
2946         Reviewed by Simon Fraser.
2947
2948         Tracked repaint rects are device pixel snapped now to support hiDPI test cases.
2949
2950         * WebView/WebView.mm:
2951         (-[WebView trackedRepaintRects]): Keep existing behavior for now.
2952
2953 2014-03-04  Simon Fraser  <simon.fraser@apple.com>
2954
2955         Allow iOS DumpRenderTree crashes to show application-specific information
2956         https://bugs.webkit.org/show_bug.cgi?id=129705
2957
2958         Reviewed by David Kilzer.
2959
2960         Make the WKSI function SetCrashReportApplicationSpecificInformation available
2961         in iOS simulator builds.
2962
2963         * WebCoreSupport/WebSystemInterface.mm:
2964         (InitWebCoreSystemInterface):
2965
2966 2014-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
2967
2968         Merge API shims and JSLock
2969         https://bugs.webkit.org/show_bug.cgi?id=129650
2970
2971         Reviewed by Mark Lam.
2972
2973         JSLock is now taking on all of APIEntryShim's responsibilities since there is never a reason 
2974         to take just the JSLock. Ditto for DropAllLocks and APICallbackShim.
2975
2976         * WebView/WebFrame.mm:
2977         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2978
2979 2014-03-02  Darin Adler  <darin@apple.com>
2980
2981         Sort Mac platform export files so they merge better
2982         https://bugs.webkit.org/show_bug.cgi?id=129581
2983
2984         Reviewed by Sam Weinig.
2985
2986         * WebKit.exp: Ran the new sort-export-file on this.
2987
2988 2014-03-02  Darin Adler  <darin@apple.com>
2989
2990         Change public text iterator API implementations to not depend on 16-bit character pointers
2991         https://bugs.webkit.org/show_bug.cgi?id=129566
2992
2993         Reviewed by Anders Carlsson.
2994
2995         * WebView/WebTextIterator.mm:
2996         (-[WebTextIterator initWithRange:]): Use make_unique instead of adoptPtr.
2997         (-[WebTextIterator advance]): Clear out the upconverted text since we are moving on to the
2998         next text.
2999         (-[WebTextIterator currentTextPointer]): Upconvert if we have 8-bit text.
3000         (-[WebTextIterator currentTextLength]): Call TextIterator::text().length() since we will
3001         probably be removing TextIterator::length eventually.
3002
3003 2014-03-01  Pratik Solanki  <psolanki@apple.com>
3004
3005         [iOS] selectionImageForcingBlackText should return autoreleased object
3006         https://bugs.webkit.org/show_bug.cgi?id=129437
3007         <rdar://problem/15810384>
3008
3009         Reviewed by Darin Adler.
3010
3011         * WebView/WebHTMLView.mm:
3012         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
3013
3014 2014-02-28  Dan Bernstein  <mitz@apple.com>
3015
3016         [Mac] Remove MailQuirksUserScript.js
3017         https://bugs.webkit.org/show_bug.cgi?id=129536
3018
3019         Reviewed by Andy Estes.
3020
3021         * Configurations/WebKit.xcconfig: Removed from EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
3022         * Misc/MailQuirksUserScript.js: Removed. This file has been unused since r147447.
3023
3024 2014-02-28  Timothy Hatcher  <timothy@apple.com>
3025
3026         Properly handle when Test.html is not present in Production builds.
3027
3028         https://bugs.webkit.org/show_bug.cgi?id=129506
3029
3030         Reviewed by Joseph Pecoraro.
3031
3032         * WebCoreSupport/WebInspectorClient.mm:
3033         (-[WebInspectorWindowController inspectorTestPagePath]):
3034         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
3035
3036 2014-02-27  Brian Burg  <bburg@apple.com>
3037
3038         Web Inspector: model tests should use a special Test.html inspector page
3039         https://bugs.webkit.org/show_bug.cgi?id=129190
3040
3041         Reviewed by Timothy Hatcher.
3042
3043         Support creating a separate test inspector page, based on the value of
3044         InspectorController::isUnderTest(). Modify the navigation policy to check
3045         the URL against both normal and test inspector pages.
3046
3047         * WebCoreSupport/WebInspectorClient.mm:
3048         (WebInspectorClient::openInspectorFrontend):
3049         (-[WebInspectorWindowController init]):
3050         (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
3051         Move the initial navigation of the inspector page to this method, and change
3052         the URL based on the value of InspectorController::isUnderTest().
3053
3054         (-[WebInspectorWindowController inspectorTestPagePath]): Added.
3055         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
3056
3057 2014-02-27  Pratik Solanki  <psolanki@apple.com>
3058
3059         Assertion failure at CachedResource.h:196: ASSERT(!m_purgeableData)
3060         https://bugs.webkit.org/show_bug.cgi?id=129349
3061         <rdar://problem/14871837>
3062
3063         Reviewed by Joseph Pecoraro.
3064
3065         The code for clearing out memory mapped notification callbacks is only needed when loading
3066         PDFs. And in such cases, we always have dataSourceDelegate object. So make this code
3067         conditional on its presence so that we don't trigger the assert for non-PDF main resources.
3068
3069         * WebView/WebDataSource.mm:
3070         (-[WebDataSource dealloc]):
3071
3072 2014-02-26  Andy Estes  <aestes@apple.com>
3073
3074         [iOS] Support network state notification using CPNetworkObserver
3075         https://bugs.webkit.org/show_bug.cgi?id=129358
3076
3077         Reviewed by Dan Bernstein.
3078
3079         * WebView/WebView.mm:
3080         (-[WebView _setNetworkStateIsOnline:]): Retained an empty
3081         implementation for binary compatibility for UIKit.
3082         (+[WebView _doNotStartObservingNetworkReachability]): Called
3083         Settings::setShouldOptOutOfNetworkStateObservation(true).
3084         * WebView/WebViewPrivate.h: Removed declaration of
3085         _setNetworkStateIsOnline: and declared
3086         _doNotStartObservingNetworkReachability.
3087
3088 2014-02-25  Anders Carlsson  <andersca@apple.com>
3089
3090         Get rid of VisitedLinkStrategy
3091         https://bugs.webkit.org/show_bug.cgi?id=129324
3092
3093         Reviewed by Dan Bernstein.
3094
3095         * WebCoreSupport/WebPlatformStrategies.h:
3096         * WebCoreSupport/WebPlatformStrategies.mm:
3097
3098 2014-02-25  Sergio Villar Senin  <svillar@igalia.com>
3099
3100         [CSS Grid Layout] Add ENABLE flag
3101         https://bugs.webkit.org/show_bug.cgi?id=129153
3102
3103         Reviewed by Simon Fraser.
3104
3105         Added ENABLE_CSS_GRID_LAYOUT feature flag.
3106
3107         * Configurations/FeatureDefines.xcconfig:
3108
3109 2014-02-24  Anders Carlsson  <andersca@apple.com>
3110
3111         Add WebViewGroup
3112         https://bugs.webkit.org/show_bug.cgi?id=129280
3113
3114         Reviewed by Dan Bernstein.
3115
3116         This is a first step towards getting rid of page groups in WebCore. The idea is that
3117         everything that is per page group in WebCore will be per page. In order to retain WebKit1 compatibility
3118         WebViewGroup is going to take over more and more responsibility from WebCore::PageGroup.
3119
3120         * WebCoreSupport/WebViewGroup.h: Added.
3121         * WebCoreSupport/WebViewGroup.mm: Added.
3122         (webViewGroups):
3123         (WebViewGroup::getOrCreate):
3124         (WebViewGroup::WebViewGroup):
3125         (WebViewGroup::~WebViewGroup):
3126         (WebViewGroup::addWebView):
3127         (WebViewGroup::removeWebView):
3128         * WebView/WebView.mm:
3129         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3130         (-[WebView _close]):
3131         (-[WebView setGroupName:]):
3132         * WebView/WebViewData.h:
3133         * WebView/WebViewData.mm:
3134
3135 2014-02-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
3136
3137         Code cleanup: remove leftover ENABLE(WORKERS) macros and support.
3138         https://bugs.webkit.org/show_bug.cgi?id=129255
3139
3140         Reviewed by Csaba Osztrogonác.
3141
3142         ENABLE_WORKERS macro was removed in r159679.
3143         Support is now also removed from xcconfig files.
3144
3145         * Configurations/FeatureDefines.xcconfig:
3146
3147 2014-02-24  David Kilzer  <ddkilzer@apple.com>
3148
3149         Remove redundant setting in FeatureDefines.xcconfig
3150
3151         * Configurations/FeatureDefines.xcconfig:
3152
3153 2014-02-23  Sam Weinig  <sam@webkit.org>
3154
3155         Update FeatureDefines.xcconfig
3156
3157         Rubber-stamped by Anders Carlsson.
3158
3159         * Configurations/FeatureDefines.xcconfig:
3160
3161 2014-02-23  Sam Weinig  <sam@webkit.org>
3162
3163         Move telephone number detection behind its own ENABLE macro
3164         https://bugs.webkit.org/show_bug.cgi?id=129236
3165
3166         Reviewed by Dean Jackson.
3167
3168         * Configurations/FeatureDefines.xcconfig:
3169         Add ENABLE_TELEPHONE_NUMBER_DETECTION.
3170
3171 2014-02-21  Sam Weinig  <sam@webkit.org>
3172
3173         Expose phase and momentum phase as SPI on DOMWheelEvent
3174         <rdar://problem/16110871>
3175         https://bugs.webkit.org/show_bug.cgi?id=129184
3176
3177         Reviewed by Anders Carlsson.
3178
3179         * DOM/WebDOMOperations.mm:
3180         (toNSEventPhase):
3181         (-[DOMWheelEvent _phase]):
3182         (-[DOMWheelEvent _momentumPhase]):
3183         * DOM/WebDOMOperationsPrivate.h:
3184         Expose _phase and _momentumPhase as SPI.
3185
3186         * MigrateHeaders.make:
3187         Make DOMWheelEventInternal.h to WebKit.
3188
3189 2014-02-22  David Kilzer  <ddkilzer@apple.com>
3190
3191         Revert r164434 since it actually broke ASan builds
3192         <http://webkit.org/b/128871>
3193
3194         * Configurations/WebKit.xcconfig: This caused -asan-blacklist to
3195         be included twice on every compiler command, which caused clang
3196         to error out.
3197
3198 2014-02-21  Brent Fulgham  <bfulgham@apple.com>
3199
3200         Extend media support for WebVTT sources
3201         https://bugs.webkit.org/show_bug.cgi?id=129156
3202
3203         Reviewed by Eric Carlson.
3204
3205         * Configurations/FeatureDefines.xcconfig: Add new feature define for AVF_CAPTIONS
3206
3207 2014-02-20  Brady Eidson  <beidson@apple.com>
3208
3209         Add very basic image control rendering
3210         https://bugs.webkit.org/show_bug.cgi?id=129080
3211
3212         Reviewed by Tim Horton.
3213
3214         Expose the imageControlsEnabled setting to WebKit1 so DRT can use it.
3215
3216         * WebView/WebPreferenceKeysPrivate.h:
3217         * WebView/WebPreferences.mm:
3218         (+[WebPreferences initialize]):
3219         (-[WebPreferences imageControlsEnabled]):
3220         (-[WebPreferences setImageControlsEnabled:]):
3221         * WebView/WebPreferencesPrivate.h:
3222
3223         * WebView/WebView.mm:
3224         (-[WebView _preferencesChanged:]):
3225
3226 2014-02-20  David Kilzer  <ddkilzer@apple.com>
3227
3228         [ASan] WebKit1 sources are not compiled using ASAN macros
3229         <http://webkit.org/b/128871>
3230
3231         Reviewed by Brent Fulgham.
3232
3233         * Configurations/WebKit.xcconfig: Use $inherited for
3234         OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS so that ASAN_OTHER_CFLAGS
3235         and ASAN_OTHER_CPLUSPLUSFLAGS are inherited from
3236         DebugRelease.xcconfig.
3237
3238 2014-02-19  Brady Eidson  <beidson@apple.com>
3239
3240         Add FeatureDefines for image controls
3241         https://bugs.webkit.org/show_bug.cgi?id=129022
3242
3243         Reviewed by Jer Noble.
3244
3245         * Configurations/FeatureDefines.xcconfig:
3246
3247 2014-02-18  Sam Weinig  <sam@webkit.org>
3248
3249         Simplify HTML tokenizer parameterization down to what is used
3250         https://bugs.webkit.org/show_bug.cgi?id=128977
3251
3252         Reviewed by Alexey Proskuryakov.
3253
3254         Remove unused _setCustomHTMLTokenizerTimeDelay and _setCustomHTMLTokenizerChunkSize SPI.
3255
3256         * WebView/WebView.mm:
3257         * WebView/WebViewPrivate.h:
3258
3259 2014-02-17  Anders Carlsson  <andersca@apple.com>
3260
3261         Remove view source code
3262         https://bugs.webkit.org/show_bug.cgi?id=127233
3263
3264         Reviewed by Antti Koivisto.
3265
3266         * WebView/WebView.mm:
3267         * WebView/WebViewPrivate.h:
3268
3269 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
3270
3271         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
3272         https://bugs.webkit.org/show_bug.cgi?id=128681
3273
3274         Reviewed by Timothy Hatcher.
3275
3276         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
3277         WebCore/inspector/*. Besides files in there, a few other files in
3278         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
3279         and WebCore/testing were touched.
3280
3281         * WebCoreSupport/WebInspectorClient.h:
3282         * WebCoreSupport/WebInspectorClient.mm:
3283
3284 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
3285
3286         [Mac] Remove WebSerializedJSValue SPI
3287         https://bugs.webkit.org/show_bug.cgi?id=128720
3288
3289         Reviewed by Anders Carlsson.
3290
3291         * WebKit.exp:
3292         * WebView/WebSerializedJSValue.h: Removed.
3293         * WebView/WebSerializedJSValue.mm: Removed.
3294         * WebView/WebSerializedJSValuePrivate.h: Removed.
3295
3296 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
3297
3298         [Mac] All WebKit clients should encrypt WebCrypto keys automatically
3299         https://bugs.webkit.org/show_bug.cgi?id=128852
3300
3301         Reviewed by Oliver Hunt.
3302
3303         * WebCoreSupport/WebChromeClient.mm:
3304         (WebChromeClient::wrapCryptoKey):
3305         (WebChromeClient::unwrapCryptoKey):
3306         Call the default implementation if key is not provided by a client.
3307
3308 2014-02-14  Anders Carlsson  <andersca@apple.com>
3309
3310         Control tints don't update inside WebViews
3311         https://bugs.webkit.org/show_bug.cgi?id=128862
3312
3313         Reviewed by Ryosuke Niwa.
3314
3315         * WebView/WebView.mm:
3316         (-[WebView _windowChangedKeyState]):
3317         Call [super _windowChangedKeyState].
3318
3319 2014-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
3320
3321         During a copy, position:fixed gets converted to position:absolute even if only part of the document is selected
3322         https://bugs.webkit.org/show_bug.cgi?id=128688
3323
3324         Reviewed by Ryosuke Niwa.
3325
3326         Renames the ConvertPositionStyleOnCopy setting to ShouldConvertPositionStyleOnCopy
3327
3328         * WebView/WebPreferenceKeysPrivate.h:
3329         * WebView/WebPreferences.mm:
3330         (-[WebPreferences shouldConvertPositionStyleOnCopy]):
3331         (-[WebPreferences setShouldConvertPositionStyleOnCopy:]):
3332         * WebView/WebPreferencesPrivate.h:
3333         * WebView/WebView.mm:
3334         (-[WebView _preferencesChanged:]):
3335
3336 2014-02-13  Alexey Proskuryakov  <ap@apple.com>
3337
3338         [Mac] Add a WebKit1 SPI to get WebCrypto master key from a client
3339         https://bugs.webkit.org/show_bug.cgi?id=128725
3340
3341         Reviewed by Anders Carlsson.
3342
3343         * WebCoreSupport/WebChromeClient.mm:
3344         (WebChromeClient::wrapCryptoKey):
3345         (WebChromeClient::unwrapCryptoKey):
3346         * WebView/WebUIDelegatePrivate.h:
3347         Looks like UIDelegate is the closest we have to a reasonable place.
3348
3349 2014-02-13  Dan Bernstein  <mitz@apple.com>
3350
3351         iOS build fix.
3352
3353         * WebView/WebView.mm:
3354         (+[WebView registerForMemoryNotifications]):
3355
3356 2014-02-12  Alexey Proskuryakov  <ap@apple.com>
3357
3358         Wrap WebCrypto keys in SerializedScriptValue
3359         https://bugs.webkit.org/show_bug.cgi?id=128680
3360
3361         Reviewed by Anders Carlsson.
3362
3363         Retrieve a master key (placeholder code for now), and use it to wrap key data.
3364
3365         * WebCoreSupport/WebChromeClient.mm:
3366         (WebChromeClient::wrapCryptoKey):
3367         (WebChromeClient::unwrapCryptoKey):
3368
3369 2014-02-11  Ryosuke Niwa  <rniwa@webkit.org>
3370
3371         Frame::rectForSelection shouldn't instantiate FrameSelection
3372         https://bugs.webkit.org/show_bug.cgi?id=128587
3373
3374         Reviewed by Enrica Casucci.
3375
3376         * WebCoreSupport/WebEditorClient.h:
3377         * WebCoreSupport/WebEditorClient.mm:
3378         (WebEditorClient::WebEditorClient):
3379         (WebEditorClient::respondToChangedSelection):
3380
3381 2014-02-10  Myles C. Maxfield  <mmaxfield@apple.com>
3382
3383         Convert position:sticky and position:fixed properties to position:static and position:absolute upon copy
3384         https://bugs.webkit.org/show_bug.cgi?id=128194
3385
3386         Reviewed by Simon Fraser.
3387
3388         * WebView/WebPreferenceKeysPrivate.h:
3389         * WebView/WebPreferences.mm:
3390         (-[WebPreferences convertPositionStyleOnCopy]):
3391         (-[WebPreferences setConvertPositionStyleOnCopy:]):
3392         * WebView/WebPreferencesPrivate.h: Opt-in to new behavior
3393         * WebView/WebView.mm:
3394         (-[WebView _preferencesChanged:]):
3395
3396 2014-02-11  Andy Estes  <aestes@apple.com>
3397
3398         [Mac] connection:willStopBufferingData: no longer exists in NSURLConnectionDelegate
3399         https://bugs.webkit.org/show_bug.cgi?id=128583
3400
3401         Reviewed by Anders Carlsson.
3402
3403         The delegate method was removed in Snow Leopard.
3404
3405         * Misc/WebDownload.mm:
3406
3407 2014-02-11  Alexey Proskuryakov  <ap@apple.com>
3408
3409         iOS build fix.
3410
3411         * WebCoreSupport/WebChromeClient.mm: Fixed incorrectly nested ifdefs.
3412
3413 2014-02-10  Alexey Proskuryakov  <ap@apple.com>
3414
3415         Add hooks for wrapping CryptoKeys in SerializedScriptValue
3416         https://bugs.webkit.org/show_bug.cgi?id=128567
3417
3418         Reviewed by Anders Carlsson.
3419
3420         * WebCoreSupport/WebChromeClient.h:
3421         * WebCoreSupport/WebChromeClient.mm:
3422         (WebChromeClient::wrapCryptoKey):
3423         (WebChromeClient::unwrapCryptoKey):
3424         Dummy implementation, to be filled in later.
3425
3426 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
3427
3428         Cleanup the interface of FrameSelection
3429         https://bugs.webkit.org/show_bug.cgi?id=128481
3430
3431         Reviewed by Andreas Kling.
3432
3433         * WebView/WebHTMLView.mm:
3434         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
3435         (-[WebHTMLView selectionRect]):
3436         (-[WebHTMLView selectionImageRect]):
3437
3438 2014-02-08  Dan Bernstein  <mitz@apple.com>
3439
3440         Remove use of PLATFORM(MAC) from WebKit/mac
3441         https://bugs.webkit.org/show_bug.cgi?id=128476
3442
3443         Reviewed by Anders Carlsson.
3444
3445         * WebCoreSupport/WebFrameLoaderClient.h:
3446         * WebCoreSupport/WebSystemInterface.mm:
3447         (InitWebCoreSystemInterface):
3448
3449 2014-02-08  Dan Bernstein  <mitz@apple.com>
3450
3451         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
3452         https://bugs.webkit.org/show_bug.cgi?id=128456
3453
3454         Reviewed by Anders Carlsson.
3455
3456         * WebCoreSupport/WebChromeClient.h:
3457         * WebCoreSupport/WebChromeClient.mm: Removed customHighlightRect and paintCustomHighlight.
3458         * WebView/WebHTMLView.mm:
3459         (-[WebHTMLViewPrivate dealloc]): Removed highlighters ivar.
3460         (-[WebHTMLViewPrivate clear]): Ditto.
3461         * WebView/WebHTMLViewInternal.h: Removed declaration.
3462         * WebView/WebHTMLViewPrivate.h: Removed WebHTMLHighlighter protocol and method declarations.
3463
3464 2014-02-08  Dan Bernstein  <mitz@apple.com>
3465
3466         iOS build fix after r163712.
3467
3468         * WebCoreSupport/WebEditorClient.h:
3469         * WebCoreSupport/WebEditorClient.mm:
3470
3471 2014-02-08  Darin Adler  <darin@apple.com>
3472
3473         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
3474         https://bugs.webkit.org/show_bug.cgi?id=128233
3475
3476         Reviewed by Anders Carlsson.
3477
3478         * WebCoreSupport/WebEditorClient.h: Made most data members private. Moved inlines
3479         for iOS out of the class definition. Fixed formatting. Added missing virtual keyword.
3480         Changed interfaces to use StringView.
3481
3482         * WebCoreSupport/WebEditorClient.mm:
3483         (WebEditorClient::checkTextOfParagraph): Use the new StringView::createNSStringWithoutCopying
3484         function instead of a similar function that was local in this file.
3485         (WebEditorClient::ignoreWordInSpellDocument): Tweaked formatting.
3486         (WebEditorClient::checkSpellingOfString): Changed to take a StringView.
3487         (WebEditorClient::checkGrammarOfString): Ditto.
3488
3489         * WebView/WebTextIterator.mm:
3490         (-[WebTextIterator currentTextPointer]): Call TextIterator::deprecatedTextIteratorCharacters.
3491         (-[WebTextIterator currentText]): Convert a the text to an NSString with TextIterator::text
3492         instead of with TextIterator::characters/length.
3493
3494 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
3495
3496         Remove isInitialState flag from Page::setViewState
3497         https://bugs.webkit.org/show_bug.cgi?id=128428
3498
3499         Reviewed by Sam Weinig.
3500
3501         * WebView/WebView.mm:
3502         (-[WebView _commonInitializationWithFrameName:groupName:]):
3503         (-[WebView _updateVisibilityState]):
3504         (-[WebView _setIsVisible:]):
3505         (-[WebView _setVisibilityState:isInitialState:]):
3506         (-[WebView _windowWillOrderOnScreen:]):
3507         (-[WebView _windowWillOrderOffScreen:]):
3508             - don't pass isInitialState to setViewState.
3509
3510 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
3511
3512         More FTL build scaffolding
3513         https://bugs.webkit.org/show_bug.cgi?id=128330
3514
3515         Reviewed by Geoffrey Garen.
3516
3517         * Configurations/FeatureDefines.xcconfig:
3518
3519 2014-02-07  Dan Bernstein  <mitz@apple.com>
3520
3521         iOS build fix.
3522
3523         * Misc/WebElementDictionary.mm:
3524         (+[WebElementDictionary initializeLookupTable]):
3525         (-[WebElementDictionary _image]):
3526         (-[WebElementDictionary _imageRect]):
3527
3528 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
3529
3530         Web Inspector: Add Console support to JSContext Inspection
3531         https://bugs.webkit.org/show_bug.cgi?id=127941
3532
3533         Reviewed by Geoffrey Garen.
3534
3535         * WebCoreSupport/WebChromeClient.h:
3536         * WebCoreSupport/WebChromeClient.mm:
3537         (stringForMessageSource):
3538         (stringForMessageLevel):
3539         (WebChromeClient::addMessageToConsole):
3540
3541 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
3542
3543         Change Page, FocusController to use ViewState
3544         https://bugs.webkit.org/show_bug.cgi?id=126533
3545
3546         Reviewed by Tim Horton.
3547
3548         These classes currently maintain a set of separate fields to represent the view state;
3549         combine these into a single field, and allow WebPage to send the combined update rather
3550         than individual changes.
3551
3552         Maintain existing interface for WebKit1 clients.
3553
3554         * WebView/WebView.mm:
3555         (-[WebView _windowWillOrderOnScreen:]):
3556         (-[WebView _windowWillOrderOffScreen:]):
3557             - remove calls to FocusController::setContentIsVisible, these are redundant
3558               (this is handled when page visibility is set).
3559
3560 2014-02-05  Andreas Kling  <akling@apple.com>
3561
3562         Remove ENABLE(DIRECTORY_UPLOAD).
3563         <https://webkit.org/b/128275>
3564
3565         Rubber-stamped by Ryosuke Niwa.
3566
3567         * Configurations/FeatureDefines.xcconfig:
3568
3569 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
3570
3571         Remove ENABLE(SVG) guards
3572         https://bugs.webkit.org/show_bug.cgi?id=127991
3573
3574         Reviewed by Sam Weinig.
3575
3576         * Configurations/FeatureDefines.xcconfig:
3577
3578 2014-02-04  Andreas Kling  <akling@apple.com>
3579
3580         Remove <iframe seamless> support.
3581         <https://webkit.org/b/128213>
3582
3583         Rubber-stamped by Antti Koivisto.
3584
3585         * Configurations/FeatureDefines.xcconfig:
3586         * WebView/WebPreferenceKeysPrivate.h:
3587         * WebView/WebPreferences.mm:
3588         * WebView/WebPreferencesPrivate.h: