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