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