Link clicks in PDFs shouldn't send referrer headers.
[WebKit-https.git] / Source / WebKitLegacy / ios / ChangeLog
1 2019-04-17  Brady Eidson  <beidson@apple.com>
2
3         Link clicks in PDFs shouldn't send referrer headers.
4         <rdar://problem/21142581> and https://bugs.webkit.org/show_bug.cgi?id=196980
5
6         Reviewed by Tim Horton.
7
8         * WebView/WebPDFViewPlaceholder.mm:
9         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
10
11 2019-04-10  Devin Rousso  <drousso@apple.com>
12
13         Web Inspector: save sheet should be anchored underneath the tab bar when detached
14         https://bugs.webkit.org/show_bug.cgi?id=196722
15         <rdar://problem/49613280>
16
17         Reviewed by Timothy Hatcher.
18
19         * WebCoreSupport/WebInspectorClientIOS.mm:
20         (WebInspectorFrontendClient::setSheetRect): Added.
21
22 2019-03-03  Zalan Bujtas  <zalan@apple.com>
23
24         [ContentChangeObserver] Content observation should be limited to the current document.
25         https://bugs.webkit.org/show_bug.cgi?id=195256
26         <rdar://problem/48544402>
27
28         Reviewed by Simon Fraser.
29
30         * WebCoreSupport/WebChromeClientIOS.mm:
31         (WebChromeClientIOS::observedContentChange):
32
33 2019-02-26  Zalan Bujtas  <zalan@apple.com>
34
35         [ContentChangeObserver] clearContentChangeObservers should be internal to ContentChangeObserver class
36         https://bugs.webkit.org/show_bug.cgi?id=195066
37         <rdar://problem/48411682>
38
39         Reviewed by Tim Horton.
40
41         * WebCoreSupport/WebChromeClientIOS.h:
42         * WebCoreSupport/WebChromeClientIOS.mm:
43         (WebChromeClientIOS::clearContentChangeObservers): Deleted.
44
45 2019-02-24  Zalan Bujtas  <zalan@apple.com>
46
47         Introduce ContentChangeObserver class
48         https://bugs.webkit.org/show_bug.cgi?id=194977
49         <rdar://problem/48338115>
50
51         Reviewed by Simon Fraser.
52
53         * WebCoreSupport/WebChromeClientIOS.mm:
54         (WebChromeClientIOS::observedContentChange):
55         (WebChromeClientIOS::clearContentChangeObservers):
56
57 2019-02-17  David Kilzer  <ddkilzer@apple.com>
58
59         Unreviewed, rolling out r241620.
60
61         "Causes use-after-free crashes running layout tests with ASan and GuardMalloc."
62         (Requested by ddkilzer on #webkit.)
63
64         Reverted changeset:
65
66         "[WTF] Add environment variable helpers"
67         https://bugs.webkit.org/show_bug.cgi?id=192405
68         https://trac.webkit.org/changeset/241620
69
70 2019-02-15  Ross Kirsling  <ross.kirsling@sony.com>
71
72         [WTF] Add environment variable helpers
73         https://bugs.webkit.org/show_bug.cgi?id=192405
74
75         Reviewed by Michael Catanzaro.
76
77         * Misc/WebUIKitSupport.mm:
78         (WebKitPlatformSystemRootDirectory):
79         Utilize WTF::Environment where possible.
80
81 2019-02-15  Commit Queue  <commit-queue@webkit.org>
82
83         Unreviewed, rolling out r241559 and r241566.
84         https://bugs.webkit.org/show_bug.cgi?id=194710
85
86         Causes layout test crashes under GuardMalloc (Requested by
87         ryanhaddad on #webkit).
88
89         Reverted changesets:
90
91         "[WTF] Add environment variable helpers"
92         https://bugs.webkit.org/show_bug.cgi?id=192405
93         https://trac.webkit.org/changeset/241559
94
95         "Unreviewed build fix for WinCairo Debug after r241559."
96         https://trac.webkit.org/changeset/241566
97
98 2019-02-14  Ross Kirsling  <ross.kirsling@sony.com>
99
100         [WTF] Add environment variable helpers
101         https://bugs.webkit.org/show_bug.cgi?id=192405
102
103         Reviewed by Michael Catanzaro.
104
105         * Misc/WebUIKitSupport.mm:
106         (WebKitPlatformSystemRootDirectory):
107         Utilize WTF::Environment where possible.
108
109 2019-01-22  Conrad Shultz  <conrad_shultz@apple.com>
110
111         Clean up USE(WEB_THREAD)
112         https://bugs.webkit.org/show_bug.cgi?id=193698
113
114         Rubber-stamped by Tim Horton.
115
116         * Misc/WebGeolocationProviderIOS.mm:
117         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationGranted]):
118         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationDenied]):
119         (-[_WebCoreLocationUpdateThreadingProxy positionChanged:]):
120         (-[_WebCoreLocationUpdateThreadingProxy errorOccurred:]):
121         (-[_WebCoreLocationUpdateThreadingProxy resetGeolocation]):
122         * WebCoreSupport/WebFixedPositionContent.mm:
123         (-[WebFixedPositionContent didFinishScrollingOrZooming]):
124
125 2019-01-22  Daniel Bates  <dabates@apple.com>
126
127         [iOS] Interpret text key commands on keydown and app key commands on keypress
128         https://bugs.webkit.org/show_bug.cgi?id=192897
129         <rdar://problem/46857378>
130
131         Reviewed by Brent Fulgham.
132
133         Add stubs for SPI.
134
135         * DefaultDelegates/WebDefaultUIKitDelegate.m:
136         (-[WebDefaultUIKitDelegate handleKeyTextCommandForCurrentEvent]): Added.
137         (-[WebDefaultUIKitDelegate handleKeyAppCommandForCurrentEvent]): Added.
138         (-[WebDefaultUIKitDelegate handleKeyCommandForCurrentEvent]): Deleted.
139         * WebView/WebUIKitDelegate.h:
140
141 2019-01-04  Simon Fraser  <simon.fraser@apple.com>
142
143         Factor legacy WK1 code for fixed and scrolling layers into their own helper class
144         https://bugs.webkit.org/show_bug.cgi?id=193165
145
146         Reviewed by Frédéric Wang.
147
148         Make the stickyContainerMap argument const. We WTFMove() values out of the first
149         argument, so it can't be const.
150
151         * WebCoreSupport/WebChromeClientIOS.h:
152         * WebCoreSupport/WebChromeClientIOS.mm:
153         (WebChromeClientIOS::updateViewportConstrainedLayers):
154         * WebCoreSupport/WebFixedPositionContent.mm:
155         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
156         * WebCoreSupport/WebFixedPositionContentInternal.h:
157
158 2018-12-20  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
159
160         Use Ref<> as much as possible
161         https://bugs.webkit.org/show_bug.cgi?id=192808
162
163         Reviewed by Alex Christensen.
164
165         * WebCoreSupport/SearchPopupMenuIOS.cpp:
166         (SearchPopupMenuIOS::SearchPopupMenuIOS):
167         (SearchPopupMenuIOS::popupMenu):
168         * WebCoreSupport/SearchPopupMenuIOS.h:
169         * WebCoreSupport/WebVisiblePosition.mm:
170         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
171         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
172         * WebView/WebPDFViewPlaceholder.mm:
173         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
174
175 2018-12-17  Zalan Bujtas  <zalan@apple.com>
176
177         Unreviewed build fix.
178
179         * WebCoreSupport/WebVisiblePosition.mm:
180         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
181         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
182
183 2018-12-05  Wenson Hsieh  <wenson_hsieh@apple.com>
184
185         Turn WritingDirection into an enum class
186         https://bugs.webkit.org/show_bug.cgi?id=192401
187         Work towards <rdar://problem/42075638>
188
189         Reviewed by Dan Bernstein.
190
191         Change WritingDirection from an enum to an enum class. No change in behavior.
192
193         * WebCoreSupport/WebFrameIOS.mm:
194         (-[WebFrame selectionBaseWritingDirection]):
195         (-[WebFrame setBaseWritingDirection:]):
196
197 2018-12-03  Daniel Bates  <dabates@apple.com>
198
199         [iOS] Do not handle key events that are key commands
200         https://bugs.webkit.org/show_bug.cgi?id=191608
201         <rdar://problem/46046013>
202
203         Reviewed by Ryosuke Niwa.
204
205         Add default implementation of -handleKeyCommandForCurrentEvent that returns NO - the current
206         event was not handled as a key command.
207
208         * DefaultDelegates/WebDefaultUIKitDelegate.m:
209         (-[WebDefaultUIKitDelegate handleKeyCommandForCurrentEvent]):
210         * WebView/WebUIKitDelegate.h:
211
212 2018-11-29  Zalan Bujtas  <zalan@apple.com>
213
214         Rename *ObservedContentModifier(s) to *ObservedDOMTimer(s)
215         https://bugs.webkit.org/show_bug.cgi?id=192168
216
217         Reviewed by Simon Fraser.
218
219         There's only one type of content modifier (DOMTimer).
220
221         * WebCoreSupport/WebChromeClientIOS.mm:
222         (WebChromeClientIOS::clearContentChangeObservers):
223
224 2018-11-19  Joseph Pecoraro  <pecoraro@apple.com>
225
226         Web Inspector: "Reload Web Inspector" button no longer partially works
227         https://bugs.webkit.org/show_bug.cgi?id=191773
228         <rdar://problem/46139932>
229
230         Reviewed by Devin Rousso.
231
232         * WebCoreSupport/WebInspectorClientIOS.mm:
233         (WebInspectorFrontendClient::reopen):
234
235 2018-10-18  Alexey Proskuryakov  <ap@apple.com>
236
237         Switch from PLATFORM(IOS) to PLATFORM(IOS_FAMILY)
238         https://bugs.webkit.org/show_bug.cgi?id=190729
239
240         Reviewed by Tim Horton.
241
242         * DefaultDelegates/WebDefaultFormDelegate.m:
243         * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
244         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
245         * DefaultDelegates/WebDefaultUIKitDelegate.m:
246         * Misc/MemoryMeasure.mm:
247         * Misc/WebGeolocationCoreLocationProvider.mm:
248         * Misc/WebGeolocationProviderIOS.mm:
249         * Misc/WebNSStringExtrasIOS.m:
250         * Misc/WebUIKitSupport.mm:
251         (WebKitPlatformSystemRootDirectory):
252         * WebCoreSupport/PopupMenuIOS.mm:
253         * WebCoreSupport/SearchPopupMenuIOS.cpp:
254         * WebCoreSupport/WebChromeClientIOS.h:
255         * WebCoreSupport/WebChromeClientIOS.mm:
256         * WebCoreSupport/WebFixedPositionContent.mm:
257         * WebCoreSupport/WebFrameIOS.mm:
258         * WebCoreSupport/WebGeolocation.mm:
259         * WebCoreSupport/WebInspectorClientIOS.mm:
260         * WebCoreSupport/WebMIMETypeRegistry.mm:
261         * WebCoreSupport/WebSelectionRect.m:
262         * WebCoreSupport/WebVisiblePosition.mm:
263         * WebView/WebFrameViewWAKCompatibility.m:
264         * WebView/WebPDFViewIOS.mm:
265         * WebView/WebPDFViewPlaceholder.mm:
266         * WebView/WebPlainWhiteView.h:
267         * WebView/WebPlainWhiteView.mm:
268
269 2018-10-10  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
270
271         [JSC] Rename createXXX to tryCreateXXX if it can return RefPtr
272         https://bugs.webkit.org/show_bug.cgi?id=190429
273
274         Reviewed by Saam Barati.
275
276         Use `tryCreate` or new `create`. If we use new `create`, we can use Ref<> and remove null check.
277
278         * WebView/WebPDFViewIOS.mm:
279         (-[WebPDFView finishedLoadingWithDataSource:]):
280         * WebView/WebPDFViewPlaceholder.mm:
281         (-[WebPDFViewPlaceholder _evaluateJSForDocument:]):
282
283 2018-10-02  Alex Christensen  <achristensen@webkit.org>
284
285         Remove unused linked-on-or-before-iOS5 check
286         https://bugs.webkit.org/show_bug.cgi?id=190164
287
288         Reviewed by Michael Saboff.
289
290         * Misc/WebUIKitSupport.mm:
291         (WebKitInitialize):
292         (linkedOnOrAfterIOS5): Deleted.
293
294 2018-09-17  Darin Adler  <darin@apple.com>
295
296         Use OpaqueJSString rather than JSRetainPtr inside WebKit
297         https://bugs.webkit.org/show_bug.cgi?id=189652
298
299         Reviewed by Saam Barati.
300
301         * WebView/WebPDFViewIOS.mm:
302         (-[WebPDFView finishedLoadingWithDataSource:]): Use OpaqueJSString::create.
303         * WebView/WebPDFViewPlaceholder.mm:
304         (-[WebPDFViewPlaceholder _evaluateJSForDocument:]): Ditto.
305
306 2018-08-29  Olivia Barnett  <obarnett@apple.com>
307
308         Implement the Web Share API
309         https://bugs.webkit.org/show_bug.cgi?id=171100
310         <rdar://problem/31751734>
311
312         Reviewed by Tim Horton.
313
314         * WebCoreSupport/WebChromeClientIOS.h:
315         * WebCoreSupport/WebChromeClientIOS.mm:
316         (WebChromeClientIOS::showShareSheet):
317         Empty declaration of showShareSheet.
318
319 2018-08-24  Ryosuke Niwa  <rniwa@webkit.org>
320
321         Pass in IsComposed flag to Event constructors
322         https://bugs.webkit.org/show_bug.cgi?id=188720
323         <rdar://problem/43580387>
324
325         Reviewed by Simon Fraser.
326
327         * WebView/WebPDFViewPlaceholder.mm:
328         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]): A trusted click event is composed regardless
329         of whether it's simulated or not.
330
331 2018-08-21  Ryosuke Niwa  <rniwa@webkit.org>
332
333         Replace booleans for modifier keys in UIEventWithKeyState with OptionSet<Modifier>
334         https://bugs.webkit.org/show_bug.cgi?id=188777
335
336         Reviewed by Simon Fraser.
337
338         Create MouseEvent::create with IsSimulated set to Yes; correspoding to the last argument
339         being "true" before the code change.
340
341         * WebView/WebPDFViewPlaceholder.mm:
342         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
343
344 2018-08-16  Ryosuke Niwa  <rniwa@webkit.org>
345
346         Replace canBubble and cancelable booleans in Event by enum classes
347         https://bugs.webkit.org/show_bug.cgi?id=188692
348
349         Reviewed by Alex Christensen.
350
351         * WebView/WebPDFViewPlaceholder.mm:
352         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
353
354 2018-08-13  Alex Christensen  <achristensen@webkit.org>
355
356         Use a 1-byte enum class for TextDirection
357         https://bugs.webkit.org/show_bug.cgi?id=188350
358
359         Reviewed by Simon Fraser.
360
361         * WebCoreSupport/WebFrameIOS.mm:
362         (-[WebFrame selectionRectsForCoreRange:]):
363         * WebCoreSupport/WebVisiblePosition.mm:
364         (-[WebVisiblePosition textDirection]):
365         (-[WebVisiblePosition directionIsDownstream:]):
366         * WebView/WebPDFViewIOS.mm:
367         (-[WebPDFView _checkPDFTitle]):
368
369 2018-07-04  Tim Horton  <timothy_horton@apple.com>
370
371         Introduce PLATFORM(IOSMAC)
372         https://bugs.webkit.org/show_bug.cgi?id=187315
373
374         Reviewed by Dan Bernstein.
375
376         * Misc/WebGeolocationCoreLocationProvider.mm:
377         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
378
379 2018-05-14  Wenson Hsieh  <wenson_hsieh@apple.com>
380
381         [Extra zoom mode] Google search results are excessively zoomed in
382         https://bugs.webkit.org/show_bug.cgi?id=185347
383         <rdar://problem/39999778>
384
385         Reviewed by Tim Horton.
386
387         Adds a WebKitLegacy method stub for disabled adaptation plumbing.
388
389         * WebCoreSupport/WebChromeClientIOS.h:
390         * WebCoreSupport/WebChromeClientIOS.mm:
391         (WebChromeClientIOS::dispatchDisabledAdaptationsDidChange const):
392
393 2018-05-02  Eric Carlson  <eric.carlson@apple.com>
394
395         [iOS] Provide audio route information when invoking AirPlay picker
396         https://bugs.webkit.org/show_bug.cgi?id=185199
397         <rdar://problem/39853103>
398
399         Reviewed by Jer Noble.
400
401         * WebCoreSupport/WebChromeClientIOS.h:
402         * WebCoreSupport/WebChromeClientIOS.mm:
403         (WebChromeClientIOS::showPlaybackTargetPicker): Pass route sharing policy and routing context UID.
404
405 2018-04-05  Yusuke Suzuki  <utatane.tea@gmail.com>
406
407         [WTF] Remove StaticLock
408         https://bugs.webkit.org/show_bug.cgi?id=184332
409
410         Reviewed by Mark Lam.
411
412         * WebCoreSupport/WebFixedPositionContent.mm:
413
414 2018-03-28  Zalan Bujtas  <zalan@apple.com>
415
416         Make it possible to override the screen size
417         https://bugs.webkit.org/show_bug.cgi?id=184111
418         <rdar://problem/38972181>
419
420         Reviewed by Tim Horton.
421
422         * WebCoreSupport/WebChromeClientIOS.h:
423         * WebCoreSupport/WebChromeClientIOS.mm:
424         (WebChromeClientIOS::overrideScreenSize const):
425
426 2018-03-25  Tim Horton  <timothy_horton@apple.com>
427
428         Disable geolocation prompt in minimal simulator mode
429         https://bugs.webkit.org/show_bug.cgi?id=183991
430         <rdar://problem/38845774>
431
432         Reviewed by Dan Bernstein.
433
434         * Misc/WebGeolocationCoreLocationProvider.mm:
435         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
436         * Misc/WebGeolocationProviderIOS.mm:
437         (-[WebGeolocationProviderIOS registerWebView:]):
438         (-[WebGeolocationProviderIOS initializeGeolocationForWebView:listener:]):
439         Also clean up some unnecessary nested #ifs.
440
441 2018-02-06  Don Olmstead  <don.olmstead@sony.com>
442
443         Remove WebCore/ForwardingHeaders directory
444         https://bugs.webkit.org/show_bug.cgi?id=182347
445
446         Reviewed by Keith Miller.
447
448         * Misc/WebUIKitSupport.mm:
449
450 2017-12-07  Yusuke Suzuki  <utatane.tea@gmail.com>
451
452         Use StaticLock instead of NeverDestroyed<Lock>
453         https://bugs.webkit.org/show_bug.cgi?id=180507
454
455         Reviewed by Saam Barati.
456
457         * WebCoreSupport/WebFixedPositionContent.mm:
458         (-[WebFixedPositionContent scrollOrZoomChanged:]):
459         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
460         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
461         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
462         (WebFixedPositionContentDataLock): Deleted.
463
464 2017-11-11  Megan Gardner  <megan_gardner@apple.com>
465
466         Fix a FIXMEs in WebFrameIOS
467         https://bugs.webkit.org/show_bug.cgi?id=179510
468
469         Reviewed by Darin Adler.
470
471         Removed a function that does nothing and is not needed or used anywhere, linked to a radar that is in verify.
472         This is just some easy cleanup I found while investigating other things.
473
474         * WebCoreSupport/WebFrameIOS.h:
475         * WebCoreSupport/WebFrameIOS.mm:
476         (-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Deleted.
477
478 2017-10-11  Sam Weinig  <sam@webkit.org>
479
480         Remove out-parameter variants of copyToVector
481         https://bugs.webkit.org/show_bug.cgi?id=178155
482
483         Reviewed by Tim Horton.
484
485         * Misc/WebGeolocationProviderIOS.mm:
486         (-[WebGeolocationProviderIOS _handlePendingInitialPosition:]):
487         (-[WebGeolocationProviderIOS positionChanged:]):
488         (-[WebGeolocationProviderIOS errorOccurred:]):
489         (-[WebGeolocationProviderIOS resetGeolocation]):
490
491             Replace out-parameter based copyToVector, with one that returns a Vector.
492
493 2017-10-11  Chris Dumez  <cdumez@apple.com>
494
495         Modernize Geolocation code
496         https://bugs.webkit.org/show_bug.cgi?id=178148
497
498         Reviewed by Ryosuke Niwa.
499
500         * Misc/WebGeolocationCoreLocationProvider.h:
501         * Misc/WebGeolocationCoreLocationProvider.mm:
502         (-[WebGeolocationCoreLocationProvider sendLocation:]):
503         * Misc/WebGeolocationProviderIOS.mm:
504         (-[_WebCoreLocationUpdateThreadingProxy positionChanged:]):
505
506 2017-10-04  Alex Christensen  <achristensen@webkit.org>
507
508         Remove WebCoreSystemInterface
509         https://bugs.webkit.org/show_bug.cgi?id=177916
510
511         Reviewed by Antti Koivisto.
512
513         * Misc/WebUIKitSupport.mm:
514
515 2017-10-04  Alex Christensen  <achristensen@webkit.org>
516
517         Remove unnecessary includes of WebKitSystemInterface on Cocoa platforms
518         https://bugs.webkit.org/show_bug.cgi?id=177912
519
520         Reviewed by Saam Barati.
521
522         * Misc/WebUIKitSupport.mm:
523         * WebCoreSupport/WebChromeClientIOS.mm:
524
525 2017-09-22  Chris Dumez  <cdumez@apple.com>
526
527         Use high resolution timestamp for event time
528         https://bugs.webkit.org/show_bug.cgi?id=154246
529         <rdar://problem/34333304>
530
531         Reviewed by Ryosuke Niwa.
532
533         Use WallTime / MonotonicTime instead of double type for clarity.
534
535         * WebView/WebPDFViewPlaceholder.mm:
536         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
537
538 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
539
540         [PAL] Move spi/cocoa and spi/cg directories into PAL
541         https://bugs.webkit.org/show_bug.cgi?id=175175
542
543         Reviewed by Myles C. Maxfield.
544
545         * Misc/WebNSStringExtrasIOS.m:
546         * WebCoreSupport/WebFixedPositionContent.mm:
547
548 2017-07-17  Daniel Bates  <dabates@apple.com>
549
550         Cleanup: Use OptionSet to represent marker types
551         https://bugs.webkit.org/show_bug.cgi?id=174594
552
553         Reviewed by Darin Adler.
554
555         Remove class DocumentMarker::MarkerTypes that duplicates most of functionality of OptionSet
556         and use OptionSet directly to represent a set of marker types.
557
558         No functionality changed. So, no new tests.
559
560         * WebCoreSupport/WebVisiblePosition.mm:
561         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): Update code as needed.
562         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]): Ditto.
563
564 2017-07-12  Daniel Bates  <dabates@apple.com>
565
566         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
567         https://bugs.webkit.org/show_bug.cgi?id=174427
568
569         Rubber-stamped by Brady Eidson.
570
571         * WebView/WebPDFViewPlaceholder.mm:
572         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
573
574 2017-07-09  Brady Eidson  <beidson@apple.com>
575
576         Remove some obsolete WebKitVersionChecks.
577         https://bugs.webkit.org/show_bug.cgi?id=174294
578
579         Reviewed by Dan Bernstein.
580
581         * WebView/WebPDFViewIOS.mm:
582         (-[WebPDFView drawPage:]):
583
584 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
585
586         [WTF] Move SoftLinking.h into WTF
587         https://bugs.webkit.org/show_bug.cgi?id=174000
588
589         Reviewed by Alex Christensen.
590
591         * Misc/WebGeolocationCoreLocationProvider.mm:
592         * WebView/WebPDFViewPlaceholder.mm:
593
594 2017-07-05  Brady Eidson  <beidson@apple.com>
595
596         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
597         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
598
599         Reviewed by Alex Christensen.
600
601         Adopt to the new constructor for FrameLoadRequest.
602
603         * WebView/WebPDFViewPlaceholder.mm:
604         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
605
606 2017-07-01  Tim Horton  <timothy_horton@apple.com>
607
608         Expose viewport-fit value to UIKit via viewport arguments dictionary
609         https://bugs.webkit.org/show_bug.cgi?id=174071
610         <rdar://problem/33096620>
611
612         Reviewed by Wenson Hsieh.
613
614         * WebCoreSupport/WebChromeClientIOS.mm:
615         (nameForViewportFitValue):
616         (dictionaryForViewportArguments):
617         Make use of the named constants we already have for these; the code
618         that reads this dictionary uses them, so we might as well!
619
620         Add viewport-fit -> { auto, contain, cover } to the dictionary.
621
622         * WebKit.iOS.exp:
623
624 2017-06-30  Daniel Bates  <dabates@apple.com>
625
626         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
627         https://bugs.webkit.org/show_bug.cgi?id=165160
628         <rdar://problem/29451999>
629
630         Reviewed by Brady Eidson.
631
632         Pass the document that is requesting the load to the loader.
633
634         * WebView/WebPDFViewPlaceholder.mm:
635         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
636
637 2017-06-22  Daniel Bates  <dabates@apple.com>
638
639         Make FrameLoadRequest a move-only type
640         https://bugs.webkit.org/show_bug.cgi?id=173682
641
642         Reviewed by Alex Christensen and Darin Adler.
643
644         A FrameLoadRequest groups together the information to perform a load into a single object
645         that is more manageable to pass around than its constituent parts. Code that receives a
646         FrameLoadRequest is expected to extract out the information it needs to complete its task.
647         And it does not make sense to re-use the same FrameLoadRequest object for more than one
648         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
649
650         * WebView/WebPDFViewPlaceholder.mm:
651         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
652
653 2017-06-21  Daniel Bates  <dabates@apple.com>
654
655         Cleanup FrameLoadRequest
656         https://bugs.webkit.org/show_bug.cgi?id=173564
657         <rdar://problem/32903570>
658
659         Reviewed by Brent Fulgham.
660
661         Move FrameLoadRequest instantiation into a local variable and use C++11 brace initialization
662         syntax to make it easier to identify the arguments passed to FrameLoader::loadFrameRequest().
663
664         * WebView/WebPDFViewPlaceholder.mm:
665         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
666
667 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
668
669         [iOS DnD] Add a hook to perform two-step drops in editable content
670         https://bugs.webkit.org/show_bug.cgi?id=172992
671         <rdar://problem/32590174>
672
673         Reviewed by Tim Horton.
674
675         Add an empty implementation of performTwoStepDrop for WebDefaultUIKitDelegate. See WebCore ChangeLogs.
676
677         * DefaultDelegates/WebDefaultUIKitDelegate.m:
678         (-[WebDefaultUIKitDelegate performTwoStepDrop:atDestination:isMove:]):
679         * WebView/WebUIKitDelegate.h:
680
681 2017-06-07  Zalan Bujtas  <zalan@apple.com>
682
683         [iOS WK1 WebThread] Do not call out to the main thread for device orientation.
684         https://bugs.webkit.org/show_bug.cgi?id=173044
685         <rdar://problem/32449338>
686
687         Reviewed by Tim Horton.
688
689         On iOS WK1 we could end up with an inconsistent state, where the web thread is inside
690         the Document's constructor waiting on a delegate callback on the main thread
691         while the main thread executes a pending task that assumes a valid Document.
692         This patch ensures that we don't call out to the main thread from the Document's constructor.
693  
694         * WebCoreSupport/WebChromeClientIOS.mm:
695         (WebChromeClientIOS::deviceOrientation): Caches deviceOrientation on the WebView so that we
696         don't have to lift the WebThread lock. 
697
698 2017-05-12  Chris Dumez  <cdumez@apple.com>
699
700         Drop uses of PassRefPtr in WebKit/mac
701         https://bugs.webkit.org/show_bug.cgi?id=172066
702
703         Reviewed by Sam Weinig.
704
705         Build fix.
706
707         * Misc/WebGeolocationProviderIOS.mm:
708
709 2017-05-01  Chris Dumez  <cdumez@apple.com>
710
711         Remove some usage of PassRefPtr in editing code
712         https://bugs.webkit.org/show_bug.cgi?id=171490
713
714         Reviewed by Darin Adler.
715
716         * WebCoreSupport/WebFrameIOS.mm:
717         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
718         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
719
720 2017-04-14  Wenson Hsieh  <wenson_hsieh@apple.com>
721
722         [WK2] Support Icon creation from file URLs on iOS
723         https://bugs.webkit.org/show_bug.cgi?id=170809
724         <rdar://problem/31286130>
725
726         Reviewed by Tim Horton.
727
728         Adjust for changes in the ChromeClient in WebCore.
729
730         * WebCoreSupport/WebChromeClientIOS.h:
731         * WebCoreSupport/WebChromeClientIOS.mm:
732         (WebChromeClientIOS::createIconForFiles):
733
734 2017-03-02  Sam Weinig  <sam@webkit.org>
735
736         Rename htmlediting.h/cpp to Editing.h/cpp
737         https://bugs.webkit.org/show_bug.cgi?id=169103
738
739         Reviewed by Alex Christensen.
740
741         * WebCoreSupport/WebFrameIOS.mm:
742         * WebCoreSupport/WebVisiblePosition.mm:
743
744 2017-02-23  Aakash Jain  <aakash_jain@apple.com>
745
746         Move instance member from WebFixedPositionContent to implementation file
747         https://bugs.webkit.org/show_bug.cgi?id=168766
748
749         Reviewed by Tim Horton.
750
751         * WebCoreSupport/WebFixedPositionContent.h: Moving instance member to implementation file.
752         * WebCoreSupport/WebFixedPositionContent.mm: Ditto.
753
754 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
755
756         Move instance members from WebPDFView to implementation file
757         https://bugs.webkit.org/show_bug.cgi?id=168765
758
759         Reviewed by Tim Horton.
760
761         * WebView/WebPDFViewIOS.h: Moving instance members to implementation file.
762         * WebView/WebPDFViewIOS.mm: Ditto.
763
764 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
765
766         Export m_isLoggingEnabled symbol from MemoryMeasure.h
767         https://bugs.webkit.org/show_bug.cgi?id=168760
768
769         Reviewed by Alexey Proskuryakov.
770
771         * WebKit.iOS.exp: Exporting m_isLoggingEnabled symbol.
772
773 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
774
775         Move instance members from WebPDFViewPlaceholder.h to implementation file
776         https://bugs.webkit.org/show_bug.cgi?id=168705
777
778         Reviewed by Tim Horton.
779
780         * WebView/WebPDFViewPlaceholder.h: Moving instance members to implementation file.
781         * WebView/WebPDFViewPlaceholder.mm: Ditto.
782
783 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
784
785         Move instance members from WebSelectionRect.h to implementation file
786         https://bugs.webkit.org/show_bug.cgi?id=168732
787
788         Reviewed by Tim Horton.
789
790         * WebCoreSupport/WebSelectionRect.h: Moving instance members to implementation file.
791         * WebCoreSupport/WebSelectionRect.m: Ditto.
792
793 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
794
795         Move iOS specific symbols to WebKit.ios.exp
796         https://bugs.webkit.org/show_bug.cgi?id=168726
797
798         Reviewed by Alexey Proskuryakov.
799
800         * WebKit.iOS.exp:
801
802 2017-02-21  Commit Queue  <commit-queue@webkit.org>
803
804         Unreviewed, rolling out r212768.
805         https://bugs.webkit.org/show_bug.cgi?id=168698
806
807         Rolling out since this would break other projects. (Requested
808         by aakashjain on #webkit).
809
810         Reverted changeset:
811
812         "[iOS] Remove old WebKit1 MemoryMeasure helper."
813         https://bugs.webkit.org/show_bug.cgi?id=168675
814         http://trac.webkit.org/changeset/212768
815
816 2017-02-21  Andreas Kling  <akling@apple.com>
817
818         [iOS] Remove old WebKit1 MemoryMeasure helper.
819         <https://webkit.org/b/168675>
820
821         Reviewed by Sam Weinig.
822
823         Remove the MemoryMeasure logging helper from the WebKit1 days. It was using an old way
824         of measuring memory, and we were only using it in a single place anyway.
825
826         * Misc/MemoryMeasure.h: Removed.
827         * Misc/MemoryMeasure.mm: Removed.
828         * WebKit.iOS.exp:
829
830 2017-02-21  Andreas Kling  <akling@apple.com>
831
832         [iOS] WebKit1 should use shared memory pressure handler code.
833         <https://webkit.org/b/168653>
834
835         Reviewed by Antti Koivisto.
836
837         * Misc/WebUIKitSupport.mm:
838         (WebKitInitialize): Don't unconditionally install a memory warning handler just
839         because the framework is loaded.
840
841 2017-02-20  Alexey Proskuryakov  <ap@apple.com>
842
843         List of WebCore symbols to re-export from WebKitLegacy should be built automatically
844         https://bugs.webkit.org/show_bug.cgi?id=168342
845         rdar://problem/26182266
846
847         Reviewed by Tim Horton.
848
849         * WebKit.iOS.exp: Removed manually added symbols.
850
851 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
852
853         Stop exporting WebPluginController from WebKit
854         https://bugs.webkit.org/show_bug.cgi?id=168603
855
856         Reviewed by Alexey Proskuryakov.
857
858         * WebKit.iOS.exp:
859
860 2017-02-10  Aakash Jain  <aakash_jain@apple.com>
861
862         WebKitLegacy doesn't re-export various symbols from WebCore required by clients
863         https://bugs.webkit.org/show_bug.cgi?id=168158
864         <rdar://problem/24527933>
865
866         Reviewed by Dan Bernstein.
867
868         * WebKit.iOS.exp: Exporting various symbols which are required by clients. This 
869         would enable clients to stop linking against WebCore and instead link against WebKit.
870
871 2017-02-02  Yongjun Zhang  <yongjun_zhang@apple.com>
872
873         In iOS, we should take background assertion when accessing localstorage databases.
874         https://bugs.webkit.org/show_bug.cgi?id=165478
875
876         Move application background task handling code from WebKit to WebCore.
877
878         Reviewed by Brady Eidson.
879
880         * Misc/WebUIKitSupport.h: Remove several methods that only used internally for background
881             task handling. They are not needed in WebKit any more since background task handling
882             is moved to WebCore and wrapped in WebBackgroundTaskController class.
883         * Misc/WebUIKitSupport.mm:
884         (WebKitSetInvalidWebBackgroundTaskIdentifier): Instead of storing the value in a static global
885             variable, save it in WebBackgroundTaskController.
886         (WebKitSetStartBackgroundTaskBlock): Ditto.
887         (WebKitSetEndBackgroundTaskBlock): Ditto.
888
889 2017-01-25  Aakash Jain  <aakash_jain@apple.com>
890
891         LoadWebLocalizedStrings method should be moved in correct file
892         https://bugs.webkit.org/show_bug.cgi?id=167393
893
894         Reviewed by Alexey Proskuryakov.
895
896         * Misc/WebUIKitSupport.mm:
897         (LoadWebLocalizedStringsTimerCallback): Moved from WebLocalizableStrings.mm
898         (LoadWebLocalizedStrings): Moved from WebLocalizableStrings.mm
899
900 2017-01-21  Darin Adler  <darin@apple.com>
901
902         Remove PassRefPtr from "page" directory of WebCore, also deploy references
903         https://bugs.webkit.org/show_bug.cgi?id=167224
904
905         Reviewed by Chris Dumez.
906
907         * WebCoreSupport/WebChromeClientIOS.h: Update for changes to ChromeClient.
908         * WebCoreSupport/WebChromeClientIOS.mm:
909         (WebChromeClientIOS::runJavaScriptAlert): Ditto.
910         (WebChromeClientIOS::runJavaScriptConfirm): Ditto.
911         (WebChromeClientIOS::runJavaScriptPrompt): Ditto.
912         (WebChromeClientIOS::setNeedsScrollNotifications): Ditto.
913         (WebChromeClientIOS::observedContentChange): Ditto.
914         (WebChromeClientIOS::clearContentChangeObservers): Ditto.
915         (WebChromeClientIOS::notifyRevealedSelectionByScrollingFrame): Ditto.
916         (WebChromeClientIOS::elementDidFocus): Ditto.
917         (WebChromeClientIOS::elementDidBlur): Ditto.
918         (WebChromeClientIOS::createPopupMenu): Ditto.
919         (WebChromeClientIOS::createSearchPopupMenu): Ditto.
920         (WebChromeClientIOS::attachRootGraphicsLayer): Ditto.
921
922 2017-01-21  Simon Fraser  <simon.fraser@apple.com>
923
924         Remove the unused -[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]
925         https://bugs.webkit.org/show_bug.cgi?id=167273
926
927         Reviewed by Alex Christensen.
928
929         This function was added for an experiment, but is no longer used, so remove it.
930
931         * WebCoreSupport/WebFixedPositionContent.h:
932         * WebCoreSupport/WebFixedPositionContent.mm:
933         (anchorEdgeFlagsForAnchorEdge): Deleted.
934         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]): Deleted.
935
936 2017-01-15  Darin Adler  <darin@apple.com>
937
938         Remove PassRefPtr from "loader" directory of WebCore
939         https://bugs.webkit.org/show_bug.cgi?id=167055
940
941         Reviewed by Alex Christensen.
942
943         * WebCoreSupport/WebChromeClientIOS.h: Updated runOpenPanel to take references.
944         Made class final and most functions private and final.
945         * WebCoreSupport/WebChromeClientIOS.mm:
946         (WebChromeClientIOS::runOpenPanel): Updated to take references.
947
948 2016-12-30  Darin Adler  <darin@apple.com>
949
950         Remove PassRefPtr use from the "dom" directory, related cleanup
951         https://bugs.webkit.org/show_bug.cgi?id=166569
952
953         Reviewed by Alex Christensen.
954
955         * WebView/WebPDFViewIOS.mm:
956         (-[WebPDFView _checkPDFTitle]): Use aggregate-style syntax for StringWithDirection.
957         Not needed now, but useful later if we ever can get rid of the explicit constructors.
958
959 2016-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
960
961         Stop reinterpret_casting UBreakIterators to the undefined type TextBreakIterator
962         https://bugs.webkit.org/show_bug.cgi?id=165931
963
964         Reviewed by Alex Christensen.
965
966         * Misc/WebUIKitSupport.mm:
967
968 2016-11-01  Alex Christensen  <achristensen@webkit.org>
969
970         Remove PassRefPtr from DumpRenderTree
971         https://bugs.webkit.org/show_bug.cgi?id=164307
972
973         Reviewed by Sam Weinig.
974
975         * Misc/WebGeolocationProviderIOS.mm:
976
977 2016-10-26  Dan Bernstein  <mitz@apple.com>
978
979         Tried to fix the iOS build after r207934.
980
981         * WebCoreSupport/WebFrameIOS.mm:
982         (-[WebFrame closestCaretRectInMarkedTextRangeForPoint:]): Removed commented-out code and
983           a comment that had a typo in it and looked like a bad Doxygen trailing comment.
984
985 2016-08-16  Myles C. Maxfield  <mmaxfield@apple.com>
986
987         Migrate line breaking code from ints to Optional<unsigned>s
988         https://bugs.webkit.org/show_bug.cgi?id=160859
989
990         Reviewed by Darin Adler.
991
992         * Misc/WebUIKitSupport.mm:
993         (WebKitGetLastLineBreakInBuffer):
994
995 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
996
997         Remove unused includes of wtf headers
998         https://bugs.webkit.org/show_bug.cgi?id=160839
999
1000         Reviewed by Alex Christensen.
1001
1002         * Misc/WebGeolocationCoreLocationProvider.h:
1003         * WebView/WebPDFViewIOS.mm:
1004         * WebView/WebPlainWhiteView.mm:
1005
1006 2016-08-09  George Ruan  <gruan@apple.com>
1007
1008         Implement functionality of media capture on iOS
1009         https://bugs.webkit.org/show_bug.cgi?id=158945
1010         <rdar://problem/26893343>
1011
1012         Reviewed by Tim Horton.
1013
1014         * DefaultDelegates/WebDefaultUIKitDelegate.m:
1015         (-[WebDefaultUIKitDelegate
1016         webView:runOpenPanelForFileButtonWithResultListener:configuration:]):
1017         Use a dictionary instead of passing each parameter in separately.
1018         (-[WebDefaultUIKitDelegate webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:acceptMIMETypes:]): Deleted.
1019         * WebCoreSupport/WebChromeClientIOS.mm:
1020         (webMediaCaptureType): Converts from WebCore::MediaCaptureType to
1021         WebMediaCaptureType.
1022         (WebChromeClientIOS::runOpenPanel):
1023         * WebKit.iOS.exp: Expose NSDictionary keys for
1024         runOpenPanelForFileButtonWithResultListener.
1025         * WebView/WebUIKitDelegate.h: Add WebMediaCaptureType enum and
1026         NSDictionary keys for
1027         runOpenPanelForFileButtonWithResultListener.
1028
1029 2016-07-11  Enrica Casucci  <enrica@apple.com>
1030
1031         Add synthetic click origin to WKNavigationAction.
1032         https://bugs.webkit.org/show_bug.cgi?id=159584
1033         rdar://problem/25610422
1034
1035         Reviewed by Tim Horton.
1036
1037         * WebView/WebPDFViewPlaceholder.mm:
1038         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1039
1040 2016-06-23  Alex Christensen  <achristensen@webkit.org>
1041
1042         Remove unused didCancelAuthenticationChallenge
1043         https://bugs.webkit.org/show_bug.cgi?id=158819
1044
1045         Reviewed by David Kilzer.
1046
1047         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
1048         (-[WebDefaultResourceLoadDelegate webView:resource:didReceiveAuthenticationChallenge:fromDataSource:]):
1049         (-[WebDefaultResourceLoadDelegate webView:resource:canAuthenticateAgainstProtectionSpace:forDataSource:]):
1050         (-[WebDefaultResourceLoadDelegate webView:resource:didCancelAuthenticationChallenge:fromDataSource:]): Deleted.
1051
1052 2016-06-02  David Kilzer  <ddkilzer@apple.com>
1053
1054         Fix typo in -[WebDefaultUIKitDelegate deleteFromInputwithFlags:]
1055         <https://webkit.org/b/158323>
1056         <rdar://problem/26549165>
1057
1058         Reviewed by Andy Estes.
1059
1060         * DefaultDelegates/WebDefaultUIKitDelegate.m:
1061         (-[WebDefaultUIKitDelegate deleteFromInputwithFlags:]): Rename...
1062         (-[WebDefaultUIKitDelegate deleteFromInputWithFlags:]): ...to this.
1063
1064 2016-05-15  Darin Adler  <darin@apple.com>
1065
1066         More CTTE and other cleanups for HTML editing header
1067         https://bugs.webkit.org/show_bug.cgi?id=157722
1068
1069         Reviewed by Chris Dumez.
1070
1071         * WebCoreSupport/WebFrameIOS.mm:
1072         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]): auto
1073         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]): auto
1074
1075 2016-05-14  Darin Adler  <darin@apple.com>
1076
1077         CTTE for the HTML editing header
1078         https://bugs.webkit.org/show_bug.cgi?id=157676
1079
1080         Reviewed by Chris Dumez.
1081
1082         * WebCoreSupport/WebFrameIOS.mm:
1083         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]): Update since
1084         lastOffsetForEditing takes a reference now. Seems like this code should be in WebCore.
1085         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]): Ditto.
1086
1087 2016-05-13  Beth Dakin  <bdakin@apple.com>
1088
1089         Add dyldSPI.h for linked on or after checks, and add one for link preview
1090         https://bugs.webkit.org/show_bug.cgi?id=157401
1091         -and corresponding-
1092         rdar://problem/26253396
1093
1094         Reviewed by Darin Adler.
1095
1096         This patch removes DynamicLinkerSPI.h and replaces it with 
1097         wtf/spi/darwin/dyldSPI.h
1098
1099         * Misc/WebUIKitSupport.mm:
1100
1101 2016-05-06  Simon Fraser  <simon.fraser@apple.com>
1102
1103         Enable IOS_TEXT_AUTOSIZING on Mac and make it testable
1104         https://bugs.webkit.org/show_bug.cgi?id=157432
1105         rdar://problem/16406720
1106
1107         Reviewed by Dean Jackson.
1108
1109         Enable IOS_TEXT_AUTOSIZING on Mac so it can be tested.
1110
1111         Make the setTextAutosizingEnabled() Setting work, and plumb it through WK1 and WK2
1112         preferences for WTR and DRT. Make textAutosizingWindowSizeOverride() work, for layout tests.
1113         These two settings are shared with TEXT_AUTOSIZING.
1114
1115         Add a TextAutosizing log channel, which is useful for generated -expected.html results.
1116
1117         Move adjustComputedFontSizesOnBlocks() and related code from RenderObject to RenderElement
1118         without changes.
1119
1120         An implication of this set of changes is that the way clients enable text autosizing
1121         has changed. Previously, they set the "MinimumZoomFontSize" preference to 0.
1122         Settings::defaultMinimumZoomFontSize() used to do this in order to enable text autosizing
1123         on iPhone only, not iPad.
1124
1125         Now the preferred technique is to leave minimumZoomFontSize alone, and to use textAutosizingEnabled()
1126         instead. Settings::defaultTextAutosizingEnabled() now does the check for iPhone.
1127
1128         UIWebView calls WebKitGetMinimumZoomFontSize() to setup the default minimum font zoom size,
1129         which will now always return 15, but had no other code that toggled this. So it's safe to just rely
1130         on Settings::defaultTextAutosizingEnabled() doing the right thing for iPhone/iPad.
1131
1132         * Misc/WebUIKitSupport.mm:
1133         (WebKitGetMinimumZoomFontSize):
1134
1135 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
1136
1137         URL Parsing should signal failure for illegal IDN
1138         https://bugs.webkit.org/show_bug.cgi?id=154945
1139         <rdar://problem/8014795>
1140
1141         Reviewed by Brent Fulgham.
1142
1143         * Misc/WebNSStringExtrasIOS.m:
1144         (-[NSString _web_possibleURLsForForUserTypedString:]):
1145         * WebView/WebPDFViewPlaceholder.mm:
1146         (-[WebPDFViewPlaceholder _updateTitleForURL:]):
1147
1148 2016-03-15  Chris Dumez  <cdumez@apple.com>
1149
1150         Unreviewed, rolling out r198203.
1151
1152         Favorites view is no longer loading on iOS
1153
1154         Reverted changeset:
1155
1156         "URL Parsing should signal failure for illegal IDN"
1157         https://bugs.webkit.org/show_bug.cgi?id=154945
1158         http://trac.webkit.org/changeset/198203
1159
1160 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
1161
1162         URL Parsing should signal failure for illegal IDN
1163         https://bugs.webkit.org/show_bug.cgi?id=154945
1164         <rdar://problem/8014795>
1165
1166         Reviewed by Brent Fulgham.
1167
1168         * Misc/WebNSStringExtrasIOS.m:
1169         (-[NSString _web_possibleURLsForForUserTypedString:]):
1170         * WebView/WebPDFViewPlaceholder.mm:
1171         (-[WebPDFViewPlaceholder _updateTitleForURL:]):
1172
1173 2016-03-05  Chris Dumez  <cdumez@apple.com>
1174
1175         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
1176         https://bugs.webkit.org/show_bug.cgi?id=155035
1177
1178         Reviewed by Darin Adler.
1179
1180         Update runtime application checks.
1181
1182         * WebCoreSupport/WebChromeClientIOS.mm:
1183
1184 2016-02-17  David Kilzer  <ddkilzer@apple.com>
1185
1186         [iOS WK1] NSTimer in WebGeolocationProviderIOS.mm fires on the main thread without the WebThreadLock
1187         <http://webkit.org/b/154347>
1188         <rdar://problem/19360382>
1189
1190         Reviewed by Andy Estes.
1191
1192         This isn't testable because the GeolocationClientMock in WebCore
1193         bypasses this code in WebKit1.
1194
1195         * Misc/WebGeolocationProviderIOS.mm:
1196         (-[WebGeolocationProviderIOS _handlePendingInitialPosition:]):
1197         Assert that this is always called on the WebThread.
1198         (-[WebGeolocationProviderIOS registerWebView:]): Register the
1199         NSTimer on the WebThread NSRunLoop.
1200
1201 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
1202
1203         Remove TextRun::allowsRoundingHacks()
1204         https://bugs.webkit.org/show_bug.cgi?id=153185
1205
1206         Reviewed by Simon Fraser.
1207
1208         * Misc/WebUIKitSupport.mm:
1209         (WebKitInitialize): Deleted.
1210
1211 2016-01-13  Chris Dumez  <cdumez@apple.com>
1212
1213         Unreviewed, rolling out r194900.
1214
1215         Roll back in as this did not actually regress PLT
1216
1217         Reverted changeset:
1218
1219         "Unreviewed, rolling out r194826."
1220         https://bugs.webkit.org/show_bug.cgi?id=153020
1221         http://trac.webkit.org/changeset/194900
1222
1223 2016-01-12  Commit Queue  <commit-queue@webkit.org>
1224
1225         Unreviewed, rolling out r194826.
1226         https://bugs.webkit.org/show_bug.cgi?id=153020
1227
1228         Appears to have regressed PLT (Requested by kling on #webkit).
1229
1230         Reverted changeset:
1231
1232         "Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
1233         cont'd"
1234         https://bugs.webkit.org/show_bug.cgi?id=152902
1235         http://trac.webkit.org/changeset/194826
1236
1237 2016-01-10  Andreas Kling  <akling@apple.com>
1238
1239         Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL cont'd
1240         <https://webkit.org/b/152902>
1241
1242         Reviewed by Andy Estes.
1243
1244         * WebCoreSupport/WebFixedPositionContent.mm:
1245         (WebFixedPositionContentDataLock):
1246
1247 2015-12-31  Andy Estes  <aestes@apple.com>
1248
1249         Replace WTF::move with WTFMove
1250         https://bugs.webkit.org/show_bug.cgi?id=152601
1251
1252         Reviewed by Brady Eidson.
1253
1254         * WebCoreSupport/WebFixedPositionContent.mm:
1255         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
1256         * WebCoreSupport/WebInspectorClientIOS.mm:
1257         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1258
1259 2015-12-20  Dan Bernstein  <mitz@apple.com>
1260
1261         Remove unused setToolbarHeight
1262         https://bugs.webkit.org/show_bug.cgi?id=152466
1263
1264         Reviewed by Darin Adler.
1265
1266         * WebCoreSupport/WebInspectorClientIOS.mm:
1267         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
1268
1269 2015-12-18  Simon Fraser  <simon.fraser@apple.com>
1270
1271         Turn off "shrink-to-fit" viewport scaling in UIWebViews
1272         https://bugs.webkit.org/show_bug.cgi?id=152451
1273         rdar://problem/23960882
1274
1275         Reviewed by Tim Horton.
1276         
1277         Disable the "shrink to fit" behavior in UIWebViews. This disables it entirely,
1278         even when the page has "shrink-to-fit=yes" in the viewport meta tag.
1279         
1280         Not testable because we can't test actual UIWebView scaling behavior.
1281
1282         * WebCoreSupport/WebChromeClientIOS.mm:
1283         (dictionaryForViewportArguments):
1284
1285 2015-11-07  Simon Fraser  <simon.fraser@apple.com>
1286
1287         Remove ColorSpace argument to all the drawing calls
1288         https://bugs.webkit.org/show_bug.cgi?id=150967
1289
1290         Reviewed by Darin Adler.
1291
1292         Since the -webkit-color-correction CSS property was removed in r188202, and ColorSpaceDeviceRGB
1293         and ColorSpaceSRGB are functionally equivalent, we can remove all the ColorSpace arguments passed
1294         to drawing functions, and remove RenderStyle::colorSpace(), which was hardcoded to return ColorSpaceSRGB.
1295
1296         * WebView/WebPDFViewIOS.mm:
1297         (-[WebPDFView drawPage:]):
1298         * WebView/WebPlainWhiteView.mm:
1299
1300 2015-11-02  Andy Estes  <aestes@apple.com>
1301
1302         Fixed the iOS build after r191904.
1303
1304         * WebCoreSupport/WebChromeClientIOS.mm:
1305         (WebChromeClientIOS::screenSize):
1306
1307 2015-10-31  Andy Estes  <aestes@apple.com>
1308
1309         Replace iOS-only WebKitSystemInterface calls with SPI
1310         https://bugs.webkit.org/show_bug.cgi?id=150763
1311
1312         Reviewed by Darin Adler.
1313
1314         * Misc/WebUIKitSupport.mm:
1315         (linkedOnOrAfterIOS5): Used dyld_get_program_sdk_version() instead of iosExecutableWasLinkedOnOrAfterVersion().
1316         (WebKitGetMinimumZoomFontSize): Used Settings::defaultMinimumZoomFontSize() instead of WKGetMinimumZoomFontSize().
1317         * WebCoreSupport/WebChromeClientIOS.mm:
1318         (WebChromeClientIOS::screenSize): Used screenSize() instead of WKGetScreenSize().
1319
1320 2015-11-02  Commit Queue  <commit-queue@webkit.org>
1321
1322         Unreviewed, rolling out r191902.
1323         https://bugs.webkit.org/show_bug.cgi?id=150811
1324
1325         This change broke iOS builders (Requested by ryanhaddad on
1326         #webkit).
1327
1328         Reverted changeset:
1329
1330         "Replace iOS-only WebKitSystemInterface calls with SPI"
1331         https://bugs.webkit.org/show_bug.cgi?id=150763
1332         http://trac.webkit.org/changeset/191902
1333
1334 2015-10-31  Andy Estes  <aestes@apple.com>
1335
1336         Replace iOS-only WebKitSystemInterface calls with SPI
1337         https://bugs.webkit.org/show_bug.cgi?id=150763
1338
1339         Reviewed by Darin Adler.
1340
1341         * Misc/WebUIKitSupport.mm:
1342         (linkedOnOrAfterIOS5): Used dyld_get_program_sdk_version() instead of iosExecutableWasLinkedOnOrAfterVersion().
1343         (WebKitGetMinimumZoomFontSize): Used Settings::defaultMinimumZoomFontSize() instead of WKGetMinimumZoomFontSize().
1344         * WebCoreSupport/WebChromeClientIOS.mm:
1345         (WebChromeClientIOS::screenSize): Used screenSize() instead of WKGetScreenSize().
1346
1347 2015-10-14  Zhuo Li  <zachli@apple.com>
1348
1349         Augment <input type=search>’s recent search history with the time each entry was added,
1350         in order to allow time-based clearing of search history.
1351         https://bugs.webkit.org/show_bug.cgi?id=148388.
1352
1353         Reviewed by Darin Adler.
1354
1355         Replace Vector<String> with Vector<RecentSearch>, where RecentSearch is a struct
1356         that consists search string and time, for recent searches in order to store additional time information.
1357
1358         * WebCoreSupport/SearchPopupMenuIOS.cpp:
1359         (SearchPopupMenuIOS::saveRecentSearches):
1360         (SearchPopupMenuIOS::loadRecentSearches):
1361         * WebCoreSupport/SearchPopupMenuIOS.h:
1362
1363 2015-09-17  Brian Burg  <bburg@apple.com>
1364
1365         ASSERT(!m_frontendRouter->hasLocalFrontend()) when running Web Inspector tests
1366         https://bugs.webkit.org/show_bug.cgi?id=149006
1367
1368         Reviewed by Joseph Pecoraro.
1369
1370         * WebCoreSupport/WebInspectorClientIOS.mm:
1371         (WebInspectorClient::closeLocalFrontend): Deleted.
1372         (WebInspectorFrontendClient::disconnectFromBackend): Deleted.
1373
1374 2015-09-12  Brian Burg  <bburg@apple.com>
1375
1376         Web Inspector: disambiguate inspected/frontend controllers and pages in backend code
1377         https://bugs.webkit.org/show_bug.cgi?id=149071
1378
1379         Reviewed by Joseph Pecoraro.
1380
1381         * WebCoreSupport/WebInspectorClientIOS.mm:
1382         (WebInspectorClient::WebInspectorClient):
1383         (WebInspectorClient::inspectedPageDestroyed): Renamed.
1384         (WebInspectorClient::openLocalFrontend): Renamed.
1385         (WebInspectorClient::closeLocalFrontend): Renamed.
1386         (WebInspectorClient::inspectorDestroyed): Deleted.
1387         (WebInspectorClient::openInspectorFrontend): Deleted.
1388         (WebInspectorClient::closeInspectorFrontend): Deleted.
1389         (WebInspectorClient::showInspectorIndication):
1390         (WebInspectorClient::hideInspectorIndication):
1391         (WebInspectorClient::didSetSearchingForNode):
1392         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1393
1394 2015-08-17  Filip Pizlo  <fpizlo@apple.com>
1395
1396         Replace all remaining uses of WTF::Mutex with WTF::Lock
1397         https://bugs.webkit.org/show_bug.cgi?id=148089
1398
1399         Reviewed by Geoffrey Garen.
1400
1401         * WebCoreSupport/WebFixedPositionContent.mm:
1402         (WebFixedPositionContentDataLock):
1403         (-[WebFixedPositionContent scrollOrZoomChanged:]):
1404         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
1405         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
1406         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
1407         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
1408
1409 2015-08-13  Tim Horton  <timothy_horton@apple.com>
1410
1411         Refactor and improve TextIndicator to prepare for tests
1412         https://bugs.webkit.org/show_bug.cgi?id=147622
1413
1414         Reviewed by Simon Fraser.
1415
1416         * WebCoreSupport/WebFrameIOS.mm:
1417         (-[WebFrame closestCaretRectInMarkedTextRangeForPoint:]):
1418         Adjust to Range method renames.
1419
1420 2015-08-05  Filip Pizlo  <fpizlo@apple.com>
1421
1422         Unreviewed, roll out http://trac.webkit.org/changeset/187972.
1423
1424         * WebCoreSupport/WebFixedPositionContent.mm:
1425         (WebFixedPositionContentDataLock):
1426         (-[WebFixedPositionContent scrollOrZoomChanged:]):
1427         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
1428         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
1429         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
1430         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
1431
1432 2015-08-04  Filip Pizlo  <fpizlo@apple.com>
1433
1434         Rename Mutex to DeprecatedMutex
1435         https://bugs.webkit.org/show_bug.cgi?id=147675
1436
1437         Reviewed by Geoffrey Garen.
1438
1439         * WebCoreSupport/WebFixedPositionContent.mm:
1440         (WebFixedPositionContentDataLock):
1441         (-[WebFixedPositionContent scrollOrZoomChanged:]):
1442         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
1443         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
1444         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
1445         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
1446
1447 2015-08-04  Anders Carlsson  <andersca@apple.com>
1448
1449         Remove database thread pause code
1450         https://bugs.webkit.org/show_bug.cgi?id=147669
1451
1452         Reviewed by Daniel Bates.
1453
1454         * Misc/WebUIKitSupport.mm:
1455         (WebKitSetBackgroundAndForegroundNotificationNames):
1456         (applicationDidEnterBackground): Deleted.
1457         (applicationWillEnterForeground): Deleted.
1458
1459 2015-07-21  Tim Horton  <timothy_horton@apple.com>
1460
1461         Expose shrink-wrapping as UIKit support SPI
1462         https://bugs.webkit.org/show_bug.cgi?id=147148
1463         <rdar://problem/21920008>
1464
1465         * WebKit.iOS.exp:
1466         Also export.
1467
1468 2015-07-21  Tim Horton  <timothy_horton@apple.com>
1469
1470         Expose shrink-wrapping as UIKit support SPI
1471         https://bugs.webkit.org/show_bug.cgi?id=147148
1472         <rdar://problem/21920008>
1473
1474         Reviewed by Simon Fraser.
1475
1476         * Misc/WebUIKitSupport.h:
1477         * Misc/WebUIKitSupport.mm:
1478         (WebKitCreatePathWithShrinkWrappedRects):
1479
1480 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
1481
1482         iOS WebKitLegacy should match WebKit2's viewport behavior
1483         https://bugs.webkit.org/show_bug.cgi?id=146564
1484         <rdar://problem/20574017>
1485
1486         Reviewed by Brent Fulgham.
1487
1488         * WebCoreSupport/WebChromeClientIOS.mm:
1489         (dictionaryForViewportArguments):
1490
1491 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
1492
1493         iOS WebKitLegacy should match WebKit2's viewport behavior
1494         https://bugs.webkit.org/show_bug.cgi?id=146540
1495         <rdar://problem/20574017>
1496
1497         Reviewed by Dan Bernstein.
1498
1499         * WebKit.iOS.exp:
1500
1501 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
1502
1503         Unreviewed, attempt to fix the iOS build after r185968.
1504
1505         * WebCoreSupport/WebInspectorClientIOS.mm:
1506         (WebInspectorFrontendClient::startWindowDrag):
1507
1508 2015-06-02  Brady Eidson  <beidson@apple.com>
1509
1510         WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
1511         rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
1512
1513         Reviewed by Alex Christensen.
1514
1515         * WebView/WebPDFViewPlaceholder.mm:
1516         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1517
1518 2015-05-25  Dan Bernstein  <mitz@apple.com>
1519
1520         ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
1521         https://bugs.webkit.org/show_bug.cgi?id=145372
1522
1523         Reviewed by Sam Weinig.
1524
1525         * Misc/WebGeolocationCoreLocationProvider.mm:
1526         (-[WebGeolocationCoreLocationProvider initWithListener:]): Removed use of ASSERT_MAIN_THREAD.
1527         (-[WebGeolocationCoreLocationProvider dealloc]): Ditto.
1528         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]): Ditto.
1529         (-[WebGeolocationCoreLocationProvider start]): Ditto.
1530         (-[WebGeolocationCoreLocationProvider stop]): Ditto.
1531         (-[WebGeolocationCoreLocationProvider setEnableHighAccuracy:]): Ditto.
1532
1533 2015-04-28  Brady Eidson  <beidson@apple.com>
1534
1535         Consolidate most "frame load" arguments into FrameLoadRequest.
1536         https://bugs.webkit.org/show_bug.cgi?id=144276
1537
1538         Reviewed by Alexey Proskuryakov.
1539
1540         * WebView/WebPDFViewPlaceholder.mm:
1541         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1542
1543 2015-04-13  Beth Dakin  <bdakin@apple.com>
1544
1545         Add force property to MouseEvents
1546         https://bugs.webkit.org/show_bug.cgi?id=143569
1547         -and corresponding-
1548         rdar://problem/20472954
1549
1550         Reviewed by Darin Adler.
1551
1552         Send the appropriate force with this simulated click event.
1553         * WebView/WebPDFViewPlaceholder.mm:
1554         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1555
1556 2015-03-31  Myles C. Maxfield  <mmaxfield@apple.com>
1557
1558         Move ExpansionBehaviorFlags and TextDirection to their own file
1559         https://bugs.webkit.org/show_bug.cgi?id=143273
1560
1561         Reviewed by Simon Fraser.
1562
1563         This is a mechanical change. It just moves code around.
1564
1565         This is getting ready for https://bugs.webkit.org/show_bug.cgi?id=142608
1566
1567         * WebCoreSupport/WebFrameIOS.mm:
1568         * WebCoreSupport/WebVisiblePosition.mm:
1569
1570 2015-03-09  David Kilzer  <ddkilzer@apple.com>
1571
1572         [iOS] Fix build when compiling with dead code stripping disabled
1573         <http://webkit.org/b/142467>
1574
1575         Reviewed by Simon Fraser.
1576
1577         * WebCoreSupport/WebInspectorClientIOS.mm:
1578         (WebInspectorFrontendClient::save): Add missing method.
1579
1580 2015-02-14  Alexey Proskuryakov  <ap@apple.com>
1581
1582         rel="noreferrer" should make window.opener null
1583         https://bugs.webkit.org/show_bug.cgi?id=141579
1584
1585         Reviewed by Darin Adler.
1586
1587         * WebView/WebPDFViewPlaceholder.mm:
1588         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]): Updated for a new WebCore
1589         function signature. There is no rel="noreferrer" in PDF, so we can just always allow.
1590
1591 2015-02-03  Enrica Casucci  <enrica@apple.com>
1592
1593         [iOS] Add support for deleteFromInputWithFlags.
1594         https://bugs.webkit.org/show_bug.cgi?id=141216
1595         rdar://problem/19130081
1596
1597         Reviewed by Benjamin Poulain.
1598
1599         Adopts the new method as soon as it is available.
1600         The patch also removes some obsolete code used for staging.
1601
1602         * DefaultDelegates/WebDefaultUIKitDelegate.m:
1603         (-[WebDefaultUIKitDelegate addInputString:withFlags:]):
1604         (-[WebDefaultUIKitDelegate deleteFromInput]):
1605         (-[WebDefaultUIKitDelegate deleteFromInputwithFlags:]):
1606         (-[WebDefaultUIKitDelegate addInputString:fromVariantKey:]): Deleted.
1607         * WebView/WebUIKitDelegate.h:
1608
1609 2015-01-22  Andreas Kling  <akling@apple.com>
1610
1611         Remove unused class EmojiFallbackFontSelector.
1612         <https://webkit.org/b/140809>
1613
1614         Reviewed by Antti Koivisto.
1615
1616         This class no longer has any clients.
1617
1618         * Misc/EmojiFallbackFontSelector.cpp: Removed.
1619         * Misc/EmojiFallbackFontSelector.h: Removed.
1620
1621 2015-01-13  Chris Dumez  <cdumez@apple.com>
1622
1623         Unreviewed iOS build fix after r178375
1624
1625         Match FontSelector API changes.
1626
1627         * Misc/EmojiFallbackFontSelector.cpp:
1628         (EmojiFallbackFontSelector::fallbackFontDataAt):
1629         (EmojiFallbackFontSelector::getFallbackFontData): Deleted.
1630         * Misc/EmojiFallbackFontSelector.h:
1631
1632 2014-12-07  Dan Bernstein  <mitz@apple.com>
1633
1634         Introduce and deploy a function that allocates and returns an instance of a soft-linked class
1635         https://bugs.webkit.org/show_bug.cgi?id=139348
1636
1637         Reviewed by Anders Carlsson.
1638
1639         In [[getFooClass() alloc] init*], the type of the result of +alloc is id, so the compiler
1640         picks an arbitrary declaration of init*, not necessarily the Foo one. This can then lead
1641         to warnings or errors if the types or attributes don’t match, or to runtime errors if Foo
1642         doesn’t even have the expected initializer. The new allocFooInstance() returns a Foo *, thus
1643         avoiding the ambiguity.
1644
1645         * Misc/WebGeolocationCoreLocationProvider.mm:
1646         (-[WebGeolocationCoreLocationProvider createLocationManager]):
1647
1648 2014-12-06  Anders Carlsson  <andersca@apple.com>
1649
1650         Fix build with newer versions of clang.
1651         rdar://problem/18978687
1652
1653         Cast the result of +alloc to the right type.
1654
1655         * Misc/WebGeolocationCoreLocationProvider.mm:
1656         (-[WebGeolocationCoreLocationProvider createLocationManager]):
1657         * WebCoreSupport/WebSelectionRect.m:
1658         (+[WebSelectionRect selectionRect]):
1659
1660 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
1661
1662         Remove the remaining vestiges of minimal-ui
1663         https://bugs.webkit.org/show_bug.cgi?id=138890
1664
1665         Reviewed by Sam Weinig.
1666
1667         * WebCoreSupport/WebChromeClientIOS.mm:
1668         (dictionaryForViewportArguments):
1669         * WebKit.iOS.exp:
1670
1671 2014-11-19  Daniel Bates  <dabates@apple.com>
1672
1673         [iOS] Make WebKit build with public iOS SDK
1674         https://bugs.webkit.org/show_bug.cgi?id=136863
1675
1676         Reviewed by David Kilzer.
1677
1678         * Misc/WebGeolocationCoreLocationProvider.mm:  Remove unnecessary include of header <CoreLocation/CoreLocationPriv.h>.
1679         * Misc/WebNSStringExtrasIOS.m: Substitute header <WebCore/NSStringSPI.h> for <Foundation/NSString_NSURLExtras.h>.
1680         * Misc/WebUIKitSupport.mm: Remove unnecessary include of header CoreFoundation/CFPriv.h.
1681
1682 2014-11-14  Daniel Bates  <dabates@apple.com>
1683
1684         [iOS] CoreGraphics SPI not available in public SDK
1685         https://bugs.webkit.org/show_bug.cgi?id=138709
1686
1687         Reviewed by David Kilzer.
1688
1689         Include header CoreGraphicsSPI.h instead of the private header CGFloat.h.
1690
1691         * WebCoreSupport/WebFixedPositionContent.mm:
1692
1693 2014-10-20  Andy Estes  <aestes@apple.com>
1694
1695         Fix the iOS build.
1696
1697         * WebCoreSupport/WebFrameIOS.mm:
1698         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
1699         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
1700         * WebCoreSupport/WebVisiblePosition.mm:
1701         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
1702         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
1703
1704 2014-10-15  Chris Dumez  <cdumez@apple.com>
1705
1706         Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine
1707         https://bugs.webkit.org/show_bug.cgi?id=137727
1708
1709         Reviewed by Darin Adler.
1710
1711         Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine.
1712
1713         * WebCoreSupport/WebVisiblePosition.mm:
1714         (-[DOMHTMLInputElement startPosition]):
1715         (-[DOMHTMLInputElement endPosition]):
1716         (-[DOMHTMLTextAreaElement startPosition]):
1717         (-[DOMHTMLTextAreaElement endPosition]):
1718
1719 2014-10-03  Tim Horton  <timothy_horton@apple.com>
1720
1721         REGRESSION (r165896): UIWebView PDFs have a forced black background
1722         https://bugs.webkit.org/show_bug.cgi?id=137387
1723         <rdar://problem/17948411>
1724
1725         Reviewed by David Kilzer.
1726
1727         * WebView/WebPDFViewPlaceholder.h:
1728         * WebView/WebPDFViewPlaceholder.mm:
1729         (-[WebPDFViewPlaceholder layout]):
1730         Remove an ill-advised attempt to force the PDF background color from WebKit.
1731         The idea was that we would maintain Safari's black background except if there
1732         were no pages in the PDF, in which case we would use white instead to avoid
1733         having an all-black view. However, this broke clients who didn't want a black
1734         background, because we were now forcing it to black. Also, we don't need to
1735         maintain the black color in Safari because it doesn't use WebPDFViewPlaceholder anymore.
1736         This wasn't an important part of the patch, in any case.
1737
1738 2014-10-03  Tim Horton  <timothy_horton@apple.com>
1739
1740         REGRESSION (r173265): UIWebView PDF loading is completely broken
1741         https://bugs.webkit.org/show_bug.cgi?id=137386
1742         <rdar://problem/18524717>
1743
1744         Reviewed by David Kilzer.
1745
1746         * WebView/WebPDFViewPlaceholder.h:
1747         * WebView/WebPDFViewPlaceholder.mm:
1748         (-[WebPDFViewPlaceholder layout]):
1749         (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
1750         Restore important code that creates the CGDataProvider and sets _didFinishLoad
1751         and calls _doPostLoadOrUnlockTasks after finishing a load, which was haphazardly
1752         removed in the aforementioned revision.
1753
1754 2014-10-01  Christophe Dumez  <cdumez@apple.com>
1755
1756         Have is<>(T*) function do a null check on the pointer argument
1757         https://bugs.webkit.org/show_bug.cgi?id=137333
1758
1759         Reviewed by Gavin Barraclough.
1760
1761         Have is<>(T*) function do a null check on the argument instead of a
1762         simple assertion. This makes sense for 2 reasons:
1763         1. It is more consistent with downcast<>(T*), which will succeed even
1764            if the argument is a nullptr.
1765         2. It simplifies the code a bit as it gets rid of a lot of explicit
1766            null checks.
1767
1768         * WebCoreSupport/WebChromeClientIOS.mm:
1769         (WebChromeClientIOS::focusedElementChanged):
1770
1771 2014-09-29  Daniel Bates  <dabates@apple.com>
1772
1773         [iOS] Remove CoreLocation workaround
1774         https://bugs.webkit.org/show_bug.cgi?id=137198
1775
1776         Reviewed by Dan Bernstein.
1777
1778         Following the fix for <rdar://problem/18448331>, we can revert the CoreLocation workaround
1779         committed in <http://trac.webkit.org/changeset/173946> and <http://trac.webkit.org/changeset/173940> (in order).
1780
1781         * Misc/WebGeolocationCoreLocationProvider.mm:
1782         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
1783         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
1784
1785 2014-09-24  Daniel Bates  <dabates@apple.com>
1786
1787         [iOS] Another iOS build fix; workaround for CoreLocation
1788         https://bugs.webkit.org/show_bug.cgi?id=137104
1789         <rdar://problem/18450785>
1790
1791         Rubber-stamped by Benjamin Poulain.
1792
1793         Workaround CoreLocation issue by adding a default statement in -[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]
1794         and -[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:].
1795         We'll remove these default statements once we have the fix for <rdar://problem/18448331>.
1796
1797         * Misc/WebGeolocationCoreLocationProvider.mm:
1798         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
1799         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
1800
1801 2014-09-24  Daniel Bates  <dabates@apple.com>
1802
1803         [iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
1804         https://bugs.webkit.org/show_bug.cgi?id=137101
1805         <rdar://problem/18449815>
1806
1807         Reviewed by Mark Lam.
1808
1809         * Misc/WebGeolocationCoreLocationProvider.mm:
1810         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
1811         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
1812
1813 2014-09-24  Christophe Dumez  <cdumez@apple.com>
1814
1815         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
1816         https://bugs.webkit.org/show_bug.cgi?id=137068
1817
1818         Reviewed by Ryosuke Niwa.
1819
1820         Start using is<HTML*Element>() instead of isHTML*Element().
1821         Remaining usages will be updated in a follow-up patch to
1822         reduce the size of the change.
1823
1824         * WebCoreSupport/WebChromeClientIOS.mm:
1825         (WebChromeClientIOS::focusedElementChanged):
1826
1827 2014-09-21  Timothy Hatcher  <timothy@apple.com>
1828
1829         Make the Web Inspector use a separate web process.
1830
1831         https://bugs.webkit.org/show_bug.cgi?id=135120
1832
1833         Reviewed by Anders Carlsson.
1834
1835         * WebCoreSupport/WebInspectorClientIOS.mm:
1836         (WebInspectorClient::WebInspectorClient):
1837         Removed m_frontendClient initialization since it is
1838         now a std::unique_ptr that defaults to nullptr.
1839
1840 2014-09-23  Chris Dumez  <cdumez@apple.com>
1841
1842         Use downcast<HTML*Element>() instead of toHTML*Element()
1843         https://bugs.webkit.org/show_bug.cgi?id=137007
1844
1845         Reviewed by Benjamin Poulain.
1846
1847         Use downcast<HTML*Element>() instead of toHTML*Element().
1848
1849         * WebCoreSupport/WebChromeClientIOS.mm:
1850         (WebChromeClientIOS::focusedElementChanged):
1851
1852 2014-09-17  Daniel Bates  <dabates@apple.com>
1853
1854         Unreviewed, rolling out r173695.
1855
1856         Broke building third-party Legacy WebKit apps; will
1857         investigate offline
1858
1859         Reverted changeset:
1860
1861         "[iOS] Make WebCore build with public iOS SDK"
1862         https://bugs.webkit.org/show_bug.cgi?id=136487
1863         http://trac.webkit.org/changeset/173695
1864
1865 2014-09-17  Daniel Bates  <dabates@apple.com>
1866
1867         [iOS] Make WebCore build with public iOS SDK
1868         https://bugs.webkit.org/show_bug.cgi?id=136487
1869
1870         Reviewed by David Kilzer.
1871
1872         Substitute <WebCore/CGFloatSPI.h> for <CoreGraphics/CGFloat.h>.
1873
1874         * WebCoreSupport/WebFixedPositionContent.mm:
1875
1876 2014-09-05  Simon Fraser  <simon.fraser@apple.com>
1877
1878         Remove some PLATFORM(IOS) code in Color.h/cpp
1879         https://bugs.webkit.org/show_bug.cgi?id=136582
1880
1881         Reviewed by Dan Bates.
1882         
1883         createCGColorWithDeviceWhite() is only used here so make it a local static function.
1884
1885         * WebView/WebPDFViewIOS.mm:
1886         (createCGColorWithDeviceWhite):
1887
1888 2014-09-04  Pratik Solanki  <psolanki@apple.com>
1889
1890         Remove iOS specific disk image cache
1891         https://bugs.webkit.org/show_bug.cgi?id=136517
1892
1893         Reviewed by Antti Koivisto.
1894
1895         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
1896         this now since we don't enable it in WebKit2 on iOS.
1897
1898         * WebCoreSupport/WebDiskImageCacheClientIOS.h: Removed.
1899         * WebCoreSupport/WebDiskImageCacheClientIOS.mm: Removed.
1900         * WebView/WebPDFViewPlaceholder.mm:
1901         (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
1902         (-[WebPDFViewPlaceholder dataSourceMemoryMapped]): Deleted.
1903         (-[WebPDFViewPlaceholder dataSourceMemoryMapFailed]): Deleted.
1904
1905 2014-08-31  Tim Horton  <timothy_horton@apple.com>
1906
1907         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
1908         https://bugs.webkit.org/show_bug.cgi?id=136416
1909
1910         Reviewed by Dan Bernstein.
1911
1912         * WebView/WebPDFViewIOS.mm:
1913         (-[WebPDFView drawPage:]):
1914         (-[WebPDFView drawRect:]):
1915         * WebView/WebPlainWhiteView.mm:
1916         We only end up filling, so only set the fill color.
1917
1918 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
1919
1920         Implement paint flashing in the WK1 InspectorOverlay page
1921         https://bugs.webkit.org/show_bug.cgi?id=136138
1922
1923         Reviewed by Sam Weinig, Joseph Pecoraro.
1924
1925         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
1926         We avoid allocating backing store for this canvas until we have paint rects.
1927         
1928         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
1929         an array of rects, and pushes them to the page when they change, before forcing a paint.
1930         
1931         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
1932         WebKit WebInspectorClient, but don't yet implement paint flashing there.
1933
1934         * WebCoreSupport/WebInspectorClientIOS.mm:
1935         (WebInspectorClient::setShowPaintRects):
1936         (WebInspectorClient::showPaintRect):
1937
1938 2014-08-18  Andy Estes  <aestes@apple.com>
1939
1940         Fix the iOS build after  r172709.
1941
1942         * WebView/WebPDFViewPlaceholder.mm:
1943         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1944
1945 2014-07-03  Daniel Bates  <dabates@apple.com>
1946
1947         Add WTF::move()
1948         https://bugs.webkit.org/show_bug.cgi?id=134500
1949
1950         Rubber-stamped by Anders Carlsson.
1951
1952         Substitute WTF::move() for std::move().
1953
1954         * WebCoreSupport/WebFixedPositionContent.mm:
1955         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
1956         * WebCoreSupport/WebInspectorClientIOS.mm:
1957         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1958
1959 2014-07-01  Alex Christensen  <achristensen@webkit.org>
1960
1961         [iOS] Compile fix with pointer lock enabled.
1962         https://bugs.webkit.org/show_bug.cgi?id=134472
1963
1964         Reviewed by Pratik Solanki.
1965
1966         * WebView/WebPDFViewPlaceholder.mm:
1967         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1968         Add parameters required for pointer lock.
1969
1970 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
1971
1972         [iOS][WK2] Add device orientation
1973         https://bugs.webkit.org/show_bug.cgi?id=133530
1974
1975         Reviewed by Tim Horton.
1976
1977         Change WebKit1 to provide the deviceOrientation as pull instead of push.
1978
1979         * DefaultDelegates/WebDefaultUIKitDelegate.m:
1980         (-[WebDefaultUIKitDelegate deviceOrientation]):
1981         * WebCoreSupport/WebChromeClientIOS.h:
1982         * WebCoreSupport/WebChromeClientIOS.mm:
1983         (WebChromeClientIOS::deviceOrientation):
1984         * WebView/WebUIKitDelegate.h:
1985
1986 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
1987
1988         [iOS] Switch geolocation to an explicit authorization query model
1989         https://bugs.webkit.org/show_bug.cgi?id=132717
1990         <rdar://problem/16762390>
1991
1992         Reviewed by Sam Weinig.
1993
1994         WebGeolocationCoreLocationProvider is the general WebKit wrapper for CoreLocation.
1995
1996         The old model was to start WebGeolocationCoreLocationProvider and have the start fail or succeed.
1997         The new model is to explicitely ask for authorization through "requestGeolocationAuthorization", and
1998         listen to "geolocationAuthorizationGranted" and "geolocationAuthorizationDenied".
1999
2000         We assume the client of WebGeolocationCoreLocationProvider is well behaved and ask for authorization
2001         before invoking "start".
2002         If "start" is called and the authorization is not granted, we assume geolocation was reset since
2003         the last time authorization was requested, and we reset the client.
2004
2005
2006         WebGeolocationProviderIOS has been adapted to that model. Instead of doing the "warmup" sequence
2007         to get the authorization, it queries WebGeolocationCoreLocationProvider explicitly.
2008
2009         * Misc/WebGeolocationCoreLocationProvider.h:
2010         * Misc/WebGeolocationCoreLocationProvider.mm:
2011         (-[WebGeolocationCoreLocationProvider createLocationManager]):
2012         (-[WebGeolocationCoreLocationProvider dealloc]):
2013         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
2014         (isAuthorizationGranted):
2015         (-[WebGeolocationCoreLocationProvider start]):
2016         (-[WebGeolocationCoreLocationProvider stop]):
2017         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
2018         (-[WebGeolocationCoreLocationProvider setEnableHighAccuracy:]):
2019         (-[WebGeolocationCoreLocationProvider handleExternalAuthorizationStatusChange:]): Deleted.
2020         * Misc/WebGeolocationProviderIOS.mm:
2021         (-[WebGeolocationProviderIOS suspend]):
2022         (-[WebGeolocationProviderIOS resume]):
2023         (-[WebGeolocationProviderIOS registerWebView:]):
2024         (-[WebGeolocationProviderIOS unregisterWebView:]):
2025         (-[WebGeolocationProviderIOS setEnableHighAccuracy:]):
2026         (-[WebGeolocationProviderIOS initializeGeolocationForWebView:listener:]):
2027         (-[WebGeolocationProviderIOS geolocationAuthorizationGranted]):
2028         (-[WebGeolocationProviderIOS geolocationAuthorizationDenied]):
2029         (-[WebGeolocationProviderIOS stopTrackingWebView:]):
2030         (-[WebGeolocationProviderIOS resetGeolocation]):
2031         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationGranted]):
2032         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationDenied]):
2033         (-[_WebCoreLocationUpdateThreadingProxy positionChanged:WebCore::]):
2034         (-[_WebCoreLocationUpdateThreadingProxy errorOccurred:]):
2035         (-[_WebCoreLocationUpdateThreadingProxy resetGeolocation]):
2036         (-[WebGeolocationProviderIOS _startCoreLocationDelegate]): Deleted.
2037         (-[WebGeolocationProviderIOS _stopCoreLocationDelegateIfNeeded]): Deleted.
2038         (-[WebGeolocationProviderIOS cancelWarmUpForWebView:]): Deleted.
2039         (-[WebGeolocationProviderIOS geolocationDelegateStarted]): Deleted.
2040         (-[WebGeolocationProviderIOS geolocationDelegateUnableToStart]): Deleted.
2041         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateStarted]): Deleted.
2042         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateUnableToStart]): Deleted.
2043
2044 2014-04-30  Anders Carlsson  <andersca@apple.com>
2045
2046         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
2047         https://bugs.webkit.org/show_bug.cgi?id=132399
2048         <rdar://problem/15920046>
2049
2050         Reviewed by Dan Bernstein.
2051
2052         Import WebKitLegacy headers instead of WebKit headers.
2053         
2054         * DefaultDelegates/WebDefaultFormDelegate.h:
2055         * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
2056         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
2057         * DefaultDelegates/WebDefaultUIKitDelegate.h:
2058         * Misc/WebGeolocationProviderIOS.h:
2059         * Misc/WebNSStringExtrasIPhone.h:
2060         * WebCoreSupport/WebFrameIOS.h:
2061         * WebCoreSupport/WebFrameIOS.mm:
2062         * WebCoreSupport/WebFrameIPhone.h:
2063         * WebCoreSupport/WebSelectionRect.h:
2064         * WebCoreSupport/WebVisiblePosition.h:
2065         * WebView/WebPDFViewIOS.h:
2066         * WebView/WebPDFViewIOS.mm:
2067         * WebView/WebPDFViewIPhone.h:
2068         * WebView/WebPDFViewPlaceholder.h:
2069         * WebView/WebPDFViewPlaceholder.mm:
2070         * WebView/WebPlainWhiteView.h:
2071         * WebView/WebUIKitDelegate.h:
2072
2073 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
2074
2075         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
2076         https://bugs.webkit.org/show_bug.cgi?id=132110
2077
2078         Reviewed by Tim Horton.
2079
2080         Updates callers to use '.' instead of '->'.
2081
2082         No new tests are necessary because there should be no behavior change.
2083
2084         * Misc/EmojiFallbackFontSelector.cpp:
2085         (EmojiFallbackFontSelector::getFallbackFontData):
2086
2087 2014-04-17  Daniel Bates  <dabates@apple.com>
2088
2089         [iOS] Hook up screen.{availHeight, availWidth, height, width}
2090         https://bugs.webkit.org/show_bug.cgi?id=131821
2091         <rdar://problem/16413795>
2092
2093         Reviewed by Benjamin Poulain and Tim Horton.
2094
2095         Provide iOS-specific WebKit1 implementation for ChromeClient::availableScreenSize().
2096
2097         Additionally substitute "screenSize" for "viewporScreenSize" to make the code more understandable.
2098
2099         * WebCoreSupport/WebChromeClientIOS.h:
2100         * WebCoreSupport/WebChromeClientIOS.mm:
2101         (WebChromeClientIOS::screenSize): Renamed; formerly named viewportScreenSize.
2102         (WebChromeClientIOS::availableScreenSize): Added; ASSERT_NOT_REACHED() as a widget
2103         should consult it's associated WAKWindow for the available screen size.
2104
2105 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
2106
2107         Rename Clipboard to DataTransfer
2108         https://bugs.webkit.org/show_bug.cgi?id=131371
2109
2110         Reviewed by Anders Carlsson.
2111
2112         * WebView/WebPDFViewPlaceholder.mm:
2113
2114 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
2115
2116         [iOS] Remove the legacy string drawing code
2117         https://bugs.webkit.org/show_bug.cgi?id=131088
2118
2119         Reviewed by Sam Weinig.
2120
2121         * Misc/WebNSStringDrawing.h: Removed.
2122         * Misc/WebNSStringDrawing.mm: Removed.
2123         * Misc/WebUIKitSupport.h:
2124
2125 2014-04-02  Mark Rowe  <mrowe@apple.com>
2126
2127         Build fix after r166684.
2128
2129         * WebView/WebPDFViewPlaceholder.mm:
2130         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
2131
2132 2014-03-31  Anders Carlsson  <andersca@apple.com>
2133
2134         Fix iOS build.
2135
2136         * WebCoreSupport/WebChromeClientIOS.h:
2137         * WebCoreSupport/WebChromeClientIOS.mm:
2138         * WebCoreSupport/WebFixedPositionContent.mm:
2139         * WebCoreSupport/WebFixedPositionContentInternal.h:
2140
2141 2014-03-30  Dan Bernstein  <mitz@apple.com>
2142
2143         Tried to fix the iOS build.
2144
2145         * Misc/WebGeolocationCoreLocationProvider.mm:
2146         (-[WebGeolocationCoreLocationProvider start]):
2147         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
2148
2149 2014-03-27  Enrica Casucci  <enrica@apple.com>
2150
2151         Add support for AirPlay picker for iOS.
2152         https://bugs.webkit.org/show_bug.cgi?id=130876
2153         <rdar://problem/15349859>
2154
2155         Reviewed by Benjamin Poulain.
2156
2157         Adds support for the AirPlay picker for WebKit.
2158         The actual picker is implemented in UIKit.
2159
2160         * DefaultDelegates/WebDefaultUIKitDelegate.m:
2161         (-[WebDefaultUIKitDelegate interactionLocation]):
2162         (-[WebDefaultUIKitDelegate showPlaybackTargetPicker:fromRect:]):
2163         * WebCoreSupport/WebChromeClientIOS.mm:
2164         (WebChromeClientIOS::showPlaybackTargetPicker):
2165         * WebCoreSupport/WebFrameIOS.h:
2166         * WebCoreSupport/WebFrameIOS.mm:
2167         (-[WebFrame elementRectAtPoint:]):
2168         * WebView/WebUIKitDelegate.h:
2169
2170 2014-03-27  Enrica Casucci  <enrica@apple.com>
2171
2172         Add support for AirPlay picker in WK2 for iOS.
2173         https://bugs.webkit.org/show_bug.cgi?id=130855
2174         <rdar://problem/15349859>
2175
2176         Reviewed by Eric Carlson, Joseph Pecoraro and Benjamin Poulain.
2177
2178         Adds stub for new WebKit chrome client method.
2179
2180         * WebCoreSupport/WebChromeClientIOS.h:
2181         * WebCoreSupport/WebChromeClientIOS.mm:
2182         (WebChromeClientIOS::showAirPlayRoutePicker):
2183
2184 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
2185
2186         [iOS] Inspector View Indication Support
2187         https://bugs.webkit.org/show_bug.cgi?id=130709
2188
2189         Reviewed by Simon Fraser.
2190
2191         * WebCoreSupport/WebInspectorClientIOS.mm:
2192         (WebInspectorClient::showInspectorIndication):
2193         (WebInspectorClient::hideInspectorIndication):
2194         Renamed methods.
2195
2196 2014-03-22  Darin Adler  <darin@apple.com>
2197
2198         Remove String::deprecatedCharacters
2199         https://bugs.webkit.org/show_bug.cgi?id=126854
2200
2201         Reviewed by Sam Weinig.
2202
2203         * Misc/WebNSStringDrawing.h: Added a FIXME about deleting this file; we can probably do it soon.
2204         * Misc/WebNSStringDrawing.mm:
2205         (+[NSString _web_setWordRoundingEnabled:]):
2206         (+[NSString _web_wordRoundingEnabled]):
2207         (+[NSString _web_setWordRoundingAllowed:]):
2208         (+[NSString _web_wordRoundingAllowed]):
2209         (+[NSString _web_setAscentRoundingEnabled:]):
2210         (+[NSString _web_ascentRoundingEnabled]):
2211         (-[NSString _web_drawAtPoint:withFont:]):
2212         (-[NSString _web_sizeWithFont:]):
2213         (-[NSString _web_sizeWithFont:forWidth:ellipsis:]):
2214         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:]):
2215         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:resultRange:]):
2216         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:]):
2217         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:]):
2218         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
2219         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:measureOnly:]):
2220         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:]):
2221         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:]):
2222         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:]):
2223         (-[NSString _web_sizeInRect:withFont:ellipsis:lineSpacing:]):
2224         (-[NSString _web_sizeInRect:withFont:ellipsis:]):
2225         (-[NSString _web_stringForWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
2226         (-[NSString _web_sizeForWidth:withAttributes:]):
2227         (-[NSString _web_drawAtPoint:forWidth:withAttributes:]):
2228         (-[NSString _web_sizeInRect:withAttributes:]):
2229         (-[NSString _web_drawInRect:withAttributes:]):
2230         Emptied out all these functions since callers aren't really using them any more.
2231
2232 2014-03-21  Tim Horton  <timothy_horton@apple.com>
2233
2234         Always retrieve the screen scale factor from WKSI
2235         <rdar://problem/16329679>
2236
2237         Reviewed by Sam Weinig.
2238
2239         * Misc/WebUIKitSupport.mm:
2240         (WebKitSetIsClassic): Empty this out; it's no longer needed, but will still be called.
2241
2242 2014-03-19  Tim Horton  <timothy_horton@apple.com>
2243
2244         [iOS] WebPDFViewPlaceholder divides-by-zero with an empty document
2245         https://bugs.webkit.org/show_bug.cgi?id=130444
2246         <rdar://problem/15580682>
2247
2248         Reviewed by Sam Weinig.
2249
2250         * WebView/WebPDFViewPlaceholder.h:
2251         * WebView/WebPDFViewPlaceholder.mm:
2252         (-[WebPDFViewPlaceholder layout]):
2253         Get rid of boundingSize, it's never assigned to anything but CGSizeZero,
2254         which is confusing.
2255
2256         Don't divide by zero if we have no pages, instead return an empty bounding size.
2257
2258         (-[WebPDFViewPlaceholder _computePageRects:]):
2259         If we have an empty document, set the background color to white.
2260         Otherwise, set it to black. It's not clear that black is the ideal
2261         background color, but this retains existing behavior.
2262
2263 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
2264
2265         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2266         https://bugs.webkit.org/show_bug.cgi?id=130276
2267         <rdar://problem/16266927>
2268         
2269         Reviewed by Simon Fraser.
2270
2271         * WebCoreSupport/WebCaretChangeListener.h:
2272         * WebCoreSupport/WebInspectorClientIOS.mm:
2273         * WebView/WebPlainWhiteView.h:
2274         * WebView/WebPlainWhiteView.mm:
2275
2276 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
2277
2278         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
2279         https://bugs.webkit.org/show_bug.cgi?id=129612
2280
2281         Reviewed by Darin Adler.
2282
2283         For new code use static NeverDestroyed<T> instead.
2284
2285         * Misc/EmojiFallbackFontSelector.cpp:
2286         (EmojiFallbackFontSelector::getFallbackFontData):
2287         * WebCoreSupport/WebFixedPositionContent.mm:
2288         (WebFixedPositionContentDataLock):
2289
2290 2014-03-13  Benjamin Poulain  <bpoulain@apple.com>
2291
2292         The viewport code should not depend on WebKitSystemInterface
2293         https://bugs.webkit.org/show_bug.cgi?id=130218
2294
2295         Reviewed by Tim Horton.
2296
2297         * WebCoreSupport/WebChromeClientIOS.h:
2298         * WebCoreSupport/WebChromeClientIOS.mm:
2299         (WebChromeClientIOS::viewportScreenSize):
2300         Get the viewport size from WebKitSystemInterface.
2301
2302 2014-03-12  Enrica Casucci  <enrica@apple.com>
2303
2304         Incorrect reference counting of Range in WebFrame.
2305         https://bugs.webkit.org/show_bug.cgi?id=130160
2306         <rdar://problem/16282535>
2307
2308         Reviewed by Anders Carlsson.
2309
2310         * WebCoreSupport/WebFrameIOS.mm:
2311         (-[WebFrame selectionRects]):
2312
2313 2014-03-12  Simon Fraser  <simon.fraser@apple.com>
2314
2315         Spelling is hard
2316         https://bugs.webkit.org/show_bug.cgi?id=130146
2317
2318         Reviewed by Beth Dakin.
2319         
2320         Fix spelling (constained -> constrained).
2321
2322         * WebCoreSupport/WebFixedPositionContent.mm:
2323         (-[WebFixedPositionContent scrollOrZoomChanged:]):
2324         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
2325         (-[WebFixedPositionContent setViewportConstrainedLayers:WTF::WebCore::stickyContainerMap:WTF::]):
2326         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
2327         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
2328
2329 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
2330
2331         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
2332         https://bugs.webkit.org/show_bug.cgi?id=128681
2333
2334         Reviewed by Timothy Hatcher.
2335
2336         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
2337         WebCore/inspector/*. Besides files in there, a few other files in
2338         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
2339         and WebCore/testing were touched.
2340
2341         * WebCoreSupport/WebInspectorClientIOS.mm:
2342
2343 2014-02-12  Benjamin Poulain  <bpoulain@apple.com>
2344
2345         [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
2346         https://bugs.webkit.org/show_bug.cgi?id=128639
2347
2348         Reviewed by Andreas Kling.
2349
2350         * WebCoreSupport/WebChromeClientIOS.h:
2351         * WebCoreSupport/WebChromeClientIOS.mm:
2352         (WebChromeClientIOS::didReceiveMobileDocType):
2353
2354 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
2355
2356         Build fix after r163739.
2357
2358         * WebCoreSupport/WebFrameIOS.mm:
2359         (-[WebFrame collapseSelection]):
2360         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
2361
2362 2014-02-03  Dan Bernstein  <mitz@apple.com>
2363
2364         More iOS build fixing.
2365
2366         * Misc/WebNSStringDrawing.mm:
2367         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
2368         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
2369
2370 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
2371
2372         Remove inline member functions of FrameSelection that access m_selection
2373         https://bugs.webkit.org/show_bug.cgi?id=127986
2374
2375         Reviewed by Enrica Casucci.
2376
2377         * WebCoreSupport/WebFrameIOS.mm:
2378         (-[WebFrame extendSelection:]):
2379         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
2380         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
2381         (-[WebFrame expandSelectionToSentence]):
2382         (-[WebFrame setBaseWritingDirection:]):
2383         (-[WebFrame smartExtendRangedSelection:]):
2384
2385 2014-01-30  Andrei Bucur  <abucur@adobe.com>
2386
2387         Remove the ACCELERATED_COMPOSITING flag
2388         https://bugs.webkit.org/show_bug.cgi?id=127833
2389
2390         Reviewed by Antti Koivisto.
2391
2392         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
2393         mandatory.
2394
2395         * WebCoreSupport/WebChromeClientIOS.h:
2396         * WebCoreSupport/WebChromeClientIOS.mm:
2397         (WebChromeClientIOS::attachRootGraphicsLayer):
2398         * WebView/WebUIKitDelegate.h:
2399
2400 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2401
2402         Unreviewed iOS build fix. FALLTHROUGHs for iOS.
2403
2404         * Misc/WebNSStringDrawing.mm:
2405         (needsBidiLayout):
2406
2407 2014-01-27  Andy Estes  <aestes@apple.com>
2408
2409         Scrub WebKit API headers of WTF macros
2410         https://bugs.webkit.org/show_bug.cgi?id=127706
2411
2412         Reviewed by David Kilzer.
2413
2414         * WebCoreSupport/WebMIMETypeRegistry.h: Changed PLATFORM(IOS) to
2415         TARGET_OS_IPHONE.
2416
2417 2014-01-15  Sam Weinig  <sam@webkit.org>
2418
2419         TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
2420         https://bugs.webkit.org/show_bug.cgi?id=126856
2421
2422         Reviewed by Ryosuke Niwa.
2423
2424         Change all the TextBreakIterator creation functions to take StringViews. Remove a few
2425         now unnecessary up-conversions to UTF-16 in the process.
2426
2427         * Misc/WebNSStringDrawing.mm:
2428
2429 2014-01-16  Anders Carlsson  <andersca@apple.com>
2430
2431         Change all uses of FINAL to final now that all our compilers support it
2432         https://bugs.webkit.org/show_bug.cgi?id=127142
2433
2434         Reviewed by Benjamin Poulain.
2435
2436         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
2437
2438 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
2439
2440         Remove workaround for compilers not supporting explicit override control
2441         https://bugs.webkit.org/show_bug.cgi?id=127111
2442
2443         Reviewed by Anders Carlsson.
2444
2445         Now all compilers support explicit override control, this workaround can be removed.
2446
2447         * Misc/EmojiFallbackFontSelector.h:
2448         * Storage/WebSQLiteDatabaseTrackerClient.h:
2449         * WebCoreSupport/PopupMenuIOS.h:
2450         * WebCoreSupport/SearchPopupMenuIOS.h:
2451         * WebCoreSupport/WebChromeClientIOS.h:
2452         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
2453
2454 2014-01-16  Andy Estes  <aestes@apple.com>
2455
2456         [iOS] Fix build issues with exported headers
2457
2458         * Misc/WebNSStringExtrasIOS.h: Changed PLATFORM(IOS) to
2459         TARGET_OS_IPHONE.
2460
2461 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2462
2463         Avoid PLATFORM() macros in exported headers.
2464
2465         * WebView/WebPDFViewPlaceholder.h:
2466
2467 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2468
2469         Clean up exports and headers for iOS.
2470
2471         * Misc/WebNSStringDrawing.h: Don't use PLATFORM() macro in an exported header.
2472         * WebCoreSupport/WebFrameIOS.h: Ditto.
2473         * WebCoreSupport/WebSelectionRect.h: Ditto.
2474
2475 2014-01-14  Dean Jackson  <dino@apple.com>
2476
2477         Remove .objc_class_name_WebInspectorXPCWrapper from export on iOS build.
2478
2479         * WebKit.iOS.exp:
2480
2481 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
2482
2483         Fix WK1 iOS build: need implementations of these functions in WebInspectorClientIOS.
2484
2485         * WebCoreSupport/WebInspectorClientIOS.mm:
2486         (WebInspectorClient::indicate):
2487         (WebInspectorClient::hideIndication):
2488
2489 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
2490
2491         More work towards getting iOS WK1 building.
2492
2493         * WebCoreSupport/WebFrameIOS.mm:
2494         (-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Stub out this
2495         function, since it should use recently-refactored node snapshotting code. Covered by <rdar://problem/15808709>.
2496
2497 2014-01-12  Darin Adler  <darin@apple.com>
2498
2499         Add type checking to isEqual methods
2500         https://bugs.webkit.org/show_bug.cgi?id=126862
2501
2502         Reviewed by Anders Carlsson.
2503
2504         * WebCoreSupport/WebVisiblePosition.mm:
2505         (-[WebVisiblePosition isEqual:]): Add type checking on the argument.
2506         Add a FIXME about the lack of a hash method override. Simplified by
2507         removing the unneeded local variables.
2508
2509 2014-01-02  Andy Estes  <aestes@apple.com>
2510
2511         [iOS] Upstream remainder of minimal-ui viewport changes
2512         https://bugs.webkit.org/show_bug.cgi?id=126410
2513
2514         Reviewed by Sam Weinig.
2515
2516         * WebCoreSupport/WebChromeClientIOS.mm:
2517         (dictionaryForViewportArguments):
2518         * WebKit.iOS.exp:
2519
2520 2013-12-31  Andy Estes  <aestes@apple.com>
2521
2522         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
2523         https://bugs.webkit.org/show_bug.cgi?id=125746
2524
2525         Reviewed by David Kilzer.
2526
2527         * WebCoreSupport/WebVisiblePosition.mm:
2528         (-[WebVisiblePosition positionAtStartOrEndOfWord]): Changed a comment
2529         to mention iOS rather than iPhone.
2530
2531 2013-12-27  Daniel Bates  <dabates@apple.com>
2532
2533         [iOS] Upstream WebCore/page changes
2534         https://bugs.webkit.org/show_bug.cgi?id=126180
2535
2536         Reviewed by Darin Adler.
2537
2538         * WebCoreSupport/WebChromeClientIOS.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
2539
2540 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
2541
2542         Consolidate various frame snapshot capabilities.
2543         https://bugs.webkit.org/show_bug.cgi?id=124325
2544
2545         Reviewed by Darin Adler.
2546
2547         * WebCoreSupport/WebFrameIOS.mm: use new header file.
2548
2549 2013-12-04  Andy Estes  <aestes@apple.com>
2550
2551         [iOS] Upstream build fixes in Source/WebKit/ios/
2552         https://bugs.webkit.org/show_bug.cgi?id=125230
2553
2554         Reviewed by Sam Weinig.
2555
2556         * DefaultDelegates/WebDefaultUIKitDelegate.m:
2557         (-[WebDefaultUIKitDelegate webViewDidReceiveMobileDocType:]):
2558         * Misc/WebNSStringDrawing.mm:
2559         (needsBidiLayout):
2560         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
2561         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
2562         * Misc/WebUIKitSupport.mm:
2563         (WebKitInitialize):
2564         * WebCoreSupport/WebChromeClientIOS.h:
2565         * WebCoreSupport/WebChromeClientIOS.mm:
2566         (WebChromeClientIOS::didReceiveMobileDocType):
2567         (WebChromeClientIOS::focusedElementChanged):
2568         * WebCoreSupport/WebFrameIOS.mm:
2569         (-[WebFrame clearSelection]):
2570         (-[WebFrame selectionState]):
2571         (-[WebFrame collapseSelection]):
2572         (-[WebFrame extendSelection:]):
2573         (-[WebFrame selectionRects]):
2574         (-[WebFrame setRangedSelectionWithExtentPoint:]):
2575         (-[WebFrame setRangedSelectionExtentPoint:baseIsStart:allowFlipping:]):
2576         (-[WebFrame setSelectionWithBasePoint:extentPoint:baseIsStart:allowFlipping:]):
2577         (-[WebFrame setSelectionWithFirstPoint:secondPoint:]):
2578         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
2579         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
2580         (-[WebFrame expandSelectionToSentence]):
2581         (-[WebFrame setBaseWritingDirection:]):
2582         (-[WebFrame moveSelectionToStart]):
2583         (-[WebFrame moveSelectionToEnd]):
2584         (-[WebFrame moveSelectionToPoint:]):
2585         (-[WebFrame setSelectionGranularity:]):
2586         (-[WebFrame smartExtendRangedSelection:]):
2587         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
2588         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
2589         * WebCoreSupport/WebInspectorClientIOS.mm:
2590         (WebInspectorClient::WebInspectorClient):
2591         (WebInspectorClient::didSetSearchingForNode):
2592         (WebInspectorClient::setupRemoteConnection):
2593         (WebInspectorClient::teardownRemoteConnection):
2594         * WebCoreSupport/WebVisiblePosition.mm:
2595         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
2596         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
2597         (-[DOMHTMLInputElement startPosition]):
2598         (-[DOMHTMLInputElement endPosition]):
2599         (-[DOMHTMLTextAreaElement startPosition]):
2600         (-[DOMHTMLTextAreaElement endPosition]):
2601         * WebView/WebPDFViewIOS.mm:
2602         (+[WebPDFView shadowColor]):
2603         (+[WebPDFView backgroundColor]):
2604         (-[WebPDFView _checkPDFTitle]):
2605         * WebView/WebPDFViewPlaceholder.mm:
2606         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
2607         * WebView/WebUIKitDelegate.h:
2608
2609 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
2610
2611         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
2612         https://bugs.webkit.org/show_bug.cgi?id=124613
2613
2614         Reviewed by Timothy Hatcher.
2615
2616         * WebCoreSupport/WebInspectorClientIOS.mm:
2617         (WebInspectorClient::WebInspectorClient):
2618         (WebInspectorClient::inspectorDestroyed):
2619
2620 2013-12-03  Ralph Thomas  <ralpht@gmail.com>
2621
2622         Typo: FixedPositionConstaint -> FixedPositionConstraint
2623         https://bugs.webkit.org/show_bug.cgi?id=125171
2624
2625         Reviewed by Simon Fraser.
2626
2627         * WebCoreSupport/WebFixedPositionContent.mm:
2628         (-[WebFixedPositionContent scrollOrZoomChanged:]):
2629
2630 2013-11-18  Commit Queue  <commit-queue@webkit.org>
2631
2632         Unreviewed, rolling out r159455.
2633         http://trac.webkit.org/changeset/159455
2634         https://bugs.webkit.org/show_bug.cgi?id=124568
2635
2636         broke two api tests (see bug 124564) (Requested by thorton on
2637         #webkit).
2638
2639         * WebCoreSupport/WebFrameIOS.mm:
2640
2641 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
2642
2643         Consolidate various frame snapshot capabilities.
2644         https://bugs.webkit.org/show_bug.cgi?id=124325
2645
2646         Reviewed by Timothy Hatcher.
2647
2648         * WebCoreSupport/WebFrameIOS.mm: use new header file.
2649
2650 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
2651
2652         Remove a PLATFORM(IOS) from WebKit Private Header
2653         https://bugs.webkit.org/show_bug.cgi?id=124014
2654
2655         Reviewed by Timothy Hatcher.
2656
2657         * WebKit.iOS.exp:
2658
2659 2013-10-29  Andy Estes  <aestes@apple.com>
2660
2661         [iOS] Upstream Source/WebKit/ios/
2662         https://bugs.webkit.org/show_bug.cgi?id=123470
2663
2664         Reviewed by Sam Weinig.
2665
2666         * DefaultDelegates/WebDefaultFormDelegate.h: Added.
2667         * DefaultDelegates/WebDefaultFormDelegate.m: Added.
2668         * DefaultDelegates/WebDefaultFrameLoadDelegate.h: Added.
2669         * DefaultDelegates/WebDefaultFrameLoadDelegate.m: Added.
2670         * DefaultDelegates/WebDefaultResourceLoadDelegate.h: Added.
2671         * DefaultDelegates/WebDefaultResourceLoadDelegate.m: Added.
2672         * DefaultDelegates/WebDefaultUIKitDelegate.h: Added.
2673         * DefaultDelegates/WebDefaultUIKitDelegate.m: Added.
2674         * Misc/EmojiFallbackFontSelector.cpp: Added.
2675         * Misc/EmojiFallbackFontSelector.h: Added.
2676         * Misc/MemoryMeasure.h: Added.
2677         * Misc/MemoryMeasure.mm: Added.
2678         * Misc/WebGeolocationCoreLocationProvider.h: Added.
2679         * Misc/WebGeolocationCoreLocationProvider.mm: Added.
2680         * Misc/WebGeolocationProviderIOS.h: Added.
2681         * Misc/WebGeolocationProviderIOS.mm: Added.
2682         * Misc/WebNSStringDrawing.h: Added.
2683         * Misc/WebNSStringDrawing.mm: Added.
2684         * Misc/WebNSStringExtrasIOS.h: Added.
2685         * Misc/WebNSStringExtrasIOS.m: Added.
2686         * Misc/WebNSStringExtrasIPhone.h: Added.
2687         * Misc/WebUIKitSupport.h: Added.
2688         * Misc/WebUIKitSupport.mm: Added.
2689         * Storage/WebSQLiteDatabaseTrackerClient.h: Added.
2690         * Storage/WebSQLiteDatabaseTrackerClient.mm: Added.
2691         * WebCoreSupport/PopupMenuIOS.h: Added.
2692         * WebCoreSupport/PopupMenuIOS.mm: Added.
2693         * WebCoreSupport/SearchPopupMenuIOS.cpp: Added.
2694         * WebCoreSupport/SearchPopupMenuIOS.h: Added.
2695         * WebCoreSupport/WebCaretChangeListener.h: Added.
2696         * WebCoreSupport/WebChromeClientIOS.h: Added.
2697         * WebCoreSupport/WebChromeClientIOS.mm: Added.
2698         * WebCoreSupport/WebFixedPositionContent.h: Added.
2699         * WebCoreSupport/WebFixedPositionContent.mm: Added.
2700         * WebCoreSupport/WebFixedPositionContentInternal.h: Added.
2701         * WebCoreSupport/WebFrameIOS.h: Added.
2702         * WebCoreSupport/WebFrameIOS.mm: Added.
2703         * WebCoreSupport/WebFrameIPhone.h: Added.
2704         * WebCoreSupport/WebGeolocation.mm: Added.
2705         * WebCoreSupport/WebGeolocationInternal.h: Added.
2706         * WebCoreSupport/WebGeolocationPrivate.h: Added.
2707         * WebCoreSupport/WebMIMETypeRegistry.h: Added.
2708         * WebCoreSupport/WebMIMETypeRegistry.mm: Added.
2709         * WebCoreSupport/WebSelectionRect.h: Added.
2710         * WebCoreSupport/WebSelectionRect.m: Added.
2711         * WebCoreSupport/WebVisiblePosition.h: Added.
2712         * WebCoreSupport/WebVisiblePosition.mm: Added.
2713         * WebCoreSupport/WebVisiblePositionInternal.h: Added.
2714         * WebKit.iOS.exp: Added.
2715         * WebView/WebFrameViewWAKCompatibility.m: Added.
2716         * WebView/WebMailDelegate.h: Added.
2717         * WebView/WebPDFViewIOS.h: Added.
2718         * WebView/WebPDFViewIOS.mm: Added.
2719         * WebView/WebPDFViewIPhone.h: Added.
2720         * WebView/WebPDFViewPlaceholder.h: Added.
2721         * WebView/WebPDFViewPlaceholder.mm: Added.
2722         * WebView/WebPlainWhiteView.h: Added.
2723         * WebView/WebPlainWhiteView.mm: Added.
2724         * WebView/WebUIKitDelegate.h: Added.
2725
2726 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
2727
2728         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2729         https://bugs.webkit.org/show_bug.cgi?id=123111
2730
2731         Reviewed by Timothy Hatcher.
2732
2733         iOS does not have a local inspector, only remote. So give it a custom
2734         implementation separate from the WebKit/mac WebInspectorClient
2735         implementation which handles an attaching/detaching local inspector.
2736
2737         * WebKit.xcodeproj/project.pbxproj:
2738         * ios/WebCoreSupport/WebInspectorClientIOS.mm: Added.
2739         (WebInspectorClient::WebInspectorClient):
2740         (WebInspectorClient::inspectorDestroyed):
2741         (WebInspectorClient::openInspectorFrontend):
2742         (WebInspectorClient::bringFrontendToFront):
2743         (WebInspectorClient::closeInspectorFrontend):
2744         (WebInspectorClient::didResizeMainFrame):
2745         (WebInspectorClient::highlight):
2746         (WebInspectorClient::hideHighlight):
2747         (WebInspectorClient::didSetSearchingForNode):
2748         (WebInspectorClient::sendMessageToFrontend):
2749         (WebInspectorClient::sendMessageToBackend):
2750         (WebInspectorClient::setupRemoteConnection):
2751         (WebInspectorClient::teardownRemoteConnection):
2752         (WebInspectorClient::hasLocalSession):
2753         (WebInspectorClient::canBeRemotelyInspected):
2754         (WebInspectorClient::inspectedWebView):
2755         (WebInspectorFrontendClient::WebInspectorFrontendClient):
2756         (WebInspectorFrontendClient::attachAvailabilityChanged):
2757         (WebInspectorFrontendClient::frontendLoaded):
2758         (WebInspectorFrontendClient::localizedStringsURL):
2759         (WebInspectorFrontendClient::bringToFront):
2760         (WebInspectorFrontendClient::closeWindow):
2761         (WebInspectorFrontendClient::disconnectFromBackend):
2762         (WebInspectorFrontendClient::attachWindow):
2763         (WebInspectorFrontendClient::detachWindow):
2764         (WebInspectorFrontendClient::setAttachedWindowHeight):
2765         (WebInspectorFrontendClient::setAttachedWindowWidth):
2766         (WebInspectorFrontendClient::setToolbarHeight):
2767         (WebInspectorFrontendClient::inspectedURLChanged):
2768         (WebInspectorFrontendClient::updateWindowTitle):
2769         (WebInspectorFrontendClient::save):
2770         (WebInspectorFrontendClient::append):