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