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