Fix macros for wireless playback
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2015-05-22  Jon Lee  <jonlee@apple.com>
2
3         Fix macros for wireless playback
4         https://bugs.webkit.org/show_bug.cgi?id=145239
5         rdar://problem/21049541
6
7         Reviewed by Anders Carlsson.
8
9         Encompass the logic within ENABLE(WIRELESS_TARGET_PLAYBACK). Update property name.
10
11         * WebView/WebPreferenceKeysPrivate.h:
12         * WebView/WebPreferences.h:
13         * WebView/WebPreferences.mm:
14         (+[WebPreferences initialize]): Wrap in ENABLE.
15         (-[WebPreferences allowsAirPlayForMediaPlayback]): Ditto.
16         (-[WebPreferences setAllowsAirPlayForMediaPlayback:]): Ditto.
17         * WebView/WebView.mm:
18         (-[WebView _preferencesChanged:]): Ditto.
19
20 2015-05-27  Dean Jackson  <dino@apple.com>
21
22         img.currentSrc problem in strict mode with old picturefill
23         https://bugs.webkit.org/show_bug.cgi?id=144095
24         <rdar://problem/21087013>
25
26         Reviewed by Simon Fraser.
27
28         Add a PICTURE_SIZES flag.
29
30         * Configurations/FeatureDefines.xcconfig:
31
32 2015-05-26  Dan Bernstein  <mitz@apple.com>
33
34         <rdar://problem/21104551> Update build settings
35
36         Reviewed by Anders Carlsson.
37
38         * Configurations/DebugRelease.xcconfig:
39         * Configurations/FeatureDefines.xcconfig:
40         * Configurations/Version.xcconfig:
41
42 2015-05-25  Dan Bernstein  <mitz@apple.com>
43
44         ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
45         https://bugs.webkit.org/show_bug.cgi?id=145372
46
47         Reviewed by Sam Weinig.
48
49         * Carbon/CarbonWindowAdapter.mm:
50         (-[CarbonWindowAdapter finalize]): Removed use of ASSERT_MAIN_THREAD.
51
52         * Configurations/Base.xcconfig: Removed DISABLE_THREAD_CHECK from DEBUG_DEFINES.
53
54         * History/WebHistoryItem.mm:
55         (-[WebHistoryItem URLString]): Removed use of ASSERT_MAIN_THREAD.
56         (-[WebHistoryItem originalURLString]): Ditto.
57         (-[WebHistoryItem title]): Ditto.
58         (-[WebHistoryItem lastVisitedTimeInterval]): Ditto.
59         (-[WebHistoryItem isEqual:]): Ditto.
60         (-[WebHistoryItem description]): Ditto.
61         (-[WebHistoryItem initFromDictionaryRepresentation:]): Ditto.
62         (-[WebHistoryItem scrollPoint]): Ditto.
63
64         * Misc/WebElementDictionary.mm:
65         (-[WebElementDictionary finalize]): Ditto.
66
67         * Misc/WebIconDatabase.mm:
68         (-[WebIconDatabase iconForURL:withSize:cache:]): Ditto.
69         (-[WebIconDatabase iconURLForURL:]): Ditto.
70         (-[WebIconDatabase defaultIconWithSize:]): Ditto.
71         (-[WebIconDatabase retainIconForURL:]): Ditto.
72         (-[WebIconDatabase releaseIconForURL:]): Ditto.
73         (+[WebIconDatabase delayDatabaseCleanup]): Ditto.
74         (+[WebIconDatabase allowDatabaseCleanup]): Ditto.
75         (-[WebIconDatabase removeAllIcons]): Ditto.
76         (-[WebIconDatabase _iconForFileURL:withSize:]): Ditto.
77         (webGetNSImage): Ditto.
78
79         * Misc/WebKitLogging.h: Removed definition of ASSERT_MAIN_THREAD.
80
81         * Plugins/WebBaseNetscapePluginView.mm:
82         (-[WebBaseNetscapePluginView finalize]): Removed use of ASSERT_MAIN_THREAD.
83
84         * Plugins/WebBasePluginPackage.mm:
85         (-[WebBasePluginPackage finalize]): Ditto.
86
87         * Plugins/WebNetscapePluginView.mm:
88         (-[WebNetscapePluginView finalize]): Ditto.
89
90         * WebCoreSupport/WebEditorClient.mm:
91         (-[WebUndoStep finalize]): Ditto.
92
93         * WebView/WebDataSource.mm:
94         (-[WebDataSource finalize]): Ditto.
95
96         * WebView/WebHTMLView.mm:
97         (-[WebHTMLViewPrivate finalize]): Ditto.
98         (-[WebHTMLView finalize]): Ditto.
99         (-[WebHTMLView drawRect:]): Ditto.
100
101         * WebView/WebViewData.mm:
102         (-[WebViewPrivate finalize]): Ditto.
103
104 2015-05-23  Dan Bernstein  <mitz@apple.com>
105
106         Remove unused definitions of WEBKIT_VERSION_MIN_REQUIRED
107         https://bugs.webkit.org/show_bug.cgi?id=145345
108
109         Reviewed by Sam Weinig.
110
111         * Configurations/WebKitLegacy.xcconfig: Also changed to use $(inherited).
112
113 2015-05-24  Jeremy Jones  <jeremyj@apple.com>
114
115         Register media MIME types as supported by HTML view in WebKit1.
116         https://bugs.webkit.org/show_bug.cgi?id=145356
117
118         Reviewed by Eric Carlson.
119
120         WebDataSource and WebFrame view knew about suppotedImageMIMETypes and supportedNonImageMIMETypes,
121         but not a third category supportedMediaMIMETypes. These are now included along-side 
122         supportedNonImageMIMETypes.
123
124         * WebView/WebDataSource.mm:
125         (+[WebDataSource _repTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
126         * WebView/WebFrameView.mm:
127         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
128         * WebView/WebHTMLRepresentation.h: declare -supportedMediaMIMETypes
129         * WebView/WebHTMLRepresentation.mm:
130         (+[WebHTMLRepresentation supportedMIMETypes]): include supportedMediaMIMETypes
131         (+[WebHTMLRepresentation supportedMediaMIMETypes]): added
132         * WebView/WebHTMLView.mm:
133         (+[WebHTMLView supportedMediaMIMETypes]): added
134         * WebView/WebHTMLViewPrivate.h: declare -supportedMediaMIMETypes
135
136 2015-05-22  Jon Lee  <jonlee@apple.com>
137
138         Rename MediaPlaybackAllowsInline
139         https://bugs.webkit.org/show_bug.cgi?id=145315
140
141         Reviewed by Eric Carlson.
142
143         Our API uses allowsInlineMediaPlayback. Our symbols should reflect the same.
144
145         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its
146         value, for backwards compatibility.
147         * WebView/WebPreferences.mm:
148         (+[WebPreferences initialize]): Update the symbol.
149         (-[WebPreferences mediaPlaybackAllowsInline]): Ditto. This setting will not
150         be renamed in a future patch.
151         (-[WebPreferences setMediaPlaybackAllowsInline:]): Ditto.
152         * WebView/WebView.mm:
153         (-[WebView _preferencesChanged:]): Update the call to settings.
154
155 2015-05-22  Jon Lee  <jonlee@apple.com>
156
157         Rename MediaPlaybackAllowsAirPlay
158         https://bugs.webkit.org/show_bug.cgi?id=145316
159
160         Reviewed by Eric Carlson.
161
162         In preparation for an API rename, update internal symbols from mediaPlaybackAllowsAirPlay
163         to allowsAirPlayForMediaPlayback.
164
165         * WebView/WebPreferenceKeysPrivate.h: Update the name but keep its value, for backwards
166         compatibility.
167         * WebView/WebPreferences.mm:
168         (+[WebPreferences initialize]): Update to reference the new key name.
169         (-[WebPreferences mediaPlaybackAllowsAirPlay]): Ditto. This API will not change in a future
170         patch.
171         (-[WebPreferences setMediaPlaybackAllowsAirPlay:]): Ditto.
172         * WebView/WebView.mm:
173         (-[WebView _preferencesChanged:]): Update the call to settings.
174
175 2015-05-22  Jon Lee  <jonlee@apple.com>
176
177         Rename MediaPlaybackRequiresUserGesture
178         https://bugs.webkit.org/show_bug.cgi?id=145314
179
180         Reviewed by Anders Carlsson.
181
182         In preparation for an API rename, update internal symbols from mediaPlaybackRequiresUserGesture
183         to requiresUserGestureForMediaPlayback.
184
185         No changes are being made to the API in this patch.
186
187         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its value, for backwards
188         compatibility.
189         * WebView/WebPreferences.mm:
190         (+[WebPreferences initialize]): Update the symbol.
191         (-[WebPreferences mediaPlaybackRequiresUserGesture]): Ditto. This setting will not be renamed
192         in a future patch.
193         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]): Ditto.
194         * WebView/WebView.mm:
195         (-[WebView _preferencesChanged:]): Update the call to settings.
196
197 2015-05-22  Tim Horton  <timothy_horton@apple.com>
198
199         Remove action menu support
200         https://bugs.webkit.org/show_bug.cgi?id=145305
201         <rdar://problem/21070771>
202
203         Reviewed by Anders Carlsson.
204
205         * Configurations/WebKitLegacy.xcconfig:
206         * WebView/WebActionMenuController.h: Removed.
207         * WebView/WebActionMenuController.mm: Removed.
208         * WebView/WebHTMLView.mm:
209         (-[WebHTMLView otherMouseDown:]):
210         (-[WebHTMLView scrollWheel:scrollWheel:]): Deleted.
211         (-[WebHTMLView mouseDown:mouseDown:]): Deleted.
212         * WebView/WebUIDelegatePrivate.h:
213         * WebView/WebView.mm:
214         (-[WebView _commonInitializationWithFrameName:groupName:]): Deleted.
215         (-[WebView _close]): Deleted.
216         (-[WebView prepareForMenu:withEvent:]): Deleted.
217         (-[WebView willOpenMenu:withEvent:]): Deleted.
218         (-[WebView didCloseMenu:withEvent:]): Deleted.
219         (-[WebView _actionMenuController]): Deleted.
220         * WebView/WebViewData.h:
221         * WebView/WebViewData.mm:
222         (-[WebViewPrivate dealloc]): Deleted.
223         * WebView/WebViewInternal.h:
224         Remove everything, except some enums that clients still refer to.
225
226 2015-05-22  Brady Eidson  <beidson@apple.com>
227
228         Rework how the ResourceRequest user initiated property key is used.
229         Followup to https://bugs.webkit.org/show_bug.cgi?id=145281
230
231         Reviewed by Dan Bernstein.
232
233         * WebCoreSupport/WebSystemInterface.mm:
234         (WKResourceRequestIsUserInitiatedKey): Deleted.
235         (InitWebCoreSystemInterface): Deleted.
236
237 2015-05-21  Brady Eidson  <beidson@apple.com>
238
239         Add an "initiated by user gesture" flag to ResourceRequest.
240         https://bugs.webkit.org/show_bug.cgi?id=145281
241
242         Reviewed by Alex Christensen.
243
244         * WebCoreSupport/WebSystemInterface.mm:
245         (WKResourceRequestIsUserInitiatedKey):
246         (InitWebCoreSystemInterface):
247
248 2015-05-20  Anders Carlsson  <andersca@apple.com>
249
250         Fix build.
251
252         * WebView/WebViewInternal.h:
253
254 2015-05-20  Alex Christensen  <achristensen@webkit.org>
255
256         Unreviewed build fix; LocalizedStrings.h is in WebCore.
257
258         * WebView/WebActionMenuController.mm:
259
260 2015-05-20  Jer Noble  <jer.noble@apple.com>
261
262         Unreviewed build fix; WebActionMenuController.mm should directly include LocalizedStrings.h
263
264         * WebView/WebActionMenuController.mm:
265
266 2015-05-19  Jer Noble  <jer.noble@apple.com>
267
268         Touching HTMLMediaElement.h or MediaPlayer.h causes a world rebuild.
269         https://bugs.webkit.org/show_bug.cgi?id=145193
270
271         Reviewed by Eric Carlson.
272
273         Use HTMLMediaElementEnums instead of HTMLMediaElement.
274
275         * WebCoreSupport/WebChromeClient.h:
276         * WebCoreSupport/WebChromeClient.mm:
277         (WebChromeClient::enterVideoFullscreenForVideoElement): HTMLMediaElement -> HTMLMediaElementEnums.
278         * WebView/WebView.mm:
279         (-[WebView _enterVideoFullscreenForVideoElement:mode:]): Ditto.
280         * WebView/WebViewInternal.h:
281
282 2015-05-19  Michael Saboff  <msaboff@apple.com>
283
284         REGRESSION(183787): JIT is enabled for all builds
285         https://bugs.webkit.org/show_bug.cgi?id=145179
286
287         Reviewed by Geoffrey Garen.
288
289         Eliminated the setting of ENABLE_JIT, as wtf/Platform.h has appropriate logic to
290         set it depending on OS and CPU type.
291
292         * Configurations/FeatureDefines.xcconfig:
293
294 2015-05-19  Brady Eidson  <beidson@apple.com>
295
296         X-Frame-Options headers not respected when loading from application cache.
297         <rdar://problem/14877623> and https://bugs.webkit.org/show_bug.cgi?id=131800
298
299         Reviewed by Alexey Proskuryakov.
300
301         * WebView/WebFrame.mm:
302         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
303
304 2015-05-18  Skachkov Alexandr  <gskachkov@gmail.com>
305
306         [ES6] Arrow function syntax. Feature flag for arrow function
307         https://bugs.webkit.org/show_bug.cgi?id=145108
308
309         Reviewed by Ryosuke Niwa.
310
311         Added feature flag ENABLE_ES6_ARROWFUNCTION_SYNTAX for arrow function
312
313         * Configurations/FeatureDefines.xcconfig:
314
315 2015-05-15  Jeremy Jones  <jeremyj@apple.com>
316
317         Limit alternate fullscreen with linked on or after.
318         https://bugs.webkit.org/show_bug.cgi?id=144894
319
320         Reviewed by Dean Jackson.
321
322         * WebView/WebView.mm:
323         (shouldAllowAlternateFullscreen): Added.
324         (-[WebView _preferencesChanged:]):
325
326 2015-05-12  Simon Fraser  <simon.fraser@apple.com>
327
328         Turn antialiased font dilation off by default
329         https://bugs.webkit.org/show_bug.cgi?id=144940
330         rdar://problem/20923031
331
332         Reviewed by Sam Weinig.
333         
334         Turn antialised font dilation off by default.
335
336         * WebView/WebPreferences.mm:
337         (+[WebPreferences initialize]):
338
339 2015-05-11  Daniel Bates  <dabates@apple.com>
340
341         [iOS] Close all open databases in expiration handler of process assertion
342         https://bugs.webkit.org/show_bug.cgi?id=144661
343         <rdar://problem/20845052>
344
345         Reviewed by Darin Adler.
346
347         For Legacy WebKit, close all open databases when the process assertion expiration
348         handler is called.
349
350         * Storage/WebDatabaseManager.mm:
351         (+[WebDatabaseManager startBackgroundTask]): Call DatabaseTracker::tracker().closeAllDatabases()
352         in the expiration handler to close all open databases. As a side effect of closing
353         a database all in-progress database transactions are interrupted.
354
355 2015-05-10  Sungmann Cho  <sungmann.cho@navercorp.com>
356
357         Get rid of the public item accessors in BackForwardClient
358         https://bugs.webkit.org/show_bug.cgi?id=144827
359
360         Reviewed by Darin Adler.
361
362         Remove backItem(), currentItem(), and forwardItem() from BackForwardClient.
363         We can still use these functionalities through BackForwardController.
364
365         No new tests, no behavior change.
366
367         * WebView/WebView.mm:
368         (-[WebView _loadBackForwardListFromOtherView:]):
369
370 2015-05-09  Yoav Weiss  <yoav@yoav.ws>
371
372         Remove the PICTURE_SIZES build flag
373         https://bugs.webkit.org/show_bug.cgi?id=144679
374
375         Reviewed by Benjamin Poulain.
376
377         Removed the PICTURE_SIZES build time flag.
378
379         * Configurations/FeatureDefines.xcconfig:
380
381 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
382
383         Remove convenience constructors for TextRun
384         https://bugs.webkit.org/show_bug.cgi?id=144752
385
386         These convenience constructors are unnecessary. Moving the code that makes the StringView
387         back to the call site will also help us make things more elegant in future refactoring.
388
389         Reviewed by Darin Adler.
390
391         No new tests because there is no behavior change.
392
393         * Misc/WebKitNSStringExtras.mm:
394         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
395         (-[NSString _web_widthWithFont:]):
396
397 2015-05-08  Commit Queue  <commit-queue@webkit.org>
398
399         Unreviewed, rolling out r183996.
400         https://bugs.webkit.org/show_bug.cgi?id=144806
401
402         ASan detected use-after free (Requested by ap on #webkit).
403
404         Reverted changeset:
405
406         "Remove convenience constructors for TextRun"
407         https://bugs.webkit.org/show_bug.cgi?id=144752
408         http://trac.webkit.org/changeset/183996
409
410 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
411
412         Remove convenience constructors for TextRun
413         https://bugs.webkit.org/show_bug.cgi?id=144752
414
415         These convenience constructors are unnecessary. Moving the code that makes the StringView
416         back to the call site will also help us make things more elegant in future refactoring.
417
418         Reviewed by Darin Adler.
419
420         No new tests because there is no behavior change.
421
422         * Misc/WebKitNSStringExtras.mm:
423         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
424         (-[NSString _web_widthWithFont:]):
425
426 2015-05-07  Anders Carlsson  <andersca@apple.com>
427
428         Build fixes.
429
430         * Misc/WebNSPasteboardExtras.mm:
431         (-[NSPasteboard _web_writeFileWrapperAsRTFDAttachment:]):
432         * WebView/WebHTMLView.mm:
433         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
434         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
435         * WebView/WebPDFView.mm:
436         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
437         Pass empty arrays and dictionaries instead of nil.
438
439         * WebView/WebView.mm:
440         (-[WebView _commonInitializationWithFrameName:groupName:]):
441         Use the regular init method.
442
443 2015-05-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
444
445         Fix iPhone 6 iOS simulator Build.
446         following http://trac.webkit.org/changeset/183954.
447
448         Reviewed by Daniel Bates.
449
450         * WebView/WebHTMLView.mm:
451         (-[WebHTMLView pressureChangeWithEvent:]):
452
453 2015-05-07  Timothy Horton  <timothy_horton@apple.com>
454
455         Occasional null deref in WebImmediateActionController
456         https://bugs.webkit.org/show_bug.cgi?id=144772
457         <rdar://problem/20811128>
458
459         Reviewed by Beth Dakin.
460
461         * WebView/WebImmediateActionController.mm:
462         (-[WebImmediateActionController _defaultAnimationController]):
463         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
464         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
465         Null-check TextIndicators before dereferencing.
466
467 2015-05-07  Beth Dakin  <bdakin@apple.com>
468
469         New force-related DOM events should fire in WK1 views
470         https://bugs.webkit.org/show_bug.cgi?id=144663
471         -and corresponding-
472         rdar://problem/20281886
473
474         Reviewed by Sam Weinig.
475
476         Pass the lastPressureEvent to WebCore.
477         * WebView/WebHTMLView.mm:
478         (-[WebHTMLView _updateMouseoverWithEvent:]):
479         (-[WebHTMLView rightMouseUp:]):
480         (-[WebHTMLView menuForEvent:]):
481         (-[WebHTMLView acceptsFirstMouse:]):
482         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
483         (-[WebHTMLView mouseDown:mouseDown:]):
484         (-[WebHTMLView mouseDragged:]):
485         (-[WebHTMLView mouseUp:mouseUp:]):
486
487         New NSRespnder method for pressure changes.
488         (-[WebHTMLView pressureChangeWithEvent:]):
489
490         New BOOL _contentPreventsDefault tracks whether the HitTestResult prevented the 
491         default action. Get rid of willHandleMouseDown; now that the gesture recognizer 
492         sets delaysPrimaryMouseButtonEvents to NO, we don’t need this.
493         * WebView/WebImmediateActionController.h:
494         * WebView/WebImmediateActionController.mm:
495         (-[WebImmediateActionController _clearImmediateActionState]):
496
497         Set all of the immediateActionStages on EventHandler. This is critical to keep 
498         link navigation happening at the right time now that 
499         delaysPrimaryMouseButtonEvents is set to NO.
500         (-[WebImmediateActionController performHitTestAtPoint:]):
501         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
502         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
503         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
504
505         Use a dummy animation controller if the content prevents default.
506         (-[WebImmediateActionController _defaultAnimationController]):
507         (-[WebImmediateActionController _updateImmediateActionItem]):
508         (-[WebImmediateActionController webView:willHandleMouseDown:]): Deleted.
509
510         Set delaysPrimaryMouseButtonEvents to NO so that we get existing mouse events when 
511         we expect to.
512         * WebView/WebView.mm:
513         (-[WebView _commonInitializationWithFrameName:groupName:]):
514
515         Cache the most recent pressure event so that we can send it to WebCore for all of 
516         the mouse events.
517         (-[WebView _pressureEvent]):
518         (-[WebView _setPressureEvent:]):
519         * WebView/WebViewData.h:
520         * WebView/WebViewData.mm:
521         (-[WebViewPrivate dealloc]):
522         * WebView/WebViewInternal.h:
523
524 2015-05-05  Myles C. Maxfield  <mmaxfield@apple.com>
525
526         Revert "Introducing the Platform Abstraction Layer (PAL)"
527         https://bugs.webkit.org/show_bug.cgi?id=144751
528
529         Unreviewed.
530
531         PAL should be a new target inside WebCore, rather than a top-level folder.
532
533         * Configurations/FeatureDefines.xcconfig: Updated
534
535 2015-05-07  Dan Bernstein  <mitz@apple.com>
536
537         <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
538         https://bugs.webkit.org/show_bug.cgi?id=144727
539
540         Reviewed by Darin Adler.
541
542         * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig.
543         * Configurations/WebKitLegacy.xcconfig: Define INSTALL_PATH in terms of
544         INSTALL_PATH_PREFIX and INSTALL_PATH_ACTUAL, and define INSTALL_PATH_PREFIX for the iOS 8.x
545         Simulator.
546
547 2015-04-02  Myles C. Maxfield  <mmaxfield@apple.com>
548
549         Introducing the Platform Abstraction Layer (PAL)
550         https://bugs.webkit.org/show_bug.cgi?id=143358
551
552         Reviewed by Simon Fraser.
553
554         * Configurations/FeatureDefines.xcconfig: Updated
555
556 2015-05-06  Antti Koivisto  <antti@apple.com>
557
558         REGRESSION (r183467): Unable to start downloads in private browsing mode
559         https://bugs.webkit.org/show_bug.cgi?id=144533
560
561         Reviewed by Darin Adler.
562
563         * WebCoreSupport/WebFrameLoaderClient.mm:
564         (WebFrameLoaderClient::dispatchWillSendRequest):
565
566             Use updateFromDelegatePreservingOldProperties (like WK2) instead of doing the same thing manually.
567
568 2015-05-06  Ryosuke Niwa  <rniwa@webkit.org>
569
570         Toggling underline on font panel removes strike through
571         https://bugs.webkit.org/show_bug.cgi?id=144670
572         <rdar://problem/3790443>
573
574         Reviewed by Darin Adler.
575
576         Use setStrikeThroughChange and setUnderlineChange added in r183770 to toggle underline and strike through.
577
578         * WebView/WebHTMLView.mm:
579         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
580         (-[WebHTMLView _styleForAttributeChange:]):
581         (-[WebHTMLView changeAttributes:]):
582
583 2015-05-04  Ryosuke Niwa  <rniwa@webkit.org>
584
585         Toggling underline or strike through affects each other
586         https://bugs.webkit.org/show_bug.cgi?id=27818
587
588         Reviewed by Darin Adler.
589
590         * WebView/WebFrame.mm:
591         (-[WebFrame _setTypingStyle:withUndoAction:]):
592
593 2015-05-01  Martin Robinson  <mrobinson@igalia.com>
594
595         USE(...) macro should expect unprefixed variables
596         https://bugs.webkit.org/show_bug.cgi?id=144454
597
598         Reviewed by Daniel Bates.
599
600         * Misc/WebDownload.h: Replace all occurrences WTF_USE with USE.
601
602 2015-05-01  Brady Eidson  <beidson@apple.com>
603
604         Add API to disable meta refreshes.
605         <rdar://problem/20333198> and https://bugs.webkit.org/show_bug.cgi?id=144269
606
607         Reviewed by Alexey Proskuryakov.
608
609         Add a preference to enable/disable meta refreshes, enabled by default.
610
611         * WebView/WebPreferenceKeysPrivate.h:
612         * WebView/WebPreferences.mm:
613         (+[WebPreferences initialize]):
614         (-[WebPreferences setMetaRefreshEnabled:]):
615         (-[WebPreferences metaRefreshEnabled]):
616         * WebView/WebPreferencesPrivate.h:
617         * WebView/WebView.mm:
618         (-[WebView _preferencesChanged:]):
619
620 2015-04-30  Jon Davis  <jond@apple.com>
621
622         Web Inspector: console should show an icon for console.info() messages
623         https://bugs.webkit.org/show_bug.cgi?id=18530
624
625         Reviewed by Timothy Hatcher.
626
627         * WebCoreSupport/WebChromeClient.mm:
628         (stringForMessageLevel):
629         * WebView/WebUIDelegatePrivate.h:
630
631 2015-04-29  Myles C. Maxfield  <mmaxfield@apple.com>
632
633         [OS X] Use CTFontCreateForCSS instead of doing font search ourselves
634         https://bugs.webkit.org/show_bug.cgi?id=132159
635
636         Reviewed by Darin Adler.
637
638         Add SPI to set the font whitelist.
639
640         * WebView/WebView.mm:
641         (+[WebView _setFontWhitelist:]):
642         * WebView/WebViewPrivate.h:
643
644 2015-04-28  Timothy Horton  <timothy_horton@apple.com>
645
646         [TextIndicator] Yellow highlight takes too long to fade out on scroll
647         https://bugs.webkit.org/show_bug.cgi?id=144358
648         <rdar://problem/19451011>
649
650         Reviewed by Beth Dakin.
651
652         * WebView/WebActionMenuController.mm:
653         (-[WebActionMenuController _showTextIndicator]):
654         * WebView/WebHTMLView.mm:
655         (-[WebHTMLView quickLookWithEvent:]):
656         * WebView/WebImmediateActionController.mm:
657         (-[WebImmediateActionController _defaultAnimationController]):
658         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
659         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
660         Pull _clearTextIndicatorWithAnimation out, make it avoid using a dismissal animation
661         if we're called from didHandleScrollWheel.
662
663         * WebView/WebView.mm:
664         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
665         (-[WebView _setTextIndicator:]):
666         (-[WebView _setTextIndicator:withLifetime:]):
667         (-[WebView _clearTextIndicator]):
668         (-[WebView _showDictionaryLookupPopup:]):
669         (-[WebView _dictionaryLookupPopoverWillClose:]):
670         (-[WebView _setTextIndicator:fadeOut:]): Deleted.
671         * WebView/WebViewInternal.h:
672         Make _setTextIndicator take a reference.
673         Add a variant of _setTextIndicator that takes a Lifetime.
674         Make _clearTextIndicatorWithAnimation take a DismissalAnimation.
675
676 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
677
678         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
679         https://bugs.webkit.org/show_bug.cgi?id=144304
680
681         Reviewed by Geoffrey Garen.
682
683         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
684
685         * Configurations/FeatureDefines.xcconfig:
686
687 2015-04-28  Commit Queue  <commit-queue@webkit.org>
688
689         Unreviewed, rolling out r183514.
690         https://bugs.webkit.org/show_bug.cgi?id=144359
691
692         It broke cloop test bots (Requested by mcatanzaro on #webkit).
693
694         Reverted changeset:
695
696         "Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT"
697         https://bugs.webkit.org/show_bug.cgi?id=144304
698         http://trac.webkit.org/changeset/183514
699
700 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
701
702         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
703         https://bugs.webkit.org/show_bug.cgi?id=144304
704
705         Reviewed by Geoffrey Garen.
706
707         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
708
709         * Configurations/FeatureDefines.xcconfig:
710
711 2015-04-28  Joseph Pecoraro  <pecoraro@apple.com>
712
713         Fix common typo "targetting" => "targeting"
714         https://bugs.webkit.org/show_bug.cgi?id=144349
715
716         Reviewed by Daniel Bates.
717
718         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
719         (WebKit::NetscapePluginInstanceProxy::loadRequest):
720         * Plugins/WebNetscapePluginView.mm:
721         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
722         * WebView/WebPolicyDelegate.h:
723
724 2015-04-28  Brady Eidson  <beidson@apple.com>
725
726         Consolidate most "frame load" arguments into FrameLoadRequest.
727         https://bugs.webkit.org/show_bug.cgi?id=144276
728
729         Reviewed by Alexey Proskuryakov.
730
731         * WebView/WebPDFView.mm:
732         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
733
734 2015-04-27  Dan Bernstein  <mitz@apple.com>
735
736         <rdar://problem/20721931> REGRESSION (r178753): All legacy framework headers are missing availability annotations
737         https://bugs.webkit.org/show_bug.cgi?id=144311
738
739         Reviewed by Adele Peterson.
740
741         * postprocess-headers.sh: Changed “macsox” to “macosx”.
742
743 2015-04-27  Brady Eidson  <beidson@apple.com>
744
745         Make 'enum NavigationType' be an enum class
746         https://bugs.webkit.org/show_bug.cgi?id=144270
747
748         Reviewed by Alex Christensen.
749
750         * WebCoreSupport/WebFrameLoaderClient.mm:
751         (WebFrameLoaderClient::actionDictionary):
752
753 2015-04-27  Brent Fulgham  <bfulgham@apple.com>
754
755         REGRESSION(r182879): Images and video can no longer be downloaded
756         https://bugs.webkit.org/show_bug.cgi?id=144267
757         <rdar://problem/20702844>
758
759         Reviewed by Simon Fraser.
760
761         * WebView/WebActionMenuController.mm:
762         (-[WebActionMenuController _createActionMenuItemForTag:]): Check for
763         "!WebCore::protocolIs(..., "file")" for image and media downloads.
764
765 2015-04-26  Yusuke Suzuki  <utatane.tea@gmail.com>
766
767         [ES6] Implement ES6 template literals
768         https://bugs.webkit.org/show_bug.cgi?id=142691
769
770         Reviewed by Darin Adler.
771
772         Add ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX compile time flag.
773
774         * Configurations/FeatureDefines.xcconfig:
775
776 2015-04-26  Doug Russell  <d_russell@apple.com>
777
778         AX: richer text change notifications (142719)
779         https://bugs.webkit.org/show_bug.cgi?id=142719
780
781         Reviewed by Darin Adler.
782
783         Richer accessibility value change notifications. Introduce AXTextEditType,
784         postTextStateChangeNotification and postTextReplacementNotification to give assistive
785         tech apps more reliable context for responding to changes in web content. Also implement
786         a mechanism to post value changes in password form fields in coalesced ticks to thwart
787         analyzing the cadence of changes.
788
789         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent,
790         and an overload of postTextReplacementNotification to give assistive tech apps more
791         reliable context for responding to changes in web content selection. Also block posting
792         selection changes on password fields.
793
794         * WebCoreSupport/WebEditorClient.mm:
795         (undoNameForEditAction):
796
797 2015-04-24  Timothy Hatcher  <timothy@apple.com>
798
799         Web Inspector: Remove native window dock controls
800         https://bugs.webkit.org/show_bug.cgi?id=144184
801
802         Reviewed by Joseph Pecoraro.
803
804         * Resources/Dock.pdf: Removed.
805         * Resources/DockLegacy.pdf: Removed.
806         * WebCoreSupport/WebInspectorClient.mm:
807         (-[WebInspectorWindowController window]):
808         (-[WebInspectorWindowController setDockingUnavailable:]):
809
810 2015-04-25  Martin Robinson  <mrobinson@igalia.com>
811
812         Rename ENABLE_3D_RENDERING to ENABLE_3D_TRANSFORMS
813         https://bugs.webkit.org/show_bug.cgi?id=144182
814
815         Reviewed by Simon Fraser.
816
817         * Configurations/FeatureDefines.xcconfig: Replace all instances of 3D_RENDERING with 3D_TRANSFORMS.
818
819 2015-04-24  Commit Queue  <commit-queue@webkit.org>
820
821         Unreviewed, rolling out r183266.
822         https://bugs.webkit.org/show_bug.cgi?id=144164
823
824         Broke 32-bit build and a test. (Requested by ap on #webkit).
825
826         Reverted changeset:
827
828         "AX: richer text change notifications (142719)"
829         https://bugs.webkit.org/show_bug.cgi?id=142719
830         http://trac.webkit.org/changeset/183266
831
832 2015-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
833
834         [Cocoa] Start cleaning up FontPlatformData
835         https://bugs.webkit.org/show_bug.cgi?id=144133
836
837         Reviewed by Enrica Casucci.
838
839         Receive casts which have been hoisted from the deleted FontPlatformData constructor.
840
841         * Misc/WebKitNSStringExtras.mm:
842         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Receive cast which has
843         been hoisted from the deleted FontPlatformData constructor.
844         (-[NSString _web_widthWithFont:]): Ditto.
845         * Misc/WebStringTruncator.mm:
846         (fontFromNSFont): Ditto.
847
848 2015-04-24  Doug Russell  <d_russell@apple.com>
849
850         AX: richer text change notifications (142719)
851         https://bugs.webkit.org/show_bug.cgi?id=142719
852
853         Reviewed by Darin Adler.
854
855         Richer accessibility value change notifications. Introduce AXTextEditType, postTextStateChangeNotification and postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content. Also implement a mechanism to post value changes in password form fields in coalesced ticks to thwart analyzing the cadence of changes.
856
857         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent, and an overload of postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content selection. Also block posting selection changes on password fields.
858
859         * WebCoreSupport/WebEditorClient.mm:
860         (undoNameForEditAction):
861
862 2015-04-23  Jer Noble  <jer.noble@apple.com>
863
864         [Mac] Disable QTKit by default on future OS X.
865         https://bugs.webkit.org/show_bug.cgi?id=144082
866
867         Reviewed by Darin Adler.
868
869         Default WebKitQTKitEnabledPreferenceKey to NO.
870
871         * WebView/WebPreferences.mm:
872         (+[WebPreferences initialize]):
873
874 2015-04-23  Andreas Kling  <akling@apple.com>
875
876         There should only be one way to get the system memory size.
877         <https://webkit.org/b/144081>
878
879         Reviewed by Antti Koivisto.
880
881         * Misc/WebKitSystemBits.h:
882         * Misc/WebKitSystemBits.m:
883         (WebMemorySize): Deleted.
884         * WebView/WebView.mm:
885         (+[WebView _setCacheModel:]):
886         (roundUpToPowerOf2): Deleted.
887
888 2015-04-22  Darin Adler  <darin@apple.com>
889
890         Remove OwnPtr and PassOwnPtr use from WebKit/cf, WebKit/mac, and WebKit2
891         https://bugs.webkit.org/show_bug.cgi?id=143943
892
893         Reviewed by Anders Carlsson.
894
895         * Plugins/Hosted/ProxyInstance.h: Removed unneeded include.
896         * Plugins/WebBaseNetscapePluginView.h: Ditto.
897
898         * Plugins/WebNetscapePluginEventHandler.h: Use unique_ptr instead of
899         PassOwnPtr for the create function. Also tweaked formatting and removed
900         unneeded forward declaration of CGRect.
901         * Plugins/WebNetscapePluginEventHandler.mm:
902         (WebNetscapePluginEventHandler::create): Changed to use unique_ptr and
903         make_unique.
904
905         * Plugins/WebNetscapePluginView.h: Use unique_ptr instead of OwnPtr for
906         the _eventHandler field.
907         * Plugins/WebNetscapePluginView.mm:
908         (-[WebNetscapePluginView destroyPlugin]): Changed code to work with unique_ptr.
909
910         * WebCoreSupport/WebUserMediaClient.mm: Removed unneeded include.
911
912         * WebView/WebDeviceOrientationProviderMock.mm: Changed to use make_unique.
913         * WebView/WebDeviceOrientationProviderMockInternal.h: Changed to use unique_ptr.
914
915         * WebView/WebFrame.mm:
916         (vectorForDictationPhrasesArray): Changed to return Vector<Vector<String>> and
917         not a PassOwnPtr. Also rewrote to be much simpler, although there is still a
918         pre-existing problem here where this could put empty vectors into the result,
919         and I'm pretty sure the client never expects any of the Vector<String> to be empty.
920         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
921         Rewrote logic to involve WebCore types a bit less; old code was round tripping
922         things through WebCore::URL for no obvious reason.
923
924         * WebView/WebFrameInternal.h: Changed vectorForDictationPhrasesArray to return
925         a Vector<Vector<String>> and not a PassOwnPtr.
926
927         * WebView/WebFullScreenController.h: Removed unneeded include.
928
929         * WebView/WebViewData.h: Changed m_alternativeTextUIController to be a
930         m_alternativeTextUIController.
931         * WebView/WebViewData.mm:
932         (-[WebViewPrivate init]): Use make_unique to initialize m_alternativeTextUIController.
933
934 2015-04-22  Brent Fulgham  <bfulgham@apple.com>
935
936         VisibleSelection should only accept Range by reference
937         https://bugs.webkit.org/show_bug.cgi?id=144047
938
939         Reviewed by Tim Horton.
940
941         Update all uses of VisibleSelection to pass a Range reference instead
942         of a Range pointer.
943
944         * WebCoreSupport/WebContextMenuClient.mm:
945         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
946         * WebView/WebFrame.mm:
947         (-[WebFrame _selectNSRange:]):
948
949 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
950
951         [Mac] Device picker menu is positioned incorrectly in WK1
952         https://bugs.webkit.org/show_bug.cgi?id=144049
953         <rdar://problem/20493101>
954
955         Reviewed by Dean Jackson.
956
957         * WebView/WebView.mm:
958         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]): Mouse location is already in
959             window coordinates so don't call convertRect:toView:nil.
960
961 2015-04-21  Brent Fulgham  <bfulgham@apple.com>
962
963         Extend action menus to support PDF
964         https://bugs.webkit.org/show_bug.cgi?id=143895
965         <rdar://problem/19003333>
966
967         Reviewed by Tim Horton.
968
969         Prevent a crash when someone attempts to invoke an action menu on a PDF hosted
970         in a WK1 view.
971
972         * WebView/WebActionMenuController.mm:
973         (-[WebActionMenuController performHitTestAtPoint:]): Handle WebPDFView as well as
974         the WebHTMLView case.
975         * WebView/WebDocument.h:
976         * WebView/WebHTMLView.h:
977         * WebView/WebHTMLView.mm:
978         (-[WebHTMLView _frame]):
979         * WebView/WebHTMLViewInternal.h:
980         * WebView/WebPDFView.h:
981         * WebView/WebPDFView.mm:
982         (-[WebPDFView _frame]): Added.
983
984 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
985
986         Unreviewed post-review clean up after r183096.
987
988         * WebView/WebMediaPlaybackTargetPicker.h:
989
990 2015-04-21  Eric Carlson  <eric.carlson@apple.com>
991
992         [Mac] Use one playback target for all web processes
993         https://bugs.webkit.org/show_bug.cgi?id=144009
994
995         Reviewed by Tim Horton.
996
997         Update to use WebMediaSessionManager for playback target management.
998
999         * WebCoreSupport/WebChromeClient.h:
1000         * WebCoreSupport/WebChromeClient.mm:
1001         (WebChromeClient::addPlaybackTargetPickerClient):
1002         (WebChromeClient::removePlaybackTargetPickerClient):
1003         (WebChromeClient::showPlaybackTargetPicker):
1004         (WebChromeClient::playbackTargetPickerClientStateDidChange):
1005         (WebChromeClient::startingMonitoringPlaybackTargets): Deleted.
1006         (WebChromeClient::stopMonitoringPlaybackTargets): Deleted.
1007         * WebView/WebMediaPlaybackTargetPicker.h:
1008         * WebView/WebMediaPlaybackTargetPicker.mm:
1009         (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient):
1010         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
1011         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
1012         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
1013         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
1014         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange):
1015         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
1016         (WebMediaPlaybackTargetPicker::invalidate):
1017         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): Deleted.
1018         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): Deleted.
1019         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Deleted.
1020         (WebMediaPlaybackTargetPicker::targetPicker): Deleted.
1021         * WebView/WebView.mm:
1022         (-[WebView _addPlaybackTargetPickerClient:]):
1023         (-[WebView _removePlaybackTargetPickerClient:]):
1024         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
1025         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
1026         (-[WebView _showPlaybackTargetPicker:hasVideo:]): Deleted.
1027         (-[WebView _startingMonitoringPlaybackTargets]): Deleted.
1028         (-[WebView _stopMonitoringPlaybackTargets]): Deleted.
1029         * WebView/WebViewInternal.h:
1030
1031 2015-04-20  Alexey Proskuryakov  <ap@apple.com>
1032
1033         Disable mixed content blocking for existing WebKit1 clients
1034         https://bugs.webkit.org/show_bug.cgi?id=143955
1035         rdar://problem/20177186
1036
1037         Reviewed by Oliver Hunt.
1038
1039         * Misc/WebKitVersionChecks.h:
1040         * WebView/WebView.mm:
1041         (shouldAllowInsecureContent):
1042         (-[WebView _preferencesChanged:]):
1043
1044 2015-04-20  Tim Horton  <timothy_horton@apple.com>
1045
1046         Implement immediate action support for tel: and mailto: URLs
1047         https://bugs.webkit.org/show_bug.cgi?id=143916
1048         <rdar://problem/19721711>
1049
1050         Reviewed by Darin Adler.
1051
1052         * WebView/WebImmediateActionController.mm:
1053         (-[WebImmediateActionController _defaultAnimationController]):
1054         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1055         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1056         (-[WebImmediateActionController _menuItemForDataDetectedText]): Deleted.
1057         * WebView/WebUIDelegatePrivate.h:
1058         Add _animationControllerForDataDetectedLink and use it when
1059         building immediate actions for tel: and mailto: links.
1060
1061 2015-04-17  Daniel Bates  <dabates@apple.com>
1062
1063         REGRESSION: SVG does not support link dragging
1064         https://bugs.webkit.org/show_bug.cgi?id=141597
1065
1066         Reviewed by Darin Adler.
1067
1068         Write -[WebElementDictionary _isLiveLink] in terms of WebCore::isDraggableLink().
1069
1070         * Misc/WebElementDictionary.mm:
1071         (-[WebElementDictionary _isLiveLink]):
1072
1073 2015-04-16  Sam Weinig  <sam@webkit.org>
1074
1075         Expose JavaScriptMarkupEnabled preference for WebKit1
1076         <rdar://problem/19939450>
1077         https://bugs.webkit.org/show_bug.cgi?id=143855
1078
1079         Reviewed by Dan Bernstein.
1080
1081         * WebView/WebPreferenceKeysPrivate.h:
1082         Add new key, WebKitJavaScriptMarkupEnabledPreferenceKey
1083
1084         * WebView/WebPreferences.mm:
1085         (+[WebPreferences initialize]):
1086         Initialize WebKitJavaScriptMarkupEnabledPreferenceKey to YES.
1087
1088         (-[WebPreferences isJavaScriptMarkupEnabled]):
1089         (-[WebPreferences setJavaScriptMarkupEnabled:]):
1090         Implement getter/setter.
1091
1092         * WebView/WebPreferencesPrivate.h:
1093         Add new property, javaScriptMarkupEnabled.
1094
1095         * WebView/WebView.mm:
1096         (-[WebView _preferencesChanged:]):
1097         Map the new preference to WebCore's scriptMarkupEnabled setting.
1098
1099 2015-04-15  Brent Fulgham  <bfulgham@apple.com>
1100
1101         [Mac] Disable "Save to Downloads" option for local files
1102         https://bugs.webkit.org/show_bug.cgi?id=143794
1103
1104         Reviewed by Tim Horton.
1105
1106         Disable the Image and Media download options if the download
1107         target is a local file. We can only download web resources;
1108         anything else is actually a no-op.
1109
1110         * WebView/WebActionMenuController.mm:
1111         (-[WebActionMenuController _defaultMenuItemsForImage]):
1112         (-[WebActionMenuController _defaultMenuItemsForVideo]):
1113
1114 2015-04-15  Alex Christensen  <achristensen@webkit.org>
1115
1116         Progress towards CMake on Mac.
1117         https://bugs.webkit.org/show_bug.cgi?id=143785
1118
1119         Reviewed by Csaba Osztrogonác.
1120
1121         * WebView/WebPDFDocumentExtras.mm:
1122         * WebView/WebPDFView.mm:
1123
1124 2015-04-13  Jer Noble  <jer.noble@apple.com>
1125
1126         [Fullscreen] ChromeClient::exitVideoFullscreen() should take a pointer to a HTMLVideoElement.
1127         https://bugs.webkit.org/show_bug.cgi?id=143674
1128
1129         Reviewed by Darin Adler.
1130
1131         * WebCoreSupport/WebChromeClient.h:
1132         * WebCoreSupport/WebChromeClient.mm:
1133         (WebChromeClient::enterVideoFullscreenForVideoElement): Takes a reference.
1134         (WebChromeClient::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
1135         (WebChromeClient::exitVideoFullscreen): Deleted.
1136
1137 2015-04-14  Simon Fraser  <simon.fraser@apple.com>
1138
1139         Re-enable custom dilation for antialiased fonts
1140         https://bugs.webkit.org/show_bug.cgi?id=143738
1141
1142         Reviewed by Tim Horton.
1143         
1144         Enabling custom dilation for antialised fonts broke layout tests, so re-land it,
1145         but disable in WebKitTestRunner and DumpRenderTree. The latter requires adding
1146         a private WebKit pref. This pref defaults to YES, enabling the feature by default
1147         in WK1 as we do for WK2.
1148
1149         * WebView/WebPreferenceKeysPrivate.h:
1150         * WebView/WebPreferences.mm:
1151         (+[WebPreferences initialize]):
1152         (-[WebPreferences setAntialiasedFontDilationEnabled:]):
1153         (-[WebPreferences antialiasedFontDilationEnabled]):
1154         * WebView/WebPreferencesPrivate.h:
1155         * WebView/WebView.mm:
1156         (-[WebView _preferencesChanged:]):
1157
1158 2015-04-13  Brady Eidson  <beidson@apple.com>
1159
1160         Share sheets from Share menus appear outside the browser window.
1161         <rdar://problem/20455592> and https://bugs.webkit.org/show_bug.cgi?id=143620
1162
1163         Reviewed by Darin Adler.
1164
1165         Refactor existing Sharing Service Picker code to also be used for the Share menu NSMenuItem.
1166
1167         * Misc/WebSharingServicePickerController.h:
1168         (WebSharingServicePickerClient::webView):
1169         * Misc/WebSharingServicePickerController.mm:
1170         (WebSharingServicePickerClient::WebSharingServicePickerClient):
1171         (WebSharingServicePickerClient::sharingServicePickerWillBeDestroyed):
1172         (WebSharingServicePickerClient::pageForSharingServicePicker):
1173         (WebSharingServicePickerClient::windowForSharingServicePicker):
1174         (WebSharingServicePickerClient::screenRectForCurrentSharingServicePickerItem):
1175         (WebSharingServicePickerClient::imageForCurrentSharingServicePickerItem):
1176         (-[WebSharingServicePickerController initWithItems:includeEditorServices:client:style:]):
1177         (-[WebSharingServicePickerController initWithSharingServicePicker:client:]):
1178         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1179
1180         * WebCoreSupport/WebContextMenuClient.h:
1181         (WebContextMenuClient::webView): Deleted.
1182         * WebCoreSupport/WebContextMenuClient.mm:
1183         (WebContextMenuClient::WebContextMenuClient):
1184         (WebContextMenuClient::pageForSharingServicePicker): Deleted.
1185         (WebContextMenuClient::windowForSharingServicePicker): Deleted.
1186
1187         * WebCoreSupport/WebSelectionServiceController.h:
1188         * WebCoreSupport/WebSelectionServiceController.mm:
1189         (WebSelectionServiceController::WebSelectionServiceController):
1190         (WebSelectionServiceController::handleSelectionServiceClick):
1191         (WebSelectionServiceController::pageForSharingServicePicker): Deleted.
1192         (WebSelectionServiceController::windowForSharingServicePicker): Deleted.
1193         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem): Deleted.
1194         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem): Deleted.
1195
1196         * WebView/WebHTMLView.mm:
1197         (-[WebHTMLView menuForEvent:]):
1198         * WebView/WebViewData.h:
1199
1200 2015-04-13  Beth Dakin  <bdakin@apple.com>
1201
1202         Add force property to MouseEvents
1203         https://bugs.webkit.org/show_bug.cgi?id=143569
1204         -and corresponding-
1205         rdar://problem/20472954
1206
1207         Reviewed by Darin Adler.
1208
1209         PlatformMouseEvent and MouseEvent now take force parameters.
1210         * WebView/WebFrame.mm:
1211         (-[WebFrame _dragSourceEndedAt:operation:]):
1212         * WebView/WebPDFView.mm:
1213         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1214
1215 2015-04-12  Darin Adler  <darin@apple.com>
1216
1217         [Cocoa] Localizable strings are inconsistent and need to be regenerated
1218         https://bugs.webkit.org/show_bug.cgi?id=143661
1219         rdar://problem/19634388
1220
1221         Reviewed by Dan Bernstein.
1222
1223         * Misc/WebLocalizableStrings.mm:
1224         (LoadWebLocalizedStringsTimerCallback): Moved the comment, useful for programmers but
1225         not for localization, into a C++ source code comment, and made the localizer comment
1226         consistent with the place this localizable string is used for actual localization.
1227         * WebCoreSupport/WebEditorClient.mm:
1228         (undoNameForEditAction): Changed the localizer comments for Delete and Dictation
1229         to match the ones in WebKit2; no need to specify that these are iOS only, and if we do
1230         want to specify that, we should not be using the term PLATFORM(IOS) since there is no
1231         reason for us to expect localizers to understand that terminology. Also added a comment
1232         about the fact that we have two copies of all the localizable strings.
1233
1234 2015-04-11  Yusuke Suzuki  <utatane.tea@gmail.com>
1235
1236         [ES6] Enable Symbol in web pages
1237         https://bugs.webkit.org/show_bug.cgi?id=143375
1238
1239         Reviewed by Ryosuke Niwa.
1240
1241         * WebView/WebPreferencesPrivate.h:
1242
1243 2015-04-08  Sam Weinig  <sam@webkit.org>
1244
1245         Allow LaunchServices to handle URLs on link navigations
1246         <rdar://problem/19446826>
1247         https://bugs.webkit.org/show_bug.cgi?id=143544
1248
1249         Reviewed by Anders Carlsson.
1250
1251         * Configurations/WebKitLegacy.xcconfig:
1252         Link MobileCoreServices.
1253
1254         * WebCoreSupport/WebFrameLoaderClient.h:
1255         * WebCoreSupport/WebFrameLoaderClient.mm:
1256         (shouldTryAppLink):
1257         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1258         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1259         (WebFrameLoaderClient::setUpPolicyListener):
1260         Only let LaunchServices have a crack at the URL if the navigation is:
1261             1) a main frame navigation
1262             2) a result of a user gesture
1263
1264 2015-04-10  Alexey Proskuryakov  <ap@apple.com>
1265
1266         Build fix.
1267
1268         * Misc/WebNSURLExtras.mm: (-[NSString _webkit_unescapedQueryValue]): Ignore a deprecation.
1269
1270 2015-04-10  Eric Carlson  <eric.carlson@apple.com>
1271
1272         [Mac] Refactor MediaPlaybackTarget
1273         https://bugs.webkit.org/show_bug.cgi?id=143571
1274
1275         Reviewed by Jer Noble.
1276
1277         * WebView/WebMediaPlaybackTargetPicker.h:
1278         * WebView/WebMediaPlaybackTargetPicker.mm:
1279         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Take a Ref<MediaPlaybackTarget>&&.
1280
1281 2015-04-09  Andy Estes  <aestes@apple.com>
1282
1283         [Cocoa] Add a HAVE(AVKIT) and use it
1284         https://bugs.webkit.org/show_bug.cgi?id=143593
1285
1286         Reviewed by David Kilzer.
1287
1288         * WebView/WebPreferences.mm:
1289         (+[WebPreferences initialize]): Only set WebKitAVKitEnabled to YES if HAVE(AVKIT).
1290         (-[WebPreferences setAVKitEnabled:]): Only set value for WebKitAVKitEnabled if HAVE(AVKIT).
1291         * WebView/WebView.mm:
1292         (-[WebView _preferencesChanged:]): Only called Settings::setAVKitEnabled() if HAVE(AVKIT).
1293
1294 2015-04-09  Chris Dumez  <cdumez@apple.com>
1295
1296         [WK2][iOS] editorState() should not cause a synchronous layout
1297         https://bugs.webkit.org/show_bug.cgi?id=142536
1298         <rdar://problem/20041506>
1299
1300         Reviewed by Enrica Casucci.
1301
1302         Provide implementation for EditorClient::didChangeSelectionAndUpdateLayout().
1303
1304         * WebCoreSupport/WebEditorClient.h:
1305
1306 2015-04-08  Brent Fulgham  <bfulgham@apple.com>
1307
1308         [Mac] WebKit is not honoring OS preferences for secondary click behaviors
1309         https://bugs.webkit.org/show_bug.cgi?id=143452
1310         <rdar://problem/20437483>
1311
1312         Reviewed by Tim Horton.
1313
1314         We were improperly intercepting contextual menu clicks and passing them through
1315         the mouseDown handler, rather than processing via NSView's menu handling code.
1316
1317         * WebView/WebHTMLView.mm:
1318         (-[WebHTMLView otherMouseDown:]): Treat context menu events the same as the action
1319         menu case, and pass it to AppKit for normal menu processing. 
1320
1321 2015-04-08  Brady Eidson  <beidson@apple.com>
1322
1323         Expose the "Share" menu for links, images, and media.
1324         <rdar://problem/20435340> and https://bugs.webkit.org/show_bug.cgi?id=143502
1325
1326         Reviewed by Tim Horton.
1327
1328         * WebCoreSupport/WebContextMenuClient.h:
1329         * WebCoreSupport/WebContextMenuClient.mm:
1330         (WebContextMenuClient::shareMenuItem): 
1331
1332 2015-04-08  Anders Carlsson  <andersca@apple.com>
1333
1334         Move some ApplicationCache static member functions to ApplicationCacheStorage
1335         https://bugs.webkit.org/show_bug.cgi?id=143524
1336
1337         Reviewed by Antti Koivisto.
1338
1339         * WebCoreSupport/WebApplicationCache.mm:
1340         (+[WebApplicationCache diskUsageForOrigin:]):
1341         (+[WebApplicationCache deleteAllApplicationCaches]):
1342         (+[WebApplicationCache deleteCacheForOrigin:]):
1343
1344 2015-04-08  Chris Dumez  <cdumez@apple.com>
1345
1346         Rename ActiveDOMObject::canSuspend() to canSuspendForPageCache() for clarity
1347         https://bugs.webkit.org/show_bug.cgi?id=143513
1348
1349         Reviewed by Andreas Kling.
1350
1351         Update ScriptExecutionContext::canSuspendActiveDOMObjects() to
1352         canSuspendActiveDOMObjectsForPageCache() as the method was renamed.
1353
1354         * WebView/WebFrame.mm:
1355         (-[WebFrame _cacheabilityDictionary]):
1356
1357 2015-04-07  Anders Carlsson  <andersca@apple.com>
1358
1359         Get rid of uses of ApplicationCacheStorage::singleton() from WebKitLegacy
1360         https://bugs.webkit.org/show_bug.cgi?id=143504
1361
1362         Reviewed by Sam Weinig.
1363
1364         Add a webApplicationCacheStorage() function and use it throughout WebKitLegacy.
1365         In the future, webApplicationCacheStorage will return a custom singleton, but for now
1366         it just returns ApplicationCacheStorage::singleton().
1367
1368         * Misc/WebCache.mm:
1369         (+[WebCache empty]):
1370         * WebCoreSupport/WebApplicationCache.mm:
1371         (+[WebApplicationCache maximumSize]):
1372         (+[WebApplicationCache setMaximumSize:]):
1373         (+[WebApplicationCache defaultOriginQuota]):
1374         (+[WebApplicationCache setDefaultOriginQuota:]):
1375         (+[WebApplicationCache originsWithCache]):
1376         (webApplicationCacheStorage):
1377         * WebCoreSupport/WebApplicationCacheInternal.h: Added.
1378         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
1379         (-[WebApplicationCacheQuotaManager usage]):
1380         (-[WebApplicationCacheQuotaManager quota]):
1381         (-[WebApplicationCacheQuotaManager setQuota:]):
1382         * WebView/WebView.mm:
1383         (WebKitInitializeApplicationCachePathIfNecessary):
1384
1385 2015-04-07  Brady Eidson  <beidson@apple.com>
1386
1387         ContextMenuItem refactoring
1388         https://bugs.webkit.org/show_bug.cgi?id=143485
1389
1390         Reviewed by Beth Dakin.
1391
1392         * WebCoreSupport/WebContextMenuClient.mm:
1393         (WebContextMenuClient::contextMenuItemSelected):
1394
1395 2015-04-06  Chris Dumez  <cdumez@apple.com>
1396
1397         Bing video search result pages are not PageCacheable
1398         https://bugs.webkit.org/show_bug.cgi?id=143463
1399         <rdar://problem/20440916>
1400
1401         Reviewed by Alexey Proskuryakov.
1402
1403         Fix the iOS / WK1 build by using MemoryCache::resourceForRequest()
1404         instead of resourceForUrl().
1405
1406         * Misc/WebCache.mm:
1407         (+[WebCache imageForURL:]):
1408
1409 2015-04-05  Simon Fraser  <simon.fraser@apple.com>
1410
1411         Remove "go ahead and" from comments
1412         https://bugs.webkit.org/show_bug.cgi?id=143421
1413
1414         Reviewed by Darin Adler, Benjamin Poulain.
1415
1416         Remove the phrase "go ahead and" from comments where it doesn't add
1417         anything (which is almost all of them).
1418
1419         * WebView/WebDynamicScrollBarsView.mm:
1420         (-[WebDynamicScrollBarsView updateScrollers]):
1421         * WebView/WebHTMLView.mm:
1422         (-[WebHTMLView insertText:]):
1423
1424 2015-04-02  Brady Eidson  <beidson@apple.com>
1425
1426         Unreviewed: Reland change after rollout.
1427
1428         Expose the "Share" menu for text selections on platforms where it's available.
1429         rdar://problem/20034174 and https://bugs.webkit.org/show_bug.cgi?id=143318
1430
1431         * WebView/WebImmediateActionController.mm: Update for required #include
1432
1433 2015-04-02  Commit Queue  <commit-queue@webkit.org>
1434
1435         Unreviewed, rolling out r182293.
1436         https://bugs.webkit.org/show_bug.cgi?id=143355
1437
1438         Broke GTK and EFL builds. (Requested by bfulgham on #webkit).
1439
1440         Reverted changeset:
1441
1442         "Expose the "Share" menu for text selections on platforms
1443         where it's available."
1444         https://bugs.webkit.org/show_bug.cgi?id=143318
1445         http://trac.webkit.org/changeset/182293
1446
1447 2015-04-02  Brady Eidson  <beidson@apple.com>
1448
1449         Expose the "Share" menu for text selections on platforms where it's available.
1450         rdar://problem/20034174 and https://bugs.webkit.org/show_bug.cgi?id=143318
1451
1452         Reviewed by Sam Weinig.
1453
1454         * WebView/WebImmediateActionController.mm: Update for required #include
1455
1456 2015-04-02  Yusuke Suzuki  <utatane.tea@gmail.com>
1457
1458         Clean up EnumerationMode to easily extend
1459         https://bugs.webkit.org/show_bug.cgi?id=143276
1460
1461         Reviewed by Geoffrey Garen.
1462
1463         Use default EnumerationMode().
1464
1465         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1466         (WebKit::NetscapePluginInstanceProxy::enumerate):
1467
1468 2015-03-31  Simon Fraser  <simon.fraser@apple.com>
1469
1470         Remove scrolling tree dependency on wheel event handler counts, and use fast scrolling even when there are wheel handlers
1471         https://bugs.webkit.org/show_bug.cgi?id=143288
1472
1473         Reviewed by Beth Dakin.
1474
1475         Remove the wheel event counting that Document does, and passes into the scrolling tree.
1476         The ScrollingTree now just uses the non-fast scrollable region to determine when to
1477         fast scroll on pages with wheel event handlers.
1478
1479         * WebCoreSupport/WebChromeClient.h:
1480
1481 2015-03-31  Timothy Horton  <timothy_horton@apple.com>
1482
1483         TextIndicator for <span> inside an <a> only highlights the <span>, should highlight the whole <a>
1484         https://bugs.webkit.org/show_bug.cgi?id=143287
1485         <rdar://problem/20318342>
1486
1487         Reviewed by Beth Dakin.
1488
1489         * WebView/WebImmediateActionController.mm:
1490         (-[WebImmediateActionController _defaultAnimationController]):
1491         Instead of just highlighting the hit element, highlight the whole
1492         element that the link URL comes from.
1493
1494 2015-03-31  Yusuke Suzuki  <utatane.tea@gmail.com>
1495
1496         Clean up Identifier factories to clarify the meaning of StringImpl*
1497         https://bugs.webkit.org/show_bug.cgi?id=143146
1498
1499         Reviewed by Filip Pizlo.
1500
1501         Just change to Identifier::fromString.
1502
1503         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1504         (identifierFromIdentifierRep):
1505         * Plugins/Hosted/ProxyInstance.mm:
1506         (WebKit::ProxyInstance::getPropertyNames):
1507
1508 2015-03-28  Anders Carlsson  <andersca@apple.com>
1509
1510         Remove an unused SPI method from WebKitLegacy
1511         https://bugs.webkit.org/show_bug.cgi?id=143185
1512
1513         Reviewed by Sam Weinig.
1514
1515         * WebView/WebDataSource.mm:
1516         (-[WebDataSource _transferApplicationCache:]): Deleted.
1517         * WebView/WebDataSourcePrivate.h:
1518
1519 2015-03-26  Alex Christensen  <achristensen@webkit.org>
1520
1521         Progress towards CMake on Mac.
1522         https://bugs.webkit.org/show_bug.cgi?id=143112
1523
1524         Reviewed by Chris Dumez.
1525
1526         * WebCoreSupport/WebFrameLoaderClient.h:
1527
1528 2015-03-26  Ryosuke Niwa  <rniwa@webkit.org>
1529
1530         Cursor doesn't change back to pointer when leaving Mail
1531         https://bugs.webkit.org/show_bug.cgi?id=132038
1532
1533         Reviewed by Anders Carlsson.
1534
1535         Fixed the bug by adding a cursor rect and making the primary tracking area update the cursor so that
1536         AppKit will reset the cursor as it leaves the WebView.
1537
1538         We use nil cursor here since we manually update the cursor by calling [NSCursor set].
1539
1540         * WebView/WebHTMLView.mm:
1541         (-[WebHTMLView setDataSource:]): Use NSTrackingCursorUpdate option in creating the primary tracking area.
1542
1543 2015-03-24  Anders Carlsson  <andersca@apple.com>
1544
1545         Fix designated initializer violations
1546         https://bugs.webkit.org/show_bug.cgi?id=143016
1547         rdar://problem/20268858
1548
1549         Reviewed by Dan Bernstein.
1550
1551         Move -[WebBackForwardList initWithBackForwardList:] to the implementation instead of a category since
1552         nobody calls it outside of WebBackForwardList.mm.
1553
1554         * History/WebBackForwardList.mm:
1555         * History/WebBackForwardListInternal.h:
1556
1557 2015-03-23  Alexey Proskuryakov  <ap@apple.com>
1558
1559         REGRESSION (Yosemite): WKView visibility notifications are messed up
1560         https://bugs.webkit.org/show_bug.cgi?id=142945
1561
1562         Reviewed by Tim Horton.
1563
1564         As these notifications cannot be used by NSView subclasses, create a separate
1565         object for observing them.
1566
1567         * WebView/WebView.mm:
1568         (-[WebView _commonInitializationWithFrameName:groupName:]):
1569         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1570         (-[WebView addWindowObserversForWindow:]):
1571         (-[WebView removeWindowObservers]):
1572         (-[WebView viewWillMoveToWindow:]): Make sure that observers are removed even
1573         if -[WebView close] is called manually.
1574         * WebView/WebViewData.h:
1575         * WebView/WebViewData.mm:
1576         (-[WebWindowVisibilityObserver initWithView:]):
1577         (-[WebWindowVisibilityObserver startObserving:]):
1578         (-[WebWindowVisibilityObserver stopObserving:]):
1579         (-[WebWindowVisibilityObserver _windowVisibilityChanged:]):
1580
1581 2015-03-23  Tim Horton  <timothy_horton@apple.com>
1582
1583         Add a share item to the link action menu
1584         https://bugs.webkit.org/show_bug.cgi?id=142961
1585         <rdar://problem/19198374>
1586
1587         Reviewed by Beth Dakin.
1588
1589         * WebView/WebActionMenuController.mm:
1590         (-[WebActionMenuController _defaultMenuItemsForImage]):
1591         (-[WebActionMenuController _defaultMenuItemsForVideo]):
1592         (-[WebActionMenuController _createActionMenuItemForTag:]):
1593         (-[WebActionMenuController _createShareActionMenuItemForTag:withItems:]):
1594         Adopt -[NSMenuItem standardShareMenuItemWithItems].
1595         All of the null-checking is unnecessary as it's impossible to enter
1596         these functions with a null image/etc.
1597         Also, remove a duplicate isDownloadableMedia check for the 'save to downloads' item.
1598
1599         (-[WebActionMenuController _defaultMenuItemsForLink]):
1600         * WebView/WebUIDelegatePrivate.h:
1601         Add a 'Share' item to the link menu.
1602
1603 2015-03-22  Alexey Proskuryakov  <ap@apple.com>
1604
1605         Build fix.
1606
1607         * WebView/WebView.mm: (-[WebView _showPlaybackTargetPicker:hasVideo:]):
1608
1609 2015-03-22  Eric Carlson  <eric.carlson@apple.com>
1610
1611         [Mac] Enable WIRELESS_PLAYBACK_TARGET for WK1
1612         https://bugs.webkit.org/show_bug.cgi?id=142940
1613
1614         Reviewed by Sam Weinig.
1615
1616         * WebCoreSupport/WebChromeClient.h:
1617         * WebCoreSupport/WebChromeClient.mm:
1618         (WebChromeClient::showPlaybackTargetPicker): New.
1619         (WebChromeClient::startingMonitoringPlaybackTargets): New.
1620         (WebChromeClient::stopMonitoringPlaybackTargets): New.
1621
1622         * WebView/WebView.mm:
1623         (-[WebView _close]): Invalidate and free the target picker.
1624         (-[WebView _devicePicker]): New.
1625         (-[WebView _showPlaybackTargetPicker:hasVideo:]): New.
1626         (-[WebView _startingMonitoringPlaybackTargets]): New.
1627         (-[WebView _stopMonitoringPlaybackTargets]): New.
1628
1629         * WebView/WebMediaPlaybackTargetPicker.h:
1630         * WebView/WebMediaPlaybackTargetPicker.mm:
1631         (WebMediaPlaybackTargetPicker::create): New.
1632         (WebMediaPlaybackTargetPicker::WebMediaPlaybackTargetPicker): New.
1633         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker): New.
1634         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): New.
1635         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): New.
1636         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): New.
1637         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange): New.
1638         (WebMediaPlaybackTargetPicker::invalidate): New.
1639         (WebMediaPlaybackTargetPicker::targetPicker): New.
1640
1641         * WebView/WebViewData.h:
1642         (WebMediaPlaybackTargetPicker::~WebMediaPlaybackTargetPicker):
1643         * WebView/WebViewData.mm:
1644         * WebView/WebViewInternal.h:
1645
1646 2015-03-19  Andy Estes  <aestes@apple.com>
1647
1648         [Content Filtering] Add tests for unblock requests
1649         https://bugs.webkit.org/show_bug.cgi?id=142900
1650
1651         Reviewed by Andreas Kling.
1652
1653         * WebCoreSupport/WebFrameLoaderClient.mm:
1654         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): This now happens in PolicyChecker.
1655         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
1656         * WebView/WebFrame.mm:
1657         (-[WebFrame _contentFilterDidHandleNavigationAction:]): Deleted.
1658         * WebView/WebFrameInternal.h: Removed contentFilterUnblockHandler from WebFramePrivate.
1659
1660 2015-03-19  Enrica Casucci  <enrica@apple.com>
1661
1662         <attachment> should put URLs on the pasteboard so that Finder can accept drops.
1663         https://bugs.webkit.org/show_bug.cgi?id=142801
1664         rdar://problem/19982527
1665
1666         Reviewed by Tim Horton.
1667
1668         This patch adds all the necessary support to write attachment elements into
1669         the pasteboard, including the promised type in WK1.
1670
1671         * Misc/WebNSPasteboardExtras.mm:
1672         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
1673         * WebCoreSupport/WebDragClient.h:
1674         * WebCoreSupport/WebDragClient.mm:
1675         (WebDragClient::declareAndWriteAttachment):
1676         * WebView/WebHTMLView.mm:
1677         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
1678         * WebView/WebUIDelegate.h:
1679
1680 2015-03-19  Chris Dumez  <cdumez@apple.com>
1681
1682         Clean up DOMTimer related settings
1683         https://bugs.webkit.org/show_bug.cgi?id=142837
1684
1685         Reviewed by Darin Adler.
1686
1687         Stop setting the DOMTimers' default minimum interval to 4ms as this
1688         is now the default.
1689
1690         * WebView/WebView.mm:
1691         (-[WebView _commonInitializationWithFrameName:groupName:]):
1692
1693 2015-03-17  Conrad Shultz  <conrad_shultz@apple.com>
1694
1695         Ignore some deprecation warnings
1696         https://bugs.webkit.org/show_bug.cgi?id=142813
1697
1698         Reviewed by Mark Rowe.
1699
1700         Fixing the deprecations is tracked by: <rdar://problem/20201450>
1701
1702         * WebCoreSupport/PopupMenuMac.mm:
1703         (PopupMenuMac::populate):
1704
1705 2015-03-17  Tim Horton  <timothy_horton@apple.com>
1706
1707         Cannot invoke action menus anymore
1708         https://bugs.webkit.org/show_bug.cgi?id=142797
1709         <rdar://problem/20032670>
1710
1711         * WebView/WebHTMLView.mm:
1712         (-[WebHTMLView otherMouseDown:]):
1713         Need a respondsToSelector check.
1714
1715 2015-03-17  Tim Horton  <timothy_horton@apple.com>
1716
1717         Fix the iOS build
1718
1719         * WebView/WebHTMLView.mm:
1720
1721 2015-03-17  Tim Horton  <timothy_horton@apple.com>
1722
1723         Cannot invoke action menus anymore
1724         https://bugs.webkit.org/show_bug.cgi?id=142797
1725         <rdar://problem/20032670>
1726
1727         Reviewed by Beth Dakin.
1728
1729         * WebView/WebHTMLView.mm:
1730         (-[WebHTMLView otherMouseDown:]):
1731         Don't override otherMouseDown: if the event would make an action menu.
1732
1733 2015-03-16  Ryosuke Niwa  <rniwa@webkit.org>
1734
1735         Enable ES6 classes by default
1736         https://bugs.webkit.org/show_bug.cgi?id=142774
1737
1738         Reviewed by Gavin Barraclough.
1739
1740         * Configurations/FeatureDefines.xcconfig:
1741
1742 2015-03-16  Brent Fulgham  <bfulgham@apple.com>
1743
1744         WebKit1 Clients Are Not Reliably Repainted
1745         https://bugs.webkit.org/show_bug.cgi?id=142750
1746         <rdar://problem/20042453>
1747
1748         Reviewed by Simon Fraser.
1749
1750         Check with the FrameView to see if we are in an immediately paintable state. If we are not,
1751         mark the view as dirty once the _immediateScrollToPoint operation is complete so that the
1752         region will be painted properly.
1753
1754         * WebView/WebClipView.mm:
1755         (-[WebClipView _immediateScrollToPoint:]): 
1756
1757 2015-03-16  Conrad Shultz  <conrad_shultz@apple.com>
1758
1759         Allow clients to selectively disable plug-ins
1760         https://bugs.webkit.org/show_bug.cgi?id=142506
1761
1762         Reviewed by Anders Carlsson.
1763
1764         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
1765         from the page). As part of this:
1766
1767         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
1768            set of plug-ins.
1769
1770         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
1771            down the stack.
1772
1773         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
1774            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
1775
1776         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
1777
1778         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
1779         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
1780
1781         * Plugins/WebBasePluginPackage.mm:
1782         (-[WebBasePluginPackage getPluginInfoFromPLists]):
1783         Set new members in PluginInfo.
1784
1785         * Plugins/WebNetscapePluginPackage.mm:
1786         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
1787         Set new members in PluginInfo.
1788
1789         * WebCoreSupport/WebPlatformStrategies.h:
1790         * WebCoreSupport/WebPlatformStrategies.mm:
1791         (WebPlatformStrategies::getWebVisiblePluginInfo):
1792         Override to wrap getPluginInfo().
1793         (WebPlatformStrategies::setPluginLoadClientPolicy):
1794         Override to do nothing.
1795         (WebPlatformStrategies::clearPluginClientPolicies):
1796         Ditto.
1797
1798         * WebView/WebFrame.mm:
1799         (-[WebFrame _canProvideDocumentSource]):
1800         Update to reflect function rename.
1801
1802 2015-03-14  Dean Jackson  <dino@apple.com>
1803
1804         Feature flag for Animations Level 2
1805         https://bugs.webkit.org/show_bug.cgi?id=142699
1806         <rdar://problem/20165097>
1807
1808         Reviewed by Brent Fulgham.
1809
1810         Add ENABLE_CSS_ANIMATIONS_LEVEL_2 and a runtime flag animationTriggersEnabled.
1811
1812         * Configurations/FeatureDefines.xcconfig:
1813
1814 2015-03-13  Commit Queue  <commit-queue@webkit.org>
1815
1816         Unreviewed, rolling out r181483.
1817         https://bugs.webkit.org/show_bug.cgi?id=142688
1818
1819         Caused use-after-free on many tests (Requested by ap on
1820         #webkit).
1821
1822         Reverted changeset:
1823
1824         "Allow clients to selectively disable plug-ins"
1825         https://bugs.webkit.org/show_bug.cgi?id=142506
1826         http://trac.webkit.org/changeset/181483
1827
1828 2015-03-13  Eric Carlson  <eric.carlson@apple.com>
1829
1830         [Mac] Enable WIRELESS_PLAYBACK_TARGET
1831         https://bugs.webkit.org/show_bug.cgi?id=142635
1832
1833         Reviewed by Darin Adler.
1834
1835         * Configurations/FeatureDefines.xcconfig:
1836
1837 2015-03-10  Conrad Shultz  <conrad_shultz@apple.com>
1838
1839         Allow clients to selectively disable plug-ins
1840         https://bugs.webkit.org/show_bug.cgi?id=142506
1841
1842         Reviewed by Anders Carlsson.
1843
1844         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
1845         from the page). As part of this:
1846
1847         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
1848            set of plug-ins.
1849
1850         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
1851            down the stack.
1852
1853         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
1854            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
1855
1856         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
1857
1858         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
1859         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
1860
1861         * Plugins/WebBasePluginPackage.mm:
1862         (-[WebBasePluginPackage getPluginInfoFromPLists]):
1863         Set new members in PluginInfo.
1864
1865         * Plugins/WebNetscapePluginPackage.mm:
1866         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
1867         Set new members in PluginInfo.
1868
1869         * WebCoreSupport/WebPlatformStrategies.h:
1870         * WebCoreSupport/WebPlatformStrategies.mm:
1871         (WebPlatformStrategies::getWebVisiblePluginInfo):
1872         Override to wrap getPluginInfo().
1873         (WebPlatformStrategies::setPluginLoadClientPolicy):
1874         Override to do nothing.
1875         (WebPlatformStrategies::clearPluginClientPolicies):
1876         Ditto.
1877
1878         * WebView/WebFrame.mm:
1879         (-[WebFrame _canProvideDocumentSource]):
1880         Update to reflect function rename.
1881
1882 2015-03-10  Sam Weinig  <sam@webkit.org>
1883
1884         Allow adding a button in input elements for auto fill related functionality
1885         <rdar://problem/19782066>
1886         https://bugs.webkit.org/show_bug.cgi?id=142564
1887
1888         Reviewed by Anders Carlsson.
1889
1890         * DOM/WebDOMOperations.mm:
1891         (-[DOMHTMLInputElement _setAutofilled:]):
1892         Update for consistent spelling of AutoFill.
1893
1894 2015-03-10  Timothy Horton  <timothy_horton@apple.com>
1895
1896         Fix the build
1897
1898         * History/WebHistory.mm:
1899         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1900         * WebCoreSupport/WebFrameLoaderClient.mm:
1901         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1902
1903 2015-03-10  Tim Horton  <timothy_horton@apple.com>
1904
1905         Fix the Mac build with a newer compiler
1906
1907         * Plugins/WebPluginController.mm:
1908         (WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_):
1909         (WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_):
1910
1911 2015-03-09  David Kilzer  <ddkilzer@apple.com>
1912
1913         [iOS] Fix build when compiling with dead code stripping disabled
1914         <http://webkit.org/b/142467>
1915
1916         Reviewed by Simon Fraser.
1917
1918         * Configurations/WebKitLegacy.xcconfig:
1919         (EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*]): Disable mig code
1920         generation and compilation for out-of-process plugin support.
1921         This was never used on iOS.
1922
1923 2015-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
1924
1925         [iOS] SVG fonts are garbled
1926         https://bugs.webkit.org/show_bug.cgi?id=142377
1927
1928         Reviewed by Simon Fraser.
1929
1930         * Configurations/FeatureDefines.xcconfig:
1931
1932 2015-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
1933
1934         Hide Promise with runtime flags under Cocoa JSContext API
1935         https://bugs.webkit.org/show_bug.cgi?id=141965
1936
1937         Reviewed by Filip Pizlo.
1938
1939         Add new JSC runtime flag, PromiseDisabled.
1940
1941         * WebView/WebPreferencesPrivate.h:
1942
1943 2015-03-03  Andy Estes  <aestes@apple.com>
1944
1945         [Content Filtering] Separate unblock handling into its own class
1946         https://bugs.webkit.org/show_bug.cgi?id=142251
1947
1948         Reviewed by Andreas Kling.
1949         
1950         Adopted ContentFilterUnblockHandler.
1951
1952         * WebCoreSupport/WebFrameLoaderClient.h:
1953         * WebCoreSupport/WebFrameLoaderClient.mm:
1954         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1955         * WebView/WebFrame.mm:
1956         (-[WebFrame _contentFilterDidHandleNavigationAction:]):
1957         * WebView/WebFrameInternal.h:
1958
1959 2015-03-03  Chris Dumez  <cdumez@apple.com>
1960
1961         Access ApplicationCacheStorage global instance via singleton() static member function
1962         https://bugs.webkit.org/show_bug.cgi?id=142239
1963
1964         Reviewed by Anders Carlsson.
1965
1966         Access ApplicationCacheStorage global instance via singleton() static
1967         member function as per WebKit coding style.
1968
1969 2015-03-02  Jer Noble  <jer.noble@apple.com>
1970
1971         [WK1][WK2][Mac] Fullscreen animation is incorrect when page is scaled.
1972         https://bugs.webkit.org/show_bug.cgi?id=142121
1973
1974         Reviewed by Simon Fraser.
1975
1976         Fullscreening a page with a non-1 scale would result in that scale being applied to the
1977         fullscreen content, breaking fullscreen mode. Set the page scale to 1 when entering
1978         fullscreen and reset it to the original value when exiting fullscreen.
1979
1980         * WebView/WebFullScreenController.h:
1981         * WebView/WebFullScreenController.mm:
1982         (-[WebFullScreenController enterFullScreen:]): Set the page scale to 1.
1983         (-[WebFullScreenController finishedExitFullScreenAnimation:]): Reset the page
1984                 scale to the original value.
1985         * WebView/WebView.mm:
1986         (-[WebView _supportsFullScreenForElement:withKeyboard:]): Drive-by fix. Check the
1987                 WebView's own preferences to see if fullscreen mode is enabled, rather than
1988                 the global object's.
1989
1990 2015-03-01  Chris Dumez  <cdumez@apple.com>
1991
1992         Make NotificationCenter / Notification suspendable
1993         https://bugs.webkit.org/show_bug.cgi?id=142117
1994         <rdar://problem/19923085>
1995
1996         Reviewed by Andreas Kling.
1997
1998         Provide implementation for NotificationClient::hasPendingPermissionRequests().
1999         The implementation is very simplistic. it will only return false if no
2000         request for permission for ever made. This is because there is currently no
2001         easy way to figure out if a permission request is pending or not.
2002
2003         * WebCoreSupport/WebNotificationClient.h:
2004         * WebCoreSupport/WebNotificationClient.mm:
2005         (WebNotificationClient::requestPermission):
2006         (WebNotificationClient::hasPendingPermissionRequests):
2007
2008 2015-02-28  Simon Fraser  <simon.fraser@apple.com>
2009
2010         Viewport units should not dirty style just before we do layout
2011         https://bugs.webkit.org/show_bug.cgi?id=141682
2012
2013         Reviewed by Zalan Bujtas.
2014
2015         * WebView/WebFrameView.mm:
2016         (-[WebFrameView _frameSizeChanged]):
2017
2018 2015-02-26  Chris Dumez  <cdumez@apple.com>
2019
2020         Rename DatabaseManager::manager() to DatabaseManager::singleton()
2021         https://bugs.webkit.org/show_bug.cgi?id=142054
2022
2023         Reviewed by Ryosuke Niwa.
2024
2025         Rename DatabaseManager::manager() to DatabaseManager::singleton() as
2026         per coding style and use WTF::NeverDestroyed.
2027
2028         * Storage/WebDatabaseManager.mm:
2029         (-[WebDatabaseManager init]):
2030         (-[WebDatabaseManager origins]):
2031         (-[WebDatabaseManager databasesWithOrigin:]):
2032         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
2033         (-[WebDatabaseManager deleteAllDatabases]):
2034         (-[WebDatabaseManager deleteOrigin:]):
2035         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2036         * Storage/WebDatabaseQuotaManager.mm:
2037         (-[WebDatabaseQuotaManager usage]):
2038         (-[WebDatabaseQuotaManager quota]):
2039         (-[WebDatabaseQuotaManager setQuota:]):
2040         * WebCoreSupport/WebSecurityOrigin.mm:
2041         (-[WebSecurityOrigin usage]):
2042         (-[WebSecurityOrigin quota]):
2043         (-[WebSecurityOrigin setQuota:]):
2044         * WebView/WebFrame.mm:
2045         (-[WebFrame _cacheabilityDictionary]):
2046         * WebView/WebView.mm:
2047         (-[WebView _preferencesChanged:]):
2048
2049 2015-02-26  Myles C. Maxfield  <mmaxfield@apple.com>
2050
2051         [Mac] [iOS] Parsing support for -apple-trailing-word
2052         https://bugs.webkit.org/show_bug.cgi?id=141939
2053
2054         Reviewed by Andreas Kling.
2055
2056         * Configurations/FeatureDefines.xcconfig:
2057
2058 2015-02-24  Commit Queue  <commit-queue@webkit.org>
2059
2060         Unreviewed, rolling out r180599.
2061         https://bugs.webkit.org/show_bug.cgi?id=141998
2062
2063         Lots of new test failures (Requested by smfr on #webkit).
2064
2065         Reverted changeset:
2066
2067         "Parsing support for -webkit-trailing-word"
2068         https://bugs.webkit.org/show_bug.cgi?id=141939
2069         http://trac.webkit.org/changeset/180599
2070
2071 2015-02-24  Myles C. Maxfield  <mmaxfield@apple.com>
2072
2073         [Mac] [iOS] Parsing support for -apple-trailing-word
2074         https://bugs.webkit.org/show_bug.cgi?id=141939
2075
2076         Reviewed by Andreas Kling.
2077
2078         * Configurations/FeatureDefines.xcconfig:
2079
2080 2015-02-24  Yusuke Suzuki  <utatane.tea@gmail.com>
2081
2082         REGRESSION(r179429): Can't type comments in Facebook
2083         https://bugs.webkit.org/show_bug.cgi?id=141859
2084
2085         Reviewed by Brent Fulgham.
2086
2087         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
2088         Private API, javaScriptExperimentsEnabled is dropped.
2089
2090         * Misc/WebNSDictionaryExtras.h:
2091         * Misc/WebNSDictionaryExtras.m:
2092         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
2093         * WebKit.order:
2094         * WebView/WebPreferenceKeysPrivate.h:
2095         * WebView/WebPreferences.mm:
2096         (+[WebPreferences initialize]):
2097         (-[WebPreferences _setUnsignedIntValue:forKey:]):
2098         (-[WebPreferences javaScriptRuntimeFlags]):
2099         (-[WebPreferences setJavaScriptRuntimeFlags:]):
2100         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
2101         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
2102         * WebView/WebPreferencesPrivate.h:
2103         * WebView/WebView.mm:
2104         (-[WebView _preferencesChanged:]):
2105
2106 2015-02-23  Commit Queue  <commit-queue@webkit.org>
2107
2108         Unreviewed, rolling out r180547 and r180550.
2109         https://bugs.webkit.org/show_bug.cgi?id=141957
2110
2111         Broke 10 Windows tests. (Requested by bfulgham_ on #webkit).
2112
2113         Reverted changesets:
2114
2115         "REGRESSION(r179429): Can't type comments in Facebook"
2116         https://bugs.webkit.org/show_bug.cgi?id=141859
2117         http://trac.webkit.org/changeset/180547
2118
2119         "Constructor returning null should construct an object instead
2120         of null"
2121         https://bugs.webkit.org/show_bug.cgi?id=141640
2122         http://trac.webkit.org/changeset/180550
2123
2124 2015-02-23  Ryosuke Niwa  <rniwa@webkit.org>
2125
2126         Disable font loading events until our implementation gets updated to match the latest spec
2127         https://bugs.webkit.org/show_bug.cgi?id=141938
2128
2129         Reviewed by Andreas Kling.
2130
2131         * Configurations/FeatureDefines.xcconfig:
2132
2133 2015-02-23  Yusuke Suzuki  <utatane.tea@gmail.com>
2134
2135         REGRESSION(r179429): Can't type comments in Facebook
2136         https://bugs.webkit.org/show_bug.cgi?id=141859
2137
2138         Reviewed by Geoffrey Garen.
2139
2140         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
2141         Private API, javaScriptExperimentsEnabled is dropped.
2142
2143         * Misc/WebNSDictionaryExtras.h:
2144         * Misc/WebNSDictionaryExtras.m:
2145         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
2146         * WebKit.order:
2147         * WebView/WebPreferenceKeysPrivate.h:
2148         * WebView/WebPreferences.mm:
2149         (+[WebPreferences initialize]):
2150         (-[WebPreferences _setUnsignedIntValue:forKey:]):
2151         (-[WebPreferences javaScriptRuntimeFlags]):
2152         (-[WebPreferences setJavaScriptRuntimeFlags:]):
2153         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
2154         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
2155         * WebView/WebPreferencesPrivate.h:
2156         * WebView/WebView.mm:
2157         (-[WebView _preferencesChanged:]):
2158
2159 2015-02-20  Eric Carlson  <eric.carlson@apple.com>
2160
2161         [iOS] cleanup AirPlay code
2162         https://bugs.webkit.org/show_bug.cgi?id=141811
2163
2164         Reviewed by Jer Noble.
2165
2166         * Configurations/FeatureDefines.xcconfig: IOS_AIRPLAY -> WIRELESS_PLAYBACK_TARGET.
2167
2168 2015-02-18  Timothy Horton  <timothy_horton@apple.com>
2169
2170         Adopt WebCore::IOSurface in ImageBuffer
2171         https://bugs.webkit.org/show_bug.cgi?id=141751
2172
2173         Reviewed by Simon Fraser.
2174
2175         * WebCoreSupport/WebSystemInterface.mm:
2176         (InitWebCoreSystemInterface):
2177         Remove old WKSI IOSurface-related functions.
2178
2179 2015-02-18  Commit Queue  <commit-queue@webkit.org>
2180
2181         Unreviewed, rolling out r180286.
2182         https://bugs.webkit.org/show_bug.cgi?id=141766
2183
2184         Caused >50 crashed LayoutTests (Requested by jernoble on
2185         #webkit).
2186
2187         Reverted changeset:
2188
2189         "Page::userContentController() should return a reference, not
2190         a pointer"
2191         https://bugs.webkit.org/show_bug.cgi?id=141764
2192         http://trac.webkit.org/changeset/180286
2193
2194 2015-02-18  Brady Eidson  <beidson@apple.com>
2195
2196         Page::userContentController() should return a reference, not a pointer
2197         https://bugs.webkit.org/show_bug.cgi?id=141764
2198
2199         Reviewed by Jer Noble.
2200
2201         * WebView/WebView.mm:
2202         (-[WebView setGroupName:]):
2203
2204 2015-02-18  Chris Dumez  <cdumez@apple.com>
2205
2206         Access FontCache global instance via singleton() static member function
2207         https://bugs.webkit.org/show_bug.cgi?id=141726
2208
2209         Reviewed by Daniel Bates.
2210
2211         Access FontCache global instance via singleton() static member function,
2212         as per coding style.
2213
2214 2015-02-17  Chris Dumez  <cdumez@apple.com>
2215
2216         Access MemoryPressureHandler global instance via a singleton() static member function
2217         https://bugs.webkit.org/show_bug.cgi?id=141691
2218
2219         Reviewed by Andreas Kling.
2220
2221         Access MemoryPressureHandler global instance via a singleton() static
2222         member function.
2223
2224         * WebView/WebView.mm:
2225         (-[WebView _commonInitializationWithFrameName:groupName:]):
2226         (+[WebView registerForMemoryNotifications]):
2227         (+[WebView _isUnderMemoryPressure]):
2228         (+[WebView _clearMemoryPressure]):
2229         (+[WebView _shouldWaitForMemoryClearMessage]):
2230         (WebInstallMemoryPressureHandler):
2231
2232 2015-02-15  Sam Weinig  <sam@webkit.org>
2233
2234         Add experimental <attachment> element support
2235         https://bugs.webkit.org/show_bug.cgi?id=141626
2236
2237         Reviewed by Tim Horton.
2238
2239         * Configurations/FeatureDefines.xcconfig:
2240
2241 2015-02-14  Joseph Pecoraro  <pecoraro@apple.com>
2242
2243         [Mac] Possible DDActionContext leaks, RetainPtr cleanup
2244         https://bugs.webkit.org/show_bug.cgi?id=141613
2245
2246         Reviewed by Tim Horton.
2247
2248         * WebCoreSupport/WebEditorClient.mm:
2249         (WebEditorClient::WebEditorClient):
2250         Avoid unnecessary retain/autorelease by adopting.
2251
2252         * WebView/WebActionMenuController.mm:
2253         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
2254         Adopt the allocated object.
2255
2256 2015-02-09  Brian J. Burg  <burg@cs.washington.edu>
2257
2258         Web Inspector: remove some unnecessary Inspector prefixes from class names in Inspector namespace
2259         https://bugs.webkit.org/show_bug.cgi?id=141372
2260
2261         Reviewed by Joseph Pecoraro.
2262
2263         * WebCoreSupport/WebInspectorClient.mm:
2264         (-[WebInspectorWindowController destroyInspectorView:]):
2265
2266 2015-02-14  Alexey Proskuryakov  <ap@apple.com>
2267
2268         rel="noreferrer" should make window.opener null
2269         https://bugs.webkit.org/show_bug.cgi?id=141579
2270
2271         Reviewed by Darin Adler.
2272
2273         * WebView/WebPDFView.mm:
2274         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Updated for a new WebCore
2275         function signature. There is no rel="noreferrer" in PDF, so we can just always allow.
2276
2277 2015-02-05  Youenn Fablet  <youenn.fablet@crf.canon.fr> and Xabier Rodriguez Calvar <calvaris@igalia.com>
2278
2279         [Streams API] Implement a barebone ReadableStream interface
2280         https://bugs.webkit.org/show_bug.cgi?id=141045
2281
2282         Reviewed by Benjamin Poulain.
2283
2284         * Configurations/FeatureDefines.xcconfig:
2285
2286 2015-02-03  Enrica Casucci  <enrica@apple.com>
2287
2288         [iOS] Add support for deleteFromInputWithFlags.
2289         https://bugs.webkit.org/show_bug.cgi?id=141216
2290         rdar://problem/19130081
2291
2292         Reviewed by Benjamin Poulain.
2293
2294         Adopts the new method as soon as it is available.
2295         The patch also removes some obsolete code used for staging.
2296
2297         * WebView/WebHTMLView.mm:
2298         (-[WebHTMLView _handleEditingKeyEvent:]):
2299
2300 2015-02-02  Chris Dumez  <cdumez@apple.com>
2301
2302         Access MemoryCache singleton using MemoryCache::singleton()
2303         https://bugs.webkit.org/show_bug.cgi?id=141104
2304
2305         Reviewed by Andreas Kling.
2306
2307         Access MemoryCache singleton using MemoryCache::singleton() static
2308         member function, instead of a free function, as per the recent
2309         coding style discussion on WebKit-dev.
2310
2311 2015-02-01  Chris Dumez  <cdumez@apple.com>
2312
2313         Use more references in HistoryItem
2314         https://bugs.webkit.org/show_bug.cgi?id=141133
2315
2316         Reviewed by Andreas Kling.
2317
2318         Use more references in HistoryItem instead of pointers.
2319
2320 2015-01-31  Sam Weinig  <sam@webkit.org>
2321
2322         Remove even more Mountain Lion support
2323         https://bugs.webkit.org/show_bug.cgi?id=141124
2324
2325         Reviewed by Alexey Proskuryakov.
2326
2327         * Configurations/Base.xcconfig:
2328         * Configurations/DebugRelease.xcconfig:
2329         * Configurations/FeatureDefines.xcconfig:
2330         * Configurations/Version.xcconfig:
2331         * Configurations/WebKitLegacy.xcconfig:
2332
2333 2015-01-30  Eric Carlson  <eric.carlson@apple.com>
2334
2335         Remove MediaPlayerProxy.h
2336         https://bugs.webkit.org/show_bug.cgi?id=141087
2337
2338         Reviewed by Sam Weinig.
2339
2340         * MigrateHeaders.make: Don't need to copy MediaPlayerProxy.h.
2341         * Plugins/WebPluginController.mm: Don't include MediaPlayerProxy.h.
2342
2343 2015-01-30  Chris Dumez  <cdumez@apple.com>
2344
2345         Rename shared() static member functions to singleton() for singleton classes.
2346         https://bugs.webkit.org/show_bug.cgi?id=141088
2347
2348         Reviewed by Ryosuke Niwa and Benjamin Poulain.
2349
2350         Rename shared() static member functions to singleton() for singleton
2351         classes as per the recent coding style change.
2352
2353 2015-01-29  Beth Dakin  <bdakin@apple.com>
2354
2355         Remove more Mountain Lion code from WebKit
2356         https://bugs.webkit.org/show_bug.cgi?id=141050
2357
2358         Reviewed by Anders Carlsson.
2359
2360         * History/WebHistory.mm:
2361         (getDayBoundaries):
2362         * Panels/WebAuthenticationPanel.m:
2363         (-[WebAuthenticationPanel cancel:]):
2364         (-[WebAuthenticationPanel logIn:]):
2365         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]):
2366         * WebCoreSupport/WebSystemInterface.mm:
2367         (InitWebCoreSystemInterface):
2368         * WebView/WebFrameView.mm:
2369         * WebView/WebPreferences.mm:
2370         (+[WebPreferences initialize]):
2371         (needsScreenFontsEnabledQuirk):
2372         * WebView/WebView.mm:
2373         (+[WebView registerForMemoryNotifications]):
2374         (-[WebView _preferencesChanged:]):
2375         (+[WebView initialize]):
2376         (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
2377         (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
2378         (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
2379
2380 2015-01-29  Sam Weinig  <sam@webkit.org>
2381
2382         Remove support for screen font substitution
2383         https://bugs.webkit.org/show_bug.cgi?id=141038
2384
2385         Reviewed by Tim Horton.
2386
2387         * Misc/WebKitNSStringExtras.mm:
2388         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2389         (-[NSString _web_widthWithFont:]):
2390         * Misc/WebStringTruncator.mm:
2391         (fontFromNSFont):
2392         Update for new signature of the FontPlatformData constructor, which no longer cares about
2393         whether to use printer fonts.
2394
2395         * WebView/WebPreferenceKeysPrivate.h:
2396         Remove the WebKitScreenFontSubstitutionEnabledKey key.
2397
2398         * WebView/WebPreferences.mm:
2399         (+[WebPreferences initialize]):
2400         Remove support for WebKitScreenFontSubstitutionEnabledKey.
2401
2402         (needsScreenFontsEnabledQuirk): Deleted.
2403         Remove support for the Mountain Lion era 1-Password quirk.
2404
2405         (-[WebPreferences screenFontSubstitutionEnabled]): Deleted.
2406         (-[WebPreferences setScreenFontSubstitutionEnabled:]): Deleted.
2407         * WebView/WebPreferencesPrivate.h:
2408         * WebView/WebView.mm:
2409         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2410         (-[WebView _preferencesChanged:]):
2411         Remove support for the screen font substitution setting.
2412
2413 2015-01-29  Chris Dumez  <cdumez@apple.com>
2414
2415         Clean up / modernize PageCache class
2416         https://bugs.webkit.org/show_bug.cgi?id=141009
2417
2418         Reviewed by Darin Adler.
2419
2420         Clean up / modernize PageCache class.
2421
2422         * History/WebBackForwardList.mm:
2423         (-[WebBackForwardList pageCacheSize]):
2424         * WebView/WebView.mm:
2425         (-[WebView _loadBackForwardListFromOtherView:]):
2426         (-[WebView goToBackForwardItem:]):
2427         (+[WebView _setCacheModel:]):
2428
2429 2015-01-28  Beth Dakin  <bdakin@apple.com>
2430
2431         Remove Mountain Lion code from WebKit and WebKit2
2432         https://bugs.webkit.org/show_bug.cgi?id=141010
2433
2434         Reviewed by Sam Weinig.
2435
2436         * DOM/WebDOMOperations.mm:
2437         (toNSEventPhase):
2438         * WebView/WebHTMLView.mm:
2439         (isQuickLookEvent):
2440
2441 2015-01-28  Dana Burkart  <dburkart@apple.com>
2442
2443         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
2444         https://bugs.webkit.org/show_bug.cgi?id=136765
2445
2446         Reviewed by Alexey Proskuryakov.
2447
2448         * Configurations/Base.xcconfig:
2449         * Configurations/DebugRelease.xcconfig:
2450
2451 2015-01-28  Chris Dumez  <cdumez@apple.com>
2452
2453         Fix typo in markPagesForVistedLinkStyleRecalc()
2454         https://bugs.webkit.org/show_bug.cgi?id=140977
2455
2456         Reviewed by Darin Adler.
2457
2458         * WebCoreSupport/WebVisitedLinkStore.mm:
2459         (WebVisitedLinkStore::removeAllVisitedLinks):
2460         (WebVisitedLinkStore::removeVisitedLink):
2461         (WebVisitedLinkStore::addVisitedLinkHash):
2462
2463 2015-01-28  Chris Dumez  <cdumez@apple.com>
2464
2465         Rename pageCache() to PageCache::shared() and return a reference
2466         https://bugs.webkit.org/show_bug.cgi?id=140983
2467
2468         Reviewed by Andreas Kling.
2469
2470         Rename pageCache() to PageCache::shared() as this is a singleton class
2471         and have it return a reference instead of a pointer.
2472
2473         * History/WebBackForwardList.mm:
2474         (-[WebBackForwardList pageCacheSize]):
2475         * Misc/WebCoreStatistics.mm:
2476         (+[WebCoreStatistics cachedPageCount]):
2477         (+[WebCoreStatistics cachedFrameCount]):
2478         * WebCoreSupport/WebVisitedLinkStore.mm:
2479         (WebVisitedLinkStore::removeAllVisitedLinks):
2480         (WebVisitedLinkStore::removeVisitedLink):
2481         (WebVisitedLinkStore::addVisitedLinkHash):
2482         * WebView/WebView.mm:
2483         (+[WebView _setCacheModel:]):
2484
2485 2015-01-27  Alexey Proskuryakov  <ap@apple.com>
2486
2487         More build fixes for newer clang.
2488
2489         Rubber-stamped by Anders Carlsson.
2490
2491         Marked a deprecated accessibility method as such.
2492
2493         * WebView/WebFrame.mm:
2494         (-[WebFrame accessibilityRoot]):
2495
2496 2015-01-27  Beth Dakin  <bdakin@apple.com>
2497
2498         Immediate action gesture recognizer still doesn't work well with IB
2499         https://bugs.webkit.org/show_bug.cgi?id=140967
2500         -and corresponding-
2501         rdar://problem/19621509
2502
2503         Reviewed by Tim Horton.
2504
2505         We should add (or remove) the gesture recognizer in viewDidMoveToWindow because 
2506         initWithFrame it too early and IB might mess with it.
2507         * WebView/WebImmediateActionController.h:
2508         * WebView/WebImmediateActionController.mm:
2509         (-[WebImmediateActionController immediateActionRecognizer]):
2510         * WebView/WebView.mm:
2511         (-[WebView _commonInitializationWithFrameName:groupName:]):
2512         (-[WebView viewDidMoveToWindow]):
2513
2514 2015-01-27  Dan Bernstein  <mitz@apple.com>
2515
2516         Fixed building projects that import WebView.h with WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS.
2517
2518         Rubber-stamped by Anders Carlsson.
2519
2520         * WebView/WebView.h: Added forward declarations of the protocols.
2521
2522 2015-01-26  Anders Carlsson  <andersca@apple.com>
2523
2524         Make it easy to test enabling formal delegate protocols
2525         https://bugs.webkit.org/show_bug.cgi?id=140892
2526
2527         Reviewed by Dan Bernstein.
2528
2529         Add an WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS define that controls whether delegates should be formal protocols.
2530
2531         * Misc/WebDownload.h:
2532         * WebView/WebFrameLoadDelegate.h:
2533         * WebView/WebPolicyDelegate.h:
2534         * WebView/WebResourceLoadDelegate.h:
2535         * WebView/WebUIDelegate.h:
2536         * WebView/WebView.h:
2537
2538 2015-01-26  Chris Dumez  <cdumez@apple.com>
2539
2540         Rename Document::body() to Document::bodyOrFrameset() for clarity
2541         https://bugs.webkit.org/show_bug.cgi?id=140902
2542
2543         Reviewed by Andreas Kling.
2544
2545         Rename Document::body() to Document::bodyOrFrameset() for clarity. This
2546         method does not necessarily return an HTMLBodyElement, it can also
2547         return a frameset as per the specification:
2548         http://www.w3.org/TR/html5/dom.html#dom-tree-accessors
2549
2550         This method is often misused internally (the caller is only interested
2551         in the <body> element). I will fix these instances in a follow-up patch,
2552         this patch is only renaming mechanically.
2553
2554 2015-01-26  Chris Dumez  <cdumez@apple.com>
2555
2556         First argument to DOM traversal functions should be a reference
2557         https://bugs.webkit.org/show_bug.cgi?id=140895
2558
2559         Reviewed by Antti Koivisto.
2560
2561         First argument to DOM traversal functions should be a reference instead
2562         of a pointer as it is dereferenced without null-check.
2563
2564 2015-01-26  Myles C. Maxfield  <mmaxfield@apple.com>
2565
2566         [iOS] [SVG -> OTF Converter] Flip the switch off on iOS
2567         https://bugs.webkit.org/show_bug.cgi?id=140860
2568
2569         Reviewed by Darin Adler.
2570
2571         The fonts it makes are grotesque. (See what I did there? Typographic
2572         humor is the best humor.)
2573
2574         * Configurations/FeatureDefines.xcconfig:
2575
2576 2015-01-23  Timothy Horton  <timothy_horton@apple.com>
2577
2578         QLPreviewMenuItem popovers don't close when the page scrolls
2579         https://bugs.webkit.org/show_bug.cgi?id=140806
2580         <rdar://problem/19555618>
2581
2582         Reviewed by Beth Dakin.
2583
2584         Now that QLPreviewMenuItem's popover doesn't eat scrolls, we need to dismiss it if the page scrolls.
2585
2586         * WebView/WebHTMLView.mm:
2587         (-[WebHTMLView scrollWheel:scrollWheel:]):
2588         Send scrollWheel along to WebImmediateActionController.
2589
2590         * WebView/WebImmediateActionController.h:
2591         * WebView/WebImmediateActionController.mm:
2592         (-[WebImmediateActionController webView:didHandleScrollWheel:]):
2593         (-[WebImmediateActionController _clearImmediateActionState]):
2594         (-[WebImmediateActionController _defaultAnimationController]):
2595         Keep track of the active QLPreviewMenuItem, and close it upon scroll.
2596
2597 2015-01-23  Timothy Horton  <timothy_horton@apple.com>
2598
2599         Infinite recursion in _clearImmediateActionState
2600         https://bugs.webkit.org/show_bug.cgi?id=140807
2601         <rdar://problem/19571601>
2602
2603         Reviewed by Anders Carlsson.
2604
2605         * WebView/WebImmediateActionController.mm:
2606         (-[WebImmediateActionController _clearImmediateActionState]):
2607         Use this opportunity to bring identical code to WebKit1, to avoid
2608         getting DataDetectors stuck when an immediate action is canceled.
2609
2610 2015-01-22  Ryosuke Niwa  <rniwa@webkit.org>
2611
2612         Add a build flag for ES6 class syntax
2613         https://bugs.webkit.org/show_bug.cgi?id=140760
2614
2615         Reviewed by Michael Saboff.
2616
2617         * Configurations/FeatureDefines.xcconfig:
2618
2619 2015-01-22  Beth Dakin  <bdakin@apple.com>
2620
2621         ibtoold crash below -[WebView close]
2622         https://bugs.webkit.org/show_bug.cgi?id=140782
2623         -and corresponding-
2624         rdar://problem/19558472
2625
2626         Reviewed by Tim Horton.
2627
2628         Retain the NSImmediateActionGestureRecognizer. This should not be necessary, but 
2629         it is because interface builder is messing with our views.
2630         * WebView/WebImmediateActionController.h:
2631         * WebView/WebImmediateActionController.mm:
2632         (-[WebImmediateActionController webViewClosed]):
2633         (-[WebImmediateActionController _cancelImmediateAction]):
2634         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2635         (-[WebImmediateActionController _updateImmediateActionItem]):
2636
2637 2015-01-21  Beth Dakin  <bdakin@apple.com>
2638
2639         Crash in QuickLook preview delegate method
2640         https://bugs.webkit.org/show_bug.cgi?id=140740
2641         -and corresponding-
2642         rdar://problem/19540806
2643
2644         Reviewed by Tim Horton.
2645
2646         Clear out the delegate.
2647         * WebView/WebImmediateActionController.mm:
2648         (-[WebImmediateActionController webViewClosed]):
2649
2650 2015-01-21  Csaba Osztrogonác  <ossy@webkit.org>
2651
2652         Remove ENABLE(INSPECTOR) ifdef guards
2653         https://bugs.webkit.org/show_bug.cgi?id=140668
2654
2655         Reviewed by Darin Adler.
2656
2657         * Configurations/FeatureDefines.xcconfig:
2658         * WebCoreSupport/WebFrameLoaderClient.mm:
2659         (WebFrameLoaderClient::dispatchWillSendRequest):
2660
2661 2015-01-20  Anders Carlsson  <andersca@apple.com>
2662
2663         Remove USE(GLIB) code from WebKit1
2664         https://bugs.webkit.org/show_bug.cgi?id=140714
2665
2666         Reviewed by Andreas Kling.
2667
2668         * WebView/WebView.mm:
2669         (-[WebView _commonInitializationWithFrameName:groupName:]):
2670         (-[WebView _close]):
2671         (-[WebView _clearGlibLoopObserver]): Deleted.
2672         (glibContextIterationCallback): Deleted.
2673         (-[WebView _scheduleGlibContextIterations]): Deleted.
2674         * WebView/WebViewData.h:
2675         * WebView/WebViewInternal.h:
2676
2677 2015-01-20  David Kilzer  <ddkilzer@apple.com>
2678
2679         Switch to comparing PLATFORM_NAME in terms of macosx
2680         <http://webkit.org/b/139516>
2681
2682         Reviewed by Timothy Hatcher.
2683
2684         * MigrateHeaders.make:
2685         * postprocess-headers.sh:
2686
2687 2015-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
2688
2689         [SVG -> OTF Converter] Flip the switch on
2690         https://bugs.webkit.org/show_bug.cgi?id=140592
2691
2692         Reviewed by Antti Koivisto.
2693
2694         * Configurations/FeatureDefines.xcconfig:
2695
2696 2015-01-19  Beth Dakin  <bdakin@apple.com>
2697
2698         Speculative build fix.
2699
2700         * WebView/WebView.mm:
2701         (-[WebView _commonInitializationWithFrameName:groupName:]):
2702
2703 2015-01-19  Beth Dakin  <bdakin@apple.com>
2704
2705         Speculative build fix.
2706
2707         * WebView/WebView.mm:
2708         (-[WebView _convertRectFromRootView:]):
2709
2710 2015-01-19  Timothy Horton  <timothy_horton@apple.com>
2711
2712         Adjust naming of action menu SPI
2713         https://bugs.webkit.org/show_bug.cgi?id=140644
2714         <rdar://problem/19448129>
2715
2716         Reviewed by Brian Weinstein.
2717
2718         * WebView/WebActionMenuController.mm:
2719         (-[WebActionMenuController prepareForMenu:withEvent:]):
2720         (-[WebActionMenuController willOpenMenu:withEvent:]):
2721         (-[WebActionMenuController didCloseMenu:withEvent:]):
2722         * WebView/WebView.mm:
2723         (-[WebView _commonInitializationWithFrameName:groupName:]):
2724         (-[WebView prepareForMenu:withEvent:]):
2725         (-[WebView willOpenMenu:withEvent:]):
2726         (-[WebView didCloseMenu:withEvent:]):
2727
2728 2015-01-19  Beth Dakin  <bdakin@apple.com>
2729
2730         REGRESSION (r178290): Yellow highlight from context menu Lookup in Dictionary is 
2731         offset by flipped-ness
2732         https://bugs.webkit.org/show_bug.cgi?id=140643
2733         -and corresponding-
2734         rdar://problem/19489593
2735
2736         Reviewed by Tim Horton.
2737
2738         We universally flipped because we assumed that the root view was flipped and the 
2739         WebView was not. However, in Dictionary, the WebView is flipped! So this patch 
2740         fixes that assumption by checking the WebView’s flipped-ness.
2741         * WebView/WebView.mm:
2742         (-[WebView _convertRectFromRootView:]):
2743
2744 2015-01-19  Commit Queue  <commit-queue@webkit.org>
2745
2746         Unreviewed, rolling out r178653.
2747         https://bugs.webkit.org/show_bug.cgi?id=140634
2748
2749         Broke multiple SVG tests on Mountain Lion (Requested by ap on
2750         #webkit).
2751
2752         Reverted changeset:
2753
2754         "[SVG -> OTF Converter] Flip the switch on"
2755         https://bugs.webkit.org/show_bug.cgi?id=140592
2756         http://trac.webkit.org/changeset/178653
2757
2758 2015-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
2759
2760         [SVG -> OTF Converter] Flip the switch on
2761         https://bugs.webkit.org/show_bug.cgi?id=140592
2762
2763         Reviewed by Antti Koivisto.
2764
2765         * Configurations/FeatureDefines.xcconfig:
2766
2767 2015-01-18  Daniel Bates  <dabates@apple.com>
2768
2769         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/178631>
2770         (https://bugs.webkit.org/show_bug.cgi?id=129441)
2771
2772         Pass lvalue reference to WebCore::Highlight instead of pointer in call to InspectorController::getHighlight().
2773         Also substitute HighlightType::Node and HighlightType::Rects for HighlightTypeNode and HighlightTypeRects, respectively.
2774
2775         * WebInspector/WebNodeHighlightView.mm:
2776         (-[WebNodeHighlightView layoutSublayers:]):
2777
2778 2015-01-16  Beth Dakin  <bdakin@apple.com>
2779
2780         Make sure early cancellation of immediate action actually does that in WK1
2781         https://bugs.webkit.org/show_bug.cgi?id=140566
2782         -and corresponding-
2783         rdar://problem/19490114
2784
2785         Reviewed by Tim Horton.
2786
2787         Work around an AppKit bug by dispatching the call to _cancelImmediateAction 
2788         asynchronously.
2789         * WebView/WebImmediateActionController.mm:
2790         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2791
2792 2015-01-16  Daniel Bates  <dabates@apple.com>
2793
2794         Fix the public iOS SDK build after <http://trac.webkit.org/changeset/178285>
2795         (https://bugs.webkit.org/show_bug.cgi?id=140360)
2796
2797         Forward declare protocol NSURLDownloadDelegate as it is SPI on iOS.
2798
2799         * Misc/WebDownload.h:
2800
2801 2015-01-15  Csaba Osztrogonác  <ossy@webkit.org>
2802
2803         Remove ENABLE(SQL_DATABASE) guards
2804         https://bugs.webkit.org/show_bug.cgi?id=140434
2805
2806         Reviewed by Darin Adler.
2807
2808         * Configurations/FeatureDefines.xcconfig:
2809         * Storage/WebDatabaseManager.mm:
2810         (databasesDirectoryPath):
2811         * Storage/WebDatabaseManagerClient.h:
2812         * Storage/WebDatabaseManagerClient.mm:
2813         * Storage/WebDatabaseManagerInternal.h:
2814         * Storage/WebDatabaseManagerPrivate.h:
2815         * Storage/WebDatabaseQuotaManager.mm:
2816         (-[WebDatabaseQuotaManager usage]):
2817         (-[WebDatabaseQuotaManager quota]):
2818         (-[WebDatabaseQuotaManager setQuota:]):
2819         * WebCoreSupport/WebChromeClient.h:
2820         * WebCoreSupport/WebChromeClient.mm:
2821         * WebCoreSupport/WebSecurityOrigin.mm:
2822         (-[WebSecurityOrigin usage]):
2823         (-[WebSecurityOrigin quota]):
2824         (-[WebSecurityOrigin setQuota:]):
2825         * WebView/WebFrame.mm:
2826         (-[WebFrame _cacheabilityDictionary]):
2827         * WebView/WebView.mm:
2828         (-[WebView _commonInitializationWithFrameName:groupName:]):
2829         (-[WebView _preferencesChanged:]):
2830
2831 2015-01-14  Chris Dumez  <cdumez@apple.com>
2832
2833         Make 'TypeName' parameter unnecessary in CSSPropertyNames.in
2834         https://bugs.webkit.org/show_bug.cgi?id=140347
2835
2836         Reviewed by Darin Adler.
2837
2838         Call FontDescription::setIsItalic() instead of setItalic() as the
2839         call site passes a boolean.
2840
2841         * WebView/WebHTMLView.mm:
2842         (fontNameForDescription):
2843
2844 2015-01-13  Anders Carlsson  <andersca@apple.com>
2845
2846         Temporarily reintroduce the informal delegate protocols
2847         https://bugs.webkit.org/show_bug.cgi?id=140416
2848
2849         Reviewed by Dan Bernstein.
2850
2851         * WebView/WebEditingDelegate.h:
2852         * WebView/WebFrameLoadDelegate.h:
2853         * WebView/WebPolicyDelegate.h:
2854         * WebView/WebResourceLoadDelegate.h:
2855         * WebView/WebUIDelegate.h:
2856
2857 2015-01-13  Beth Dakin  <bdakin@apple.com>
2858
2859         Should disable immediate actions for iTunes
2860         https://bugs.webkit.org/show_bug.cgi?id=140405
2861         -and corresponding-
2862         rdar://problem/19461358
2863
2864         Reviewed by Tim Horton.
2865
2866         * WebView/WebImmediateActionController.mm:
2867         (-[WebImmediateActionController _updateImmediateActionItem]):
2868
2869 2015-01-11  Sam Weinig  <sam@webkit.org>
2870
2871         Remove support for SharedWorkers
2872         https://bugs.webkit.org/show_bug.cgi?id=140344
2873
2874         Reviewed by Anders Carlsson.
2875
2876         * Configurations/FeatureDefines.xcconfig:
2877         * WebCoreSupport/WebPlatformStrategies.h:
2878         * WebCoreSupport/WebPlatformStrategies.mm:
2879         (WebPlatformStrategies::createSharedWorkerStrategy): Deleted.
2880
2881 2015-01-12  Timothy Horton  <timothy_horton@apple.com>
2882
2883         Get rid of unnecessary reimplementations of CGFloor/Ceiling
2884         https://bugs.webkit.org/show_bug.cgi?id=140375
2885
2886         Reviewed by Simon Fraser.
2887
2888         * Misc/WebKitNSStringExtras.mm:
2889         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2890         (webkit_CGCeiling): Deleted.
2891         Delete unnecessary code, use the real CGFloor/Ceiling instead.
2892
2893 2015-01-12  Anders Carlsson  <andersca@apple.com>
2894
2895         Make delegates conform to formal delegate protocols
2896         https://bugs.webkit.org/show_bug.cgi?id=140370
2897
2898         Reviewed by Dan Bernstein.
2899
2900         * DefaultDelegates/WebDefaultPolicyDelegate.h:
2901         * WebCoreSupport/WebInspectorClient.mm:
2902         Add protocols to the interface declarations.
2903
2904         * WebView/WebActionMenuController.mm:
2905         (-[WebActionMenuController prepareForMenu:withEvent:]):
2906         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
2907         * WebView/WebImmediateActionController.mm:
2908         (-[WebImmediateActionController _updateImmediateActionItem]):
2909         (-[WebImmediateActionController _menuItemForDataDetectedText]):
2910         Cast to id when trying to invoke delegate methods that aren't on WebUIDelegate.
2911
2912 2015-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
2913
2914         Allow targetting the SVG->OTF font converter with ENABLE(SVG_OTF_CONVERTER)
2915         https://bugs.webkit.org/show_bug.cgi?id=136769
2916
2917         Reviewed by Antti Koivisto.
2918
2919         * Configurations/FeatureDefines.xcconfig:
2920
2921 2015-01-12  Timothy Horton  <timothy_horton@apple.com>
2922
2923         Multi-rect TextIndicators are vertically flipped in WebKit1
2924         https://bugs.webkit.org/show_bug.cgi?id=140350
2925         <rdar://problem/19441243>
2926
2927         Reviewed by Beth Dakin.
2928
2929         * WebView/WebView.mm:
2930         (-[WebView _setTextIndicator:fadeOut:]):
2931         Convert the textBoundingRect from root view to screen coordinates.
2932
2933 2015-01-12  Anders Carlsson  <andersca@apple.com>
2934
2935         Make WebResourceDelegate a formal protocol as well
2936         https://bugs.webkit.org/show_bug.cgi?id=140364
2937
2938         Reviewed by Dan Bernstein.
2939
2940         * WebView/WebResourceLoadDelegate.h:
2941
2942 2015-01-12  Anders Carlsson  <andersca@apple.com>
2943
2944         Delegates should be formal protocols
2945         https://bugs.webkit.org/show_bug.cgi?id=140360
2946         rdar://problem/17380856
2947
2948         Reviewed by Dan Bernstein.
2949
2950         This is the first half of this change. The second half involves actually changing the delegate properties to be protocols.
2951
2952         * DefaultDelegates/WebDefaultUIDelegate.h:
2953         * Misc/WebDownload.h:
2954         * WebView/WebEditingDelegate.h:
2955         * WebView/WebFrameLoadDelegate.h:
2956         * WebView/WebPolicyDelegate.h:
2957         * WebView/WebUIDelegate.h:
2958
2959 2015-01-09  Anders Carlsson  <andersca@apple.com>
2960
2961         Get rid of the database strategy
2962         https://bugs.webkit.org/show_bug.cgi?id=140322
2963
2964         Reviewed by Sam Weinig.
2965
2966         * WebCoreSupport/WebPlatformStrategies.h:
2967         * WebCoreSupport/WebPlatformStrategies.mm:
2968         (WebPlatformStrategies::createDatabaseStrategy): Deleted.
2969
2970 2015-01-08  Timothy Horton  <timothy_horton@apple.com>
2971
2972         Can't use DataDetectors after immediate action preparation
2973         https://bugs.webkit.org/show_bug.cgi?id=140263
2974         <rdar://problem/19412705>
2975
2976         Reviewed by Beth Dakin.
2977
2978         * WebView/WebImmediateActionController.mm:
2979         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
2980         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
2981         To match WebKit2, only call shouldUseActions if the animation is actually
2982         going to begin, not when preparing for it. This way, we're guaranteed
2983         to get a didCancel or didComplete.
2984
2985 2015-01-08  Dean Jackson  <dino@apple.com>
2986
2987         Text not drawn or white-on-white for "Close Page"/"Go Back" button on safe browsing warning page
2988         https://bugs.webkit.org/show_bug.cgi?id=140232
2989         <rdar://problem/19371010>
2990
2991         Reviewed by Anders Carlsson.
2992
2993         Remove the applicationChromeMode setting, but leave stubs in to make
2994         sure existing binaries don't break.
2995
2996         * WebCoreSupport/WebInspectorClient.mm:
2997         (-[WebInspectorWindowController init]):
2998         * WebView/WebPreferenceKeysPrivate.h:
2999         * WebView/WebPreferences.mm:
3000         (+[WebPreferences initialize]):
3001         (-[WebPreferences applicationChromeModeEnabled]):
3002         (-[WebPreferences setApplicationChromeModeEnabled:]):
3003         * WebView/WebView.mm:
3004         (-[WebView _preferencesChanged:]):
3005
3006 2015-01-07  Daniel Bates  <dabates@apple.com>
3007
3008         [iOS] Make WebKit2 build with public iOS SDK and more build fixes for DRT
3009         https://bugs.webkit.org/show_bug.cgi?id=137371
3010
3011         Reviewed by David Kilzer.
3012
3013         Use SPI wrapper headers instead of directly references private SPI headers.
3014
3015         * Plugins/Hosted/NetscapePluginHostManager.mm:
3016
3017 2015-01-07  Commit Queue  <commit-queue@webkit.org>
3018
3019         Unreviewed, rolling out r178068.
3020         https://bugs.webkit.org/show_bug.cgi?id=140235
3021
3022         Breaks the iOS build (Requested by enrica on #webkit).
3023
3024         Reverted changeset:
3025
3026         "[iOS] Make WebKit2 build with public iOS SDK and more build
3027         fixes for DRT"
3028         https://bugs.webkit.org/show_bug.cgi?id=137371
3029         http://trac.webkit.org/changeset/178068
3030
3031 2015-01-07  Daniel Bates  <dabates@apple.com>
3032
3033         [iOS] Make WebKit2 build with public iOS SDK and more build fixes for DRT
3034         https://bugs.webkit.org/show_bug.cgi?id=137371
3035
3036         Reviewed by David Kilzer.
3037
3038         Use SPI wrapper headers instead of directly references private SPI headers.
3039
3040         * Plugins/Hosted/NetscapePluginHostManager.mm:
3041
3042 2015-01-07  Beth Dakin  <bdakin@apple.com>
3043
3044         Adopt delegate callbacks so that standardQuickLookMenuItem does not obscure the 
3045         link
3046         https://bugs.webkit.org/show_bug.cgi?id=140206
3047         -and corresponding-
3048         rdar://problem/19300492
3049
3050         Reviewed by Tim Horton.
3051
3052         Providing and item frame will ensure that the original link is not obscured.
3053         * WebView/WebImmediateActionController.mm:
3054         (elementBoundingBoxInWindowCoordinatesFromNode):
3055         (-[WebImmediateActionController menuItem:itemFrameForPoint:]):
3056
3057         For now use a max size that is smaller than the WebView, with the screen’s aspect 
3058         ratio, and scaled down.
3059         (-[WebImmediateActionController menuItem:maxSizeForPoint:]):
3060
3061 2015-01-07  Anders Carlsson  <andersca@apple.com>
3062
3063         Give simple HTML documents a database provider
3064         https://bugs.webkit.org/show_bug.cgi?id=140192
3065         rdar://problem/19398825
3066
3067         Reviewed by Tim Horton.
3068
3069         * WebView/WebView.mm:
3070         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3071
3072 2015-01-06  Anders Carlsson  <andersca@apple.com>
3073
3074         Reimplement NPN_PluginThreadAsyncCall without using PluginMainThreadScheduler
3075         https://bugs.webkit.org/show_bug.cgi?id=140140
3076
3077         Reviewed by Andreas Kling.
3078
3079         Just use a dispatch_async call to the main queue. This will let us move PluginMainThreadScheduler
3080         out of WebCore since nobody else is using it.
3081
3082         * Plugins/WebNetscapePluginView.h:
3083         * Plugins/WebNetscapePluginView.mm:
3084         (-[WebNetscapePluginView _createPlugin]):
3085         (-[WebNetscapePluginView _destroyPlugin]):
3086         * Plugins/npapi.mm:
3087         (NPN_PluginThreadAsyncCall):
3088
3089 2015-01-06  Anders Carlsson  <andersca@apple.com>
3090
3091         Add a WebKit1 database provider
3092         https://bugs.webkit.org/show_bug.cgi?id=140126
3093
3094         Reviewed by Sam Weinig.
3095
3096         Set the database provider.
3097
3098         * WebView/WebView.mm:
3099         (-[WebView _commonInitializationWithFrameName:groupName:]):
3100
3101 2015-01-06  Commit Queue  <commit-queue@webkit.org>
3102
3103         Unreviewed, rolling out r177963.
3104         https://bugs.webkit.org/show_bug.cgi?id=140136
3105
3106         Caused lots of crashes (Requested by smfr on #webkit).
3107
3108         Reverted changeset:
3109
3110         "Add a WebKit1 database provider"
3111         https://bugs.webkit.org/show_bug.cgi?id=140126
3112         http://trac.webkit.org/changeset/177963
3113
3114 2015-01-06  Anders Carlsson  <andersca@apple.com>
3115
3116         Add a WebKit1 database provider
3117         https://bugs.webkit.org/show_bug.cgi?id=140126
3118
3119         Reviewed by Sam Weinig.
3120
3121         Set the database provider.
3122
3123         * WebView/WebView.mm:
3124         (-[WebView _commonInitializationWithFrameName:groupName:]):
3125
3126 2015-01-01  Jeff Miller  <jeffm@apple.com>
3127
3128         Update user-visible copyright strings to include 2015
3129         https://bugs.webkit.org/show_bug.cgi?id=139880
3130
3131         Reviewed by Darin Adler.
3132
3133         * Info.plist:
3134
3135 2014-12-30  Dan Bernstein  <mitz@apple.com>
3136
3137         [Cocoa] Enable the compiler to check format strings specified with UI_STRING and UI_STRING_KEY
3138         https://bugs.webkit.org/show_bug.cgi?id=140003
3139
3140         Reviewed by Darin Adler.
3141
3142         * Misc/WebLocalizableStrings.h: Made UI_STRING and UI_STRING_KEY call a new helper function
3143         that takes their "string" parameter as a "value" "parameter and has an attribute telling
3144         the compiler that if the "value" parameter is a format string then the function returns a
3145         modified version of it. The result is that if UI_STRING is used as a format string parameter
3146         to some function or method, the compiler will check the format specifiers in the string
3147         against the other parameters.
3148
3149 2014-12-29  Dan Bernstein  <mitz@apple.com>
3150
3151         Fixed the iOS build.
3152
3153         * Configurations/WebKitLegacy.xcconfig:
3154
3155 2014-12-29  Anders Carlsson  <andersca@apple.com>
3156
3157         Get rid of some PageGroup storage functions
3158         https://bugs.webkit.org/show_bug.cgi?id=139996
3159
3160         Reviewed by Sam Weinig.
3161
3162         Call WebStorageNamespaceProvider directly instead.
3163
3164         * Storage/WebStorageManager.mm:
3165         (-[WebStorageManager syncLocalStorage]):
3166         (+[WebStorageManager closeIdleLocalStorageDatabases]):
3167         * WebView/WebView.mm:
3168         (+[WebView _applicationWillTerminate]):
3169
3170 2014-12-29  Anders Carlsson  <andersca@apple.com>
3171
3172         Move storage code from WebCore to WebKit
3173         https://bugs.webkit.org/show_bug.cgi?id=139558
3174
3175         Reviewed by Darin Adler.
3176
3177         * Storage/WebStorageManager.mm:
3178         * Storage/WebStorageTrackerClient.h:
3179         * WebView/WebView.mm:
3180
3181 2014-12-26  Dan Bernstein  <mitz@apple.com>
3182
3183         <rdar://problem/19348208> REGRESSION (r177027): iOS builds use the wrong toolchain
3184         https://bugs.webkit.org/show_bug.cgi?id=139950
3185
3186         Reviewed by David Kilzer.
3187
3188         * Configurations/Base.xcconfig: Only define TOOLCHAINS when building for OS X, doing so
3189         in a manner that works with Xcode 5.1.1.
3190
3191 2014-12-23  Timothy Horton  <timothy_horton@apple.com>
3192
3193         Install a TextIndicator for link immediate actions
3194         https://bugs.webkit.org/show_bug.cgi?id=139897
3195         <rdar://problem/19333076>
3196
3197         Reviewed by Anders Carlsson.
3198
3199         * WebView/WebImmediateActionController.h:
3200         * WebView/WebImmediateActionController.mm:
3201         (-[WebImmediateActionController _clearImmediateActionState]):
3202         Tear down the TextIndicator, just like WebKit2.
3203
3204         (-[WebImmediateActionController _defaultAnimationController]):
3205         Install a TextIndicator for links.
3206
3207         (-[WebImmediateActionController menuItemDidClose:]):
3208         Tear down the TextIndicator when the QL preview closes.
3209
3210         (-[WebImmediateActionController _menuItemForDataDetectedText]):
3211         Directly install and uninstall the TextIndicator for DataDetectors.
3212
3213         (-[WebImmediateActionController _showTextIndicator]): Deleted.
3214         (-[WebImmediateActionController _hideTextIndicator]): Deleted.
3215         Remove the isShowingTextIndicator mechanism, just like it was removed from WebKit2.
3216
3217 2014-12-20  Eric Carlson  <eric.carlson@apple.com>
3218
3219         [iOS] add optimized fullscreen API
3220         https://bugs.webkit.org/show_bug.cgi?id=139833
3221         <rdar://problem/18844486>
3222
3223         Reviewed by Simon Fraser.
3224
3225         * Configurations/FeatureDefines.xcconfig:  Add ENABLE_VIDEO_PRESENTATION_MODE.
3226
3227 2014-12-20  David Kilzer  <ddkilzer@apple.com>
3228
3229         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
3230         <http://webkit.org/b/139463>
3231
3232         Reviewed by Mark Rowe.
3233
3234         * Configurations/Base.xcconfig:
3235         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
3236           on OS X.
3237         - Set GCC_OPTIMIZATION_LEVEL_normal based on SDK.
3238         * Configurations/DebugRelease.xcconfig:
3239         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
3240         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
3241         * Configurations/Version.xcconfig:
3242         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
3243         * Configurations/WebKitLegacy.xcconfig:
3244         - Set EXCLUDED_SOURCE_FILE_NAMES, EXPORTED_SYMBOLS_FILE_x86_64,
3245           FRAMEWORK_SEARCH_PATHS, OTHER_CFLAGS, INSTALL_PATH,
3246           DYLIB_INSTALL_NAME_BASE, OTHER_LDFLAGS, SECTORDER_FLAGS,
3247           NORMAL_WEBKIT_LEGACY_FRAMEWORKS_DIR,
3248           WEBKIT_LEGACY_FRAMEWORKS_DIR, NORMAL_PRODUCTION_FRAMEWORKS_DIR,
3249           PRODUCTION_FRAMEWORKS_DIR, PRODUCTION_ROOT,
3250           WEBCORE_PRIVATE_HEADERS_DIR_Production and
3251           WEBKITSYSTEMINTERFACE_STATIC_LIBRARY_HEADERS_FOLDER_PATH_engineering
3252           based on SDK.
3253         - Fix PRODUCTION_ROOT to actually be set properly.
3254         - Simplify EXPORTED_SYMBOLS_FILE_i386.
3255
3256         * migrate-headers.sh:
3257         - Get rid of unused WEBKIT2_FRAMEWORKS_DIR variable.
3258         - Change WEBCORE_PRIVATE_HEADERS_DIR_macosx_Production to
3259           WEBCORE_PRIVATE_HEADERS_DIR_Production based on changes to
3260           WebKitLegacy.xcconfig.
3261
3262 2014-12-19  Simon Fraser  <simon.fraser@apple.com>
3263
3264         Fix pink background on CoreAnimation plug-ins in WebKit1
3265         https://bugs.webkit.org/show_bug.cgi?id=139845
3266         rdar://problem/19313075
3267
3268         Reviewed by Tim Horton.
3269         
3270         r154078 left in some debugging code that set a pink background on plug-in hosting
3271         layers. Remove it.
3272
3273         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3274         (-[WebHostedNetscapePluginView createPluginLayer]):
3275
3276 2014-12-19  Andreas Kling  <akling@apple.com>
3277
3278         Ref-ify TextIterator API.
3279         <https://webkit.org/b/139823>
3280
3281         Reviewed by Antti Koivisto.
3282
3283         * WebView/WebTextIterator.mm:
3284         (-[WebTextIterator currentRange]):
3285
3286 2014-12-19  Joseph Pecoraro  <pecoraro@apple.com>
3287
3288         Web Inspector: CRASH inspector-protocol/debugger/breakpoint-action-detach.html
3289         https://bugs.webkit.org/show_bug.cgi?id=139797
3290
3291         Reviewed by Mark Lam.
3292
3293         * WebView/WebScriptDebugger.h:
3294         * WebView/WebScriptDebugger.mm:
3295         (WebScriptDebugger::handlePause):
3296         Standardize on passing JSGlobalObject parameter first.
3297
3298 2014-12-19  Commit Queue  <commit-queue@webkit.org>
3299
3300         Unreviewed, rolling out r177574.
3301         https://bugs.webkit.org/show_bug.cgi?id=139821
3302
3303         "Broke Production builds by installing
3304         libWebCoreTestSupport.dylib in the wrong directory" (Requested
3305         by ddkilzer on #webkit).
3306
3307         Reverted changeset:
3308
3309         "Switch from using PLATFORM_NAME to SDK selectors in WebCore,
3310         WebInspectorUI, WebKit, WebKit2"
3311         https://bugs.webkit.org/show_bug.cgi?id=139463
3312         http://trac.webkit.org/changeset/177574
3313
3314 2014-12-19  David Kilzer  <ddkilzer@apple.com>
3315
3316         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
3317         <http://webkit.org/b/139463>
3318
3319         Reviewed by Mark Rowe.
3320
3321         * Configurations/Base.xcconfig:
3322         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
3323           on OS X.
3324         - Set GCC_OPTIMIZATION_LEVEL_normal based on SDK.
3325         * Configurations/DebugRelease.xcconfig:
3326         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
3327         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
3328         * Configurations/Version.xcconfig:
3329         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
3330         * Configurations/WebKitLegacy.xcconfig:
3331         - Set EXCLUDED_SOURCE_FILE_NAMES, EXPORTED_SYMBOLS_FILE_x86_64,
3332           FRAMEWORK_SEARCH_PATHS, OTHER_CFLAGS, INSTALL_PATH,
3333           DYLIB_INSTALL_NAME_BASE, OTHER_LDFLAGS, SECTORDER_FLAGS,
3334           NORMAL_WEBKIT_LEGACY_FRAMEWORKS_DIR,
3335           WEBKIT_LEGACY_FRAMEWORKS_DIR, NORMAL_PRODUCTION_FRAMEWORKS_DIR,
3336           PRODUCTION_FRAMEWORKS_DIR, PRODUCTION_ROOT,
3337           WEBCORE_PRIVATE_HEADERS_DIR_Production and
3338           WEBKITSYSTEMINTERFACE_STATIC_LIBRARY_HEADERS_FOLDER_PATH_engineering
3339           based on SDK.
3340         - Fix PRODUCTION_ROOT to actually be set properly.
3341         - Simplify EXPORTED_SYMBOLS_FILE_i386.
3342
3343         * migrate-headers.sh:
3344         - Get rid of unused WEBKIT2_FRAMEWORKS_DIR variable.
3345         - Change WEBCORE_PRIVATE_HEADERS_DIR_macosx_Production to
3346           WEBCORE_PRIVATE_HEADERS_DIR_Production based on changes to
3347           WebKitLegacy.xcconfig.
3348
3349 2014-12-18  Andreas Kling  <akling@apple.com>
3350
3351         Ref-ify various Document-related things.
3352         <https://webkit.org/b/139796>
3353
3354         Reviewed by Anders Carlsson.
3355
3356         * WebView/WebFrame.mm:
3357         (-[WebFrame _replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
3358
3359 2014-12-18  Beth Dakin  <bdakin@apple.com>
3360
3361         Need to re-enable action menus
3362         https://bugs.webkit.org/show_bug.cgi?id=139795
3363         -and corresponding-
3364         rdar://problem/19299367
3365
3366         Reviewed by Tim Horton.
3367
3368         Re-enable the menus by un-commenting the code to create the menu and controller.
3369         * WebView/WebView.mm:
3370         (-[WebView _commonInitializationWithFrameName:groupName:]):
3371
3372 2014-12-16  Sam Weinig  <sam@webkit.org>
3373
3374         Unify the Mac and iOS implementations of FontPlatformData a bit
3375         https://bugs.webkit.org/show_bug.cgi?id=139721
3376
3377         Reviewed by Anders Carlsson.
3378
3379         * WebView/WebHTMLView.mm:
3380         (fontNameForDescription):
3381         Update for new function name.
3382
3383 2014-12-18  Antti Koivisto  <antti@apple.com>
3384
3385         Remove alwaysUseBaselineOfPrimaryFont setting
3386         https://bugs.webkit.org/show_bug.cgi?id=139770
3387
3388         Reviewed by Anders Carlsson.
3389
3390         * WebView/WebPreferenceKeysPrivate.h:
3391         * WebView/WebPreferences.mm:
3392         (-[WebPreferences _setAlwaysUseBaselineOfPrimaryFont:]): Deleted.
3393         (-[WebPreferences _alwaysUseBaselineOfPrimaryFont]): Deleted.
3394         * WebView/WebPreferencesPrivate.h:
3395         * WebView/WebView.mm:
3396         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3397         (-[WebView _preferencesChanged:]):
3398
3399 2014-12-17  Andreas Kling  <akling@apple.com>
3400
3401         Ref-ify Range::create().
3402         <https://webkit.org/b/139755>
3403
3404         Reviewed by Anders Carlsson.
3405
3406         * WebView/WebHTMLRepresentation.mm:
3407         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
3408         * WebView/WebHTMLView.mm:
3409         (-[WebHTMLView attributedString]):
3410
3411 2014-12-17  Anders Carlsson  <andersca@apple.com>
3412
3413         Unify -[WebResource description]
3414         https://bugs.webkit.org/show_bug.cgi?id=139762
3415
3416         Reviewed by Dan Bernstein.
3417
3418         * WebView/WebResource.mm:
3419         (-[WebResource description]):
3420
3421 2014-12-17  Anders Carlsson  <andersca@apple.com>
3422
3423         Get rid of an ugly #define hack in WebFrameLoaderClient
3424         https://bugs.webkit.org/show_bug.cgi?id=139761
3425
3426         Reviewed by Dan Bernstein.
3427
3428         Also replace @private with @package in all public headers, for consistency.
3429
3430         * History/WebBackForwardList.h:
3431         * History/WebHistory.h:
3432         * Misc/WebDownload.h:
3433         * WebCoreSupport/WebFrameLoaderClient.mm:
3434         * WebView/WebArchive.h:
3435         * WebView/WebDataSource.h:
3436         * WebView/WebFrame.h:
3437         * WebView/WebFrameView.h:
3438         * WebView/WebPreferences.h:
3439         * WebView/WebResource.h:
3440
3441 2014-12-17  Dan Bernstein  <mitz@apple.com>
3442
3443         <rdar://problem/19282508> WebKitLegacy is unusable due to bad dylib identifier
3444         https://bugs.webkit.org/show_bug.cgi?id=139760
3445
3446         Reviewed by Anders Carlsson.
3447
3448         * Configurations/WebKitLegacy.xcconfig:
3449
3450 2014-12-17  Andreas Kling  <akling@apple.com>
3451
3452         Purge PassRefPtr from Frame.
3453         <https://webkit.org/b/139731>
3454
3455         Reviewed by Anders Carlsson.
3456
3457         * WebCoreSupport/WebFrameLoaderClient.mm:
3458         (WebFrameLoaderClient::transitionToCommittedForNewPage):
3459         * WebView/WebFrame.mm:
3460         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
3461         (+[WebFrame _createSubframeWithOwnerElement:frameName:frameView:]):
3462         * WebView/WebFrameInternal.h:
3463
3464 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
3465
3466         Implement and adopt two new TextIndicator presentation animations
3467         https://bugs.webkit.org/show_bug.cgi?id=139715
3468         <rdar://problem/19237945>
3469
3470         Reviewed by Anders Carlsson.
3471
3472         * WebView/WebActionMenuController.mm:
3473         (-[WebActionMenuController _showTextIndicator]):
3474         * WebView/WebHTMLView.mm:
3475         (-[WebHTMLView quickLookWithEvent:]):
3476         Remove the completionHandler from text indicator presentation.
3477
3478         * WebView/WebImmediateActionController.mm:
3479         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
3480         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
3481         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
3482         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
3483         (-[WebImmediateActionController _menuItemForDataDetectedText]):
3484         (-[WebImmediateActionController _animationControllerForText]):
3485         (-[WebImmediateActionController _showTextIndicator]):
3486         Forward immediate action gesture recognizer animation progress
3487         to TextIndicator. Force us to keep the selection when immediate
3488         action popovers steal first responder status from the WebView.
3489         If the Lookup range is equal to the selection range, use a Crossfade
3490         animation; otherwise, use a FadeIn animation.
3491
3492         * WebView/WebView.mm:
3493         (-[WebView _setMaintainsInactiveSelection:]):
3494         (-[WebView maintainsInactiveSelection]):
3495         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
3496         (-[WebView _setTextIndicator:fadeOut:]):
3497         (-[WebView _clearTextIndicator]):
3498         (-[WebView _setTextIndicatorAnimationProgress:]):
3499         (-[WebView _showDictionaryLookupPopup:]):
3500         (-[WebView _dictionaryLookupPopoverWillClose:]):
3501         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
3502         Remove the completionHandler from text indicator presentation.
3503         Add a _setMaintainsInactiveSelection, which allows WebKit internals
3504         to change the return value of -maintainsInactiveSelection, allowing
3505         us to keep the selection alive when the WebView loses first responder status.
3506
3507         * WebView/WebViewData.h:
3508         * WebView/WebViewInternal.h:
3509
3510 2014-12-16  Andreas Kling  <akling@apple.com>
3511
3512         Use Ref for SecurityOrigin.
3513         <https://webkit.org/b/139710>
3514
3515         Reviewed by Anders Carlsson.
3516
3517         * Storage/WebStorageTrackerClient.mm:
3518         (WebStorageTrackerClient::dispatchDidModifyOrigin):
3519         * WebView/WebView.mm:
3520         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
3521         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
3522
3523 2014-12-16  Beth Dakin  <bdakin@apple.com>
3524
3525         Crash getting default animation controller for some text
3526         https://bugs.webkit.org/show_bug.cgi?id=139712
3527         -and corresponding-
3528         rdar://problem/19271707
3529
3530         Reviewed by Tim Horton.
3531
3532         Must null-check the range.
3533         * WebView/WebImmediateActionController.mm:
3534         (-[WebImmediateActionController _animationControllerForText]):
3535
3536 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
3537
3538         Immediate action popovers can get stuck open
3539         https://bugs.webkit.org/show_bug.cgi?id=139709
3540         <rdar://problem/19270279>
3541
3542         Reviewed by Beth Dakin.
3543
3544         * WebView/WebImmediateActionController.mm:
3545         (-[WebImmediateActionController _clearImmediateActionState]):
3546         Don't clear the animation controller; it breaks things and was unnecessary.
3547
3548 2014-12-16  Tim Horton  <timothy_horton@apple.com>
3549
3550         Disable TextIndication for Lookup immediate actions
3551         https://bugs.webkit.org/show_bug.cgi?id=139684
3552
3553         Reviewed by Anders Carlsson.
3554
3555         * WebView/WebView.mm:
3556         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
3557
3558 2014-12-15  Beth Dakin  <bdakin@apple.com>
3559
3560         Build fix.
3561
3562         * WebView/WebImmediateActionController.mm:
3563
3564 2014-12-15  Beth Dakin  <bdakin@apple.com>
3565
3566         Speculative build fix.
3567
3568         * WebView/WebView.mm:
3569         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
3570         * WebView/WebViewInternal.h:
3571
3572 2014-12-15  Beth Dakin  <bdakin@apple.com>
3573
3574         Make lookup an immediate action instead of an action menu item
3575         https://bugs.webkit.org/show_bug.cgi?id=139661
3576         -and corresponding-
3577         rdar://problem/19198414
3578