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