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