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