Unreviewed, roll out http://trac.webkit.org/changeset/187972.
[WebKit-https.git] / Source / WebKit / ios / ChangeLog
1 2015-08-05  Filip Pizlo  <fpizlo@apple.com>
2
3         Unreviewed, roll out http://trac.webkit.org/changeset/187972.
4
5         * WebCoreSupport/WebFixedPositionContent.mm:
6         (WebFixedPositionContentDataLock):
7         (-[WebFixedPositionContent scrollOrZoomChanged:]):
8         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
9         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
10         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
11         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
12
13 2015-08-04  Filip Pizlo  <fpizlo@apple.com>
14
15         Rename Mutex to DeprecatedMutex
16         https://bugs.webkit.org/show_bug.cgi?id=147675
17
18         Reviewed by Geoffrey Garen.
19
20         * WebCoreSupport/WebFixedPositionContent.mm:
21         (WebFixedPositionContentDataLock):
22         (-[WebFixedPositionContent scrollOrZoomChanged:]):
23         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
24         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
25         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
26         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
27
28 2015-08-04  Anders Carlsson  <andersca@apple.com>
29
30         Remove database thread pause code
31         https://bugs.webkit.org/show_bug.cgi?id=147669
32
33         Reviewed by Daniel Bates.
34
35         * Misc/WebUIKitSupport.mm:
36         (WebKitSetBackgroundAndForegroundNotificationNames):
37         (applicationDidEnterBackground): Deleted.
38         (applicationWillEnterForeground): Deleted.
39
40 2015-07-21  Tim Horton  <timothy_horton@apple.com>
41
42         Expose shrink-wrapping as UIKit support SPI
43         https://bugs.webkit.org/show_bug.cgi?id=147148
44         <rdar://problem/21920008>
45
46         * WebKit.iOS.exp:
47         Also export.
48
49 2015-07-21  Tim Horton  <timothy_horton@apple.com>
50
51         Expose shrink-wrapping as UIKit support SPI
52         https://bugs.webkit.org/show_bug.cgi?id=147148
53         <rdar://problem/21920008>
54
55         Reviewed by Simon Fraser.
56
57         * Misc/WebUIKitSupport.h:
58         * Misc/WebUIKitSupport.mm:
59         (WebKitCreatePathWithShrinkWrappedRects):
60
61 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
62
63         iOS WebKitLegacy should match WebKit2's viewport behavior
64         https://bugs.webkit.org/show_bug.cgi?id=146564
65         <rdar://problem/20574017>
66
67         Reviewed by Brent Fulgham.
68
69         * WebCoreSupport/WebChromeClientIOS.mm:
70         (dictionaryForViewportArguments):
71
72 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
73
74         iOS WebKitLegacy should match WebKit2's viewport behavior
75         https://bugs.webkit.org/show_bug.cgi?id=146540
76         <rdar://problem/20574017>
77
78         Reviewed by Dan Bernstein.
79
80         * WebKit.iOS.exp:
81
82 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
83
84         Unreviewed, attempt to fix the iOS build after r185968.
85
86         * WebCoreSupport/WebInspectorClientIOS.mm:
87         (WebInspectorFrontendClient::startWindowDrag):
88
89 2015-06-02  Brady Eidson  <beidson@apple.com>
90
91         WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
92         rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
93
94         Reviewed by Alex Christensen.
95
96         * WebView/WebPDFViewPlaceholder.mm:
97         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
98
99 2015-05-25  Dan Bernstein  <mitz@apple.com>
100
101         ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
102         https://bugs.webkit.org/show_bug.cgi?id=145372
103
104         Reviewed by Sam Weinig.
105
106         * Misc/WebGeolocationCoreLocationProvider.mm:
107         (-[WebGeolocationCoreLocationProvider initWithListener:]): Removed use of ASSERT_MAIN_THREAD.
108         (-[WebGeolocationCoreLocationProvider dealloc]): Ditto.
109         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]): Ditto.
110         (-[WebGeolocationCoreLocationProvider start]): Ditto.
111         (-[WebGeolocationCoreLocationProvider stop]): Ditto.
112         (-[WebGeolocationCoreLocationProvider setEnableHighAccuracy:]): Ditto.
113
114 2015-04-28  Brady Eidson  <beidson@apple.com>
115
116         Consolidate most "frame load" arguments into FrameLoadRequest.
117         https://bugs.webkit.org/show_bug.cgi?id=144276
118
119         Reviewed by Alexey Proskuryakov.
120
121         * WebView/WebPDFViewPlaceholder.mm:
122         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
123
124 2015-04-13  Beth Dakin  <bdakin@apple.com>
125
126         Add force property to MouseEvents
127         https://bugs.webkit.org/show_bug.cgi?id=143569
128         -and corresponding-
129         rdar://problem/20472954
130
131         Reviewed by Darin Adler.
132
133         Send the appropriate force with this simulated click event.
134         * WebView/WebPDFViewPlaceholder.mm:
135         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
136
137 2015-03-31  Myles C. Maxfield  <mmaxfield@apple.com>
138
139         Move ExpansionBehaviorFlags and TextDirection to their own file
140         https://bugs.webkit.org/show_bug.cgi?id=143273
141
142         Reviewed by Simon Fraser.
143
144         This is a mechanical change. It just moves code around.
145
146         This is getting ready for https://bugs.webkit.org/show_bug.cgi?id=142608
147
148         * WebCoreSupport/WebFrameIOS.mm:
149         * WebCoreSupport/WebVisiblePosition.mm:
150
151 2015-03-09  David Kilzer  <ddkilzer@apple.com>
152
153         [iOS] Fix build when compiling with dead code stripping disabled
154         <http://webkit.org/b/142467>
155
156         Reviewed by Simon Fraser.
157
158         * WebCoreSupport/WebInspectorClientIOS.mm:
159         (WebInspectorFrontendClient::save): Add missing method.
160
161 2015-02-14  Alexey Proskuryakov  <ap@apple.com>
162
163         rel="noreferrer" should make window.opener null
164         https://bugs.webkit.org/show_bug.cgi?id=141579
165
166         Reviewed by Darin Adler.
167
168         * WebView/WebPDFViewPlaceholder.mm:
169         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]): Updated for a new WebCore
170         function signature. There is no rel="noreferrer" in PDF, so we can just always allow.
171
172 2015-02-03  Enrica Casucci  <enrica@apple.com>
173
174         [iOS] Add support for deleteFromInputWithFlags.
175         https://bugs.webkit.org/show_bug.cgi?id=141216
176         rdar://problem/19130081
177
178         Reviewed by Benjamin Poulain.
179
180         Adopts the new method as soon as it is available.
181         The patch also removes some obsolete code used for staging.
182
183         * DefaultDelegates/WebDefaultUIKitDelegate.m:
184         (-[WebDefaultUIKitDelegate addInputString:withFlags:]):
185         (-[WebDefaultUIKitDelegate deleteFromInput]):
186         (-[WebDefaultUIKitDelegate deleteFromInputwithFlags:]):
187         (-[WebDefaultUIKitDelegate addInputString:fromVariantKey:]): Deleted.
188         * WebView/WebUIKitDelegate.h:
189
190 2015-01-22  Andreas Kling  <akling@apple.com>
191
192         Remove unused class EmojiFallbackFontSelector.
193         <https://webkit.org/b/140809>
194
195         Reviewed by Antti Koivisto.
196
197         This class no longer has any clients.
198
199         * Misc/EmojiFallbackFontSelector.cpp: Removed.
200         * Misc/EmojiFallbackFontSelector.h: Removed.
201
202 2015-01-13  Chris Dumez  <cdumez@apple.com>
203
204         Unreviewed iOS build fix after r178375
205
206         Match FontSelector API changes.
207
208         * Misc/EmojiFallbackFontSelector.cpp:
209         (EmojiFallbackFontSelector::fallbackFontDataAt):
210         (EmojiFallbackFontSelector::getFallbackFontData): Deleted.
211         * Misc/EmojiFallbackFontSelector.h:
212
213 2014-12-07  Dan Bernstein  <mitz@apple.com>
214
215         Introduce and deploy a function that allocates and returns an instance of a soft-linked class
216         https://bugs.webkit.org/show_bug.cgi?id=139348
217
218         Reviewed by Anders Carlsson.
219
220         In [[getFooClass() alloc] init*], the type of the result of +alloc is id, so the compiler
221         picks an arbitrary declaration of init*, not necessarily the Foo one. This can then lead
222         to warnings or errors if the types or attributes don’t match, or to runtime errors if Foo
223         doesn’t even have the expected initializer. The new allocFooInstance() returns a Foo *, thus
224         avoiding the ambiguity.
225
226         * Misc/WebGeolocationCoreLocationProvider.mm:
227         (-[WebGeolocationCoreLocationProvider createLocationManager]):
228
229 2014-12-06  Anders Carlsson  <andersca@apple.com>
230
231         Fix build with newer versions of clang.
232         rdar://problem/18978687
233
234         Cast the result of +alloc to the right type.
235
236         * Misc/WebGeolocationCoreLocationProvider.mm:
237         (-[WebGeolocationCoreLocationProvider createLocationManager]):
238         * WebCoreSupport/WebSelectionRect.m:
239         (+[WebSelectionRect selectionRect]):
240
241 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
242
243         Remove the remaining vestiges of minimal-ui
244         https://bugs.webkit.org/show_bug.cgi?id=138890
245
246         Reviewed by Sam Weinig.
247
248         * WebCoreSupport/WebChromeClientIOS.mm:
249         (dictionaryForViewportArguments):
250         * WebKit.iOS.exp:
251
252 2014-11-19  Daniel Bates  <dabates@apple.com>
253
254         [iOS] Make WebKit build with public iOS SDK
255         https://bugs.webkit.org/show_bug.cgi?id=136863
256
257         Reviewed by David Kilzer.
258
259         * Misc/WebGeolocationCoreLocationProvider.mm:  Remove unnecessary include of header <CoreLocation/CoreLocationPriv.h>.
260         * Misc/WebNSStringExtrasIOS.m: Substitute header <WebCore/NSStringSPI.h> for <Foundation/NSString_NSURLExtras.h>.
261         * Misc/WebUIKitSupport.mm: Remove unnecessary include of header CoreFoundation/CFPriv.h.
262
263 2014-11-14  Daniel Bates  <dabates@apple.com>
264
265         [iOS] CoreGraphics SPI not available in public SDK
266         https://bugs.webkit.org/show_bug.cgi?id=138709
267
268         Reviewed by David Kilzer.
269
270         Include header CoreGraphicsSPI.h instead of the private header CGFloat.h.
271
272         * WebCoreSupport/WebFixedPositionContent.mm:
273
274 2014-10-20  Andy Estes  <aestes@apple.com>
275
276         Fix the iOS build.
277
278         * WebCoreSupport/WebFrameIOS.mm:
279         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
280         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
281         * WebCoreSupport/WebVisiblePosition.mm:
282         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
283         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
284
285 2014-10-15  Chris Dumez  <cdumez@apple.com>
286
287         Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine
288         https://bugs.webkit.org/show_bug.cgi?id=137727
289
290         Reviewed by Darin Adler.
291
292         Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine.
293
294         * WebCoreSupport/WebVisiblePosition.mm:
295         (-[DOMHTMLInputElement startPosition]):
296         (-[DOMHTMLInputElement endPosition]):
297         (-[DOMHTMLTextAreaElement startPosition]):
298         (-[DOMHTMLTextAreaElement endPosition]):
299
300 2014-10-03  Tim Horton  <timothy_horton@apple.com>
301
302         REGRESSION (r165896): UIWebView PDFs have a forced black background
303         https://bugs.webkit.org/show_bug.cgi?id=137387
304         <rdar://problem/17948411>
305
306         Reviewed by David Kilzer.
307
308         * WebView/WebPDFViewPlaceholder.h:
309         * WebView/WebPDFViewPlaceholder.mm:
310         (-[WebPDFViewPlaceholder layout]):
311         Remove an ill-advised attempt to force the PDF background color from WebKit.
312         The idea was that we would maintain Safari's black background except if there
313         were no pages in the PDF, in which case we would use white instead to avoid
314         having an all-black view. However, this broke clients who didn't want a black
315         background, because we were now forcing it to black. Also, we don't need to
316         maintain the black color in Safari because it doesn't use WebPDFViewPlaceholder anymore.
317         This wasn't an important part of the patch, in any case.
318
319 2014-10-03  Tim Horton  <timothy_horton@apple.com>
320
321         REGRESSION (r173265): UIWebView PDF loading is completely broken
322         https://bugs.webkit.org/show_bug.cgi?id=137386
323         <rdar://problem/18524717>
324
325         Reviewed by David Kilzer.
326
327         * WebView/WebPDFViewPlaceholder.h:
328         * WebView/WebPDFViewPlaceholder.mm:
329         (-[WebPDFViewPlaceholder layout]):
330         (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
331         Restore important code that creates the CGDataProvider and sets _didFinishLoad
332         and calls _doPostLoadOrUnlockTasks after finishing a load, which was haphazardly
333         removed in the aforementioned revision.
334
335 2014-10-01  Christophe Dumez  <cdumez@apple.com>
336
337         Have is<>(T*) function do a null check on the pointer argument
338         https://bugs.webkit.org/show_bug.cgi?id=137333
339
340         Reviewed by Gavin Barraclough.
341
342         Have is<>(T*) function do a null check on the argument instead of a
343         simple assertion. This makes sense for 2 reasons:
344         1. It is more consistent with downcast<>(T*), which will succeed even
345            if the argument is a nullptr.
346         2. It simplifies the code a bit as it gets rid of a lot of explicit
347            null checks.
348
349         * WebCoreSupport/WebChromeClientIOS.mm:
350         (WebChromeClientIOS::focusedElementChanged):
351
352 2014-09-29  Daniel Bates  <dabates@apple.com>
353
354         [iOS] Remove CoreLocation workaround
355         https://bugs.webkit.org/show_bug.cgi?id=137198
356
357         Reviewed by Dan Bernstein.
358
359         Following the fix for <rdar://problem/18448331>, we can revert the CoreLocation workaround
360         committed in <http://trac.webkit.org/changeset/173946> and <http://trac.webkit.org/changeset/173940> (in order).
361
362         * Misc/WebGeolocationCoreLocationProvider.mm:
363         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
364         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
365
366 2014-09-24  Daniel Bates  <dabates@apple.com>
367
368         [iOS] Another iOS build fix; workaround for CoreLocation
369         https://bugs.webkit.org/show_bug.cgi?id=137104
370         <rdar://problem/18450785>
371
372         Rubber-stamped by Benjamin Poulain.
373
374         Workaround CoreLocation issue by adding a default statement in -[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]
375         and -[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:].
376         We'll remove these default statements once we have the fix for <rdar://problem/18448331>.
377
378         * Misc/WebGeolocationCoreLocationProvider.mm:
379         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
380         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
381
382 2014-09-24  Daniel Bates  <dabates@apple.com>
383
384         [iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
385         https://bugs.webkit.org/show_bug.cgi?id=137101
386         <rdar://problem/18449815>
387
388         Reviewed by Mark Lam.
389
390         * Misc/WebGeolocationCoreLocationProvider.mm:
391         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
392         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
393
394 2014-09-24  Christophe Dumez  <cdumez@apple.com>
395
396         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
397         https://bugs.webkit.org/show_bug.cgi?id=137068
398
399         Reviewed by Ryosuke Niwa.
400
401         Start using is<HTML*Element>() instead of isHTML*Element().
402         Remaining usages will be updated in a follow-up patch to
403         reduce the size of the change.
404
405         * WebCoreSupport/WebChromeClientIOS.mm:
406         (WebChromeClientIOS::focusedElementChanged):
407
408 2014-09-21  Timothy Hatcher  <timothy@apple.com>
409
410         Make the Web Inspector use a separate web process.
411
412         https://bugs.webkit.org/show_bug.cgi?id=135120
413
414         Reviewed by Anders Carlsson.
415
416         * WebCoreSupport/WebInspectorClientIOS.mm:
417         (WebInspectorClient::WebInspectorClient):
418         Removed m_frontendClient initialization since it is
419         now a std::unique_ptr that defaults to nullptr.
420
421 2014-09-23  Chris Dumez  <cdumez@apple.com>
422
423         Use downcast<HTML*Element>() instead of toHTML*Element()
424         https://bugs.webkit.org/show_bug.cgi?id=137007
425
426         Reviewed by Benjamin Poulain.
427
428         Use downcast<HTML*Element>() instead of toHTML*Element().
429
430         * WebCoreSupport/WebChromeClientIOS.mm:
431         (WebChromeClientIOS::focusedElementChanged):
432
433 2014-09-17  Daniel Bates  <dabates@apple.com>
434
435         Unreviewed, rolling out r173695.
436
437         Broke building third-party Legacy WebKit apps; will
438         investigate offline
439
440         Reverted changeset:
441
442         "[iOS] Make WebCore build with public iOS SDK"
443         https://bugs.webkit.org/show_bug.cgi?id=136487
444         http://trac.webkit.org/changeset/173695
445
446 2014-09-17  Daniel Bates  <dabates@apple.com>
447
448         [iOS] Make WebCore build with public iOS SDK
449         https://bugs.webkit.org/show_bug.cgi?id=136487
450
451         Reviewed by David Kilzer.
452
453         Substitute <WebCore/CGFloatSPI.h> for <CoreGraphics/CGFloat.h>.
454
455         * WebCoreSupport/WebFixedPositionContent.mm:
456
457 2014-09-05  Simon Fraser  <simon.fraser@apple.com>
458
459         Remove some PLATFORM(IOS) code in Color.h/cpp
460         https://bugs.webkit.org/show_bug.cgi?id=136582
461
462         Reviewed by Dan Bates.
463         
464         createCGColorWithDeviceWhite() is only used here so make it a local static function.
465
466         * WebView/WebPDFViewIOS.mm:
467         (createCGColorWithDeviceWhite):
468
469 2014-09-04  Pratik Solanki  <psolanki@apple.com>
470
471         Remove iOS specific disk image cache
472         https://bugs.webkit.org/show_bug.cgi?id=136517
473
474         Reviewed by Antti Koivisto.
475
476         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
477         this now since we don't enable it in WebKit2 on iOS.
478
479         * WebCoreSupport/WebDiskImageCacheClientIOS.h: Removed.
480         * WebCoreSupport/WebDiskImageCacheClientIOS.mm: Removed.
481         * WebView/WebPDFViewPlaceholder.mm:
482         (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
483         (-[WebPDFViewPlaceholder dataSourceMemoryMapped]): Deleted.
484         (-[WebPDFViewPlaceholder dataSourceMemoryMapFailed]): Deleted.
485
486 2014-08-31  Tim Horton  <timothy_horton@apple.com>
487
488         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
489         https://bugs.webkit.org/show_bug.cgi?id=136416
490
491         Reviewed by Dan Bernstein.
492
493         * WebView/WebPDFViewIOS.mm:
494         (-[WebPDFView drawPage:]):
495         (-[WebPDFView drawRect:]):
496         * WebView/WebPlainWhiteView.mm:
497         We only end up filling, so only set the fill color.
498
499 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
500
501         Implement paint flashing in the WK1 InspectorOverlay page
502         https://bugs.webkit.org/show_bug.cgi?id=136138
503
504         Reviewed by Sam Weinig, Joseph Pecoraro.
505
506         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
507         We avoid allocating backing store for this canvas until we have paint rects.
508         
509         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
510         an array of rects, and pushes them to the page when they change, before forcing a paint.
511         
512         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
513         WebKit WebInspectorClient, but don't yet implement paint flashing there.
514
515         * WebCoreSupport/WebInspectorClientIOS.mm:
516         (WebInspectorClient::setShowPaintRects):
517         (WebInspectorClient::showPaintRect):
518
519 2014-08-18  Andy Estes  <aestes@apple.com>
520
521         Fix the iOS build after  r172709.
522
523         * WebView/WebPDFViewPlaceholder.mm:
524         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
525
526 2014-07-03  Daniel Bates  <dabates@apple.com>
527
528         Add WTF::move()
529         https://bugs.webkit.org/show_bug.cgi?id=134500
530
531         Rubber-stamped by Anders Carlsson.
532
533         Substitute WTF::move() for std::move().
534
535         * WebCoreSupport/WebFixedPositionContent.mm:
536         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
537         * WebCoreSupport/WebInspectorClientIOS.mm:
538         (WebInspectorFrontendClient::WebInspectorFrontendClient):
539
540 2014-07-01  Alex Christensen  <achristensen@webkit.org>
541
542         [iOS] Compile fix with pointer lock enabled.
543         https://bugs.webkit.org/show_bug.cgi?id=134472
544
545         Reviewed by Pratik Solanki.
546
547         * WebView/WebPDFViewPlaceholder.mm:
548         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
549         Add parameters required for pointer lock.
550
551 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
552
553         [iOS][WK2] Add device orientation
554         https://bugs.webkit.org/show_bug.cgi?id=133530
555
556         Reviewed by Tim Horton.
557
558         Change WebKit1 to provide the deviceOrientation as pull instead of push.
559
560         * DefaultDelegates/WebDefaultUIKitDelegate.m:
561         (-[WebDefaultUIKitDelegate deviceOrientation]):
562         * WebCoreSupport/WebChromeClientIOS.h:
563         * WebCoreSupport/WebChromeClientIOS.mm:
564         (WebChromeClientIOS::deviceOrientation):
565         * WebView/WebUIKitDelegate.h:
566
567 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
568
569         [iOS] Switch geolocation to an explicit authorization query model
570         https://bugs.webkit.org/show_bug.cgi?id=132717
571         <rdar://problem/16762390>
572
573         Reviewed by Sam Weinig.
574
575         WebGeolocationCoreLocationProvider is the general WebKit wrapper for CoreLocation.
576
577         The old model was to start WebGeolocationCoreLocationProvider and have the start fail or succeed.
578         The new model is to explicitely ask for authorization through "requestGeolocationAuthorization", and
579         listen to "geolocationAuthorizationGranted" and "geolocationAuthorizationDenied".
580
581         We assume the client of WebGeolocationCoreLocationProvider is well behaved and ask for authorization
582         before invoking "start".
583         If "start" is called and the authorization is not granted, we assume geolocation was reset since
584         the last time authorization was requested, and we reset the client.
585
586
587         WebGeolocationProviderIOS has been adapted to that model. Instead of doing the "warmup" sequence
588         to get the authorization, it queries WebGeolocationCoreLocationProvider explicitly.
589
590         * Misc/WebGeolocationCoreLocationProvider.h:
591         * Misc/WebGeolocationCoreLocationProvider.mm:
592         (-[WebGeolocationCoreLocationProvider createLocationManager]):
593         (-[WebGeolocationCoreLocationProvider dealloc]):
594         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
595         (isAuthorizationGranted):
596         (-[WebGeolocationCoreLocationProvider start]):
597         (-[WebGeolocationCoreLocationProvider stop]):
598         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
599         (-[WebGeolocationCoreLocationProvider setEnableHighAccuracy:]):
600         (-[WebGeolocationCoreLocationProvider handleExternalAuthorizationStatusChange:]): Deleted.
601         * Misc/WebGeolocationProviderIOS.mm:
602         (-[WebGeolocationProviderIOS suspend]):
603         (-[WebGeolocationProviderIOS resume]):
604         (-[WebGeolocationProviderIOS registerWebView:]):
605         (-[WebGeolocationProviderIOS unregisterWebView:]):
606         (-[WebGeolocationProviderIOS setEnableHighAccuracy:]):
607         (-[WebGeolocationProviderIOS initializeGeolocationForWebView:listener:]):
608         (-[WebGeolocationProviderIOS geolocationAuthorizationGranted]):
609         (-[WebGeolocationProviderIOS geolocationAuthorizationDenied]):
610         (-[WebGeolocationProviderIOS stopTrackingWebView:]):
611         (-[WebGeolocationProviderIOS resetGeolocation]):
612         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationGranted]):
613         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationDenied]):
614         (-[_WebCoreLocationUpdateThreadingProxy positionChanged:WebCore::]):
615         (-[_WebCoreLocationUpdateThreadingProxy errorOccurred:]):
616         (-[_WebCoreLocationUpdateThreadingProxy resetGeolocation]):
617         (-[WebGeolocationProviderIOS _startCoreLocationDelegate]): Deleted.
618         (-[WebGeolocationProviderIOS _stopCoreLocationDelegateIfNeeded]): Deleted.
619         (-[WebGeolocationProviderIOS cancelWarmUpForWebView:]): Deleted.
620         (-[WebGeolocationProviderIOS geolocationDelegateStarted]): Deleted.
621         (-[WebGeolocationProviderIOS geolocationDelegateUnableToStart]): Deleted.
622         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateStarted]): Deleted.
623         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateUnableToStart]): Deleted.
624
625 2014-04-30  Anders Carlsson  <andersca@apple.com>
626
627         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
628         https://bugs.webkit.org/show_bug.cgi?id=132399
629         <rdar://problem/15920046>
630
631         Reviewed by Dan Bernstein.
632
633         Import WebKitLegacy headers instead of WebKit headers.
634         
635         * DefaultDelegates/WebDefaultFormDelegate.h:
636         * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
637         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
638         * DefaultDelegates/WebDefaultUIKitDelegate.h:
639         * Misc/WebGeolocationProviderIOS.h:
640         * Misc/WebNSStringExtrasIPhone.h:
641         * WebCoreSupport/WebFrameIOS.h:
642         * WebCoreSupport/WebFrameIOS.mm:
643         * WebCoreSupport/WebFrameIPhone.h:
644         * WebCoreSupport/WebSelectionRect.h:
645         * WebCoreSupport/WebVisiblePosition.h:
646         * WebView/WebPDFViewIOS.h:
647         * WebView/WebPDFViewIOS.mm:
648         * WebView/WebPDFViewIPhone.h:
649         * WebView/WebPDFViewPlaceholder.h:
650         * WebView/WebPDFViewPlaceholder.mm:
651         * WebView/WebPlainWhiteView.h:
652         * WebView/WebUIKitDelegate.h:
653
654 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
655
656         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
657         https://bugs.webkit.org/show_bug.cgi?id=132110
658
659         Reviewed by Tim Horton.
660
661         Updates callers to use '.' instead of '->'.
662
663         No new tests are necessary because there should be no behavior change.
664
665         * Misc/EmojiFallbackFontSelector.cpp:
666         (EmojiFallbackFontSelector::getFallbackFontData):
667
668 2014-04-17  Daniel Bates  <dabates@apple.com>
669
670         [iOS] Hook up screen.{availHeight, availWidth, height, width}
671         https://bugs.webkit.org/show_bug.cgi?id=131821
672         <rdar://problem/16413795>
673
674         Reviewed by Benjamin Poulain and Tim Horton.
675
676         Provide iOS-specific WebKit1 implementation for ChromeClient::availableScreenSize().
677
678         Additionally substitute "screenSize" for "viewporScreenSize" to make the code more understandable.
679
680         * WebCoreSupport/WebChromeClientIOS.h:
681         * WebCoreSupport/WebChromeClientIOS.mm:
682         (WebChromeClientIOS::screenSize): Renamed; formerly named viewportScreenSize.
683         (WebChromeClientIOS::availableScreenSize): Added; ASSERT_NOT_REACHED() as a widget
684         should consult it's associated WAKWindow for the available screen size.
685
686 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
687
688         Rename Clipboard to DataTransfer
689         https://bugs.webkit.org/show_bug.cgi?id=131371
690
691         Reviewed by Anders Carlsson.
692
693         * WebView/WebPDFViewPlaceholder.mm:
694
695 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
696
697         [iOS] Remove the legacy string drawing code
698         https://bugs.webkit.org/show_bug.cgi?id=131088
699
700         Reviewed by Sam Weinig.
701
702         * Misc/WebNSStringDrawing.h: Removed.
703         * Misc/WebNSStringDrawing.mm: Removed.
704         * Misc/WebUIKitSupport.h:
705
706 2014-04-02  Mark Rowe  <mrowe@apple.com>
707
708         Build fix after r166684.
709
710         * WebView/WebPDFViewPlaceholder.mm:
711         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
712
713 2014-03-31  Anders Carlsson  <andersca@apple.com>
714
715         Fix iOS build.
716
717         * WebCoreSupport/WebChromeClientIOS.h:
718         * WebCoreSupport/WebChromeClientIOS.mm:
719         * WebCoreSupport/WebFixedPositionContent.mm:
720         * WebCoreSupport/WebFixedPositionContentInternal.h:
721
722 2014-03-30  Dan Bernstein  <mitz@apple.com>
723
724         Tried to fix the iOS build.
725
726         * Misc/WebGeolocationCoreLocationProvider.mm:
727         (-[WebGeolocationCoreLocationProvider start]):
728         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
729
730 2014-03-27  Enrica Casucci  <enrica@apple.com>
731
732         Add support for AirPlay picker for iOS.
733         https://bugs.webkit.org/show_bug.cgi?id=130876
734         <rdar://problem/15349859>
735
736         Reviewed by Benjamin Poulain.
737
738         Adds support for the AirPlay picker for WebKit.
739         The actual picker is implemented in UIKit.
740
741         * DefaultDelegates/WebDefaultUIKitDelegate.m:
742         (-[WebDefaultUIKitDelegate interactionLocation]):
743         (-[WebDefaultUIKitDelegate showPlaybackTargetPicker:fromRect:]):
744         * WebCoreSupport/WebChromeClientIOS.mm:
745         (WebChromeClientIOS::showPlaybackTargetPicker):
746         * WebCoreSupport/WebFrameIOS.h:
747         * WebCoreSupport/WebFrameIOS.mm:
748         (-[WebFrame elementRectAtPoint:]):
749         * WebView/WebUIKitDelegate.h:
750
751 2014-03-27  Enrica Casucci  <enrica@apple.com>
752
753         Add support for AirPlay picker in WK2 for iOS.
754         https://bugs.webkit.org/show_bug.cgi?id=130855
755         <rdar://problem/15349859>
756
757         Reviewed by Eric Carlson, Joseph Pecoraro and Benjamin Poulain.
758
759         Adds stub for new WebKit chrome client method.
760
761         * WebCoreSupport/WebChromeClientIOS.h:
762         * WebCoreSupport/WebChromeClientIOS.mm:
763         (WebChromeClientIOS::showAirPlayRoutePicker):
764
765 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
766
767         [iOS] Inspector View Indication Support
768         https://bugs.webkit.org/show_bug.cgi?id=130709
769
770         Reviewed by Simon Fraser.
771
772         * WebCoreSupport/WebInspectorClientIOS.mm:
773         (WebInspectorClient::showInspectorIndication):
774         (WebInspectorClient::hideInspectorIndication):
775         Renamed methods.
776
777 2014-03-22  Darin Adler  <darin@apple.com>
778
779         Remove String::deprecatedCharacters
780         https://bugs.webkit.org/show_bug.cgi?id=126854
781
782         Reviewed by Sam Weinig.
783
784         * Misc/WebNSStringDrawing.h: Added a FIXME about deleting this file; we can probably do it soon.
785         * Misc/WebNSStringDrawing.mm:
786         (+[NSString _web_setWordRoundingEnabled:]):
787         (+[NSString _web_wordRoundingEnabled]):
788         (+[NSString _web_setWordRoundingAllowed:]):
789         (+[NSString _web_wordRoundingAllowed]):
790         (+[NSString _web_setAscentRoundingEnabled:]):
791         (+[NSString _web_ascentRoundingEnabled]):
792         (-[NSString _web_drawAtPoint:withFont:]):
793         (-[NSString _web_sizeWithFont:]):
794         (-[NSString _web_sizeWithFont:forWidth:ellipsis:]):
795         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:]):
796         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:resultRange:]):
797         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:]):
798         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:]):
799         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
800         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:measureOnly:]):
801         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:]):
802         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:]):
803         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:]):
804         (-[NSString _web_sizeInRect:withFont:ellipsis:lineSpacing:]):
805         (-[NSString _web_sizeInRect:withFont:ellipsis:]):
806         (-[NSString _web_stringForWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
807         (-[NSString _web_sizeForWidth:withAttributes:]):
808         (-[NSString _web_drawAtPoint:forWidth:withAttributes:]):
809         (-[NSString _web_sizeInRect:withAttributes:]):
810         (-[NSString _web_drawInRect:withAttributes:]):
811         Emptied out all these functions since callers aren't really using them any more.
812
813 2014-03-21  Tim Horton  <timothy_horton@apple.com>
814
815         Always retrieve the screen scale factor from WKSI
816         <rdar://problem/16329679>
817
818         Reviewed by Sam Weinig.
819
820         * Misc/WebUIKitSupport.mm:
821         (WebKitSetIsClassic): Empty this out; it's no longer needed, but will still be called.
822
823 2014-03-19  Tim Horton  <timothy_horton@apple.com>
824
825         [iOS] WebPDFViewPlaceholder divides-by-zero with an empty document
826         https://bugs.webkit.org/show_bug.cgi?id=130444
827         <rdar://problem/15580682>
828
829         Reviewed by Sam Weinig.
830
831         * WebView/WebPDFViewPlaceholder.h:
832         * WebView/WebPDFViewPlaceholder.mm:
833         (-[WebPDFViewPlaceholder layout]):
834         Get rid of boundingSize, it's never assigned to anything but CGSizeZero,
835         which is confusing.
836
837         Don't divide by zero if we have no pages, instead return an empty bounding size.
838
839         (-[WebPDFViewPlaceholder _computePageRects:]):
840         If we have an empty document, set the background color to white.
841         Otherwise, set it to black. It's not clear that black is the ideal
842         background color, but this retains existing behavior.
843
844 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
845
846         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
847         https://bugs.webkit.org/show_bug.cgi?id=130276
848         <rdar://problem/16266927>
849         
850         Reviewed by Simon Fraser.
851
852         * WebCoreSupport/WebCaretChangeListener.h:
853         * WebCoreSupport/WebInspectorClientIOS.mm:
854         * WebView/WebPlainWhiteView.h:
855         * WebView/WebPlainWhiteView.mm:
856
857 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
858
859         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
860         https://bugs.webkit.org/show_bug.cgi?id=129612
861
862         Reviewed by Darin Adler.
863
864         For new code use static NeverDestroyed<T> instead.
865
866         * Misc/EmojiFallbackFontSelector.cpp:
867         (EmojiFallbackFontSelector::getFallbackFontData):
868         * WebCoreSupport/WebFixedPositionContent.mm:
869         (WebFixedPositionContentDataLock):
870
871 2014-03-13  Benjamin Poulain  <bpoulain@apple.com>
872
873         The viewport code should not depend on WebKitSystemInterface
874         https://bugs.webkit.org/show_bug.cgi?id=130218
875
876         Reviewed by Tim Horton.
877
878         * WebCoreSupport/WebChromeClientIOS.h:
879         * WebCoreSupport/WebChromeClientIOS.mm:
880         (WebChromeClientIOS::viewportScreenSize):
881         Get the viewport size from WebKitSystemInterface.
882
883 2014-03-12  Enrica Casucci  <enrica@apple.com>
884
885         Incorrect reference counting of Range in WebFrame.
886         https://bugs.webkit.org/show_bug.cgi?id=130160
887         <rdar://problem/16282535>
888
889         Reviewed by Anders Carlsson.
890
891         * WebCoreSupport/WebFrameIOS.mm:
892         (-[WebFrame selectionRects]):
893
894 2014-03-12  Simon Fraser  <simon.fraser@apple.com>
895
896         Spelling is hard
897         https://bugs.webkit.org/show_bug.cgi?id=130146
898
899         Reviewed by Beth Dakin.
900         
901         Fix spelling (constained -> constrained).
902
903         * WebCoreSupport/WebFixedPositionContent.mm:
904         (-[WebFixedPositionContent scrollOrZoomChanged:]):
905         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
906         (-[WebFixedPositionContent setViewportConstrainedLayers:WTF::WebCore::stickyContainerMap:WTF::]):
907         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
908         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
909
910 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
911
912         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
913         https://bugs.webkit.org/show_bug.cgi?id=128681
914
915         Reviewed by Timothy Hatcher.
916
917         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
918         WebCore/inspector/*. Besides files in there, a few other files in
919         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
920         and WebCore/testing were touched.
921
922         * WebCoreSupport/WebInspectorClientIOS.mm:
923
924 2014-02-12  Benjamin Poulain  <bpoulain@apple.com>
925
926         [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
927         https://bugs.webkit.org/show_bug.cgi?id=128639
928
929         Reviewed by Andreas Kling.
930
931         * WebCoreSupport/WebChromeClientIOS.h:
932         * WebCoreSupport/WebChromeClientIOS.mm:
933         (WebChromeClientIOS::didReceiveMobileDocType):
934
935 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
936
937         Build fix after r163739.
938
939         * WebCoreSupport/WebFrameIOS.mm:
940         (-[WebFrame collapseSelection]):
941         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
942
943 2014-02-03  Dan Bernstein  <mitz@apple.com>
944
945         More iOS build fixing.
946
947         * Misc/WebNSStringDrawing.mm:
948         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
949         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
950
951 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
952
953         Remove inline member functions of FrameSelection that access m_selection
954         https://bugs.webkit.org/show_bug.cgi?id=127986
955
956         Reviewed by Enrica Casucci.
957
958         * WebCoreSupport/WebFrameIOS.mm:
959         (-[WebFrame extendSelection:]):
960         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
961         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
962         (-[WebFrame expandSelectionToSentence]):
963         (-[WebFrame setBaseWritingDirection:]):
964         (-[WebFrame smartExtendRangedSelection:]):
965
966 2014-01-30  Andrei Bucur  <abucur@adobe.com>
967
968         Remove the ACCELERATED_COMPOSITING flag
969         https://bugs.webkit.org/show_bug.cgi?id=127833
970
971         Reviewed by Antti Koivisto.
972
973         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
974         mandatory.
975
976         * WebCoreSupport/WebChromeClientIOS.h:
977         * WebCoreSupport/WebChromeClientIOS.mm:
978         (WebChromeClientIOS::attachRootGraphicsLayer):
979         * WebView/WebUIKitDelegate.h:
980
981 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
982
983         Unreviewed iOS build fix. FALLTHROUGHs for iOS.
984
985         * Misc/WebNSStringDrawing.mm:
986         (needsBidiLayout):
987
988 2014-01-27  Andy Estes  <aestes@apple.com>
989
990         Scrub WebKit API headers of WTF macros
991         https://bugs.webkit.org/show_bug.cgi?id=127706
992
993         Reviewed by David Kilzer.
994
995         * WebCoreSupport/WebMIMETypeRegistry.h: Changed PLATFORM(IOS) to
996         TARGET_OS_IPHONE.
997
998 2014-01-15  Sam Weinig  <sam@webkit.org>
999
1000         TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
1001         https://bugs.webkit.org/show_bug.cgi?id=126856
1002
1003         Reviewed by Ryosuke Niwa.
1004
1005         Change all the TextBreakIterator creation functions to take StringViews. Remove a few
1006         now unnecessary up-conversions to UTF-16 in the process.
1007
1008         * Misc/WebNSStringDrawing.mm:
1009
1010 2014-01-16  Anders Carlsson  <andersca@apple.com>
1011
1012         Change all uses of FINAL to final now that all our compilers support it
1013         https://bugs.webkit.org/show_bug.cgi?id=127142
1014
1015         Reviewed by Benjamin Poulain.
1016
1017         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
1018
1019 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1020
1021         Remove workaround for compilers not supporting explicit override control
1022         https://bugs.webkit.org/show_bug.cgi?id=127111
1023
1024         Reviewed by Anders Carlsson.
1025
1026         Now all compilers support explicit override control, this workaround can be removed.
1027
1028         * Misc/EmojiFallbackFontSelector.h:
1029         * Storage/WebSQLiteDatabaseTrackerClient.h:
1030         * WebCoreSupport/PopupMenuIOS.h:
1031         * WebCoreSupport/SearchPopupMenuIOS.h:
1032         * WebCoreSupport/WebChromeClientIOS.h:
1033         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
1034
1035 2014-01-16  Andy Estes  <aestes@apple.com>
1036
1037         [iOS] Fix build issues with exported headers
1038
1039         * Misc/WebNSStringExtrasIOS.h: Changed PLATFORM(IOS) to
1040         TARGET_OS_IPHONE.
1041
1042 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1043
1044         Avoid PLATFORM() macros in exported headers.
1045
1046         * WebView/WebPDFViewPlaceholder.h:
1047
1048 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1049
1050         Clean up exports and headers for iOS.
1051
1052         * Misc/WebNSStringDrawing.h: Don't use PLATFORM() macro in an exported header.
1053         * WebCoreSupport/WebFrameIOS.h: Ditto.
1054         * WebCoreSupport/WebSelectionRect.h: Ditto.
1055
1056 2014-01-14  Dean Jackson  <dino@apple.com>
1057
1058         Remove .objc_class_name_WebInspectorXPCWrapper from export on iOS build.
1059
1060         * WebKit.iOS.exp:
1061
1062 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1063
1064         Fix WK1 iOS build: need implementations of these functions in WebInspectorClientIOS.
1065
1066         * WebCoreSupport/WebInspectorClientIOS.mm:
1067         (WebInspectorClient::indicate):
1068         (WebInspectorClient::hideIndication):
1069
1070 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
1071
1072         More work towards getting iOS WK1 building.
1073
1074         * WebCoreSupport/WebFrameIOS.mm:
1075         (-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Stub out this
1076         function, since it should use recently-refactored node snapshotting code. Covered by <rdar://problem/15808709>.
1077
1078 2014-01-12  Darin Adler  <darin@apple.com>
1079
1080         Add type checking to isEqual methods
1081         https://bugs.webkit.org/show_bug.cgi?id=126862
1082
1083         Reviewed by Anders Carlsson.
1084
1085         * WebCoreSupport/WebVisiblePosition.mm:
1086         (-[WebVisiblePosition isEqual:]): Add type checking on the argument.
1087         Add a FIXME about the lack of a hash method override. Simplified by
1088         removing the unneeded local variables.
1089
1090 2014-01-02  Andy Estes  <aestes@apple.com>
1091
1092         [iOS] Upstream remainder of minimal-ui viewport changes
1093         https://bugs.webkit.org/show_bug.cgi?id=126410
1094
1095         Reviewed by Sam Weinig.
1096
1097         * WebCoreSupport/WebChromeClientIOS.mm:
1098         (dictionaryForViewportArguments):
1099         * WebKit.iOS.exp:
1100
1101 2013-12-31  Andy Estes  <aestes@apple.com>
1102
1103         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
1104         https://bugs.webkit.org/show_bug.cgi?id=125746
1105
1106         Reviewed by David Kilzer.
1107
1108         * WebCoreSupport/WebVisiblePosition.mm:
1109         (-[WebVisiblePosition positionAtStartOrEndOfWord]): Changed a comment
1110         to mention iOS rather than iPhone.
1111
1112 2013-12-27  Daniel Bates  <dabates@apple.com>
1113
1114         [iOS] Upstream WebCore/page changes
1115         https://bugs.webkit.org/show_bug.cgi?id=126180
1116
1117         Reviewed by Darin Adler.
1118
1119         * WebCoreSupport/WebChromeClientIOS.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
1120
1121 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
1122
1123         Consolidate various frame snapshot capabilities.
1124         https://bugs.webkit.org/show_bug.cgi?id=124325
1125
1126         Reviewed by Darin Adler.
1127
1128         * WebCoreSupport/WebFrameIOS.mm: use new header file.
1129
1130 2013-12-04  Andy Estes  <aestes@apple.com>
1131
1132         [iOS] Upstream build fixes in Source/WebKit/ios/
1133         https://bugs.webkit.org/show_bug.cgi?id=125230
1134
1135         Reviewed by Sam Weinig.
1136
1137         * DefaultDelegates/WebDefaultUIKitDelegate.m:
1138         (-[WebDefaultUIKitDelegate webViewDidReceiveMobileDocType:]):
1139         * Misc/WebNSStringDrawing.mm:
1140         (needsBidiLayout):
1141         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
1142         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
1143         * Misc/WebUIKitSupport.mm:
1144         (WebKitInitialize):
1145         * WebCoreSupport/WebChromeClientIOS.h:
1146         * WebCoreSupport/WebChromeClientIOS.mm:
1147         (WebChromeClientIOS::didReceiveMobileDocType):
1148         (WebChromeClientIOS::focusedElementChanged):
1149         * WebCoreSupport/WebFrameIOS.mm:
1150         (-[WebFrame clearSelection]):
1151         (-[WebFrame selectionState]):
1152         (-[WebFrame collapseSelection]):
1153         (-[WebFrame extendSelection:]):
1154         (-[WebFrame selectionRects]):
1155         (-[WebFrame setRangedSelectionWithExtentPoint:]):
1156         (-[WebFrame setRangedSelectionExtentPoint:baseIsStart:allowFlipping:]):
1157         (-[WebFrame setSelectionWithBasePoint:extentPoint:baseIsStart:allowFlipping:]):
1158         (-[WebFrame setSelectionWithFirstPoint:secondPoint:]):
1159         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
1160         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
1161         (-[WebFrame expandSelectionToSentence]):
1162         (-[WebFrame setBaseWritingDirection:]):
1163         (-[WebFrame moveSelectionToStart]):
1164         (-[WebFrame moveSelectionToEnd]):
1165         (-[WebFrame moveSelectionToPoint:]):
1166         (-[WebFrame setSelectionGranularity:]):
1167         (-[WebFrame smartExtendRangedSelection:]):
1168         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
1169         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
1170         * WebCoreSupport/WebInspectorClientIOS.mm:
1171         (WebInspectorClient::WebInspectorClient):
1172         (WebInspectorClient::didSetSearchingForNode):
1173         (WebInspectorClient::setupRemoteConnection):
1174         (WebInspectorClient::teardownRemoteConnection):
1175         * WebCoreSupport/WebVisiblePosition.mm:
1176         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
1177         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
1178         (-[DOMHTMLInputElement startPosition]):
1179         (-[DOMHTMLInputElement endPosition]):
1180         (-[DOMHTMLTextAreaElement startPosition]):
1181         (-[DOMHTMLTextAreaElement endPosition]):
1182         * WebView/WebPDFViewIOS.mm:
1183         (+[WebPDFView shadowColor]):
1184         (+[WebPDFView backgroundColor]):
1185         (-[WebPDFView _checkPDFTitle]):
1186         * WebView/WebPDFViewPlaceholder.mm:
1187         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
1188         * WebView/WebUIKitDelegate.h:
1189
1190 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
1191
1192         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1193         https://bugs.webkit.org/show_bug.cgi?id=124613
1194
1195         Reviewed by Timothy Hatcher.
1196
1197         * WebCoreSupport/WebInspectorClientIOS.mm:
1198         (WebInspectorClient::WebInspectorClient):
1199         (WebInspectorClient::inspectorDestroyed):
1200
1201 2013-12-03  Ralph Thomas  <ralpht@gmail.com>
1202
1203         Typo: FixedPositionConstaint -> FixedPositionConstraint
1204         https://bugs.webkit.org/show_bug.cgi?id=125171
1205
1206         Reviewed by Simon Fraser.
1207
1208         * WebCoreSupport/WebFixedPositionContent.mm:
1209         (-[WebFixedPositionContent scrollOrZoomChanged:]):
1210
1211 2013-11-18  Commit Queue  <commit-queue@webkit.org>
1212
1213         Unreviewed, rolling out r159455.
1214         http://trac.webkit.org/changeset/159455
1215         https://bugs.webkit.org/show_bug.cgi?id=124568
1216
1217         broke two api tests (see bug 124564) (Requested by thorton on
1218         #webkit).
1219
1220         * WebCoreSupport/WebFrameIOS.mm:
1221
1222 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
1223
1224         Consolidate various frame snapshot capabilities.
1225         https://bugs.webkit.org/show_bug.cgi?id=124325
1226
1227         Reviewed by Timothy Hatcher.
1228
1229         * WebCoreSupport/WebFrameIOS.mm: use new header file.
1230
1231 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
1232
1233         Remove a PLATFORM(IOS) from WebKit Private Header
1234         https://bugs.webkit.org/show_bug.cgi?id=124014
1235
1236         Reviewed by Timothy Hatcher.
1237
1238         * WebKit.iOS.exp:
1239
1240 2013-10-29  Andy Estes  <aestes@apple.com>
1241
1242         [iOS] Upstream Source/WebKit/ios/
1243         https://bugs.webkit.org/show_bug.cgi?id=123470
1244
1245         Reviewed by Sam Weinig.
1246
1247         * DefaultDelegates/WebDefaultFormDelegate.h: Added.
1248         * DefaultDelegates/WebDefaultFormDelegate.m: Added.
1249         * DefaultDelegates/WebDefaultFrameLoadDelegate.h: Added.
1250         * DefaultDelegates/WebDefaultFrameLoadDelegate.m: Added.
1251         * DefaultDelegates/WebDefaultResourceLoadDelegate.h: Added.
1252         * DefaultDelegates/WebDefaultResourceLoadDelegate.m: Added.
1253         * DefaultDelegates/WebDefaultUIKitDelegate.h: Added.
1254         * DefaultDelegates/WebDefaultUIKitDelegate.m: Added.
1255         * Misc/EmojiFallbackFontSelector.cpp: Added.
1256         * Misc/EmojiFallbackFontSelector.h: Added.
1257         * Misc/MemoryMeasure.h: Added.
1258         * Misc/MemoryMeasure.mm: Added.
1259         * Misc/WebGeolocationCoreLocationProvider.h: Added.
1260         * Misc/WebGeolocationCoreLocationProvider.mm: Added.
1261         * Misc/WebGeolocationProviderIOS.h: Added.
1262         * Misc/WebGeolocationProviderIOS.mm: Added.
1263         * Misc/WebNSStringDrawing.h: Added.
1264         * Misc/WebNSStringDrawing.mm: Added.
1265         * Misc/WebNSStringExtrasIOS.h: Added.
1266         * Misc/WebNSStringExtrasIOS.m: Added.
1267         * Misc/WebNSStringExtrasIPhone.h: Added.
1268         * Misc/WebUIKitSupport.h: Added.
1269         * Misc/WebUIKitSupport.mm: Added.
1270         * Storage/WebSQLiteDatabaseTrackerClient.h: Added.
1271         * Storage/WebSQLiteDatabaseTrackerClient.mm: Added.
1272         * WebCoreSupport/PopupMenuIOS.h: Added.
1273         * WebCoreSupport/PopupMenuIOS.mm: Added.
1274         * WebCoreSupport/SearchPopupMenuIOS.cpp: Added.
1275         * WebCoreSupport/SearchPopupMenuIOS.h: Added.
1276         * WebCoreSupport/WebCaretChangeListener.h: Added.
1277         * WebCoreSupport/WebChromeClientIOS.h: Added.
1278         * WebCoreSupport/WebChromeClientIOS.mm: Added.
1279         * WebCoreSupport/WebFixedPositionContent.h: Added.
1280         * WebCoreSupport/WebFixedPositionContent.mm: Added.
1281         * WebCoreSupport/WebFixedPositionContentInternal.h: Added.
1282         * WebCoreSupport/WebFrameIOS.h: Added.
1283         * WebCoreSupport/WebFrameIOS.mm: Added.
1284         * WebCoreSupport/WebFrameIPhone.h: Added.
1285         * WebCoreSupport/WebGeolocation.mm: Added.
1286         * WebCoreSupport/WebGeolocationInternal.h: Added.
1287         * WebCoreSupport/WebGeolocationPrivate.h: Added.
1288         * WebCoreSupport/WebMIMETypeRegistry.h: Added.
1289         * WebCoreSupport/WebMIMETypeRegistry.mm: Added.
1290         * WebCoreSupport/WebSelectionRect.h: Added.
1291         * WebCoreSupport/WebSelectionRect.m: Added.
1292         * WebCoreSupport/WebVisiblePosition.h: Added.
1293         * WebCoreSupport/WebVisiblePosition.mm: Added.
1294         * WebCoreSupport/WebVisiblePositionInternal.h: Added.
1295         * WebKit.iOS.exp: Added.
1296         * WebView/WebFrameViewWAKCompatibility.m: Added.
1297         * WebView/WebMailDelegate.h: Added.
1298         * WebView/WebPDFViewIOS.h: Added.
1299         * WebView/WebPDFViewIOS.mm: Added.
1300         * WebView/WebPDFViewIPhone.h: Added.
1301         * WebView/WebPDFViewPlaceholder.h: Added.
1302         * WebView/WebPDFViewPlaceholder.mm: Added.
1303         * WebView/WebPlainWhiteView.h: Added.
1304         * WebView/WebPlainWhiteView.mm: Added.
1305         * WebView/WebUIKitDelegate.h: Added.
1306
1307 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
1308
1309         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
1310         https://bugs.webkit.org/show_bug.cgi?id=123111
1311
1312         Reviewed by Timothy Hatcher.
1313
1314         iOS does not have a local inspector, only remote. So give it a custom
1315         implementation separate from the WebKit/mac WebInspectorClient
1316         implementation which handles an attaching/detaching local inspector.
1317
1318         * WebKit.xcodeproj/project.pbxproj:
1319         * ios/WebCoreSupport/WebInspectorClientIOS.mm: Added.
1320         (WebInspectorClient::WebInspectorClient):
1321         (WebInspectorClient::inspectorDestroyed):
1322         (WebInspectorClient::openInspectorFrontend):
1323         (WebInspectorClient::bringFrontendToFront):
1324         (WebInspectorClient::closeInspectorFrontend):
1325         (WebInspectorClient::didResizeMainFrame):
1326         (WebInspectorClient::highlight):
1327         (WebInspectorClient::hideHighlight):
1328         (WebInspectorClient::didSetSearchingForNode):
1329         (WebInspectorClient::sendMessageToFrontend):
1330         (WebInspectorClient::sendMessageToBackend):
1331         (WebInspectorClient::setupRemoteConnection):
1332         (WebInspectorClient::teardownRemoteConnection):
1333         (WebInspectorClient::hasLocalSession):
1334         (WebInspectorClient::canBeRemotelyInspected):
1335         (WebInspectorClient::inspectedWebView):
1336         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1337         (WebInspectorFrontendClient::attachAvailabilityChanged):
1338         (WebInspectorFrontendClient::frontendLoaded):
1339         (WebInspectorFrontendClient::localizedStringsURL):
1340         (WebInspectorFrontendClient::bringToFront):
1341         (WebInspectorFrontendClient::closeWindow):
1342         (WebInspectorFrontendClient::disconnectFromBackend):
1343         (WebInspectorFrontendClient::attachWindow):
1344         (WebInspectorFrontendClient::detachWindow):
1345         (WebInspectorFrontendClient::setAttachedWindowHeight):
1346         (WebInspectorFrontendClient::setAttachedWindowWidth):
1347         (WebInspectorFrontendClient::setToolbarHeight):
1348         (WebInspectorFrontendClient::inspectedURLChanged):
1349         (WebInspectorFrontendClient::updateWindowTitle):
1350         (WebInspectorFrontendClient::save):
1351         (WebInspectorFrontendClient::append):