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