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