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