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