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