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