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