[iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
[WebKit-https.git] / Source / WebKit / ios / ChangeLog
1 2014-09-24  Daniel Bates  <dabates@apple.com>
2
3         [iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
4         https://bugs.webkit.org/show_bug.cgi?id=137101
5         <rdar://problem/18449815>
6
7         Reviewed by Mark Lam.
8
9         * Misc/WebGeolocationCoreLocationProvider.mm:
10         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
11         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
12
13 2014-09-24  Christophe Dumez  <cdumez@apple.com>
14
15         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
16         https://bugs.webkit.org/show_bug.cgi?id=137068
17
18         Reviewed by Ryosuke Niwa.
19
20         Start using is<HTML*Element>() instead of isHTML*Element().
21         Remaining usages will be updated in a follow-up patch to
22         reduce the size of the change.
23
24         * WebCoreSupport/WebChromeClientIOS.mm:
25         (WebChromeClientIOS::focusedElementChanged):
26
27 2014-09-21  Timothy Hatcher  <timothy@apple.com>
28
29         Make the Web Inspector use a separate web process.
30
31         https://bugs.webkit.org/show_bug.cgi?id=135120
32
33         Reviewed by Anders Carlsson.
34
35         * WebCoreSupport/WebInspectorClientIOS.mm:
36         (WebInspectorClient::WebInspectorClient):
37         Removed m_frontendClient initialization since it is
38         now a std::unique_ptr that defaults to nullptr.
39
40 2014-09-23  Chris Dumez  <cdumez@apple.com>
41
42         Use downcast<HTML*Element>() instead of toHTML*Element()
43         https://bugs.webkit.org/show_bug.cgi?id=137007
44
45         Reviewed by Benjamin Poulain.
46
47         Use downcast<HTML*Element>() instead of toHTML*Element().
48
49         * WebCoreSupport/WebChromeClientIOS.mm:
50         (WebChromeClientIOS::focusedElementChanged):
51
52 2014-09-17  Daniel Bates  <dabates@apple.com>
53
54         Unreviewed, rolling out r173695.
55
56         Broke building third-party Legacy WebKit apps; will
57         investigate offline
58
59         Reverted changeset:
60
61         "[iOS] Make WebCore build with public iOS SDK"
62         https://bugs.webkit.org/show_bug.cgi?id=136487
63         http://trac.webkit.org/changeset/173695
64
65 2014-09-17  Daniel Bates  <dabates@apple.com>
66
67         [iOS] Make WebCore build with public iOS SDK
68         https://bugs.webkit.org/show_bug.cgi?id=136487
69
70         Reviewed by David Kilzer.
71
72         Substitute <WebCore/CGFloatSPI.h> for <CoreGraphics/CGFloat.h>.
73
74         * WebCoreSupport/WebFixedPositionContent.mm:
75
76 2014-09-05  Simon Fraser  <simon.fraser@apple.com>
77
78         Remove some PLATFORM(IOS) code in Color.h/cpp
79         https://bugs.webkit.org/show_bug.cgi?id=136582
80
81         Reviewed by Dan Bates.
82         
83         createCGColorWithDeviceWhite() is only used here so make it a local static function.
84
85         * WebView/WebPDFViewIOS.mm:
86         (createCGColorWithDeviceWhite):
87
88 2014-09-04  Pratik Solanki  <psolanki@apple.com>
89
90         Remove iOS specific disk image cache
91         https://bugs.webkit.org/show_bug.cgi?id=136517
92
93         Reviewed by Antti Koivisto.
94
95         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
96         this now since we don't enable it in WebKit2 on iOS.
97
98         * WebCoreSupport/WebDiskImageCacheClientIOS.h: Removed.
99         * WebCoreSupport/WebDiskImageCacheClientIOS.mm: Removed.
100         * WebView/WebPDFViewPlaceholder.mm:
101         (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
102         (-[WebPDFViewPlaceholder dataSourceMemoryMapped]): Deleted.
103         (-[WebPDFViewPlaceholder dataSourceMemoryMapFailed]): Deleted.
104
105 2014-08-31  Tim Horton  <timothy_horton@apple.com>
106
107         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
108         https://bugs.webkit.org/show_bug.cgi?id=136416
109
110         Reviewed by Dan Bernstein.
111
112         * WebView/WebPDFViewIOS.mm:
113         (-[WebPDFView drawPage:]):
114         (-[WebPDFView drawRect:]):
115         * WebView/WebPlainWhiteView.mm:
116         We only end up filling, so only set the fill color.
117
118 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
119
120         Implement paint flashing in the WK1 InspectorOverlay page
121         https://bugs.webkit.org/show_bug.cgi?id=136138
122
123         Reviewed by Sam Weinig, Joseph Pecoraro.
124
125         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
126         We avoid allocating backing store for this canvas until we have paint rects.
127         
128         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
129         an array of rects, and pushes them to the page when they change, before forcing a paint.
130         
131         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
132         WebKit WebInspectorClient, but don't yet implement paint flashing there.
133
134         * WebCoreSupport/WebInspectorClientIOS.mm:
135         (WebInspectorClient::setShowPaintRects):
136         (WebInspectorClient::showPaintRect):
137
138 2014-08-18  Andy Estes  <aestes@apple.com>
139
140         Fix the iOS build after  r172709.
141
142         * WebView/WebPDFViewPlaceholder.mm:
143         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
144
145 2014-07-03  Daniel Bates  <dabates@apple.com>
146
147         Add WTF::move()
148         https://bugs.webkit.org/show_bug.cgi?id=134500
149
150         Rubber-stamped by Anders Carlsson.
151
152         Substitute WTF::move() for std::move().
153
154         * WebCoreSupport/WebFixedPositionContent.mm:
155         (-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
156         * WebCoreSupport/WebInspectorClientIOS.mm:
157         (WebInspectorFrontendClient::WebInspectorFrontendClient):
158
159 2014-07-01  Alex Christensen  <achristensen@webkit.org>
160
161         [iOS] Compile fix with pointer lock enabled.
162         https://bugs.webkit.org/show_bug.cgi?id=134472
163
164         Reviewed by Pratik Solanki.
165
166         * WebView/WebPDFViewPlaceholder.mm:
167         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
168         Add parameters required for pointer lock.
169
170 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
171
172         [iOS][WK2] Add device orientation
173         https://bugs.webkit.org/show_bug.cgi?id=133530
174
175         Reviewed by Tim Horton.
176
177         Change WebKit1 to provide the deviceOrientation as pull instead of push.
178
179         * DefaultDelegates/WebDefaultUIKitDelegate.m:
180         (-[WebDefaultUIKitDelegate deviceOrientation]):
181         * WebCoreSupport/WebChromeClientIOS.h:
182         * WebCoreSupport/WebChromeClientIOS.mm:
183         (WebChromeClientIOS::deviceOrientation):
184         * WebView/WebUIKitDelegate.h:
185
186 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
187
188         [iOS] Switch geolocation to an explicit authorization query model
189         https://bugs.webkit.org/show_bug.cgi?id=132717
190         <rdar://problem/16762390>
191
192         Reviewed by Sam Weinig.
193
194         WebGeolocationCoreLocationProvider is the general WebKit wrapper for CoreLocation.
195
196         The old model was to start WebGeolocationCoreLocationProvider and have the start fail or succeed.
197         The new model is to explicitely ask for authorization through "requestGeolocationAuthorization", and
198         listen to "geolocationAuthorizationGranted" and "geolocationAuthorizationDenied".
199
200         We assume the client of WebGeolocationCoreLocationProvider is well behaved and ask for authorization
201         before invoking "start".
202         If "start" is called and the authorization is not granted, we assume geolocation was reset since
203         the last time authorization was requested, and we reset the client.
204
205
206         WebGeolocationProviderIOS has been adapted to that model. Instead of doing the "warmup" sequence
207         to get the authorization, it queries WebGeolocationCoreLocationProvider explicitly.
208
209         * Misc/WebGeolocationCoreLocationProvider.h:
210         * Misc/WebGeolocationCoreLocationProvider.mm:
211         (-[WebGeolocationCoreLocationProvider createLocationManager]):
212         (-[WebGeolocationCoreLocationProvider dealloc]):
213         (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
214         (isAuthorizationGranted):
215         (-[WebGeolocationCoreLocationProvider start]):
216         (-[WebGeolocationCoreLocationProvider stop]):
217         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
218         (-[WebGeolocationCoreLocationProvider setEnableHighAccuracy:]):
219         (-[WebGeolocationCoreLocationProvider handleExternalAuthorizationStatusChange:]): Deleted.
220         * Misc/WebGeolocationProviderIOS.mm:
221         (-[WebGeolocationProviderIOS suspend]):
222         (-[WebGeolocationProviderIOS resume]):
223         (-[WebGeolocationProviderIOS registerWebView:]):
224         (-[WebGeolocationProviderIOS unregisterWebView:]):
225         (-[WebGeolocationProviderIOS setEnableHighAccuracy:]):
226         (-[WebGeolocationProviderIOS initializeGeolocationForWebView:listener:]):
227         (-[WebGeolocationProviderIOS geolocationAuthorizationGranted]):
228         (-[WebGeolocationProviderIOS geolocationAuthorizationDenied]):
229         (-[WebGeolocationProviderIOS stopTrackingWebView:]):
230         (-[WebGeolocationProviderIOS resetGeolocation]):
231         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationGranted]):
232         (-[_WebCoreLocationUpdateThreadingProxy geolocationAuthorizationDenied]):
233         (-[_WebCoreLocationUpdateThreadingProxy positionChanged:WebCore::]):
234         (-[_WebCoreLocationUpdateThreadingProxy errorOccurred:]):
235         (-[_WebCoreLocationUpdateThreadingProxy resetGeolocation]):
236         (-[WebGeolocationProviderIOS _startCoreLocationDelegate]): Deleted.
237         (-[WebGeolocationProviderIOS _stopCoreLocationDelegateIfNeeded]): Deleted.
238         (-[WebGeolocationProviderIOS cancelWarmUpForWebView:]): Deleted.
239         (-[WebGeolocationProviderIOS geolocationDelegateStarted]): Deleted.
240         (-[WebGeolocationProviderIOS geolocationDelegateUnableToStart]): Deleted.
241         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateStarted]): Deleted.
242         (-[_WebCoreLocationUpdateThreadingProxy geolocationDelegateUnableToStart]): Deleted.
243
244 2014-04-30  Anders Carlsson  <andersca@apple.com>
245
246         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
247         https://bugs.webkit.org/show_bug.cgi?id=132399
248         <rdar://problem/15920046>
249
250         Reviewed by Dan Bernstein.
251
252         Import WebKitLegacy headers instead of WebKit headers.
253         
254         * DefaultDelegates/WebDefaultFormDelegate.h:
255         * DefaultDelegates/WebDefaultFrameLoadDelegate.m:
256         * DefaultDelegates/WebDefaultResourceLoadDelegate.m:
257         * DefaultDelegates/WebDefaultUIKitDelegate.h:
258         * Misc/WebGeolocationProviderIOS.h:
259         * Misc/WebNSStringExtrasIPhone.h:
260         * WebCoreSupport/WebFrameIOS.h:
261         * WebCoreSupport/WebFrameIOS.mm:
262         * WebCoreSupport/WebFrameIPhone.h:
263         * WebCoreSupport/WebSelectionRect.h:
264         * WebCoreSupport/WebVisiblePosition.h:
265         * WebView/WebPDFViewIOS.h:
266         * WebView/WebPDFViewIOS.mm:
267         * WebView/WebPDFViewIPhone.h:
268         * WebView/WebPDFViewPlaceholder.h:
269         * WebView/WebPDFViewPlaceholder.mm:
270         * WebView/WebPlainWhiteView.h:
271         * WebView/WebUIKitDelegate.h:
272
273 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
274
275         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
276         https://bugs.webkit.org/show_bug.cgi?id=132110
277
278         Reviewed by Tim Horton.
279
280         Updates callers to use '.' instead of '->'.
281
282         No new tests are necessary because there should be no behavior change.
283
284         * Misc/EmojiFallbackFontSelector.cpp:
285         (EmojiFallbackFontSelector::getFallbackFontData):
286
287 2014-04-17  Daniel Bates  <dabates@apple.com>
288
289         [iOS] Hook up screen.{availHeight, availWidth, height, width}
290         https://bugs.webkit.org/show_bug.cgi?id=131821
291         <rdar://problem/16413795>
292
293         Reviewed by Benjamin Poulain and Tim Horton.
294
295         Provide iOS-specific WebKit1 implementation for ChromeClient::availableScreenSize().
296
297         Additionally substitute "screenSize" for "viewporScreenSize" to make the code more understandable.
298
299         * WebCoreSupport/WebChromeClientIOS.h:
300         * WebCoreSupport/WebChromeClientIOS.mm:
301         (WebChromeClientIOS::screenSize): Renamed; formerly named viewportScreenSize.
302         (WebChromeClientIOS::availableScreenSize): Added; ASSERT_NOT_REACHED() as a widget
303         should consult it's associated WAKWindow for the available screen size.
304
305 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
306
307         Rename Clipboard to DataTransfer
308         https://bugs.webkit.org/show_bug.cgi?id=131371
309
310         Reviewed by Anders Carlsson.
311
312         * WebView/WebPDFViewPlaceholder.mm:
313
314 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
315
316         [iOS] Remove the legacy string drawing code
317         https://bugs.webkit.org/show_bug.cgi?id=131088
318
319         Reviewed by Sam Weinig.
320
321         * Misc/WebNSStringDrawing.h: Removed.
322         * Misc/WebNSStringDrawing.mm: Removed.
323         * Misc/WebUIKitSupport.h:
324
325 2014-04-02  Mark Rowe  <mrowe@apple.com>
326
327         Build fix after r166684.
328
329         * WebView/WebPDFViewPlaceholder.mm:
330         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
331
332 2014-03-31  Anders Carlsson  <andersca@apple.com>
333
334         Fix iOS build.
335
336         * WebCoreSupport/WebChromeClientIOS.h:
337         * WebCoreSupport/WebChromeClientIOS.mm:
338         * WebCoreSupport/WebFixedPositionContent.mm:
339         * WebCoreSupport/WebFixedPositionContentInternal.h:
340
341 2014-03-30  Dan Bernstein  <mitz@apple.com>
342
343         Tried to fix the iOS build.
344
345         * Misc/WebGeolocationCoreLocationProvider.mm:
346         (-[WebGeolocationCoreLocationProvider start]):
347         (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
348
349 2014-03-27  Enrica Casucci  <enrica@apple.com>
350
351         Add support for AirPlay picker for iOS.
352         https://bugs.webkit.org/show_bug.cgi?id=130876
353         <rdar://problem/15349859>
354
355         Reviewed by Benjamin Poulain.
356
357         Adds support for the AirPlay picker for WebKit.
358         The actual picker is implemented in UIKit.
359
360         * DefaultDelegates/WebDefaultUIKitDelegate.m:
361         (-[WebDefaultUIKitDelegate interactionLocation]):
362         (-[WebDefaultUIKitDelegate showPlaybackTargetPicker:fromRect:]):
363         * WebCoreSupport/WebChromeClientIOS.mm:
364         (WebChromeClientIOS::showPlaybackTargetPicker):
365         * WebCoreSupport/WebFrameIOS.h:
366         * WebCoreSupport/WebFrameIOS.mm:
367         (-[WebFrame elementRectAtPoint:]):
368         * WebView/WebUIKitDelegate.h:
369
370 2014-03-27  Enrica Casucci  <enrica@apple.com>
371
372         Add support for AirPlay picker in WK2 for iOS.
373         https://bugs.webkit.org/show_bug.cgi?id=130855
374         <rdar://problem/15349859>
375
376         Reviewed by Eric Carlson, Joseph Pecoraro and Benjamin Poulain.
377
378         Adds stub for new WebKit chrome client method.
379
380         * WebCoreSupport/WebChromeClientIOS.h:
381         * WebCoreSupport/WebChromeClientIOS.mm:
382         (WebChromeClientIOS::showAirPlayRoutePicker):
383
384 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
385
386         [iOS] Inspector View Indication Support
387         https://bugs.webkit.org/show_bug.cgi?id=130709
388
389         Reviewed by Simon Fraser.
390
391         * WebCoreSupport/WebInspectorClientIOS.mm:
392         (WebInspectorClient::showInspectorIndication):
393         (WebInspectorClient::hideInspectorIndication):
394         Renamed methods.
395
396 2014-03-22  Darin Adler  <darin@apple.com>
397
398         Remove String::deprecatedCharacters
399         https://bugs.webkit.org/show_bug.cgi?id=126854
400
401         Reviewed by Sam Weinig.
402
403         * Misc/WebNSStringDrawing.h: Added a FIXME about deleting this file; we can probably do it soon.
404         * Misc/WebNSStringDrawing.mm:
405         (+[NSString _web_setWordRoundingEnabled:]):
406         (+[NSString _web_wordRoundingEnabled]):
407         (+[NSString _web_setWordRoundingAllowed:]):
408         (+[NSString _web_wordRoundingAllowed]):
409         (+[NSString _web_setAscentRoundingEnabled:]):
410         (+[NSString _web_ascentRoundingEnabled]):
411         (-[NSString _web_drawAtPoint:withFont:]):
412         (-[NSString _web_sizeWithFont:]):
413         (-[NSString _web_sizeWithFont:forWidth:ellipsis:]):
414         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:]):
415         (-[NSString _web_sizeWithFont:forWidth:ellipsis:letterSpacing:resultRange:]):
416         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:]):
417         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:]):
418         (-[NSString _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
419         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:measureOnly:]):
420         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:includeEmoji:truncationRect:]):
421         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:lineSpacing:]):
422         (-[NSString _web_drawInRect:withFont:ellipsis:alignment:]):
423         (-[NSString _web_sizeInRect:withFont:ellipsis:lineSpacing:]):
424         (-[NSString _web_sizeInRect:withFont:ellipsis:]):
425         (-[NSString _web_stringForWidth:withFont:ellipsis:letterSpacing:includeEmoji:]):
426         (-[NSString _web_sizeForWidth:withAttributes:]):
427         (-[NSString _web_drawAtPoint:forWidth:withAttributes:]):
428         (-[NSString _web_sizeInRect:withAttributes:]):
429         (-[NSString _web_drawInRect:withAttributes:]):
430         Emptied out all these functions since callers aren't really using them any more.
431
432 2014-03-21  Tim Horton  <timothy_horton@apple.com>
433
434         Always retrieve the screen scale factor from WKSI
435         <rdar://problem/16329679>
436
437         Reviewed by Sam Weinig.
438
439         * Misc/WebUIKitSupport.mm:
440         (WebKitSetIsClassic): Empty this out; it's no longer needed, but will still be called.
441
442 2014-03-19  Tim Horton  <timothy_horton@apple.com>
443
444         [iOS] WebPDFViewPlaceholder divides-by-zero with an empty document
445         https://bugs.webkit.org/show_bug.cgi?id=130444
446         <rdar://problem/15580682>
447
448         Reviewed by Sam Weinig.
449
450         * WebView/WebPDFViewPlaceholder.h:
451         * WebView/WebPDFViewPlaceholder.mm:
452         (-[WebPDFViewPlaceholder layout]):
453         Get rid of boundingSize, it's never assigned to anything but CGSizeZero,
454         which is confusing.
455
456         Don't divide by zero if we have no pages, instead return an empty bounding size.
457
458         (-[WebPDFViewPlaceholder _computePageRects:]):
459         If we have an empty document, set the background color to white.
460         Otherwise, set it to black. It's not clear that black is the ideal
461         background color, but this retains existing behavior.
462
463 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
464
465         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
466         https://bugs.webkit.org/show_bug.cgi?id=130276
467         <rdar://problem/16266927>
468         
469         Reviewed by Simon Fraser.
470
471         * WebCoreSupport/WebCaretChangeListener.h:
472         * WebCoreSupport/WebInspectorClientIOS.mm:
473         * WebView/WebPlainWhiteView.h:
474         * WebView/WebPlainWhiteView.mm:
475
476 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
477
478         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
479         https://bugs.webkit.org/show_bug.cgi?id=129612
480
481         Reviewed by Darin Adler.
482
483         For new code use static NeverDestroyed<T> instead.
484
485         * Misc/EmojiFallbackFontSelector.cpp:
486         (EmojiFallbackFontSelector::getFallbackFontData):
487         * WebCoreSupport/WebFixedPositionContent.mm:
488         (WebFixedPositionContentDataLock):
489
490 2014-03-13  Benjamin Poulain  <bpoulain@apple.com>
491
492         The viewport code should not depend on WebKitSystemInterface
493         https://bugs.webkit.org/show_bug.cgi?id=130218
494
495         Reviewed by Tim Horton.
496
497         * WebCoreSupport/WebChromeClientIOS.h:
498         * WebCoreSupport/WebChromeClientIOS.mm:
499         (WebChromeClientIOS::viewportScreenSize):
500         Get the viewport size from WebKitSystemInterface.
501
502 2014-03-12  Enrica Casucci  <enrica@apple.com>
503
504         Incorrect reference counting of Range in WebFrame.
505         https://bugs.webkit.org/show_bug.cgi?id=130160
506         <rdar://problem/16282535>
507
508         Reviewed by Anders Carlsson.
509
510         * WebCoreSupport/WebFrameIOS.mm:
511         (-[WebFrame selectionRects]):
512
513 2014-03-12  Simon Fraser  <simon.fraser@apple.com>
514
515         Spelling is hard
516         https://bugs.webkit.org/show_bug.cgi?id=130146
517
518         Reviewed by Beth Dakin.
519         
520         Fix spelling (constained -> constrained).
521
522         * WebCoreSupport/WebFixedPositionContent.mm:
523         (-[WebFixedPositionContent scrollOrZoomChanged:]):
524         (-[WebFixedPositionContent overflowScrollPositionForLayer:changedTo:]):
525         (-[WebFixedPositionContent setViewportConstrainedLayers:WTF::WebCore::stickyContainerMap:WTF::]):
526         (-[WebFixedPositionContent hasFixedOrStickyPositionLayers]):
527         (-[WebFixedPositionContent minimumOffsetFromFixedPositionLayersToAnchorEdge:ofRect:inLayer:]):
528
529 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
530
531         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
532         https://bugs.webkit.org/show_bug.cgi?id=128681
533
534         Reviewed by Timothy Hatcher.
535
536         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
537         WebCore/inspector/*. Besides files in there, a few other files in
538         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
539         and WebCore/testing were touched.
540
541         * WebCoreSupport/WebInspectorClientIOS.mm:
542
543 2014-02-12  Benjamin Poulain  <bpoulain@apple.com>
544
545         [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
546         https://bugs.webkit.org/show_bug.cgi?id=128639
547
548         Reviewed by Andreas Kling.
549
550         * WebCoreSupport/WebChromeClientIOS.h:
551         * WebCoreSupport/WebChromeClientIOS.mm:
552         (WebChromeClientIOS::didReceiveMobileDocType):
553
554 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
555
556         Build fix after r163739.
557
558         * WebCoreSupport/WebFrameIOS.mm:
559         (-[WebFrame collapseSelection]):
560         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
561
562 2014-02-03  Dan Bernstein  <mitz@apple.com>
563
564         More iOS build fixing.
565
566         * Misc/WebNSStringDrawing.mm:
567         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
568         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
569
570 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
571
572         Remove inline member functions of FrameSelection that access m_selection
573         https://bugs.webkit.org/show_bug.cgi?id=127986
574
575         Reviewed by Enrica Casucci.
576
577         * WebCoreSupport/WebFrameIOS.mm:
578         (-[WebFrame extendSelection:]):
579         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
580         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
581         (-[WebFrame expandSelectionToSentence]):
582         (-[WebFrame setBaseWritingDirection:]):
583         (-[WebFrame smartExtendRangedSelection:]):
584
585 2014-01-30  Andrei Bucur  <abucur@adobe.com>
586
587         Remove the ACCELERATED_COMPOSITING flag
588         https://bugs.webkit.org/show_bug.cgi?id=127833
589
590         Reviewed by Antti Koivisto.
591
592         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
593         mandatory.
594
595         * WebCoreSupport/WebChromeClientIOS.h:
596         * WebCoreSupport/WebChromeClientIOS.mm:
597         (WebChromeClientIOS::attachRootGraphicsLayer):
598         * WebView/WebUIKitDelegate.h:
599
600 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
601
602         Unreviewed iOS build fix. FALLTHROUGHs for iOS.
603
604         * Misc/WebNSStringDrawing.mm:
605         (needsBidiLayout):
606
607 2014-01-27  Andy Estes  <aestes@apple.com>
608
609         Scrub WebKit API headers of WTF macros
610         https://bugs.webkit.org/show_bug.cgi?id=127706
611
612         Reviewed by David Kilzer.
613
614         * WebCoreSupport/WebMIMETypeRegistry.h: Changed PLATFORM(IOS) to
615         TARGET_OS_IPHONE.
616
617 2014-01-15  Sam Weinig  <sam@webkit.org>
618
619         TextBreakIterator's should support Latin-1 for all iterator types (Part 3)
620         https://bugs.webkit.org/show_bug.cgi?id=126856
621
622         Reviewed by Ryosuke Niwa.
623
624         Change all the TextBreakIterator creation functions to take StringViews. Remove a few
625         now unnecessary up-conversions to UTF-16 in the process.
626
627         * Misc/WebNSStringDrawing.mm:
628
629 2014-01-16  Anders Carlsson  <andersca@apple.com>
630
631         Change all uses of FINAL to final now that all our compilers support it
632         https://bugs.webkit.org/show_bug.cgi?id=127142
633
634         Reviewed by Benjamin Poulain.
635
636         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
637
638 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
639
640         Remove workaround for compilers not supporting explicit override control
641         https://bugs.webkit.org/show_bug.cgi?id=127111
642
643         Reviewed by Anders Carlsson.
644
645         Now all compilers support explicit override control, this workaround can be removed.
646
647         * Misc/EmojiFallbackFontSelector.h:
648         * Storage/WebSQLiteDatabaseTrackerClient.h:
649         * WebCoreSupport/PopupMenuIOS.h:
650         * WebCoreSupport/SearchPopupMenuIOS.h:
651         * WebCoreSupport/WebChromeClientIOS.h:
652         * WebCoreSupport/WebDiskImageCacheClientIOS.h:
653
654 2014-01-16  Andy Estes  <aestes@apple.com>
655
656         [iOS] Fix build issues with exported headers
657
658         * Misc/WebNSStringExtrasIOS.h: Changed PLATFORM(IOS) to
659         TARGET_OS_IPHONE.
660
661 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
662
663         Avoid PLATFORM() macros in exported headers.
664
665         * WebView/WebPDFViewPlaceholder.h:
666
667 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
668
669         Clean up exports and headers for iOS.
670
671         * Misc/WebNSStringDrawing.h: Don't use PLATFORM() macro in an exported header.
672         * WebCoreSupport/WebFrameIOS.h: Ditto.
673         * WebCoreSupport/WebSelectionRect.h: Ditto.
674
675 2014-01-14  Dean Jackson  <dino@apple.com>
676
677         Remove .objc_class_name_WebInspectorXPCWrapper from export on iOS build.
678
679         * WebKit.iOS.exp:
680
681 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
682
683         Fix WK1 iOS build: need implementations of these functions in WebInspectorClientIOS.
684
685         * WebCoreSupport/WebInspectorClientIOS.mm:
686         (WebInspectorClient::indicate):
687         (WebInspectorClient::hideIndication):
688
689 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
690
691         More work towards getting iOS WK1 building.
692
693         * WebCoreSupport/WebFrameIOS.mm:
694         (-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Stub out this
695         function, since it should use recently-refactored node snapshotting code. Covered by <rdar://problem/15808709>.
696
697 2014-01-12  Darin Adler  <darin@apple.com>
698
699         Add type checking to isEqual methods
700         https://bugs.webkit.org/show_bug.cgi?id=126862
701
702         Reviewed by Anders Carlsson.
703
704         * WebCoreSupport/WebVisiblePosition.mm:
705         (-[WebVisiblePosition isEqual:]): Add type checking on the argument.
706         Add a FIXME about the lack of a hash method override. Simplified by
707         removing the unneeded local variables.
708
709 2014-01-02  Andy Estes  <aestes@apple.com>
710
711         [iOS] Upstream remainder of minimal-ui viewport changes
712         https://bugs.webkit.org/show_bug.cgi?id=126410
713
714         Reviewed by Sam Weinig.
715
716         * WebCoreSupport/WebChromeClientIOS.mm:
717         (dictionaryForViewportArguments):
718         * WebKit.iOS.exp:
719
720 2013-12-31  Andy Estes  <aestes@apple.com>
721
722         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
723         https://bugs.webkit.org/show_bug.cgi?id=125746
724
725         Reviewed by David Kilzer.
726
727         * WebCoreSupport/WebVisiblePosition.mm:
728         (-[WebVisiblePosition positionAtStartOrEndOfWord]): Changed a comment
729         to mention iOS rather than iPhone.
730
731 2013-12-27  Daniel Bates  <dabates@apple.com>
732
733         [iOS] Upstream WebCore/page changes
734         https://bugs.webkit.org/show_bug.cgi?id=126180
735
736         Reviewed by Darin Adler.
737
738         * WebCoreSupport/WebChromeClientIOS.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
739
740 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
741
742         Consolidate various frame snapshot capabilities.
743         https://bugs.webkit.org/show_bug.cgi?id=124325
744
745         Reviewed by Darin Adler.
746
747         * WebCoreSupport/WebFrameIOS.mm: use new header file.
748
749 2013-12-04  Andy Estes  <aestes@apple.com>
750
751         [iOS] Upstream build fixes in Source/WebKit/ios/
752         https://bugs.webkit.org/show_bug.cgi?id=125230
753
754         Reviewed by Sam Weinig.
755
756         * DefaultDelegates/WebDefaultUIKitDelegate.m:
757         (-[WebDefaultUIKitDelegate webViewDidReceiveMobileDocType:]):
758         * Misc/WebNSStringDrawing.mm:
759         (needsBidiLayout):
760         (-[NSString __web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:measureOnly:renderedStringOut:drawUnderline:]):
761         (-[NSString __web_drawInRect:withFont:ellipsis:alignment:letterSpacing:lineSpacing:includeEmoji:truncationRect:measureOnly:renderedStringOut:drawUnderline:]):
762         * Misc/WebUIKitSupport.mm:
763         (WebKitInitialize):
764         * WebCoreSupport/WebChromeClientIOS.h:
765         * WebCoreSupport/WebChromeClientIOS.mm:
766         (WebChromeClientIOS::didReceiveMobileDocType):
767         (WebChromeClientIOS::focusedElementChanged):
768         * WebCoreSupport/WebFrameIOS.mm:
769         (-[WebFrame clearSelection]):
770         (-[WebFrame selectionState]):
771         (-[WebFrame collapseSelection]):
772         (-[WebFrame extendSelection:]):
773         (-[WebFrame selectionRects]):
774         (-[WebFrame setRangedSelectionWithExtentPoint:]):
775         (-[WebFrame setRangedSelectionExtentPoint:baseIsStart:allowFlipping:]):
776         (-[WebFrame setSelectionWithBasePoint:extentPoint:baseIsStart:allowFlipping:]):
777         (-[WebFrame setSelectionWithFirstPoint:secondPoint:]):
778         (-[WebFrame ensureRangedSelectionContainsInitialStartPoint:initialEndPoint:]):
779         (-[WebFrame aggressivelyExpandSelectionToWordContainingCaretSelection]):
780         (-[WebFrame expandSelectionToSentence]):
781         (-[WebFrame setBaseWritingDirection:]):
782         (-[WebFrame moveSelectionToStart]):
783         (-[WebFrame moveSelectionToEnd]):
784         (-[WebFrame moveSelectionToPoint:]):
785         (-[WebFrame setSelectionGranularity:]):
786         (-[WebFrame smartExtendRangedSelection:]):
787         (-[WebFrame previousUnperturbedDictationResultBoundaryFromPosition:]):
788         (-[WebFrame nextUnperturbedDictationResultBoundaryFromPosition:]):
789         * WebCoreSupport/WebInspectorClientIOS.mm:
790         (WebInspectorClient::WebInspectorClient):
791         (WebInspectorClient::didSetSearchingForNode):
792         (WebInspectorClient::setupRemoteConnection):
793         (WebInspectorClient::teardownRemoteConnection):
794         * WebCoreSupport/WebVisiblePosition.mm:
795         (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]):
796         (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]):
797         (-[DOMHTMLInputElement startPosition]):
798         (-[DOMHTMLInputElement endPosition]):
799         (-[DOMHTMLTextAreaElement startPosition]):
800         (-[DOMHTMLTextAreaElement endPosition]):
801         * WebView/WebPDFViewIOS.mm:
802         (+[WebPDFView shadowColor]):
803         (+[WebPDFView backgroundColor]):
804         (-[WebPDFView _checkPDFTitle]):
805         * WebView/WebPDFViewPlaceholder.mm:
806         (-[WebPDFViewPlaceholder simulateClickOnLinkToURL:]):
807         * WebView/WebUIKitDelegate.h:
808
809 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
810
811         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
812         https://bugs.webkit.org/show_bug.cgi?id=124613
813
814         Reviewed by Timothy Hatcher.
815
816         * WebCoreSupport/WebInspectorClientIOS.mm:
817         (WebInspectorClient::WebInspectorClient):
818         (WebInspectorClient::inspectorDestroyed):
819
820 2013-12-03  Ralph Thomas  <ralpht@gmail.com>
821
822         Typo: FixedPositionConstaint -> FixedPositionConstraint
823         https://bugs.webkit.org/show_bug.cgi?id=125171
824
825         Reviewed by Simon Fraser.
826
827         * WebCoreSupport/WebFixedPositionContent.mm:
828         (-[WebFixedPositionContent scrollOrZoomChanged:]):
829
830 2013-11-18  Commit Queue  <commit-queue@webkit.org>
831
832         Unreviewed, rolling out r159455.
833         http://trac.webkit.org/changeset/159455
834         https://bugs.webkit.org/show_bug.cgi?id=124568
835
836         broke two api tests (see bug 124564) (Requested by thorton on
837         #webkit).
838
839         * WebCoreSupport/WebFrameIOS.mm:
840
841 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
842
843         Consolidate various frame snapshot capabilities.
844         https://bugs.webkit.org/show_bug.cgi?id=124325
845
846         Reviewed by Timothy Hatcher.
847
848         * WebCoreSupport/WebFrameIOS.mm: use new header file.
849
850 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
851
852         Remove a PLATFORM(IOS) from WebKit Private Header
853         https://bugs.webkit.org/show_bug.cgi?id=124014
854
855         Reviewed by Timothy Hatcher.
856
857         * WebKit.iOS.exp:
858
859 2013-10-29  Andy Estes  <aestes@apple.com>
860
861         [iOS] Upstream Source/WebKit/ios/
862         https://bugs.webkit.org/show_bug.cgi?id=123470
863
864         Reviewed by Sam Weinig.
865
866         * DefaultDelegates/WebDefaultFormDelegate.h: Added.
867         * DefaultDelegates/WebDefaultFormDelegate.m: Added.
868         * DefaultDelegates/WebDefaultFrameLoadDelegate.h: Added.
869         * DefaultDelegates/WebDefaultFrameLoadDelegate.m: Added.
870         * DefaultDelegates/WebDefaultResourceLoadDelegate.h: Added.
871         * DefaultDelegates/WebDefaultResourceLoadDelegate.m: Added.
872         * DefaultDelegates/WebDefaultUIKitDelegate.h: Added.
873         * DefaultDelegates/WebDefaultUIKitDelegate.m: Added.
874         * Misc/EmojiFallbackFontSelector.cpp: Added.
875         * Misc/EmojiFallbackFontSelector.h: Added.
876         * Misc/MemoryMeasure.h: Added.
877         * Misc/MemoryMeasure.mm: Added.
878         * Misc/WebGeolocationCoreLocationProvider.h: Added.
879         * Misc/WebGeolocationCoreLocationProvider.mm: Added.
880         * Misc/WebGeolocationProviderIOS.h: Added.
881         * Misc/WebGeolocationProviderIOS.mm: Added.
882         * Misc/WebNSStringDrawing.h: Added.
883         * Misc/WebNSStringDrawing.mm: Added.
884         * Misc/WebNSStringExtrasIOS.h: Added.
885         * Misc/WebNSStringExtrasIOS.m: Added.
886         * Misc/WebNSStringExtrasIPhone.h: Added.
887         * Misc/WebUIKitSupport.h: Added.
888         * Misc/WebUIKitSupport.mm: Added.
889         * Storage/WebSQLiteDatabaseTrackerClient.h: Added.
890         * Storage/WebSQLiteDatabaseTrackerClient.mm: Added.
891         * WebCoreSupport/PopupMenuIOS.h: Added.
892         * WebCoreSupport/PopupMenuIOS.mm: Added.
893         * WebCoreSupport/SearchPopupMenuIOS.cpp: Added.
894         * WebCoreSupport/SearchPopupMenuIOS.h: Added.
895         * WebCoreSupport/WebCaretChangeListener.h: Added.
896         * WebCoreSupport/WebChromeClientIOS.h: Added.
897         * WebCoreSupport/WebChromeClientIOS.mm: Added.
898         * WebCoreSupport/WebFixedPositionContent.h: Added.
899         * WebCoreSupport/WebFixedPositionContent.mm: Added.
900         * WebCoreSupport/WebFixedPositionContentInternal.h: Added.
901         * WebCoreSupport/WebFrameIOS.h: Added.
902         * WebCoreSupport/WebFrameIOS.mm: Added.
903         * WebCoreSupport/WebFrameIPhone.h: Added.
904         * WebCoreSupport/WebGeolocation.mm: Added.
905         * WebCoreSupport/WebGeolocationInternal.h: Added.
906         * WebCoreSupport/WebGeolocationPrivate.h: Added.
907         * WebCoreSupport/WebMIMETypeRegistry.h: Added.
908         * WebCoreSupport/WebMIMETypeRegistry.mm: Added.
909         * WebCoreSupport/WebSelectionRect.h: Added.
910         * WebCoreSupport/WebSelectionRect.m: Added.
911         * WebCoreSupport/WebVisiblePosition.h: Added.
912         * WebCoreSupport/WebVisiblePosition.mm: Added.
913         * WebCoreSupport/WebVisiblePositionInternal.h: Added.
914         * WebKit.iOS.exp: Added.
915         * WebView/WebFrameViewWAKCompatibility.m: Added.
916         * WebView/WebMailDelegate.h: Added.
917         * WebView/WebPDFViewIOS.h: Added.
918         * WebView/WebPDFViewIOS.mm: Added.
919         * WebView/WebPDFViewIPhone.h: Added.
920         * WebView/WebPDFViewPlaceholder.h: Added.
921         * WebView/WebPDFViewPlaceholder.mm: Added.
922         * WebView/WebPlainWhiteView.h: Added.
923         * WebView/WebPlainWhiteView.mm: Added.
924         * WebView/WebUIKitDelegate.h: Added.
925
926 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
927
928         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
929         https://bugs.webkit.org/show_bug.cgi?id=123111
930
931         Reviewed by Timothy Hatcher.
932
933         iOS does not have a local inspector, only remote. So give it a custom
934         implementation separate from the WebKit/mac WebInspectorClient
935         implementation which handles an attaching/detaching local inspector.
936
937         * WebKit.xcodeproj/project.pbxproj:
938         * ios/WebCoreSupport/WebInspectorClientIOS.mm: Added.
939         (WebInspectorClient::WebInspectorClient):
940         (WebInspectorClient::inspectorDestroyed):
941         (WebInspectorClient::openInspectorFrontend):
942         (WebInspectorClient::bringFrontendToFront):
943         (WebInspectorClient::closeInspectorFrontend):
944         (WebInspectorClient::didResizeMainFrame):
945         (WebInspectorClient::highlight):
946         (WebInspectorClient::hideHighlight):
947         (WebInspectorClient::didSetSearchingForNode):
948         (WebInspectorClient::sendMessageToFrontend):
949         (WebInspectorClient::sendMessageToBackend):
950         (WebInspectorClient::setupRemoteConnection):
951         (WebInspectorClient::teardownRemoteConnection):
952         (WebInspectorClient::hasLocalSession):
953         (WebInspectorClient::canBeRemotelyInspected):
954         (WebInspectorClient::inspectedWebView):
955         (WebInspectorFrontendClient::WebInspectorFrontendClient):
956         (WebInspectorFrontendClient::attachAvailabilityChanged):
957         (WebInspectorFrontendClient::frontendLoaded):
958         (WebInspectorFrontendClient::localizedStringsURL):
959         (WebInspectorFrontendClient::bringToFront):
960         (WebInspectorFrontendClient::closeWindow):
961         (WebInspectorFrontendClient::disconnectFromBackend):
962         (WebInspectorFrontendClient::attachWindow):
963         (WebInspectorFrontendClient::detachWindow):
964         (WebInspectorFrontendClient::setAttachedWindowHeight):
965         (WebInspectorFrontendClient::setAttachedWindowWidth):
966         (WebInspectorFrontendClient::setToolbarHeight):
967         (WebInspectorFrontendClient::inspectedURLChanged):
968         (WebInspectorFrontendClient::updateWindowTitle):
969         (WebInspectorFrontendClient::save):
970         (WebInspectorFrontendClient::append):