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