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